Flux rss
Bookmark Bookmark & Share
ping Ping Ping Ping Ping

The Ping tool

"Ping" (short for Packet INternet Groper) is without a doubt the best-known network administration tool. It is one of the simplest tools, because all it does is send packets to check if a remote machine is responding and, by extension, if it is accessible over the network.

The ping tool, then, is used to diagnose network connectivity using commands of the type:

ping name.of.the.machine

name.of.the.machine represents the machine's IP address, or its name. It is generally preferable to test it first using the machine's IP address.

How ping works

Ping relies on the ICMP protocol, which is used to diagnose transmission conditions. For this reason, it uses two types of protocol messages (out of the 18 offered by ICMP):

  • Type 0, which corresponds to an "echo request" command, sent by the source machine;
  • Type 8, which corresponds to an "echo reply" command, sent by the target machine.

At regular intervals (by default, every second), the source machine (the one running the ping command) sends an "echo request" to the target machine. When the "echo reply" packet is received, the source machine displays a line containing certain information. If the reply is not received, a line saying "request timed out" will be shown.

Ping results

Depending on the operating system, the results of the ping may be displayed somewhat differently.

Here are the results of the command in GNU/Linux:

ping www.commentcamarche.net
PING www.commentcamarche.net (163.5.255.85): 56 data bytes
64 bytes from 163.5.255.85: icmp_seq=0 ttl=56 time=7.7 ms
64 bytes from 163.5.255.85: icmp_seq=1 ttl=56 time=6.0 ms
64 bytes from 163.5.255.85: icmp_seq=2 ttl=56 time=5.5 ms
64 bytes from 163.5.255.85: icmp_seq=3 ttl=56 time=6.0 ms
64 bytes from 163.5.255.85: icmp_seq=4 ttl=56 time=5.3 ms
64 bytes from 163.5.255.85: icmp_seq=5 ttl=56 time=5.6 ms
64 bytes from 163.5.255.85: icmp_seq=6 ttl=56 time=7.0 ms
64 bytes from 163.5.255.85: icmp_seq=7 ttl=56 time=6.0 ms
--- www.commentcamarche.net ping statistics ---
8 packets transmitted, 8 packets received, 0% packet loss
round-trip min/avg/max = 5.3/6.1/7.7 ms

Here are the results of the command in Windows:

ping www.commentcamarche.net
Pinging www.commentcamarche.net [163.5.255.85] with 32 bytes of data:
Reply from 163.5.255.85: bytes=32 time=34 ms TTL=54
Reply from 163.5.255.85: bytes=32 time=37 ms TTL=54
Reply from 163.5.255.85: bytes=32 time=32 ms TTL=54
Reply from 163.5.255.85: bytes=33 time=32 ms TTL=54
Ping statistics for 163.5.255.85:
Packets: sent = 4, received = 4, lost = 0 (loss 0%),
Approximate round trip times in milli-seconda:
Minimum = 32ms, Maximum = 37ms, Average = 34ms

Thus, the ping command's output gives:

  • The IP address which corresponds to the name of the remote machine;
  • The ICMP sequence number;
  • The packet's time to live (TTL). The time to live (TTL) field shows how many routers the packet went through as it travelled between the two machines. Each IP packet has a TTL field with a relatively high value. Each time it goes through a router, the value is reduced. If this number ever reaches zero, the router interprets this to mean that the packet is going around in circles, and terminates it;
  • The round-trip delay field corresponds to the length of time in milliseconds of a round trip between the source and target machines. As a general rule, a packet must have a delay no longer than 200 ms;
  • The number of lost packets.


Last update on Thursday October 16, 2008 02:43:15 PM.This document entitled « Ping » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.
Ping The Ping tool "Ping" (short for Packet INternet Groper) is without a doubt the best-known network administration tool. It is one of the simplest tools, because all it does is send packets to check if a remote machine is responding and, by... en.kioskea.net/contents/outils-reseau/ping.php3
Ping of death attack Ping of death attack The ping of death attack is one of the oldest network attacks. The principle of ping of death simply involves creating an IP datagram whose total size exceeds the maximum authorized size (65,536 bytes). When such a packet is... en.kioskea.net/contents/attaques/attaque-ping-de-la-mort.php3
Sudden closure of the window or ipconfig ping Sudden closure of the window or ipconfig ping Solutions Whenever you run a command from the menu start/Run, the command window opens and immediately close without giving the time to consult the screen. Solutions Below is a tips to... en.kioskea.net/faq/sujet-743-sudden-closure-of-the-window-or-ipconfig-ping
Do you need a fix IP for remote connection?Do you need a fix IP for remote connection? Myth Truth How does it work? An Internet Service Provider will usually provide a user with a fix IP address that cannot be changed by the user himself. This number is used by another computer... en.kioskea.net/faq/sujet-437-do-you-need-a-fix-ip-for-remote-connection
MacOS X – Associating a name to an IP AddressMacOS X – Associating a name to an IP Address What you should know Use this step Example What you should know Please note: this is only valid until MacOSX 10.4, NOT for MacOSX 10.5 (Leopard) MacOSX is a BSD system, the first... en.kioskea.net/faq/sujet-2602-macos-x-associating-a-name-to-an-ip-address
Introduction to MTUIntroduction to MTU What is MTU Calculate the MTU Find the value of the MTU on Windows Changing the MTU on Windows Find the value of the MTU on Linux What is MTU The Maximum Transmission Unit (MTU) (maximum size of transfer... en.kioskea.net/faq/sujet-2093-introduction-to-mtu
Can ping but can't use browser in normal mode (Solved)Hello, I also have the problem where I was unable to connect to the internet via any browser, but I can ping my router. I noticed that turning off the zonelab firewall would resolve the issue, so I decided to uninstall zonelabs. I guess that was a... en.kioskea.net/forum/affich-14943-can-ping-but-can-t-use-browser-in-normal-mode
Can't ping PCs while connected to a RouterHello, I connected to computers to my Linksys router. I can not ping each other. Request timed out. Therefore, I can not share files and printer. when I do ipconfig I see their ip addresses but can not ping. Routers ip: 192.168.1.1 PC 1 :... en.kioskea.net/forum/affich-29293-can-t-ping-pcs-while-connected-to-a-router
Can't ping PCs thru a Router - Timed Out!!Hello, Can't ping PCs thru a Router - Timed Out!! Have two XP PCs Router - Linksys Linksys IP : 192.168.1.1 PC 1 IP : 192.168.1.100 PC 2 IP: 192.168.1.101 But can't ping to each other.... Why?? Please help if you know. Thanks a lot!! en.kioskea.net/forum/affich-30203-can-t-ping-pcs-thru-a-router-timed-out
Download Ping Tester 2008In computer science, "Ping" is an order allowing to test the presence of a machine on a network. PingTester is a tool allowing to stock a mailing list IP. He also allows to test orders networks to augment her effectiveness.Ameliorate the tracing of... en.kioskea.net/telecharger/telecharger-571-ping-tester-2008
Download Network PingNetwork Ping is a ping utility with a graphic interface. Unlike Windows online command utility, you can export the data to an Excel file or print them. It is a shareware version and works under Windows 98 / ME2000 / XP / Vista. en.kioskea.net/telecharger/telecharger-2408-network-ping
Download IPPulseiPulse is a tool that can help you control the status of the IP devices that are connected on a network. Features: Ping, TCP connection, and SNMP for allowing the polling and checking of the network's connectivity from the list of notes defined... en.kioskea.net/telecharger/telecharger-2390-ippulse
Network tests and diagnosticsTesting the IP configuration Before doing anything else, you are advised to check the computer's IP configuration. Windows systems offer a command-line tool, called ipconfig, that lets you find out your computer's IP configuration. The output of... en.kioskea.net/contents/configuration-reseau/tests-diagnostics-reseau.php3
IP address spoofingIP address spoofing "IP address spoofing" is a technique that involves replacing the IP address of an IP packet's sender with another machine's IP address. This technique lets a pirate send packets anonymously. It is not a question of changing the... en.kioskea.net/contents/attaques/usurpation-ip-spoofing.php3
Nuke attackNuke attack Nukes are Window crashes caused by dimwitted users (who know your IP address) who decide to use a Windows 95 (not 98) bug where if someone repeatedly sends information packets to port 139, Windows displays a lovely and impressive blue... en.kioskea.net/contents/attaques/nuke.php3