Optimize Your BitTorrent Download Speed

Written by Ernesto on June 26, 2006

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.

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

uTorrent: Options > Preferences > Advanced options > net.max_halfopen

tcputorrent

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

tcpbitcomet

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).

event

For more details about Windows XP SP2 and Event ID 4226 read David Kaspar’s excellent post

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…

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:

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.

upload speed * 1.3

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

40 * 1.3 = 52

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

4. Maximum upload slots

1 + (upload speed / 6)

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

1 + (30 / 6) = 6

relakks pricacy vpn anonymous internet

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, uTorrent, 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!

(this post is a compilation of previous “speed up” posts)

If you don't like torrents try MP3 Fiesta. They hold nearly 67,000 albums from nearly 17,000 artists. Prices are around the $0.10 mark for single tracks with full albums coming in at roughly $1.00. Tracks are available from 192kbps and they take major credit cards and PayPal

Previously: Sealand on Fire

Next: Pirates On The Loose

276 Responses (Add yours or TrackBack)

Pages: « 12 3 4 5 6 7 [8] 9 10 11 12 » Show All

176 Sep 25, 2007 at 02:57 by phylwx

This was really helpfull!

Thanks a lot!

177 Oct 10, 2007 at 22:05 by srbh

hi,
i was downloadin a movie but had to uninsatll the torrent due to some reason…
now how to add the torrent agian n start downloa from where it left…..

178 Oct 13, 2007 at 10:31 by jule

that patch program is a virus. it deleted my system volume information -.-

179 Oct 14, 2007 at 05:00 by Michael

This patch is destructive to a virus called Win32/XP or Win32/Vista. It wipes it out then downloads an Operating System such a Ubuntu. It installs that.

180 Oct 16, 2007 at 17:25 by Nipunfernando

This is very useful to me
thanks i will send it to
my friends also!

181 Oct 21, 2007 at 22:52 by DAVE

This info is really great. It got my download speeds from around 67 kB/s to almost 200 kB/s Thanks for putting all of this together.

182 Oct 25, 2007 at 04:46 by Royce Dubois

Thanks a ton man. I had known of torrents for a long time and had never gotten around to using one because:

1. Nothing ever seemed to download for me and it all seemed confusing.

2. Limewire, Kazaa, etc. always had what I needed, regardless of the fact that I spent more time fighting viruses when I used them than having fun.

Thanks a ton man, you really got me moving now and I actually understand all of this now.

183 Oct 25, 2007 at 06:15 by Brenden

I followed everything and it worked GREAT… except that TCP optimizer.. just made everything slow again… how can i undo what it did?

184 Nov 04, 2007 at 01:20 by Alex

I love you. you tripled my speeds. But i still see peers d/ling at 300-500 kBps… Y?

185 Nov 04, 2007 at 06:13 by Arniceous

after runiing XP antispy and patching with evid4226 I lost my network and now xp cant creat a network with the wizard, system restore will not allow me to go back to an earlyer restore point as well. but my torrents are downloading through Utorrent much fast now. We may have to buy a wireless printer now for lappy to be able to print :( any ideas?

186 Nov 17, 2007 at 12:23 by Drgon

Hello I must say great info here I just have one question.
I use Bitcomet 0.96 . How do I go about Changeing the default port? I know my isp has ports for p2p all most crushed closed (know one of there people). I thank you for the time you have taken to give us this info, and hope I get a fast reply.

Drgon

187 Nov 18, 2007 at 09:57 by Andrius

thank you for a great tips! it really work`s!

188 Nov 24, 2007 at 03:18 by Sana

Awesome article. I learned a few things from reading it.

<3

189 Nov 24, 2007 at 06:39 by Anonymous

great article thats sure thing however best solution to dload torrents faster is simply be a member of a good private tracker where ppl take care of the ratio they have and rather seed than just lech…

190 Nov 26, 2007 at 19:14 by click

marital snorkel Judas referentiality translated .

191 Nov 29, 2007 at 23:59 by Drugrunner

I’m not particularly fond of jews.

192 Nov 30, 2007 at 12:50 by cinome

I read the whole thing. I will try and see what happens. Thank you to all those of you who know about the subject and want to positively help–especially those who have a benign spirit.

193 Dec 01, 2007 at 03:05 by M

I followed the instructions partically and noticed a jump from around 70kB/s to 150kB/s. I later finished the remainder of instructions and utorrent required me to restart the program.
It restarted with slower download speeds (30kB/s or so) and higher upload speeds (80kB/s or so).
15 minutes in and the speeds started changing.
I am now downloading varying between 200kB/s and 300kB/s and uploading at 50kB/s.
Those of you who are complaining about speeds… give it time.
I’d still like to sneak closer to my prime 400kB/s.
Every so often I’ll download a file at + 800kB/s.. or more usually multiple files totalling around 800kB/s.

Any ideas how to get THESE speeds from utorrent?

194 Dec 01, 2007 at 17:46 by anon

tried these suggestions this evening and they’re great. consistent download speed and my uploads are 1.5 times faster win/win thanks!

195 Dec 02, 2007 at 11:50 by Bob

Great Article, helped me alot!
About the virus, I haven’t experienced any virus effect and I am running MacaFee and AVG also, before you run the patch I suggest you backup the C:/WINDOWS/System32/Drives/tcpip.sys
file. I always make backups of eevery file that has been edited in the Windows Folder.

196 Dec 08, 2007 at 13:37 by Mave

do these TIP also apply to Windows Vista ?

Pages: « 12 3 4 5 6 7 [8] 9 10 11 12 » Show All

Add your response

It takes approximately 1 minute for your comment to appear on TorrentFreak after it's posted.