今天才知道还有pathping这么好玩的命令
觉得和tracert超级像,遂总结下这两个命令。一是让自己更好的理解,二是希望和大家一起分享学习之乐。
tracert 追踪路由,顾名思义。
用于确定IP数据报访问目标所采取的路径。Tracert 命令用 IP 生存时间 (TTL) 字段和 ICMP 错误消息来确定从一个主机到网络上其他主机的路由。
pathping 同tracert一样,也是追踪路由。但它可要比tracert好用很多,这体现在那里呢?
C:\>tracert www.51cto.com
Tracing route to www.51cto.com [118.144.78.38]
over a maximum of 30 hops:
1 47 ms 6 ms 20 ms 222.35.168.1
2 3 ms 4 ms 3 ms 222.35.255.209
3 3 ms 3 ms 3 ms 222.35.253.133
4 5 ms 5 ms 6 ms 219.143.247.1
5 4 ms 4 ms 4 ms 124.203.128.21
6 15 ms 11 ms 23 ms 202.99.1.221
7 12 ms 12 ms 13 ms 218.241.148.6
8 4 ms 5 ms 5 ms 118.144.78.38
Trace complete.
C:\>pathping -n www.51cto.com
Tracing route to www.51cto.com [118.144.78.38]
over a maximum of 30 hops:
0 222.35.173.3
1 222.35.168.1
2 222.35.255.209
3 222.35.253.133
4 219.143.247.1
5 124.203.128.21
6 202.99.1.221
7 218.241.148.6
8 118.144.78.38
Computing statistics for 200 seconds...
Source to Here This Node/Link
Hop RTT Lost/Sent = Pct Lost/Sent = Pct Address
0 222.35.173.3
0/ 100 = 0% |
1 2ms 0/ 100 = 0% 0/ 100 = 0% 222.35.168.1
0/ 100 = 0% |
2 3ms 0/ 100 = 0% 0/ 100 = 0% 222.35.255.209
0/ 100 = 0% |
3 3ms 0/ 100 = 0% 0/ 100 = 0% 222.35.253.133
0/ 100 = 0% |
4 --- 100/ 100 =100% 100/ 100 =100% 219.143.247.1
0/ 100 = 0% |
5 --- 100/ 100 =100% 100/ 100 =100% 124.203.128.21
0/ 100 = 0% |
6 7ms 0/ 100 = 0% 0/ 100 = 0% 202.99.1.221
0/ 100 = 0% |
7 --- 100/ 100 =100% 100/ 100 =100% 218.241.148.6
0/ 100 = 0% |
8 20ms 0/ 100 = 0% 0/ 100 = 0% 118.144.78.38
Trace complete.
C:\>
博主的网速很慢啊
看到没? pathping会显示在路由过程中的“瓶颈”,也就是丢包率。这时有人就要说了,tracert也能看出来啊,只是你不会看而已。tracert的确可以看出丢包的情况,但没有pathping来的直观吧?