Introduction of Classful IP Addressing (original) (raw)

Last Updated : 9 Apr, 2026

Classful IP addressing was an early method (1981–1993) used to assign IP addresses and divide the IPv4 address space into fixed classes. Each IP address was categorized based on its leading bits, and the class determined its network and host portions.

Dotted Decimal Notation

It is a human-readable format used to represent IPv4 addresses, where the 32-bit binary address is divided into four 8-bit segments (bytes) and written as decimal numbers separated by dots.

Dotted Decimal Notation

Dotted Decimal Notation

Hexadecimal Notation

This represent a IPv4 addresses in the 32-bit binary address is written using base-16 numbers. In this notation, each 8-bit segment (byte) of the IP address is converted into a two-digit hexadecimal value, making the address shorter and easier to read than its binary form.

Hexadecimal Notation

Need For **Classful Addressing

As the Internet grew, classful addressing led to significant IP wastage and routing inefficiencies

need_for_classful_addressing

Need for Classful Addressing

**Classes of IP Addressing

The 32-bit IP address is divided into five sub-classes. These are given below:

byte_1

Classful Addressing

**Note:

Occupation of The Address Space In The Classful Addressing

Occupation of The Address Space In Classful Addressing

Class A

Class A

Class B

Class B

Class C

Class C

Class D

Class D

Class E

Class E

Range of Special IP Addresses

Rules for Assigning Host ID

Host IDs are used to uniquely identify a host within a network and must follow these rules:

Rules for Assigning Network ID

The network ID identifies the physical network to which hosts belong. All hosts on the same physical network share the same network ID and it must follow these rules:

Structure of Classful Addressing

Class Leading Bits Net ID Bits Host ID Bits No. of Networks Usable Hosts / Network Start Address End Address
A 0 8 24 2⁷ = 128 **2²⁴ − 2 = 16,777,214 0.0.0.0 127.255.255.255
B 10 16 16 2¹⁴ = 16,384 **2¹⁶ − 2 = 65,534 128.0.0.0 191.255.255.255
C 110 24 8 2²¹ = 2,097,152 **2⁸ − 2 = 254 192.0.0.0 223.255.255.255
D 1110 224.0.0.0 239.255.255.255
E 1111 240.0.0.0 255.255.255.255

In the above table No. of networks for class A should be 127. (Network ID with all 0 s is not considered)

Problems With Classful Addressing

Classful addressing resulted in inefficient IP address utilization due to fixed address classes.

problems_with_classful_addressing

Since there are these problems, Classful networking was replaced by Classless Inter-Domain Routing (CIDR) in 1993. We will be discussing Classless addressing in the next post.

Classful and Classless Addressing

**Classful Addressing **Classless Addressing (CIDR)
IP addresses are divided into fixed classes (A, B, C, D, E) IP addresses are allocated without fixed classes using variable-length prefixes
Less practical due to rigid address allocation More practical and flexible in real networks
Network and host portions are fixed based on the class Network and host portions are defined by the prefix length
Subnetting is not supported by default Subnetting is inherently supported
Does not support Variable Length Subnet Mask (VLSM) Supports VLSM
Poor utilization; leads to significant IP address wastage Efficient utilization of IP addresses
Large routing tables; no route aggregation Supports route aggregation, resulting in smaller routing tables
Does not support CIDR Fully supports CIDR
Limited scalability due to fixed classes Highly scalable for large and modern networks
Simpler but inefficient due to rigid structure More efficient and manageable despite slightly higher complexity
Network ID and Host ID only Network prefix and Host ID (flexible boundary)