PROTOCOL FIELD GUIDE
How UDP works
Send independent datagrams with an eight-byte transport header. UDP adds ports and a checksum but does not add delivery, ordering or retransmission.
- Default port
- Application dependent
- Transport / carrier
- IPv4 / IPv6
- Category
- core
1. Send without a handshake
The client sends application messages with IDs 1–8. The echo application replies with the same ID after receiving a message; these are application replies, never UDP acknowledgements.
2. Keep independent messages in flight
Messages leave 20 ms apart without waiting for replies. Message 4 arrives before 3. The numbers belong to the application, not a UDP sequence field.
3. Lose one and keep sending
Request 7 is lost. Request 8 still leaves on schedule. Since the server never receives 7, its application cannot send reply 7.
4. Complete the application round trips
Every received request gets a same-ID echo reply. Requests and replies can be in flight together. Follow replies 1, 2, 4, 3, 5, 6 and 8 all the way back to the client.
5. Account for every message
Eight requests were sent: seven reached the server and all seven replies reached the client. Only request 7 was lost; no reply 7 exists. The final ledger accounts for every ID, with no messages left in flight.
Protocol relationships
Protocols cooperate across layers. Compare the neighboring lessons to distinguish addressing, delivery, application semantics and encryption.
Standards and editorial method
Written and implemented independently by NavSprout. Lessons summarize public protocol standards using synthetic documentation addresses and fictional credentials. Consult the standards for complete wire formats and normative behavior.
RFC 768 ↗