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

Why does a four-byte note count as twelve bytes?

03

Count the message and its eight-byte UDP wrapper, then move the declared boundary.

RFC 768 · FormatEXAMPLE
1 / 4 · Count the message bytes

Each square is one byte. These ASCII examples use one byte per shown letter; the message can also have zero data bytes.

The app’s 4 data bytes

P50I49N4EG47

What happens if you change this?

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

3 / 3
03
The example UDP Length is twenty octets.

The example UDP Length is twenty octets.

Why does a four-byte note count as twelve bytes?Count the message and its eight-byte UDP wrapper, then move the declared boundary.UDP HEADER · 8 OCTETSSource portDestination portLengthChecksumExample payload: 12 octets8 + 12 = 20 octetsLength includes the header, not just application data

Key idea: UDP Length counts its eight-byte header and its data. Extra IP payload bytes are not automatically extra UDP user data.

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

UDP Length includes its header and data; surplus bytes are separate.

These reference examples may differ from the selected experiment.

  • The minimum UDP Length is eight.
  • The original 16-bit field bounds the ordinary UDP datagram length; IPv6 jumbograms are a separate extension.

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

RFC 768 Format/Fields: ordinary UDP Length is an unsigned 16-bit count with minimum 8, including UDP header and data but excluding IP header. This length-only experiment assumes a complete IP payload and does not run a checksum gate. It rejects declared length above available bytes or below 8; shorter UDP length leaves a surplus area, not automatic user data. RFC 9868 formally updates RFC768 to define options there. IPv6 jumbograms are a separate extension. 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.

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 ↗