There were three address classes to chose from: A, B, or C, corresponding to 8-bit, 16-bit, or 24-bit prefixes. No other prefix lengths were allowed, and there was no concept of nesting a group of 24-bit prefixes, for example, within a 16-bit prefix.
An address was slotted into one of three address classes based on its high-order bits. Addresses beginning with 0 were considered class A; addresses beginning 10 were class B; addresses beginning 110 class C. Two other classes were also defined, class D addresses beginning 1110 and class E addresses beginning 1111, though neither of these two address classes were normally used. For humans, the easiest way to distinguish between different address classes is to use the first decimal number in the IP address:
|First octet||Address Class|
For example, 184.108.40.206 is a Class B address because the first octet, 128, lies in the 128-191 range. Likewise, 10.10.191.1 is a Class A address (because the first octet is 10) and 220.127.116.11 is a Class C (because the first octet is 208). If this seems at all confusing, convert these addresses into binary and verify for yourselves that the initial bits correspond to the pattern shown in the diagram.
Upon installing a new Internet connection, the network engineer would request a Class A, B, or C network, depending on the expected size of the installed network. For example, the U.S. Department of Defense, a very large network, was assigned a Class A; the University of Maryland, a typical mid-sized network, was assigned a Class B network; and a small consulting firm I once worked for was assigned a Class C network.
The Internet Assigned Numbers Authority (IANA) oversaw all classful network assignments. Only the network bits were assigned by IANA. For example, a request for a Class C network might have been met by assigning 18.104.22.168. As a Class C, the first three bytes were fixed by IANA, and the last byte was assigned by the local network administrator. No attempt was made to assign the addresses in a hierarchical fashion. The first Class B assigned was 22.214.171.124, the next was 126.96.36.199, and so on.
Routers processed packets according to their classful network. For example, consider a packet addressed to 188.8.131.52. First, the address is determined to be a Class B (its two high bits are 10), then split to determine its membership in the 184.108.40.206 classful network. The routing table would have an entry for each classful network, in this case 220.127.116.11, which would determine how the packet should be delivered.