What is UDP? User Datagram Protocol Explained

User Datagram Protocol (UDP) is a core communication protocol used across the internet for time-sensitive transmissions where speed is prioritized over data verification. This article covers what UDP is, how it functions, its primary advantages and limitations, and the common applications where it outperforms alternative protocols like TCP.

Understanding User Datagram Protocol

UDP operates at the Transport Layer (Layer 4) of the Open Systems Interconnection (OSI) model. Unlike Transmission Control Protocol (TCP), UDP is connectionless. This means it sends data packets—known as datagrams—directly to a destination without first establishing a dedicated handshake or verifying that the receiving system is ready to accept the data.

Because UDP does not establish a persistent connection, it removes the latency associated with setup processes, data acknowledgments, and error correction. For extended technical details and protocol documentation, you can explore this UDP resource website.

Key Characteristics of UDP

UDP vs. TCP

Feature UDP TCP
Connection Type Connectionless Connection-oriented
Speed Extremely fast, low latency Slower due to overhead
Reliability No guarantee of delivery Guaranteed delivery with retransmission
Header Size 8 bytes 20–60 bytes
Data Flow Continuous stream without checks Flow and congestion control

Common Use Cases for UDP

UDP is ideal for applications where dropping an occasional packet is preferable to waiting for delayed data: