
This comparison decides whether the IP header is fine or corrupted. After a checksum value is obtained then this value is compared with the value that came in the header.

At the destination side which receives the data packet replaces the checksum value in the header with all zeros and then calculates the checksum based on the same algorithm as mentioned above. Now, the above is done at the source side which is sending the data packet. This means that if we divide the IP header is 16 bit words and sum each of them up and then finally do a one’s compliment of the sum then the value generated out of this operation would be the checksum. So, as far as the algorithm goes, IP header checksum is : 16 bit one’s complement of the one’s complement sum of all 16 bit words in the header NOTE: To have a good understanding of the IP header fields, refer to: IP Protocol Header Fundamentals So here is a basic format of how IP header looks like : Now, to calculate the IP header algorithm one must know the basic header structure of IP protocol. IP header checksum is calculated over IP header only as the data that generally follows the IP header (like ICMP, TCP etc) have their own checksums. At the destination side, the checksum is again calculated and crosschecked with the existing checksum value in header to see if the data packet is OK or not.

At the source side, the checksum is calculated and set in header as a field. This is the reason the checksum field is added to the header. This is because while traveling on network a data packet can become corrupt and there has to be a way at the receiving end to know that data is corrupted or not.
#CHECKSUM CALCULATOR FREE#
Through integrity, we mean a check on whether the data received is error free or not. Well, in this article we will have a brief discussion on the concept of checksum and then we will go into details of how checksum is calculated.Ī check sum is basically a value that is computed from data packet to check its integrity.

Have you ever given a thought about things like what exactly is checksum, why is it used and how it is calculated. If you have ever tried to understand the TCP/IP protocols then you would have definitely stumbled upon the checksum field that is the part of protocol headers like TCP, IP etc.
