April 07, 2018

IPv4 header

IPv4 header
<IPv4 header>


FeildDescription
VersionThe version of IP.
* IPv4 : 0b0100
IHL(IP Header Length)Header length divided by 4.
* Generally 5.
TOS(Type Of Service)QoS related value.
Total LengthHeader length + Data length.
IdentificationThe separator for identifying fragmented packets. When the packets with same identification are combined, they become the original data.
Flags
(3 bits)
The option for fragmentation.
* X : reserved(100).
* D : Do not fragment(010).
* M : More fragments follow(001).
Fragment ofsset
(13 bits)
Fragmented packet's offset.
TTL(Time To Live)Transmissible distance of a packet.
ProtocolThe type of upper protocol.
* 01 : ICMP
* 02 : IGMP
* 06 : TCP
* 17 : UDP
Header checksumThe checksum value for checking error of  IPv4 header.
Source address
Destination address
IPv4 address.