Classful IP addressing is an
In class A, the first 8 bits are for the network part of the address, and the remaining 24 bits are reserved for the host part of the address. The leading first bit of the octet is fixed.
We subtract two addresses from the network addresses since they are considered special addresses.
Usable addresses are as follows:
Class A is used for large-sized networks.
Note: The IP range 127.x.x.x is reserved for
. loopback Packets sent through this IP never reach the destination but are looped back to the network card only. It is used for diagnostics purposes.
In class B, the first 16 bits are for the network part of the address, and the remaining 16 bits are reserved for the host part of the address. The leading first two bits of the octet are fixed.
Usable addresses are as follows:
Class B is used for medium-sized networks.
In class C, the first 24 bits are for the network part of the address, and the remaining 8 bits are reserved for the host part of the address. The leading first three bits of the octet are fixed.
Usable addresses are as follows:
Class C is used for small-sized networks.
Class D is reserved for multicasting. Higher-order bits of the octet are set as
Class E is reserved for experiment and research purposes. Higher-order bits of the octet are set as
IP class | Leading bits | Network address bits | Number of networks | Host address bits | Number of hosts | Start address | End address | Subnet mask |
A | 0 | 8 | 128 | 24 | 16,777,216 | 0.0.0.0 | 127.255.255.255 | 255.0.0.0 |
B | 10 | 16 | 16,384 | 16 | 65,536 | 128.0.0.0 | 191.255.255.255 | 255.255.0.0 |
C | 110 | 24 | 2,097,152 | 8 | 256 | 192.0.0.0 | 223.255.255.255 | 255.255.255.0 |
D | 1110 | - | - | - | - | 224.0.0.0 | 239.255.255.255 | - |
E | 1111 | - | - | - | - | 240.0.0.0 | 255.255.255.255 | - |
Internet uses class A, B, and C addresses. The issue with IPv4 classful addressing is that thousands of class A addresses are wasted, including many class B addresses and a few class C addresses that are insufficient to meet the demands of companies.
Due to these issues, Classless Inter-Domain Routing (CIDR) has taken the place of classful networking.
Free Resources