R01(config)#interface gigabitEthernet 5/1 R01(config-if)#mtu 1532 R01(config-if)#exit
R01#show interfaces gigabitEthernet 5/1 GigabitEthernet5/1 is up, line protocol is up (connected) Hardware is C6k 1000Mb 802.3, address is 0008.e3ff.fde0 (bia 0008.e3ff.fde0) Description: -- -- MTU 1532 bytes, BW 1000000 Kbit, DLY 10 usec, reliability 255/255, txload 82/255, rxload 20/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 1000Mb/s, media type is LH ..... OUTPUT OMITTED
R01#show run interface gigabitEthernet 5/1 interface GigabitEthernet 5/1 description -- -- no switchport mtu 1532 ip address 192.168.1.1 255.255.255.0 end
IP MTU ≤ HW MTU
R01(config)#interface gigabitEthernet 5/1 R01(config-if)#ip mtu 1532 R01(config-if)#exit
show interfaces gigabitEthernet 5/1 GigabitEthernet 5/1is up, line protocol is up Internet address is 192.168.1.1/24 Broadcast address is 255.255.255.255 Address determined by non-volatile memory MTU is 1532 bytes Helper address is not set Directed broadcast forwarding is disabled Multicast reserved groups joined: 224.0.0.5 224.0.0.2 Outgoing access list is not set Inbound access list is not set ..... OUTPUT OMITTED
R01#show run interface gigabitEthernet 5/1 interface GigabitEthernet 5/1 description -- -- no switchport mtu 1532 ip address 192.168.1.1 255.255.255.0 no ip redirects no ip unreachables no ip proxy-arp end
TCM MSS = (IP MTU – [IPHDR + TCPHDR])
R01(config)#interface gigabitEthernet 5/1 R01(config-if)#ip tcp adjust-mss? <500-1460> Maximum segment size in bytes
R01(config)#ip tcp mss? <0-10000> MSS
R01(config)#interface gigabitEthernet 5/1 R01(config-if)#mpls mtu 1540 R01(config-if)#exit
R01#show mpls interfaces gigabitEthernet 5/1 detail Interface gigabitEthernet 5/1: IP labeling enabled (ldp): Interface config LSP Tunnel labeling not enabled BGP labeling not enabled MPLS operational MTU = 1540
SW01(config)#system mtu 1600
- Change L2 MTU on FastEthernet portsSW01(config)#system mtu jumbo 1600
- Change L2 MTU on GigabitEthernet and Ten GigabitEthernet portsSW01(config)#system mtu routing 1600
- Change L3 MTU on routed interfaces SW01#show system mtu System MTU size is 1600 bytes System Jumbo MTU size is 1600 bytes Routing MTU size is 1600 bytes
1) In order to find the minimum MTU (funny combination) on the network, you can use the extended ping command, and from both the end stations / servers and Cisco equipment. Ping from router R01 to router R02 with exposed df-bit, with an initial packet size of 1000 bytes, the last 1500 bytes, and a step of 100 bytes. The number of repetitions 2.
R01#ping Protocol [ip]: Target IP address: 192.168.12.2 Repeat count [5]: 2 Datagram size [100]: Timeout in seconds [2]: Extended commands [n]: y Source address or interface: 192.168.12.1 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]: 1000 Sweep max size [18024]: 1500 Sweep interval [1]: 100 Type escape sequence to abort. Sending 12, [1000..1500]-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds: Packet sent with a source address of 192.168.12.1 Packet sent with the DF bit set !!!!..!!!!.. Success rate is 66 percent (8/12), round-trip min/avg/max = 4/24/56 ms
As you can see, only 6 ICMP packets with a size of 1000, 1100, 1200, 1300 bytes pass.
Starting from 1400 bytes and higher packets do not pass. Consequently, the minimum MTU between two points is 1300 and 1400, which can be refined in a few more cycles, compressing the range and relaxing step.
2) A frequent problem arises in the interaction of network and system administrators — packets of the same size pass from the end device, and a larger network device from the one closest to it. The reason is that the operating systems (in particular, Windows), when you specify the packet size to the ping command, perceive this value as a pure paiload — without the ICMP and IP headers, i.e. when specifying ping 192.168.1.2 -l 100, the system will generate 128 byte packets, not 100 (8 bytes ICMP header and 20 bytes IP). If you specify the same ICMP packet size on Cisco network equipment, the size you specify already includes both headers. Therefore, on the default Ethernet link, pings with Windows OS (for example) will show 1472 bytes of the maximum packet size passing without fragmentation, and Cisco 1500 bytes. JunOS, by the way, behaves as well as operating systems (does not include headers)
Source: https://habr.com/ru/post/226807/
All Articles