1. The Evolution from Classful to CIDR Routing
In the original IPv4 specification (RFC 791), addresses were rigidly partitioned into Class A (/8), Class B (/16), and Class C (/24) networks. An organization needing 300 IP addresses was forced to request a Class B block (65,536 addresses), wasting over 65,000 routable IPs.
Introduced in RFC 1519, CIDR allows variable-length subnet masks (VLSM), enabling network architects to split address spaces into blocks tailored to exact requirements.
2. Understanding CIDR Binary Prefix Mathematics
An IPv4 address consists of 32 bits divided into four 8-bit octets. The CIDR prefix (e.g. /24) designates how many bits belong to the network identifier, while the remaining bits belong to host addresses:
- Host Bit Formula: For a prefix of length $n$, available host bits equal $32 - n$.
- Total IP Addresses: $2^{(32 - n)}$.
- Usable Host Addresses: $2^{(32 - n)} - 2$ (subtracting 1 for the Network Address and 1 for the Broadcast Address).
For example, a /28 subnet has $32 - 28 = 4$ host bits, yielding $2^4 = 16$ total IPs and $14$ usable hosts.
3. RFC 1918 Private Address Allocations
When provisioning Cloud VPCs or enterprise corporate LANs, network engineers rely on non-routable private IP blocks reserved under RFC 1918:
10.0.0.0/8(10.0.0.0 – 10.255.255.255): 16,777,216 addresses (Ideal for large enterprises).172.16.0.0/12(172.16.0.0 – 172.31.255.255): 1,048,576 addresses.192.168.0.0/16(192.168.0.0 – 192.168.255.255): 65,536 addresses (Standard home/office routers).
4. Related Interactive Utilities
- CIDR Subnet Calculator & Range Finder - Instant netmask, broadcast, and host range calculation.
- Common Network Ports Reference - Standard TCP/UDP ports with firewall rules.