Packet loss: your Wi-Fi, your provider or them?
How much packet loss matters, why ten pings can’t find it, and how to tell whether it’s in your Wi-Fi, on your line, or at the other end, with commands.
3 min read
On this page
Voices in a call break up, a game skips, a page hangs and then loads. Packets are being lost somewhere on the way, and the question is where. It can be answered with three pings, provided they're long enough.
Why a little matters
Lost packets have to be sent again, and the sender takes each loss as a sign to slow down. For classic TCP the ceiling can be calculated from the loss and the round-trip time:
Speed tests hide this by using several connections at once. Calls and games feel it directly: they can't wait for a packet to be sent again, so it's simply missing.
Ten pings aren't enough
If 1% of packets are lost, ten pings show nothing nine times out of ten. Send 300, at a time when the problem is there. It takes five minutes.
Three places, 300 pings each
Find your router's address and your provider's first hop as described in Slow Wi-Fi or slow broadband? Then run all three at the same time, in three windows. On macOS and Linux:
ping -c 300 192.168.1.1ping -c 300 198.51.100.1ping -c 300 1.1.1.1On Windows:
ping -n 300 192.168.1.1ping -n 300 198.51.100.1ping -n 300 1.1.1.1The last lines give the result:
300 packets transmitted, 291 packets received, 3.0% packet lossround-trip min/avg/max/stddev = 10.812/14.905/201.337/18.442 msThe addresses and numbers are examples. Add one or two more distant targets that answer ping, such as 8.8.8.8 and 9.9.9.9, so that you don't blame your line for someone else's problem.
Don't trust a single hop
Tools such as mtr and traceroute show loss for each hop, and people often point at the first red line. This is a real trace from a data center in Germany to ckip.net:
Routers forward packets in hardware and answer pings with a slow processor, if at all. Loss that doesn't continue to the target isn't loss. Look at the last line first. If it's clean, so is the path. If it isn't, look for the hop from which loss appears and then stays all the way. Reading the hops has more.
To run it from your own computer: mtr -rwc 300 1.1.1.1 (on macOS, install mtr with Homebrew and run it with sudo) or, on Windows, pathping 1.1.1.1.
The way back may be different
Ping reports a loss if the packet or its answer disappears, and the answer can take a different route. Your trace shows only the way there. If the trouble is with one particular server, ask for a trace from it to you. Many services and hosting providers will run one.
You can also test the far end from elsewhere. A global ping sends probes from many countries to a target:
- All places lose packets: the target or its network.
- Only some regions: a route.
- None: the problem is on your side.
It can't test your own line, because the probes don't pass through it. Pinging your public address from outside isn't a good test either, since many routers don't answer.
What to do
Wi-Fi. Try a cable. Then come closer, change to 5 or 6 GHz, and see the settings.
Cable, switch or router. Replace the cable, which is the cheapest part and the one that fails. Use another port. Restart the router.
The line. Check the modem's status page for errors, and the connectors. Then call your provider with the numbers: "300 pings by cable, 0% to my router, 3% to your first hop, three evenings in a row". Save the output with times.
The provider's connections. Compare the evening with the early morning. Loss at peak hours only means congestion, and you can't fix that from your side. A report with times and targets helps, and so does knowing whether others are affected: the status page shows larger disturbances.
The other end. Tell them, and include the trace in both directions if you can get it.
It may not be loss
- Delays without loss, only when someone's downloading: bufferbloat.
- 100% loss to one address, while the site works: it doesn't answer ping. Many don't.
- Pages that hang halfway, and no loss with small packets: try a larger one. If small pings get through and large ones don't, it's a size limit on the way, often with a VPN.
- Loss only with a VPN on: its server or the route to it. Try another server.