Last Updated : 04 Aug, 2025
Classful IP addressing is an obsolete method for allocating IP addresses and dividing the available IP address space across networks. It was used from 1981 to 1993 until the introduction of CIDR (Based on Prefixes rather than classes). Classful method categorizes IP addresses into five classes (A, B, C, D, and E), each defined by the first few bits of the address and serving specific ranges of purposes. The functionality of classful networking also extended to ease of configuration. Network administrators could set up networks with default subnet masks without the need for detailed subnetting strategies, which was particularly beneficial in less complex networking environments.
Dotted Decimal NotationSome points to be noted about dotted decimal notation:
As the Internet grew, classful addressing led to significant IP wastage and routing inefficiencies
The 32-bit IP address is divided into five sub-classes. These are given below:
Each of these classes has a valid range of IP addresses. Classes D and E are reserved for multicast and experimental purposes respectively. The order of bits in the first octet determines the classes of the IP address.
The class of IP address is used to determine the bits used for network ID and host ID and the number of total networks and hosts possible in that particular class. Each ISP or network administrator assigns an IP address to each device that is connected to its network.
Classful AddressingNote:
IP addresses belonging to class A are assigned to the networks that contain a large number of hosts.
The higher-order bit of the first octet in class A is always set to 0. The remaining 7 bits in the first octet are used to determine network ID. The 24 bits of host ID are used to determine the host in any network. The default subnet mask for Class A is 255.x.x.x. Therefore, class A has a total of:
IP addresses belonging to class A ranges from 0.0.0.0 - 127.255.255.255.
Class A Class BIP address belonging to class B is assigned to networks that range from medium-sized to large-sized networks.
The higher-order bits of the first octet of IP addresses of class B are always set to 10. The remaining 14 bits are used to determine the network ID. The 16 bits of host ID are used to determine the host in any network. The default subnet mask for class B is 255.255.x.x. Class B has a total of:
IP addresses belonging to class B ranges from 128.0.0.0 – 191.255.255.255.
Class B Class CIP addresses belonging to class C are assigned to small-sized networks.
The higher-order bits of the first octet of IP addresses of class C is always set to 110. The remaining 21 bits are used to determine the network ID. The 8 bits of host ID are used to determine the host in any network. The default subnet mask for class C is 255.255.255.x. Class C has a total of:
IP addresses belonging to class C range from 192.0.0.0 – 223.255.255.255.
Class C Class DIP address belonging to class D is reserved for multi-casting. The higher-order bits of the first octet of IP addresses belonging to class D is always set to 1110. The remaining bits are for the address that interested hosts recognize.
Class D does not possess any subnet mask. IP addresses belonging to class D range from 224.0.0.0 – 239.255.255.255.
Class D Class EIP addresses belonging to class E are reserved for experimental and research purposes. IP addresses of class E range from 240.0.0.0 – 255.255.255.255. This class doesn’t have any subnet mask. The higher-order bits of the first octet of class E are always set to 1111.
Class E Range of Special IP Addresses169.254.0.0 – 169.254.0.16 : Link-local addressesRules for Assigning Host ID
127.0.0.0 – 127.255.255.255 : Loop-back addresses
0.0.0.0 – 0.0.0.8: used to communicate within the current network.
Host IDs are used to identify a host within a network. The host ID is assigned based on the following rules:
Hosts that are located on the same physical network are identified by the network ID, as all host on the same physical network is assigned the same network ID. The network ID is assigned based on the following rules:
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 AddressingThe problem with this classful addressing method is that millions of class A addresses are wasted, many of the class B addresses are wasted, whereas, the number of addresses available in class C is so small that it cannot cater to the needs of organizations. Class D addresses are used for multicast routing and are therefore available as a single block only. Class E addresses are reserved.
Problem with Classful AddressingSince 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.
Here is the main difference between Classful and Classless Addressing:
Parameter Classful Addressing Classless Addressing Basics In Classful addressing IP addresses are allocated according to the classes- A to E. Classless addressing came to replace the classful addressing and to handle the issue of rapid exhaustion of IP addresses. Practical It is less practical. It is more practical. Network ID and Host ID The changes in the Network ID and Host ID depend on the class. There is no such restriction of class in classless addressing. VLSM It does not support the Variable Length Subnet Mask (VLSM). It supports the Variable Length Subnet Mask (VLSM). Bandwidth Classful addressing requires more bandwidth. As a result, it becomes slower and more expensive as compared to classless addressing. It requires less bandwidth. Thus, fast and less expensive as compared to classful addressing. CIDR It does not support Classless Inter-Domain Routing (CIDR). It supports Classless Inter-Domain Routing (CIDR). Updates Regular or periodic updates Triggered Updates Troubleshooting and Problem detection Troubleshooting and problem detection are easy than classless addressing because of the division of network, host and subnet parts in the address. It is not as easy compared to classful addressing. Division of AddressRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4