How CIDR (Classless Inter-Domain Routing) Works

CIDR was introduced in 1993 to replace the rigid Class A, B, and C address allocation system and slow the rapid exhaustion of IPv4 addresses. Instead of allocating rigid 8, 16, or 24-bit boundaries, CIDR allows variable length subnet masking (VLSM).

The slash notation (e.g., /24) denotes the number of leading bits dedicated to identifying the network, while the remaining bits ($32 - \text{prefix}$) identify individual host interfaces.