cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2213
Views
0
Helpful
5
Replies

mtu on interfaces

carl_townshend
Spotlight
Spotlight

Hi Guys

A couple of questions if you dont mind on mtu.

1.If I have a a pc, this connects to the lan side of the router then goes over the wan to reach elsewhere, if the mtu on the pc is your typical 1500, the mtu on the inside of the router is say 1200, but the wan it goes back to 1500, if a packet comes into the lan interface towards the lan, am I right in saying it wont be fragmented, but the response to that packet that comes back and hits the lan interface will then be fragmented and sent back to the pc, is this correct?

2.second, when we say the mtu is 1500 bytes, is the maximum payload without the headers? so this is why say 1514 etc flows fine?

 

cheers

5 Replies 5

georgehewittuk1
Level 1
Level 1

(1) It depends on the traffic but PMTUD was developed in order to avoid fragmentation in the path between the endpoints. It is used to dynamically determine the lowest MTU along the path from a packet source to its destination. Below article explains in a bit more detail of its benefits and issues. However, generally in design of DC/Enterprise solutions if there is a requirement of a higher MTU we should ensure the transports all support the MTU as fragmentation is often going to cause you problems. It really depends on the scenario.

https://www.cisco.com/c/en/us/support/docs/ip/generic-routing-encapsulation-gre/25885-pmtud-ipfrag.html#anc6

(2) Standard is 1500 which is the maximum size of the network layer payload (not max frame size.) So with Ethernet, the maximum frame size is typiclaly 1518 bytes, 18 bytes of which are overhead (header and frame check sequence), resulting in an MTU of 1500 bytes. But typically frame sizes are seen as 1522 bytes to accommodate the four-byte VLAN tag for dot1q and openly supported.

https://www.packetstreams.net/2018/07/the-secrets-of-mtu-l2-mtu-vs-l3-mtu.html

check this link this is answer for your Q, 
only the L3 do fragment, and if L2 receive frame big than it accept it not fragment it, but drop it. 

Jitendra Kumar
Spotlight
Spotlight

 

1514 is the actual size of the Ethernet frame. 1500 bytes payload + the L2 headers (source MAC (6 bytes), destination MAC (6 bytes) and EtherType field (2 bytes)

If frame is .1q tagged 4byte will be added.

1514+4 =1518

 

Thanks,
Jitendra

I'm just referring to this:

https://en.wikipedia.org/wiki/IEEE_802.3

 

802.3ac 1998-09 Max frame size extended to 1522 bytes (to allow "Q-tag") The Q-tag includes 802.1Q VLAN information and 802.1p priority information.
 

Also 4 bytes for the FCS?

 

Joseph W. Doherty
Hall of Fame
Hall of Fame

#1 It's bad practice to have interfaces, on the same L2 medium, with different MTUs.  In the situation you describe, logically an interface with a MTU of 1200 should not accept or transmit a frame received using a MTU of 1500, and further, if purely L2, packets won't be fragmented (as they are not "visible" to a L2 interface).

In real world, as explained to me once by a Cisco SE, likely your Cisco router interface configured for an MTU of 1200, assuming Ethernet, may accept a MTU frame of 1500, because the interface NIC really can accept such.  (Again, logically, it should drop the frame as being too large.)  Conversely, though, since the interface is configured to only send frames no larger than 1200, it shouldn't transmit a 1500 byte frame (i.e. no transmission logically or physically.)

#2 as mentioned by another poster, for a MTU of 1500, that's the frame's maximum payload data, in the sense of amount of data we can send, per frame (i.e. layers above L2).  As also mentioned, when we talk of frames of sizes like 1514 bytes, that's including L2 overhead, like MACs and FCS, which varies on different medium.  Further, on Ethernet, there's more L1 overhead, another 20 bytes on the wire (some of which is time delay gaps, which consumes bandwidth, but is not data in the sense it caries information).

You might look at Wiki Ethernet Frame.

BTW, what MTU represents is the maximum amount of "our" data we can place into a L2 container, i.e. our L3 and higher data.  For example, an IP packet usually uses 20 bytes of the 1500.  TCP usually uses another 20 bytes, so typically, we can send up to 1460 bytes of data within a 1500 byte MTU when using TCP.