User Datagram Protocol (UDP)
User Datagram Protocol (UDP) is a standardized method for delivering time-sensitive data over a network without establishing a connection between two hosts. Learn how UDP works, how it compares with TCP, and where it is used.
What is User Datagram Protocol (UDP)?
User Datagram Protocol (UDP) is a core transport-layer protocol of the internet, alongside TCP. It sends messages, called datagrams, from one application to another with minimal overhead. UDP does not set up a connection, does not confirm delivery, and does not reorder data. That simplicity makes it fast and well suited to applications where speed matters more than perfect reliability.
How does UDP work?
- The sending application hands data to UDP with a destination IP address and port.
- UDP adds a small header with source port, destination port, length, and a checksum, then passes the datagram to IP.
- The datagram travels across the network independently.
- The receiving host delivers it to the application listening on the destination port.
If a datagram is lost, duplicated, or arrives out of order, UDP does nothing about it; the application decides whether that matters. Common uses include DNS lookups, voice and video calls, streaming, online games, DHCP, syslog, and modern protocols such as QUIC (used by HTTP/3). Some remote desktop and VPN protocols also use UDP for better performance.
UDP vs. TCP
TCP is connection-oriented and reliable, with a handshake, acknowledgments, and retransmissions. UDP is connectionless and lightweight. TCP suits web pages, file transfers, and email; UDP suits real-time traffic, where a late packet is no better than a lost one.
Why does UDP matter?
UDP keeps real-time communication responsive. Because it has no handshake, however, the source address of a UDP packet is easy to spoof, which attackers exploit in amplification attacks that flood victims with responses from misconfigured servers. Limiting which UDP services are exposed, and configuring them securely, reduces that risk.
Frequently asked questions
What is UDP?
UDP (User Datagram Protocol) is a standardized method for delivering time-sensitive data over a network without establishing a connection between two hosts.
Why would you use UDP instead of TCP?
For real-time or simple request-response traffic, such as voice, video, gaming, and DNS, where low delay matters more than reliable delivery.
Is UDP secure?
UDP itself has no encryption or authentication. Security comes from protocols built on top of it, such as DTLS or QUIC, and from careful firewall rules.
Manage remote connections over any transport
Centralize RDP, SSH, VNC, web, and cloud console connections in one app.
Related terms
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP) is a communication standard for establishing and maintaining a two-way delivery stream of octets between two endpoints on a shared network.
Read now →Domain Name System (DNS)
The Domain Name System (DNS) is the internet's system for translating an alphabetic domain name into a numeric IP address.
Read now →Packet
A packet is a section of data that has been divided into several pieces for easier transfer and is later reassembled with its counterparts to form a whole.
Read now →