PING and TRACERT (traceroute) networking commands

The ping command is the most widely used
of all network utilities. It’s a tool that is used to test issues
such as network connectivity and name resolution. For example let’s go
ahead and ping a host IP address. So at a command prompt you would type ‘ping’ space then the IP address, then press enter. Now it’s going to send out 4 data
packets to the destination IP address we chose. Then the destination will send the data
packets back to us as a reply, and these replies are called echo reply requests. And these replies
will inform us about what’s happening with the
destination host we pinged. For example if we received a reply, then
that means that there is general network connectivity between us and the destination, but if we did not
get a reply, then that means that there is no reply
from a host and it could mean that there is no network connectivity between us. But if we pinged a host and we got a
message that says “request timed out”, then that could mean
that the host is down or that it’s blocking all ping requests. Or in another scenario, after pinging, if we get a message that says
“destination host unreachable”, then that message is coming from
the router, and it means that a route to the
destination cannot be found. The ping command can also be used to
test name resolution. For example, before we use the ping
command with an IP address, but we can also use it with a domain
name. For example, we could type ‘ping’ space then the domain name “”. So by
paying the domain name, if we get the same successful result as
type in the IP address then this would indicate that name
resolution by DNS is working fine. But let’s just suppose that the domain name ping failed, then
next step will be typing the IP address instead. So if by typing in the IP address, if the
ping command was successful this time that we now know that we are having a
problem with DNS The ping command also be combined with other sub
commands call switches. Switches are used to alter the
parameters up the ping utility. You can view a full list at the switches
by typing “ping” space forward slash and then a question mark. Our next utility is called TRACERT,
which stands for trace route. This utility is used to see the exact
path the data packet is taking on its way to
the destination. So for example, let’s go ahead and trace
the route from our computer to another computer. So
at a command prompt, we would type “tracert” space and then the IP address and press enter. Now the data packet will find its way to
the destination. And each time it reaches a router on its
path, it will report back information about
the router. Such as the IP address and the time it
took between each hop. So the TRACERT utility is a great tool
that can be used to pinpoint where a problem lies on a network if a data packet cannot
reach the destination. So for example if we try to ping a
destination and the pain command failed we can use
the TRACERT utility to find out where the
data packet is failing along its path. So let’s go
ahead and trace route this IP again and let’s suppose this time there
was a problem. So let’s type in “TRACERT” and the IP
address. and as a data packet goes along its path,
it will tell us at which area the problem lies. And the data
packet stops in here. So the TRACERT utility has isolated that the problem is
somewhere between these two routers.

100 Replies to “PING and TRACERT (traceroute) networking commands”

  1. Best animated videos with a very gud explanation .. PLEASE KEEP MAKING more!! THANK YOU SO MUCH!!!

  2. Such a great way to explain technical concepts…!!!
    Your animation is too good that it even clear the concept better than book.
    Thank you for creating such perfect multimedia content.

    We hope to see more from your end….!!!
    Best of luck.

  3. Just remember that just because you're getting request times out doesn't mean no connectivity. It could me network loss, destination mode is powered off, or icmp has been disabled for security reasons

  4. Bill GATES should invest in bringing PING locations around north america . Some how getting other people that have 60-150ms response times to just below 40 ms. As 50 ms is kinda lag for gaming and above that is getting shot through walls. As Im IT tech aware. i notice 60-80 is getting shot through walls. and if i had that kinda money. i would play with A billion on figuring this out for the rest. Ubiquiti is by far Better than Cambium. But Too many updates Bog down they're system.

  5. hi, i am a 2nd year student of electrical and electronic engineering. i have a question, is there any relationships between RTT, number of hops, and geographic distance?

  6. Wanted to give you a shout out that the ads are worth watching fully to support your channel because you make amazing videos. Keep it up and thank you!!

  7. It's "traceroute" in the Linux shell and there's also the "mtr" command which is like ping and tracert combined with lots more (install the mtr-tiny package)

  8. request time could any firewall in the path that is preventing the connection. So, its not always a connection problem if you are not able to trace the route.

  9. Can we ping or traceroute specific private networks on the internet by their public ip address? What role presence of a VPN would play in it? I think it'd be possible if the responder had set up port forwarding in a specific way? What do you think?

  10. Also for those who don't know, TTL in your ICMP echo replies stand for time to live. Each time an echo request or any data packet traverses through routers on its way to the destination, the TTL flag in the encapsulated packet header decreases by one. The reason for this flag is that if a router or routers have improper routing table configurations, the packet can get stuck in a loop, bouncing back and forth endlessly thereby consuming bandwidth on the links and hardware resources such as memory and processing on the affected routers, ultimately never reaching its intended target. To mitigate this problem, the TTL decreases by 1 every time the packet passes through a router and if the packet hasn't reached its intended target when the TTL reaches zero, the packet is dropped from the last router. Typically though, network engineers will configure what's called a "black hole route" on routers in that if the packet doesn't match any of the specified routes in the routing table, it is then immediately sent to the black hole route where it's immediately discarded instead of waiting and relying for the TTL to expire.

  11. nice you keep it simple , I am amazed i talk to AT&T techs and many have no clue about trace routing , it's so basic, and i keep telling AT&T that they need to upgrade and update their internal networks, that have been using the same equipment for over the last decade. it's usually were their slowdowns are, before the packet connects to the internet backbone.

  12. Just to add ,a tracert is a ping command with increasing TTL(time to live) starting from 0 hops till it reaches the destination , A TTL=64 means a packet should go less then 64 hops to get a reply or we will get TTL exceeded message

  13. It should be noted that the "tracert" command is Windows-OS specific. Mac OS X and Linux distros use "traceroute"
    Same functionality is provided though!

  14. So useful, this video can help us to know different between how to ping and trace route.thnx so much we need more videos like this

  15. Comprehensively elaborated. Thank you so much for this video tutorial. Can you please make a video about Jitter, Latancy and Round Trip Delay as well. That would be very helpful for several networking associates.

  16. 0:25. right.. but you never explain why it sends 4 packets, it is because windows "pings" the host 4 times by default? Or does "pinging" a host actually take 4 packets, it doesn't right?

  17. This is the new Google search address for IT beginners, great explanation and precise content. Hope we get a face cam video of you explaining with the animations rolling. Wait a minute…. That would be awesome!!!

  18. Great awesome videos. Very clear and I like the animations. What do you use for your animations, if you don't mind me asking…

  19. Your vids are AWESOME!!!👊🏽👊🏽 I just bought your e-book “Comptia A+”. All this info will help me perform better as a student when I enroll in the Computer Repair / Networking Certification course at tech school. Keep up the good work!!!

    Tracert sends each packet with incremental TTL value starting from 1

    So the first packet expires at first node (most probably your home router) and the node sends back an echo packet this way we get to know the IP address of the node,
    Then it sends the next packet with TTL 2 and so on until we reach the final destination.

Leave a Reply

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