Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

UDP Operational Reference

Direct answer

UDP sends individual datagrams from port to port and nothing more: no connection, no acknowledgment, no retransmission, no ordering. DNS, DHCP, NTP, SNMP, syslog, voice and QUIC run over it.

When to use this

Use it when a UDP-based service gets no answer, works only intermittently, or fails for large messages.

First 30 seconds

1. On the server: ss -lun — is the service listening on that port?

2. Send a real request with the service's client.

3. Capture on the server: does the request arrive? Does a reply leave?

4. Reply leaves but does not arrive → return path or a firewall without state.

5. ICMP port unreachable comes back → nothing listens there.

Operational verification

service listening on the port → request datagram reaches the server → reply sent from the same address and port → reply passes firewalls and NAT on the way back → client receives it

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard
Key commandss -lun
Scope / prerequisiteUse it when a UDP-based service gets no answer, works only intermittently, or fails for large messages.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification Verify boundary
ss -lun
tcpdump -ni eth0 udp port 53
dig @192.0.2.53 example.com
nc -u -v 192.0.2.10 514
show udp

ss -lun lists the UDP ports a host listens on. tcpdump shows datagrams arriving and leaving. The most reliable test is the application's own client — dig for DNS, ntpdate -q for NTP, snmpget for SNMP — because only a real request produces a real reply. A generic tool such as nc -u can only show whether an ICMP unreachable comes back. On a Cisco device, show udp lists its open UDP sockets.

Capture at both ends: is the request seen arriving at the server, does the server send a reply, and does the reply reach the client.

Known-good: the request arrives, a reply leaves from the expected port and address, and it reaches the client.

Step 2 Failure boundaries & design notes Narrow the fault
  • No reply, and no ICMP message. A firewall drops silently, the path is broken, or the service ignores the request; capture at the server to see whether the request arrives.
  • ICMP port unreachable comes back. The host is reachable, nothing listens on that port.
  • The request arrives and a reply is sent, but the client gets nothing. The return path: routing, or a firewall with no matching entry.
  • The reply comes from a different address than was asked. A multi-homed server answers from another interface; the client or a firewall discards it.
  • Works briefly, then stops after idle periods. The firewall or NAT entry timed out.
  • Small messages work, large ones do not. Fragments are dropped on the path.
  • Voice or video is choppy. Loss, delay variation or reordering — UDP hides none of it.
  • A flood of UDP degrades other traffic. Nothing in UDP slows the sender; rate-limit or apply QoS.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Silence is ambiguous: the request may be lost, the reply lost, a firewall dropping, or the service not answering. Test with the application's own client, and capture at both ends. Firewalls and NAT forget idle UDP flows within seconds to minutes.

Key checks
  • ss -lun — UDP ports the host listens on.
  • tcpdump -ni <if> udp port <port> — datagrams arriving and leaving.
  • The service's own client: dig, ntpdate -q, snmpget.
  • show udp — a Cisco device's UDP sockets.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

UDP sends individual messages — datagrams — from one port to another, and does nothing else. There is no connection, no acknowledgment, no retransmission and no ordering. Whatever reliability an application needs, it has to provide itself.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

The services a network depends on mostly use UDP: DNS, DHCP, NTP, SNMP, syslog, and voice and video. Because the protocol gives no feedback, a UDP problem looks different from a TCP one. Silence can mean the request was lost, the reply was lost, a firewall dropped it, or the service simply had nothing to say — and only a capture at both ends, or the application's own response, tells which.

ReferenceHow it works1 section · depth on demand

Operational flow & dependencies

The header is 8 bytes:

FieldSizeMeaning
Source port16 bitsWhere a reply should be sent
Destination port16 bitsThe service addressed
Length16 bitsHeader plus data
Checksum16 bitsCovers header, data and the IP addresses; mandatory with IPv6

What UDP does not do.

  • No handshake. The first packet is already the request. Nothing establishes beforehand that anyone is listening.
  • No acknowledgment. The sender never learns from UDP whether a datagram arrived. Applications that care — DNS, for example — wait for an answer and ask again after a timeout.
  • No ordering, no duplicate removal. Datagrams may arrive in any order.
  • No flow or congestion control. A sender can transmit as fast as it likes; the excess is simply dropped.

What comes back.

SituationResponse
A service listens and answersA datagram from that port
Nothing listens on the portThe host returns ICMP "port unreachable" — unless it or a firewall suppresses it
A firewall drops the packetNothing
The service received it but does not reply to such messagesNothing

So "no reply" is ambiguous in a way a TCP reset or SYN-ACK never is.

Firewalls and NAT treat UDP as if it had connections: an outgoing datagram creates an entry that lets replies back in. With no closing message to go by, the entry is removed after a short idle time — often 30 seconds to a few minutes. Long-lived UDP flows need periodic traffic to stay open.

Size. A datagram larger than the path allows is fragmented at the IP layer, and losing any fragment loses the whole datagram. Protocols therefore keep messages small or fall back to TCP for large ones.

Common ports: DNS 53, DHCP 67/68, TFTP 69, NTP 123, SNMP 161/162, syslog 514, QUIC 443.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

UDP from the specification outwards

RFC 768 is only three pages long, and almost everything else about UDP is defined by the applications on top of it. The protocol provides ports, a length and a checksum, and states that delivery and duplicate protection are not guaranteed. The checksum covers a pseudo-header (source and destination addresses, protocol, length) as well as the UDP header and data. A computed checksum of zero is sent as all ones, and a transmitted zero means the sender computed no checksum. Over IPv6 the checksum is mandatory, according to RFC 8200.

Common UDP services

PortServiceHow it copes with loss
53DNSClient retries; falls back to TCP for large answers
67/68DHCPv4Client retransmits with backoff
69TFTPLock-step acknowledgements in the application
123NTPPeriodic polling; single losses don't matter
161/162SNMP and trapsManager retries; traps can be lost
514SyslogLost messages are gone (use TCP or TLS syslog if that matters)
443QUIC / HTTP/3Full reliability and congestion control inside QUIC
4789VXLANCarries Ethernet frames; the inner protocols recover

Checksum rules by IP version

IPv4IPv6
ChecksumOptional (zero = none)Required; packets with a zero checksum are discarded
Pseudo-headerAddresses, protocol, lengthSame idea with 128-bit addresses
host$ ss -lun
host$ sudo tcpdump -ni eth0 -vv udp port 53 | grep -E "cksum|q:"
host$ nc -u -v -w 2 10.20.0.53 53
R1# show udp
Proto        Remote      Port      Local       Port  In Out  Stat TTY OutputIF
 17   --listen--             10.255.0.1       123   0   0  2211   0
 17   --listen--             10.255.0.1       161   0   0  2011   0

Testing UDP reachability

A UDP test without an application reply proves little. A closed port may answer with ICMP port unreachable, a firewall usually drops silently, and an open port often says nothing to an empty datagram. Use the real protocol, such as dig, ntpdate -q or snmpget, to get a meaningful answer.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Known-good, transitional and broken reference

UDP Operational Reference — comparative operational reference for Network & Protocols → UDP Operational Reference. Identity/scope: VRF/VLAN/address-family, interface and the exact packet tuple or control object Known-good: the owner state and adjacent consumer agree and the programmed forwarding state carries the intended packet Transitional: a bounded negotiation/learning/programming state with counters, sequence or timers showing forward progress Broken: owner/consumer disagreement, stalled transition, unresolved adjacency or packet counters proving the intended path is not used Interpretation rule: compare the same object, scope and time window. What it does not show: control-plane health does not show packet delivery or return-path success Next check: move one step toward the original workload using Compare control-plane and programmed state for the same object, then generate the original packet and verify counters/return path tied to that test. Platform/scope: Cisco IOS / IOS XE first; hardware programming and command presentation vary by platform/release.

Quick reference

UDP sends independent datagrams without connection setup, acknowledgements or ordering. The 8-byte header holds only source port, destination port, length and checksum, which keeps latency low for DNS, DHCP, NTP, SNMP, syslog, VoIP and streaming.

PropertyConsequence
No handshakeA "connection" can't be tested like TCP; test the application
No retransmissionApplications handle loss themselves
No congestion controlLarge UDP flows can starve others; QoS matters
ICMP port unreachableTypical response from a closed UDP port

Stateful firewalls track UDP "sessions" with idle timers; long-lived quiet UDP flows (e.g. some VPNs) need keepalives to stay open.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 768

Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → UDP Operational Reference. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc768.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
udpdatagramudp portconnectionless
Confirmation

Confirm action

Continue?