The TCP checksum field stores a calculated value in the TCP header. It helps the receiver detect whether a TCP segment was corrupted during transmission. section 22.2.1
A receiver uses the field as follows:
- Calculates its own checksum from the received segment. section 22.2.1
- Compares that value with the checksum carried in the TCP header. section 22.2.1
- Discards the segment and sends no acknowledgment when the values differ, causing the sender to retransmit it. section 22.2.1
