Windows 7 Forums


Windows 7: MTU Limit - Test and change your connection's MTU limit


MTU Limit - Test and change your connection's MTU limit

Tutorial on how to test your MTU limit and change it in command prompt
Published 01 Jul 2010
Published by

Featured Tutorial

System Preparation Tool - Use to Customize Windows
System Preparation Tool - Use to Customize Windows

How to Use Sysprep to Customize Windows 7 and Windows 8

Dual Boot - Windows 7 and Linux
Dual Boot - Windows 7 and Linux

How to Correctly Setup a Dual Boot with Windows 7 and LinuxMint13

Portable OS - Carry your OS on an External Drive
Portable OS - Carry your OS on an External Drive

How to Create a Portable OS on an External Drive

Microsoft Account Primary Alias Email Address - Change
Microsoft Account Primary Alias Email Address - Change

How to Change your Microsoft Account Primary Alias Email Address

Microsoft Account Display Name - Change
Microsoft Account Display Name - Change

How to Change your Microsoft Account Display Name

SF Diagnostic Tool - Using for Troubleshooting
SF Diagnostic Tool - Using for Troubleshooting

Using SF Diagnostic Tool for Troubleshooting
An MTU limit that is set too high can cause fragmented packets and packet loss on your connection. This tutorial will explain how to test if your MTU limit is sending fragmented packets and will explain how to find what value you should be using.

1) Open an elevated command prompt and type:

netsh interface ipv4 show subinterfaces

and hit Enter.

You should get a list of all your network adapters installed on your PC. The MTU value is listed on the left.

MTU Limit - Test and change your connection's MTU limit-cmd1.png

All PPP connections (Point-to-Point Protocol) have a default MTU size of 1500 bytes and VPN connections have a defualt size of 1400. 28 bytes of this number is reserved for IP/ICMP overhead, so the effective MTU size here is 1472 (1500-28).

To work out if this MTU is too high for your connection, you need to ping with this amount of bytes. The best way to start is start with the default MTU and work your way down.

2) In an elevated command prompt, type the following to ping with an MTU size

ping google.com -f -l 1472

The -f marks packets that should not be fragmented in the ping. -l 1472 sets the size of the packet.

MTU Limit - Test and change your connection's MTU limit-cmd2.png

If you get successful replies, then your current MTU is fine for your connection. If you receive error messages like in the above image, then your packets are getting fragmented.

Keep trying to ping until you get 4 successful replies. Keep decreasing the MTU by 10, so if 1472 fails, try 1462.

You shouldn't go below 1400.

When you find a value that is successful, start to increase that value by 1, so if 1462 is successful, for example, try again with 1463 etc until you get errors again.

3) When you find a successful value, you can then set a new MTU limit with this value.

You will need to add 28 back on to the value for IP/ICMP overheads, so if 1462 is successful, then 1490 is your MTU limit.

To set your new limit, in an elevated command prompt use the following command

For a wired connection use:

netsh interface ipv4 set subinterface "Local Area Connection" mtu=1490 store=persistent

(You can change the interface name to whatever you're using. If you're connected via "Local Area Connection 2" then use this instead and so on)

For a wireless connection use:

netsh interface ipv4 set subinterface "Wireless Network Connection" mtu=1490 store=persistent

Change the MTU value to whatever value you found yourself. Remember you need to add 28 on to the value you were using in your pings. So if you were using a value of 1460 to ping, add 28 on, and the MTU value to set in the above commands will be 1488.

Simply hit Enter and the MTU value will be set.

Restart your PC for the changes to be effective.

If your router also has an MTU value that can be set, such as Netgear routers can have an MTU value set in the WAN settings, then you can add your value here as well.

I've done these steps myself, and it did infact help connections in some online games where I was getting packet loss. After doing these, I now get 0% packet loss. Web browsing is also a lot smoother on my wireless network with this tweak.

Need more help? Try searching our extensive help and support site.
Loading
01 Jul 2010   #1
NoN

Windows 7 Professional SP1 - x64
Lost In Space, Vol 8-New Kind Of Kick
 
 

Very interresting...i mean the command...I done the ping and got the value 1464 then add 28 and got the original value i did settle since i've got XP = 1492...(the normal setting!)

Thank you it had confirm my first ping parameter i'd set online, few years ago with an optimizer tool.

What's about Default TTL in Windows 7... 64 or 128 in decimal?

Attached Thumbnails
MTU Limit - Test and change your connection's MTU limit-capture.png  
My System SpecsSystem Spec

01 Jul 2010   #2
mickey megabyte

ultimate 64 sp1
 
 

thanks Everlong,

tried it and 1462\1490 was my magic number.

i wonder if this will improve my kdr in bf2bc?

now why can't the OS do this itself?
My System SpecsSystem Spec
01 Jul 2010   #3
Everlong

Windows 7 Professional x64 Service Pack 1
Morecambe, Lancashire, England
 
 

Quote   Quote: Originally Posted by NoN View Post
Very interresting...i mean the command...I done the ping and got the value 1464 then add 28 and got the original value i did settle since i've got XP = 1492...(the normal setting!)

Thank you it had confirm my first ping parameter i'd set online, few years ago with an optimizer tool.

What's about Default TTL in Windows 7... 64 or 128 in decimal?
You don't need to change the TTL. That's the Time To Live and sets how long it takes a connection to timeout, in this case the ping. If you increase it then it takes longer to time out, and quicker to time out if you lower it.


Quote   Quote: Originally Posted by mickey megabyte View Post
thanks Everlong,

tried it and 1462\1490 was my magic number.

i wonder if this will improve my kdr in bf2bc?

now why can't the OS do this itself?
I haven't tried BC2 since setting mine, but CSS certainly played smoother as well. Don't know why Windows sets such a high value though.
My System SpecsSystem Spec
.


01 Jul 2010   #4
TimStitt

Windows 7 Ultimate 64 bit
Singapore & Australia
 
 

Good post Everlong. Nice work.
My System SpecsSystem Spec
01 Jul 2010   #5
NoN

Windows 7 Professional SP1 - x64
Lost In Space, Vol 8-New Kind Of Kick
 
 

[QUOTE=Everlong;818244]
Quote   Quote: Originally Posted by NoN View Post
Very interresting...i mean the command...I done the ping and got the value 1464 then add 28 and got the original value i did settle since i've got XP = 1492...(the normal setting!)

Thank you it had confirm my first ping parameter i'd set online, few years ago with an optimizer tool.

What's about Default TTL in Windows 7... 64 or 128 in decimal?
Quote:
You don't need to change the TTL. That's the Time To Live and sets how long it takes a connection to timeout, in this case the ping. If you increase it then it takes longer to time out, and quicker to time out if you lower it.
Humm, well it is always on 64 decimal on my computers. tried 128 on 7 didn't much changes. Got that TCP Optimizer and created a .reg with it so i wouldn't bother recreate each time...so that why it is always set. Thanks anyway!
My System SpecsSystem Spec
01 Jul 2010   #6
Everlong

Windows 7 Professional x64 Service Pack 1
Morecambe, Lancashire, England
 
 

Quote   Quote: Originally Posted by TimStitt View Post
Good post Everlong. Nice work.
Thanks
My System SpecsSystem Spec
14 Jul 2010   #7
logicearth

Windows 7 x64 (SP1)
 
 

Quote   Quote: Originally Posted by Everlong View Post
...Don't know why Windows sets such a high value though.
a MTU of 1500 is the standard for Ethernet v2. 1492 is for the previous standard. Of course not everyone is using the new standard.
My System SpecsSystem Spec
14 Jul 2010   #8
pacinitaly

windows 7 professional & ultimate 64bit laptops
the worst state in america
 
 

so I guess I'm fine

Last edited by pacinitaly; 02 Sep 2010 at 07:42 AM..
My System SpecsSystem Spec
17 Jul 2010   #9
Everlong

Windows 7 Professional x64 Service Pack 1
Morecambe, Lancashire, England
 
 

Quote   Quote: Originally Posted by logicearth View Post
Quote   Quote: Originally Posted by Everlong View Post
...Don't know why Windows sets such a high value though.
a MTU of 1500 is the standard for Ethernet v2. 1492 is for the previous standard. Of course not everyone is using the new standard.
Ahh, I see. Thanks.

Quote   Quote: Originally Posted by pacinitaly View Post
so I guess I'm fine
Yea, looks fine with default settings
My System SpecsSystem Spec
Comment

 MTU Limit - Test and change your connection's MTU limit problems?



Tutorial Tools



Similar help and support threads for: MTU Limit - Test and change your connection's MTU limit
Windows 7 Tutorial Category
Increase network connection limit beyond 20 Network & Sharing
Will the Pc1x1 connection limit the speed of this Device Hardware & Devices
Win 7 Pro - How can I increase share connection limit? Network & Sharing
mem test finding errors outside my memory limit... Performance & Maintenance


All times are GMT -5. The time now is 05:10 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32