← All guidesBasics

Ping vs traceroute: which one should you use?

Both tools send small probe packets across the network, but they answer different questions.

Ping: “Is it reachable, and how fast?”

Ping sends an ICMP echo request and waits for the reply. You get two things: whether the host answered at all, and how long the round trip took. It is the fastest way to separate “the site is down” from “my connection is down”.

Use ping when you want to:

  • confirm that a server responds
  • measure baseline latency
  • spot packet loss over a short window

Traceroute: “Where does it go wrong?”

Traceroute maps the path your packets take, one router (hop) at a time. It does this by sending probes with a deliberately small TTL, so each router along the way reports back when the TTL runs out.

Use traceroute when ping works but the connection feels slow, or when ping fails and you need to know how far the packets get.

A simple workflow

  1. Ping the destination. If it answers with low latency, the network is probably fine.
  2. If latency is high or probes are lost, run traceroute.
  3. Look for the first hop where latency jumps and stays high — that is usually where the problem starts.

One caveat: some routers deprioritise or block these probes, so a single slow hop in the middle is not always a real problem. What matters is whether the slowness continues to the final hop.

Stop checking by hand

Upzilla watches your sites and APIs around the clock and tells you the moment something breaks.

Try Upzilla