Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags

Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > Tutorials

Vista Tutorial - Auto Tuning - TCP/IP receive level

Comment
 
LinkBack Tutorial Tools Display Modes
<!-- google_ad_section_start -->Auto Tuning - TCP/IP receive level<!-- google_ad_section_end -->
Auto Tuning - TCP/IP receive level
How to Enable or Disable the Receive Window Auto Tuning Level in Vista
Published by Brink
06-21-2007

How to Enable or Disable the Receive Window Auto Tuning Level in Vista
Information
  The TCP receive window size (RWIN) is the amount of data that a TCP receiver (your computer) allows a TCP sender (other internet or local network computer) to send before having to wait for an acknowledgement. After the connection is established, the receive window size is advertised in each TCP segment. Advertising that maximum amount of data that the sender can send is a receiver-side flow control mechanism that prevents the sender from sending data that the receiver cannot handle. A sending host can only send at a maximum the amount of data advertised by the receiver before waiting for an acknowledgment and a receive window size update. Auto Tuning adjusts the receive windows size continually based upon the changing network conditions. This usually happens if you have a network device (EX: Router, modem, etc.) that doesn’t support RFC 1323 “TCP Extensions for High Performance”.
NOTE
  The TCP window size field controls the flow of data and is limited to between 2 and 65,535 bytes, and cannot be expanded anymore. Thus, a scaling factor is used to get a larger TCP receive window size to achieve more efficient use of high bandwidth networks. The TCP window scale option is used to increase the maximum window size from 65,535 bytes to 1 Gigabyte. Scaling up to larger TCP congestion window sizes is a part of what is necessary for TCP Tuning.

When dealing with slow network performance in Vista, the problem may be due to the above mentioned TCP Window Scaling option, where many older routers and and packet firewalls do not properly implement TCP Window Scaling (doesn’t support RFC 1323), and rewrite the window scaling factor during a transmission, and causing sending and receiving sides to assume different TCP window sizes. The situation causes malfunction Internet connection, non-stable traffic that is very slow, or network connection that is only available intermittently.

Beside, Windows Vista enhances further TCP window scaling with auto tuning feature, where TCP stack in Vista system will auto tune and adjust the RWIN size to increase the percentage of full-sized TCP segments that are used during bulk data transmission based on the network scenario it encountered. And thus it’s no longer possible to specify a custom size for the TCP/IP Receive Window (RWIN) size with the inclusion of new auto tuning feature, unless the application it self uses SO_RCVBUF. However, Vista TCP auto tuning feature may get things wrong sometimes. Instead of optimal true receive window size, incompatible and out of range RWIN size may be used.

By default, Vista in normal auto tuning level will use RWIN size of 256 bytes with a scale factor of 8. This value is not suitable for all routers and servers which does not support TCP scale factor, and continue to communicate with 65536 bytes.


Tip
  Possible TCP/IP Auto Tuning Related Problems:
  • Indefinite delay (hang) when opening the Certificate Services snap-in.
  • Slow (sometimes no) group policy application.
  • Trying to select a domain user in order to add that principal to a local security group (the object picker) would hang indefinitely.
  • Instant Messaging is not working well. Sometimes not at all by not being able to sign in.
  • Access to local file servers (EX: networked drives, etc.) are extremely slow and sometimes did not succeed at all (appears to hang).
  • Internet connection problems.
  • Extremely slow file transfers.
  • Other strange unexplained network connecting issues.
  • Wireless network connection problems
  • Website browsing and downloads are extremely slow.
RELATED LINKS:



FIRST:
How To See Current Auto Tuning Settings
1. Open a elevated command prompt.
NOTE: For how, see: How to Open a Elevated Command Prompt in Vista

2. Click on Continue in the UAC prompt.
3. In the command prompt, type netsh interface tcp show global and press Enter. (See screenshot below)

current-setting.jpg

4. Close the command prompt when done.
5. Run through the steps below to see if you have a TCP/IP Auto Tuning issue



STEP ONE:
How to Restrict Auto Tuning
1. Open a elevated command prompt.
NOTE: For how, see: How to Open a Elevated Command Prompt in Vista
2. Click on Continue in the UAC prompt.

3. To Restrict Auto Tuning -
NOTE: Allows for the receive window to grow beyond the default value of 65,535 bytes, but limits such growth in some scenarios.
A) In command prompt, type netsh interface tcp set global autotuninglevel=restricted and press Enter. (See screenshot below)
B) You will get a OK response if successful. If not, repeat step 3A.
C) Go to step 5.

restricted.jpg
4. To Highly Restrict Auto Tuning -
NOTE: Allows for the receive window to grow beyond the default value of 65,535 bytes, but doing so very conservatively. In this mode, Vista will by default use a RWIN of 16,384 bytes with a scale factor of 2.
A) In the command prompt, type netsh interface tcp set global autotuninglevel=high and press Enter. (See screenshot below)
B) You will get a OK response if successful. If not, repeat step 4A.

highly-restricted.jpg
5. Close the command prompt window and restart the computer to apply the changes.
6. If it fixed your problem stop here. If not, continue to Step Two below.



STEP TWO:
How to Disable Auto Tuning
NOTE: Disables the autotunning feature in Vista completely, and sets and locks the RWIN receive window to the default value as 65536 bytes.
1. Open a elevated command prompt.
NOTE: For how, see: How to Open a Elevated Command Prompt in Vista

2. Click on Continue in the UAC prompt.
3. In the command prompt, type netsh interface tcp set global autotuninglevel=disabled and press Enter. (See screenshot below)
4. You will get a OK response. If not, repeat step 3.

disable.jpg

5. Close the command prompt and restart computer to apply the changes.
6. If it fixed your problem stop here. If not, you may not have a issue with Auto Tuning and will need to turn it back on. Continue to Step 3 below.



STEP THREE:
How to Enable Auto Tuning Back to Normal Default
NOTE: This turns Auto Tuning back to the default on (Normal) setting in Vista. Allows for the receive window to grow to accommodate almost all scenarios. See NOTE at the top of the tutorial for more on this.
1. Open a elevated command prompt.
NOTE: For how, see: How to Open a Elevated Command Prompt in Vista

2. Click on Continue in the UAC prompt.
3. In the command prompt, type:
netsh interface tcp set global autotuninglevel=normal and press Enter. (See screenshot below)
4. You will get a OK response if successful. If not, repeat step 3.

enable.jpg

5. Close the command prompt and restart the computer to apply the changes.
That's it,
Shawn
Published by
Brink's Avatar
Administrator

Join Date: Apr 2007
Location: Texas, USA
Posts: 23,752
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Applies to
All Vista Versions
64 Bit & 32 Bit

Page copy protected against web site content infringement by Copyscape

Old 04-16-2008  
mafia_boy's Avatar
mafia_boy
Member


Join Date: Feb 2008
vista home premium 32 bit
The Underverse
 
Rep Power: 10
mafia_boy is on a distinguished road
  mafia_boy is offline

Re: Auto Tuning - TCP/IP receive level

Im stuck on what to do with this, i ran the cmd and the command; netsh interface tcp show global but my recieve window auto-tuning level says "highlyrestricted" What does this mean?? any advice on what i should do? thanks.
My System SpecsSystem Spec
Old 04-16-2008  
Brink's Avatar
Brink
Administrator



Join Date: Apr 2007
Vista x64 Ultimate SP2
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is offline

Re: Auto Tuning - TCP/IP receive level

Hi Mafia_Boy,

That just means that you had ran Step One in the tutorial to restrict the TCP/IP Auto tuning. If you want the normal settings again, run Step Three.

Hope this helps,
Shawn
My System SpecsSystem Spec
Old 05-14-2008  
Fam Money
Newbie


Join Date: Apr 2008
Vista Ultimate x64
 
Rep Power: 9
Fam Money is on a distinguished road
  Fam Money is offline

Re: Auto Tuning - TCP/IP receive level

This is exactly what I needed.

I was transferring files from my home server to my main rig with Vista newly installed and was getting slooow speeds of ~12MBps on a GigE network. I tried the high setting and I got an immediate boost to 42MBps which is good but not as good as the ~52MBps I was getting in XP Pro.

I decided to try the disabled setting figuring that it would not net me much if anything. Lo and behold I got the fastest speeds I've seen on my LAN, 67MBps! I'm impressed.

Thanks for the tut! Great site BTW.
My System SpecsSystem Spec
Old 05-14-2008  
Brink's Avatar
Brink
Administrator



Join Date: Apr 2007
Vista x64 Ultimate SP2
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is offline

Re: Auto Tuning - TCP/IP receive level

You're welcome Fam Money, and welcome to Vista Forums.

That's a good little jump.

Shawn
My System SpecsSystem Spec
Old 05-14-2008  
swarfega's Avatar
swarfega
da Cleaner


Join Date: May 2008
Vista Home Premium 64bit
Cambridge, UK
 
Rep Power: 29
swarfega is a name known to allswarfega is a name known to allswarfega is a name known to allswarfega is a name known to allswarfega is a name known to allswarfega is a name known to all
  swarfega is offline

Re: Auto Tuning - TCP/IP receive level

Would this help with gaming at all?
My System SpecsSystem Spec
Old 05-15-2008  
Brink's Avatar
Brink
Administrator



Join Date: Apr 2007
Vista x64 Ultimate SP2
Texas, USA
 
Rep Power: 150
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute
  Brink is offline

Re: Auto Tuning - TCP/IP receive level

Hi Swarfega,

It may if you run a networked game through a network device that doesn’t support RFC 1323 “TCP Extensions for High Performance”.

Otherwise, most likely it will not.

Shawn
My System SpecsSystem Spec
Old 05-15-2008  
sidney1st's Avatar
sidney1st
Member


Join Date: Apr 2008
Ultimate SP1 x64 & x86
Paris
 
Rep Power: 71
sidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond reputesidney1st has a reputation beyond repute
  sidney1st is offline

Re: Auto Tuning - TCP/IP receive level

Quote:
swarfega
View Post
Would this help with gaming at all?
Apparently when Windows Vista is connected to high speed broadband Internet connection, there may be some incompatibilities and conflict problem occuring lags in games.
It is reported sometimes that disabling auto tuning resolves this lag problem.
I just don't know as i only play chess on line
My System SpecsSystem Spec
Old 05-15-2008  
swarfega's Avatar
swarfega
da Cleaner


Join Date: May 2008
Vista Home Premium 64bit
Cambridge, UK
 
Rep Power: 29
swarfega is a name known to allswarfega is a name known to allswarfega is a name known to allswarfega is a name known to allswarfega is a name known to allswarfega is a name known to all
  swarfega is offline

Re: Auto Tuning - TCP/IP receive level

lol chess hehe, thanks
My System SpecsSystem Spec
Old 05-30-2008  
stat
Newbie


Join Date: May 2008
Vista Home Premium x86, Vista Ultimate x86
 
Rep Power: 8
stat is on a distinguished road
  stat is offline

Re: Auto Tuning - TCP/IP receive level

Should I be concerned if my auto tuning is disabled? I've used a few tweak programs prior to reading this. Just curious to know. Thanks!
My System SpecsSystem Spec
Comment

Tags
auto, level, networking & internet, receive, tcpip, tuning

Tutorial Tools
Display Modes


Similar Threads
Tutorial Tutorial Starter Category Comments Last Post
Performance tuning johnd01 General Discussion 25 08-07-2008 02:05 AM
Tuning facility katrinnka Vista General 0 07-19-2007 03:26 PM
Vista Auto Tuning (Int. Adv. Users) Dave Cox Vista General 0 07-14-2007 04:24 PM
Receive Window Auto-Tuning on Vista Sooner Al [MVP] Vista networking & sharing 0 07-09-2007 05:51 AM
Mic Volume Level Auto-Adjusts JustinBenfaida Vista music pictures video 0 06-15-2007 10:25 AM


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
Tutorial powered by GARS 2.1.8m ©2005-2006