What it is
UDP (User Datagram Protocol) is a transport protocol that delivers discrete messages called datagrams. Unlike TCP, it does not create a connection or maintain a stream. The unit you send is the unit the receiver gets, assuming it arrives at all.
Key points
- Each UDP packet is a message. If it is lost, UDP does not retry.
- Used when low latency matters or when higher layers handle reliability.
- Often paired with protocols like DNS, VoIP, streaming, and QUIC.
Concrete example
A DNS resolver sends a small UDP query to port 53. If the reply is lost, the resolver simply retries the query, often to a different server, instead of relying on UDP to repair the loss.