Sub topic 11
When ping and traceroute mislead you
This chapter assumes you can read ping and tracert output and know that both tools rely on ICMP, the Internet Control Message Protocol. It covers why a failed or odd result does not always mean a network fault.
Why ICMP results are only hints
ping sends ICMP echo requests. traceroute relies on ICMP Time Exceeded replies from routers. Neither tool tests the service you care about, such as a web server on TCP port 443. They test whether ICMP packets get through. Many networks treat ICMP as low priority or block parts of it, so the result can disagree with what users experience.
Filtering: the host is up but ping fails
A firewall can drop echo requests. Cloud security groups, host firewalls, and corporate perimeters often do this by default. The output looks like this:
ping -c 3 203.0.113.10PING 203.0.113.10 (203.0.113.10) 56(84) bytes of data.
--- 203.0.113.10 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2046ms"Request timed out" or 100% loss means no echo reply arrived. It does not prove the host is down. If a web page from the same address loads, ICMP is being filtered.
The reverse also happens. A router may answer ping while the application behind it is broken, so a successful ping does not prove the service works.
Rate limiting and low priority
Routers handle ICMP addressed to themselves on the control plane, which is a slow path compared with forwarding traffic. Many routers limit how many ICMP replies they send per second, or give them low priority. This produces two false alarms:
- A hop shows high latency or some loss, but later hops are fine. The router was slow to answer probes aimed at itself. Traffic passing through it was not delayed.
- Occasional timeouts appear in a long ping run, even though real traffic is unaffected.
Reading asterisks in traceroute
An asterisk (*) means no Time Exceeded reply arrived within the timeout. Possible causes differ:
| Pattern | Likely meaning |
|---|---|
| One hop shows `* * *`, later hops respond | That router does not send Time Exceeded replies. Traffic still passes through it. |
| `* * *` from some hop to the end | A firewall may block the probes or the replies. The destination may also just ignore them. It is not proof that the path breaks at that hop. |
| Latency jumps at one hop, then drops | The router deprioritizes ICMP. The jump is not real path delay. |
| Latency rises at one hop and stays high afterward | A real slow link or congestion at or just before that hop is likely. |
The rule is to trust the pattern that continues to the destination, not a single hop. Loss or delay that appears at hop N and persists at every later hop is real. Loss that appears only at hop N is usually rate limiting.
Other things that skew the picture
- Asymmetric routing. The reply may return by a different path than the outgoing one. Traceroute shows only the forward path.
- Load balancing. Equal-cost paths can send different probes through different routers, so hops may appear mixed or out of order.
- Probe type. Linux and macOS
traceroutesends UDP by default, and Windowstracertsends ICMP echo. A firewall that blocks one may allow the other. Runsudo traceroute -I example.comto send ICMP probes on Linux. - Name lookups. Reverse DNS can delay output. Use
tracert -dortraceroute -nto see raw addresses quickly.
A practical check
When a result looks wrong, compare more than one signal:
- Does the application actually work? If yes, treat ICMP failure as filtering.
- Does the pattern persist to the destination, or only at one hop?
- Repeat the test a few times. A single run can hit a rate limit.
- Try a different probe type or a TCP test against the real port.
Exercise
A traceroute shows 40 ms at hop 3, 900 ms at hop 4, 45 ms at hop 5, and 48 ms at the destination. Users report no problems. Is hop 4 the cause of a fault? Why or why not?
Show answer
No. The high latency appears only at hop 4 and disappears at later hops, so traffic passing through that router is not delayed. The router is most likely giving low priority to ICMP replies aimed at itself. A real problem would show elevated latency at hop 4 and every hop after it.
Exercise
Ping to a server shows 100% loss, but its website loads in your browser. What is the most likely explanation, and what could you run to confirm the service is reachable?
Show answer
A firewall is probably dropping ICMP echo requests, while TCP traffic on the web port is allowed. To confirm, test the port directly, for example with Test-NetConnection example.com -Port 443 on Windows.