Re: Linux Networking MTU Setting

From: Floyd Davidson (floyd_at_barrow.com)
Date: 08/21/03


Date: 20 Aug 2003 19:37:08 -0800

sally_cmp@msn.com (sallie) wrote:
>Ian Northeast <ian@house-from-hell.demon.co.uk> wrote:
>> sallie wrote:
>> >
>> > I am a newbie of Linux networking. But my company would like me to
>> > reset the MTU of the Linux server. So, I need to reset the Linux MTU
>> > in order to have a faster speed and better performance of the network.
>> >
>> > Does anyone know what optium value for MTU is? And how to change it?
>> >
>> > I really have no idea what value it is...Thx Thx!!!
>>
>> The optimum MTU value is normally the default, e.g. 1500 for 10/100Mb
>> ethernet. If there are routers on your LAN which cannot cope with that
>> then path MTU discovery should take care of it.
>>
>> If someone wants you to change it then presumably they have some idea as
>> to why and what to. Ask them.
>>
>> Regards, Ian
>
>Thanks for your suggestion. Actually, the current setting is 1500, but
>the speed is kind of slow. So, they would like to reset the MTU.

So just how is changing the MTU going to speed things up???

Depending on what you are running (PPPoE, VPN, whatever) there
are varying amounts of overhead per ethernet frame. For example,
a PPP header is 40 bytes. Hence you might have, if you've tunneled
several protocols, say 200 bytes of headers on top of your data.
The significance is the percentage of each ethernet frame that is
overhead. With an MTU of 1500, if you have 200 bytes of header,
your data is 1300 bytes out of 1500, or 87 percent. To get just
a ten percent increase in efficiency, you'd need to have an MTU
of over 5000.

Two problems. One is buffer sizing, which was designed for
MTU's of 1500 for 10Mbps ethernet, and latency, which will be
potentially 3 times the delay with frames that are 3 times as
long.

All of which is to say that, on its face, changing the MTU does
*not* equate to speeding up a link.

That is unless you have some specific problem being caused by
the size of your MTU. But you need to specifically determine
what that might be rather than just blindly "reset the MTU"
because some ignorant suit behind a desk is screaming "Do
something!".

With that said... let me show you an example that is specific.
There are implementations of PPPoE where the PPPoE overhead of 8
bytes causes a problem. Some xDSL modems apparently do not
properly do link MTU discovery accurately, and hang as a result.
The cure is to reduce the connected ethernet interface MTU by 8
bytes to 1492 v. 1500.

Note that this is exactly the opposite direction of "more
efficient".

-- 
Floyd L. Davidson           <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)                         floyd@barrow.com


Relevant Pages

  • Re: Cant send attachments with Outlook Express / Hotmail
    ... How do I tell which DriverDesc is Ethernet? ... additional MTU values, try 576 and then increase the number to 600. ... Hotmail.com, I was unable to sign-in to Hotmail via IE as "cookies are ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: FRS Only replicates on inbound connection, no changes go out.
    ... Mike Drechsler - SPAM PROTECTED EMAIL ... protocol can go higher than this on a physical interface that supports larger packet sizes such as gigabit ethernet. ... Ethernet has just become so common that you might assume that 1500 is somehow tied to basic TCP/IP specifications. ... LDAP will work just fine with MTU values lower than 1500 unless you are thinking about the problem experienced with Windows 2003 sp1 or the MS05-019 patch resolved in a hotfix referred to in KB article 898060? ...
    (microsoft.public.windows.server.active_directory)
  • Re: Cant send attachments with Outlook Express / Hotmail
    ... What values do you have for DriverDesc? ... "Realtek RTL8139 Family PCI Fast Ethernet NIC" ... WAN Miniport (L2TP) ... additional MTU values, try 576 and then increase the number to 600. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: FRS Only replicates on inbound connection, no changes go out.
    ... > 1500 is not the MTU of TCP/IP. ... It is the MTU of Ethernet. ... The product is called managed business internet. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Slow transmit / upload
    ... A modem has nothing to do with setting the MTU. ... >> second ACK delay unless duplicate segments were being being received ... > header for some special routing reasons. ... fragmenting the data to maintain the size of the original datagram then ...
    (comp.os.linux.networking)

Loading