Bittorrent
From Freespire
From Wikipedia
Note: this page still requires additional editing and links
BitTorrent is a peer-to-peer (P2P) communications protocol for file sharing. The protocol was designed in April 2001 and implemented in Summer 2002 by programmer Bram Cohen, and is now maintained by BitTorrent, Inc.
BitTorrent is a method of distributing large amounts of data widely without the original distributor incurring the whole of the corresponding costs of hardware, hosting and bandwidth resources. Instead of the distributor alone servicing each recipient, under BitTorrent the recipients each also supply data to newer recipients, thus significantly reducing the cost and burden on any given individual source as well as providing redundancy against system problems, and reducing dependence upon the original distributor.
CableLabs, the research organization of the North American cable industry, believes that BitTorrent could represent 55% of the upstream traffic on the cable company's access network.[1] CacheLogic puts that number at roughly 35% of all traffic on the Internet.[2] Another paper states that some 18% of all broadband traffic carries torrent files needed to initiate BitTorrent downloads.[3] The large discrepancies in these numbers could be caused by dissenting opinions on the methodology to measure P2P traffic on the Internet.[4]
The original BitTorrent client was written in Python. Its source code, as of version 4.0, has been released under the BitTorrent Open Source License, which is a modified version of the Jabber Open Source Licence. There are numerous compatible clients, written in a variety of programming languages, and running on a variety of computing platforms.
Contents |
Operation
A BitTorrent client is any program which implements the BitTorrent protocol. Each client is capable of preparing, requesting, and transmitting any type of computer file over a network, using the protocol. A peer is any computer running an instance of a client.
To share a file or group of files, a peer first creates a "torrent." This is a small file which contains metadata about the files to be shared, and about the tracker, the computer that coordinates the file distribution. Peers that want to download the file first obtain a torrent file for it, and connect to the specified tracker which tells them from which other peers to download the pieces of the file.
Though both ultimately transfer files over a network, a BitTorrent download differs from a classic full-file HTTP request in several fundamental ways:
* BitTorrent makes many small P2P requests over different TCP sockets, while web-browsers typically make a single HTTP GET request over a single TCP socket. * BitTorrent downloads in a random or "rarest-first" approach that ensures high availability, while HTTP downloads in a contiguous manner.
Taken together, BitTorrent achieves much lower cost, much higher redundancy, and much greater resistance to abuse or "flash crowds" than a regular HTTP server. However, this protection comes at a cost: downloads take time to ramp up to full speed because these many peer connections take time to establish, and it takes time for a node to get sufficient data to become an effective uploader. As such, a typical BitTorrent download will gradually ramp up to very high speeds, and then slowly ramp back down toward the end of the download. This contrasts with an HTTP server that, while more vulnerable to overload and abuse, ramps up to full speed very quickly and maintains this speed throughout. Furthermore, BitTorrent's non-contiguous download methods prevent it from supporting "progressive downloads" or "streaming playback," as is possible with HTTP.
Creating and Publishing Torrents
The peer distributing the file breaks it down into a number of identically-sized pieces, typically between 64 kB and 1 MB each. Pieces over 512 kB are used to reduce the size of torrent files for very large payloads, but also reduce the efficiency of the protocol[1]. The peer creates a checksum for each piece, using a hashing algorithm, and records it in the torrent file. When a peer receives the piece, it compares the recorded checksum to the actual checksum of the received piece to test that it is error-free. [5] Peers that provide the complete file are called seeders, and the peer providing the initial copy is called the initial seeder.
The exact information contained in the torrent file depends on the version of the BitTorrent protocol. By convention, the name of a torrent file has the suffix .torrent. Torrent files contain an "announce" section, which specifies the URL of the tracker, and an "info" section which contains (suggested) names for the files, their lengths, the piece length used, and a SHA-1 hash code for each piece, which clients should use to verify the integrity of the data they receive.
The peer places a link to the file on a website or elsewhere, and registers it with a tracker. The tracker maintains lists of the clients currently participating in the torrent.[5] Alternatively, in a trackerless system (decentralized tracking) every peer acts as a tracker. It is implemented by the BitTorrent, µTorrent, BitComet and KTorrent clients through the distributed hash table (DHT) method. Azureus also supports a trackerless method but it is incompatible with the DHT offered by all other supporting clients.
In November 2006, BitTorrent Inc released a service that automatically creates a torrent file and tracks a download based on a website object. The service is located at https://www.bittorrent.com/publish and requires a client that supports web-seeding (currently only the official client, Azureus, and μTorrent).
Downloading torrents and sharing files
Users browse the web to find a torrent file of interest, download it and open it with a BitTorrent client program. The client connects to the tracker specified in the torrent file, which sends it a list of other peers currently downloading pieces of the file to be downloaded. The client connects to those peers to obtain the various pieces. Such a group of peers connected to each other to share a torrent is called a swarm. If the swarm contains only the initial seeder, the client connects directly to it and begins to request pieces. As peers enter the swarm, they begin to trade pieces with one another, instead of downloading directly from the seeder.
Clients incorporate mechanisms to optimize their download and upload rates; for example they download pieces in a random order, to increase the opportunity to exchange data, which is only possible if two peers have different pieces of the file.
The effectiveness of this data exchange depends largely on the policies that clients use to determine to whom to send data. Clients may prefer to send data to peers that send data back to them (a tit for tat scheme), which encourages fair trading. But strict policies often result in suboptimal situations, where newly joined peers are unable to receive any data (because they don't have any pieces yet to trade themselves) and two peers with a good connection between them do not exchange data simply because neither of them wants to take the initiative. To counter these effects, the official BitTorrent client program uses a mechanism called “optimistic unchoking,” where the client reserves a portion of its available bandwidth for sending pieces to random peers (not necessarily known-good partners, so called preferred peers), in hopes of discovering even better partners and to ensure that newcomers get a chance to join the swarm.[6]
Adoption of BitTorrent
A growing number of individuals and organizations are using BitTorrent to distribute their own or licensed material. The most notable of these is BitTorrent Inc. which has amassed a number of licenses from Hollywood studios for distributing popular content at the company's website. Independent adopters report that without using BitTorrent technology, with its dramatically reduced demands on networking hardware and bandwidth, they could not afford to distribute their files.
Many sites imitating big BitTorrent trackers have turned to distribution of only legal material in general. With several different categories they often provide a working distribution method for parties who want to have big material packets available for large audience without investing large amounts of money.
Amazon S3 (Simple Storage Service), a scalable Internet-based storage service with a simple web service interface, comes with built-in BitTorrent support.
BitTorrent is often used to distribute free and open source software, especially ISO images of Linux distributions. Most Linux distributions offer BitTorrent as one of the download methods for installation CDs.
Sub Pop Records, the record label credited with popularizing grunge rock and current publisher of The Shins, The Postal Service and other popular bands, is releasing numerous tracks and videos on BitTorrent[7] to distribute its 1000+ albums. The band Ween uses the website Browntracker.net[8] to distribute free audio and video recordings of live shows.
Blizzard's World of Warcraft video game utilizes the BitTorrent protocol to send game updates to clients.
Anime fansub communities often use BitTorrent for their releases, and the most popular announce sites like Animesuki have RSS feeds.
Blog Torrent offers a simplified BitTorrent tracker to enable bloggers and non-technical users to run a tracker off their site. Blog Torrent also allows visitors to download a "stub" file which acts as a BitTorrent client to download the desired file, allowing users without BitTorrent software to benefit from it.[9] This is similar to the concept of a self-extracting archive.
The game GunZ The Duel has a built-in BitTorrent client.
Podcasting software is starting to integrate BitTorrent to help podcasters deal with the download demands of their MP3 "radio" programs. Specifically, Juice supports automatically processing .torrent files from RSS feeds. Similarly, some BitTorrent clients, such as µTorrent, are able to process web feeds and automatically download content found within them.
The creator of the BitTorrent protocol, Bram Cohen, at one time worked for Valve Software. Valve uses the BitTorrent protocol in their Steam media streaming frontend.

