Classful vs. Classless IP Addressing

Classful vs. Classless IP Addressing: A Deep Dive into Networking Evolution

IP addressing is the backbone of modern networking, enabling devices to communicate across local networks and the internet. Every device—whether a smartphone, server, or IoT sensor—requires a unique IP address to send and receive data.

However, the original IP addressing system (classful addressing) struggled to scale with the internet’s explosive growth. This led to inefficiencies like IPv4 address exhaustion and rigid network structures. The solution? Classless Inter-Domain Routing (CIDR), a flexible system that replaced classful addressing in 1993.

Key TakeawayClassless addressing (CIDR) solved IPv4 shortages by eliminating fixed network classes and enabling efficient subnetting.


This article, “Classful vs. Classless IP Addressing,” is the continuation of my previous articles about the IP addresses, which are the following:

Unicast, Multicast, and Broadcast Communication

Mastering Host Address, Network Prefix, Network ID, and Broadcast ID in 2025

IP address Classes- Exclusive Explanation

Positional Number System and Examples (Updated 2025)

Network and Host Portion of IPv4 Address

So, you need to study the above article to understand it better before reading it. If you have already covered the above topics, let’s dive straight into this article.


Classful Addressing

The IETF published the first major addressing scheme in September 1981 in RFC 790. The IP addressing scheme was 32 bits long and had three classes, A, B, and C, corresponding to 8-bit, 16-bit, and 24-bit prefixes. No other prefix lengths were allowed then, and there was no concept of nesting a group of 24-bit prefixes, such as within a 16-bit prefix.

Class D and E addresses were also defined, but neither of these two address classes was normally used. Class D addresses are reserved for multicasting, and Class E addresses are reserved for experimental and future use. The easiest way to distinguish between different address classes is to use the first decimal number in the IP address. Classful networks use the classful subnet mask according to the leading bits in the first block of the IP address. The figure below illustrates the key information of the Classful address scheme.

A comprehensive table explaining classful networks, focusing on IP address classes A, B, and C. The table highlights Class, First Octet Range, High Order Bit (HOB), Default Subnet Mask, Possible Networks, and Possible Hosts per Network. Class A supports 128 networks with 16,777,214 hosts each, Class B supports 16,384 networks with 65,534 hosts each, and Class C supports 2,097,152 networks with 254 hosts each. The table visually represents the characteristics and distinctions of classful networks, showcasing the foundational structure of IP address classification for networking.
Classful vs. Classless IP Addressing: A Deep Dive into Networking Evolution 3

Historical Context: Why Classful Addressing Failed

The 1980s: The Era of Fixed Classes

In the early days of the internet, IP addresses were divided into five fixed classes (A, B, C, D, E) based on their first few bits. This system wasted addresses. For example, a company needing 500 hosts had to take a Class B (65k hosts), wasting 64,500 addresses. By 1992, 49% of Class B addresses were allocated, risking IPv4 exhaustion (RFC 1338).

1993: RFC 1519 and the CIDR Revolution

CIDR introduced classless addressing, where networks could be split into subnets of arbitrary size using a variable-length subnet mask (VLSM). For example:

  • 192.168.1.0/24 = 254 hosts (subnet mask 255.255.255.0)
  • 10.0.0.0/16 = 65,534 hosts (subnet mask 255.255.0.0)

Result: ISPs could allocate precise address blocks, reducing waste by up to 70% (ICANN Report, 2000).


Technical Breakdown of Classful Addressing

Class A Networks (0.0.0.0 to 127.255.255.255): The Giants

The default subnet mask for this class is 255.0.0.0 or /8. This class supports an extremely large network with more than 16 million hosts. The first octet’s high-order bits of Class A addresses are zero, so the remaining 7 bits create 128 possible Class A networks. 0.0.0.0 is used for the default route, and the 127.0.0.0 network is reserved for local loop testing. So, the remaining network is from 1 – 126 total 126 networks.

  • Range: 1.0.0.0 to 126.255.255.255
  • Subnet Mask: 255.0.0.0 (/8)
  • Hosts: 16,777,214 per network
  • Use Case: Governments and telecom giants (e.g., MIT owns 18.0.0.0/8).

Limitation: Only 126 Class A networks existed globally, monopolized by early internet pioneers.

Class B Networks (128.0.0.0 – 191.255.255.255): The Middle Ground

The default subnet mask for the class B network is 255.255.0.0 or /16. Class B network support supports large networks with up to 65,000 host addresses. The high-order bits for the class B network are 10 in the first octet, and the remaining bits of the first 2 octets create over 16,000 networks. The network 169.254.0.0 is a special network for link-local addresses, also known as Automatic Private IP Addressing (APIPA).

  • Range: 128.0.0.0 to 191.255.255.255
  • Subnet Mask: 255.255.0.0 (/16)
  • Hosts: 65,534 per network
  • Use Case: Universities and mid-sized corporations.

Problem: Companies like Ford (19.0.0.0/8) hoarded Class A blocks, while smaller firms faced scarcity.

Class C Networks (192.0.0.0 – 223.255.255.255): Too Small for Growth

The default subnet mask for a Class C network is 255.255.255.0 or /24. Class C supports small networks with a maximum of 254 hosts. The first three bits of the octet indicate the high-order bit of the class. The remaining bits of the first three octets indicate the network, and the fourth indicates host addresses in this class. The high-order bit is 110. A Class C address has over 2 million possible networks.

  • Range: 192.0.0.0 to 223.255.255.255
  • Subnet Mask: 255.255.255.0 (/24)
  • Hosts: 254 per network
  • Use Case: Small offices.

Issue: Startups needing 300 hosts had to request multiple Class C blocks, complicating routing tables.

Class D (224.0.0.0 – 239.255.255.255)

The first four bits of the first octet in Class D IP addresses are high-order bits (HOB); the first four bits are 1110. The range of Class D addresses starts from 224.0.0.0 to 239.255.255.255. Class D is reserved for multicasting. In multicast communication, data is destined for multiple hosts, not for a particular host. The class has no subnet defined.

Class E (240.0.0.0 – 255.255.255.254)

The first five bits of the first octet are reserved HOB for Class E address. The HOB for Class E is 11111. The address range is 240.0.0.0 to 255.255.255.254. This class is reserved for experimental purposes only, such as R&D and study. Class E is also not equipped with a subnet mask like Class D.

Public IP Addresses

A public IP address range is defined for network devices, hosts, and servers like web servers and email servers to allow direct access to the Internet. Any server device using public IP addresses directly accessible from the Internet. A public IP address is globally unique and can only be assigned once to any device worldwide. Every device accessing the internet is using a unique IP address. Public IP addresses are also required for any publicly accessible network hardware, such as servers hosting websites. Public addresses are globally routed between different ISPs and routers. However, some addresses are not routable on the Internet. These addresses are called private addresses.

Private IP addresses

Private IPv4 addresses were introduced in 1990 because of reduced IPv4 addresses. The Private addresses are not unique and can be used repeatedly for internal networks. The computers at home, tablets, smartphones, network printers, and the computers within organizations are generally assigned private IP addresses. A computer with a private IP address can see and access the local network through its private IP address.

The computer and devices with a private IP address cannot directly access and communicate via the private IP address; however, using the router’s public IP addresses, the devices outside a private network can communicate. The NAT allows direct access to a local device assigned a private IP address. The range of private IP addresses is defined for all three classes.

10.0.0.0 /8 or 10.0.0.0 to 10.255.255.255

172.16.0.0 /12 or 172.16.0.0 to 172.31.255.255

192.168.0.0 /16 or 192.168.0.0 to 192.168.255.255


The Birth of Classless Addressing (CIDR)

Classless Addressing

CIDR replaces fixed classes with prefix lengths (e.g., /24, /17) to define networks. Classful addressing divides an IP address into the Network and Host portions along octet boundaries. It uses a fixed subnet mask, which is /8, /16 and /24, but classless addresses use a variable number of bits for the network and host portions of the address. The subnet mask is not fixed for a classless addressing system.

The classful addressing system assigned 50% of IPv4 addresses to Class A networks, 25% of IPv4 addresses to Class B, 12.5% of IPv4 addresses to Class C, and the remaining 12.5 % Shared to both Class D and E. The classful addressing plan wastes the most IP addresses, decreasing the availability of IPv4 addresses. For example, an organization with a network with more than 254 hosts would need a class B network with more than 65,000 addresses, wasting 64,700 IP addresses.

IETF introduced classless addressing to overcome the waste of IP addresses in 1993. There is no IP address class in a classless addressing system, but the addresses are still granted in blocks. In a classless addressing system, when an organization or individuals need connectivity to the Internet, it also grants a block or range of addresses according to the needs of the organization and individuals. For example, an individual requires only two addresses, and an organization is given thousands of addresses based on the number of its requirements.

Key Innovations:

  1. Aggregation: Combine multiple networks into a single route (e.g., 192.168.0.0/16 covers all /24 subnets).
  2. VLSM: Subnet a network into smaller chunks (e.g., split /24 into four /26 subnets).

Classful vs. Classless: Side-by-Side Comparison

FeatureClassful AddressingClassless Addressing (CIDR)
FlexibilityFixed classes (A, B, C)Custom prefix lengths (e.g., /24, /28)
SubnettingLimited to default masks (e.g., /8, /16)VLSM allows variable-sized subnets
Address EfficiencyHigh waste (e.g., 64k hosts for 500 needed)Minimal waste (allocate exact needs)
Routing TablesLarge tables (no aggregation)Compact tables (route aggregation)
Adoption Era1981–19931993–Present
Example150.10.0.0 (Class B, /16)150.10.0.0/22 (1,022 hosts)

Real-World Applications

Case Study 1: ISP Address Allocation

Comcast uses CIDR to allocate /29 blocks (8 addresses) to small businesses while reserving /20 blocks for enterprise clients.

Case Study 2: AWS VPC Subnetting

Amazon VPC allows users to create subnets like 10.0.1.0/24 for web servers and 10.0.2.0/28 for databases, optimizing security and cost.


To understand CIDR calculation, read our complete articles about IP address subnetting. Subnetting is essential for any networking technician and engineer. However, once you understand and pass your CCNA exam, then you can use our free online subnetting calculator for fast working.


FAQs

  • What is Classful IP Addressing?

    Classful IP Addressing divides IP addresses into fixed classes (A, B, C, D, E) based on their leading bits. Each class has a predefined subnet mask, which determines the division between the network and host portions. While simple, this method often leads to inefficient IP allocation in large networks.

  • What is Classless IP Addressing?

    Classless IP Addressing uses a variable-length subnet mask (VLSM) to allocate IP addresses more efficiently. Unlike Classful addressing, it does not rely on fixed classes, allowing networks to use only the required number of IPs. This flexibility reduces wastage and optimises address space.

  • How does CIDR relate to Classless IP Addressing?

    CIDR (Classless Inter-Domain Routing) is a technique used in Classless IP Addressing to define IP ranges with a prefix length. For example, 192.168.1.0/24 specifies the network portion with “/24”. CIDR improves routing efficiency and allows for more granular IP allocation.

  • What are the limitations of Classful IP Addressing?

    Classful IP Addressing lacks flexibility, as it assigns fixed subnet masks to each class. This often results in unused IP addresses, especially in Class A and B networks. It also struggles to accommodate modern networking needs, such as variable-sized subnets.

  • Why is Classless IP Addressing preferred in modern networks?

    Classless IP Addressing is preferred because it optimises IP allocation and supports subnetting of varying sizes. It allows networks to grow or shrink based on demand, reducing wastage. This adaptability makes it ideal for today’s dynamic networking environments.

  • What is the role of subnet masks in Classful and Classless addressing?

    In Classful addressing, subnet masks are predefined and fixed for each class, limiting flexibility. In Classless addressing, subnet masks are variable, enabling precise division of IP ranges. This flexibility allows for efficient use of IP address space.

  • Can Classful and Classless addressing coexist in a network?

    Yes, Classful and Classless addressing can coexist in certain scenarios. For example, legacy systems may use Classful addressing, while newer systems adopt Classless methods. Proper configuration ensures compatibility and efficient network operation.

     
Avatar of Asad Ijaz

Asad Ijaz

NetworkUstad's lead networking architect with CCIE certification. Specializes in CCNA exam preparation and enterprise network design. Authored 2,800+ technical guides on Cisco systems, BGP routing, and network security protocols since 2018. Picture this: I'm not just someone who writes about tech; I'm a certified expert in the field. I proudly hold the titles of Cisco Certified Network Professional (CCNP) and Cisco Certified Network Associate (CCNA). So, when I talk about networking, I'm not just whistling in the dark; I know my stuff! My website is like a treasure trove of knowledge. You'll find a plethora of articles and tutorials covering a wide range of topics related to networking and cybersecurity. It's not just a website; it's a learning hub for anyone who's eager to dive into the world of bits, bytes, and secure connections. And here's a fun fact: I'm not a lone wolf in this journey. I'm a proud member and Editor of Team NetworkUstad. Together, we're on a mission to empower people with the knowledge they need to navigate the digital landscape safely and effectively. So, if you're ready to embark on a tech-savvy adventure, stick around with me, Asad Ijaz Khattak. We're going to unravel the mysteries of technology, one article at a time!"