Networking · Protocol

UDP

A lightweight way to send data with no connection and no delivery guarantee, which makes it fast enough for video calls, live streams and online games.

Network basics · updated

How it works

UDP sends each packet (a datagram) on its own: no handshake, no acknowledgements, no resending and no ordering. A lost packet is simply gone, and the app decides whether that matters. Its header is only 8 bytes, against at least 20 for TCP, and there is no connection to keep track of.

That suits real-time traffic, where a late packet is as useless as a lost one. Video calls, online games and live streams run over UDP, and so do most DNS lookups. QUIC, the base of HTTP/3, builds its own reliability on top of it. Some office networks block UDP, which is one reason WebRTC can fall back to TURN relays over TCP or TLS.

UDP vs the alternatives

More in Networking

Network basics

All 11 Networking terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.