IPv4 (Internet Protocol version 4), is the 4th version of Internet Protocol. We have a large number of addresses in IPv4. In this article, we will discuss various classes defined in IPv4.
History of IPv4
At the beginning of the IPv4 design, the complete address was divided into two parts. The first part was known as Network identifier and the rest of the part was known as a host identifier. But, they were quickly found to be inadequate.
ICANN is responsible for assigning IP Addresses.
In 1981, according to most-significant octet, IPv4 addresses are defined in five different classes. These classes are A, B, C, D, and E.
IPv4 Different Classes
Although, in IPv4 we have 4,294,967,296 unique addresses. But, some of these addresses are not used for communication purpose. Also, one complete octet from Classes A, B, and C is used for Private IP addresses. Know more about Public and Private IP addresses. Below is the table which categories different address in different network classes.
|S.No||Network Class||Theoretical |
Starting Address Range
Ending Address Range
|1.||A||0.0.0.0||127.255.255.255||Very large networks|
|5.||E||240.0.0.0||255.255.255.255||Reserved for Future Research|
Now, we will discuss each network class in details.
The range of the first octet of class A addresses are from 0 to 127. Thus, in the binary system, the first bit of the first octet set to zero. So, in the binary system it will be :
00000001 – 01111111
1 – 127
But, the addresses from 0.0.0.0 to 0.255.255.255 are not usable in communication. Also, the addresses from 127.0.0.0 to 127.255.255.255 are reserved for loopback purpose. So, the range of usable IP addresses of class A is from 220.127.116.11 to 18.104.22.168.
The default subnet mask of Class A network is 255.0.0.0. So, there will be maximum 16,777,216 hosts which can be connected in a single network. The total number of different networks will be 126. The Binary representation of Networks and Hosts will be :
The range of the Class B address is from 22.214.171.124 to 126.96.36.199. So, the first two bit of the first octet is always set to 10. The binary representation of the first octet will be:
10000000 – 10111111
128 – 191
The default subnet mask of class B address is 255.255.0.0. The Binary representation of Class B Networks and Hosts will be :
The range of Class C address is from 192.0.0.0 to 188.8.131.52. So, the first three bit of the first octet is always set to 110. The binary representation of the first octet will be:
11000000 – 11011111
192 – 223
The default subnet mask of class B address is 255.255.255.0. The Binary representation of Class C Networks and Hosts will be :
The range of Class D address is from 184.108.40.206 to 220.127.116.11. So, the first four bit of the first octet is always set to 1110. The binary representation of the first octet will be:
11100000 – 11101111
224 – 239
Note: The IP addresses of IPv4 Class D is used for multicasting purpose only. These IP addresses are not directly participating in computer networking. So, class D not have any subnet mask.
Class E is reserved for Research or study purposes. So, this class does not participate in the computer network. Like class D, this class also does not have any subnet mask. The range of addresses of this class starts from 240.0.0.0 to 255.255.255.0.
In this article, we discussed various classes of IPv4. We also discussed some different addresses of different IP classes and their range. Subnet Mask is used in Class A, B, and C but not in Class D and E. We also discuss the binary representation of different network classes.