Skip to content

Lesson 8 of 9 · 21m

DNS, ICMP, and UDP Context

Read the supporting protocols that explain why TCP never had a chance — DNS failure modes, ICMP signals, QUIC, and UDP's silent losses.

Not every network problem is a TCP problem. Some failures end before TCP starts: DNS returns the wrong answer, ICMP reports unreachable paths, or UDP traffic simply vanishes because no transport machinery exists to complain. If your capture contains only the protocol you expected, you are probably missing the protocol that explains it.

DNS is the dependency people forget to capture

A TCP connection to the wrong address is still a successful TCP connection. Capture DNS when name resolution is part of the path.

client -> resolver  A? api.internal.example
resolver -> client  NOERROR A 10.20.4.18
client -> 10.20.4.18 SYN

Useful display filters are dns, dns.flags.rcode != 0, and dns.qry.name == "api.internal.example". Compare query time, response time, response code, TTL, and answer. NXDOMAIN, SERVFAIL, empty answers, and unexpectedly short TTLs create very different incidents. Also check whether the application queried at all — stale system resolvers and negative caching can produce silence rather than an error.

ICMP is evidence, not noise

ICMP messages are often the only explicit statement the network makes.

Type 3 code 3: port unreachable
Type 3 code 4: fragmentation needed and DF set
Type 11: time exceeded

A fragmentation-needed message quoting the original packet is a classic MTU clue: small packets work, large packets disappear. Firewalls that filter ICMP can break this feedback and create the maddening "handshake works, data stalls" pattern.

UDP does not retransmit for you

With UDP, absence is the whole failure mode. There is no sequence number unless the application protocol adds one. A comparison such as 1000 RTP packets sent at the client and 964 received at the server can show loss between capture points only if both captures are complete. Even then, it does not identify the dropping device. Quantify rate and pattern: random low-rate loss, periodic bursts, and complete blackholes imply different causes.

QUIC changes transport visibility

HTTP/3 commonly rides QUIC over UDP 443. QUIC encrypts most transport metadata, including much of the loss and acknowledgement detail TCP analysts rely on.

udp.port == 443
quic

You can often identify Initial packets, connection IDs, and migration behavior, but you cannot apply TCP stream logic. If a service works over TCP/443 and fails over UDP/443, test whether QUIC is the variable. Many client failures disappear when UDP 443 is blocked and the application falls back to TCP — that is a clue, not a root cause.

Correlate the chain, don't isolate one packet

A failed application startup is usually a chain: DNS query, TCP connect, TLS handshake, application request. Write down the first stage that failed. "The app timed out" is not a packet diagnosis. "DNS answered correctly in 18 ms; no SYN to the returned address appeared for four seconds" is.

Field notes

  • Capture UDP 53 and TCP 53; truncation, large responses, and some resolver paths use TCP.
  • Check whether ICMP quotes enough of the original packet to identify the affected flow.
  • CDN anycast means the same hostname may resolve differently by network and time; record resolver address and answer.
  • UDP application protocols need their own sequence analysis — RTP sequence numbers, DNS transaction IDs, QUIC packet numbers when visible.

Was this lesson helpful?

Sign in to rate