Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Forums > Tutorials

Vista Tutorial Categories Network & Internet Tutorials File & Folder Settings Tutorials Taskbar & Start Menu Tutorials Performance & Maintenance Tutorials General Tips Tutorials Programs & Features Tutorials Context Menu Tutorials Shortcut Tutorials Security & System Tools Tutorials Parental Controls Tutorials User Account Tutorials Hardware & Drivers Tutorials Appearance & Personalization Tutorials Backup & Restore Tutorials Music, Photo, Video and Media Tutorials Power Management Tutorials

Auto Tuning - TCP/IP receive level

Update your Vista Drivers Update Your Drivers Now!!
Poll: Did this Tutorial help and work for you?
Poll Options
Did this Tutorial help and work for you?

Comment
 
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 Test the TCP/IP Receive Window Auto Tuning in Vista
Published by Brink
06-21-2007

How to Test the TCP/IP Receive Window Auto Tuning 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 the Start Menu.
2. In the white line (Start Search) area, type cmd.
3. Right click cmd (at top) and click Run as administrator.
4. Click Continue button for UAC prompt.
5. In command prompt, type: netsh interface tcp show global
6. Press Enter. (See screenshot below)

Name:  Current setting.jpg
Views: 11491
Size:  34.5 KB

7. Close command prompt when done.
8. 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 the Start Menu.
2. In the white line (Start Search) area, type cmd.
3. Right click cmd (at top) and click Run as administrator. (See screenshot below)

Name:  cmd_Start_Menu.jpg
Views: 9244
Size:  83.5 KB

4. Click Continue button for UAC prompt.

5. 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 5A.
C) Go to step 7.

Name:  Restricted.jpg
Views: 1648
Size:  22.0 KB
6. 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 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 6A.

Name:  Highly restricted.jpg
Views: 11444
Size:  20.5 KB
7. Close command prompt window and restart the computer to apply the changes.
8. 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 the Start Menu.
2. In the white line (Start Search) area, type cmd.
3. Right click cmd (at top) and click Run as administrator.
4. Click Continue button for UAC prompt.
5. In command prompt, type netsh interface tcp set global autotuninglevel=disabled
6. Press Enter. (See screenshot below)
7. You will get a OK response. If not, repeat step 4.

Name:  Disable.jpg
Views: 11379
Size:  20.8 KB

8. Close command prompt and restart computer to apply changes.
9. 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 the Start Menu.
2. In the white line (Start Search) area, type cmd.
3. Right click on cmd and click Run as administrator.
4. Click Continue button for UAC prompt.
5. In command prompt, type:
netsh interface tcp set global autotuninglevel=normal
6. Press Enter. (See screenshot below)
7. You will get a OK response if successful. If not, repeat step 4.

Name:  Enable.jpg
Views: 11358
Size:  21.1 KB

8. Close command prompt.
9. Restart the computer to apply changes.
That's it,
Shawn

Published by
Brink's Avatar
Administrator
Join Date: Apr 2007
Location: Texas, USA
Posts: 16,630
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

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


Join Date: Feb 2008
vista home premium 32 bit
The Underverse
 
Rep Power: 5
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 SP1
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: 4
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 SP1
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

Your 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: 12
swarfega is a jewel in the roughswarfega is a jewel in the roughswarfega is a jewel in the rough
  swarfega is online now

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 SP1
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: 66
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: 12
swarfega is a jewel in the roughswarfega is a jewel in the roughswarfega is a jewel in the rough
  swarfega is online now

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: 3
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


Update your Vista Drivers Update Your Drivers Now!!

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



Vistax64.com 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 2005-2008
Tutorial powered by GARS 2.1.8m ©2005-2006