Help - Search - Members - Calendar
Full Version: Speeding Up Bittorrent
Darkside_RG > Technical Discussions > Guides/How To > Torrents
TSKILL
This is almost the same as This...
just that this one is only 3 Steps...srry if this is dupe post.Not sure. cray.gif

This is like a more detailed version of steviweavi's post.
----------------------------------------------------------------------------------------------------------------------
Bittorrent can be fun, as long as you get decent speeds. Not satisfied with your current speeds? These suggestions might help to optimize your download pleasure

----------------------------------------------------------------------------------------------------------------------
1. Hack the max half-open TCP connections

If you’re on XP sp2, your TCP connections are limited to a maximum of 10. This might hurt your downloading speed because it wont let you connect to as much peers as you want. It is supposed to slow down viruses because their spreading strategy is to connect to a high amount of ip numbers, but it could cripple your torrent downloads.

A nice way to fix this is to download this patch (mirror).

Note: Some people report that their antivir reports the patch to be a Virus, This is not the case. Check out http://www.lvllord.de/ for more details on this

The patch allows you to set the maximum allowed connections to any number you want. Any number between 50 and 100 is ok (more is NOT always better).

Next you need to configure your torrent client to allow 50-100 max half-open TCP connections

µTorrent: Options > Preferences > Advanced options > net.max_halfopen



Bitcomet: Options > Preferences > Connection > max half-open TCP



Now you’re ready to go…

A third point of interest is that some “windows updates” revert your tweaked tcp connections back to 10. So it’s wise to check this every now and then. You can check this by going to (in windows xp) Start > Control Panel > Administrative Tools > Event Viewer > System… Look for event 4226 (sort by event).



If there are a lot of daily occurences it’s likely that the max amount of half-open tcp connections was set back to 10. Or you’re infected with some nasty spyware…
--------------------------------------------------------------------------------------------------------------------------
2. Torrent Client Configuration

In order to apply these tips you need to know your maximum up- and download speed. You can test your bandwidth over here (stop all download activity while testing). Also make sure that you applied the tips provided in our previous posts.

Note that there’s a difference between kb/s (kilobits/second) and kB/s (kilobytes/second). To be precise, kB/s = kb/s divided by 8. In this tutorial we use kB/s (like most torrent clients do). This means that you might need to calculate your max speed in kB/s yourself if the speedtest only gives you the results in kb\s (so divide by 8 then).

Settings 1-4 can be found in the options, settings or preference tab of most torrent clients.

1. Maximum upload speed

Probably the most important setting there is. Your connection is (sort of) like a pipeline, if you use you maximum upload speed there’s not enough space left for the files you are downloading. So you have to cap your upload speed.

Use the following formula to determine your optimal upload speed…

CODE
80% of your maximum upload speed


so if your maximum upload speed is 40 kB/s, the optimal upload rate is 32kB/s

But keep seeding!

2. Maximum download speed

Although setting your maximum download speed to unlimited may sound interesting, in reality it will only hurt your connection. If you still want to be able to browse properly, set your maximum download speed to:

CODE
95% of your maximum download speed


so if your maximum download speed is 400 kB/s, the optimal download speed is 380kB/s

3. Maximum connected peers per torrent

Yet another setting that you don’t want to max out. I experimented quite a lot with the max connected peers settings and came to the conclusion that both high and low number hurt the download speed of a torrent. The following setting worked best for me.

CODE
upload speed * 1.3


so if your maximum upload speed is 40 kB/s, the optimal amount of connected peers per torrent is

CODE
40 * 1.3 = 52


I didn’t noticed a difference for fast or slow connections here.

4. Maximum upload slots

CODE
1 + (upload speed / 6)


so if your maximum upload speed is 30 kB/s, the optimal number of upload slots is

CODE
1 + (30 / 6) = 6


3. More Tips

Check seeds and peers
A simple tip, but very important. Always look for torrents with the best seed/peer ratio. The more seeds (compared to peers) the better (in general). So 50 seeds and 50 peers is better than 500 seeds and 1000 peers. So, be selective.

Change the default port.
By default, bittorrent uses a port 6881-6999. Bittorrent generates a lot traffic (1/3), so isp’s like to limit the connection offered on the these ports. So, you should change these to another range. Good clients allow you to do this, just choose anything you like. If you’re behind a router, make sure you have your ports forwarded (portforward.com) or UPnP enabled.

Disable Windows Firewall
It sucks. Windows Firewall hates P2P and often leads a life of it’s own. So disable it and get yourself a decent (free) firewall, Kerio or Zone Alarm for example.

Turn on Encryption
Encrypting your torrents will prevent throttling ISP’s from limiting your bittorrent traffic. Check out how to enable encryption in Azureus, µtorrent, and Bitcomet, the three most popular torrent clients.

Optimize your internet connection
The TCP optimizer is a freeware utility that optimizes your internet connection. I found it very useful and it helped speeding up my connection for regular internet activity and for downloading torrents. Just download it, and move the slidebar to your maximum download rate (note that it’s in kb/s). Don’t try to set it higher because that will hurt your download speeds!

Last but not least… Buy a faster connection…

Happy Torrenting!

Got it off this site : Here
Legion
nice thread tskill used and and feel so much better my settings were way off, thanks for spending the time to put it in here. a013.gif
TSKILL
welcome biggrin.gif

do you know vertigo173 from demonoid??

if you dont know him...ask him some stuff bout this..he knows a lot!
Raggy
Nice tutorial a013.gif
I guess there are things I can still learn about my bitclient.
And yeah....vertigo is the man drinks.gif
TSKILL
thanks m8.
jonmarlow
thanks, nice guide
JC GoF
Verry Nice drinks.gif worked great clapping.gif seeding at much higher rates now yahoo.gif
zwemg
As you said, some report this patch to be a virus. Well Im getting that messege. My computer, or rather AVG internet security is telling me it spyware, ok so what now. Ive tried executing the patch while all anti virus software is closed however I get the same error messege.

Any ideas on how to get pass this?
Thanks
Sp4
xp-AntiSpy has the ability to change the settings without setting off AVG's monitors. its in the special tab and then connections

Google finds it
hondro
QUOTE (zwemg @ Mar 30 2007, 05:19 PM) *
As you said, some report this patch to be a virus. Well Im getting that messege. My computer, or rather AVG internet security is telling me it spyware, ok so what now. Ive tried executing the patch while all anti virus software is closed however I get the same error messege.

Any ideas on how to get pass this?
Thanks

i had the same problem im using avg antispyware as well... i just extracted the files and then it let me run the exe file.
Savage
For those nervous about the whole backdoor issue with that patch

QUOTE
Edit tcpip.sys manually to remove the TCP/IP socket creation limit

Another option, for the more adventurous is to modify your tcpip.sys file manually, using a hex editor. The following instructions refer to the final release of XP SP2, with a tcpip.sys file of exactly 359,040 bytes, CRC-32 is 8042A9FB, and MD5 is 9F4B36614A0FC234525BA224957DE55C. Even thouh there might be multiple tcpip.sys files in your system, make sure to work with the one in c:\windows\system32\drives\ directory.

To remove the tcpip.sys socket creation limit:
- Backup your original tcpip.sys file before editing please, this is somewhat important !
- In your hex editor, go to offset 4F322 hex (or 324386 decimal).
- Change 0a 00 00 00 to 00 00 0a 00

All done ! The above change does not require editing of the CRC in offset 130 hex (thanks for the clever solution Thomas Wolf Tompkins).

Notes:
If any of the data above does not match exactly (crc, file size, md5, or the data at offset 4F322) please double-check what you are doing, or abort completely.

The above information increases the RATE of opening outgoing connections. It has nothing to do with the limit of 10 connections to network shares on a Windows workstation PC for sharing files (a MS imposed limit to force you to upgrade to a server version of the OS). This 10 connections to network shares limit was introduced with NT4 workstation (SP3), and exists in Windows 2k workstation, and Windows XP home/pro/mc. It only applies to authenticated windows services, such as file and print sharing.
skaffaboy
thanks! it works great for me
derrenbroon
Sweet Guide,

Just got a wireless router, now getting much better speeds from virgin's apparently 20M BB.
I created a static ip and a port forward which were easier than I thought using openDNS as DNS.
Way better stability so far and seeding capability.

Many thanks. DB.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.