CIDR replaced the old class A/B/C system
IPv4 addressing originally used fixed classes (Class A, B, and C) that only allowed a few rigid network sizes, which wasted large numbers of addresses for organizations that needed something in between. CIDR, introduced in the 1990s, replaced that rigid system with arbitrary-length prefixes, allowing address blocks to be sized much more precisely to actual need.
Smaller prefix number, larger network
It can feel backwards at first, but the relationship is inverse: a smaller number after the slash (like /8) means fewer bits are used for the network, leaving more bits for hosts, so it describes a much larger address block than a bigger number like /28.
Frequently Asked Questions
Does a /24 network really only give 254 usable addresses out of 256?
Yes, in standard IPv4 subnetting. The first address in the block is reserved to identify the network itself and the last is reserved as the broadcast address, so exactly two of the 256 total addresses are not assignable to individual devices.
Is a smaller subnet always better for security?
Smaller subnets can limit the reach of certain kinds of network traffic and make segmentation easier, but subnet size alone is not a security control β firewalls, access controls, and monitoring do the actual protective work, with subnetting mainly helping with organization and traffic containment.