The historical model
Classes made the first network boundary predictable.
Classful IPv4 addressing used leading bits to select a default network size. Class A used a default /8 network, Class B a /16, and Class C a /24.
That simple model became wasteful as networks grew in many different sizes. An organisation needing more than a /24 but far less than a /16 could not choose a right-sized classful block.
Build the model
Five historical ranges
Class A
First octet 1–126 in the traditional usable range; default /8 network.
Class B
First octet 128–191; default /16 network.
Class C
First octet 192–223; default /24 network.
Class D
224–239, reserved for IPv4 multicast groups rather than host subnets.
Class E
240–255, reserved for experimental or future use in the historical model.
Compare with CIDR
Prefix length gives the network the right size
CIDR separates the network prefix length from the old class labels. A /20 contains 4,096 IPv4 addresses, while a /27 contains 32, so allocation can better match the need and routes can be aggregated.
Knowledge check
Test your classful and CIDR model
Answer six questions.