System Design
2. Networking FundamentalsAnimated
UDP
Fast, connectionless datagrams with no delivery guarantee.
The idea
UDP just sends packets. No handshake, no retransmission. The application handles loss if it cares.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Every peer is both client and server.
- step:
- 1/4
- at:
- Peer A
1/9
The green dot is a request moving through the system.
Step by step
- 1Application sends a datagram
- 2It may arrive, arrive late, or never
- 3Receiver processes whatever arrives
- 4App decides how to handle loss
Where it is used
Video calls, games, DNS, QUIC.
Watch out for
Packets can be lost or reordered, so design for it.