Ping Command- A deeper dig

Ping Command

What is Ping Command ?

Most of you are aware of the ping command probably. Packet Internet Groper as it stands for finds its use to check the network connectivity. It uses the ICMP (Internet Control Message Protocol).

In an IP network, ping is the essential command to check the traceability of the host. It measures the round trip time of 32 bytes ICMP echo request from Source to the Destination host, and the echo reply from destination to the source.

ping
Executing Ping command from the Command Prompt

The Ping result looks like the image, as shown below. Let us take the terms one-by-one. The image illustrates the ping statistics in Windows OS. In other OS, like Linux, the statistics slightly differ. Though, the basic syntax and significance of ping command are the same in all Operating Sytems.

How to execute the command ?

The simple syntax is <ping x.x.x.x>, where x.x.x.x is the IPv4 address. The letter ‘x’ may represent numbers 0-255. To know more about the numbers in IPv4 address, you may go through another article on the IP address. You may also use domain names in place of IP addresses for pinging. For example, ping networkhope.in.

It will send the echo-request packet to the destination host. The destination host means one whose IP address includes in the Ping command. You can execute the Ping command either from the RUN dialogue box or the command prompt.

To run Ping from Run dialogue box, press Windows Logo + R from the keyboard. It will open the Run dialogue box. Now you can type Ping followed by IP address after adding a space. Hit Enter, that’s it.

Open command prompt from RUN
Opening Command prompt from the Run dialogue box

To execute it from the command prompt, type CMD in Run dialogue box, and hit Enter. The command Prompt screen opens, here one may type the ping command in the same syntax and hit the Enter button.

The advantage of running Ping from the Run dialogue box is that you can reuse that command without a need to type it again, from the drop-down in the future.

About The statistics of Ping Command

The ping command sends four ICMP echo requests by default, and the output displays the round trip time for each ICMP echo reply. As you can see here, the four ICMP echo packets took 1,3,1, and 2 ms, respectively. The statistics show the maximum, minimum, and average time in ms. The average here may look somewhat tricky, but it’s showing the times rounded to 1 milli-second, so it looks like that. In the Linux OS, it shows up to 2 decimal places in ms, which is somewhat more accurate.

The successful ping result shows the IP address of destination host, bytes, time, and TTL in each line. IP is the logical address of the destination host, and bytes signifies the size of the ICMP echo requests in bytes, which is 32 bytes by default. In the next section of this article, we will see how to manipulate the packet size. Time represents the round trip time for the packet to reach the Source host, rounded to 1 ms. TTL is Time To Live, which means the limit of hops.

The TTL value is decremented by 1 in each hope until it reaches 0. The intermediate router discards the ICMP packet when the TTL reaches the numeric value 0. Or you can say the ICMP packet will stay alive up to that number of hops. If the TTL value is 64, the data packet will not go further after reaching 64 hops.

Error Messages

If the Ping is not successful, different types of error messages are generated. The most common error messages are:

Request timed out: The destination host is not responding most probably due to network issue.

Destination Host unreachable : The destination host is shut down, not connected or not operating in the network.

TTL expired in transit: The destination host is beyond the TTL value. Suppose the destination host is 30 hops from you . If you set the TTL to any number less than 30, this error message will appear. I will explain this later in “-i” switch.

Transmit failed. General failure: Either the source device has no physical connection or has no IP address, Missing adapter, etc.

Important Switches of PING command

Switches are the additional optional parameters you can combine with a Ping command. Let us examine some essential ping switches one-by-one with their uses.
You should know when to use, and which switch to use rather than remembering all the switches. Keep in mind that the Ping switches described here are case sensitive.

The ‘-a’ switch

The ‘-a’ switch resolves the IP address to the hostname in the network. Suppose that you are managing a secure Network, and found an IP conflict in it.

There may be some reserved static IP for devices like Printer, Server, etc. You will never wish some other host use the same IP and disturb the complete Network. Now, all you want is to trace the host which is having duplicate IP.

You can trace the hostname of that device with the help of ‘-a’ switch. As you can see in the image below, pinging a host with its IP address combined with the Ping switch ‘-a’ resolves the hostname of that PC.

Syntax : ping -a x.x.x.x
Ping switch -a

The ‘-i’ switch

If you get the error message TTL expired in transit, “-i” switch can be used to define TTL value. The TTL values by default are different for different OS’s. Maximum permissible TTL value is 255.The syntax is :-

Ping -i <value> x.x.x.x

In image below, I am successfully pinging a remote host with TTL value 27 . Whereas reducing the value to 26 gives the TTL expired error . The remote host is exactly 27 hope away.

Ping TTL

The ‘-t’ switch

The ‘-t’ switch is used to continue the pinging unless it is interrupted. You can interrupt by pressing Control+C . It is useful to check link which is continuously going UP and DOWN. Remember it is added after the IP address with a space.

Syntax is : Ping x.x.x.x -t

The ‘-l’ switch

This switch defines the packet size in bytes. By default its 32 bytes in Windows. It is useful in checking the link when there is intermediate time out message. You can just increase the size of packet and check whether it works.

Syntax is : ping -l <size> x.x.x.x

The ‘n count’

By default Windows OS sends four ping packets. As we have seen, applying the ‘-t’ switch at the end of the ping command sends continuous packets unless one manually interrupts it. With the addition of the ‘n count’, you can customize the ping command to send a predetermined number of ICMP packets.

Syntax is :- ping -n <count> x.x.x.x

n count Switch

The above figure shows the ping command with the ‘-n ‘ switch limiting the ping request to a number 5. The pinging stops automatically after 5 ICMP packets.

Hope you have enjoyed reading it. You may share this article from the link below.

Share this article.


98 Comments

    • Raj Kumar

      The language of topic very clear and content in a rythem.I am very sure about excellent future of this platform.

  1. lasertest

    Spot on with this write-up, I absolutely think this site needs a great deal more
    attention. I’ll probably be returning to see more, thanks
    for the advice!

  2. wikipedia reference

    Greetings! Very helpful advice in this particular post!
    It is the little changes which will make the greatest changes.
    Thanks for sharing!

  3. zamalek sc season 2008–09

    quite exceptional photo.

  4. سعر الذهب

    Some splendid images. Incredible shades. https://visual.ly/users/pricegoldnow/portfolio

  5. top essay writing service

    Hello colleagues, itss impressive piece of writing regarding tutoringand
    fullly explained, keep it up all the time.

    https://writepapersforme.com
    top essay writing service
    top essay writing service
    https://ordertermpaperonline.com

  6. top essay writing service

    Very descriptive post, I loved that a lot. Will there be a part 2?

    https://bartlebywrite.info
    top essay writing service
    top essay writing service00000039
    https://bartlebywrite.info https://servicethesis.info

  7. ووردبريس للمبتدئين

    I think this is one of the most significant info for me.
    And i am glad reading your article. But should remark on few general things,
    The web site style is great, the articles is really excellent : D.
    Good job, cheers https://howetarp9.tumblr.com/post/631317586624282624/important-things-about-using-premium-wordpress

  8. Earn profit

    I’m not that much of a internet reader to be
    honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come
    back down the road. Many thanks

    Stop by my web site – Earn profit

  9. GGT

    I’m gone to say to my little brother, that he should also go
    to see this web site on regular basis to take updated
    from newest news update.

    Look into my web blog; GGT

  10. join here

    You can certainly see your expertise in the work you write.
    The sector hopes for more passionate writers like you who
    aren’t afraid to say how they believe. At all times go after your heart.

    my web-site :: join here

  11. Around the Globe

    It’s very effortless to find out any topic on net as compared to books,
    as I found this piece of writing at this web page.

    Review my web blog; Around the Globe

  12. Cloud storage

    Appreciating the time and effort you put into your blog and detailed information you provide.

    It’s awesome to come across a blog every once in a while that isn’t the same out of date rehashed information. Great
    read! I’ve bookmarked your site and I’m including your RSS feeds to my Google account.

    Also visit my homepage; Cloud storage

  13. More info

    I every time used to study article in news papers but now as I am a user of
    net thus from now I am using net for articles, thanks to web.

    my page – More info

  14. explorer.dapscoin.com

    Fabulous, what a webpage it is! This webpage presents valuable data to us, keep it up.

    Here is my site – Security audit (explorer.dapscoin.com)

  15. staking

    Good day! I could have sworn I’ve visited this blog before but after looking at a few of the posts
    I realized it’s new to me. Anyhow, I’m certainly pleased I discovered
    it and I’ll be bookmarking it and checking back often!

    Here is my web page: staking

  16. community business

    Greetings from Los angeles! I’m bored to death at work so I decided to check out your site on my iphone
    during lunch break. I really like the information you provide here and can’t
    wait to take a look when I get home. I’m shocked at how quick your blog loaded on my phone
    .. I’m not even using WIFI, just 3G .. Anyhow, great blog!

    Here is my website – community business

  17. blogger

    Hi there, I log on to your blogs daily. Your story-telling style is witty,
    keep it up!

  18. google.com

    It’s actually a great and useful piece of info. I am happy that you simply shared this useful info with us.

    Please keep us informed like this. Thanks for sharing.

  19. lokal seo

    Hello there! I could have sworn I’ve visited this web
    site before but after browsing through a few of the posts I realized it’s new
    to me. Anyways, I’m definitely happy I came across it and I’ll be bookmarking it and checking back often!

  20. backlinks kaufen

    This design is incredible! You certainly know how to keep
    a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well,
    almost…HaHa!) Excellent job. I really enjoyed what you had to say, and more than that, how you presented it.
    Too cool!

  21. Justina

    Lo explicaste excepcionalmente bien. Enhorabuena!

  22. Melisa

    Perfectamente explicado. ¡Saludos!

  23. Shawn

    Lo explicaste excepcionalmente bien. Guauu gracias!

  24. Gaye

    Has dejado todo de forma amena. Gracias!

  25. la mejor aspiradora del mercado

    Lo explicaste genial. Muchísimas gracias!

  26. el blog del gato

    Lo has explicado excepcionalmente bien. Guauu gracias!

  27. Clarissa

    Bien explicado. ¡Saludos!

  28. cinturon para perros coche

    Perfectamente explicado. ¡Gracias!

  29. PG SLOT

    What’s up, yup this article is actually good and I have learned lot of things from it regarding blogging.
    thanks.

  30. Immobilienmakler Heidelberg

    Der Artikel ist wirklich informativ. Das Thema hat
    mich schon länger interessiert und ich konnte hier noch einiges weiterführendes finden. Ich freue mich, weitere Blogeinträge zu lesen. Danke und Grüße aus Heidelberg Marco Feindler

  31. payday loan

    It’s wonderful that you are getting thoughts from this piece of writing as well as from our discussion made
    at this place.

  32. slim coffee

    Having read this I believed it was very informative.
    I appreciate you spending some time and effort to put this information together.
    I once again find myself personally spending a significant amount of time both reading and commenting.
    But so what, it was still worthwhile!

  33. advance auto fremont mi

    Absolutely written written content, Really enjoyed examining.

  34. t shirt printing boca raton

    Very shortly this site will be famous among all blog
    visitors, due to it’s nice articles

  35. custom t shirts boca raton

    Good post. I will be experiencing some of these issues as well..

  36. Outsourcing services

    This post is genuinely a pleasant one it helps new web visitors, who are wishing in favor of blogging.

  37. spark plug installation

    Great blog you have got here.. It?s difficult to find excellent writing
    like yours these days. I seriously appreciate people like you!
    Take care!!

  38. auto auctions

    I like this post, enjoyed this one thank you for posting.

  39. o reilly auto parts victoria tx

    Very good post. I will be experiencing a few of these issues as well..

  40. 123movies

    Hi, its pleasant article on the topic of media print, we all understand media is a fantastic source of information.

  41. CBD Paris

    I must thank you for the efforts you’ve put in penning this blog.
    I am hoping to view the same high-grade content by you later on as well.
    In fact, your creative writing abilities has encouraged me to get my own, personal site now 😉

  42. 123movies

    I am regular reader, how are you everybody?

    This piece of writing posted at this web page is actually good.

  43. 123movies

    Greetings I am so excited I found your blog, I really found you by mistake, while I
    was searching on Google for something else, Anyways I am here now
    and would just like to say thank you for a marvelous
    post and a all round thrilling blog (I also love the theme/design), I don’t have time to go through it
    all at the minute but I have book-marked it and also added your RSS feeds, so when I have time I will be back to read much more,
    Please do keep up the great work.

  44. 123movies

    Hi there very nice blog!! Guy .. Beautiful ..

    Amazing .. I’ll bookmark your site and take the feeds also?
    I’m happy to seek out so many helpful info right here in the publish, we want develop extra strategies in this regard, thank you for sharing.
    . . . . .

  45. movies123

    I’ve been browsing online more than 3 hours today, yet I
    never found any interesting article like yours. It is pretty worth enough
    for me. In my view, if all website owners and bloggers made good content as you did,
    the internet will be much more useful than ever before.

  46. movies reviews

    Hello! Do you know if they make any plugins to protect against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard on.
    Any recommendations?

  47. movie review

    Hello there! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in trading links or maybe guest writing a
    blog article or vice-versa? My site discusses a lot of the same subjects as yours and I feel we could
    greatly benefit from each other. If you might be interested feel free to send
    me an email. I look forward to hearing from you! Great
    blog by the way!

  48. movie review

    Hi colleagues, pleasant paragraph and fastidious urging commented here, I am
    really enjoying by these.

  49. family car buyers

    I do not even know how I ended up here, but I thought this post was good.
    I do not know who you are but definitely you are going
    to a famous blogger if you are not already 😉 Cheers!

  50. 케이출장안마

    Very nice post. I just stumbled upon your weblog and wanted to say
    that I’ve really enjoyed surfing around your blog posts. In any case I will be
    subscribing to your feed and I hope you write again very soon!

  51. 김해출장마사지

    Wow, amazing blog layout! How long have you been blogging for?
    you make blogging look easy. The overall look of your site
    is excellent, as well as the content!

  52. solicitor news

    Hello there! This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading your
    posts. Can you recommend any other blogs/websites/forums that deal with
    the same subjects? Thanks for your time!

  53. 안양출장안마

    Everything is very open with a clear clarification of the challenges.
    It was definitely informative. Your website is extremely helpful.

    Many thanks for sharing!

  54. 섹시카지노

    I’m excited to uncover this website. I want to to thank you for ones time just for this wonderful read!!
    I definitely liked every little bit of it
    and i also have you book marked to check out new
    information in your site.

  55. 해외 안전 놀이터

    What’s up all, here every person is sharing these kinds
    of experience, so it’s pleasant to read this web site, and I used to visit this blog
    everyday.

  56. สล็อต Betflik

    I am in fact thankful to the owner of this site
    who has shared this enormous paragraph at at this time.

  57. 온라인 카지노 쿠폰

    Hi there, I enjoy reading through your post. I wanted to write a little comment to support you.

  58. 에볼루션 카지노

    Appreciate this post. Will try it out.

  59. paytm online betting

    You actually make it seem so easy together with your presentation however I find this topic to be actually something which I feel I’d never understand.

    It kind of feels too complex and very large for me.
    I’m having a look ahead in your next submit, I will try to get
    the hang of it!

  60. 실시간 라이브 카지노

    Excellent post. Keep posting such kind of info on your site.
    Im really impressed by it.
    Hi there, You’ve done an excellent job. I will certainly digg
    it and for my part suggest to my friends. I’m sure they’ll be benefited from this site.

  61. 프라그마틱 슬롯

    Greate pieces. Keep posting such kind of info on your page.
    Im really impressed by your blog.
    Hi there, You have done a fantastic job. I will certainly digg
    it and personally recommend to my friends. I am confident they will
    be benefited from this site.

  62. judi slot online

    Does your site have a contact page? I’m having trouble locating it but, I’d like to send you an e-mail.

    I’ve got some creative ideas for your blog you might be interested in hearing.
    Either way, great blog and I look forward to seeing
    it develop over time.

  63. Agen slot terbaik

    Hi there! This is kind of off topic but I need some advice from an established blog.
    Is it tough to set up your own blog? I’m not very techincal but I can figure things
    out pretty quick. I’m thinking about creating my own but I’m not
    sure where to begin. Do you have any points or suggestions?

    Thank you

  64. 유흥일자리

    Admiring the dedication you put into your blog and detailed information you
    present. It’s good to come across a blog every once in a while
    that isn’t the same unwanted rehashed information. Wonderful read!
    I’ve saved your site and I’m adding your RSS feeds to my Google account.

  65. click here

    Thanks for sharing your thoughts about website. Regards

  66. 밤알바

    Just wish to say your article is as surprising. The clarity in your post is
    just excellent and i could assume you are an expert on this
    subject. Fine with your permission allow me to grab your feed to keep up to date with forthcoming
    post. Thanks a million and please carry on the enjoyable work.

  67. internet heaven

    I couldn’t refrain from commenting. Well written!

  68. write my essay for me online

    forgot to mention…..your best article yet!!

  69. เว็บแทงบอลออนไลน์

    I am impressed with this site, very I am a fan.

  70. ดาวน์โหลด slotxo

    Great article! That is the kind of info that should be shared around
    the internet. Shame on Google for now not
    positioning this post upper! Come on over and
    visit my site . Thank you =)

  71. เว็บสล็อต

    You have mentioned very interesting details! ps nice website.

  72. slot roma

    I do not even know the way I stopped up right here, however I believed this publish
    used to be great. I don’t realize who you might be however certainly you are going to
    a famous blogger in the event you aren’t already. Cheers!

  73. บาคาร่า SA

    Wonderful work! That is the type of info that are
    meant to be shared across the net. Disgrace on the
    search engines for now not positioning this post higher!
    Come on over and discuss with my site . Thanks =)

  74. เว็บสล็อต

    After exploring a handful of the articles on your blog, I truly like
    your technique of writing a blog. I book-marked it to my bookmark website list and will be checking back
    soon. Take a look at my web site too and tell me your
    opinion.

  75. บาคาร่า

    Very efficiently written article. It will be helpful to everyone who utilizes it, including me.
    Keep doing what you are doing – can’r wait to read more
    posts.

  76. 789step

    Hi! Someone in my Myspace group shared this site with us so I came to check it out.

    I’m definitely loving the information. I’m bookmarking and will be tweeting this
    to my followers! Wonderful blog and brilliant style and design.

  77. สล็อตเว็บใหญ่

    Would love to constantly get updated outstanding web site!

  78. 789coinbet

    Fantastic web site. Plenty of helpful info here. I’m sending it to some friends ans additionally sharing in delicious.
    And of course, thanks to your sweat!

  79. link sbotop

    Attractive section of content. I just stumbled upon your website and in accession capital to assert that
    I acquire in fact enjoyed account your blog posts.
    Anyway I’ll be subscribing to your augment and even I achievement you access consistently quickly.

  80. Autowatch Ghost 2 Immobiliser

    This article provides clear idea designed for the new users of blogging, that genuinely how to
    do running a blog.

  81. iGoalGame

    Undeniably believe that which you said. Your favorite
    justification appeared to be on the internet the easiest thing to be aware of.
    I say to you, I certainly get irked while people consider worries that they just don’t know about.
    You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people can take a signal.
    Will likely be back to get more. Thanks

  82. ดูหนังออนไลน์ฟรี

    I wanted to thank you for this good read!!
    I absolutely enjoyed every bit of it. I have you book-marked to check out new things you post…

  83. okwin

    I am really pleased to glance at this blog posts which carries plenty
    of useful data, thanks for providing these kinds of information.

  84. joker 123

    You really make it seem so easy with your presentation but I find this topic to be really something which I think I would
    never understand. It seems too complicated and extremely broad for me.
    I’m looking forward for your next post, I’ll try to get the hang of it!

  85. seo keywords

    I do accept as true with all the concepts you have offered
    in your post. They’re very convincing and will definitely
    work. Nonetheless, the posts are too short for newbies. May just you please
    extend them a little from next time? Thanks for the post.

  86. www.jhzxy.com

    Admiring the hard work you put into your site and detailed
    information you provide. It’s great to come across a blog every once in a while
    that isn’t the same old rehashed material.
    Excellent read! I’ve saved your site and I’m adding your RSS feeds
    to my Google account.

  87. Road to financial freedom

    Glad itt helped!

  88. Phoenix search engine optimization

    Keep working ,fantastic job!

    My blog – Phoenix search engine optimization

  89. เครดิตฟรี

    Remarkable! Its in fact amazing piece of writing,
    I have got much clear idea regarding from this paragraph.

  90. Candra

    Good blog post. I absolutely love this website. Keep writing!

  91. 홈케어

    I could not refrain from commenting. Very well written!

  92. 후불마사지

    Excellent article. I am facing many of these issues as well..

Leave a Reply

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