Connectionless
Cheat sheet · https://pcornel.dk/topic.php?topic=918
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 observation | What it proves | Does not prove | Next check |
|---|---|---|---|
| Request leaves source | Source emitted a datagram | Destination received it | Forward path/policy |
| Firewall flow entry | Middlebox tracks tuple | Application is listening | Destination receive/process |
| Server receives request | Forward path reached process boundary | Response will be generated | Protocol/application state |
| Response leaves server | Server generated reply | Client received/accepted it | Reverse route/NAT/policy |
| ICMP port unreachable | A device explicitly rejected/no listener at that point | All retries/paths behave same | Origin 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