“阿贝云”"免费虚拟主机"“免费云服务器” www.abeiyun.com 一个良心服务器,可以通过活动,免费使用,特别适合大学生或者想尝试一下后端学习的朋友,今天我就分享一下使用这个服务器的感受 ping ping 命令用于测试网络连通性和测量目标主机的响应时间。其基本用法为:
ping [options] destination 其中 destination 可以是域名或 IP 地址。 例如,ping www.baidu.com 给出的结果为:
PING www.a.shifen.com (14.215.177.38) 56(84) bytes of data. 64 bytes from 14.215.177.38: icmp_seq=1 ttl=55 time=20.9 ms 64 bytes from 14.215.177.38: icmp_seq=2 ttl=55 time=22.9 ms 64 bytes from 14.215.177.38: icmp_seq=3 ttl=55 time=21.5 ms 64 bytes from 14.215.177.38: icmp_seq=4 ttl=55 time=22.9 ms 其中,14.215.177.38 是目标主机的 IP 地址,icmp_seq 表示发送的第几个数据包,ttl 表示数据包经过的路由器个数,time 表示数据包往返时间。
traceroute traceroute 命令用于追踪数据包在网络中的路径,并测量每个跃点的延迟时间。其基本用法为:
traceroute [options] destination 其中 destination 可以是域名或 IP 地址。
例如,traceroute www.baidu.com 给出的结果为:
traceroute to www.a.shifen.com (14.215.177.38), 30 hops max, 60 byte packets 1 192.168.1.1 (192.168.1.1) 0.534 ms 0.529 ms 0.515 ms 2 10.63.64.1 (10.63.64.1) 3.508 ms 3.357 ms 3.316 ms 3 112.65.20.1 (112.65.20.1) 16.238 ms 15.667 ms 15.591 ms 4 183.221.255.13 (183.221.255.13) 25.030 ms 25.270 ms 25.920 ms 5 202.97.52.1 (202.97.52.1) 24.811 ms 24.788 ms 24.968 ms 其中,前面的数字表示数据包经过的路由器个数,括号内的数字表示该路由器的 IP 地址,后面的数字表示该地点的平均延迟时间。 |