CyberNotes
Tutorial Thursday




Speed LimitWhen Microsoft released Windows XP SP2, (as well Vista) they imposed a connection limitation on the operating system. It’s not something that you can readily notice without digging to see if it occurs, but the chances are good that your computer has hit this limit at some time or another.

–What is the Limitation?–

Microsoft put it in place to prevent spammers, viruses, malware, and malicious applications from being able to use your computer as a hub to quickly replicate itself across networks. It also keeps your computer from being able to start a DDoS (distributed denial of service) attack which could single handedly destroy the Internet as we know it.

In Windows XP Pro SP2, your computer is allowed 10 concurrent connections per second, while the Home edition is limited to just 5 connections. In XP Pro if you try to load up more than 10 websites at the same time, for example, you will more than likely hit the limit which means some of your requests will get queued. Windows Vista Basic is even more restrictive with a limitation of just 2 concurrent connections per second, while Vista Ultimate peeks at 25 connections.

This is something that will slow down your file sharing applications, such as uTorrent and Azureus, since they prosper the most out of having a large number of connections to work with. Before this limitation had come about in XP SP2, there were over 65,000 connections allowed at a single time. I’ll admit that 65,000 may be a little over the edge, but limiting someone to 2 concurrent connections is equally insane.

–Recognize the Problem (Event ID 4226)–

You can quickly tell if you’ve had this problem by opening up the built-in Windows Event Viewer (opening in XP/opening in Vista). There you’ll be looking for a warning with the Event ID 4226, and the description will say:

TCP/IP has reached the security limit imposed on the number of concurrent TCP connect attempts.

If you see that then you’ve hit the limit on the number of connections you can have per second. When I pulled up my Event Viewer I ran a filter on that particular Event ID, and came up with 36 results which all appear to have happened when doing BitTorrent downloads:

Vista Event Viewer TCPIP Maximum Connections Reached

I’m also running Vista Ultimate which allows for the most connections per second out of all the different versions, and as you can see I still had the warnings. So we’ve identified that the problem exists…now let’s fix it!

–Patching the TCPIP.sys File–

TCPIP.sys Patch for Vista Connection LimitationFixing the problem is actually extremely easy thanks to a few people that have done some hard work putting patches together:

  • Windows XP: Get the patch (Download Mirror) and run EvID4226Patch.exe. This increases the number of simultaneous connections to 50 which is much more reasonable.
  • Windows Vista: Get the patch (Download Mirror) and run InstallPatch32.bat for 32-bit versions of Vista and InstallPatch64.bat for 64-bit versions of Vista. If for some reason things aren’t working right you can uninstall the patch by running UndoPatch.bat. This will increase the number of connections allowed to 500.

–Overview–

Now you know how to patch the TCPIP.sys file so that the number of connections isn’t nearly as restrictive as Microsoft thinks it should be. I understand that it is limiting the spread of viruses, and could quite possibly save the world, but I like to make sure that my downloads go as fast as they can. :)