Monday, 8 April 2013

Computer Network:To study Ping program And run Ping command


Object: To study Ping program. And run Ping command with following options on command prompt and describe what the output signifies.

 (1) –t  (2) –a  (3) –n count (4) –I size (5) –f


'Ping' (Packet Internet Groper) is a computer network tool used to test whether a particular host is reachable across an IPnetwork; it is also used to self test the network interface card of the computer, or as a speed test. It works by sending ICMP “echo request” packets to the target host and listening for ICMP “echo response” replies. Ping measures the round-trip time] and records any packet loss, and prints when finished a statistical summary of the echo response packets received, the minimum, mean, max and in some versions the standard deviation of the round trip time.






Syntax:

ping
[-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]

[-r count] [-s count] [[-j host-list] | [-k host-list]]

[-w timeout] destination-list








Options:

-t
Pings the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a
Resolve addresses to hostnames.
-n count
Number of echo requests to send.
-l size
Send buffer size.
-f
Set Don't Fragment flag in packet.
-i TTL
Time To Live.
-v TOS
Type Of Service.
-r count  
Record route for count hops.
-s count
Timestamp for count hops.
-j host-list
Loose source route along host-list.
-k host-list
Strict source route along host-list.
-w timeout
Timeout in milliseconds to wait for each reply.

Using the ping command

If you are having connectivity problems, you can use the ping command to check the destination IP address you want to reach and record the results. Theping command displays whether the destination responded and how long it took to receive a reply. If there is an error in the delivery to the destination, the pingcommand displays an error message.
You can use the ping command to:
  • Ping your computer (by address, not host name) to determine that TCP/IP is functioning. (Pinging your computer does not verify that your network adapter is functioning.)
  • Ping the local router to determine whether the router is running.
  • Ping beyond your local router.



Output :












No comments:

Post a Comment