Explain with example classification of IPv4 addresses.

Solution:-

Different IP address classes in IPv4:- Class A, Class B, Class C, Class D, Class E. 

Class A :

Class A IP address format is given below:

In this, the first bit is ‘0’. The next 7 bits are used indicate network id. Rest of the 3 bytes are used to indicate host id.

Thus the First Byte in Class A type of IP address will have a range from 0 to 126.

Example : 10.1.2.1

In this, the first byte ‘10’ has first bit 0, and hence it belongs to class A IP address.

Class B : 

Class B IP address format is given below:

In this, the first two bits are ‘1 0’. The next 14 bits are used indicate network id. Rest of the 2 bytes are used to indicate host id. 

Thus, the first byte of class B type of IP address has a range from 128 to 191.

Example : 187.4.5.1

In this address, the first byte ‘187’ has first two bits as 10.

Class C :

Class C IP address format is given below:

In this, the first three bits are ‘1 1 0’. The next 21 bits are used indicate network id. Rest of the One byte is used to indicate host id. 

Thus the first byte of the IP address in class C has range from 192 to 223.

Example : 192.168.1.2

In this the first three bits are 110, which represents the Class C type IP address.

Class D:

Class D IP address format is given below:

If first 4 bits are ‘1 1 1 0’ the IP address belongs to class D. The IPv4 networking standard defines Class D addresses as reserved for multicast. 

Multicast is a mechanism for defining groups of nodes and sending IP messages to that group rather than to every node on the LAN(broadcast) or just one other node (unicast). 

Multicast is mainly used on research networks.As with Class E, Class D addresses should not be used by ordinary nodes on the Internet.

The range for first byte of class D starts from 224 till 239.

Example: 225.25.2.1

Here, the first 4 bits are 1110.

Class E:

Class E IP address format is given below:

If first 5 bits are ‘1 1 1 1 0’ the IP address belongs to class E. For class E minimum value for reserved address is 240.0.0.0 to 255.255.255.255. These are used for research work in IP

Example: 245.5.6.2

Here, the first 5 bits are 11110.

Comments

Popular posts from this blog

State the functions of Hub, Repeater, Bridge and Router.

Describe the OSI model with neat diagram.

Explain Database languages.