← all systems · see it in The System
User Datagram Protocol (UDP)
| boundary | Inside: 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 level | A 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. |
| scale | technological |
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.
| aliases | User Datagram Protocol |
| born at | 21 January 1979 (IEN 71, Reed and Postel); published again as RFC 768 on 28 August 1980 |
| born precision | day |
Measures (36) published science
| characteristic clock: one DNS-style request-response exchange | within seconds |
| initial retransmission timeout recommended for UDP programs | 1 s |
| DHCP retransmission delays | 4, then 8, doubling to at most 64 (each randomized by +/-1) |
| rate limit for a sender with no return traffic | at most 1 datagram per 3 |
| robustness window for delayed or duplicate datagrams | 2 minutes |
| minimum keep-alive interval | 15 s |
| NAT UDP mapping timer, required minimum | 2 (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 size | 8 bytes |
| IP protocol number | 17 number |
| maximum UDP payload, IPv4 | 65,507 (65,527 on IPv6) bytes |
| DNS message size limit over UDP (RFC 1035) | 512 bytes |
| safe syslog message size over UDP, IPv4 | 480 (1180 on IPv6) octets |
| QUIC default UDP payload size | 1350 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 measurement | about 3.5 times |
| UDP probe loss probability, INRIA to Maryland (1992 measurements) | about 10 % |
| packet error ratio at 10 Gb/s by datagram size | 0.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 tuned | 212 kB default; 12 MB tuned bytes |
| chain yield of a fragmented datagram | the 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 notification | 92 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 attacks | 8.18 (33% of target IPs) |
| QUIC limit on data to an unvalidated address | 3 times the bytes received |
| largest amplification factor reported for memcached (2018) | up to 51,200 times |
| EDNS(0) suggested starting payload size | 4096 octets |
| IPv4 prefixes able to spoof from behind a NAT (year to Aug 2019) | 6.4 % |
| packets failing the TCP or UDP checksum, worst trace | 1 in 1,100 (hourly peak 1 in 400) packets |
| undetected checksum errors | 1 data packet in 16 million to 1 in 10 billion packets |
| time from the first UDP specification to RFC 768 | 19 months (21 Jan 1979 to 28 Aug 1980) |
Open contentions (5) open contention
Where sources or readings disagree. Both stay on the map.
- C-4599 Did warning the owners of misconfigured time servers cause the sharp drop in servers used for attacks in 2013-2014, or did other changes at the same time do it?
booked: The map keeps both readings side by side and rules on neither.
the other reading: notifications caused much of it: the fall 'shows how successful global notification efforts can be' (Kuhrer et al. 2014); communication plausibly helped but 'causality, unfortunately, can not be determined' (Czyz et al. 2014); patches, advisories, port filters and publicity came at the same time; for a different defence (source address validation), private notifications had 'no measurable impact on remediation' (Luckie et al. 2019) - C-4600 Were attacks that abuse internet time servers (NTP) to multiply traffic tamed after 2014, or do they and similar tricks still make up most such attacks?
booked: The map keeps both readings side by side and rules on neither.
the other reading: remediation tamed NTP amplification ('the rise and decline'); remediation failed: 'Despite the prediction and hope that the relevance of long-known legacy amplification protocols (e.g., NTP) will decline, we show that opposite is true'; vantage points disagree: an exchange and a honeypot network saw only 8.18% of the same attacks - C-4625 Was the internet's simple message format UDP designed because of the 'end-to-end' principle (keep the network simple, put the smarts at the ends), or did that reasoning come later?
booked: The map keeps both readings side by side and rules on neither.
the other reading: the end-to-end argument was the reason UDP leaves reliability to the ends (the common textbook framing, and the roster's); 'end-to-end' was turned from a descriptor into a principle that closed the datagram debate after the fact; the 1984 paper 'merely rename[s] the datagram model' in one sense (Gillespie 2006); the argument holds only where the ends trust each other and must be re-read when they do not (Clark and Blumenthal 2007/2011) - C-4626 Why does UDP, a basic way of sending data across the internet, carry its own length field? Its designers never said, and the reason is still debated.
booked: The map keeps both readings side by side and rules on neither.
the other reading: to carry several UDP packets in one IP datagram; to give the user data length apart from zero padding some systems needed - C-4627 Should programs use a full delivery system such as TCP, which checks that data arrives, or the lighter UDP, which does not, with their own fixes added?
booked: The map keeps both readings side by side and rules on neither.
the other reading: use TCP or another full transport unless there is a strong reason not to (RFC 8085 section 3); UDP 'appears to have more relevant features than TCP' where the network is simple and retransmission not worth it (Christensen and Richter 2017)
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.
- causal ceiling (structural)
What a UDP sender can know about delivery is capped by the protocol's structure, not by its means: no acknowledgement, no feedback, and with no return traffic 'the lack of return traffic prevents the detection of packet loss'; even an ICMP error is a hint that may be filtered. Only the target progra - red-queen (structural)
Reflection and amplification over UDP: attackers abuse DNS, then NTP monlist; operators notify and patch (NTP monlist amplifiers down 92% in 13 weeks; SSDP filtered on port 1900); attackers move to NTP, SSDP, then CLDAP, memcached, OpenVPN (+500% in a month); legacy vectors still 89.9% at one exchan - same role, different builds (structural)
One job, making sure a message got through (or knowing it did not), built differently by each program on UDP: DNS retries, DHCP's randomized back-off, NTP's loss-resistant timestamps, RTP's sequence numbers and loss reports, TFTP's lock-step acknowledgement, QUIC's packet numbers and acknowledgement - templating (structural)
One fixed module reused unchanged by every application and transport above it: the 8-byte header and protocol 17, swapped under DNS, NTP, RTP, QUIC, DTLS and tunnels alike; QUIC was built on it precisely because middleboxes already pass it. - The Payment to Entropy (structural)
Signal form: every hand-off loses some datagrams and nothing is repaid at the UDP layer. Measured: about 10% loss on a 1992 transatlantic path (per-path efficiency about 0.9); at a 10 Gb/s receiver the packet error ratio is 0.20 at 1472-byte datagrams and 0 at 2200 bytes and above after tuning; a fr - trade one property for another (structural)
Reliability traded for delay: the datagram gives a service 'which traded reliability for the primitive delay characteristics of the underlying network'; for live speech the reliability mechanism is the worst source of delay, and NTP is less accurate over TCP. The protocols on UDP spread along the tr - who opens the door (structural)
The receiver opens the door ahead of time: a program creates its receive port before any datagram comes; a datagram for a port nobody opened draws ICMP Port Unreachable. Middleboxes open a door for return traffic only when the inside host sends first, and close it after silence. - barrier-gates-complexity (partial)
Encryption as the seal that keeps a protocol free to change: QUIC encrypts its header so middleboxes cannot depend on it; the without-barrier case is shown twice (TCP's visible header ossified, changes taking upwards of a decade; one still-visible QUIC bit frozen by a firewall). What is gated is the - borrowed-then-held (partial)
Transport functions first supplied by the operating system's TCP in the kernel, then held inside the application itself as QUIC in user space on UDP, so the application can change them at its own pace. Both phases are shown; the holder is the application on UDP, not UDP. - lightning (partial)
NTP reflection in late 2013: a stored capacity (about 1.4 to 2.2 million servers answering monlist) released all at once, NTP climbing from 0.001% to about 1% of global traffic in about three months, after which the population was remediated and the attack landscape moved on. Partial: the release wa - namespace completeness (the map predicts its gaps) (partial)
Rossow's 2014 survey sorted UDP protocols by the two traits that make an amplifier (small request, large reply; no handshake) and named vectors not yet abused; attackers later moved to them ('Rossow said that he feared that attackers would discover powerful amplification vectors like NTP and SSDP'). - nested ladder (partial)
Protocols on UDP sorted by how much they build back: nothing (syslog), answer-as-acknowledgement with retries (DNS, DHCP, NTP), loss detection and reporting (RTP), acknowledgement of every block (TFTP), a whole transport (QUIC). Each higher rung roughly contains the jobs of the one below, but the or - not-diluting wins (partial)
On a shared path the flow that does not back off keeps its rate while congestion-controlled TCP flows thin out on loss: rising real-time UDP traffic 'slightly hindered' TCP applications in the mid-2000s, and RFC 8085 asks UDP programs for fairness for this reason. The flows hold their rate rather th - partner-becomes-part (partial)
TLS, HTTP/2 framing and TCP, once separate protocols stacked in a gain/gain loop for HTTPS, fused into one protocol on UDP: 'QUIC replaces most of the traditional HTTPS stack'. Inheritance here is design lineage, not reproduction. - runaway from an unstable balance (partial)
Congestion collapse in two forms (RFC 2914): classical collapse, where unnecessary retransmissions add load to the congestion that caused the loss (TCP, mid-1980s; and any program that raises its rate or redundancy as drops rise), which is the runaway; and collapse from undelivered packets, where op - same shape, opposite sign (partial)
One mechanism, a NAT's mapping refresh, in two directions with opposite effects: outbound refresh lets the inside client keep its door open (required), inbound refresh would let an outside attacker keep it open indefinitely (a security risk). - same toolkit, independent builds (partial)
From the same parts (datagrams, timers, sequence numbers) separate groups built reliable delivery over UDP: TFTP's lock-step blocks, RTP's numbering, QUIC's streams and acknowledgements, OpenVPN's reliability layer. Independence is likely but not shown in the sources. - seed (partial)
Seed check: maybe. The bare datagram with ports is a small packet that let a large number of transports and applications be built without changing the network or the kernel (Clark's building block; QUIC, RTP, DTLS, tunnels). Whether that is 'unpacking new combinatorics' or only a generic interface i - symmetry breaking (name the cut) (partial)
Either end may send first in UDP, but a NAT or firewall breaks the symmetry at a named cut: per-flow state is created 'when the first packet crosses from the interior to the exterior', after which only return traffic from that exterior end passes. - The carry (partial)
Overflow passed on: a DNS answer longer than 512 bytes is truncated and flagged so the asker repeats it over TCP; a datagram larger than the path MTU is split into fragments for the next layer down. The wait face is what UDP refuses (it never holds later data for an earlier loss). - the whole sets the local reference (partial)
IANA's registry divides the 16-bit port space into well-known, registered and dynamic ranges, and every host's binding reads that one division (a well-known port for a service, a dynamic port for a client). - Umwelt: each system carves its own slice of one shared medium (partial)
Each program carves its slice of the one shared datagram stream by port: a socket hears only datagrams to its port (and the ICMP errors about its own sends); UDP's own world has no channel for the path's congestion or the receiver's state. - conservation law plus closure (surface)
RFC 768 fixes the format and leaves behaviour (rate, reliability, congestion) open; a second body of rules (RFC 1122, RFC 8085) closes those slots before a program's behaviour is determined. Surface: the 'open slot' is a policy gap, not a balance law. - holding / entrainment (surface)
Middlebox timers set the clock of programs' keepalives (no more often than 15 s, inside a mapping lifetime of 2 minutes or more). The middlebox is not a whole that holds the programs as parts, so surface. - smooth to sharp in finite time (surface)
Steep cliffs, not singularities: the packet error ratio rises more than four orders of magnitude between 2000 and 1700-byte datagrams at 10 Gb/s; unreachability rises fast past 1450 bytes as packets exceed the Ethernet MTU. The dark twin (steep but never singular), booked as surface.
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.
- Human (Homo sapiens) via Electromagnetic field · User Datagram Protocol (UDP) gain
- Internet Protocol (role: quanta, the common datagram format) via Electromagnetic field · User Datagram Protocol (UDP) gain
- Transmission Control Protocol (role: quanta, end-to-end reliability at the hosts) via Electromagnetic field · User Datagram Protocol (UDP) mixed
- Internet via Electromagnetic field · User Datagram Protocol (UDP) gain
- Internet protocol suite (TCP/IP): the layered datagram protocols every host and router runs, the RFC record that specifies them, and the community that keeps them via Electromagnetic field · User Datagram Protocol (UDP) gain
- QUIC via Electromagnetic field · User Datagram Protocol (UDP) gain
- Operating system via Electromagnetic field · User Datagram Protocol (UDP) gain
- Domain Name System via Internet · User Datagram Protocol (UDP) gain
- Denial-of-service attack via Electromagnetic field · User Datagram Protocol (UDP) loss
- Firewall (computing) via Electromagnetic field · User Datagram Protocol (UDP) mixed
- Internet Control Message Protocol (ICMP) via Electromagnetic field · User Datagram Protocol (UDP) gain
- Network address translation (often in the same box) via Electromagnetic field · User Datagram Protocol (UDP) mixed
- Syslog (syslog-based centralised logging) via Electromagnetic field · User Datagram Protocol (UDP) even
- Network Time Protocol servers via Electromagnetic field · User Datagram Protocol (UDP) gain
- IP telephone (VoIP) via Electromagnetic field · User Datagram Protocol (UDP) gain
- Real-time Transport Protocol (RTP/RTCP) via Electromagnetic field · User Datagram Protocol (UDP) gain
- Dynamic Host Configuration Protocol via Electromagnetic field · User Datagram Protocol (UDP) gain
- Transport Layer Security via Electromagnetic field · User Datagram Protocol (UDP) even
Partners and parts published science
Built from / builds (5)
- Internet protocol suite (TCP/IP): the layered datagram protocols every host and router runs, the RFC record that specifies them, and the community that keeps them
- Channels (sockets, RPC endpoints, named pipes, files)
- UDP header (ports, length, checksum)
- Internet checksum over a pseudo header
- Unresponsive UDP flows against congestion-controlled TCP for path capacity
Sits inside / holds (3)
- Internet
- Internet protocol suite (TCP/IP): the layered datagram protocols every host and router runs, the RFC record that specifies them, and the community that keeps them
- Operating system
expressed by (12)
- Scaffolding/Enablement (Meta-Tooling)
- Templating / Standardization
- Interoperability/Transduction (Bridging)
- Encapsulation & Modularity (Abstraction)
- Amplification/Scale-Up (Manufacture & Distribution)
- Evolvability/Plasticity Engineering (Design for Future Variation)
- Evade Detection
- Resource Denial/Attrition
- Leverage Host/Amplification
- Proactive Defense
- Deception
- Quality Control & Error Correction
floor filled by (19)
- Internet protocol suite (TCP/IP): the layered datagram protocols every host and router runs, the RFC record that specifies them, and the community that keeps them
- Human (Homo sapiens)
- Internet Protocol (role: quanta, the common datagram format)
- End-to-end principle (rule: where functions go)
- Internet Engineering Task Force (shell keeper: the codifier)
- Internet
- Middleboxes (firewalls, NATs, caches on the path)
- QUIC
- Operating system
- Domain Name System
- Internet Control Message Protocol (ICMP)
- Syslog (syslog-based centralised logging)
- Network Time Protocol servers
- Channels (sockets, RPC endpoints, named pipes, files)
- SNMP traps
- Real-time Transport Protocol (RTP/RTCP)
- Dynamic Host Configuration Protocol
- Trivial File Transfer Protocol
- Transport Layer Security
Kinds (2)
Notes published science
- 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).
- A command meant only for diagnostics on clock servers turned NTP into the most potent DDoS attack vector for a time. NTP's 'monlist' answers one tiny query with a list of the last 600 clients, so forged queries turned time servers into amplifiers, and NTP climbed in about four months from about 0.001% to about 1% of global Internet traffic, 'surpassing even DNS'. During a notification campaign the vulnerable servers fell by 92% in 13 weeks (how much the notices caused is disputed), yet in 2019-2020 CLDAP, NTP and DNS together still made up 89.9% of the amplification attacks seen at a large exchange (src:czyz-2014-ntp, src:kuhrer-2014-exit-from-hell, src:kopp-2021-ixp).
- When Google changed a single bit in QUIC's unencrypted header in October 2016, users behind one brand of firewall fell into a 'packet black-hole': the firewall let the first packets through and blocked the rest. The engineers' lesson was that 'encryption is the only means available' to keep boxes in the middle from freezing a protocol in place (src:langley-2017-quic).
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)
- L1: Links carrying IP packets between interconnected networks; queues and middleboxes on the way
- L2: IP's best-effort datagram service, protocol 17: one UDP datagram per IP packet, fragmented if too large
- L3: The 8-byte header: source port, destination port, length, checksum over a pseudo header; nothing else
- L4: The port: demultiplexing to the receive port a program opened ahead of time; ICMP Port Unreachable when none
- 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
- L6: The application protocol and what it adds back for itself (retries, identifiers, timestamps, sequence numbers, acknowledgements, congestion control, encryption)
- 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)
- 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
- 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
- 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)
- L1: IP packets arriving over the interconnected networks, each carrying a UDP datagram
- L2: IP hands up the datagrams marked protocol 17, with the source and destination addresses UDP needs
- 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
- 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
- L1: A message in the program's memory, with the destination address and port
- L2: Handed through the sockets interface, the de facto standard programming interface
- L3: Checksum generated by default; options may change UDP or IP behaviour
- 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)
- L1: Request packets whose source address is set to a victim's, sent to a public UDP service
- 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)
- L3: UDP's checks pass: nothing in the header or a handshake tests that the source address is real
- 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)
- L1: ICMP messages sent back over the links by a router or the destination host
- L2: Increasingly filtered on the way (by firewalls and tunnels); net and host unreachables are only hints
- L3: UDP passes every ICMP error up to the application
- 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
- 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)
- L2: What the path does to datagrams: loss, delay, reordering, duplication, with no upper bound on lateness
- L3: Middleboxes: NATs and firewalls guess at flows, create state on a new-looking packet and drop it after silence; some rate-limit UDP
- L4: Nothing comes back at the UDP layer: no acknowledgement, no report, no timeout; with no return traffic, loss cannot be detected at all
- 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)
- L1: The host's clock ticking with no datagram arriving
- L2: Latency estimates averaged over recent samples (an exponentially weighted moving average)
- 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)
- L4: A keepalive timer for middlebox state: no more often than every 15 seconds, with jitter
- 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)
- L1: RFC 768 (28 August 1980), three pages; updated by RFC 9868 in October 2025
- L2: Host requirements (1989): no known errors; checksum on by default; ICMP passed up
- 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
- L4: The sockets interface that carries the rules into code on every platform
- 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)
- L1: Back over the links; may be filtered before it arrives
- L2: ICMP Destination Unreachable, code 3 (Port Unreachable), the transport's only way to tell the sender
- L4: No pending receive on the destination port
way out: Keepalives to hold middlebox state open
- L1: Out through the NAT, refreshing its mapping timer (outbound refresh must count)
- L5: Sent no more often than every 15 seconds, jittered, under the program's congestion control
- 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)
- L1: Onto the links toward whoever owns that address: the asker, or a victim of reflection
- L4: Addressed to the source address and port the request carried, by default the port to reply to
- 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)
- L1: Onto the links, at up to line rate, once; nothing kept to resend
- L2: Handed to IP as protocol 17; fragmented if larger than the path MTU
- L3: Length and checksum over the pseudo header
- L4: Header written: source port (randomized), destination port
- L5: The program calls send on its socket
way out: Silent discard (bad checksum; full receive buffer)
- L1: Nothing goes back onto the links: the sender is not told
- L3: Invalid non-zero checksum: discarded silently
- 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)
- 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
- 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
- L3: Sequence numbers, timestamps and receiver reports of the fraction lost, without retransmission: RTP and RTCP
- L4: Lock-step acknowledgement and retransmission of each 512-byte block: TFTP
- L5: A full transport rebuilt on UDP in user space: streams, acknowledgements with explicit timing, flow and congestion control, encryption, address validation: QUIC