4 min read

How to Find Network Latency Problems in a Packet Capture

'The network is slow' is the vaguest trouble ticket an engineer ever receives. This article lays out a four-step, packet-capture-based method: first break down where the latency lives, then tell waiting, losing, and a slow server apart — each step with clear decision criteria and the packet evidence that backs it.

How to Find Network Latency Problems in a Packet Capture
SummaryKey Points
  • There are only three root causes of slowness: waiting (latency), losing (retransmissions), and a slow server
  • The four steps: dashboard statistics → conversation timeline → TCP behavior → application-layer TTFB
  • Decision criteria: RTT distribution, retransmission rate, and server time to first byte (TTFB)
  • PcapDecoder renders the statistics panel as soon as parsing completes; conversation RTT and retransmissions are one tap away

Defining "Slow"

When a user says "the network is slow", the engineer's first job is to translate that into a measurable problem. From a packet-analysis perspective, end-to-end slowness has only three sources:

Root causeWhat it looks like in the captureKeywords
Waiting (Latency)High RTT, but no packet loss or retransmissionsRTT, physical distance, route detours
Losing (Loss)Heavy retransmissions, duplicate ACKs, out-of-order packetsRetransmission rate, link quality, queue overflow
Slow server (Server)TCP is clean, but a long gap between request and responseTTFB, application processing time

A large share of "slow network" complaints are actually the third kind — nothing wrong with the network; the server is slow to process. Without a capture you are guessing, and it is easy to fix the wrong thing.

The Four-Step Method

Step 1: Global statistics — build a sense of scale

Open the pcap and PcapDecoder's dashboard answers it the moment parsing completes: packet count, protocol distribution, top conversations, traffic over time. Three questions answered at once:

  • Is traffic abnormal during the slow period (congestion)?
  • Is the protocol distribution normal (e.g., a sudden flood of ICMP or DNS failures)?
  • Is the conversation count reasonable (connection storm)?

Step 2: Pin down the target conversation

Sort the conversation list by top traffic or connection count to find the "most suspicious" one: the largest traffic, the most connections, or the one active during the complaint window. Open it to see the packet-level timeline — every packet's inter-arrival gap, direction, and size at a glance, with RTT computed directly from the time between a packet and its ACK.

!Packet list

Step 3: Examine TCP behavior — tell "waiting" from "losing"

Select the target conversation in PcapDecoder and focus on three metrics:

  • RTT (round-trip time): the time from a data packet to its corresponding ACK. Persistently high = long link or route detours; sudden jumps = queue congestion starting;
  • Retransmission statistics: the conversation details give retransmission packet counts and ratios directly — above 1% starts to noticeably affect experience; above 5% and the business is basically unusable;
  • Duplicate ACKs / out-of-order: companion signals of packet loss, flagged directly in PcapDecoder's packet list; out-of-order indicates poor link quality or abnormal middlebox behavior.

Step 4: Confirm at the application layer — pin down the server

If TCP is clean (no retransmissions, normal RTT), switch to the application-layer protocol cards and examine HTTP interactions: the time from sending an HTTP request to receiving the first byte of the response (TTFB). PcapDecoder's HTTP card gives a per-request time breakdown — large TTFB = slow server processing; small TTFB but slow download = a bandwidth or receiver-side issue.

Three Typical Scenarios

Scenario 1: Slow cross-region access

Profile: RTT steady at 200ms+, no retransmissions, TTFB a small share but many page resources. Conclusion: physical distance plus many protocol round trips. Fix: CDN, connection reuse, HTTP/2 or HTTP/3.

Scenario 2: Everyone slows down at peak hours

Profile: RTT fluctuating from 20ms to 150ms, with bursts of retransmissions. Conclusion: link congestion, queue overflow drops. Fix: QoS, capacity expansion, load shifting.

Scenario 3: One system is slow, everything else is fine

Profile: TCP is clean, TTFB 3s+. Conclusion: a server-side issue (slow database queries, thread pool exhausted); the network investigation ends here — hand it to the application team. The value of a capture is quickly ruling out the network as a suspect.

Common Misjudgments

  • Mistaking retransmissions for packet loss: retransmission is a recovery mechanism — it means loss happened; it is a problem only when retransmissions are frequent. PcapDecoder's conversation details give retransmission counts and ratios directly — look at absolute volume and ratio; don't jump to conclusions from a single retransmission packet;
  • Ignoring timing and looking only at packets: the same two packets 10ms apart are a different story from the same two packets 3 seconds apart. PcapDecoder's packet-level timeline view marks each packet's arrival time to microsecond precision — always look in time order;
  • Forgetting client performance: sometimes "slow" is a saturated terminal CPU or a stuttering browser render, with traffic perfectly normal. Sweep it with PcapDecoder; once you have confirmed the network side is clean, promptly hand it to the application team — the value of a capture is quickly ruling out the network as a suspect, not taking the blame for everything;
  • Concluding from a single short capture: slowness is often time-based; a capture window that misses the problem window is wasted effort. Ask "when is it slow?" before capturing, and make the capture window cover it.

Related reading: Packet Loss Analysis: Retransmissions, Reordering, and Link Quality.

Network LatencyTroubleshootingTCP RetransmissionPacket Analysis
Share
Back to home