UDP

Definition

User Datagram Protocol - faster but less reliable method of sending data over networks, suitable for applications where speed is crucial.

Use Cases

Frequently Asked Questions

What's the difference between UDP and TCP?
TCP is connection-oriented and focuses on reliability: it retransmits lost data, delivers bytes in order, and uses congestion control. UDP is connectionless and sends independent packets (datagrams) without guaranteeing delivery, ordering, or retransmission. UDP usually has lower overhead and can be faster for real-time traffic, but the application must handle loss, duplication, or reordering if it matters.
When should I use UDP?
Use UDP when low latency is more important than perfect delivery, or when your application can tolerate or correct loss. Common cases include real-time gaming, voice/video (VoIP, conferencing), live streaming, DNS queries, telemetry/metrics, and protocols built on UDP like QUIC (used by HTTP/3). Avoid UDP for data that must arrive reliably and in order (e.g., file transfers, many database connections) unless you add reliability at the application layer.
How much does UDP cost?
UDP itself is a free network protocol—there is no licensing cost. In cloud environments, costs come from the infrastructure carrying UDP traffic: data transfer (egress/ingress), load balancers or gateways that handle UDP, NAT usage, and compute resources processing packets. Pricing depends on region, bandwidth, and the specific networking components you use.

Category: networking

Difficulty: intermediate

Related Terms

See Also