Visual RFC.
ALL RFCs / RFC 768
Read the RFC ↗
RFC 768 / PROTOCOL MECHANISMS

Can we notice a changed note?

04

Change a covered byte, change the destination, or recompute an error-check value.

RFC 768 · FieldsEXAMPLE
1 / 4 · A note travels with addressing information

We want to notice accidental changes to the covered bytes. A checksum is an error check, not a lock or a signature.

Protect the selected bytes against accidental changes

UDP messagePING
From
192.0.2.10
To
198.51.100.20

What happens if you change this?

Make one change, then watch again. Restart restores the original example.

3 / 3
03
A receiver detects a changed covered byte; this is not authentication.

A receiver detects a changed covered byte; this is not authentication.

Can we notice a changed note?Change a covered byte, change the destination, or recompute an error-check value.IP pseudo-headerUDP headerpayload: changed byteone’s-complement sumChecksumCorruption detected ≠ authenticated senderOriginal IPv4 checksum omission differs from ordinary IPv6 UDP

Key idea: A checksum can detect covered changes. It cannot prove who wrote the note, and a missing check is not a successful check.

Terms
UDP
User Datagram Protocol: sends separate messages to numbered endpoints with a small header.
Datagram
One separately carried message, rather than an ordered byte stream.
Port
A numbered endpoint used to choose where a message goes within a host.
Payload
The carried message data, excluding the wrapper being discussed.
Checksum
A computed error-check value; it is not proof of identity.

Look up a term in the glossary ↗

Rules & examples

An error check can catch changes without proving who sent the note.

These reference examples may differ from the selected experiment.

  • The pseudo-header binds source, destination, protocol, and UDP length into error detection.
  • A zero transmitted checksum in the original IPv4 context means no checksum; a computed zero is sent as all ones.

The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.

RFC 768 Fields: 16-bit one’s-complement checksum over IPv4 pseudo-header, UDP header with checksum initially zero, and data. An odd final byte has a computational zero pad that is not sent or counted in UDP Length. Computed zero is transmitted FFFF; transmitted 0000 means omitted. RFC1122§4.1.3.4 requires generation/validation support, default checksumming on, and silent discard of a nonzero invalid checksum. The omission case is an explicit selected IPv4 policy. RFC8200§8.1 uses an IPv6 pseudo-header and generally requires UDP checksums; narrow exceptions belong to their specifications. These experiments use ordinary IPv4 UDP without RFC 9868 options or fragmentation. No packets are sent.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

What changed
RFC 768 · IPv4 contextRFC 8200 § 8.1 · IPv6

IPv6 generally requires UDP checksums and uses an IPv6 pseudo-header; do not carry the original IPv4 zero-checksum rule into ordinary IPv6 UDP.

Read the updated RFC section ↗

All chapters in RFC 768

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗