What is MTU and how to change its value

When exchanging any information on a network, data transfer is carried out not in a continuous stream, but in small blocks, which largely determines the efficiency of network throughput. Such blocks have a fixed size, determined by the value of the Maximum Transmission Unit parameter , or MTU for short . This parameter determines the maximum data block size of a single packet, excluding headers, and is typically 1500 bytes .

Today, the MTU size of 1500 bytes continues to be the “golden mean” , but in some cases it may be necessary to change it. For example, reducing the maximum packet size is sometimes considered as one of the ways to eliminate failures in VoIP telephony, connection errors when connecting to a remote desktop using the RDP protocol , and so on.

Perhaps, the most important thing is that you should not change the Maximum Transmission Unit settings if there is no reason to do so, that is, when your Internet connection is stable and error-free.

Find the current MTU size

The easiest way to determine the current Maximum Transmission Unit size is using the command line or PowerShell .

  1. Open Terminal/PowerShell/Command Prompt as Administrator,
  2. Run the command:netsh interface ipv4 show subinterfaces.
  3. As a result, you will receive a list of network interfaces with the MTU size indicated in the first column.
Find the current MTU size
Find the current MTU size

Change MTU size value

You can change the MTU size in three ways: In the properties of the network adapter , using the command prompt and using a third-party utility TCP Optimizer.

Option one. Change MTU size value in adapter properties

  1. In Windows Search type Device Manager.
  2. Open the Device Manager app and expand its Network adapters section.
  3. Look for your network card from the list of adapters. It may be named based on the manufacturer (e.g., Intel, Realtek) or model (e.g., WiFi, Ethernet).
  4. Once you’ve located your network card, double-click on it to open its properties.
  5. In the network card’s properties window, switch to the Advanced tab.
  6. Now change the Jumbo Frame option to set the desired MTU size.

This method may be not the best, since the Jumbo packet parameter required in this case may not be available in the adapter properties. Some models of network cards lack it due to driver limitations. Here are more convenient options.

Option two. Set MTU size using command prompt

  1. Open Terminal/PowerShell/Command Prompt as Administrator,
  2. Run this command to find the list of network cards and their names. netsh interface ipv4 show subinterfaces
  3. Now execute the command:netsh interface ipv4 set subinterface NAME mtu=SIZE store=persistent
  4. In the command, NAME is the name of your network interface, and SIZE is the new MTU size in bytes.

    change MTU size
    change MTU size

Finally, there is a third party freeware app that adds extra convenience to this process.

Option three. TCP Optimizer

Download the utility from the official website www.speedguide.net/downloads.php and run it as administrator.

Turn on the “Custom” settings mode , change the value in the “MTU” field and click the “Apply changes” button to apply the new settings.

tcp optimizer
tcp optimizer

How to find the best MTU size

The default MTU value of 1500 bytes does not always correspond to the optimal parameter value. The optimal value will be one at which packets are not fragmented into parts. The easiest way to determine it is using the console utility ping ; moreover, this method is highly accurate.

Do the following to find the best MTU size.

  1. Launch PowerShell and run the command: ping google.com -f -l 1500.
  2. If the ping returns the message “Packet fragmentation is required, but DF is set” , reduce the MTU size value slightly and repeat the ping.

    find best value for MTU
    find best value for MTU

  3. Repeat steps 1-2 until the message disappears.
  4. In a similar way, you can set the upper limit for the MTU value .

The Google URL is just an example, it could be any remote resource you are having trouble connecting to.

To more accurately determine the optimal value, we recommend adding another 28 bytes to the tested value – the size reserved for the IP and ICMP protocol request headers.

Looks like you've read the post to the end. If you enjoyed it, please share it. You would greatly help our blog to grow!

Author: The MFTNEXT Team

The MSFTNEXT project is a small team of authors who love to engage with the latest technology and gadgets. Being passionate Windows bloggers, we are happy to help others fix their system issues.

Leave a Reply

Your email address will not be published.

css.php