Install Them
sudo apt install traceroute mtr-tiny # Debian and Ubuntu
sudo dnf install traceroute mtr # AlmaLinux and Rocky Linuxmtr-tiny is the build without a graphical interface. tracepath, from iputils (package iputils-tracepath on Debian and Ubuntu), works without root and also reports the path MTU, but has fewer options.
Run traceroute
traceroute example.com
traceroute -n example.comtraceroute sends packets with a growing TTL. The first router decrements the TTL to zero and replies with an error, which reveals hop 1; the next packet goes one hop further, and so on, up to 30 hops by default. Each hop is probed three times, so each line shows three times in milliseconds. -n skips name lookups and runs faster. By default, Linux traceroute sends UDP packets to high ports, starting at 33434.
Asterisks and Gaps
An asterisk means one probe got no reply in time. A line of three asterisks in the middle, followed by normal hops, is a router that does not answer probes; traffic still passes through it. Asterisks from some hop to the end mean either the destination or a firewall drops the probes, or the path is really broken there. Check the service itself, for example with curl -I https://example.com, before drawing a conclusion.
When ICMP or UDP Is Filtered
sudo traceroute -T -p 443 example.com
sudo traceroute -I example.com
sudo mtr --tcp --port 443 example.com-T -p 443 sends TCP packets to port 443, which firewalls in front of web servers usually let through. -I uses ICMP echo, like ping. TCP probes need root, and ICMP probes usually do too, hence sudo; the default UDP method does not. mtr uses ICMP by default; --tcp switches it to TCP SYN probes.
Run mtr
mtr example.com
mtr -rw -c 50 example.comThe first form opens a live view that keeps updating; press q to quit. The second sends 50 rounds and prints a report: -r for report mode, -w for full host names, -c for the count. Columns show the loss percentage, packets sent, and the last, average, best, and worst times, plus the standard deviation. Add -n for addresses only and -4 or -6 to choose the protocol.
Read Packet Loss Correctly
- Loss at one hop only: if hop 6 shows 40% loss but hops 7 to the end show 0%, the router at hop 6 most likely limits how many replies it sends. Your traffic passes through it without loss. This is the most common misreading.
- Loss that continues to the end: if loss starts at one hop and every later hop, including the destination, shows it too, there is a real problem at or near that hop.
- Loss only at the last hop: the destination may limit replies; compare with a TCP test.
Read the Latency
Times rise along the path. A large jump that stays high for all later hops usually means a long link, such as an ocean crossing. A jump at one hop that drops again later is a busy router answering slowly. A worst time far above the average, together with a high deviation, points to congestion.
Test Both Directions
The path to a server and the path back are often different. Run mtr from the server to your own address and from your computer to the server. Without access to the other end, a provider's looking glass runs the test from its network; see what is a looking glass. When you report a network problem, include both mtr reports, made with -rw -c 100 while the problem is happening.
For a quick reachability check, use ping; for throughput between two machines, use iperf3. The other everyday tools are listed in Linux network commands.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations