networking

Ip Address Classes: A Network Engineer Guide

Understanding network architecture starts with how devices find each other across a digital landscape. If you've ever configured a router or troubleshot a subnet mask, you've bumped into IP address cl

Ip Address Classes: A Network Engineer Guide
In this story

Understanding network architecture starts with how devices find each other across a digital landscape. If you've ever configured a router or troubleshot a subnet mask, you've bumped into IP address classes.

Classful networking was the original framework used to divide the IPv4 address space into manageable chunks. Even though modern networks rely on CIDR (Classless Inter-Domain Routing), knowing these traditional classifications helps you grasp why subnetting works the way it does.

What Are IP Address Classes?

The IPv4 address space contains roughly 4.3 billion unique addresses. In the early days of the internet, engineers needed a systematic way to split this massive pool into networks of varying sizes. They created five distinct classes labeled A through E.

Each class uses a fixed number of bits to identify the network portion versus the host portion of an address. Recognizing these boundaries tells you immediately how many devices a single network can support.

Class A IP Addresses

Class A networks are built for massive organizations and telecom providers. They occupy the first half of the IPv4 address space, running from 0.0.0.0 to 127.255.255.255.

In a Class A address, the very first bit is always fixed at 0. That leaves 7 bits for the network ID, allowing for a total of 128 possible Class A networks (though 0.0.0.0 and 127.0.0.0 are reserved for special functions like loopback).

The remaining 24 bits are dedicated to hosts. This means a single Class A network can accommodate over 16 million individual IP addresses ($2^{24} - 2$).

  • First Octet Range: 1 to 126 (127 is reserved for loopback testing)
  • Default Subnet Mask: 255.0.0.0
  • Best Used For: Massive enterprise environments or government backbones

Class B IP Addresses

As the internet grew, engineers needed a middle-ground classification for mid-to-large institutions like universities and corporations. Class B addresses bridge the gap between massive state networks and small office setups.

Class B addresses range from 128.0.0.0 to 191.255.255.255. The first two bits are always set to 10. This leaves 14 bits for the network ID and 16 bits for host IDs.

  • First Octet Range: 128 to 191
  • Default Subnet Mask: 255.255.0.0
  • Host Capacity: Up to 65,534 hosts per network ($2^{16} - 2$)

Class C IP Addresses

For local area networks (LANs) and small businesses, Class C was the go-to standard. It sacrifices network capacity to maximize the number of distinct networks available.

Class C addresses span from 192.0.0.0 to 223.255.255.255. The first three bits are fixed at 110. That leaves 21 bits for the network identifier and only 8 bits for host addresses.

  • First Octet Range: 192 to 223
  • Default Subnet Mask: 255.255.255.0
  • Host Capacity: Up to 254 usable hosts per network ($2^8 - 2$)

Most home routers and small office setups historically operate within Class C private address ranges, such as 192.168.1.1. You can learn more about how internet standards are managed at Internet Assigned Numbers Authority (IANA).

Special Purpose Classes: D and E

Not all IP addresses are meant for standard computer-to-computer communication on a LAN. Classes D and E serve entirely different functions.

Class D (Multicast)

Class D addresses range from 224.0.0.0 to 239.255.255.255. Instead of identifying a single specific device, a Class D address represents a multicast group. When a server streams data to a Class D address, multiple client devices across the network can listen in simultaneously without requiring individual point-to-point connections.

Class E (Experimental)

Class E addresses range from 240.0.0.0 to 255.255.255.255. These are strictly reserved for research, development, and experimental purposes. Standard operating systems and routers cannot route Class E traffic on the public internet.

Why Classful Networking Was Replaced

While classful addressing kept early networks organized, it had a fatal flaw: inefficiency.

If an organization needed 500 host addresses, a Class C network (max 254 hosts) was too small, forcing them to request a Class B network (max 65,534 hosts). This resulted in tens of thousands of wasted IP addresses sitting idle.

To fix this exhaustion crisis, the networking world transitioned to CIDR and subnet masking. Instead of rigid class boundaries, network engineers could slice and dice IP blocks using variable-length subnet masks (VLSM). You can read technical specifications on IP routing architecture through Internet Engineering Task Force (IETF).

Frequently Asked Questions

How do I know which IP class an address belongs to?

Look at the first octet (the number before the first dot). If it falls between 1 and 126, it's Class A. Numbers 128 through 191 indicate Class B, while 192 through 223 indicate Class C.

Are IP classes still used in modern routers?

In terms of strict packet routing, no. Modern routers use CIDR notation (like /24 or /16) rather than traditional class rules. However, understanding the legacy class boundaries is still required for certification exams and legacy network troubleshooting.

What is the difference between a network ID and a host ID?

The network ID identifies the specific sub-network your device is on, similar to a street name. The host ID identifies your exact device on that street, similar to a house number.

📖 Related: this post

Why do subnet masks subtract two usable hosts?

In every subnet, the very first address is reserved as the network identifier, and the absolute last address is reserved as the broadcast address. That's why a Class C network with 256 total addresses only provides 254 usable addresses for devices.

IC

Written by

Isabella Carter

As a veteran correspondent, Isabella Carter has reported from across the globe, bringing firsthand perspectives to international stories and local issues.

More from networking