Find what is slowing your network using a capture
The app is slow, and everyone blames the network. A packet capture shows where the waiting really happens: the network, the server or the client.
“The system is slow.” Every network team hears it. The server team says it is the network. The network team says it is the server. Both have graphs that show their part is fine.
A packet capture can settle the argument. It does not give opinions. It shows waiting: how long a request spent travelling, how long the server took to answer, and how long the client took to receive.
Where the time goes
When a user waits for a page, the time is spent in three places:
- The network. Every request and answer needs a trip across the wire and back. That trip is the round trip time. If packets are lost, the sender waits and then sends them again. That costs more time.
- The server. After the request arrives, the server has to think: run a query, build the page. The gap between the request and the start of the answer is the server think time.
- The client. Sometimes the computer that asks cannot keep up, for example because it reads the data slowly.
Your job is to find out which of the three holds most of the waiting. Then you know whose problem it is.
Step 1: Capture while the problem happens
Capture on the slow computer, or as close to it as you can, while the user repeats the slow action two or three times. A capture taken an hour later or on another link measures something else.
If you can, take a second capture on the server side at the same time. Two captures of the same conversation show where in between the time is lost.
Step 2: Check the handshake
Every TCP connection starts with a handshake: SYN, SYN-ACK, ACK. The time between the SYN and the SYN-ACK is a good measure of the round trip to that server. It is your ruler.
- A short round trip means the server is near, or at least the path is quick.
- A long round trip means distance. A server in another country will always have a long round trip. The fix is fewer round trips, for example batching or caching, or a closer server, not a faster line.
- Many SYNs with no answer mean the connection attempts are failing. That is a different problem from slowness.
Step 3: Look for lost packets
TCP numbers its data. When a piece goes missing, the sender notices and sends it again. This is a retransmission. A few lost packets can cost whole seconds, because TCP waits before it sends again. So the loss rate looks small, but the delay is not.
If you see retransmissions in one conversation and not in others, the loss is on the path to that one server. That is useful: it tells you the problem is not “the whole network”.
Step 4: Measure the server’s think time
Pick a request and look at the time until the first byte of the answer. Take away the round trip. What is left is the server’s think time.
If the network delivers the request in a few milliseconds and the answer starts tens of milliseconds later, no network upgrade will help. Hand the server team the time and the request, and ask what the application was doing at that moment. Slow database queries and overloaded CPUs are common causes.
Step 5: Do not forget names
Before the first connection to any site, the device asks DNS for the address. A slow or failing DNS server delays every first connection, and users feel it as “the network is slow”. Look at how long the DNS answers take, and whether many fail.
Step 6: Check the path
A capture cannot see the routers between the client and the server. A route trace can. It lists each hop with its delay. A hop where the delay jumps, and stays high for every hop after it, is where the slowdown starts. Whose network is that hop in? Yours, your provider’s or the service’s? That tells you who to call.
A router that is slow to answer the trace but still forwards traffic normally is not a problem. Do not chase it.
Step 7: Compare with a “before”
If someone changed something, such as a firewall rule, a proxy or a server, capture the same activity after the change and compare it with a capture from before. “It got slower after the change” becomes a list of specific servers and sites, with how much slower each is. Keep a capture of the good state. It is the most useful file to have on the day things go wrong.
How pCapitan does the measuring
You can do all of this by hand, but it is a lot of arithmetic. pCapitan does the measuring for you, from one capture:
- To capture on the slow computer, choose Live capture, pick your network card and click Start capturing. Stop it after the user has repeated the slow action. Or open a capture you already have with Choose capture file. (Live capture uses a free, separate packet-capture engine. The Readiness check under Help & guide tells you what to install.)
- Open Traffic → Performance. The diagnosis card summarises packet loss and connection set-up delay in plain words. It is a starting point, not the conclusion.
- Read the card Who made it slow? Network, server or client. It times every request and answer in the conversations that waited longest, and says which side the waiting belongs to. Click a conversation to see its round trip, its think time and its retransmissions.
- Open Conversations losing the most packets to find the one that lost packets, and its Path and hops card. Click Trace the route now to run a route trace and see where a delay starts.
- Check DNS server responsiveness to rule names in or out.
- After a fix, take a new capture and choose Tools → Compare captures with the mode Before / after. pCapitan lists what changed, problems first.
- Prefer plain words? Open Ask pCapitan and type “why is it slow?”.
For the full walk-through, read the pCapitan first capture guide and see pCapitan for its free trial.
What to remember
- Measure waiting, not traffic. A busy link is not always a slow one.
- The handshake is your ruler. It gives you the round trip.
- Think time belongs to the server. More bandwidth does not shorten it.
- Loss costs more than its percentage. A few lost packets can mean seconds.
- Keep a “before” capture. You will be glad of it.
New to captures? Start with how to read a PCAP file.