PDA

View Full Version : Windows 7 TCP/IP tweaks - Tune your internet connection


AndyCalling
26-10-2009, 19:32
As you will be aware, DrTCP and other recommended tweak programs are only for WinXP and below. I have previously posted my tweaks for Vista, now here's my tweaks for Windows 7 retail.

First, check out your connection using the following link to make sure there are no problems (you may have to modify my settings if you can't get past all these tests, if you can't resolve the problem):

http://www.microsoft.com/windows/using/tools/igd/default.mspx

If all is OK, next make a batch file in Notepad from the following by cut & pasting. Call it something like 'TCPIPSet.cmd' making sure you get the extention right:


@echo off
echo Setting TCP/IP flags...
echo -----------------------
echo This only succeeds when run as an administrator,
echo when run as a user it only shows the current settings.
echo.
pause
echo.
netsh int tcp set global rss=enabled
netsh int tcp set global chimney=automatic
netsh int tcp set global netdma=enabled
netsh int tcp set global dca=enabled
netsh int tcp set global autotuninglevel=normal
netsh int tcp set global congestionprovider=ctcp
netsh int tcp set global ecncapability=enabled
netsh int tcp set global timestamps=disabled
pause
cls
echo Current settings:
echo -----------------
netsh int tcp show global
pause


If you run it normally, it'll just tell you what your current settings are. If you right click on it and run it as administrator it'll set the settings to the best for most standard home internet connections (such as ADSL and Cable in the UK). This is not recommended for exotic connections like satelite or G3, you should research your connection details and the TCP/IP options if you are dealing with the like.

This should give you the best speeds your connection will allow. Use it to check your settings from time to time to make sure nothing's knocked them out of whack.

Welshchris
26-10-2009, 19:45
wheres the vista ones? u got a link?

buckleb
26-10-2009, 20:06
Thanks for the info, I'll be playing with this later!

bonzoe
26-10-2009, 20:13
Any figures for the improvement in speed (ie speed before tweak and speed after) so that we can judge how useful it is?

Pantsu-san
26-10-2009, 20:16
I was going to do this but then I saw that the Microsoft test included something that would open 80 concurrent connections on my router. As I currently have a WNR2000 (as supplied by Virgin) I was worried that it might pop a capacitor on the board and catch fire. So I closed the window, sharpish, and banished all thoughts of stress testing Netgear's finest.

AndyCalling
26-10-2009, 21:02
1) The Vista tweaks are here:

http://www.cableforum.co.uk/board/12/33655006-my-vista-tcp-ip-tweaks-speed.html

2) Sorry, mileage will vary depending on previous settings and current hardware used. Some of these tweaks affect TCP/IP transfer efficiency, whilst some rely on networking hardware in the LAN card to offload some of the processing from the CPU, one even allows compatable hardware to directly address CPU cache memory to avoid bottlenecks. Basically, if there are no problems indicated from the test site and you have a normal home broadband connection then these settings are going to squeeze the last bit out of your connection. If your settings are normal it will be that little bit better. If your settings have been knocked out of whack (common with Vista) then this can seriously boost your speed. The following two lines are the most essential for raw transfer speed:

netsh int tcp set global autotuninglevel=normal
netsh int tcp set global congestionprovider=ctcp

These tweaks can be seen in the same light as the DrTCP tweaks for older OSs. You can get anything from a little top end fine tuning speed improvment to radical improvment.

3) No, the Microsoft compatability test will not blow up your router. The worst concievable result is the need to reboot the router, and if you do need that then the router is awful and should be replaced with a half way decent one. The WGR614v9 (latest Netgear firmware, can't speak as to Virgin firmware) passes perfectly. Still, do the test in case your PC/LAN card/summat else has an issue.

Welshchris
26-10-2009, 22:06
who mentioned blowing up ur router? lol

AndyCalling
26-10-2009, 22:19
who mentioned blowing up ur router? lol

Pantsu-san was the concerned party. I thought I'd better squash that one quickly... :dunce:

Stuart_
26-10-2009, 22:34
Have you done one for Windows XP?

Hiroki
26-10-2009, 22:53
I ran the tests and it says that UPnP Support Test is Not supported.......is this something I should be concerned about?

Should mention that im using windows 7

AndyCalling
26-10-2009, 23:05
Have you done one for Windows XP?

No. The standard advice of 'Use DrTCP' is good for WinXP, but the calculations are up to you. The RWIN value is very important, but very idiosyncratic. You will have to research and tune yourself as it comes down to your own connection. Vista and Win7 are more automated in this regard.

There is lots of info on tweaking with DrTCP available on the net. There is little info on Vista and Win7 and what there is is a bit technical and sometimes conflicting, so I thought I'd better pull it together for people.

As a note, Win7 is hot off the shelves of course, so if anyone experiences problems with my Win7 config. speak up. My Vista settings have been well tested.

---------- Post added at 22:05 ---------- Previous post was at 21:57 ----------

I ran the tests and it says that UPnP Support Test is Not supported.......is this something I should be concerned about?

My WGR614v9 did that once, a reboot of the router solved it.

There are a lot of settings that can affect UPnP, you'll have to google if you think they're out of whack. It should not affect the tweaks this thread is all about but I like to use UPnP. Port forwarding everything is a pain.

Win7 and Vista come with UPnP ready enabled (I never had XP but it should do UPnP with latest SPs without any further messing since my father's has, Win2K didn't do UPnP). It needs to be enabled in your router too. Firewalls can block UPnP, but the Windows firewall should be set to cope with it out of box.

Pantsu-san
27-10-2009, 08:25
Pantsu-san was the concerned party. I thought I'd better squash that one quickly... :dunce:

ahem. oh dear :shocked:

Matty_
29-10-2009, 23:15
I have applied your batch file to windows 7 and it has seriously degraded my speed, could you by any chance do a batch file which reverts everything back to there original settings, someone might need it.
I have just restores from an image and my speed is back to how it should be/was. Use this on Windows 7 at your own risk and make sure you have an image/backup to restore to.
Not saying it doesn`t work on Vista or putting it down Andy, maybe it was something on my end.

I would say as feedback that webpages where taking at least 10 times longer to open (the page would hang for several seconds). I tried a"netsh int ip reset" but it didn`t help.
7 Home premium behind a router (UPnP disabled [Maybe this was the cause]) Comodo Internet Security/Sandboxie

buckleb
29-10-2009, 23:50
I see you've already reverted back Matty, but for anyone else, the defaults on my Windows 7 Professional install were as follows:

Receive-Side Scaling State : enabled
Chimney Offload State : automatic
NetDMA State : enabled
Direct Cache Acess (DCA) : disabled
Receive Window Auto-Tuning Level : normal
Add-On Congestion Control Provider : none
ECN Capability : disabled
RFC 1323 Timestamps : disabled



So the cmd file for reverting, in my case at least, would be as follows:

@echo off
echo Setting TCP/IP flags...
echo -----------------------
echo This only succeeds when run as an administrator,
echo when run as a user it only shows the current settings.
echo.
pause
echo.
netsh int tcp set global rss=enabled
netsh int tcp set global chimney=automatic
netsh int tcp set global netdma=enabled
netsh int tcp set global dca=disabled
netsh int tcp set global autotuninglevel=normal
netsh int tcp set global congestionprovider=none
netsh int tcp set global ecncapability=disabled
netsh int tcp set global timestamps=disabled
pause
cls
echo Current settings:
echo -----------------
netsh int tcp show global
pause

AndyCalling
30-10-2009, 00:36
If it gives you trouble, try isolating the setting that fails for you. It may be that your router is not ECN capable (but the test should have confirmed his). Basically, to revert you can adjust the settings to whatever suits.

If ECN is what causes the problems, you'll still want to change your congestion provider. Likewise the other way around.

If DCA is the issue I'd like to hear about it. This is a rather new area. It shouldn't affect anything unless your hardware supports it (I can find no check you can do for this and information is light). If it works with your hardware you should have data transfer between network card and CPU cache memory without passing through ram first. If not you should see no effect. If it causes trouble, it would be worth hearing about it.

So, feedback on what breaks your connection, and the type of connection you have (Virgin Cable or ADSL) plus any usual difficulties you have with it would be useful.

Basically, my settings are what one would want to achieve (DCA experiments not withstanding, rather new that setting) and if they can't be used it may be worth trying to find out why.

I'm also interested in hearing what happens if Comodo is switched off as I don't have that and it could be a factor.

Oh, and ta Buckleb for adding the original settings for those who didn't take note before applying any changes. Perhaps I should have thought to mention, such is second nature to me so I didn't think beyond providing a mechanism for checking.

Note that some things change these settings, such as my adding a Vodafone 3G stick as a backup. Installing the drivers turned on Timestamping, which might be handy for a specific 3G machine but really should be off for a normal home PC on ADSL or Cable as a main connection. Possibly it would be handy for a poor wireless connection, but I'd rather just improve the connection.

Oh, and Matty, what's your router?

Addition: Auto tuning level is usually best set to normal, but Windows can change this if it feels the network conditions warrant it. Vista tends to shift to Highly Restricted for this setting on occasion. I suspect due to boot up choices whilst things are getting it together and being dead laggy (such is a Vista boot). You need to check if your connection suddenly goes slow because this is often the issue, though some routers seem to cause it more than others. Win7 appears to be less judgemental, and I've not seen this over sensative behaviour from it so far. A nice improvment.

Ben B
30-10-2009, 00:42
Thanks so much for this, my downloads wirelessly shot up from 950kb/sec to 2.1mb/sec wirelessly! :)

buckleb
30-10-2009, 00:45
My connection does seem a little more stable, particularly when using my download manager.

My system had passed all of the online tests though (after I enabled uPNP on my router).

AndyCalling
30-10-2009, 03:46
ahem. oh dear :shocked:

Don't feel bad Pantsu. It can happen. I remember when one of the old BBC computer models was in design it was to have a rechargeable mobo battery. This was changed before release to a lithium cell, but they left the charging circuit in to save redesigning the mobo. They just deactivated it. It turned out that a piece of software released would, under certain circumstances, send the code to switch this back on. This was discovered because some owners triggered the recharge circuit in this manner and then found that a little while later their computer exploded. This came as a shock, I can tell you.

So, anything's possible. Still, if a Microsoft test was blowing up routers all over the world you can bet you would have heard about it on the news by now. :p:

Nice to hear the tweaks are working for some. I believe they should be right for most, so feel free to add feedback especially if any particular option is causing you trouble. I'm especially keen to hear from anyone who gets problems from turning on DCA.

Pantsu-san
30-10-2009, 16:07
Don't feel bad Pantsu.

Uhmm, I don't? I replied like I did as I was shocked (and included the 'shocked' smiley) that you actually believed me and thought I was being serious. You obviously have never seen me complaining about Netgear's WNR2000 a number of times on this forum and complaining of how it chokes when you go near it with any amount of traffic - hence my joke about it popping a capacitor and catching fire.

Actually, mine did catch fire, but that was helped by the petrol that I poured over it right after I bought a D-Link. THIS IS A JOKE, BY THE WAY (pointed out in case you believe me and report me to some authority for breaking a law)

Sorry if I confused you with my attempt of humour - It seemed so obvious to me that I was taking the ****. And I'm kinda amazed at how you thought I wasn't.

Matty_
30-10-2009, 16:52
I'm also interested in hearing what happens if Comodo is switched off as I don't have that and it could be a factor.

Oh, and Matty, what's your router?



I might give it another go with CIS installed and not, also play with the settings. Anyway the router is a d-link dir300 (nowt special but does for me) wireless is not turned on (all is hard wired) Upnp is off. Also in 7 DNS cache is turned off.
Allthough to be honest whenever i do a speed test it gives ~10MB which is what i am on, it`s just the upload speeed which is poor and that seems to be a Virgin cable thing...!

AndyCalling
01-11-2009, 02:22
Sorry if I confused you with my attempt of humour - It seemed so obvious to me that I was taking the ****. And I'm kinda amazed at how you thought I wasn't.

Ah, sorry for being so thick. I'm used so expecting such responses at work. There's always someone who wants to start alarm over some 'misunderstanding' or other. My astonishment threshold is really quite high now, sol end up taking the ridiculous seriously. :erm:

I've not been reading many posts about that router as I don't have it or a 50 meg connection. So I won't have seen your trials with the Netgear.

---------- Post added at 01:22 ---------- Previous post was at 01:11 ----------

I might give it another go with CIS installed and not, also play with the settings. Anyway the router is a d-link dir300 (nowt special but does for me) wireless is not turned on (all is hard wired) Upnp is off. Also in 7 DNS cache is turned off.
Allthough to be honest whenever i do a speed test it gives ~10MB which is what i am on, it`s just the upload speeed which is poor and that seems to be a Virgin cable thing...!

Good luck. It's always fun to experiment. Tell us how you get on. The more info the better. ;)

burninice
05-11-2009, 01:40
Dragon Age: Origins won't connect to EA online or profile (Doing for Google)

Alright well here is something strange. I've been running these tweaks for a couple of weeks. Playing World of Warcraft and a few other online games fine. I just got Dragon Age: Origins and I could not get it to connect online. I tried everything I could think of and went through my router, firewall etc. Tested each change. No luck. I ran the revert script here as a final try. Problem fixed.

Throughout the test I tried manually going to where the game tries to go which is https://profile.ea.com and I could not get there. I also tried pinging it and got varied results. Of either time outs or pinging correctly.

What caused this guys? I'm pretty sure my router supports ECN.....but not entirely sure. I'm using a Netcomm NB6PLUS4W with a Netgear WG111v3 Wireless Adapter on Win7.

Thanks.

AndyCalling
05-11-2009, 06:10
Yep, specifically it's the 'netsh int tcp set global ecncapability=enabled' that kills https://profile.ea.com for me. Never seen this with other web sites before. Clearly this shouldn't happen with ECN, so I'm enclined to blame the web site.

Anyone still running Vista that can see if it's working for them? If it works with Vista when ECN is on then it's probably Win7 at fault. If not, I suspect the web site/server is at fault.

UPDATE:

Looks like others on the net have found the same with this web site:

http://forums.steampowered.com/forums/showthread.php?t=1011770&page=2

It looks like the finger is certainly being pointed at the web site. If you have Dragon Age you'll have to turn off ECN and moan at EA until they fix their server. You can still use the other tweaks though, CTCP being worth while alone. You could even write a batch file to switch ECN off and on when needed for when you want to play that game.

This seems to be an isolated issue.

bomber_g
05-11-2009, 17:11
Addition: Auto tuning level is usually best set to normal, but Windows can change this if it feels the network conditions warrant it. Vista tends to shift to Highly Restricted for this setting on occasion. I suspect due to boot up choices whilst things are getting it together and being dead laggy (such is a Vista boot). You need to check if your connection suddenly goes slow because this is often the issue, though some routers seem to cause it more than others. Win7 appears to be less judgemental, and I've not seen this over sensative behaviour from it so far. A nice improvment.

Hi there, I know windows Vista automatically changes TCP window sizes and mtu sizes etc automatically to 'tune' the connection.

Do you have any idea how you can check it's current settings and switch things off on etc . I don't actually have Vista but I can see this as being a useful way of finding out a little bit about a machine I'm working with - and as I'm lazy, asking you will save me having to find out myself :p

AndyCalling
06-11-2009, 07:48
Firstly, Vista does auto tune RWIN but is dead twitchy and conservative, which is why it sometimes switches to 'Highly Restricted' for the session during boot or some minor glitch later on in the session and then won't switch back automatically with ease. It is for this reason that the occasional check with my script is very useful for Vista so you can switch back to 'Normal' if it goes quirky. Having a setting of 'Highly Restricted' will really slow you down, and this solves a lot of Vista speed complaints. It is a pain to baby sit, but the solution seems to be Windows 7 which has not done this to me yet at all.

The settings available for the auto tuning level are as follows:

disabled: Fix the receive window at its default value of 65536 bytes which you can't then change as far as I can tell except by choosing one of the following options.

highlyrestricted: Allow the receive window to grow beyond its default value, but do so very conservatively.

restricted: Allow the receive window to grow beyond its default value, but limit such growth in some scenarios.

normal: Allow the receive window to grow to accommodate almost all scenarios.

experimental: Allow the receive window to grow to accommodate extreme scenarios.
WARNING: This can dramatically degrade performance in common scenarios and should
only be used for research purposes.

Use the Tweak Test from the following site to guage the effects:

http://www.dslreports.com/tools

Have fun experimenting with that last setting :)~

bomber_g
06-11-2009, 10:13
is there a command that allows you to see current setting though?

Also are you positive their isn't a way to disable the Auto and then manually set things? I'm pretty sure I can do a better job of tweaking things than Vista :/

NickFie
20-11-2009, 06:07
Microsoft this week closed my IE performance support case - they told me about a not-yet-published RegEdit that allows IE8 to use the full extent of TCP autotuning.

Without the RegEdit, IE on Windows Vista or 7 limits windowsize to 256 KBytes. This cuts throughput in many high-bandwidth / high latency scenarios. At my employer our standard Windows XP tuning suite significantly out-performed IE on Vista or 7.

I now achieve sustained wire-speed HTTP data transfers in Windows 7 with the RegEdit, the Netsh commands here, up-to-date NIC drivers (from the NIC vendor's website) and aggressive settings within Advanced NIC properties.

Details and discussion:
[Info] IE8 Unleashed on Windows 7 - dslreports.com (http://www.dslreports.com/forum/r23356451-Info-IE8-Unleashed-on-Windows-7)

Definitely worth adding to your standard Windows 7 tuning.

---------- Post added 20-11-2009 at 00:07 ---------- Previous post was 19-11-2009 at 23:54 ----------

Just ran simple speed test using this site's tool. I have 25 Mbps home broadband, generally sustain slightly higher throughput. The test reported 23.91 Mbps and ping time is 97 msec. IE 8 advertised a 1.3 MByte receive window during that transfer. Would not have been possible without the new MS regedit.

mufaa
21-11-2009, 23:57
Hey, thanks for the tweak. One question: How do i know i have applied these settings? When i run the file normally and as administrator, the message inside the cmd box is the same, "This only succeeds when run as administrator..[blah]".

I have run it as administrator, and click continue till the cmd box disappeared. Have i applied the settings properly?

Pyr0
22-11-2009, 06:58
lol, i had been wondering why i could no longer sign in to ea nation in nfs shift
thanks for the tips :)

caph
22-11-2009, 15:28
For anyone wondering what the different settings are and wanting to experiment further, here's the latest official documentation:-

Netsh commands for Interface Transmission Control Protocol (http://technet.microsoft.com/en-us/library/cc731258(WS.10).aspx)

macutmore
14-06-2010, 12:04
Windows XP's default networking parameters were set more than 10 years ago (when XP was being designed). These default settings are certainly out of date for many high-speed setups today. Indeed Windows XP's networking was probably set for a 56k connection!

The solution is of course to tune XP's Internet settings. This usually involves modifying the registry to make RWIN settings more broadband friendly and there is free SpeedGuide TCP Optimisation software all over the internet that can help you determine the best Internet settings for a particular setup. Many sites offer free tools for testing and tweaking DSL and other broadband connection settings on XP systems.

Where some Web sites offer similar tune-ups for Win7's and Vista's networking. Don't bother! Win7 and Vista dynamically alter their networking settings by monitoring local conditions and speeds. (See the Microsoft Technet article on Win7's "Next generation TCP/IP architecture.") It's unlikely that you can tune Win7's or Vista's Internet settings any better than they tune themselves.

WINDOWS VISTA / 7 USERS: Vista TCP tuning (tweaking) is NOT advisable. The Vista / Win7 TCP stack does a reasonable job of tuning the receive window dynamically, there are no known registry tweaks that would optimize Vista or Win 7 better than its default configuration.

Chrysalis
14-06-2010, 16:00
you correct that XP's defaults are indeed more suitable for dialup.

The defaults only improve on XP if the lan connection is gigabit.

The main problem I have discovered with win7/vista auto tuning is it changes the window size in big chunks instead of small amounts at a time and of course it has no proper manual overide.

The autotuning works well enough on my VM 20mbit connection however on my adsl which can now only manage about 3-4mbit throughput it doesnt increase the tcp window beyond the non scaling enough. Still a big improvement over XP defaults tho.

To say no tuning is advised tho I am not so sure. A known tweak that is a positive the majority of the time is to enable CTCP congestion provider which makes it deal with things like congestion and packet loss much better. Also makes it burst up better to faster speeds on fast lan's. Some routers are unable to handle autotuning in which case a 2nd tweak is to disable autotuning which will also disable tcp scaling and force it to a permanent rwin of around 64k depending on the mss value.

macutmore
14-06-2010, 17:36
May well be the case. In my experience most difficulty arises usually in marrying suitable router settings, and many early routers have now had certain firmware updates that have not just been security related.

I have found that some isps don't use 1500 as an MTU setting for example, thus requiring not just the router to be set to say 1432 if specified, but also the pc's MTU setting also.

As you say, the autotuning usually works well, which is the reason that it may be hard to do any better by manual tweak anyway.

mjpartyboy
15-06-2010, 10:01
If all is OK, next make a batch file in Notepad from the following by cut & pasting. Call it something like 'TCPIPSet.cmd' making sure you get the extention right

Where does this file write these settings? To the registry?

How would you undo them if you needed to?

NickFie
19-06-2010, 05:21
Where does this file write these settings? To the registry?

How would you undo them if you needed to?

Save the file as type .reg (registry). The settings are written to the registry. When you double-click the file (open it) the entries are merged into the registry.

If you want to remove the changes, delete the registry entries that the .reg file added.

AndyCalling
19-06-2010, 22:21
These are not registry tweaks and should not be changed there. For God sake, don't turn this in to a .reg file! These are command line tcpip settings. I am on a mobile phone right now, but the instruction to view your current settings will work in non-admin mode and you can always view your initial settings with this before you change anything. The instructions can easily be reversed. By the way, some games and sites (mostly EA stuff, poss. only EA stuff) will need ECN disabled temporarily to work).

NickFie
20-06-2010, 05:05
These are not registry tweaks and should not be changed there. For God sake, don't turn this in to a .reg file! These are command line tcpip settings. I am on a mobile phone right now, but the instruction to view your current settings will work in non-admin mode and you can always view your initial settings with this before you change anything. The instructions can easily be reversed. By the way, some games and sites (mostly EA stuff, poss. only EA stuff) will need ECN disabled temporarily to work).

My apologies. Read too quickly, posted too quickly. Glad you caught it.

---------- Post added at 22:52 ---------- Previous post was at 22:43 ----------

..Where some Web sites offer similar tune-ups for Win7's and Vista's networking. Don't bother! Win7 and Vista dynamically alter their networking settings by monitoring local conditions and speeds. (See the Microsoft Technet article on Win7's "Next generation TCP/IP architecture.") It's unlikely that you can tune Win7's or Vista's Internet settings any better than they tune themselves.

WINDOWS VISTA / 7 USERS: Vista TCP tuning (tweaking) is NOT advisable. The Vista / Win7 TCP stack does a reasonable job of tuning the receive window dynamically, there are no known registry tweaks that would optimize Vista or Win 7 better than its default configuration.

http://support.microsoft.com/kb/947239 I assume MS knows what they're doing, they document the RegEdit to allow IE, Windows Update, Outlook to use the full scope of TCP Autotuning. The text includes W7 information, even if the title and browser check deal only with Vista.

BTW - Mac OS X Snow Leopard also has browser speed limit. It's 512 KByte windowsize, so it's twice as fast as W7 or Vista.

---------- Post added at 23:05 ---------- Previous post was at 22:52 ----------

...This should give you the best speeds your connection will allow. Use it to check your settings from time to time to make sure nothing's knocked them out of whack.

Please also pay attention to the NIC for best speed and reliability. Some of the TCP interface settings rely on collaboration between OS TCP stack and the NIC's own processor.

1. Go to the NIC vendor's website. Find, download & install the most current driver. There's still a lot of fixing & fine-tuning for W7 drivers. For example in early 2009 we found TCP throughput on our servers improved about 30% in tests when we updated to a more-current set of Broadcom drivers.

2. Review the NIC settings, typically an "Advanced" tab with the Driver info. Make sure all the assists are turned on. If you have 4 GByte memory or higher, double the number of "descriptors" or buffers for incoming & outgoing traffic.

AndyCalling
20-06-2010, 21:51
Yes, use the latest NIC drivers (but not the rubbish network manager software that NVIDIA lan drivers might offer). Check out the info on the net regarding any NIC settings for your brand of NIC, they can be very different.

Nice reg. tweak find on that MS page.

So, to update, after testing your system with the following link:

http://www.microsoft.com/windows/using/tools/igd/default.mspx

For Win7 the following are my suggested files, save each as a text file with the names suggested:

TCPIPSet.cmd
@echo off
echo Setting TCP/IP flags...
echo -----------------------
echo This only succeeds when run as an administrator,
echo when run as a user it only shows the current settings.
echo.
pause
echo.
netsh int tcp set global rss=enabled
netsh int tcp set global chimney=automatic
netsh int tcp set global netdma=enabled
netsh int tcp set global dca=enabled
netsh int tcp set global autotuninglevel=normal
netsh int tcp set global congestionprovider=ctcp
netsh int tcp set global ecncapability=enabled
netsh int tcp set global timestamps=disabled
pause
cls
echo Current settings:
echo -----------------
netsh int tcp show global
pause

ECN.cmd
@echo off
set /p choice="Allow ECN? [y/n] >"
if '%choice%'=='y' (netsh int tcp set global ecncapability=enabled) else netsh int tcp set global ecncapability=disabled
netsh int tcp show global
pause


TCPIP RWIN HTTP.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Internet Settings\WinHttp]
"TcpAutotuning"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Internet Settings]
"TcpAutotuning"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ Windows\CurrentVersion\Internet Settings]
"TcpAutotuning"=dword:00000001


ECN.cmd can be used as a switch when dealing with Electronic Arts games and web sites. I've not found it necessary to switch ECN off for anything else yet. Note than the new reg file needs a PC reset after being applied to kick in. Also, ignore any inline spaces in the reg file when transcribing (though keep the blank lines), this forum seems to be going a little weird and has stuck these in 'Current' and before 'Windows' for no good reason.

Croftie
02-07-2012, 03:49
Hi Andy, are these still the recommended settings? I have XP tweaked and working well on a high speed wired connection but now have a W7 PC to optimise for wireless. Cheers.

AndyCalling
02-07-2012, 21:05
Hi Andy, are these still the recommended settings? I have XP tweaked and working well on a high speed wired connection but now have a W7 PC to optimise for wireless. Cheers.

Hiya. Well, things have moved on a bit (this is an old thread).

These days, whether you are using WinXP, Vista or 7, you can download 'TCP Optimizer' from here:

http://www.speedguide.net/downloads.php

The settings should largely be the same as I have recommended before but this is a little more user friendly and has even more things to tweak. For Win 7 I have used the 'optimal' settings except I have set 'ECN Capability' to enabled (which is fine for most people's hardware and causes no issue with EA's web site or games any more). You can still use my test link to check your PC's ECN capability.

Note that ECN is not available for WinXP. Also, this is not about 'optimizing for wireless'. This is about getting the best TCP/IP transfer speeds which will affect both your wired and wireless connections. A poor wireless configuration can still cause issue beyond TCP/IP configuration.

For your wireless settings, scan the area for other wlans using the free utility 'Inssider' on your wireless PC. Set your router to use the best channel you can find (not 'Auto'). Also, make sure your router is set to only use WPA2 with AES encryption for your wireless. Due to the standards, AES must be supported in hardware, which means your laptop's wlan card will do all the encrypting PC side. If you end up using TKIP encryption then it may well (read 'almost certainly') be done on your laptop's CPU in software. May as well offload where you can.