Pcornel
Networking · IP Fundamentals › UDP

Connectionless

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

Back to the Topic

Answer

UDP is connectionless: each datagram is sent without a TCP-style handshake or transport acknowledgement. Reliability, ordering, retries and transaction correlation must come from the application or an upper protocol when required.

Remember

A sender can successfully hand a UDP datagram to its IP stack even when the destination never receives it. No transport handshake exists to prove listener readiness, path symmetry or response delivery.

First checks

  • Capture: tcpdump -nn -i <if> udp port <p> — request and response both seen?
  • ss -ulnp (Linux) / netstat -ano -p udp (Windows) — is something listening on the port?
  • nc -u <host> <p> — send a test datagram.
  • show ip traffic | include UDP (IOS) — UDP counters, port unreachables.
  • Application-specific test: nslookup, ntpq -p, snmpget.

Verify in this order

application sends a datagram → path delivers it → server listens on the port → server replies → reply crosses the reverse path → application matches it to the request

Where it usually breaks

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

Connectionless operational reference

UDP observationWhat it provesDoes not proveNext check
Request leaves sourceSource emitted a datagramDestination received itForward path/policy
Firewall flow entryMiddlebox tracks tupleApplication is listeningDestination receive/process
Server receives requestForward path reached process boundaryResponse will be generatedProtocol/application state
Response leaves serverServer generated replyClient received/accepted itReverse route/NAT/policy
ICMP port unreachableA device explicitly rejected/no listener at that pointAll retries/paths behave sameOrigin and path context

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

Confirmation

Confirm action

Continue?