Syndicate Technologies

Mar 15, 20182 min

Troubleshooting MTU Issues

The Maximum Transmission Unit (MTU) is the maximum frame size that can be sent between two hosts without fragmentation. In most cases the MTU is 1500 bytes, although 1496 and 1492 are also common. When a packet is sent from a local host to a host in a remote network, the frame may traverse multiple router hops. If an intermediate router is configured with an MTU size that is too small and the IP header in the datagram has the "Do-not-fragment" bit set, the router informs the sender of an unacceptable maximum packet size with an ICMP "Destination Unreachable-Fragmentation Needed and DF Set" message.

The sender will then transmit a smaller frame taking into account the smaller MTU size. Some routers are configured to drop certain ICMP traffic. If the ICMP error message never makes it back to the sender, it can cause intermittent connectivity issues between the source and destination hosts.

When you are having an issue connecting to a remote host, you can use the ICSI Netalyzr to analyze your Path MTU size.

Ping can be used to find an acceptable MTU size. Make sure to take into account the 28 bytes for the IP and ICMP headers by subtracting from the packet size.

For example

Windows

ping www.meraki.com -l 1472 -f

Mac OSX

ping www.meraki.com -s 1472 -D

These commands will ping host www.meraki.com with 1472 bytes of data and set the "Do-not-fragment" bit. This assumes that you are testing a 1500 byte IP datagram minus the 28 bytes of overhead (IP header).

If the results of the ping come back "Packet needs to be fragmented but DF set" try lowering the size of the packet until you receive a successful reply from the destination.

Here are some steps you can take when dealing with an MTU issue.

  1. Make sure your routers do not drop ICMP "Destination Unreachable-Fragmentation Needed and DF Set" messages.

  2. If your router is set to 1500 bytes, try hardcoding it to a smaller size.

  3. Hardcode your clients with a smaller MTU size.

  4. Use DHCP option 26 to set the clients to a smaller MTU size.

Changing the MTU size in Windows Vista, 7 or 8

Sometimes a computer may struggle to reliably receive and transmit data – resulting in slow speeds or interrupted access to some sites and Internet services. Altering the MTU size can help resolve these problems. This guide shows you how.

Open a Command Prompt in Administrator Mode:

1. Click the Windows button on the task bar.
 

 
2. Click All Programs.
 

 
3. Click Accessories.
 

 
4. Right-click on Command Prompt and click Run as administrator.
 

 
If prompted click the Allow button.

Setting the MTU Size:

Once the Command Prompt window is open follow the steps below to change the MTU size:

  1. Type netsh interface ipv4 show subinterface

  2. Press Enter.

  3. You will see a list of network interfaces.

  4. Type netsh interface ipv4 set subinterface “Local Area Connection” mtu=1458 store=persistent
     

     
    You should replace Local Area Connection with the name that appeared in the “Interface” column from steps 1-3.

  5. Press Enter.

  6. Restart you computer and then test again.

#CiscoMeraki

480
0