IPv4 Header in Detail

IPv4 Header in Detail

IPv4 Header in Detail
Fig 1: IPv4 Header

IP Protocol:

  1. IP Protocol Stands for Internet Protocol.
  2. It is host to host network layer delivery protocol designed for the internet.
  3. It is connectionless datagram protocol.
  4. It is unreliable protocol because it does not provide any error or flow control.

IP Header Format:

IP Header Format
Fig 2: IPv4 Header Format

Version: This Field defines the version of IP. It is Static 4 bit value.

2.    Header Length: This Field defines the length of the datagram header. It is 4-bit value.

3.    Type of Service: It is 8-bit value. It is used tell the network how to treat the IP packet. These bits are generally used to indicate the Quality of Service (QoS) for the IP Packet.

4.    Packet Length: 16 bit value indicating the size of the IP Packet in terms of bytes. This gives a maximum packet size of 65536 bytes.

5.    Identification: 16-bit field used for reassembling the packet at the destination.

6.    Flags: It is 3 bits value. It indicates if the IP packet can be further fragmented or not and if the packet is the last fragment or not of a larger transfer.

7.    Fragment offset: 13-bit value used in the reassembly process at the destination.

8.    Time to Live: 8-bit value telling the network how long an IP packet can exist in a network before it is destroyed.

9.    Protocol: 8-bit value used to indicate the type of protocol being used (TCP, UDP etc.).

10. Header checksum: It is 16-bit value. It is used to indicate errors in the header only. Every node in the network has to check and re-insert a new checksum as the header changes at every node.

11. Source address: 32-bit value representing the IP address of the sender of the IP packet.

12. Destination address: 32-bit value representing the IP address of the packets final destination.

13. Options: Options are not required for every datagram. They are used for network testing and debugging.

14. Padding: Variable size bit field. These bits are used to ensure a 32-bit boundary for the header is achieved.

 

Post a Comment

0 Comments