When the InterNet was first invented they decided that since they'd be lucky to have perhaps 1,000 computers on the Internet, that they could do some smart stuff with the IP addresses. So the first few bits of an IP address said how large the network the IP was in was.

|^Bits|^Name|^Size|^Bit length|Range |<0|Class A|128 networks of 16777216 hosts each|/8|> - |<10|Class B|2^14 networks of 65536 hosts each|/16|> - |<110|Class C|2^21 networks of 256 hosts each|/24|> - |<1110|Class D|2^28 multicast ID's| |> - |<11110|Class E|2^27 Reserved addresses| |> -

There was a lot of use of Class C networks since a lot of people had about 250 odd machines, and a lot of people needed more than 250 machines, but less than 65530ish machines and they ended up using Class B addresses, however not many people required more than that. Now half the address space was "Wasted" reserved for "A" spaces and B and C spaces were running out fast. So the idea was to stop using the class bits and store the network information independently. This also let them give out ranges larger than a /24 (254 usable addresses), but smaller than a /16 (65534 useable addresses)

Many large organisations have (or used to have) class A networks assigned to them - a couple of quick examples are many universities (eg StanfordUniversity) and some car manufacturers (eg Ford - reserved a class A in expectation that all their cars would eventually have a unique IP address).

The notation commonly called "CIDR notation" is to suffix / and the number of bits that form the network. For example, the "" Class A address would be shown as "". The idea is that any length of bits from 1 to 32 can be used after "/". Its fairly unlikely you'll ever see anything greater than a /8 however.

The introduction of CIDR meant that RouteAggregation could be implemented effectively.

Part of CategoryNetworking