Sub topic 11
When ping and traceroute mislead you
This chapter assumes you already know how to run ping and tracert/traceroute and can read their basic output. It also assumes you know what ICMP echo and TTL do. The goal here is to recognize when a result looks like a fault but isn't one, and when a healthy-looking result hides a real fault.
Why ICMP tests are indirect evidence
ping and traceroute do not measure what your users experience. They send ICMP messages (or, for Linux and macOS traceroute by default, UDP probes) and watch what comes back. A web page or a database query uses TCP or UDP on specific ports, and it can behave differently from an ICMP probe at every device along the way.
A reply proves that a path worked for that probe. A missing reply proves only that no reply arrived. Many devices are configured to drop, delay, or deprioritize ICMP. Treat each result as one piece of evidence and confirm it with a second test before you call it a diagnosis.
Firewalls that drop ICMP
Many hosts and networks block inbound ICMP echo requests. Common reasons are policy, attack surface reduction, and defaults in host firewalls. A blocked host looks like this:
ping -c 3 198.51.100.20PING 198.51.100.20 (198.51.100.20) 56(84) bytes of data.
--- 198.51.100.20 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2046msHere the host may be running normally while serving web traffic. The 100% loss tells you only that echo requests or their replies did not make it through.
A request timeout can have several causes:
- The host is down or unreachable.
- A firewall drops echo requests.
- A firewall drops echo replies on the way back.
- A return route is missing, so replies never reach you.
- The link is dropping packets.
A Destination host unreachable message is different. It is an ICMP message sent by a router (or by your own machine) saying it has no route or cannot reach the next hop. Someone sent you an answer, so this is stronger evidence of a routing or addressing problem than a plain timeout. On Windows, be careful: if the message comes from your own address, your machine could not find a way to send the packet. If it comes from another IP address, that router is reporting the problem.
If ping fails but you suspect the host is fine, test the service directly. Use a tool that speaks the real protocol, such as opening the site in a browser or checking the port with a TCP test. The next section shows one on Windows.
Test-NetConnection example.com -Port 443This command runs in PowerShell, not in the classic Command Prompt. It attempts a TCP connection to port 443 and reports whether it succeeded. On Linux and macOS, nc -zv example.com 443 does a similar job, if nc is installed.
Asymmetric paths and one-way failures
Routing on the internet is not symmetric. The packet you send to a host may follow a different path from the reply it sends back. A ping reply needs both directions to work. If the forward path is fine and the return path is broken, you see a timeout, and nothing in the output tells you which direction failed.
Traceroute has a similar limit. It shows the forward path only. Each hop's reply comes back along whatever route that router chooses, which may differ from the route your probe took. A slow time at one hop can come from the return path and not from the router itself.
Asterisks in traceroute
An asterisk in traceroute output means no reply arrived for one probe within the timeout. It does not by itself mean a fault.
1 <1 ms <1 ms <1 ms 192.168.1.1
2 9 ms 8 ms 9 ms 203.0.113.1
3 * * * Request timed out.
4 18 ms 19 ms 18 ms 198.51.100.9
5 20 ms 19 ms 20 ms 198.51.100.20Hop 3 shows three asterisks, yet hops 4 and 5 answer. Traffic clearly passed through hop 3 to reach them. That router forwards packets but does not send ICMP Time Exceeded messages, either because of its configuration or because a firewall filters them. This is not a problem on the path.
A different pattern points to a real fault:
1 <1 ms <1 ms <1 ms 192.168.1.1
2 9 ms 8 ms 9 ms 203.0.113.1
3 * * * Request timed out.
4 * * * Request timed out.
5 * * * Request timed out.If every hop after a certain point is silent through the end of the trace, traffic may be stopping at the last hop that answered, or the remaining routers may all filter ICMP. Traceroute alone cannot separate these two cases. Check whether other tests, such as a TCP connection to the destination, also fail.
The destination itself may be silent even when the path is complete. If the final hop is a firewall that drops probes, the trace ends in asterisks even though the service works.
Rate limiting and misleading latency
Routers handle two kinds of traffic. Transit traffic passes through the router and is forwarded by fast, dedicated hardware. Traffic addressed to the router itself, such as an echo request or an expired probe that needs a Time Exceeded reply, is handled by the router's general-purpose processor, often called the control plane. Operators protect that processor by rate limiting ICMP replies and giving them low priority.
This produces results that look alarming but are harmless:
- A hop shows 300 ms while every later hop shows 20 ms. The router was slow to generate the reply, but it forwarded your traffic quickly. Later hops would also be slow if the delay were real, because their probes cross that router.
- A hop shows 50% loss while the final destination shows 0% loss. The router drops some of the replies it generates but forwards your traffic normally.
The rule to apply is to trust the end of the path. Loss or latency that appears at one hop and disappears at later hops is almost always ICMP deprioritization. Loss or latency that starts at a hop and continues through every hop after it is real, and the first affected hop is where to look.
Load balancing and changing paths
Networks often spread traffic over several equal links (equal-cost multipath). Routers choose a link by hashing packet fields, such as the source and destination addresses and ports. Traceroute varies the destination port or other fields between probes in some implementations, so successive probes can take different links.
You may see two different addresses at one hop number, or a path where hop 6 answers from one router and hop 7 from a router that is not connected to it. The listing blends several real paths, and it is not a single path. Hop counts and times at a given number can come from different devices.
Routes can also change between runs because of failover or traffic engineering. Run the test more than once before you draw conclusions, and note the time.
Other things that make ping lie
- Reverse DNS delays. If a trace pauses before each line, name lookups may be slow. Use
tracert -dortraceroute -nto skip them and see if the trace speeds up. - Packet size. Small default probes can pass where larger packets fail. If web pages stall while
pingworks, test with larger payloads (see the MTU test earlier in this tutorial). - A busy local machine. Wi-Fi power saving, VPN software, or CPU load can add jitter to your own measurements. The first ping in a series is often slower because the system must first resolve the next hop's hardware address.
- Average hides spikes. A mean of 25 ms can contain a few 400 ms replies. Look at the minimum, maximum, and loss figures, not just the average.
- A VPN or proxy in the way. Traffic may leave your machine through a tunnel, so the first hops are not your normal gateway.
Reaching a sound conclusion
Use this approach to avoid false conclusions:
- Repeat the test at least once, and again later if the problem is intermittent.
- Compare ICMP with a protocol the user actually relies on, such as TCP on port 443.
- In traceroute, judge the path from the last hops backward, not from a single noisy hop.
- Test from a second machine or network when you can. If the destination answers from elsewhere, the fault is likely near your side.
- Record what you saw, including exact addresses and times, before you hand off to someone else.
Summary table
| Observation | Possible innocent cause | Possible real cause | Next test |
|---|---|---|---|
| Ping times out | Host or firewall blocks ICMP | Host down, route or link broken | TCP test to the service port |
| Asterisks at one middle hop | Router does not send Time Exceeded | Rarely a fault if later hops answer | Read later hops |
| High latency at one hop only | ICMP rate limiting | None | Check the final hop |
| Loss from a hop to the end | None | Real loss starting at that hop | Repeat, then run pathping or test from elsewhere |
| Trace ends in asterisks | Destination or last firewall filters probes | Traffic stops at last answering hop | TCP test to the destination |
| Two addresses at one hop | Load balancing | Route change | Repeat the trace |
Exercise
A traceroute to a web server shows hop 6 with 60% loss and 250 ms latency. Hops 7 through 10, including the server, show 0% loss and 25 ms. Is hop 6 the cause of a user's slow page loads? Explain.
Show answer
No. Loss and latency that appear at one hop and vanish at every later hop come from ICMP rate limiting or low priority on that router's control plane. If hop 6 truly dropped or delayed forwarded traffic, hops 7 through 10 would show the same loss and delay, because their probes cross hop 6. Look elsewhere, for example at the server, DNS, or the application, and confirm with a TCP-based test.
Exercise
ping 198.51.100.20 shows 100% loss, but the website on that host loads in a browser. Give two possible explanations and one test that distinguishes the service state from the ICMP state.
Show answer
The host or a firewall in front of it may drop ICMP echo requests, or the echo replies may be dropped on the way back. Either way the web service on TCP port 443 is unaffected. A TCP test such as Test-NetConnection 198.51.100.20 -Port 443 in PowerShell, or nc -zv 198.51.100.20 443 on Linux and macOS, shows whether the service port accepts connections.
Exercise
A trace shows the final three hops as asterisks, but a browser reaches the destination without trouble. What most likely explains the asterisks?
Show answer
The last routers or the destination's firewall do not return ICMP Time Exceeded or echo replies to probes, so the trace shows no answers even though forwarded traffic reaches the service.