Pages: [1] 2
Print
Author Topic: Steps to reduce latency in Windows 7  (Read 1275 times)
Omegaman
I <3 Chompers.


Posts: 1791
6870.00g

View Inventory
Send Money to Omegaman

It will!


View Profile
« on: February 09, 2010, 12:42:26 PM »

I'm copy and pasting parts/confirming from other forums for this list for helping to reduce latency (esp during gaming).  I figured since most people are getting new computers or are upgrading, will probably be using Windows 7 at this point.  I hope this helps, and post feedback of your problems and successes.

I've highlighted critical information that must be *exact* in orange color.


#1 -- Enabling Compound TCP in Windows 7

Open a command prompt with admin rights. To do so, go to the following location:
Start Menu -> All Programs -> Accessories
And then right-click on Command Prompt and select "Run as Administrator". If you have disabled the UAC, then you can just open it normally.

Either type, or copy and paste, the following into the command prompt, and then press 'Enter' on your keyboard:
netsh int tcp set global congestionprovider=ctcp

This turns on Compound TCP, which increases the TCP window much quicker than the traditional TCP algorithms allow for. This means that when a sudden burst of larger packets comes in, or goes out, Windows adjusts its settings faster than normal to compensate for it, allow for faster data transfer on broadband connections and lower latency while gaming.

Warning: I highly recommend that you create a System Restore point before proceeding with the next three steps.  Not that these changes are experimental, but helps to prevent problems if you happen to enter values or make changes incorrectly, at least you have an "undo button" with a fresh restore point.


#2 -- Enabling Compound TCP in Windows 7

Many of you have seen this before because it's been posted on numerous forums but here's it is if you missed it.

Click the 'Start' button, type regedit in the search field, and press 'Enter' on your keyboard. If you don't know how to edit the registry, then you may want to take a look at this article.

Navigate to the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces


When you click to expand 'Interfaces', you will see one or more subkeys with long names that looks like the following screenshot:

You will need to know what IP address your computer has on your local network (not on the Internet), and then find the subkey under 'Interfaces' that has the correct IP address. If you don't know how to find out the IP address on your local network, then check out this tutorial. In most cases only one of the subkeys will have all of the information, so it should be easy to find even if you get confused.

Once you find it, you need to add two registry values to it. They are both 32-bit DWORD values. They are as follows:
TcpAckFrequency
TCPNoDelay


After adding both of those, double-click on each one, and give them both a hexadecimal value of 1.

Without getting too technical, forcing these values to 1 (they are defaulted to higher values) should greatly reduce your latency, esp. when playing games.  You can read more information about this entry here.


#3a -- Enabling Microsoft Messaging Queue (MSMQ) Server in Windows 7

Click on 'Start', click on "Control Panel", click on 'Programs' in the lower-left, and then click on "Turn Windows features on or off" under the "Programs and Features" section. You will want to expand "Microsoft Messaging Queue (MSMQ) Server" by clicking the little plus to it's left, and then expand "Microsoft Messaging Queue (MSMQ) Server Core" as well. After doing that, click all of the checkboxes under the "Microsoft Messaging Queue (MSMQ) Server" section.  Then click "OK" and they will install.  This will take a few minutes, so just be patient.

The Microsoft Messaging Queue Server is a feature developed I believe in Windows 2003 and is implemented in Windows 7.  You can read more about this service in this link.


#3b -- Adding registry value for MSMQ Server in Windows 7

If you closed regedit earlier, you will need to open it back up for this step.

Navigate to the following key in regedit:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters

All we need to do here is add TCPNoDelay to the 'Parameters' key, with a 32-bit DWORD value of 1. This will work pretty much the same way that it did before.


#4 -- Disable TCP/IP Autotuning in Windows 7

To disable TCP/IP autotuning, open a command prompt with admin rights. To do so, go to the following location:
Start Menu -> All Programs -> Accessories
And then right-click on Command Prompt and select "Run as Administrator". If you have disabled the UAC, then you can just open it normally.  You will then need to type the following:

netsh interface tcp set global autotuning=disabled

To verify that it is disabled:

netsh interface tcp show global

To set back to the default Windows 7 behavior:

netsh interface tcp set global autotuning=normal

Some networking devices, such as SPI firewalls, some NAT routers, VPN endpoints, WiFi devices have problems with the way Windows 7 resizes the TCP Window. Possible symptoms include: web traffic ok, email timeouts on receiving only, slow or no network file server access, random network timeouts or connectivity problems, freezing or slow web browsing or VPN connections.

Note that disabling TCP Window autotuning limits the TCP Window to 65535, which may not be adequate for faster broadband internet connections.


Note to Windows Vista Users:  Realize that Windows 7 is a polished version of Window's Vista.  If you are using Window's Vista, many if not all of these tweaks should work, but don't come hunt me down if you try them in Vista and they don't work.  You should double check to ensure these are valid in Windows Vista.
 
How do you know if any of these worked?  Well of course you could log into your game and see if the numbers have dropped, but players get different latency in game at different times and under different conditions.  I'd highly suggest running a series of latency tests in between tweaks to see if you notice any improvement in both the jitter, packet loss, and the raw avg. ping times.

Go to Pingtest.net to run the tests.  You can link them like this:


DON'T FORGET YOU MUST RESTART YOUR WINDOWS (computer) FOR THESE SETTINGS TO TAKE EFFECT.

« Last Edit: February 25, 2010, 01:33:06 PM by Omegaman » Logged

snarky - adj. A witty mannerism, personality, or behavior that is a combination of sarcasm and cynicism. Usually accepted as a complimentary term. Snark is sometimes mistaken for a snotty or arrogant attitude.
Nazgrax
Puppetmaster
Guild Member


Posts: 1192
5383.00g

View Inventory
Send Money to Nazgrax

Herald of the AFK


View Profile
« Reply #1 on: February 09, 2010, 12:51:33 PM »

Step 1: Visit http://www.apple.com/
Step 2: Order new computer
Step 3: Huh?
Step 4: Profit

Edit; (I love you mega - Fuck that 3 "?" icon.)
Logged

My vehicle interior is constructed from a crosswork of reptilian origin, and although manufactured by Chevrolet it is of such ridiculous size as to best be compared to a cinema.
Skuld
Skuldamus Prime


Posts: 239
101.00g

View Inventory
Send Money to Skuld

meow. =^.^=


View Profile WWW
« Reply #2 on: February 09, 2010, 05:14:23 PM »

Borrowing this and giving credit for it. =^.^=
Logged

You have been meowed.
FizzyMyNizzy
« Reply #3 on: February 11, 2010, 06:10:21 AM »



this is what i get.. but i didn't do any tweaks.

Logged
Windstrom
Da Bears
Casual Coordinator


Posts: 2137
850.00g

View Inventory
Send Money to Windstrom


View Profile
« Reply #4 on: February 14, 2010, 11:07:07 AM »

Logged

Windstrom threw a Battle Rez while tanking the Lich King last Friday. I don't mean like "While the OT taunted off him", I mean he battle rez'd the OT in between getting hit by Frostmourne. As fun as it was to watch, I don't know that I'd want him to do that again. -Furball
Oddjob
Troll Extraordinaire
Guild Member


Posts: 1007
2401.00g

View Inventory
Send Money to Oddjob

Pie>Cake


View Profile WWW
« Reply #5 on: February 14, 2010, 02:21:05 PM »




no tweaks
Logged

Falaenx
Frumptious
Guild Member


Posts: 2059
22331.00g

View Inventory
Send Money to Falaenx

Pedofal


View Profile
« Reply #6 on: March 23, 2010, 10:45:24 AM »



Been trying to troubleshoot the disconnects I have where my computer will drop the net and I have restart the network interface.  The above pingtest was after the tweaks.  It seems to do it during online games such as SC2 flooding my system or CODMW2
Logged

Omegaman
I <3 Chompers.


Posts: 1791
6870.00g

View Inventory
Send Money to Omegaman

It will!


View Profile
« Reply #7 on: March 23, 2010, 11:12:26 AM »



Been trying to troubleshoot the disconnects I have where my computer will drop the net and I have restart the network interface.  The above pingtest was after the tweaks.  It seems to do it during online games such as SC2 flooding my system or CODMW2

How old is your router?  Is it properly configured? -- meaning I think you have roommates whom I assume are using the same bandwidth -- is there a threshold where they are using X bandwidth and when you try to use above the remaining Y bandwidth, you get disconnected.  Your ping test would imply that there isn't a problem going from your router to your ISP and back.  Additionally if you applied the above tweaks properly, it *shouldn't* be an issue with the OS managing your network.  The only thing left is the router.  Now I noticed you have Comcast and I've went down that road before.  Comcast is *terrible* at distributing it's bandwidth into neighborhoods--many times spreading numerous accounts over a small amount of bandwidth where maximum bandwidth usage between all accounts simultaneously on a single node will certainly deny some or all of the requests if not causing you to lose your connection completely.
Logged

snarky - adj. A witty mannerism, personality, or behavior that is a combination of sarcasm and cynicism. Usually accepted as a complimentary term. Snark is sometimes mistaken for a snotty or arrogant attitude.
Dleri
Just another one of dem deeeeee kaayszzzzzz
Guild Member


Posts: 398
1656.00g

View Inventory
Send Money to Dleri


View Profile
« Reply #8 on: March 23, 2010, 11:17:51 AM »



Didnt tweak anything and i usually only have one d/c at the same time for the entire week and then that d/c changes each week lol
Logged

I just dunnn givee a fuckkkkkkkk
Falaenx
Frumptious
Guild Member


Posts: 2059
22331.00g

View Inventory
Send Money to Falaenx

Pedofal


View Profile
« Reply #9 on: March 23, 2010, 11:52:50 AM »



Been trying to troubleshoot the disconnects I have where my computer will drop the net and I have restart the network interface.  The above pingtest was after the tweaks.  It seems to do it during online games such as SC2 flooding my system or CODMW2

How old is your router?  Is it properly configured? -- meaning I think you have roommates whom I assume are using the same bandwidth -- is there a threshold where they are using X bandwidth and when you try to use above the remaining Y bandwidth, you get disconnected.  Your ping test would imply that there isn't a problem going from your router to your ISP and back.  Additionally if you applied the above tweaks properly, it *shouldn't* be an issue with the OS managing your network.  The only thing left is the router.  Now I noticed you have Comcast and I've went down that road before.  Comcast is *terrible* at distributing it's bandwidth into neighborhoods--many times spreading numerous accounts over a small amount of bandwidth where maximum bandwidth usage between all accounts simultaneously on a single node will certainly deny some or all of the requests if not causing you to lose your connection completely.

I use an Apple Time Capsule so that puts it about 1.5 years old.  I have tweaks on it though so that when I am raiding all other connections to things in my house are shutdown and I get the sole connection.  here's my speedtest as well.

« Last Edit: March 23, 2010, 11:56:27 AM by Falaenx » Logged

Omegaman
I <3 Chompers.


Posts: 1791
6870.00g

View Inventory
Send Money to Omegaman

It will!


View Profile
« Reply #10 on: March 23, 2010, 12:59:20 PM »

Wow, I wish I had a T3 coming into my house too >.>
Can you set it up for SC2? I think SC2 uses a different port.

I just looked it up, it looks like it's 6112.  You might want to add that to your DMZ or Port Forwarding/Port Triggering etc. however you have it set up.
Logged

snarky - adj. A witty mannerism, personality, or behavior that is a combination of sarcasm and cynicism. Usually accepted as a complimentary term. Snark is sometimes mistaken for a snotty or arrogant attitude.
Skuld
Skuldamus Prime


Posts: 239
101.00g

View Inventory
Send Money to Skuld

meow. =^.^=


View Profile WWW
« Reply #11 on: March 23, 2010, 01:32:33 PM »



Giggle.
Logged

You have been meowed.
Omegaman
I <3 Chompers.


Posts: 1791
6870.00g

View Inventory
Send Money to Omegaman

It will!


View Profile
« Reply #12 on: March 23, 2010, 02:28:54 PM »



Giggle.

You must be only 1 of 3 people accessing the internet in Maine, atm.
Logged

snarky - adj. A witty mannerism, personality, or behavior that is a combination of sarcasm and cynicism. Usually accepted as a complimentary term. Snark is sometimes mistaken for a snotty or arrogant attitude.
Skuld
Skuldamus Prime


Posts: 239
101.00g

View Inventory
Send Money to Skuld

meow. =^.^=


View Profile WWW
« Reply #13 on: March 23, 2010, 02:47:54 PM »

Give me starcraft 2!
Logged

You have been meowed.
MaximusDeath
Guild Member


Posts: 335
1748.00g

View Inventory
Send Money to MaximusDeath

View Profile
« Reply #14 on: March 25, 2010, 08:10:53 AM »

wow at my work

Logged
Pages: [1] 2
Print
Jump to: