IPv4 Header format
IPv4 Header format
Parts of IPv4
Ipv4 addresses consist of three parts:
• Network part: the network part indicates the distinctive variety that’s
appointed to the network. The network part conjointly identifies the category of
the network that’s assigned.
• Host part: the host part uniquely identifies the machine on your network. This
part of the ipv4 address is assigned to every host. For each host on the network,
the network part is the same, however, the host half must vary.
• Subnet number: this is the non-obligatory part of ipv4. Local networks that
have massive numbers of hosts are divided into subnets and subnet numbers are
appointed to that.
• Checksum is the error detection method used by upper layer protocols and is
considered to be more reliable than LRC, VRC and CRC. This method
makes the use of Checksum Generator on Sender side and Checksum
Checker on Receiver side.
• At the Sender side, the data is divided into equal subunits of n bit length by
the checksum generator. This bit is generally of 16-bit length.
• These subunits are then added together using one’s complement method.
This sum is of n bits.
• These subunits also contain checksum as one of the subunits. The resultant
bit is then complemented.
• If the result is non-zero it means the data contains an error and Receiver
rejects it.
Sender Site:
10101001 subunit 1
00111001 subunit 2
11100010 sum (using 1s complement)
00011101 checksum (complement of sum)
• Data transmitted to Receiver is:
• Receiver Site:
10101001 subunit 1
00111001 subunit 2
00011101 checksum 11111111
sum
00000000 sum's complement