Skip to content

User Datagram Protocol

UDP transfers individual datagrams without its own guarantee of delivery or order. A protocol built on top must provide any required reliability.

Also known asUDP
Cloud & Operations

What does UDP mean?

The User Datagram Protocol (UDP) is a transport protocol over IP that transfers individual datagrams between programs. RFC768 describes its small protocol scope and the lack of guaranteed delivery and duplicate protection. Order is not guaranteed either.

Example: sending measurements to a service

In a fictional design, a device sends measurements using UDP. The team must decide how the receiving service detects and handles missing, duplicate or delayed values. Saying “datagram sent” does not confirm receipt.

If every value were needed for billing, the transmission method would have to provide the necessary acknowledgements and retries in addition. An assumed speed advantage is not enough reason to choose it.

More extensive protocols can be built on UDP. QUIC, for example, adds its own mechanisms for reliable data streams and protected connections. The properties of such a complete solution must therefore not be equated with those of UDP alone.

Sources

Articles on this topic

Cloud & Operations with ASES

Hosting, deployment, maintenance and support