Thursday, 15 January 2015

PING : Packet Internet Groper


Hello friends, I think you all are familiar with the  basic 'ping' command. If not, no need to worry, that's why I am here for.

Ping is windows console command used to test your network connectivity. It sends out ICMP (Internet Control Message Protocol) echo request and and listens to its reply to check physical or logical connectivity of  your internetwork.

:ping [IP or URL]



As you can see here, while I try to ping our antivirus server the following reply came:
Reply from 10.248.136.42: bytes=32 time=32ms TTL=115

What happens here is that my computer send 32 bytes ICMP packets to server 4 times, which in turn replies to them in 32ms. TTL here stands for Time To Live, which tells how long the packet will exist in your network.

If you want a continuous output for several packets you can go with following command:
: ping [IP or URL] -t



For a certain number of packets you can give the count number:
: ping [IP or URL] -n [no. of packets]


You can see here, for 10 count, it sends out only 10 packets.

One more advantage of 'ping' is that it helps in address resolution. Address Resolution means for given domain name/URL it gives you it's IP Address.


See, when I ping url 'www.google.com', it gave me its IP Address, i.e. 74.125.236.48.

No comments:

Post a Comment