Pcornel
Networking · Network & Protocols › TCP, UDP & Transport

UDP Operational Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=165

Back to the Topic

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.

Remember

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.

First 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.

Commands

dig
ss -lun
tcpdump
show udp

Verify in this order

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

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=165

Confirmation

Confirm action

Continue?