traceroute命令结果分析

  • 1. 基本原理
  • 2. IP地址种类
    • 2.1 A类IP地址
    • 2.2 B类IP地址
    • 2.3 C类IP地址
    • 2.4 D类地址用于多点广播(Multicast)。
    • 2.5 E类IP地址
  • 3. 测试
    • 3.1 第一次
    • 3.2 第二次
  • 4. 总结
  • 5. 补充 github.com访问
    • 5.1 2022-11-02【异常】
      • 5.1.1 ICMP 跟踪
      • 5.1.2 UDP 跟踪(>32768)
      • 5.1.3 TCP 跟踪(443)
      • 5.1.4 UDP 跟踪(443)
    • 5.2 2022-11-09 【正常】
      • 5.2.1 ICMP 跟踪
      • 5.2.2 UDP 跟踪(>32768)
      • 5.2.3 TCP 跟踪(443)
      • 5.2.4 UDP 跟踪(443)
  • 6. 参考资料

1. 基本原理

客户端发送的数据包,服务器在收到这个数据包的时候会返回1个端口不可达的ICMP错误信息,客户端通过判断收到的错误信息是TTL超时还是端口不可达来判断数据包是否到达目标主机,具体的流程:

  1. 客户端发送⼀个TTL为1的数据包,到达第1站路由器之后TTL被减去1,返回了1个超时的ICMP数据包,客户端得到第1跳路由器的地址。
  2. 客户端发送⼀个TTL为2的数据包,在第2跳的路由器节点处超时,得到第2跳路由器的地址。
  3. 客户端发送⼀个TTL为3的数据包,数据包成功到达目标主机,返回1个端口不可达错误,traceroute结束。

注:当路由节点或者目标主机不反馈任何响应时,从命令结果上可以看到“*”号超时信息。

通常在实现的时候,会有两种报文构造方式:UDP和ICMP;

  • 从理论的角度ICMP属于L3,而UDP属于L4,且ICMP属于IP管理报文,因而ICMP属于网络管理报文,而UDP更偏向应用报文。越高层的应用被墙的可能越高,因此得不到相应的追踪结果就可想而知。
  • 从应用的角度来说,TCP/UDP都是同一个级别的应用层报文,如果服务不需要支持UDP,可以把UDP协议给封掉(比如:HTTP/HTTPS服务器)。

这里我们只是help下命令,接下去我们需要从实际的角度去看下这两种报文对于结果分析的影响。

$ traceroute --help
Usage:traceroute [ -46dFITnreAUDV ] [ -f first_ttl ] [ -g gate,... ] [ -i device ] [ -m max_ttl ] [ -N squeries ] [ -p port ] [ -t tos ] [ -l flow_label ] [ -w MAX,HERE,NEAR ] [ -q nqueries ] [ -s src_addr ] [ -z sendwait ] [ --fwmark=num ] host [ packetlen ]
Options:-4                          Use IPv4-6                          Use IPv6-d  --debug                 Enable socket level debugging-F  --dont-fragment         Do not fragment packets-f first_ttl  --first=first_ttlStart from the first_ttl hop (instead from 1)-g gate,...  --gateway=gate,...Route packets through the specified gateway(maximum 8 for IPv4 and 127 for IPv6)-I  --icmp                  Use ICMP ECHO for tracerouting-T  --tcp                   Use TCP SYN for tracerouting (default port is 80)-i device  --interface=deviceSpecify a network interface to operate with-m max_ttl  --max-hops=max_ttlSet the max number of hops (max TTL to bereached). Default is 30-N squeries  --sim-queries=squeriesSet the number of probes to be triedsimultaneously (default is 16)-n                          Do not resolve IP addresses to their domain names-p port  --port=port        Set the destination port to use. It is eitherinitial udp port value for "default" method(incremented by each probe, default is 33434), orinitial seq for "icmp" (incremented as well,default from 1), or some constant destinationport for other methods (with default of 80 for"tcp", 53 for "udp", etc.)-t tos  --tos=tos           Set the TOS (IPv4 type of service) or TC (IPv6traffic class) value for outgoing packets-l flow_label  --flowlabel=flow_labelUse specified flow_label for IPv6 packets-w MAX,HERE,NEAR  --wait=MAX,HERE,NEARWait for a probe no more than HERE (default 3)times longer than a response from the same hop,or no more than NEAR (default 10) times than somenext hop, or MAX (default 5.0) seconds (floatpoint values allowed too)-q nqueries  --queries=nqueriesSet the number of probes per each hop. Default is3-r                          Bypass the normal routing and send directly to ahost on an attached network-s src_addr  --source=src_addrUse source src_addr for outgoing packets-z sendwait  --sendwait=sendwaitMinimal time interval between probes (default 0).If the value is more than 10, then it specifies anumber in milliseconds, else it is a number ofseconds (float point values allowed too)-e  --extensions            Show ICMP extensions (if present), including MPLS-A  --as-path-lookups       Perform AS path lookups in routing registries andprint results directly after the correspondingaddresses-M name  --module=name      Use specified module (either builtin or external)for traceroute operations. Most methods havetheir shortcuts (`-I' means `-M icmp' etc.)-O OPTS,...  --options=OPTS,...Use module-specific option OPTS for thetraceroute module. Several OPTS allowed,separated by comma. If OPTS is "help", print infoabout available options--sport=num                 Use source port num for outgoing packets. Implies`-N 1'--fwmark=num                Set firewall mark for outgoing packets-U  --udp                   Use UDP to particular port for tracerouting(instead of increasing the port per each probe),default port is 53-UL                         Use UDPLITE for tracerouting (default dest portis 53)-D  --dccp                  Use DCCP Request for tracerouting (default portis 33434)-P prot  --protocol=prot    Use raw packet of protocol prot for tracerouting--mtu                       Discover MTU along the path being traced. Implies`-F -N 1'--back                      Guess the number of hops in the backward path andprint if it differs-V  --version               Print version info and exit--help                      Read this help and exitArguments:
+     host          The host to traceroute topacketlen     The full packet length (default is the length of an IPheader plus 40). Can be ignored or increased to a minimalallowed value

2. IP地址种类

2.1 A类IP地址

A类地址的表示范围为:0.0.0.0~126.255.255.255,默认网络掩码为:255.0.0.0,A类网络用第一组数字表示网络本身的地址,后面三组数字作为连接于网络上的主机的地址,即高端位0,接下来7位表示网络ID,其余24位表示宿主机ID。A类地址分配给具有大量主机(直接个人用户)而局域网络个数较少的型网络。例如IBM公司的网络。

A类地址适合于网络较少而节点较多的情况,网络数为128个,每一网向络的节点数为1600个。

2.2 B类IP地址

B类地址的表示范围为:128.0.0.0~223.255.255.255,默认网络掩码为:255.0.0.0。B类地址分配给一般的中型网络。B类网络用第一、二组数字表示网络的地址,后面两组数字代表网络上的主机地址,即高端位10,接下来14位表示网络ID,其余16位表示宿主机ID。

B类地址适合于网络数和节点数适中的情况,网络数为16000个,每一网络的节点数为64000个。

2.3 C类IP地址

C类地址的表示范围为:192.0.0.0.~223.255.255.255,默认网络掩码为:255.255.255.0;C类地址分配给小型网络,如一般的局域网和校园网,它可连接的主机数量是最少的,采用所属的用户分为若干的网段进行管理。C类网络用前三组数字表示网络的地址,最后一组数字作为网络上的主机地址,即高端位110,接下来的21位表示网络ID,其余8位表示宿主机ID。

C类地址适合于网络数较多而节点较少的情况,网络数为2百万个,每个网络的节点数为256个。

2.4 D类地址用于多点广播(Multicast)。

D类IP地址第一个字节以“lll0”开始,它是一个专门保留的地址。它并不指向特定的网络,目前这一类地址被用在多点广播(Multicast)中。多点广播地址用来一次寻址一组计算机,它标识共享同一协议的一组计算机。

2.5 E类IP地址

以“llll0”开始,为将来使用保留。 全零(“0.0.0.0”)地址对应于当前主机。全“1”的IP地址(“255.255.255.255”)是当前子网的广播地址。

3. 测试

注1:两次测试间隔10分钟;每次测试两个命令顺序执行。
注2:命令反馈结果第一行显示跟踪目标地址,跳跃数(30),以及报文大小。

3.1 第一次

$ traceroute www.taobao.com
traceroute to www.taobao.com (111.3.86.235), 30 hops max, 60 byte packets1  192.168.68.1 (192.168.68.1)      0.278 ms  0.325 ms  0.368 ms2  192.168.1.1 (192.168.1.1)        1.411 ms  1.524 ms  1.536 ms3  10.105.0.1 (10.105.0.1)          4.352 ms  4.567 ms  4.683 ms4  111.0.94.77 (111.0.94.77)        4.500 ms  5.054 ms  5.023 ms5  183.248.154.69 (183.248.154.69)  9.122 ms  211.138.114.177 (211.138.114.177)  6.865 ms 183.248.154.61 (183.248.154.61)  16.148 ms6  112.11.232.210 (112.11.232.210)  9.169 ms  6.408 ms  120.199.239.98 (120.199.239.98)    7.845 ms7  111.0.36.182 (111.0.36.182)      8.210 ms  111.3.81.238 (111.3.81.238)         7.701 ms 111.0.36.154 (111.0.36.154)  7.605 ms8  * * *9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
$ traceroute -I www.taobao.com
traceroute to www.taobao.com (111.3.86.234), 30 hops max, 60 byte packets1  192.168.68.1 (192.168.68.1)      0.241 ms  0.306 ms  0.342 ms2  192.168.1.1 (192.168.1.1)        0.990 ms  1.102 ms  1.418 ms3  10.105.0.1 (10.105.0.1)          4.671 ms  4.764 ms  4.804 ms4  111.0.94.73 (111.0.94.73)        6.610 ms  6.625 ms  6.621 ms5  117.148.181.29 (117.148.181.29)  6.435 ms  6.423 ms  6.437 ms6  112.15.224.74 (112.15.224.74)    9.931 ms  7.048 ms  7.534 ms7  111.0.36.154 (111.0.36.154)      9.137 ms  8.817 ms  9.016 ms8  192.168.11.10 (192.168.11.10)    8.990 ms  9.101 ms  8.963 ms9  10.120.120.6 (10.120.120.6)      9.181 ms  8.235 ms  8.474 ms
10  111.3.86.234 (111.3.86.234)      8.100 ms  8.237 ms  8.375 ms

3.2 第二次

$ traceroute www.taobao.com
traceroute to www.taobao.com (111.3.86.235), 30 hops max, 60 byte packets1  192.168.68.1 (192.168.68.1)        0.598 ms  0.547 ms  0.522 ms2  192.168.1.1 (192.168.1.1)          1.403 ms  1.526 ms  1.495 ms3  10.105.0.1 (10.105.0.1)            4.463 ms  5.138 ms  5.386 ms4  111.0.94.77 (111.0.94.77)          5.163 ms  5.132 ms  5.209 ms5  112.11.232.49 (112.11.232.49)      11.981 ms 120.199.246.237 (120.199.246.237)  9.461 ms 117.148.181.13 (117.148.181.13)    6.458 ms6  120.199.239.114 (120.199.239.114)  10.846 ms 112.15.224.54 (112.15.224.54)      6.480 ms 183.248.154.242 (183.248.154.242)  8.207 ms7  111.0.36.154 (111.0.36.154)        8.221 ms  111.0.36.178 (111.0.36.178)        8.809 ms 111.0.36.174 (111.0.36.174)        8.211 ms8  * * *9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
$ traceroute -I www.taobao.com
traceroute to www.taobao.com (111.3.86.235), 30 hops max, 60 byte packets1  192.168.68.1 (192.168.68.1)        0.222 ms  0.259 ms  0.305 ms2  192.168.1.1 (192.168.1.1)          0.936 ms  1.066 ms  1.237 ms3  10.105.0.1 (10.105.0.1)            4.427 ms  4.738 ms  4.877 ms4  111.0.94.77 (111.0.94.77)          4.593 ms  4.988 ms  5.064 ms5  183.248.154.69 (183.248.154.69)    9.011 ms  9.519 ms  9.508 ms6  183.248.154.246 (183.248.154.246)  9.904 ms  7.145 ms  7.526 ms7  111.0.36.186 (111.0.36.186)        9.717 ms  9.403 ms  9.364 ms8  192.168.11.54 (192.168.11.54)      8.532 ms  8.707 ms  9.090 ms9  10.120.120.1 (10.120.120.1)        9.075 ms  9.063 ms  9.051 ms
10  111.3.86.235 (111.3.86.235)        9.036 ms  8.130 ms  8.150 ms

4. 总结

  1. 第一层C类地址(192.168.68.1) 我的本地路由器(防火墙)
  2. 第二层C类地址(192.168.1.1) 运营商接入光纤猫
  3. 第三层A类地址(10.105.0.1) 运营商小区光纤路由器
  4. 第四层A类地址(111.0.94.73/77) 猜测运营商内部网络
  5. 第五层
  • 第一次:UDP-B类地址(183.248.154.69、211.138.114.177、183.248.154.61)、ICMP-A类地址(117.148.181.29)
  • 第二次:UDP-A类地址(112.11.232.49、120.199.246.237、117.148.181.13)、ICMP-B类地址(183.248.154.69)
  1. 第六层: 可能存在UDP打洞的情况
  • 第一次:UDP-A类地址(112.11.232.210、120.199.239.98)、ICMP-A类地址(112.15.224.74)
  • 第二次:UDP-A/B类地址(120.199.239.114、112.15.224.54、183.248.154.242)、ICMP-B类地址(183.248.154.246)
  1. 第七层 猜测淘宝服务器关联网外地址(CDN节点或者什么的)
  • 第一次:UDP-A类地址(111.0.36.182、111.3.81.238、111.0.36.154)、ICMP-A类地址(111.0.36.154)
  • 第二次:UDP-A类地址(111.0.36.154、111.0.36.178、111.0.36.174)、ICMP-A类地址(111.0.36.186)
  1. 第八层C类地址(192.168.11.10/54) // 内部网络IP
  2. 第九层A类地址(10.120.120.6/1) // 内部网络IP
  3. 第十层A类地址(111.3.86.234/235)

5. 补充 github.com访问

分析:2022-11-02【异常】 vs 2022-11-09 【正常】数据,【浙江省杭州市 移动】切换了【浙江省舟山市 移动】,一切就正常了。

5.1 2022-11-02【异常】

当前github.com的IP地址查询,从traceroute的角度

  1. ICMP确实出去了
  2. 使用随机的任何大于 32768 的端口地址作为目标设备的接受报文端口也出去了
  3. 使用TCP 443(https)目标端口到达了github服务器
  4. 使用UDP443(https)目标端口到达了美国节点服务器

所以,到底是哪里的问题???国内屏蔽?加拿大那边阻挡了?还是美国那边阻挡了??

注:前端时间实际上我们访问GitHub是正常的,国家并没有在工程技术这块搞得这么严格。可是最近发现持续一周都无法访问了。

5.1.1 ICMP 跟踪

$ traceroute -I www.github.com
traceroute to www.github.com (20.205.243.166), 30 hops max, 60 byte packets1  [光猫路由器]192.168.1.1 (192.168.1.1)  0.830 ms  0.610 ms  0.711 ms2  [移动局域网 IP]10.105.0.1 (10.105.0.1)  3.230 ms  3.645 ms  3.682 ms3  [浙江省杭州市 移动]111.0.94.85 (111.0.94.85)  3.520 ms  3.555 ms  3.913 ms4  [浙江省杭州市 移动]211.138.119.153 (211.138.119.153)  5.189 ms *  5.665 ms5  * * *6  * * *7  [中国 移动]111.24.10.169 (111.24.10.169)  5.364 ms  5.369 ms  5.599 ms8  [海南省海口市 移动]221.183.111.214 (221.183.111.214)  32.629 ms  32.560 ms  32.743 ms9  [中国 移动]111.24.5.178 (111.24.5.178)  116.905 ms  31.698 ms  31.923 ms
10  * * *
11  [广东省广州市 中国移动骨干网广东省节点(AS9808)]221.183.25.117 (221.183.25.117)  32.122 ms  32.336 ms 221.183.25.121 (221.183.25.121)  32.666 ms
12  [广东省广州市 中国移动骨干网广东省节点(AS9808)]221.183.55.81 (221.183.55.81)  36.046 ms  36.011 ms  35.767 ms
13  * * *
14  [香港 中国移动国际有限公司]223.118.5.202 (223.118.5.202)  71.853 ms  71.794 ms  70.987 ms
15  [香港 中国移动国际有限公司]223.119.81.118 (223.119.81.118)  75.071 ms  75.178 ms  74.998 ms
16  [加拿大 Bell]64.230.44.104.in-addr.arpa (104.44.230.64)  75.493 ms  75.548 ms  75.482 ms
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

5.1.2 UDP 跟踪(>32768)

$ traceroute www.github.com
traceroute to www.github.com (20.205.243.166), 30 hops max, 60 byte packets1  [光猫路由器]192.168.1.1 (192.168.1.1)  0.848 ms  0.615 ms  0.703 ms2  [移动局域网 IP]10.105.0.1 (10.105.0.1)  3.528 ms  3.573 ms  3.857 ms3  [浙江省杭州市 移动]111.0.94.85 (111.0.94.85)  3.294 ms  3.546 ms  3.592 ms4  [浙江省 移动数据上网公共出口]117.148.181.13 (117.148.181.13)  4.311 ms 112.11.232.49 (112.11.232.49)  4.512 ms 117.148.181.1 (117.148.181.1)  9.321 ms5  [浙江省杭州市 移动]211.140.0.98 (211.140.0.98)  4.433 ms *  4.322 ms6  [浙江省杭州市 移动]211.140.0.97 (211.140.0.97)  4.166 ms  4.621 ms  4.800 ms7  [中国 移动]111.24.10.169 (111.24.10.169)  5.580 ms  4.718 ms  4.432 ms8  [中国 移动]111.24.5.105 (111.24.5.105)  30.792 ms  30.921 ms [海南省海口市 移动]221.183.111.214 (221.183.111.214)  31.186 ms9  [中国 移动]111.24.5.178 (111.24.5.178)  30.604 ms 111.24.5.174 (111.24.5.174)  30.874 ms 111.24.5.182 (111.24.5.182)  32.266 ms
10  [广东省广州市 中国移动骨干网广东省节点(AS9808)]221.176.22.158 (221.176.22.158)  33.008 ms  33.529 ms [海南省海口市 移动]221.183.68.145 (221.183.68.145)  35.493 ms
11  * * *
12  [广东省广州市 中国移动骨干网广东省节点(AS9808)]221.183.55.81 (221.183.55.81)  36.245 ms [海南省海口市 移动]221.183.68.126 (221.183.68.126)  34.653 ms [海南省海口市 移动]221.183.68.130 (221.183.68.130)  44.125 ms
13  [中国 移动-香港]223.120.2.9 (223.120.2.9)  35.518 ms 223.120.2.5 (223.120.2.5)  36.991 ms  36.979 ms
14  [中国 移动-香港]223.120.2.46 (223.120.2.46)  72.513 ms  72.378 ms 223.120.2.106 (223.120.2.106)  73.557 ms
15  [香港 中国移动国际有限公司]223.119.81.118 (223.119.81.118)  75.666 ms  73.561 ms 223.119.81.114 (223.119.81.114)  73.137 ms
16  [美国 Microsoft公司]ae24-0.icr01.sg2.ntwk.msn.net (104.44.40.102)  87.966 ms  87.604 ms ae23-0.icr02.sg2.ntwk.msn.net (104.44.230.64)  100.965 ms
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

5.1.3 TCP 跟踪(443)

$ sudo traceroute www.github.com -T -p 443
traceroute to www.github.com (20.205.243.166), 30 hops max, 60 byte packets1  [光猫路由器]192.168.1.1 (192.168.1.1)  0.750 ms  0.734 ms  0.455 ms2  [移动局域网 IP]10.105.0.1 (10.105.0.1)  2.771 ms  3.331 ms  3.529 ms3  * * *4  * * *5  * * *6  * * *7  * * *8  * * *9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  [美国 Microsoft数据中心]20.205.243.166 (20.205.243.166)  70.031 ms  72.180 ms *

5.1.4 UDP 跟踪(443)

$ sudo traceroute www.github.com -U -p 443
traceroute to www.github.com (20.205.243.166), 30 hops max, 60 byte packets1  [光猫路由器]192.168.1.1 (192.168.1.1)  0.732 ms  0.687 ms  0.533 ms2  [移动局域网 IP]10.105.0.1 (10.105.0.1)  3.248 ms  3.751 ms  3.600 ms3  [浙江省杭州市 移动]111.0.94.85 (111.0.94.85)  3.471 ms * *4  [浙江省杭州市 移动]* * 211.138.119.153 (211.138.119.153)  4.618 ms5  [浙江省杭州市 移动]211.140.0.98 (211.140.0.98)  3.997 ms  3.841 ms  4.150 ms6  [浙江省杭州市 移动]211.140.0.97 (211.140.0.97)  4.685 ms * *7  [中国 移动]111.24.10.169 (111.24.10.169)  5.379 ms  5.804 ms  7.281 ms8  [中国 移动]111.24.5.105 (111.24.5.105)  40.892 ms 221.183.111.214 (221.183.111.214)  32.394 ms  32.621 ms9  [中国 移动]111.24.5.186 (111.24.5.186)  32.822 ms 111.24.5.170 (111.24.5.170)  31.929 ms 111.24.5.190 (111.24.5.190)  33.622 ms
10  [海南省海口市 移动]221.183.68.145 (221.183.68.145)  35.285 ms 221.176.24.6 (221.176.24.6)  32.685 ms  32.036 ms
11  [广东省广州市 中国移动骨干网广东省节点(AS9808)]221.183.25.117 (221.183.25.117)  32.315 ms  43.334 ms  42.833 ms
12  [广东省广州市 中国移动骨干网广东省节点(AS9808)]221.183.55.57 (221.183.55.57)  36.822 ms  36.671 ms  36.861 ms
13  * * *
14  [中国 移动]223.120.2.46 (223.120.2.46)  73.975 ms 223.120.2.18 (223.120.2.18)  76.448 ms 223.118.5.202 (223.118.5.202)  71.598 ms
15  [香港 中国移动国际有限公司]223.119.81.114 (223.119.81.114)  77.932 ms 223.119.81.118 (223.119.81.118)  85.611 ms 223.119.81.114 (223.119.81.114)  76.867 ms
16  [美国 Microsoft公司]ae23-0.icr01.sg3.ntwk.msn.net (104.44.230.62)  77.216 ms ae23-0.icr02.sg2.ntwk.msn.net (104.44.230.64)  80.455 ms ae24-0.icr01.sg2.ntwk.msn.net (104.44.40.102)  105.147 ms
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

5.2 2022-11-09 【正常】

5.2.1 ICMP 跟踪

$ traceroute -I www.github.com
traceroute to www.github.com (20.205.243.166), 30 hops max, 60 byte packets1  192.168.1.1 (192.168.1.1)  0.835 ms  0.700 ms  0.836 ms2  10.105.0.1 (10.105.0.1)  4.024 ms  4.583 ms  4.523 ms3  【浙江省舟山市 移动】120.199.253.193 (120.199.253.193)  4.219 ms  4.212 ms  4.319 ms4  【浙江省 移动数据上网公共出口】112.17.216.186 (112.17.216.186)  4.288 ms  4.196 ms  4.351 ms5  * * *6  【浙江省 移动】211.138.128.34 (211.138.128.34)  6.253 ms  6.712 ms  6.783 ms7  【中国 移动】111.24.10.109 (111.24.10.109)  5.555 ms  5.903 ms  5.829 ms8  【海南省海口市 移动】221.176.15.129 (221.176.15.129)  36.742 ms  36.623 ms  36.541 ms9  【中国 移动】111.24.14.146 (111.24.14.146)  32.885 ms  32.809 ms  32.738 ms
10  【海南省海口市 移动】221.183.68.141 (221.183.68.141)  33.212 ms  33.140 ms  32.907 ms
11  【广东省广州市 中国移动骨干网广东省节点(AS9808)】221.183.25.117 (221.183.25.117)  34.137 ms  34.069 ms  33.999 ms
12  【广东省广州市 中国移动骨干网广东省节点(AS9808)】221.183.55.81 (221.183.55.81)  40.905 ms  40.812 ms  40.712 ms
13  * * *
14  【香港 中国移动国际有限公司】223.118.5.202 (223.118.5.202)  77.339 ms  77.041 ms  77.264 ms
15  【香港 中国移动国际有限公司】223.119.81.118 (223.119.81.118)  76.934 ms  76.868 ms  76.802 ms
16  【美国 Microsoft公司】ae23-0.icr02.sg2.ntwk.msn.net (104.44.230.64)  75.750 ms  82.024 ms  81.859 ms
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

5.2.2 UDP 跟踪(>32768)

$ traceroute www.github.com
traceroute to www.github.com (20.205.243.166), 30 hops max, 60 byte packets1  192.168.1.1 (192.168.1.1)  0.721 ms  0.532 ms  0.555 ms2  10.105.0.1 (10.105.0.1)  3.431 ms  4.709 ms  4.634 ms3  【浙江省舟山市 移动】120.199.253.193 (120.199.253.193)  4.563 ms  4.602 ms  4.531 ms4  【浙江省 移动数据上网公共出口】112.17.216.186 (112.17.216.186)  4.325 ms  4.120 ms  4.187 ms5  * * *6  * * *7  【中国 移动】111.24.10.109 (111.24.10.109)  6.938 ms  5.032 ms  5.226 ms8  【中国 移动】111.24.4.169 (111.24.4.169)  30.209 ms  29.638 ms 221.176.15.129 (221.176.15.129)  31.416 ms9  【111.24.4.254】111.24.4.254 (111.24.4.254)  32.122 ms 111.24.5.2 (111.24.5.2)  33.118 ms  30.947 ms
10  【广东省广州市 中国移动骨干网广东省节点(AS9808)】221.176.22.106 (221.176.22.106)  33.222 ms 221.183.68.137 (221.183.68.137)  32.251 ms  30.532 ms
11  【广东省广州市 中国移动骨干网广东省节点(AS9808)】221.183.25.121 (221.183.25.121)  33.309 ms 221.183.52.86 (221.183.52.86)  37.865 ms 221.183.25.117 (221.183.25.117)  33.630 ms
12  【海南省海口市 移动】221.183.68.126 (221.183.68.126)  40.347 ms 221.183.68.130 (221.183.68.130)  41.030 ms  38.730 ms
13  【中国 移动】223.120.2.9 (223.120.2.9)  41.622 ms 223.120.2.77 (223.120.2.77)  41.783 ms 223.120.2.85 (223.120.2.85)  39.548 ms
14  【中国 移动】223.120.2.18 (223.120.2.18)  69.796 ms  71.090 ms 223.120.2.106 (223.120.2.106)  75.670 ms
15  【香港 中国移动国际有限公司】223.119.81.118 (223.119.81.118)  84.485 ms 223.119.81.114 (223.119.81.114)  76.686 ms  93.149 ms
16  【美国 Microsoft公司】ae23-0.icr01.sg3.ntwk.msn.net (104.44.230.62)  80.617 ms ae24-0.icr01.sg2.ntwk.msn.net (104.44.40.102)  71.989 ms  71.167 ms
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

5.2.3 TCP 跟踪(443)

$ sudo traceroute www.github.com -T -p 443
traceroute to www.github.com (20.205.243.166), 30 hops max, 60 byte packets1  192.168.1.1 (192.168.1.1)  0.695 ms  0.648 ms  0.640 ms2  10.105.0.1 (10.105.0.1)  8.217 ms  8.123 ms  8.048 ms3  * * *4  * * *5  * * *6  * * *7  * * *8  * * *9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * 20.205.243.166 (20.205.243.166)  72.508 ms *

5.2.4 UDP 跟踪(443)

$ sudo traceroute www.github.com -U -p 443
traceroute to www.github.com (20.205.243.166), 30 hops max, 60 byte packets1  192.168.1.1 (192.168.1.1)  0.858 ms  0.767 ms  0.845 ms2  10.105.0.1 (10.105.0.1)  4.328 ms  4.760 ms  4.612 ms3  【浙江省舟山市 移动】120.199.253.193 (120.199.253.193)  4.693 ms  4.744 ms  4.617 ms4  【浙江省 移动数据上网公共出口】112.17.216.186 (112.17.216.186)  4.010 ms  4.091 ms  3.929 ms5  * * *6  【浙江省 移动】211.138.128.34 (211.138.128.34)  5.139 ms  6.804 ms  6.265 ms7  【中国 移动】111.24.10.109 (111.24.10.109)  4.978 ms  5.014 ms  4.691 ms8  【海南省海口市 移动】221.176.15.129 (221.176.15.129)  32.089 ms  31.522 ms 221.183.109.229 (221.183.109.229)  33.549 ms9  【中国 移动】111.24.4.234 (111.24.4.234)  30.418 ms 111.24.4.246 (111.24.4.246)  31.371 ms  32.094 ms
10  【广东省广州市 中国移动骨干网广东省节点(AS9808)】221.176.22.106 (221.176.22.106)  35.028 ms  31.783 ms 221.183.68.137 (221.183.68.137)  31.572 ms
11  【广东省广州市 中国移动骨干网广东省节点(AS9808)】221.183.52.86 (221.183.52.86)  36.022 ms  36.334 ms  36.100 ms
12  【海南省海口市 移动】221.183.68.130 (221.183.68.130)  39.055 ms  39.820 ms 221.183.55.57 (221.183.55.57)  38.293 ms
13  * * *
14  【中国 移动】223.120.2.106 (223.120.2.106)  74.334 ms 223.120.2.46 (223.120.2.46)  71.420 ms  71.433 ms
15  【香港 中国移动国际有限公司】223.119.81.118 (223.119.81.118)  84.277 ms  84.195 ms 223.119.81.114 (223.119.81.114)  84.921 ms
16  【美国 Microsoft公司】ae27-0.icr02.sg3.ntwk.msn.net (104.44.230.66)  77.769 ms 102.40.44.104.in-addr.arpa (104.44.40.102)  69.891 ms ae23-0.icr02.sg2.ntwk.msn.net (104.44.230.64)  77.660 ms
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

6. 参考资料

【1】IP归属地查询

traceroute命令结果分析相关推荐

  1. traceroute命令(unix)/tracert命令(windows)

    tracert命令的格式为:tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] [-R] [-S srcaddr] [-4] [-6] ...

  2. traceroute命令初探

    一.学习目标 了解traceroute基本概念 了解traceroute工作原理及详细过程 熟悉traceroute常用命令 一些注意点 二.traceroute基本概念 traceroute (Wi ...

  3. traceroute原理及分析

    traceroute介绍 Traceroute是一种常规的网络分析工具,用来定位到目标主机之间的所有路由器.基本的原理是IP路由过程中对数据包TTL(Time to Live,存活时间)的处理.当路由 ...

  4. u-boot命令寻找分析--find_cmd函数

    /********************************************************************************/ u-boot命令寻找分析 /*** ...

  5. 【Linux】一步一步学Linux——traceroute命令(167)

    00. 目录 文章目录 00. 目录 01. 命令概述 02. 命令格式 03. 常用选项 04. 参考示例 05. 附录 01. 命令概述 traceroute命令用于追踪数据包在网络上的传输时的全 ...

  6. traceroute命令---Linux学习笔记

    介绍: 通过traceroute我们可以知道信息从你的计算机到互联网另一端的主机是走的什么路径.当然每次数据包由某一同样的出发点(source)到达某一同样的目的地(destination)走的路径可 ...

  7. sodu 命令场景分析

    摘自:http://www.cnblogs.com/hazir/p/sudo_command.html sudo 命令情景分析 Linux 下使用 sudo 命令,可以让普通用户也能执行一些或者全部的 ...

  8. 【JVM】javap命令行分析(a++ + ++a)的虚拟机指令

    源代码 public class PlusTest {public static void main(String[] args) {int a = 2;System.out.println(a++ ...

  9. linux系统里route -n不起作用,Linux系统中traceroute命令使用详解

    Linux系统中traceroute命令可以追踪到网络数据包的路由途径.下面由学习啦小编为大家整理了linux系统中traceroute命令使用详解,希望对大家有帮助! Linux系统中tracero ...

最新文章

  1. 简单的相似图片搜索的原理
  2. cmd下,如何在文本的指定行添加内容
  3. 解决Winform程序在不同分辨率系统下界面混乱问题
  4. oracle停止一切进程,oracle中expdp/impdp进程如何停止
  5. 使用Kotlin的Android Toast
  6. Android MeasureSpec解析
  7. [示例代码]植物大战僵尸网页版
  8. 2020届实习招商银行信用卡笔试题(IT算法方向)python版(同2019春招笔试题)
  9. 详解物理学四大神兽————麦克斯韦妖
  10. ZoneAlarm 不错的防火墙软件
  11. 男人好苦,好累,好受罪
  12. Power BI中的ArcGIS地图
  13. 【已解决】win10离线安装.net framework 3.5(错误:0x8024402c)
  14. python输出如何加单位_如何以十为单位写出数据输出
  15. 继 Facebook 开源 PyTorch3D 后,谷歌开源 TensorFlow 3D 场景理解库
  16. KMeans算法的K值以及初始类簇中心点的选取
  17. JavaScript对数组操作。添加/删除/截取/排序/倒序
  18. 苹果13系统锁屏延迟_iPhone锁屏有延迟怎么办 锁屏延迟问题解决方法
  19. 红蓝对抗——蓝队手册
  20. K8SEASY:一键安装K8S高可用集群

热门文章

  1. rearm 命令_windows7系统修复命令利用rearm命令延长Windows 7试用期限
  2. Html.RenderPartial的三个参数的用法 用法实例
  3. 虚拟服务器系统忘记密码,云主机系统密码忘记
  4. 社区分享|JumpServer引领我走向开源天地
  5. 基于ARM Cortex-M3微控制器(STM32系列)基础知识(二)——ARM内核体系结构
  6. Vue-quill-editor改变图片大小ImageResize问题解决
  7. DataTable本身的查询操作
  8. java servlet是单例吗_SpringMVC中DispatchServlet是单例还是多例(附源码分析)
  9. JVM -- 垃圾回收器7种(四)
  10. 大学第一年, coding 第一年