Who notices a lost reply?
05Ask an app to add one bead, then lose a request or reply and try again.
This fictional app puts request ID 7 in its message data. UDP has no request-ID field and promises no acknowledgement.
An app-defined request
What happens if you change this?
Make one change, then watch again. Restart restores the original example.
An application-defined reply can supply evidence that UDP itself does not.
Key idea: Replies, request IDs, retries and duplicate-action protection belong to an application protocol, not UDP itself.
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
Receipts, retries and duplicate-action protection belong to the app.
These reference examples may differ from the selected experiment.
- A successful local send does not prove the remote application received the message.
- This RFC supplies no handshake, retransmission timer, congestion controller, or cryptographic peer authentication.
The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.
RFC768 User Interface/Introduction supplies datagrams and source/destination information, without transport acknowledgement or retransmission. This toy app retries at tick 4 at most once, then stops waiting at tick 12; those are chosen values, not UDP timers. Its remembered ID 7 can suppress a repeated action and replay a reply. A matching unprotected ID does not authenticate the response. Real UDP applications must address congestion, rate, timeout and message-size guidance (RFC8085), and define any reliability/security protocol explicitly. 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.