CIDR Notation Explained: From /1 to /32 Subnet Prefix Lengths
CIDR (Classless Inter-Domain Routing), defined in RFC 4632 (1993), replaced the legacy classful system. A CIDR address has two parts — the IP address and a prefix length — separated by a slash, e.g., 192.168.1.0/24. The prefix length specifies how many leading bits identify the network; the remaining bits define hosts. A /32 is a single host (loopback or point-to-point endpoint), /31 covers two hosts (RFC 3021), /30 has four addresses with two usable, /24 the familiar 256 addresses with 254 usable, and /8 a full Class A-equivalent block of 16,777,216 addresses. CIDR enables flexible address allocation and route aggregation, making the global IPv4 routing table manageable.