The useful orders networks under Windows: ping
By: Staff
Date: November 11, 2007
|
Ping: allows checking if a computer is reachable.
This order allows in fact checking that the configuration network as well as connectivity is good between two PC. Syntax is the following one: ping name of the distant machine. One can also specify an IP address instead of the name. The result appears in this form:
C: >ping www.yahoo.com
Sending of a request “ping” on www.euro.yahoo.akadns.net [217.12.3.11] with 32 bytes of data:
Answer of 217.12.3.11: octets=32 temps=22 ms TTL=243
Answer of 217.12.3.11: octets=32 temps=24 ms TTL=243
Answer of 217.12.3.11: octets=32 temps=24 ms TTL=243
Answer of 217.12.3.11: octets=32 temps=23 ms TTL=243
Ping statistics for 217.12.3.11:
Packages: envoys = 4, received = 4, lost = 0 (loss 0_),
Approximate duration of the loops in milliseconds:
Minimum = 22ms, Maximum = 24ms, Average = 23ms
Important information is initially the number of lost packages which must be null and then, the journey time of the packages which must be weakest possible. It also should be known that this duration very strongly varies according to the machine to which one is addressed. If one makes a ping towards a machine of his lan, the times must be very short (lower than 10 ms normally). On the other hand, if one addresses oneself to a waiter being in Japan for example, it is not abnormal that this deadline is of 250 or 300 milliseconds considering the distance to be traversed.
The order ping as makes it possible to send more as 4 packages, with this intention, that is to say one specifies the number by means of the option - N, which gives: ping - N 10 www.yahoo.com to send 10 requests.
One can also send requests ad infinitum by means of the option - T. That would give: ping - T www.yahoo.com.
A last useful option is to be able to determine the name associated at an address IP and this, by means of the option - has. That would give for example: ping - has 217.12.3.11.
|