Generally, you don’t need to worry about MTU and Jumbo Frame. In a network, these are taking place behind the scenes.
However, as more and more get Gigabit-class or even faster broadband, understanding these two will help certain situations. I’ve seen many instances where minor changes in these values help improve the network connection greatly.
This post will give you a basic understanding of these two settings and an easy way to determine the optimal MTU value of a remote party, allowing you to set yours appropriately — if need be.
So what is MTU exactly?
MTU stands for maximum transmission unit. Data is sent via packets (or frames) in networking, and this is the largest packet size.
- The standard MTU is 1500 bytes.
- When you go Jumbo Frame, the MTU is now 9,000 bytes.
Jumbo or not, MTU is relatively small — in a connection, devices send and receive lots of them. And since this is the maximum, chances are the actual packets are even smaller. By default, the router or devices generally determine this.
Before we go any further, let’s understand the significance of MTU.
Sending data over a network is similar to trucking standard packages from one place to another in the real world. The larger the packages, the faster you can load and unload the truck. So larger can mean better efficiency — faster speed, that is.
The issue is at the receiving end. If the packages are too large, they might not fit through the door of the warehouse. In this case, they need to be broken apart (fragmented) to go through or get denied completely (dropped). So larger can also mean incompatibility, which kills the efficiency.
To be safe, you can always use the smallest package size, but then that’d make loading and unloading the truck much more time-confusing. In networking, this and fragmenting a packet means the equipment needs to do more processing than necessary.
So, the idea of MTU is this: You want to use the largest possible size that all parties involved can handle. The packages have to fit through the smallest door but no smaller than that, so to speak. I’d call this the optimal MTU value, and it’s not a one-size-fits-all number.
Why Jumbo Frame?
For years, the standard MTU (1500 bytes) has been working fine, and it’s working well now, too. That’s because, in most cases, we deal with sub-Gigabit connections.
However, when you have a 1Gbps or faster network, using Jumbo Frame can dramatically improve the speed, again, as long as all parties involved support it.
In fact, Jumbo Frame is sometimes required to deliver the top performance. For example, a 10Gbps switch generally needs to use Jumbo frames to deliver 10000Gbps. If you use the standard MTU, chances are it’ll cap at just half of that.
Most modern devices can handle Jumbo frames and switch between Jumbo and standard automatically, by default. This switching requires processing power, so it’s not a good idea to enable “Jumbo Frame” when there’s no benefit in doing so.
When it’s safe to use a fixed MTU value
No matter if you use standard or Jumbo Frame, it’s always the MTU number that matters.
In other words, just turning the support for “Jumbo Frame” on or off, the equipment will take care of the actual MTU value, and in most cases, it will favor compatibility.
However, if you have a network you know for sure can handle a certain MTU number, it’s better to set the MTU the optimal value. This applies to when you have a local network of all modern devices or segment the network via virtual LAN and then manually set the MTU on each.
The point is the use of fixed MTU is specific and only applies to particular cases. And when applicable, it will improve the speed, but it can also hinder the performance when not. It’s a double-edged sword.
MTU and WAN (Internet) speed
Generally, you don’t need to do anything about MTU in your WAN (broadband) connection. This is true for all sub-Gigabit connections, of which the MTU value is likely 1500.
However, if you have Gigabit or faster Internet, the support for Jumbo frames in either the WAN or LAN side of the network likely helps. Likely because, again, this depends on specific situations. Also, certain ISP requires a specific MTU value to work well.
And no, you do not necessarily need Jumbo Frame to support Gig+ and faster WAN speeds. But this is often true in my experience:
You have an ultra-high-speed WAN connection and get the expected speed when a single device connects directly to the modem (or any Internet terminal type). However, the same device (as the only connected one) gets significantly slower speed (either upload or download) when you put a router in between. In this case, the discrepancy likely has something to do with the router's default MTU setting.
Unfortunately, what MTU value to use depends on the situation. Many times, enabling the router’s support for “Jumbo Frame” on the LAN side will do it. Others, you have to change the WAN MTU value manually. There are just too many variables.
Another thing to note is there’s no universal way to deal with MTU in home routers. How to get this done varies from one networking brand to another, and some don’t even allow for changing this value at all.
On top of that, determining the optimal MTU value itself can be tricky.
How to determine the best MTU value
Generally, what MTU value you should use depends on the receiving end — the one you generally have no control over. You want to make sure the packet size is the best for the receiver.
The good news is while there’s no way to ask a party for its best MTU value, you can figure it out fairly easily via the ping command.
You can run this command in both the Command Prompt (Windows) or Terminal (Mac).
(To use Command Prompt, search for it in Windows’ Start Menu. Use Spotlight for Terminal on a Mac.)
Here’s the syntax (command line) in Windows:
ping -f -l [packet size] [remote party]
There are a few components in this command:
- -f : This switch is to turn on the “Don’t Fragment” flag. It prevents the packet from being fragmented to get through. Instead, it’ll show that fragmentation is required, meaning the packet size is too big, and drop the packet.
- –l : This switch allows for entering the packet size manually.
- [packet size]: The packet size in bytes that you want to send, such as 1500.
- [remote party]: This is the party of which the optimal MTU you want to figure out. It can be a computer name, an IP address, or a domain name.
Literally, the command means: Send that remote device a packet of this size and seeing how it replies. And via the way it replies, we can determine the best packet size (MTU value) for it.
So, for example, if I want to find the best MTU value for this website, I’d start with this command, using the 1500 MTU value (you can try it yourself):
ping -f -l 1500 dongknows.com
The command returned “Packet needs to be fragmented, but DF set,” meaning the MTU number is too high. We need to lower it, so I tried again with1400:
ping -f -l 1400 dongknows.com
The command returned “0% loss”, meaning the MTU size is accepted, but it might still be below the optimal. I increased it to 1470 with this command:
ping -f -l 1470 dongknows.com
Still, no data loss — the optimal is now either1470 or higher. Let’s tread more lightly this time by adding just 3 bytes to the packet size:
ping -f -l 1473 dongknows.com
This time, once again, I got the “Packet needs to be fragmented, but DF set.” By now, it’s clear that the optimal value must be between 1470 and 1472. I tried:
ping -f -l 1472 dongknows.com
0% data loss returned! Voila! 1472 is the optimal MTU value for dongknows.com
By the way, this is the optimal MTU value for most websites. The example above only shows you how to use the ping command to determine this value. To figure out the best MTU value for any remote party, you need to replace dongnows.com with that party’s IP address.
For example, if you want to know the best MTU for your Internet (WAN) connection, use the broadband’s default gateway IP. (Not to be confused with the default gateway address of your router, which is for the LAN side.)
However, it’s not easy to find what the WAN Default Gateway IP address is — unless you have a static IP, in which case this address is provided — but it’s generally within the range of your WAN IP.
(Note that even when you know your WAN’s Default Gateway IP, some ISPs block WAN pings as a security measure. So, maybe you’re better off giving them a call and ask for the best MTU value.)
The idea is here is this: Handling MTU values can be a bit of work, and it requires at least a basic understanding of MTU itself, which you now have. In many cases, it’s a matter of trial and error. But the result can be gratifying when you have Gig+ or faster connections.
Most of the time, you don’t need to worry about MTU or Jumbo Frame, but this can be the last puzzle piece that gets you the top connection speed in certain situations.
In any case, if you want to mess with these, keep in mind that networking a field of constant flux and fluctuations. It’s tough to determine the optimal.
So before you proceed, make sure you back up your router. Afterward, tread lightly by applying a small change at a time. This is an area where the best can indeed be the enemy of the good.