Understanding IP class ranges is fundamental for anyone working with network infrastructure, security protocols, or system administration. These ranges define how IPv4 addresses are segmented into distinct blocks, each with a specific purpose and allocation strategy. The class system, while largely historical in the era of CIDR, still provides the foundational logic for how addresses are interpreted and routed across the internet.
The Origin and Logic of IP Classes
The original IP class system was designed to manage the allocation of a finite pool of addresses efficiently. Each class is identified by the first few bits of the first octet, which act as a prefix to determine the network and host portions. Class A, B, and C were intended for organizations of different scales, while Class D and E served specialized multicast and experimental functions respectively. This hierarchical structure allowed routers to quickly determine the scope of a destination address based on its initial bits.
Class A: The Large Network Range
Class A addresses span the range from 1.0.0.0 to 126.255.255.255, with the first octet indicating the network and the subsequent three octets available for host addresses. This massive pool supports over 16 million hosts per network, making it historically suitable for massive institutions or early internet backbone providers. The reserved range from 0.0.0.0 to 127.255.255.255 also includes the loopback address 127.0.0.1, used for local machine testing.
Key Characteristics of Class A
First bit pattern: 0
Valid first octet range: 1-126
Default subnet mask: 255.0.0.0
Typical use case: Large global enterprises
Class B: The Medium-Sized Allocation
Falling in the range of 128.0.0.0 to 191.255.255.255, Class B networks split the address space into two octets for the network identifier and two for the host identifier. This allows for a significant number of networks, each capable of supporting up to 65,534 hosts. This class was typically allocated to regional universities and mid-sized businesses during the peak of classful networking.
Key Characteristics of Class B
First bit pattern: 10
Valid first octet range: 128-191
Default subnet mask: 255.255.0.0
Typical use case: Regional networks
Class C: The Standard Small Network
Class C addresses, ranging from 192.0.0.0 to 223.255.255.255, are the most common range seen in everyday networking. They use three octets for the network portion and one for the host, limiting each network to 254 usable host addresses. This class is ideal for typical local area networks (LANs) and small businesses, aligning well with the number of devices in a single office or home network.
Key Characteristics of Class C
First bit pattern: 110
Valid first octet range: 223-192
Default subnet mask: 255.255.255.0
Typical use case: Small office and home networks