Why woud ping fail but not traceroute

6,534

Most probably the pong from ping is blocked/gets discarded, while traceroute uses an error message form a node/hop to determine the route. Traceroute is not a standard tool, in that it uses a trick to get the information. The trick is to manipulate the TTL, so the hop responds with an ICMP error (ICMP TTL exceeded), and that is why this is possible.

Share:
6,534

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin over 1 year

    For a few days now I started making the interesting observation of a machine intermittently not responding to an ICMP ping, while it still responds to an ICMP based traceroute (specifically set via the -I parameter).

    As far as I know both would use ICMP's echo request, so I wouldnt expect any difference there.

    Would anyone have an explanation for this?

  • Admin
    Admin almost 9 years
    Thanks Konrad, if I understand you correctly you are saying it would work because instead of sending an ICMP reply it sends a TTL exceeded and the former would be blocked, while the latter wouldnt be. Correct?
  • Konrad Gajewski
    Konrad Gajewski almost 9 years
    Yes. Why it blocks the pong - I don't know. I can just guess. From my experience, I have rarely seen traceroute blocked, but ICMP echo gets blocked more often. But since you are saying that it is intermittent, something else must be going on. You need to diagnose it further. Faulty firewall? Failing equipment?