110 likes | 271 Views
Ping Program. Introduction - Problem. How do I know if a host is reachable?. 0. 7. 8. 15. 16. 31. Type ( 0 or 8 ). code ( 0 ). checksum. identifier. Sequence number. Optional data. ICMP echo request / reply. Ping program uses : ICMP echo request (type 8)
E N D
Introduction - Problem • How do I know if a host is reachable?
0 7 8 15 16 31 Type ( 0 or 8 ) code ( 0 ) checksum identifier Sequence number Optional data ICMP echo request / reply • Ping program uses : • ICMP echo request (type 8) • ICMP echo reply (type 0)
Ping 131.107.7.29 1 ping 131.107.7.29 2 ICMP Request ICMP Reply 3 IP Address = 131.107.7.28 IP Address = 131.107.7.29
Ping output D:\>ping www.cisco.com Pinging cio-sys.cisco.com [192.31.7.130] with 32 bytes of data: Reply from 192.31.7.130: bytes=32 time=190ms TTL=239 Reply from 192.31.7.130: bytes=32 time=180ms TTL=239 Reply from 192.31.7.130: bytes=32 time=180ms TTL=239 Reply from 192.31.7.130: bytes=32 time=180ms TTL=239 ( Success rate is 100 percent (5/5), round-trip min/avg/max = 192/192/192ms ) (0% packet loss)
Ping options Usage: 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 Ping the specifed host until interrupted. -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.