Checksum
Also called: Internet checksum, error detection, checksum verification
A checksum is a compact value calculated from data to help detect accidental corruption. The receiver recomputes or verifies the value and compares the result with what the sender supplied. Internet protocols use several error-detection schemes; the Internet checksum used by TCP and UDP is a particular 16-bit arithmetic construction.
For example, a bit damaged during transmission may cause the received bytes to fail checksum verification. Some patterns of changes can still escape detection because many possible messages share the same small checksum. An attacker who can rewrite a message can also recalculate an ordinary checksum. Detecting accidental errors is therefore different from cryptographic integrity protection, which is designed to resist deliberate modification.
- Read first
- Encapsulation
- Further reading
- IETF RFC 1071 — Computing the Internet Checksum