Solved

How TCP/IP Sliding Window is configured on Win7 hosts?

Posted on 2014-01-31
4
12,462 Views
Last Modified: 2014-02-07
How to set the TCP window size in Windows 7?  Environment Variables or Registry Entry? How to set adjust parameters (like TCP window size) in Windows 7 to improve network performance over LAN & WAN?
0
Comment
Question by:helpdesk_wlk
  • 2
4 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
Comment Utility
Windows Vista and newer use it by default .. They call it auto-tuning
0
 
LVL 6

Accepted Solution

by:
Sasa Kranjac earned 500 total points
Comment Utility
TCP Window Size can be adjusted editing the Registry, and it works back from NT times, for all Operating Systems, not just for Windows 7. Well, it should work - I've tested it on NT 4, Windows Server 2003 and Windows 7. I'm pretty sure it would work on Windows Server 2012 R2 and Windows 8.1 too.

You can set TCP Window size either A) globally, for all interfaces or B) per interface.

A) Run Regedit and under following key

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
add GlobalMaxTcpWindowSize REG-DWORD entry. Put any value between 0x0 and 0x3FFFFFFF.

B) Run Regedit and under following key:

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ interface-name
add TcpWindowSize REG-DWORD entry. Put any value between 0x0 and 0x3FFFFFFF.

A lot of factors affect transfer rate and each network should be fine tuned - there is no "recipe for all". Bit errors, round-trip time, network bandwidth, sender/receiver configuration and many other factors have impact on network performance.

To check TCP/IP stack configuration on Windows 7 type in command prompt:

netsh interface tcp show global
netsh interface tcp show heuristics
Take a look at the two lines:
Receive Window Auto-Tuning Level : normal. It means OS is using TCP/IP normal level of auto-tuning.
Windows Scaling Heuristics : enabled tells you auto-tuning is enabled.

Be very careful and calculate TCP window size to avoid network performance penalties.

Check these sites for more info: TCP thoughoutput calculator, Brad Hedlund's Blog and Neil Carpenter's Blog
1
 

Author Comment

by:helpdesk_wlk
Comment Utility
Thank you for your answers.
0
 
LVL 6

Expert Comment

by:Sasa Kranjac
Comment Utility
You're welcome!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now