Summary

  • RFC 768 gave zero two deliberately different jobs: a computed zero became all ones, while an all-zero field announced that no checksum had been generated at all.
  • Reports of undetected errors turned a local efficiency shortcut into an end-to-end evidence problem — which is why IPv6 made the UDP checksum mandatory by default.
  • The later IPv6 tunnel exception is not general UDP freedom. It is port-scoped, endpoint-configured, and bundled with integrity, path and security duties.

The Field That Could Decline to Testify

In August 1980, Jon Postel wrote a protocol specification short enough to read over coffee. RFC 768 described the User Datagram Protocol in eight bytes of header and a handful of pages — and buried inside it one of the most quietly consequential decisions in networking: a sixteen-bit field that was permitted to say nothing at all.

That field was the checksum. And in UDP, zero did not mean “the data passed.” It meant the sender had declined to testify.

The header looked austere, but the checksum reached further than the payload. RFC 768 prefixed a conceptual IP pseudo-header — source and destination addresses, protocol number, UDP length — so the check could catch damage and also the quieter disaster of a datagram delivered to the wrong endpoint.

One’s-complement arithmetic can legitimately produce zero. The specification reserved all ones for that valid result, which left all zeroes free to mean something else entirely: the transmitter had generated no checksum, perhaps for debugging, perhaps because a higher layer had decided it did not care.

Read that again, because the history turns on it. Zero did not say the data had passed. It said this layer supplied no verdict.

A Private Saving, a Public Blind Spot

RFC 1122 still let an application control checksum generation, but required checksumming to be on by default. Its discussion recorded numerous undetected errors after applications confined to local-area networks switched the checksum off for efficiency.

The sender saved work immediately. Every receiver, application and operator downstream lost an independent way to reject corruption or misdelivery. A local choice quietly rewrote the evidence available to strangers who had never approved it.

That is the difference between a mechanism and an authority. UDP could represent absence; that did not prove one endpoint should decide, on behalf of an unknown path and an unknown receiver, that the evidence was dispensable.

IPv6 Restores a Minimum Common Verdict

IPv4 checksummed its own header, though never the UDP payload. IPv6 deliberately dropped the internet-layer header checksum — and, to compensate, RFC 2460 made UDP’s checksum mandatory and told receivers to discard any packet whose checksum field read zero. The transport pseudo-header now protected the IPv6 addresses and delivery context as well.

RFC 8200 preserves that default. An IPv6 originator computes the checksum and converts a computed zero to hexadecimal FFFF; a receiver discards a zero-checksum UDP packet and should log the error.

None of this was a claim that sixteen bits authenticate a sender. They do not. It was a decision that minimum delivery evidence should not evaporate simply because the sender preferred less work.

UDP-Lite Declares What It Leaves Exposed

Some media applications would rather have a damaged payload than silence. UDP-Lite, standardised in RFC 3828, answered that need without pretending the risk had vanished: the application may choose partial coverage, but the UDP-Lite header and IP pseudo-header stay inside the checksum, and an all-zero transmitted checksum is forbidden.

Protected and unprotected regions are therefore declared out loud. A receiver opts into partial coverage and sets its own minimum. The design localises the choice instead of promoting “no evidence” into a universal convention.

The Tunnel Exception Names Its Owners

High-speed tunnel endpoints sometimes need to encapsulate already-protected packets without reading an entire outer payload. RFC 6935 updated IPv6 to permit a zero UDP checksum in constrained situations, chiefly tunnel transports; RFC 6936 supplied the missing constitution.

Zero mode stays disabled by default. An application or protocol selects the sending and receiving ports. A receiving port that accepts zero must also accept calculated checksums. Designers must weigh checksummed UDP and UDP-Lite first, protect control information and state, account for fragmentation and corruption, verify paths that may contain intolerant middleboxes, and resist injection or overload.

The rules move the locus of permission. The exception belongs to a named tunnel relationship whose endpoints and operator can configure, monitor and withdraw it. It is not a blank cheque that every sender carries into the public Internet.

Sources and Limits

The history is documented in RFC 768, RFC 1122, RFC 2460, RFC 3828, RFC 6935, RFC 6936, RFC 8085 and RFC 8200. They establish protocol rules and recorded concerns, not uniform deployment or a measured global error rate. The checksum detects classes of accidental corruption; it is not cryptographic authentication.