HomeBlogHow to Do a Ping: ping vs traceroute for Testing Network Connectivity

How to Do a Ping: ping vs traceroute for Testing Network Connectivity

Author

Date

Category

Use ping first when a connection feels broken. Use traceroute next when ping says, “Something is wrong,” but refuses to explain where. Ping is the quick knock on the door. Traceroute is the map of every hallway your packet walks through to reach that door. On Windows, ping sends 4 echo requests by default [source: Microsoft].

TLDR: ping tells you if a device or website answers. traceroute shows the path to get there. Example: if ping google.com returns replies in 18 ms, your connection is probably alive. If 7 out of 10 users in an office lose access to an app, traceroute can show whether the failure starts at the router, the ISP, or the app’s network.

Ping vs traceroute in plain English

Think of ping like shouting, “Hey, are you there?” across the internet.

If the other side hears you, it shouts back. You get a reply time. Nice. Simple. Tiny win.

traceroute is different. It asks, “Which stops did my message pass through?” It shows routers along the way. Each router is called a hop. Yes, like a packet frog. A tiny internet frog.

a wireless router sits on a wooden table home router connected devices private network

Here is the short version:

  • Ping: “Can I reach it?”
  • Traceroute: “Where does the trip slow down or fail?”
  • Ping result: reply time and packet loss.
  • Traceroute result: hop list and delay at each hop.

How to do a ping

Open your terminal. That sounds fancy. It is just a black box that takes commands.

On Windows:

ping google.com

On macOS or Linux:

ping google.com

Yes, the command is the same. A rare mercy from the computer gods.

To stop ping on macOS or Linux, press:

Ctrl + C

Windows usually stops after 4 tries. macOS and Linux keep going until you stop them. Honestly, it feels like they are a puppy with a ball. They will not stop unless you say so.

How to read ping results

A normal ping reply may look like this:

Reply from 142.250.72.14: bytes=32 time=18ms TTL=117

Here is what matters:

  • Reply from: The target answered.
  • time=18ms: The round trip took 18 milliseconds.
  • TTL: Time to live. You can mostly ignore it for basic checks.

Good ping times depend on what you are doing:

  • Under 30 ms: Great for games and calls.
  • 30 to 80 ms: Fine for most work.
  • 80 to 150 ms: Noticeable delay.
  • Over 150 ms: Calls may get awkward.
  • Packet loss: Bad news. Even 2% can hurt video calls.

If you see this:

Request timed out.

Do not panic. The target may block ping. Some servers do that on purpose. Rude? A little. Common? Very.

Useful ping commands

Try these when basic ping is not enough.

  • Ping an IP address: ping 8.8.8.8
  • Ping a domain: ping example.com
  • Ping forever on Windows: ping google.com -t
  • Send 10 pings on macOS or Linux: ping -c 10 google.com
  • Use IPv4: ping -4 google.com
  • Use IPv6: ping -6 google.com

A smart test is this:

  1. Ping your router, like 192.168.1.1.
  2. Ping a public IP, like 8.8.8.8.
  3. Ping a domain, like google.com.

If the router works, your local network is alive. If 8.8.8.8 works but google.com fails, DNS may be the villain. DNS is the internet phone book. Sometimes it drops the phone.

How to run traceroute

Now bring in the detective.

On Windows, the command is:

tracert google.com

On macOS or Linux, use:

traceroute google.com

Windows says tracert. Everyone else says traceroute. It drives me crazy that one tool needed two names. But here we are.

computer screen displaying code and text terminal command wp cli server access

A traceroute output may show rows like this:

1   2 ms    1 ms    1 ms    192.168.1.1
2   12 ms   11 ms   13 ms   isp.gateway.net
3   45 ms   47 ms   46 ms   backbone.router.net
4   *       *       *       Request timed out

Each line is a hop. Each hop is one device along the route. The three times are three test tries. Lower is better.

How to read traceroute results

Do not stare at every number like it owes you money. Look for patterns.

  • Slow first hop: Your WiFi or router may be the issue.
  • Slow second or third hop: Your ISP may be having a bad day.
  • Stars at one hop only: Often normal. Some routers ignore tests.
  • Stars from one hop onward: The path may be blocked or broken.
  • Big jump in time: That area may be congested.

Example. Your ping to an app is 220 ms. That is slow. You run traceroute. Hop 1 is 2 ms. Hop 2 is 12 ms. Hop 3 jumps to 190 ms. That points away from your laptop and toward the ISP path. Now you have something useful to report.

When to use ping

Use ping when you need a fast yes or no.

  • Your website seems down.
  • Your printer vanished again. Classic printer behavior.
  • Your game is lagging.
  • Your VPN feels stuck.
  • You want to test packet loss.

Ping is fast. It is clean. It is not deep. That is the point.

When to use traceroute

Use traceroute when the problem is not obvious.

  • Ping is slow, but not dead.
  • Only one app is slow.
  • Remote users report delays.
  • You need proof for an ISP ticket.
  • You want to find where traffic gets stuck.
a close up of a screen with numbers on it support ticket outage report network diagnostics 1

Expect to waste time on weird results sometimes. A router may hide its name. A firewall may block replies. A hop may look broken while traffic still passes through it. Computers enjoy drama.

Common mistakes

  • Thinking failed ping means the site is down. Not always. Ping may be blocked.
  • Ignoring packet loss. A 100 ms ping with 0% loss may feel better than 40 ms with 8% loss.
  • Blaming the last hop too soon. Check where the delay begins.
  • Testing only once. Run a few tests. Networks change by the minute.
  • Forgetting WiFi. Bad WiFi can make everything look broken.

A simple troubleshooting flow

  1. Ping your router. If this fails, fix local network first.
  2. Ping a public IP. If this fails, suspect internet access.
  3. Ping a domain. If this fails, suspect DNS.
  4. Run traceroute. Find where delay or failure starts.
  5. Save the result. Send it to support if needed.

Bottom line: ping is your smoke alarm. traceroute is your fire inspector. Start with ping. Then use traceroute when you need the “where” behind the “why is this broken again?”

Recent posts