EVOPEDIA

← all systems · see it in The System

User Datagram Protocol (UDP)

boundaryInside: the 8-byte header (source port, destination port, length, checksum), the checksum over the pseudo header, port demultiplexing to a bound receive port, the ICMP Port Unreachable answer, and the interface that lets programs create receive ports and send datagrams; by its own specification nothing else. Outside: IP and the links below; the operating system's sockets and buffers that implement it (carrier); the programs and protocols that run on it and build back reliability, ordering, pacing and security (DNS, DHCP, NTP, SNMP, syslog, RTP, TFTP, QUIC); middleboxes that keep guessed per-flow state; attackers who forge sources.
nested levelA transport protocol (rung 12, technology) of the Internet protocol suite, between IP and the application protocols; implemented in every host's operating system and used through the sockets interface.
scaletechnological

From the walk

Nobody knows why UDP has its own length field. It was already there in the very first specification, dated 21 January 1979 (counting only the data then, the header and the data from 1980), and neither text says why; the October 2025 standard that extends UDP says 'the real reason remains unknown', and then uses that unexplained room, the gap between UDP's length and IP's, to give UDP the header options it had lacked. The common systems it was tested on simply ignore the extra bytes, but some network paths strip or drop them, and part of the design exists only to get past boxes in the middle that handle it wrongly (src:ien71, src:rfc768, src:rfc9868).

Definition. The User Datagram Protocol makes available 'a datagram mode of packet-switched computer communication' over IP, letting programs 'send messages to other programs with a minimum of protocol mechanism'; delivery and duplicate protection are not guaranteed (RFC 768, Postel 1980). It adds only ports and a checksum to IP: no connection, no acknowledgement, no ordering, no retry, no congestion or flow control. Walked as the protocol, its implementation in hosts, and what the programs built on it add back for themselves. Definition drawn from the encyclopedia entry (Wikipedia, CC BY-SA).

On this page: Properties 3 · Measures 36 · Open contentions 5 · Cross-scale patterns 25 · Valence partners 18 · Partners and parts 41 · Notes 3 · Layers 63 · Sources 35

Properties published scienceour proposal

Sourced fields, and our own readings.

aliasesUser Datagram Protocol
born at21 January 1979 (IEN 71, Reed and Postel); published again as RFC 768 on 28 August 1980
born precisionday

Measures (36) published science

characteristic clock: one DNS-style request-response exchangewithin seconds
initial retransmission timeout recommended for UDP programs1 s
DHCP retransmission delays4, then 8, doubling to at most 64 (each randomized by +/-1)
rate limit for a sender with no return trafficat most 1 datagram per 3
robustness window for delayed or duplicate datagrams2 minutes
minimum keep-alive interval15 s
NAT UDP mapping timer, required minimum2 (5 or more recommended) minutes
home-gateway UDP binding timeout, median of 34 devices (single outbound packet)90 (range 30 to 691; mean 160) s
UDP header size8 bytes
IP protocol number17 number
maximum UDP payload, IPv465,507 (65,527 on IPv6) bytes
DNS message size limit over UDP (RFC 1035)512 bytes
safe syslog message size over UDP, IPv4480 (1180 on IPv6) octets
QUIC default UDP payload size1350 bytes
QUIC share of global Internet traffic (2017 estimate)about 7 (over 30% of Google egress)
clients unable to use QUIC (UDP blocked or MTU too small)4.4 (0.3 more throttled) % of video clients, Nov 2016
QUIC server CPU cost against TLS/TCP, first measurementabout 3.5 times
UDP probe loss probability, INRIA to Maryland (1992 measurements)about 10 %
packet error ratio at 10 Gb/s by datagram size0.40 at 64 B; 0.20 at 1472 B; 0.071 at 1700 B; 1.3e-6 at 2000 B; 0 at 2200 B and above fraction lost
socket receive buffer, default and tuned212 kB default; 12 MB tuned bytes
chain yield of a fragmented datagramthe product of the fragments' delivery: any one lost loses all qualitative
largest bandwidth amplification factor found (NTP)4670 (average of the worst 10% of NTP amplifiers in Rossow's 2014 survey of 14 protocols; 556.9 over all NTP amplifiers; superseded as the largest known by memcached, below) times
UDP reflection attacks seen per day by a honeypot network (2014-2017)5,120 mean (median 5,150; max 13,800) attacks per day
autonomous systems allowing IP spoofing (Aug 2013)24.6 fully, 13.9 partly %
NTP monlist amplifiers at peak (15 Dec 2013)1,651,199 servers
fall in NTP monlist amplifiers after notification92 in 13 weeks %
NTP share of global Internet traffic, peak (Feb 2014)about 1 (from 0.001; back to about 0.1) %
share of amplification attacks using CLDAP, NTP or DNS at a large IXP (2019-2020)89.9 %
overlap between IXP-seen and honeypot-seen amplification attacks8.18 (33% of target IPs)
QUIC limit on data to an unvalidated address3 times the bytes received
largest amplification factor reported for memcached (2018)up to 51,200 times
EDNS(0) suggested starting payload size4096 octets
IPv4 prefixes able to spoof from behind a NAT (year to Aug 2019)6.4 %
packets failing the TCP or UDP checksum, worst trace1 in 1,100 (hourly peak 1 in 400) packets
undetected checksum errors1 data packet in 16 million to 1 in 10 billion packets
time from the first UDP specification to RFC 76819 months (21 Jan 1979 to 28 Aug 1980)

Open contentions (5) open contention

Where sources or readings disagree. Both stay on the map.

Cross-scale patterns seen here (25) our proposal

Shapes that recur when the same kind of problem is solved at different scales, and how each shows in User Datagram Protocol (UDP). Each links to every other system that shows it.

Valence: what it trades, and with whom (18) published science

Each exchange with a neighbour, read from both sides: who gains, who pays, and what carries it.

Partners and parts published science

Built from / builds (5)

Sits inside / holds (3)

expressed by (12)

floor filled by (19)

Kinds (2)

Notes published science

Layers

The ways it takes in its world, where they meet, and how it acts back, each from L1 (where it meets the world) up.

UDP as network engineers describe it: a datagram handed to IP once, from the links up to the ends' own idea of done (reader's view)

  1. L1: Links carrying IP packets between interconnected networks; queues and middleboxes on the way
  2. L2: IP's best-effort datagram service, protocol 17: one UDP datagram per IP packet, fragmented if too large
  3. L3: The 8-byte header: source port, destination port, length, checksum over a pseudo header; nothing else
  4. L4: The port: demultiplexing to the receive port a program opened ahead of time; ICMP Port Unreachable when none
  5. L5: The socket in the operating system: whole messages, the receive buffer, local filtering; no connection, no flow control, no state about the far end
  6. L6: The application protocol and what it adds back for itself (retries, identifiers, timestamps, sequence numbers, acknowledgements, congestion control, encryption)
  7. L7: The ends' own idea of done, and their duties toward the path and others: the target program's 'I did it'; rate, consent, not amplifying

the boardroom (shared floors)

  1. L5: The socket in the host's operating system: the bound port, the receive queue and buffers, local filtering by address; whole messages delivered with their source; no state about the far end, no flow control
  2. L6: The application protocol on UDP and what it adds back for itself: identifiers and retries (DNS, DHCP), timestamps (NTP), sequence numbers and loss reports (RTP), lock-step acknowledgement (TFTP), streams, acknowledgements, congestion control and encryption (QUIC); nothing in classic syslog
  3. L7: The ends' own idea of done, judged by the program the message was for ('I did it', or 'I didn't'): a name answered, an address leased, a clock set, a call heard, a page loaded; and the duties toward others (rate, consent, not amplifying)

way in: Arriving datagrams (IP packets with protocol 17)

  1. L1: IP packets arriving over the interconnected networks, each carrying a UDP datagram
  2. L2: IP hands up the datagrams marked protocol 17, with the source and destination addresses UDP needs
  3. L3: The 8-byte header read: length checked, checksum over the pseudo header verified; a bad non-zero checksum is silently discarded; over IPv6 the checksum is mandatory and a zero checksum discarded (RFC 8200), except tunnels in zero-checksum mode
  4. L4: Demultiplexed by destination port to the receive port a program created ahead of time; none listening: ICMP Port Unreachable

way in: Data handed down by a local program

  1. L1: A message in the program's memory, with the destination address and port
  2. L2: Handed through the sockets interface, the de facto standard programming interface
  3. L3: Checksum generated by default; options may change UDP or IP behaviour
  4. L4: A source port bound, best chosen at random; whether the far end supports any option cannot be known in advance

way in: Datagrams with a forged source address (the reflector side)

  1. L1: Request packets whose source address is set to a victim's, sent to a public UDP service
  2. L2: Carried out of networks that do not filter forged sources: 24.6% of autonomous systems fully allowed it in August 2013 (Rossow, citing the Spoofer Project); at least a quarter of tested ASes still did not filter in the year to August 2019, and source address validation (BCP 38) 'has not measurably increased in the past decade' (Luckie et al. 2019)
  3. L3: UDP's checks pass: nothing in the header or a handshake tests that the source address is real
  4. L4: Delivered to the port of a listening service that answers short requests with long replies (DNS 53, NTP 123, SSDP 1900, CHARGEN 19, SNMP, memcached)

way in: ICMP error reports (port unreachable, fragmentation needed, unreachable host)

  1. L1: ICMP messages sent back over the links by a router or the destination host
  2. L2: Increasingly filtered on the way (by firewalls and tunnels); net and host unreachables are only hints
  3. L3: UDP passes every ICMP error up to the application
  4. L4: Matched, asynchronously, to a datagram the program actually sent; the program keeps the state to do so

way in: The path's state (queues, losses, middlebox state), known only by what comes back

  1. L1: Router queues and links: overflowing buffers and faulty interface cards drop packets (UDP probes lost about 10% of the time on a 1992 transatlantic path)
  2. L2: What the path does to datagrams: loss, delay, reordering, duplication, with no upper bound on lateness
  3. L3: Middleboxes: NATs and firewalls guess at flows, create state on a new-looking packet and drop it after silence; some rate-limit UDP
  4. L4: Nothing comes back at the UDP layer: no acknowledgement, no report, no timeout; with no return traffic, loss cannot be detected at all
  5. L5: The receiving host itself: the NIC queue and the socket receive buffer overflow when the program reads too slowly

way in: The program's own clock (retransmission, keepalive and consent timers)

  1. L1: The host's clock ticking with no datagram arriving
  2. L2: Latency estimates averaged over recent samples (an exponentially weighted moving average)
  3. L3: A retransmission timer: 1 second to start, backed off exponentially when packets are deemed lost (DHCP: 4 s, 8 s, up to 64 s)
  4. L4: A keepalive timer for middlebox state: no more often than every 15 seconds, with jitter
  5. L5: Timers live in the program or a library on its behalf, not in UDP

way in: The specifications and guidelines (RFC 768 and its successors)

  1. L1: RFC 768 (28 August 1980), three pages; updated by RFC 9868 in October 2025
  2. L2: Host requirements (1989): no known errors; checksum on by default; ICMP passed up
  3. L3: Best current practice for users of UDP (RFC 8085, 2017; replacing RFC 5405): MUST, SHOULD and MAY for congestion control, sizes, reliability, checksums, middleboxes, ports, ICMP, security
  4. L4: The sockets interface that carries the rules into code on every platform
  5. L5: Deviation allowed with reasons stated: designers who do not follow a guideline cite the section and explain

way out: ICMP Port Unreachable (no program listening)

  1. L1: Back over the links; may be filtered before it arrives
  2. L2: ICMP Destination Unreachable, code 3 (Port Unreachable), the transport's only way to tell the sender
  3. L4: No pending receive on the destination port

way out: Keepalives to hold middlebox state open

  1. L1: Out through the NAT, refreshing its mapping timer (outbound refresh must count)
  2. L5: Sent no more often than every 15 seconds, jittered, under the program's congestion control
  3. L6: Only for programs that cannot tolerate losing middlebox state (media sessions); not for general use

way out: Reply to the address the request named (reflection when that address was forged)

  1. L1: Onto the links toward whoever owns that address: the asker, or a victim of reflection
  2. L4: Addressed to the source address and port the request carried, by default the port to reply to
  3. L6: The service builds its answer, sometimes far larger than the request (monlist: the last 600 clients)

way out: Send once (a datagram down to IP and onto the links)

  1. L1: Onto the links, at up to line rate, once; nothing kept to resend
  2. L2: Handed to IP as protocol 17; fragmented if larger than the path MTU
  3. L3: Length and checksum over the pseudo header
  4. L4: Header written: source port (randomized), destination port
  5. L5: The program calls send on its socket

way out: Silent discard (bad checksum; full receive buffer)

  1. L1: Nothing goes back onto the links: the sender is not told
  2. L3: Invalid non-zero checksum: discarded silently
  3. L5: Receive buffer full because the program reads too seldom: the datagram is lost with no word to anyone

what protocols on UDP add back for themselves, from nothing to a full transport (secondary stack)

  1. L1: Nothing added: syslog over UDP (no detection or correction of loss); SNMP traps (notifications with no confirmation). SNMP's preferred mapping is one message per UDP datagram
  2. L2: A request whose answer is the acknowledgement, with the asker's own retries: DNS (retransmission strategy required; truncation sends long answers to TCP), DHCP (client does all retransmission), SNMP Get and Set requests (request-id, retries at the requester's discretion). NTP differs: an answer that is itself a measurement (timestamps), resistant to loss and duplicates, with no retransmission and worse with it
  3. L3: Sequence numbers, timestamps and receiver reports of the fraction lost, without retransmission: RTP and RTCP
  4. L4: Lock-step acknowledgement and retransmission of each 512-byte block: TFTP
  5. L5: A full transport rebuilt on UDP in user space: streams, acknowledgements with explicit timing, flow and congestion control, encryption, address validation: QUIC

Sources (35) published science

Internet protocol suite (Wikipedia via Wikimedia Enterprise, cached research/showcase/cache/wme)
Postel, J. (1980). User Datagram Protocol. RFC 768, IETF. doi:10.17487/RFC0768
Droms, R. (1997) Dynamic Host Configuration Protocol. RFC 2131 (section read: 4.1 Constructing and sending DHCP messages, the retransmission paragraphs) (behind its links)
Floyd, S., ed. (2000) Congestion Control Principles. RFC 2914, BCP 41 (sections read: 3.1 preventing congestion collapse, 5 a description of congestion collapse) (behind its links)
Eggert, L., Fairhurst, G. & Shepherd, G. (2017) UDP Usage Guidelines. RFC 8085, BCP 145 (sections read: 1, 3 intro, 3.1 intro, 3.1.1, 3.1.3, 3.1.4, 3.1.10, 3.2, 3.3, 3.4 intro, 3.5, 5, 5.1, 5.2, 6, 7) (behind its links)
Langley, A. et al. (2017) The QUIC Transport Protocol: Design and Internet-Scale Deployment. Proc. ACM SIGCOMM 2017, doi:10.1145/3098822.3098842 (behind its links)
Kuhrer, Hupperich, Rossow, Holz 2014, Exit from Hell? Reducing the Impact of Amplification DDoS Attacks, USENIX Security 2014 (behind its links)
RFC 1122, Requirements for Internet Hosts: Communication Layers (1989) (behind its links)
User Datagram Protocol (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Audet, F. & Jennings, C., ed. (2007) Network Address Translation (NAT) Behavioral Requirements for Unicast UDP. RFC 4787, BCP 127 (sections read: 4.3 Mapping Refresh, the requirement list) (behind its links)
Hatonen, S., Nyrhinen, A., Eggert, L., Strowes, S., Sarolahti, P. & Kojo, M. (2010) An experimental study of home gateway characteristics. ACM IMC 2010, doi:10.1145/1879141.1879174 (portal full text; sections read: abstract, 1, 3.2.1 UDP binding timeouts, 4.1 UDP timeout results) (behind its links)
Mockapetris P 1987, RFC 1035 Domain Names: Implementation and Specification (message format, RR definitions, transport sections read) (behind its links)
Okmianski, A. (2009). Transmission of Syslog Messages over UDP. RFC 5426 (Standards Track), IETF. doi:10.17487/RFC5426 (behind its links)
Bolot, J.-C. (1993) End-to-end packet delay and loss behavior in the Internet. ACM SIGCOMM '93, doi:10.1145/166237.166265 (portal full text; sections read: abstract, 1-2 data collection, 5 packet loss) (behind its links)
Christensen, M. J. & Richter, T. (2017, rev. 2020) Achieving reliable UDP transmission at 10 Gb/s using BSD socket for data acquisition systems. arXiv:1706.00333 (portal full text, read in full) (behind its links)
Rossow 2014, Amplification Hell: Revisiting Network Protocols for DDoS Abuse, NDSS 2014 (doi:10.14722/ndss.2014.23233) (behind its links)
Thomas, D. R., Clayton, R. & Beresford, A. R. (2017) 1000 days of UDP amplification DDoS attacks. APWG eCrime 2017, doi:10.1109/ecrime.2017.7945057 (portal full text; sections read: abstract, I-IV, VI estimates) (behind its links)
Czyz, J., Kallitsis, M., Gharaibeh, M., Papadopoulos, C., Bailey, M. & Karir, M. (2014) Taming the 800 Pound Gorilla: The Rise and Decline of NTP DDoS Attacks. ACM IMC 2014, doi:10.1145/2663716.2663717 (the portal reached the abstract only; read in the IMC 2014 open program copy, sections 1, 2 global traffic, 3 amplifiers) (behind its links)
Kopp, Dietzel, Hohlfeld 2021, DDoS Never Dies? An IXP Perspective on DDoS Amplification Attacks, PAM 2021 (arXiv:2103.04443) (behind its links)
Iyengar, J. & Thomson, M., ed. (2021) QUIC: A UDP-Based Multiplexed and Secure Transport. RFC 9000 (section read: 8 Address Validation, the opening) (behind its links)
Damas J, Graff M, Vixie P 2013, RFC 6891 Extension Mechanisms for DNS (EDNS(0)) (abstract and introduction read) (behind its links)
Luckie, Beverly, Koga, Keys, Kroll, claffy 2019, Network Hygiene, Incentives, and Regulation: Deployment of Source Address Validation in the Internet, ACM CCS 2019 (authors' slides; paper doi:10.1145/3319535.3354232) (behind its links)
Stone, J. & Partridge, C. (2000) When the CRC and TCP checksum disagree. ACM SIGCOMM 2000, doi:10.1145/347059.347561 (portal full text; sections read: 1 introduction, 2 CRCs and checksums, 3-4 results incl. 4.3.3, 5 undetected errors, 6-7 recommendations and conclusions) (behind its links)
Reed, D. P. & Postel, J. B. (1979) User Datagram Protocol. IEN 71, 21 January 1979 (scanned copy, four pages, read in full through OCR of the scan; the cover page reads 1978, the page headers and the IEN index 21 Jan 79) (behind its links)
Clark, The Design Philosophy of the DARPA Internet Protocols, ACM SIGCOMM 1988 (doi:10.1145/52324.52336) (behind its links)
Touch, J. & Heard, C., ed. (2025) Transport Options for UDP. RFC 9868, updates RFC 768 (sections read: abstract, 4, 5, 6, 7-9 option checksum, 18, 19, 21, 22, 25 middlebox traversal) (behind its links)
Saltzer, Reed and Clark, End-to-End Arguments in System Design, ACM TOCS 2(4), 1984 (doi:10.1145/357401.357402) (behind its links)
Mills, D., Martin, J., Burbank, J. & Kasch, W. (2010) Network Time Protocol Version 4. RFC 5905 (sections read: 1 introduction, 7.3 packet header lead, 8 On-Wire Protocol) (behind its links)
Schulzrinne, H., Casner, S., Frederick, R. & Jacobson, V. (2003) RTP: A Transport Protocol for Real-Time Applications. RFC 3550 (sections read: abstract, 2.x introduction to RTP's design, 5.1 header fields, 6.4.1 fraction lost) (behind its links)
Mockapetris PV, Dunlap KJ 1988, Development of the Domain Name System, ACM SIGCOMM '88, doi:10.1145/52324.52338 (full text via the paper portal, OpenAlex stored copy) (behind its links)
Transport Layer Security (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01; whole article read) (behind its links)
Sollins, K. (1992) The TFTP Protocol (Revision 2). RFC 1350 (sections read: 1 Purpose, 2 Overview of the Protocol) (behind its links)
Gillespie, T. (2006) Engineering a Principle: 'End-to-End' in the Design of the Internet. Social Studies of Science 36(3):427-457, doi:10.1177/0306312706056047 (portal full text; sections read: introduction, the datagram debate, the 1981/1984 paper and its rhetoric) (behind its links)
Internet Experiment Note index (IEN series), RFC Editor history pages (read: entries 69-90) (behind its links)
Thomson, M. & Pauly, T., IAB (2021) Long-Term Viability of Protocol Extension Mechanisms. RFC 9170 (sections read: 1, 2 opening, 3.3 'Falsifying Active Use', 4 opening) (behind its links)