Skip to content
uencoder

UDP

UDP (User Datagram Protocol) is a connectionless, unreliable, unordered transport-layer protocol with low overhead and minimal delay, suited to real-time and broadcast traffic.

Purpose

It offers lightweight transport with no connection setup or acknowledgment, fitting real-time audio/video and DNS queries.

Mechanism

Connectionless: datagrams are sent directly with no handshake, no ACKs, and no flow control. The header is 8 bytes (source port, destination port, length, checksum). Reliability is the application's job (QUIC, for example, adds its own). Broadcast and multicast are supported.

Use cases

  • DNS queries (port 53)
  • Real-time audio/video (WebRTC)
  • DHCP discovery
  • Low-latency game traffic

Examples

  • Input
    8-byte header + payload
    Output
    Sent directly, no acknowledgment

    Low overhead

Common errors

UDP's unreliability loses data
Add application-layer retransmission or use QUIC

Related terms

Related tools

References