mturoute是一個檢測你與目標網(wǎng)站的mtu值的windows軟件俗扇,通過不斷嘗試發(fā)送不同大小的icmp ping包來確定mtu大小,由于使用了non-fragment標識叠荠,所以當發(fā)送icmp包太大幌甘,包不會被重封裝,而是直接丟棄乘客,不返回任何信息;這樣下次就會選擇個小點的icmp包來發(fā)送淀歇,直至收到回復(fù)信息~
用法:
mturoute [選項] 目標地址
選項:
-t : Toggles 'traceroute' mode. (Default is off)
-f : Allow fragmentation. This will return the max ping size that the target host will respond to, but not necessarily the MTU.
-w : Set the number of milliseconds to wait for a response (default 3000).
-r : Set the maximum number of probe retries on timeout (default = 3).
-i : Set the interval between two echo requests.
-d : Increases the debugging level. Reports ICMP status/failures.
-m : Sets a maximum payload size to test. (Default is 10000)
-v : Print version info and exit.
-z : Fill ICMP packets with random data.
-p : Fill ICMP packets with a specified pattern.
-s : Skip speed optimizations.
-x : Redact IP addresses in output.
-h,-? : Print usage information and exit.
例子:
這里1472字節(jié)就行,但1473字節(jié)就失敗了匈织,所以軟件返回了1500字節(jié)(檢測的1472字節(jié)+額外的icmp協(xié)議報頭的8字節(jié)+IP報頭的20字節(jié))