What is Bittorrent?

Introduction

Bittorrent is a decentralized peer to peer (P2P) distribution of content which uses the upload bandwidth of each individual who is downloading the content, and those who have downloaded, to transfer the content.

The bittorrent transfer is initiated through either a .torrent file or a magnet link.  Either of these is associated with specific content and when opened in a bittorrent client, transfer of that associated content begins.

From its inauspicious start in 2001, bittorrent has grown to one of the major forces on the internet.  Estimates of bandwidth use by bittorrent are one third, and upwards, of all internet use.
There are presently over 17 million torrents active and many petabytes of content associated with those torrents.

Unfortunately, the use of bittorrent to illegally distribute copyrighted content has overshadowed bittorrent's advantages in the distribution of legal content.

This article is part of a series of articles on bittorrent here at Gizmo's Freeware.  If you are not familiar with bittorrent, then before using this article you should read these:

Comparison of Distribution Methods

Central Server - Traditional downloads from the internet use a central server to provide the bandwidth for the transfer.  All who want the download, obtain their copy from the same source. 

Traditional P2P - The first incarnations of peer to peer transfers (Napster etc.) worked similarly to central server.  An individual served as a server distributing content to others using the upload bandwidth of that individual's internet connection.  While the distribution method was similar, P2P was "off the main grid" and involved distribution between individuals, hence the peer to peer (P2P) designation.

Bittorrent - was the next step in the evolution of transfers and P2P.  It differs from traditional central server and traditional P2P distribution, in that it involves the use of multiple sources for the distribution of the content.  Each active user is involved in the distribution of the content through their upload bandwidth.  It also provides a fail safe against the corruption of distributed content.

normal-distribution-imageThese diagrams roughly show these distribution methods.  Since central server and traditional P2P essentially distribute the same way, the "normal" network distribution image reflects both of these methods.
Advantages of Bittorrent over Traditional Distribution Methods

Virtuous circle vs Viscous Circle

  • Bittorrent - the more users active on a torrent provides for greater speed for each of the users. 
  • Central Server & Traditional P2P - The more users active on a download results in decreased speed for each of the users.

In bittorrent the upload bandwidth of every active user on a torrent is used to transfer the content.  This means that the more popular the content, the greater the download speed for each user.

A central server, or individual serving as a central server in traditional P2P, has a limited amount of bandwidth for distribution.  The more users seeking the content, the less the download speed of each user. 

Integrity of Content

  • Bittorrent - The torrent file or the magnet link that is used to initiate the distribution contains unique and specific information on the content that will be downloaded through either.  The content is broken down to bits to facilitate distribution among the active users.  If any of these bits becomes corrupt during transfer, and therefore does not match the information within the torrent or magnet link, then it will be rejected by the bittorrent client and replaced with an uncorrupted bit.  This ensures that when the download is complete it will be an exact copy of the distributed content.
  • Central Server - Distribution through a central server always involves some risk of corruption and this issue is worsened when the demand for the content is high.  There is no fail safe guard against such corruption of content.
  • Traditional P2P - Suffers from the same issues as a central server.  Since traditional P2P is "off the grid", the risk of distribution of malware is increased, making this the most dangerous of distribution methods.
Definitions Of Common Bittorrent Terms

Definitions of common bittorrent terms in simple (hopefully) language.

Torrent - A small text file that contains information about specific (associated) content, file and folder names within the content and about tracker(s).  These are used to begin download of the associated content when opened in a bittorrent client.

Magnet Links are similar to torrents in that they are used to download associated content when opened in a bittorrent client.  They differ in that they are not files, only links.  The magnet link only contains information on the content and no tracker or file and folder information. 
This is an advantage for bittorrent search sites as they do not need to store files, only bits of data relating to the magnet link.  Additionally, this further decentralizes bittorrent as a tracker is no longer needed.
This is an advantage for users as the magnet link looks for the content only and if the file or folder names are different the magnet link may still download.  A torrent file will only download when the content and file and folder names are identical.  This could help increase download speed, particularly if the content is rare.

Torrent Search Site - A site that indexes torrent files and their associated content.

Tracker - A communications hub that helps people active on a torrent connect to each other.

Bittorrent Client - A program that opens torrent files to transfer of the content associated with the torrent.

Seeds - Those who have 100% of the torrent's associated content and are uploading to Peers (Leechers).

Peers - Two definitions.

  1. Those active on a torrent who have less than 100% of the content associated with the torrent.  They download from seeds and other peers and upload to other peers. (Most bittorrent clients use the term this way).

  2. All of those active on a torrent, i.e., those who have 100% and those who have less than 100%. (Most torrent search sites use this definition).

Leechers - Two definitions

  1. Those who have less than 100% of the content.  They download from seeds and other leechers and upload to other leechers. (Some torrent search sites use this term).

  2. Those who download 100% of a torrent's associated content, but do not upload back at least 100% of that content. (Used by all. This negative connotation is why bittorrent clients use peers for the above definition.)

Ratio - The amount uploaded divided by the amount downloaded.  Usually shown per torrent and overall within the bittorent client.. 

Swarm - The group of people active on a single torrent. (Same as definition 2 of Peers, above)

DHT - Short for Distributed Hash Table.  A way of connecting to other users without the tracker being involved.  Especially useful when a tracker goes down or for hosting tracker-less torrents.

PEX - Short for Peer Exchange. A way of connecting to other users without the tracker, through people that you are already connected to.  Especially useful if tracker is down.

Encryption - Primarily designed to help users avoid interference from an Internet Service Provider (ISP).

How it Works

This is a non-technical description of the bittorrent process.

A user goes to a torrent search search site to search for content.  When the user finds wanted content, the user downloads the .torrent file (or magnet link) associated with the content.  When the torrent (or magnet link) is opened in a bittorrent client, transfer of the associated content begins.

When the download is begun with a torrent, the bittorrent client communicates to a tracker through the information contained in the .torrent file.  A tracker essentially serves as a communications hub for this swarm of individuals, helping them find each other.  DHT and PEX also help users to find each other. 
With a magnet link, the bittorrent client uses DHT and PEX to find other users with identical content.

Bittorrent works by splitting content files into hundreds of smaller “bits” and sharing those bits, using the upload bandwidth of the active users, across a swarm of linked users.  These bits are downloaded randomly, so the content is generally not useable until the download is complete.  The bittorrent client will reject any bits that do not match the information contained in the torrent file.  This ensures that the completed download will be an uncorrupted copy of the content.

Conclusion

As a process for the transfer of content, bittorrent is clearly superior to traditional methods.  Any organization would be wise to use the bittorrent protocol for the transfer of communications between separate offices.  This would result in less cost in distribution and assurance of accuracy in the transferred content.

Hopefully this article has given you a basic understanding of the bittorrent process.  If you have any questions, or comments, feel free to post below and I will try to address them.

This article is part of a series of articles on bittorrent here at Gizmo's Freeware.  After reading this article, if you are interested in bittorrent, then you may check out these other articles here at Gizmo's

Related Links

 

Share this
4.551725
Average: 4.6 (29 votes)
Your rating: None

Gizmo's Freeware is Recruiting!

Gizmos Needs YouShare your knowledge of free software with millions of Gizmo's readers by joining our editing team.  Details here.