User Datagram Protocol - Fast, Connectionless Communication
UDP (User Datagram Protocol) is a connectionless, lightweight transport protocol that provides fast data transmission with minimal overhead. It's ideal for real-time applications where speed is more important than reliability.
Minimal overhead and no connection establishment delays.
No handshake required - data is sent immediately.
No guarantee of delivery, ordering, or error checking.
| Feature | UDP | TCP |
|---|---|---|
| Connection | Connectionless | Connection-oriented |
| Reliability | Best effort | Guaranteed |
| Ordering | Not guaranteed | Guaranteed |
| Speed | Very fast | Slower |
| Header Size | 8 bytes | 20+ bytes |
| Error Checking | Optional checksum | Full error detection |
| Use Cases | Gaming, streaming, DNS | Web, email, file transfer |
Domain name resolution - fast lookups are more important than reliability.
Real-time multiplayer games - low latency is critical.
Video/audio streaming - missing frames are acceptable.