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

291 Responses (Add yours or TrackBack)

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

276 May 25, 2008 at 20:40 by Technische Goethe

Yay for this discussion. The articles at TorrentFreak sustain a level of intelligibility and entertainment that makes it much more pain free than other tech-savvy sites, and this places it closer to heaven than most discussions about torrents that can be found on the web.

For we noob/sheep/ignoramuseseses — who simply want to use our computer, and who are able to read and follow directions — trying to learn enough about setting the “connection speed” on —oh, say utorrent/bittorrent—is like trying to learn algebra from a super-intelligent gerbil who’s just come off a one week tequila and ritalin bender at his coke-dealer’s house: it’s impressive, incomprehensible and makes me want to crush small animals.

Most befuddlement seem to revolve around this whole kb/kB/(sometimes writ Kb, with a capital “K,” for added, unnecessary confusion) issue. Never mind that even people who obviously understand such things easily confuse this issue, it’s easy to confuse! And however bad it is for the tech-savvy, it’s exponentially worse for those of us that don’t care what it’s called. We just want to know WHAT TO SET OUR BLOODY CONNECTION SPEED!

The creators of (U/Bit)torrent might as well just make up a speed designation. (I’m fond of designation “Larry.”) They seem to think that the way to avoid the whole bits and bytes confusion was was to drop the letter “b” altogether and limit themselves to just using a lower-cased letter “k” in their wildly misnamed “Speed Guide.”

This leaves the majority of users, folks like me, the vast un-enlightned masses, the decidedly tech-UN-savvy, fantasizing about creating a time machine, going back in time, finding the pinheaded basement dweller that thought that the distinction between bits and bytes was best signified by simply changing the case of the letter “B,” sucking his brains out his left ear and spooning the resultant goo onto (U/Bit)torrent-flavored sherbet and serving it to starving cannibal children, while we just sort of blindly guess at a connection speed near the number produced by the speed test site we were sent to.

I’ve personally taken to leaving it up to the spider in the corner of my office. Whatever number I see in his web, that’s the speed I set my connection as. This morning it seemed to be 512kLarries, but just now, as I was writing this, a fly entered the picture and . . . oh drat. I have to change it to a mere 58kLarries . . . dial up speed.

Anyway, excellent article. Keep up the good writing, the good work, and the good fight. And if anyone gets there before me, save me some sherbet.

T. Goethe

277 May 29, 2008 at 19:49 by Jaya Senan

this is one of the most important. do not miss this step!!

278 May 29, 2008 at 23:37 by shishir

hey guys can you please tell when how do I install thisfrom scratch as my download speed has decreased. please mail me at shishirdnath@gmail.com

279 May 30, 2008 at 10:22 by Tahmid

My Higest Download Speed Has Been 340kb/s .
Hah Im Loving It.

Average Is Around The 300 Mark . :)

280 May 31, 2008 at 20:33 by MAK

I did this on Windows Vista Home Premium and noticed zero difference. using BitTorrent client and downloading a 6Gb. file with Cable Internet @ 19000kb/s DL - 188Kb/s UL according to http://www.speakeasy.net/speedtest/. anyone have any suggestions to make this download faster? I can download a 1Gb. Movie on iTunes in 20 minutes or less. Why does it take 72 hours on BitTorrent?

281 Jun 01, 2008 at 03:29 by gagan

thanks i will try
and please alway give the latest update about which u like to give

good by

282 Jun 01, 2008 at 04:04 by TJ

THNX MAN,I SET MY UPLOAD DWNLOAD SPEED AS 80% AND 95% AND NW IT WRKS GRT

283 Jun 09, 2008 at 07:57 by Reno

Cracks for games show up as keyloggers sometimes. I doubt it’s a serious threat.

284 Jun 15, 2008 at 11:28 by afghanboi1

thakssssssssssssss it is work goooooooooooood job

285 Jun 20, 2008 at 14:38 by geigo

calfskin Brian complementer transplanting harlot?Holst tree

286 Jun 23, 2008 at 12:01 by tibbs

I tried these settings and it didn’t work as well, I get better speeds by setting upload speed much lower (about 25% and number of peers and connections loads higher

287 Jun 23, 2008 at 12:01 by tibbs

I tried these settings and it didn’t work as well, I get better speeds by setting upload speed much lower (about 25% and number of peers and connections loads higher.

humnyar.co.uk

288 Jun 25, 2008 at 20:14 by oliret

would it be best 2 have 10 peers and 10 seeds, or 20 peers and 20 seeds

289 Jul 06, 2008 at 18:09 by Ankan

What is a peer then!! ??

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.