How to Diagnose Network Issues with Ping, Traceroute and MTR
Complaints like "the site loads slowly", "my connection to the server keeps dropping" or "my ping is high in the game" can be caused by the server, your own internet connection or one of the networks in between. The way to find the problem by measurement instead of guesswork comes down to three simple tools: ping, traceroute and MTR.
In this guide we explain what these three tools do, how to use them on Windows, macOS and Linux, how to read the results and what information to send to a support team.
Ping checks whether a target is reachable and measures the round-trip time. Traceroute (tracert on Windows) shows which network points (hops) packets pass through on the way to the target. MTR combines the two: it measures loss and latency for every hop over a longer period, so you can see where a problem starts. Loss that appears only on intermediate hops is usually not a problem; what matters is whether the loss continues all the way to the final hop.
What Is Ping and How Do You Use It?
Ping sends small ICMP packets to a target and measures how long the reply takes. It answers the most basic question: can I reach the server, and how fast?
ping -n 50 203.0.113.10 ping -c 50 203.0.113.10 The IP addresses in this guide are for documentation only; use your own server's IP address or domain. A single measurement can be misleading, so sending at least 50 packets gives a more reliable result.
How to Read Ping Results
| Value | Meaning | What to watch for |
|---|---|---|
| time (ms) | Round-trip time of the packet | Within the same country usually tens of milliseconds; higher across continents |
| Packet loss (%) | Share of packets with no reply | Persistent loss is the most common cause of drops and slowness |
| min / avg / max | Lowest, average and highest time | A large gap between them indicates fluctuation (jitter) |
| TTL | Remaining number of hops the packet may pass | Usually secondary when diagnosing |
Server location directly affects latency. If your visitors are in Turkey, we explain the difference a Turkey-based server makes in our Turkey-based server guide.
Some servers and firewalls deliberately ignore ICMP packets. If ping times out but your website loads, there is no problem. In that case MTR's TCP mode (Section 4) gives more meaningful results.
Seeing the Path with Traceroute
Internet traffic passes through dozens of routers between your computer and the server. Each one is called a hop. Traceroute lists this path hop by hop and shows the time taken to reach each point.
tracert 203.0.113.10
traceroute 203.0.113.10 The first command works on Windows, the second on Linux and macOS. The first hops are usually your own router and your internet provider; the last hop is the target server. Seeing * * * on some lines is normal: it means that router chooses not to answer this kind of packet.
The names of intermediate hops help you see whose network you are passing through. These names come from reverse DNS records, which we explain in our rDNS guide.
MTR: The Most Powerful Diagnostic Tool
Traceroute measures the path only once, but intermittent problems only show up over longer measurements. MTR continuously sends packets to every hop and collects loss and latency statistics.
sudo apt install -y mtr-tiny
brew install mtr
mtr -rwc 100 203.0.113.10 Use the first line on Ubuntu and Debian and the second with Homebrew on macOS. The last command runs 100 cycles and prints a report. If the target blocks ICMP, you can measure over TCP to the web server's port:
sudo mtr -rwc 100 -T -P 443 203.0.113.10 Windows has a similar built-in tool: pathping 203.0.113.10. It first discovers the path, then collects loss statistics for every hop over a few minutes.
Interpreting the Results Correctly
Each line of an MTR report is a hop. The most important columns are Loss%, Avg (average latency) and StDev (fluctuation).
Loss on a single intermediate hop is usually not a problem
Routers give low priority to, or rate-limit, diagnostic packets addressed to themselves. If one intermediate hop shows 40% loss but later hops and the target show 0%, traffic is flowing fine.
Loss that starts at a hop and continues to the target is real
If loss starts at a particular hop and continues on every later hop and at the target, the problem is most likely at or just before that point.
A latency jump matters only if it persists
If latency jumps at one hop and stays high on every later hop, there is a long link (for example, leaving the country) or congestion at that point. Latency that spikes on a single hop and then returns to normal is usually insignificant.
Common Scenarios
| What you see | Likely cause | What to do |
|---|---|---|
| Loss on the first hops | Wi-Fi, router or local internet line | Retry over a wired connection, restart the router, contact your provider |
| Loss from an intermediate carrier onwards | Congestion on an inter-carrier link | Report it to your hosting provider with two-way MTR results |
| Loss only at the last hop | Server overload, firewall limits or an attack | Check the server's CPU and network usage |
| No loss but the site is slow | Not a network issue; application, database or DNS | Investigate the server and application |
If the network looks clean but the site is still slow, see our website speed guide; if you suspect name resolution, see our DNS guide. Sudden, heavy loss can also be a sign of an attack, which we cover in our DDoS guide.
What to Send to Support
- β An MTR report of at least 100 cycles (or pathping output on Windows) taken while the problem is happening.
- β If possible, an MTR report in the reverse direction, from the server to your IP address.
- β Your public IP address and internet provider.
- β When the problem started, and whether it is constant or limited to certain hours.
- β Text output rather than screenshots, so support can review the values more easily.
Frequently Asked Questions
What is a good ping value?
It depends on distance. Within the same city or country, low tens of milliseconds are good; above 100 ms is normal for intercontinental connections. Loss and fluctuation matter more than the value alone.
I see asterisks in traceroute. Is my connection broken?
No. If the final hop replies, your connection works. Asterisks only show that the intermediate router does not answer diagnostic packets.
Why are two-way measurements requested?
On the internet, outbound and return traffic can take different paths. If the problem is only on the return path, a one-way measurement may not show it.
Can I run these tools on my server too?
Yes. On your Linux VDS you can use the same commands to measure from the server outwards. We explain how to connect to your server in the SSH article in our knowledge base.
Conclusion
Ping shows reachability and latency, traceroute shows the path, and MTR shows where a problem begins. When interpreting results, focus not on isolated loss at intermediate hops but on loss that continues to the target and on persistent latency jumps. Sending two-way MTR reports of sufficient length when you contact support significantly shortens the time to a fix.
Netiyo NVMe VDS servers run in our Istanbul data center with a 10 Gbps network connection and DDoS protection. If you want to host your own hardware, see our data center services.
See VDS Server Plans