您好,登錄后才能下訂單哦!
windows的ping中-l(length)是指ICMP的凈荷,不包括IP包頭(一般20字節)和ICMP頭(8字節),所以默認情況下MTU為1500字節,windows中:
ping 1.1.1.1 -f -l 1472
ping 1.1.1.1 -f -l 1473
IOS的ping中Datagram size和sweep size都是指MTU,即
R1#ping
Protocol [ip]:
Target IP address: 1.1.1.1
Repeat count [5]: 1
Datagram size [100]: 1600 (在擴展ping中此選項好像失效,沒起作用)
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface:
Type of service [0]:
Set DF bit in IP header? [no]: y
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]: y
Sweep min size [36]: 1500
Sweep max size [18024]: 1501
Sweep interval [1]:
Type escape sequence to abort.
Sending 2, [1500..1501]-byte ICMP Echos to 34.1.1.4, timeout is 1 seconds:
Packet sent with the DF bit set
!.
Success rate is 50 percent (1/2), round-trip min/avg/max = 212/212/212 ms
如圖,所有路由器均為3620路由器,將R2的s0/0口MTU設為1480,
R1#ping
Protocol [ip]:
Target IP address: 34.1.1.4
Repeat count [5]: 1
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface:
Type of service [0]:
Set DF bit in IP header? [no]: y
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]: y
Sweep min size [36]: 1475
Sweep max size [18024]: 1485
Sweep interval [1]:
Type escape sequence to abort.
Sending 11, [1475..1485]-byte ICMP Echos to 34.1.1.4, timeout is 2 seconds:
Packet sent with the DF bit set
!!!!!!.....
Success rate is 54 percent (6/11), round-trip min/avg/max = 100/127/200 ms
從圖中可看出編號1002的包,也就是圖中最后一行顯示的Data值為1453的包(加上ICMP和IP包頭共1453+8+20=1481字節)開始因為超過R2的s0/0口MTU而回不到R1,于是向R4發送不可達的包。
但實際上從R1發出去的request包是可以通過R2的s0/0口的。也就是端口的MTU值只限制從該端口發出去的包MTU大小,不限制收到的包。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。