Classful Addressing in Computer Networks: Classes, Ranges & Disadvantages
Before CIDR existed, every IP address on the internet belonged to a fixed class. There was no flexibility, no variable subnet masks, and no way to allocate exactly the number of addresses an organisation needed. That system was classful addressing - and understanding it is foundational to understanding how modern IP addressing works and why it replaced classful addressing entirely.
Classful addressing divided the entire 32-bit IPv4 address space into five fixed classes - A, B, C, D, and E - based on the leading bits of the first octet. The class determined the network portion, the host portion, the subnet mask, and the total number of usable addresses. This system was introduced in 1981 and remained the standard until CIDR replaced it in 1993.
This guide covers everything you need: what classful addressing is, all five IP address classes with ranges and binary structure, rules for assigning network and host IDs, special IP address ranges, disadvantages, and a complete classful vs classless comparison. Board Infinity's guide on the structure of DBMS gives a useful parallel for how layered systems - whether database architecture or network addressing - are designed with hierarchy and fixed boundaries.
Who This Guide Is For
What is Classful Addressing?
Classful addressing is a method of organising and allocating IPv4 addresses by dividing the entire 32-bit address space into five fixed classes - A, B, C, D, and E. The class of any IP address is determined entirely by the value of its leading bits in the first octet. No subnet mask or prefix length is required to identify the class - the leading bits define it automatically.
Each class has a fixed boundary between the network portion and the host portion of the address. This fixed boundary is what makes classful addressing rigid: organisations could not request exactly the number of addresses they needed. They had to accept whatever a full class provided, which frequently led to either severe waste (a class B allocation for a 500-host network wastes 65,000 addresses) or severe shortage (a class C allocation for a 300-host network provides only 254 usable addresses).
IPv4 Address Structure: Quick Foundation
An IPv4 address is a 32-bit binary number written as four decimal octets separated by dots - for example, 192.168.1.1. Each octet represents 8 bits and has a value between 0 and 255.
The Five Classes of Classful Addressing
Class A - Classful Addressing
Class A addresses are assigned to very large organisations that need millions of host addresses within a single network. Only the first octet identifies the network; the remaining three octets identify individual hosts.
The most significant bit (MSB) of the first octet is always 0, leaving 7 bits to identify the network and 24 bits for the host. The default subnet mask is 255.0.0.0.
Class B - Classful Addressing
Class B addresses serve medium to large organisations. The first two octets form the network portion; the last two octets identify hosts. The first two bits are always 10.
Class C - Classful Addressing
Class C addresses are designed for small networks. The first three octets identify the network; only the last octet identifies hosts. This gives only 254 usable hosts per network - a major limitation for growing organisations.
Class D and Class E
Class D and Class E do not follow the network/host ID structure of Classes A, B, and C. They serve entirely different purposes and are not used for regular unicast communication.
How to Identify the Class of an IP Address
The fastest way to identify the class is to look at the first octet value. No binary conversion is needed for quick identification.
Rules for Assigning Network ID and Host ID
Classful addressing enforces strict rules on which values are valid for network IDs and host IDs. Violating these rules results in invalid or reserved addresses.
Rules for Network ID:
Rules for Host ID:
Special IP Address Ranges in Classful Addressing
Beyond the five classes, several IP address ranges carry special meanings in classful addressing.
Disadvantages of Classful Addressing
The disadvantages of classful addressing are the primary reason it was abandoned in 1993. These limitations directly caused the exhaustion of the IPv4 address space and triggered the development of CIDR.
Classful Addressing vs Classless Addressing (CIDR)
Classless Inter-Domain Routing (CIDR), introduced in 1993, directly solved every major disadvantage of classful addressing by replacing fixed class boundaries with variable-length prefix notation (e.g., /22, /27).
Need for Classful Addressing (Historical Context)
While classful addressing had severe limitations, it was the right solution for its era. When it was introduced in 1981, the internet was a small research network with only a few hundred connected machines. Understanding why it was designed this way clarifies why its problems only became apparent as the internet scaled.
Applications of Classful IP Addressing Today
While being outdated Classful IP Addressing is used educationally and gives understanding of the modern IP allocation. For learners exploring how IP visibility works in practice, tools like Whoer IP can also help connect addressing concepts with real-world network checks. To test how your own IP appears from different countries and verify location-based routing, security researchers use residential proxies from NodeMaven for accurate geo-specific IP testing.
Network administrators and students often study it to:
- Learn about subnetting and general structure of IP.
- Learn when the process of IP addressing transition started.
Conclusion
Classful addressing was the internet's first systematic approach to IP address organisation - and for over a decade, it worked. The five-class system (A through E) provided a simple, hierarchical way to identify networks and hosts using only the leading bits of the first octet. Every network administrator in the 1980s could classify any IP address instantly without tools or configuration.
Three things to take away: first, the class of any IPv4 address is determined purely by its first octet value - below 128 is Class A, 128-191 is Class B, 192-223 is Class C. Second, the core mechanism is the fixed split between Network ID bits and Host ID bits - determined by the class, non-negotiable. Third, classful addressing's fatal flaw was rigidity - the inability to allocate any size other than a full class block led to catastrophic waste and was replaced by CIDR in 1993.
For networking exams like GATE, the most frequently tested points are the first-octet ranges for each class, the usable host counts (why 2 are subtracted), why 127.x.x.x is reserved, and the core disadvantages. Board Infinity's guide on deadlock in DBMS covers another foundational CS topic where understanding historical design decisions helps explain modern alternatives - the same pattern of "designed for one era, replaced when it could not scale" applies in both.
Frequently Asked Questions
Q1. What is classful addressing in computer networks? Classful addressing is a method of dividing the IPv4 address space into five fixed classes - A, B, C, D, and E - based on the leading bits of the first octet. It was used from 1981 to 1993 to allocate IP addresses and determine which portion of an address represents the network and which represents the host.
Q2. What is the classful addressing range for each class? Class A: 0.0.0.0 to 127.255.255.255. Class B: 128.0.0.0 to 191.255.255.255. Class C: 192.0.0.0 to 223.255.255.255. Class D: 224.0.0.0 to 239.255.255.255 (multicast). Class E: 240.0.0.0 to 255.255.255.255 (experimental).
Q3. What are the disadvantages of classful addressing? The main disadvantages are: severe IP address wastage due to fixed class sizes, no support for Variable Length Subnet Masks (VLSM), the class size mismatch problem (no middle ground between Class B's 65,534 hosts and Class C's 254 hosts), large routing tables with no aggregation, and inflexibility for modern network allocation needs.
Q4. How do you identify the class of an IP address? Check the first octet value. 1-127 = Class A. 128-191 = Class B. 192-223 = Class C. 224-239 = Class D. 240-255 = Class E. The number 127 is technically Class A but reserved for loopback (localhost).
Q5. Why was classful addressing replaced by CIDR? Classful addressing wasted enormous amounts of IP address space because organisations had to accept full class blocks regardless of how many addresses they actually needed. It also could not support route aggregation, causing routing tables to grow unmanageably. CIDR replaced it in 1993 by allowing variable-length prefix notation that enables precise, efficient address allocation.
Q6. Why are two addresses subtracted when calculating usable hosts? The first address (all host bits = 0) is the Network Address, reserved to identify the network in routing tables. The last address (all host bits = 1) is the Broadcast Address, used to reach all devices on the network simultaneously. Neither can be assigned to an individual host, so usable hosts = 2^n - 2.
Q7. What is the default subnet mask for each classful address class? Class A: 255.0.0.0 (/8). Class B: 255.255.0.0 (/16). Class C: 255.255.255.0 (/24). Classes D and E have no defined subnet masks as they are not used for standard unicast communication.
Further Reading
Board Infinity Guides:
- Structure of DBMS with a Diagram
- Deadlock in DBMS
- DDL and DML Commands in SQL
- Core Java Concepts and Syntax
External Resources:
- IANA - IPv4 Address Space Registry - the official Internet Assigned Numbers Authority registry showing how the entire IPv4 address space is currently allocated
- RFC 791 - Internet Protocol (1981) - the original RFC that defined classful IP addressing, providing the historical specification for the system covered in this guide
- RFC 1519 - CIDR (1993) - the RFC that introduced Classless Inter-Domain Routing and replaced classful addressing, directly addressing all the disadvantages documented above