Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I open a Bittorrent file, am I connected to ALL of the people who are currently downloading/seeding that Bittorrent file?

Or am I only connected to a subset of people who are currently downloading/seeding that Bittorrent file?

What I'm trying to say is that, let's say 1 million people are currently downloading/seeding this file, will Bittorrent select only 1000 of them (like say based on country, those with nearer locations compared to my IP) or will Bittorrent simply connect me to all of them?

share|improve this question

3 Answers 3

up vote 2 down vote accepted

Your client will use a number of methods (consulting a tracker, DHT, and peer exchange) in order to locate all of the peers sharing the file (or as many as possible). It does not, though, connect to all of them. Part of the locating process is determining which parts of the file each peer has. It then only contacts a peer if that peer has a part of the file that you do not have, and it only contacts one peer for each chunk. This limits the maximum number of downloading connections to the number of chunks in the file, although your client will rarely attempt more than say 30 connections simultaneously (your client will try to automatically optimize the number of connections based on your internet service and other factors). Likewise, other peers will contact you if you have a section of the file they do not. If too many peers request chunks at once, your client will start refusing until the connection count goes back down.

You can usually manually configure the maximum number of incoming and outgoing connections that your client will serve, or if you don't manually set a limit, your client will do the maximum possible in consideration of your bandwidth. For example, here are the bandwidth and connection settings in mutorrent: MuTorrent bandwidth settings

share|improve this answer

You are connected to a subset of all available sources. And you can actually control the number of connections.

For example, I'm using uTorrent on a Mac. It defaults to a maximum of 200 connections total and 50 max connections per torrent. uTorrent will attempt to get the best connections (i.e. faster downloads/larger bandwidth/lower ping) into that mix.

share|improve this answer

Your Bittorrent application will query the tracker periodically ("scraping") for a list of peers.

It is possible for the tracker to not return the full list, but a randomized subset thereof, and I believe it is common for many trackers to indeed behave this way.

Many Bittorrent applications have a setting that limits the number of simultaneously outgoing connection, usually defaulting to a sensible value.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.