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.
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.
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
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.
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
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.
Excellent
Nyc Sir👍🏻
The language of topic very clear and content in a rythem.I am very sure about excellent future of this platform.
Good Job !
Good job Sir.
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!
Greetings! Very helpful advice in this particular post!
It is the little changes which will make the greatest changes.
Thanks for sharing!
quite exceptional photo.
Some splendid images. Incredible shades. https://visual.ly/users/pricegoldnow/portfolio
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
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
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
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
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
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
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
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
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
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)
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
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
Hi there, I log on to your blogs daily. Your story-telling style is witty,
keep it up!
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.
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!
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!
Lo explicaste excepcionalmente bien. Enhorabuena!
Perfectamente explicado. ¡Saludos!
Lo explicaste excepcionalmente bien. Guauu gracias!
Has dejado todo de forma amena. Gracias!
Lo explicaste genial. Muchísimas gracias!
Lo has explicado excepcionalmente bien. Guauu gracias!
Bien explicado. ¡Saludos!
Perfectamente explicado. ¡Gracias!
What’s up, yup this article is actually good and I have learned lot of things from it regarding blogging.
thanks.
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
Vielen Dank
It’s wonderful that you are getting thoughts from this piece of writing as well as from our discussion made
at this place.
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!
Very shortly this site will be famous among all blog
visitors, due to it’s nice articles
Good post. I will be experiencing some of these issues as well..
This post is genuinely a pleasant one it helps new web visitors, who are wishing in favor of blogging.
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!!
I like this post, enjoyed this one thank you for posting.
Very good post. I will be experiencing a few of these issues as well..
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 😉
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.
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?
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!
Hi colleagues, pleasant paragraph and fastidious urging commented here, I am
really enjoying by these.
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!
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!
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!
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!
Everything is very open with a clear clarification of the challenges.
It was definitely informative. Your website is extremely helpful.
Many thanks for sharing!
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.
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.
I am in fact thankful to the owner of this site
who has shared this enormous paragraph at at this time.
Hi there, I enjoy reading through your post. I wanted to write a little comment to support you.
Appreciate this post. Will try it out.
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!
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.
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.
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.
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.
Thanks for sharing your thoughts about website. Regards
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.
I couldn’t refrain from commenting. Well written!
forgot to mention…..your best article yet!!
I am impressed with this site, very I am a fan.
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 =)
You have mentioned very interesting details! ps nice website.
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!
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 =)
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.
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.
Would love to constantly get updated outstanding web site!
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.
This article provides clear idea designed for the new users of blogging, that genuinely how to
do running a blog.
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
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…
I am really pleased to glance at this blog posts which carries plenty
of useful data, thanks for providing these kinds of information.
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!
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.
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.
Glad itt helped!
Keep working ,fantastic job!
My blog – Phoenix search engine optimization
Remarkable! Its in fact amazing piece of writing,
I have got much clear idea regarding from this paragraph.
Good blog post. I absolutely love this website. Keep writing!
I could not refrain from commenting. Very well written!
Excellent article. I am facing many of these issues as well..
Your blog is a source of inspiration Regards from Pasang Iklan Properti Gratis
Thanks very nice blog!
I think the admin of this web page is actually working hard
in favor of his site, as here every stuff is quality based
material.
Hello to every one, the contents existing at this website are in fact awesome for people knowledge, well, keep up the
good work fellows.
I appreciate the depth of this article. Please visit my blog too, Pasang Iklan Properti Gratis