Pcornel
Networking · IP Fundamentals › UDP

Low overhead

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

Back to the Topic

Answer

UDP has low overhead: an 8-byte header with ports, length and checksum and no connection setup, which suits DNS, VoIP, streaming and other traffic where speed matters more than retransmission.

Remember

No handshake and no retransmission means low delay but no delivery guarantee — the application must handle loss, order and retries. For voice and video, lost packets are skipped rather than resent; QoS and low loss matter more than bandwidth. Large UDP payloads fragment, and fragments are often dropped.

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 chooses UDP → small header, no setup → datagram sent immediately → network delivers or drops → application handles loss

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=920

Confirmation

Confirm action

Continue?