4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

traceroute -Aとtraceroute -e

Last updated at Posted at 2015-04-20

SoftLayer上のTOK02-DCからtracerouteを使ってみる。

以下は単純に実行した結果。遅いルーターが分かったとしても、結局そのルーターってどこなの?ってなってしまいそう。

単純に実行した結果
# traceroute www.google.com
traceroute to www.google.com (216.58.221.4), 30 hops max, 60 byte packets
 1  161.xxx.xxx.xxx-static.reverse.softlayer.com (161.xxx.xxx.xxx)  1.392 ms  1.314 ms 161.xxx.xxx.xxx-static.reverse.softlayer.com (161.xxx.xxx.xxx)  1.219 ms
 2  ae12.dar01.tok02.networklayer.com (161.202.118.134)  6.030 ms  5.990 ms ae11.dar02.tok02.networklayer.com (161.202.118.132)  0.974 ms
 3  ae9.bbr02.eq01.tok01.networklayer.com (50.97.19.138)  0.986 ms ae8.bbr02.eq01.tok01.networklayer.com (50.97.19.136)  1.456 ms ae8.bbr01.eq01.tok01.networklayer.com (50.97.19.132)  1.403 ms
 4  218.100.6.53 (218.100.6.53)  2.130 ms 15169.tyo.equinix.com (203.190.230.31)  2.090 ms 218.100.6.53 (218.100.6.53)  2.042 ms
 5  72.14.239.202 (72.14.239.202)  1.964 ms 209.85.249.192 (209.85.249.192)  1.932 ms 72.14.239.202 (72.14.239.202)  1.870 ms
 6  209.85.143.39 (209.85.143.39)  1.847 ms  1.238 ms  1.175 ms
 7  nrt13s38-in-f4.1e100.net (216.58.221.4)  1.196 ms  1.105 ms  1.095 ms

以下は、-Aオプションを付けた結果。ASの情報が出力されるようになるため、誰のネットワークで問題が起こっているかがわかりやすい。

-Aオプションあり
# traceroute -A www.google.com
traceroute to www.google.com (216.58.220.228), 30 hops max, 60 byte packets
 1  161.xxx.xxx.xxx-static.reverse.softlayer.com (161.xxx.xxx.xxx) [AS36351]  1.184 ms  1.112 ms  1.058 ms
 2  ae12.dar01.tok02.networklayer.com (161.202.118.134) [AS36351]  2.326 ms ae12.dar02.tok02.networklayer.com (161.202.118.136) [AS36351]  0.925 ms ae12.dar01.tok02.networklayer.com (161.202.118.134) [AS36351]  0.921 ms
 3  ae9.bbr01.eq01.tok01.networklayer.com (50.97.19.134) [AS36351]  1.391 ms ae8.bbr02.eq01.tok01.networklayer.com (50.97.19.136) [AS36351]  1.238 ms ae9.bbr02.eq01.tok01.networklayer.com (50.97.19.138) [AS36351]  1.176 ms
 4  15169.tyo.equinix.com (203.190.230.31) [AS17819/AS1221]  1.758 ms  1.715 ms  1.666 ms
 5  72.14.239.202 (72.14.239.202) [AS15169]  1.598 ms 209.85.249.192 (209.85.249.192) [AS15169]  19.800 ms 72.14.239.202 (72.14.239.202) [AS15169]  1.509 ms
 6  209.85.143.37 (209.85.143.37) [AS15169]  1.468 ms  1.012 ms  0.929 ms
 7  nrt13s37-in-f4.1e100.net (216.58.220.228) [AS15169/AS30620]  1.054 ms  1.019 ms  0.980 ms

# whois AS17819
[Querying whois.radb.net]
[whois.radb.net]
aut-num:        AS17819
as-name:        ASN-EQUINIX-AP
remarks:        APNIC ASN - created for use in RIPE route objects.
descr:          Equinix Asia Pacific
(以下略)

# whois AS1221
[Querying whois.radb.net]
[whois.radb.net]
aut-num:        AS1221
as-name:        ASN-TELSTRA
descr:          Telstra Pty Ltd
country:        AU
admin-c:        TIAR-AP
tech-c:         TIAR-AP
remarks:        AS assigned by the former InterNIC
(以下略)

以下は、SoftLayerのTokyo-Singapore間をtracertouteを取得した結果。**-eオプションをつけることで、rfc4884のICMP拡張情報(MPLS情報など)が出力されるようになる。**以下の例では、SoftLayerのPrivate NetworkはMPLSが使用されていることが分かる。

フォーマットは
MPLS:L=label,E=exp_use,S=stack_bottom,T=TTL

-eオプションあり
# traceroute -e 10.xxx.xxx.xxx
traceroute to 10.xxx.xxx.xxx (10.xxx.xxx.xxx), 30 hops max, 60 byte packets
 1  10.xxx.xxx.xxx (10.xxx.xxx.xxx)  1.834 ms  1.757 ms  1.700 ms
 2  169.254.62.52 (169.254.62.52)  1.631 ms  1.589 ms 169.254.61.50 (169.254.61.50)  0.748 ms
 3  169.254.1.62 (169.254.1.62) <MPLS:L=480848,E=0,S=1,T=1>  0.705 ms 169.254.2.64 (169.254.2.64) <MPLS:L=477360,E=0,S=1,T=1>  1.350 ms  1.318 ms
 4  * * *
 5  * * *
 6  * * *
 7  10.0.30.215 (10.0.30.215) <MPLS:L=73,E=0,S=1,T=1>  75.024 ms  74.982 ms  74.928 ms
 8  10.0.30.217 (10.0.30.217)  81.870 ms  81.844 ms  75.836 ms
 9  10.xxx.xxx.xxx (10.xxx.xxx.xxx)  82.088 ms  75.389 ms  75.346 ms
4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?