windows的ping中-l(length)是指ICMP的凈荷,不包括IP包頭(一般20字節(jié))和ICMP頭(8字節(jié)),所以默認(rèn)情況下MTU為1500字節(jié),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 (在擴(kuò)展ping中此選項(xiàng)好像失效,沒起作用)
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設(shè)為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
從圖中可看出編號(hào)1002的包,也就是圖中最后一行顯示的Data值為1453的包(加上ICMP和IP包頭共1453+8+20=1481字節(jié))開始因?yàn)槌^R2的s0/0口MTU而回不到R1,于是向R4發(fā)送不可達(dá)的包。
億恩科技地址(ADD):鄭州市黃河路129號(hào)天一大廈608室 郵編(ZIP):450008 傳真(FAX):0371-60123888
聯(lián)系:億恩小凡
QQ:89317007
電話:0371-63322206
本文出自:億恩科技【mszdt.com】
服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|