ping 命令是經過 ICMP 測試數據包測試
[air@air ~]$ ping www.baidu.com.net
PING www.a.shifen.com (111.13.100.91) 56(84) bytes of data.路由
64 bytes from 111.13.100.91: icmp_req=1 ttl=55 time=13.3 msget
64 bytes from 111.13.100.91: icmp_req=2 ttl=55 time=22.9 msclass
64 bytes from 111.13.100.91: icmp_req=3 ttl=55 time=19.8 msroute
64 bytes from 111.13.100.91: icmp_req=4 ttl=55 time=6.20 ms路由器
除了ping命令之外還有個 traceroute 的命令,測試所通過的網關 ,和ping 相比traceroute 能夠跟蹤所通過的網關,im
已及每一個路由器所,以及所花費的時間。數據
[air@air ~]$ traceroute www.baidu.com時間
traceroute to www.baidu.com (111.13.100.91), 30 hops max, 60 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *