最後更新: 2015-07-08
目錄
tracepath
* discovering MTU along this path
* It uses UDP port
Install
apt-get install iputils-tracepath
Usage
tracepath [-n] [-b] [-l pktlen] destination [port]
Opts:
-n IP addresses numerically
-l Sets the initial packet length
output:
1: 203.xxx.xxx.158 0.058ms pmtu 1500 1: 203.xxx.xxx.254 0.798ms 1: 203.xxx.xxx.254 0.586ms 2: 202.xxx.xxx.66 0.967ms 3: 202.67.141.73 1.339ms asymm 2 4: 203.131.241.97 2.697ms asymm 3 5: 129.250.6.126 2.699ms asymm 4 6: 129.250.3.124 57.624ms 7: 129.250.8.58 82.392ms asymm 13 8: 202.97.58.106 147.986ms asymm 10 9: 202.97.61.217 79.618ms asymm 11 10: 202.97.53.85 142.849ms asymm 12 11: 58.61.216.122 161.268ms asymm 13 12: 113.98.78.206 165.791ms asymm 15 13: 121.8.223.110 136.036ms asymm 15 14: no reply 15: no reply 16: no reply
column:
- TTL
- network hop
- information about path (RTT, "Path MTU", async(path isasymmetric))
mtr
它的功能是 ping 在 path 上所有的 node, 查看 package drop 情況
mtr 與 mtr-tiny 的分別
mtr - Full screen ncurses and X11 traceroute tool <-- 會安多好多野 !!
mtr-tiny - Full screen ncurses traceroute tool (compiled without support for X)
* combines the functionality of the 'traceroute' and 'ping' programs
-u Use UDP datagrams instead of ICMP ECHO.
-n display numeric IP numbers
-r puts mtr into report mode
-c number of cycles specified by the -c
-w wide report mod
output:
My traceroute [v0.82]
xxxx (0.0.0.0) Wed Nov 27 15:52:51 2013
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. 203.xxx.xxx.254 0.0% 140 0.3 1.9 0.2 126.8 11.9
2. 202.xx.xxx.66 0.0% 140 0.4 12.8 0.4 198.5 38.5
3. 202.xx.xxx.73 0.0% 139 0.6 9.3 0.4 158.4 27.4
4. 203.xxx.xxx.97 0.0% 139 2.3 2.4 2.1 16.9 1.3
5. 129.250.6.126 0.7% 139 2.0 2.7 1.9 25.7 3.4
6. 129.250.3.76 0.0% 139 52.8 61.0 52.5 127.7 11.3
129.250.3.124
7. 129.250.8.58 31.2% 139 126.6 96.3 76.7 145.1 25.3
129.250.9.170
61.120.146.54
61.120.146.58
8. 202.97.60.150 37.0% 139 140.6 98.7 78.1 150.6 26.5
202.97.58.106
9. 202.97.60.41 30.9% 139 84.0 101.0 77.6 152.9 26.1
202.97.53.225
10. 202.97.35.241 26.8% 139 82.4 105.9 78.7 160.6 29.8
202.97.53.97
11. 61.144.3.9 32.4% 139 78.7 104.6 78.4 209.7 32.1
202.97.80.30
12. 58.61.216.54 34.5% 139 157.0 105.2 78.2 268.2 36.1
183.56.33.114
13. 121.8.223.114 33.8% 139 81.6 105.4 79.0 262.3 36.0
183.56.29.106
14. 218.20.26.30 32.6% 139 86.9 100.2 80.2 156.7 27.4
由表可知, 在 7 出事了