Can we notice a changed note?
04Change a covered byte, change the destination, or recompute an error-check value.
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
- 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.
A receiver detects a changed covered byte; this is not authentication.
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.
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
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.
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 ↗