Communication Networks · Visualized
UDP: User Datagram Protocol
Transport Reliability
TCP connections, retransmission timers and sliding windows that make lossy links behave.
6 interactive subtopics — each one animated, step-through and explained.
UDP: User Datagram Protocol
Transport ReliabilityUDP is the minimal transport: it takes an application message, stamps an 8-byte header (source port, dest port, length, checksum) and throws it onto IP. No connection setup, no retransmission, no ordering — just one datagram, best effort. That simplicity is a feature: no handshake delay, no head-of-line blocking, and almost no overhead, which is exactly what live audio, gaming and DNS want.
How UDP: User Datagram Protocol Works
- The application hands UDP a message and a destination port — that is the whole API.
- UDP prepends its 8-byte header; ports identify which app on each machine gets the data.
- The datagram is handed straight to IP and routed — if a router drops it, nobody resends it.
- The checksum (optional in IPv4) detects corruption; a bad datagram is silently discarded.
- Applications needing reliability add their own recovery — or retransmit at the app level (QUIC, WebRTC, gaming state updates).
UDP: User Datagram Protocol Worked Example
Try it: Compare a DNS lookup and a file transfer over the same lossy link.
The DNS query rides one UDP datagram — one RTT, gone, done. The TCP file transfer must handshake, negotiate, retransmit every lost segment, then tear down: dozens of RTTs. For a single quick question UDP wins; for a guaranteed bulk delivery TCP wins.
UDP: User Datagram Protocol: Key Facts to Remember
Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
See how packets really travel
Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.