Title: How to change the MTU size on the SonicWALL UTM appliance
The term Maximum Transmission Unit (MTU) refers to the size (in bytes) of the largest packet that a given layer of a communications protocol can pass onwards. MTU parameters usually appear in association with a communications interface (NIC, serial port, etc.). The default MTU size is 1500, however for some networking technologies reducing the MTU size and allowing fragmentation can help eliminate some connectivity problems occurring at the protocol level. 

For example: Throughput for PPPoE can often be improved by reducing MTU to 1452 and enabling fragmentation.

Deployment Steps:

  • 1. Determining the MTU Value for Your Internet Connection
  • 2. Changing the MTU settings on the SonicWALL appliance
  • 3. Allowing Fragmentation on the SonicWALL appliance

1. Determining the MTU Value for Your Internet Connection

Contact your ISP for the recommended MTU size for your Internet connection (cable, DSL, T1, etc...) or you can also use the  PING command at the Operating System prompt to determine the MTU size.

Ping -f -l #

Example:
Ping -f -l 1500 www.yahoo.com

Note: Reduce packet size by 8 byte (1500-8 = 1492, 1484, 1404, etc.) until you get 0% packet LOSS.

Example: Ping -f -l 1492 www.yahoo.com



Explanation of parameters: The switch - f (minus sign followed by lowercase F) indicates do not fragment. The second switch -l (minus sign followed by lowercase L) is for size, and the number following it indicates the packet size you will be sending.

If the PING passes successfully, you will get a reply from the IP address specified. If the packet was too large you will get the message: " Packet needs to be fragmented but DF set" (with 100% packet LOSS). Reduce the packet size until you are successfully connected. Then, use this size when specifying an MTU value.


2. Changing the MTU settings on the SonicWALL appliance

The MTU settings may be found on the following pages of the user interface of SonicWALL appliances:

  • Firmware 6.x: Click the Advanced > Ethernet tab. Scroll to the bottom of the page and enter the desired MTU size.
  • SonicOS Standard: Click the Network > Settings > Ethernet Tab.
  • SonicOS Enhanced: Click Network > Interfaces. Click the Configure (edit) icon next to the  WAN (X1) interface. Click the Advanced tab.  


• Interface MTU - Specifies the largest packet size that the interface can forward without fragmenting the packet.

• Fragment non-VPN outbound packets larger than this Interface’s MTU - Specifies all non-VPN outbound packets larger than this Interface’s MTU be fragmented. Specifying the fragmenting of VPN outbound packets is set in the VPN > Advanced page.

• Ignore Don’t Fragment (DF) Bit - Overrides DF bits in packets.

• Do not send ICMP Fragmentation Needed for outbound packets over the Interface MTU - blocks notification that this interface can receive fragmented packets.

Note: It is recommended to check the 'Fragment non-VPN outbound packets larger than this Interface’s MTU' box if the MTU is set below the default of 1500. Press the OK or Update button to process the changes entered.


3. Allowing Fragmentation on the SonicWALL appliance

An additional setting allowing fragmentation should be made to the default outbound rule. Go to the Firewall > Access Rules (SonicOS Standard and Enhanced) or the Access > Rules page (Firmware 6.x) of the management interface. Find the default rule that allows default from LAN to *. Click the edit icon next to that rule, and check the 'Allow fragmented packets' option. Click OK to update the chagnes.


Making these settings changes will allow fragmented packets to pass from the LAN, and will also allow the SonicWALL to decrease the MTU size of the packet. This can make a big difference on outbound packets that are having trouble getting through.

MTU Decrement:

1500
1492
1484
1476
1468
1460
1452
1444
1436
1428
1420
.............. and so on!


Authored by: Guru Corner on Sat, Mar 31st, 2012 at 6:00 PM
This question has been viewed 20646 times so far.
Online URL: http://kb.guru-corner.com/question.php?ID=190

Powered by Guru Corner