Ping and traceroute are two command-line utilities used to test network connectivity and diagnose routing issues. Ping measures round-trip response time between two devices, while traceroute reveals each hop a packet takes across the network to reach its destination.
Ping & Traceroute Utilities
There's a couple utilities that we can use to help troubleshoot problems. One of them is ping and the other one is trace route. With one of them, trace route, we'll actually see the path that a packet is taking to get it to its end device. Because that's what's happening: we're actually sending out a packet that's going to some sort of end device, it's replying back and it's being routed there and back, so that way we can see what the response time is going to be.
Here I am on my Windows machine. I'm going to open up the Windows menu and type in cmd to bring up a command prompt. So here's my command prompt right here, and what I'm going to type in is ping. This is the name of the program. And I'm going to ping 8.8.8.8. So this is a common address that I like to ping to see if I just have some basic connectivity.
So I'll hit enter on this and we can start seeing that we see reply. It tells me some information about this reply. So essentially what this did is it sent out four different packets, and the packets were 32 bytes big, and so we sent this out to the other device, this 8.8.8.8 device, and then it replied back. And we can see the total round trip here, the time it took for this to send out. And we didn't have anything lost, that's good, and we sent four packets and received four packets. So there is ping.
Now, a very similar command that I could use, and actually see what the different hops along the way are, is I can type tracert and 88.8 8 and hit enter with this. And now what's happening is it's using that same type of packet to send out to 8.8.8.8. And then I'm receiving a message back from it that's telling me what each hop along the way is. So these are different routers along the way that are coming back. And I'll see how many routers are between my location and 8.8.8.8. And I can see there is 12 different routers between me and 8.8.8, or probably actually 11 routers. And then this final dns.google.com, which is actually a Google server, this 8.8.8.8.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →