6

When an IPv4 datagram comes to a router for forwarding, does it always update the value of the header checksum field?

1
  • 2
    Please also note that IPv4 is not using CRCs for checksums.
    – Oleg Hahm
    Commented Jan 19 at 8:34

2 Answers 2

11

Since the router changes the IPv4 header (it decrements the TTL), it needs to calculate a new value for the checksum, otherwise subsequent devices receiving the packet will think it is damaged.

This only applies to IPv4. IPv6 has eliminated the checksum, instead it relies on protocols above and below it to do any error checking.

0
0

Yes. From RFC 791:

Header Checksum: 16 bits

A checksum on the header only. Since some header fields change (e.g., time to live), this is recomputed and verified at each point that the internet header is processed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.