• Skip to main content
  • Skip to primary sidebar

Andrew J. Walsh | Writer, Librarian

  • Home
  • My Work
  • Speaking and Writing
  • Blog
  • Contact

How Can I Troubleshoot a Network Connection? Ping vs. Traceroute

May 23, 2012 by Andrew Walsh Leave a Comment

tracerouteBoth ping and traceroute are tools to test or troubleshoot a network connection and diagnose problems between your computer/ISP and a destination server.

They are commands entered on the command line interface, and are similar in the fact that they both can determine if a particular IP address is accessible by your computer, and how long it takes to reach the destination.

In both cases, your computer sends a packet of information, and reports either a successful or unsuccessful trip.

For the latter category, the ping or traceroute may be blocked, either due to a firewall or another type of security measure.

The request also may time out, indicating that the computer cannot connect to the server due to a breakdown somewhere.

One use for both ping and traceroute would be to test your own computer’s network connection. In this case, it is important to try multiple destination servers, as a particular IP might restrict access and thus return a timeout or error, even when your computer may be connected and able to access others.

Both tools could also be used to test whether a particular destination server, such as a website, is online. In this example again, it is important to remember that the website may block pings.

Ping vs. Traceroute Explained

Beyond this, however, there are also numerous ways in which ping and traceroute are different.

A ping returns information about how long the packet takes to go to the destination server and back to your computer, but a traceroute gives information on the exact route your packet takes on the way to its destination.

It shows you the identity of all “hops”—the intermediate points on the trip from your computer to the destination server. A traceroute also returns the time that each hop takes. These two facts allow you to do more detailed troubleshooting.

For example, if you are testing why your network connection is behaving slowly, a traceroute will tell you all the intermediate hosts that packets are sent to on the way to a destination website.

It is usually possible to ascertain their geographical location as indicated in the hostname, and you will be able to see which hops are taking the most time.

This can show you where the connection is breaking down: either on your computer, on the destination server (such as a website you are trying to visit) or some server in the middle.

Another use for traceroute would be if you have purchased server space to host a website, and you want to determine whether a slow connection is the fault of your host, or if it is somewhere in the middle and out of their control (as they will almost always assert!).

In this case, it is also a good idea to perform a traceroute when your website is behaving normally, so you have something to compare to when you are experiencing problems.

Overall, ping is quicker and easier to diagnose your own connectivity or that of a destination server, but traceroute will give you much more detailed information in order to get to the heart of a problem.

Related Posts:

  • command-line-interface
    Why Would You Use the Command Line Interface (And…
    March 18, 2012
  • linux-os
    Is Linux Worth Using? Key Differences Between…
    May 1, 2012
  • Godaddy vs. Bluehost: Which Web Hosting Company is Better?
    Godaddy vs. Bluehost: Which Web Hosting Company is Better?
    November 8, 2012
  • field trip
    Taking a Virtual Field Trip: What's the Appeal of…
    June 13, 2014

Filed Under: Technology

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Connect With Me

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

About My Blog

As an academic librarian, I'm interested in how emerging technologies are changing how we search, learn, and create online. I cover topics like evaluating source credibility, digital productivity, and the impact of AI.

My History Book

lost dayton walsh

View Book

Recent Posts

How ChatGPT is Affecting My Information Literacy Instruction

March 13, 2024 By Andrew Walsh Leave a Comment

Why OER Textbooks Are Important (and How AI Can Help Create Them)

February 9, 2024 By Andrew Walsh Leave a Comment

Prompt Engineers at the Library: Should Librarians Teach AI Searching?

January 2, 2024 By Andrew Walsh Leave a Comment

How AI Will Affect Web Search, Content Quality, and Authority

February 22, 2023 By Andrew Walsh Leave a Comment

Post Categories

  • Academic Librarianship (10)
  • AI and Librarians (5)
  • Digital Productivity (10)
  • Evaluating Sources (14)
  • Local History (4)
  • Open Education (8)
  • Presentations (7)
  • Technology (52)
  • Writing (11)

Copyright © 2025 · Author Pro on Genesis Framework · WordPress · Log in