03-31-2016 02:00 PM - edited 03-08-2019 05:10 AM
Hi experts,
in my understanding if I configure an MTU on an interface, incoming/outgoing packets that are bigger then MTU are discarded. This limit applies to both originated by router, terminating on router and routed traffic. What I didn't understand is if the MTU specified in "ip mtu" command, applies just to packet originated or terminating on router or to router traffic too.
Can you help me ?
Thx
enrico
03-31-2016 02:15 PM
Hi!
Incoming/Outgoing packets transmitted over your interface which are bigger than your MTU are NOT discarded, they are fragmented in pieces of your MTU size, i.e if your MTU configured in the interface is 1500 and a frame of 3000 is traversing your link you will have two fragments of 1500 transmitted over the interface.
This is applied to ANY frame traversing the link.
Best regards!
JC
03-31-2016 11:51 PM
Well, I my understanding discarding/fragmenting is related to two different command: "mtu" and "ip mtu"; if you configure mtu xxx and a frame is bigger then xxx, the frame is discarded. If you configure ip mtu yyy and a packet is bigger then yyy, the packet is fragmented. Below what find on Cisco doc:
04-01-2016 04:04 AM
I did some test with GNS3 (see attached diagram) and read some documentation.
Firs of all I understand that:
So I did some test; I configured mpls between R1-R2-R3 with mpls ldp explicit-null to avoid PHP; this way I'm sure MPLS label is always used. On R2 and R2 serials I configured:
Test:
Then I remove MPLS between R2 and R3.
Finally I tried without MPLS:
So the answer to the initial question seems to be that ip mtu is used just if router has to encapsulate an IP packet over the layer 2 protocol and do tat also when routing packet not just if originates or terminates the packet.
Let me know if you agree
Bye
enrico
04-01-2016 06:54 AM
Yes, the MTU checking must be done before rewriting the frame. The Router should check the MTU established by the L2 technology (or configured) and decide how the packet will be fragmented (this is done by the CPU) and afterwards it should encapsulate the fragments as their corresponding L2 technology.
So yes I agree, it is done when routing the packet.
Best regards!
JC
03-31-2016 08:17 PM
MTU applied for any packet, including IP packet, mpls packet, clns packet etc.
if you set ip mtu, this will take effect for only IP packet.
if ip packet is bigger than IP MTU, check if DF bit is set, if set, just discard the packet and send icmp message to the originator. if not set, just fragment the packet and forward them altogether.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide