Networking
Packet Loss Explained: Causes, Effects and How to Diagnose It with mtr
By NileVPS Team · Published · 5 min read
اقرأ المقال بالعربيPacket loss happens when data packets sent across a network never reach their destination. A small amount can go unnoticed, but even one or two percent of sustained loss can make a fast connection feel broken: pages stall, SSH sessions freeze for a moment, video calls turn robotic and game characters jump around. The tricky part is that the symptoms look like "slowness", so people often blame the server or the application. This article explains what causes packet loss, what it does to different kinds of traffic, and how to find where it actually happens.
What packet loss is
Everything on the internet travels in small packets. Each packet passes through many routers between the sender and the receiver. If any device along the way drops it, or it gets corrupted and discarded, that packet is lost. Loss is usually expressed as a percentage of packets sent.
What happens next depends on the protocol:
- TCP (web, SSH, databases, file transfers) notices the missing data and retransmits it. Nothing is lost permanently, but the retransmission costs at least one extra round trip, and TCP also slows its sending rate because it assumes the network is congested.
- UDP (VoIP, video calls, many games, DNS) usually does not retransmit. Lost packets simply disappear, which you hear as gaps or see as freezes.
Why loss hurts more than the percentage suggests
TCP's congestion control treats loss as a signal to slow down. On a long-distance path, a loss rate that sounds tiny can cut achievable throughput sharply, because every loss event halves or reduces the sending window and it takes many round trips to grow back. That is why the combination of high latency and a little loss is particularly painful. See our guide on network throughput for how these factors interact.
Common causes
| Cause | Typical signs |
|---|---|
| Congested link | Loss rises at busy hours, latency rises with it |
| Wi-Fi interference or weak signal | Loss only from one device or location |
| Faulty cable, port or network card | Constant loss, interface error counters increasing |
| Overloaded router or firewall | Loss at a specific hop that carries to later hops |
| Rate limiting or policing | Loss starts once traffic passes a certain speed |
| Overloaded server | Server CPU near 100 percent, drops in kernel counters |
| Duplex or MTU mismatch | Small packets fine, large transfers stall |
How to diagnose packet loss
Step 1: confirm it with ping
ping -c 200 -i 0.2 your-server-ipThe summary shows packet loss as a percentage. Run it long enough to be meaningful; ten pings tell you very little. Repeat the test at different times of day, because congestion-related loss often appears only at peak hours.
Step 2: find where it starts with mtr
mtr -rwbc 200 your-server-ipRead the Loss% column carefully:
- Loss at one middle hop only, with zero loss on later hops: not real loss. Many routers rate-limit replies to probes addressed to themselves while forwarding traffic normally.
- Loss that starts at a hop and continues to the final destination: real loss introduced at or just before that hop.
- Loss only at the last hop: the destination itself may be limiting ICMP, or the server is overloaded. Check with a TCP test.
Because some networks treat ICMP differently, test with TCP too:
mtr -rwc 200 -T -P 443 your-server-ipStep 3: test both directions
Routes on the internet are often asymmetric: the path from you to the server may differ from the path back. If you have access to the server, run mtr from the server toward your own public IP as well. Loss that appears only in one direction narrows the problem considerably.
Step 4: check the server itself
Loss is not always in the network. On the server:
ip -s link show eth0Look at the errors and dropped counters for RX and TX. Run it twice a minute apart; growing numbers matter more than the absolute values. Also check TCP retransmissions:
nstat -az | grep -i retrans
ss -ti dst your-client-ipIf the server's CPU is pegged, the kernel may not process incoming packets fast enough. Check with top or mpstat -P ALL 1 and look at time spent in softirq.
Step 5: rule out your local side
Plug in with a cable instead of Wi-Fi, try another device, or test from a different network such as mobile data. If loss disappears, the issue is in your local network or ISP, not the server.
What you can do about it
- Local problems: replace cables, move away from Wi-Fi interference, update router firmware.
- Server-side drops: reduce CPU load, upgrade to a plan with more cores if the server is saturated, and check firewall rules for aggressive rate limits.
- Routing problems: collect
mtrreports in both directions, with timestamps, and send them to the relevant provider. Evidence speeds up support a lot. - Long, lossy paths: on Linux, BBR congestion control is less sensitive to random loss than the default CUBIC and may improve throughput.
- Location: if the path from your users to the server regularly crosses a congested link, a different data center region may simply route better. You can launch a test server and compare from the deploy page.
FAQ
How much packet loss is acceptable?
For a healthy wired connection, the target is effectively zero sustained loss. Occasional single drops are normal, but steady loss of around one percent or more is usually noticeable in calls and games and reduces TCP throughput.
mtr shows 50 percent loss at one hop. Is that hop broken?
Usually not, if later hops show no loss. That router is probably limiting how often it answers probes aimed at itself while still forwarding your traffic correctly. Only loss that continues to the final destination indicates a real problem.
Can a firewall cause packet loss?
Yes. Rate-limiting rules, connection tracking tables that are full, or a firewall device that is overloaded can all drop packets. On Linux, a full conntrack table shows messages such as "nf_conntrack: table full" in dmesg.