Identify the key elements of TCP/IP design including addressing schemes, subnet masks, routing protocols, and CIDR implementation.
Designing a Functional TCP/IP Solution
Effective TCP/IP network design requires careful consideration of addressing strategies, routing requirements, and scalability needs. This lesson examines the fundamental elements that form the foundation of any TCP/IP implementation, with particular emphasis on IP addressing methodologies and their impact on network architecture.
Core Design Elements
Four essential elements must be addressed when designing a functional TCP/IP network:
IP Address and Subnet Mask Configuration
Determine addressing scheme (classful, VLSM, or CIDR)
Calculate appropriate subnet masks for each network segment
Plan address allocation to accommodate growth
Balance between address conservation and operational simplicity
Every device communicating via TCP/IP requires a unique IP address. IPv4, the predominant addressing standard, uses 32-bit addresses typically represented in dotted-decimal notation (e.g., 192.168.1.100).
IP Address Components:
Network ID: Identifies the network or subnet to which the device belongs
Host ID: Identifies the specific device within that network
Subnet Mask: Determines which portion of the IP address represents the network vs. host
Address Structure: The subnet mask defines the boundary between network and host portions. For example:
IP Address: 192.168.10.50
Subnet Mask: 255.255.255.0 (or /24 in CIDR notation)
Three primary addressing approaches exist, each with distinct characteristics and routing protocol requirements:
1. Classful Addressing (Legacy)
The original IP addressing scheme divided the address space into five classes (A, B, C, D, E) with fixed subnet masks.
Three IP Addressing Approaches:
1. Classful Networks (Legacy): Fixed subnet masks based on address class (A, B, or C)
2. Variable Length Subnet Masking (VLSM): Multiple subnet masks within the same network for efficient address utilization
3. Classless Inter-Domain Routing (CIDR): Flexible prefix lengths specified with slash notation (e.g., /24, /26)
Classful Address Ranges and Default Masks:
Class
Range
Default Mask
CIDR Notation
Networks / Hosts
Class A
1.0.0.0 - 126.255.255.255
255.0.0.0
/8
126 networks, 16.7M hosts each
Class B
128.0.0.0 - 191.255.255.255
255.255.0.0
/16
16,384 networks, 65,534 hosts each
Class C
192.0.0.0 - 223.255.255.255
255.255.255.0
/24
2M networks, 254 hosts each
Classful Limitations:
Inflexible - cannot adjust mask to actual needs
Wasteful - often allocates far more addresses than needed
Example: Organization needs 500 hosts, must use Class B (65,534 addresses = 65,034 wasted)
Routing protocol requirement: RIPv1 (does not advertise subnet masks)
Current Status: Classful addressing is obsolete for new deployments. Modern networks use VLSM or CIDR for efficient address utilization.
2. CIDR Notation and Slash Format
CIDR (Classless Inter-Domain Routing) notation provides a compact way to represent IP addresses and their subnet masks using a slash followed by the number of network bits.
CIDR Slash Notation: The Class B default subnet mask 255.255.0.0 can be represented as /16 in CIDR notation. The /16 indicates that the first 16 bits (two octets) of the IP address represent the network ID, leaving 16 bits for host addresses.
Common CIDR Prefix Lengths:
CIDR
Subnet Mask
Usable Hosts
Common Use
/30
255.255.255.252
2
Point-to-point links
/29
255.255.255.248
6
Small server segments
/28
255.255.255.240
14
Small office networks
/27
255.255.255.224
30
Department networks
/26
255.255.255.192
62
Medium departments
/24
255.255.255.0
254
Standard subnet
/23
255.255.254.0
510
Large departments
/22
255.255.252.0
1,022
Large facilities
CIDR Benefits:
Flexibility: Match subnet size precisely to requirements
Efficiency: Minimal address waste through right-sizing
Route Aggregation: Combine multiple networks into single routing table entry
IP Address Structure: Every IP address consists of two components:
1. Network ID: Identifies the network or subnet to which the host belongs. Defined by the portion where subnet mask bits are set to 1.
2. Host ID: Identifies the specific device within that network. Defined by the portion where subnet mask bits are set to 0.
Routing Decision: When a host needs to communicate, IP compares the destination IP's network ID against its own. If they match, the destination is local (same subnet). If they differ, the packet is sent to the default gateway for routing.
VLSM Example Scenario:
Organization has 172.16.0.0/16 network allocation and needs:
Invalid: 255.255.0.255 (non-contiguous - not supported)
All-Zeros and All-Ones: Modern networks can use subnet zero and all-ones subnet (RFC 1812)
Historic restriction: first and last subnets were reserved
Current: All subnets usable (enabled by default in modern equipment)
Relevant RFCs for IP Addressing
Understanding these foundational RFCs provides deeper insight into IP addressing standards:
RFC
Title
Description
RFC 950
Internet Standard Subnetting Procedure
Original specification for IP address subnetting
RFC 1518
An Architecture for IP Address Allocation with CIDR
Defines architecture required to support CIDR
RFC 1519
Classless Inter-Domain Routing (CIDR)
CIDR addressing and route aggregation strategies
RFC 1812
Requirements for IPv4 Routers (Section 4.2.2.11)
All-zeros and all-ones subnet usage in address masks
RFC 1878
Variable Length Subnet Table for IPv4
Comprehensive VLSM tables and calculations
Additional Key RFCs:
RFC 1918: Address Allocation for Private Internets (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
RFC 4632: Classless Inter-domain Routing (CIDR) - most recent update
Next Steps
The following lesson explores private IP addressing schemes and Network Address Translation (NAT), building on the addressing fundamentals covered here. Understanding these core concepts is essential for designing scalable, efficient TCP/IP networks.