Lesson 1 of 9 · 22m
Capture in the Right Place
The first diagnostic decision is vantage point: client, server, middle, or controlled load — each answers a different question and hides different facts.
A packet capture is not a neutral recording of reality. It is a recording from one vantage point, with one timestamp source, one host's loss behavior, and one set of offloads mangling what you see. Most bad packet analysis starts before Wireshark opens: the capture was taken in the wrong place.
I once watched a team argue for three hours that an application was retransmitting because the network was unstable. The capture came from the client. When we captured beside the server, the original client segment never arrived. Same incident, opposite conclusion.
Choose the vantage point deliberately
client --- access network --- load balancer --- application server
A B C D- At A you learn what the user sent and received, but not what the network delivered.
- At D you learn what the server saw, but not what the client attempted.
- At B or C you can separate network loss from endpoint behavior.
- Capturing at both ends is best: compare missing segments, timing, and TCP options.
If the task is "is the network dropping traffic?", one capture cannot prove it. You need a before-and-after pair. If the task is "why does the application close the connection?", an endpoint capture often answers faster than a middlebox capture.
Capture close to the failure domain
The right interface matters as much as the right machine. On a Linux server, eth0 may be the outside path while lo carries service-to-service traffic through a local proxy. In containers, the traffic may cross veth pairs, a bridge, or the host's overlay interface.
ip -brief addr
ip route get 203.0.113.25
sudo tcpdump -ni any host 203.0.113.25-i any is useful for discovery, not precision. It mixes interfaces, uses Linux cooked capture framing, and can make packet provenance harder to read. Once you know the path, capture the specific interface.
Remember what endpoint capture does to evidence
Modern NICs and operating systems modify packets before tcpdump sees them. Segmentation offload can produce outrageously large outbound frames. Receive coalescing can distort timing. Checksums may appear invalid because the NIC would have computed them later.
Outcomes that are usually artifacts on the sender:
- outbound TCP checksum incorrect
- outbound frames larger than the MTU
- timing clustered by interrupt coalescingDo not build a theory on those artifacts. Disable offloads only when you understand the production impact, or capture on the wire instead.
Field notes
- Record the host, interface, capture command, time zone, and expected traffic path before starting.
- A load balancer, NAT device, or proxy can terminate one connection and originate another; packet correlation stops there.
- In cloud environments, security groups and load balancer health checks generate background traffic that looks alarming but is routine.
- If you cannot capture both ends, capture the end you control plus a controlled test from the other side.
Was this lesson helpful?