Pathping是Windows系统中自带的一个网络诊断工具,用于检测本地至目的地之间节点的网络延迟和稳定性。
pathping在一段时间内,从本地至目的地之间发送多个Echo Request消息给中间经过的每个节点,然后基于数据包从每个路由器返回的信息来计算结果。所以,pathping可以显示每个节点的数据包丢失的百分比,以便判断具体哪个节点或子网可能出现网络故障。pathping与tracert执行相同的路由跟踪命令去识别这条路径上有哪些路由器,但它额外多了一个步骤:给每个节点发送100个数据包,获取返回信息后去计算每个节点的统计信息。
C:\Documents and Settings\User>Usage: pathping target_nameOptions:-g host-list Loose source route along host-list.-h maximum_hops Maximum number of hops to search for target.-i address Use the specified source address.-n Do not resolve addresses to hostnames.-p period Wait period milliseconds between pings.-q num_queries Number of queries per hop.-w timeout Wait timeout milliseconds for each reply.-P Test for RSVP PATH connectivity.-R Test if each hop is RSVP aware.-T Test connectivity to each hop with Layer-2 priority tags.-4 Force using IPv4.-6 Force using IPv6.
例子
>Tracing route to wikipedia.com over a maximum of 30 hops:0 simonslaptop 1 192.168.0.12 thus1-hg2.ilford.broadband.bt.net 3 217.32.64.344 217.32.64.1105 anchor-border-1-4-0-2-191.router.demon.net 6 anchor-core-2-g0-0-1.router.demon.net 7 ny1-border-1-a1-0-s2.router.demon.net 8 ge-8-0-153.ipcolo1.NewYork1.Level3.net 9 ae-0-51.bbr1.NewYork1.Level3.net 10 so-2-0-0.mp1.Tampa1.Level3.net 11 ge-6-0.hsa2.Tampa1.Level3.net 12 unknown.Level3.net 13Computing statistics for 325 seconds...Source to Here This Node/LinkHop RTT Lost/Sent = Pct Lost/Sent = Pct Address0 simonslaptop 0/ 100 = 0% |1 0ms 0/ 100 = 0% 0/ 100 = 0% 192.168.0.10/ 100 = 0% |2 18ms 1/ 100 = 1% 1/ 100 = 1% thus1-hg2.ilford.broadband.bt.net 0/ 100 = 0% |3 18ms 0/ 100 = 0% 0/ 100 = 0% 217.32.64.340/ 100 = 0% |4 21ms 0/ 100 = 0% 0/ 100 = 0% 217.32.64.1100/ 100 = 0% |5 21ms 1/ 100 = 1% 1/ 100 = 1% anchor-border-1-4-0-2-191.router.demon.net 0/ 100 = 0% |6 --- 100/ 100 =100% 100/ 100 =100% anchor-core-2-g0-0-1.router.demon.net 0/ 100 = 0% |7 --- 100/ 100 =100% 100/ 100 =100% ny1-border-1-a1-0-s2.router.demon.net 0/ 100 = 0% |8 100ms 0/ 100 = 0% 0/ 100 = 0% ge-8-0-153.ipcolo1.NewYork1.Level3.net 0/ 100 = 0% |9 94ms 0/ 100 = 0% 0/ 100 = 0% ae-0-51.bbr1.NewYork1.Level3.net 0/ 100 = 0% |10 134ms 1/ 100 = 1% 1/ 100 = 1% so-2-0-0.mp1.Tampa1.Level3.net 0/ 100 = 0% |11 137ms 0/ 100 = 0% 0/ 100 = 0% ge-6-0.hsa2.Tampa1.Level3.net 0/ 100 = 0% |12 131ms 0/ 100 = 0% 0/ 100 = 0% unknown.Level3.net 100/ 100 =100% |13 --- 100/ 100 =100% 0/ 100 = 0% win2000 Trace complete.
>Tracing route to wikipedia.org over a maximum of 30 hops:0 Aaron.hsd1.mn.comcast.net. 1 air.setup 2 73.127.68.13 ge-1-38-ur01.minnetonka.mn.minn.comcast.net 4 68.86.232.375 68.86.232.336 * 68.86.232.57 68.86.232.18 12.116.99.419 tbr2.cgcil.ip.att.net 10 * ggr2.cgcil.ip.att.net 11 ar1-a3120s2.wswdc.ip.att.net 12 66.192.247.16313 ge8-13.csw5-pmtpa.wikimedia.org 14 * rr.pmtpa.wikimedia.org Computing statistics for 35 seconds...Source to Here This Node/LinkHop RTT Lost/Sent = Pct Lost/Sent = Pct Address0 Aaron.hsd1.mn.comcast.net. 0/ 10 = 0% |1 0ms 0/ 10 = 0% 0/ 10 = 0% air.setup 0/ 10 = 0% |2 8ms 0/ 10 = 0% 0/ 10 = 0% 73.127.68.10/ 10 = 0% |3 8ms 0/ 10 = 0% 0/ 10 = 0% ge-1-38-ur01.minnetonka.mn.minn.comcast.net 0/ 10 = 0% |4 9ms 0/ 10 = 0% 0/ 10 = 0% 68.86.232.370/ 10 = 0% |5 8ms 0/ 10 = 0% 0/ 10 = 0% 68.86.232.330/ 10 = 0% |6 12ms 0/ 10 = 0% 0/ 10 = 0% 68.86.232.50/ 10 = 0% |7 8ms 0/ 10 = 0% 0/ 10 = 0% 68.86.232.10/ 10 = 0% |8 20ms 0/ 10 = 0% 0/ 10 = 0% 12.116.99.410/ 10 = 0% |9 --- 10/ 10 =100% 10/ 10 =100% tbr2.cgcil.ip.att.net 0/ 10 = 0% |10 --- 10/ 10 =100% 10/ 10 =100% ggr2.cgcil.ip.att.net 0/ 10 = 0% |11 --- 10/ 10 =100% 10/ 10 =100% ar1-a3120s2.wswdc.ip.att.net 0/ 10 = 0% |12 --- 10/ 10 =100% 10/ 10 =100% 66.192.247.1630/ 10 = 0% |13 63ms 0/ 10 = 0% 0/ 10 = 0% ge8-13.csw5-pmtpa.wikimedia.org 0/ 10 = 0% |14 63ms 0/ 10 = 0% 0/ 10 = 0% rr.pmtpa.wikimedia.org Trace complete.>Tracing route to wikipedia-lb.eqiad.wikimedia.org over a maximum of 30 hops:0 192.168.1.1021 192.168.1.12 10.202.181.1103 10.202.182.1094 10.202.181.1535 10.202.181.496 212.72.4.977 82.178.32.1028 63.218.109.1179 63.218.44.3810 206.111.0.24911 216.156.8.18912 * * *Computing statistics for 275 seconds...