Skip to content
— CH. 1 · INTRODUCTION —

BitTorrent

~8 min read · Ch. 1 of 7
7 sections
  • BitTorrent arrived in the summer of 2001 as a small text file and a radical idea: what if the people downloading a file also became the people delivering it? Bram Cohen, a programmer and University at Buffalo alumnus, released the first version on the 2nd of July 2001. Within three years, his protocol accounted for a third of all internet traffic on the planet.

    That is a remarkable number for something that most people never consciously installed. BitTorrent spread through the pipes of the early internet so thoroughly that by some measures a quarter of a billion users a month were touching it. And yet it was not a company, not a product people paid for. It was a protocol, a set of rules for how computers talk to each other when they want to share something large.

    The questions BitTorrent raises go beyond technology. How do you build something that distributes itself? How do you hold a network together when no single server is in charge? And what happens when a tool built to solve a bandwidth problem becomes the engine of one of the largest copyright disputes in the history of the internet?

  • Cohen designed the protocol in April 2001 with one specific frustration in mind: downloading large files from a single server was slow, and the more popular the file, the worse it got. His answer was to break each file into pieces and let every downloader also become an uploader of the pieces they had already received.

    In BitTorrent's model, each peer that receives a new piece immediately becomes a source of that piece for other peers. A file could theoretically be sent by the original uploader just once, and then spread to an unlimited number of recipients through the swarm. The more popular the file, the faster it moved, because more seeders meant more people serving it simultaneously. This flipped the logic of traditional servers, where popularity created bottlenecks.

    The pieces are downloaded in random order, or in a "rarest-first" approach that keeps the most scarce pieces in circulation. The client then reassembles them into the correct sequence. A download can stop at any point and resume without losing the pieces already gathered, which made the protocol especially suited to large video and audio files where an interrupted session would otherwise mean starting over.

    Each piece is protected by a cryptographic hash contained in the torrent descriptor. Any corruption, accidental or deliberate, is caught when a piece is checked against that hash. If a node starts with an authentic copy of the torrent descriptor, it can verify every piece it receives all the way to the complete file.

  • The first BitTorrent client shipped with no search engine and no way for peers to find each other except through a central tracker. Users created a small text file, the torrent file, uploaded it to an index site, and the tracker then handed out lists of IP addresses to anyone who wanted to join the swarm.

    That dependency on a central tracker was a structural weakness. In 2005, Azureus, later renamed Vuze, released version 2.3.0.0 with a distributed hash table system that let clients find each other without a working tracker at all. The following month, BitTorrent, Inc. released its own DHT implementation, called Mainline DHT, which was incompatible with Azureus's version. Both are based on an architecture called Kademlia. By 2014, Mainline DHT had between 10 million and 25 million concurrent users at any given time, with a daily churn of at least 10 million.

    Peer exchange, added in 2006, gave clients another way to discover participants: asking already-connected peers whether they knew of others. Web seeding, also implemented in 2006, allowed clients to pull individual pieces from a standard HTTP server in addition to the swarm. A site could seed its own torrent from a regular web host, then stop serving the file once the swarm grew large enough to sustain itself.

    Cohen and Ashwin Navin founded BitTorrent, Inc. in 2004 to continue developing the technology. The company was later renamed Rainberry, Inc., and it remains the entity that maintains the protocol today.

  • Because BitTorrent accounted for such a large share of internet traffic, some internet service providers began throttling it, slowing transfers for all users identified as running the protocol. In August 2007, Comcast went further, actively preventing BitTorrent seeding by monitoring and interfering with communications between peers.

    The response from developers was encryption. Protocol header encrypt and message stream encryption, known as MSE/PE, were built into clients to make BitTorrent traffic harder to detect. As of November 2015, a wide range of clients including Vuze, BitComet, KTorrent, Transmission, Deluge, and the official BitTorrent client supported MSE/PE encryption.

    In 2008, Comcast reached a settlement with BitTorrent, Inc., agreeing to manage traffic in a protocol-agnostic way. The episode fed directly into the debate over net neutrality in the United States, raising questions about whether an ISP could legally discriminate between types of traffic. Encryption, however, is not a complete defense; BitTorrent remains vulnerable to traffic analysis, and an ISP can still determine whether a system has stopped downloading and is only uploading, and terminate the connection by injecting TCP RST packets.

    By early 2015, AT&T estimated that BitTorrent accounted for 20% of all broadband traffic. The protocol also created hardware problems for home users: because BitTorrent frequently contacts between 20 and 30 servers per second, it can rapidly fill the network address translation tables of consumer-grade routers, causing them to stop working correctly.

  • Sub Pop Records used BitTorrent, Inc.'s platform to distribute more than a thousand albums. Nine Inch Nails distributed albums through BitTorrent frequently. The CBC became the first major broadcaster in North America to distribute a television program, Canada's Next Great Prime Minister, via BitTorrent after broadcast.

    Blizzard Entertainment previously used the protocol to distribute content and patches for Diablo III, StarCraft II, and World of Warcraft. Facebook and Twitter both use BitTorrent to push updates to their own servers. The British government used it to distribute details about how tax money was spent. Florida State University uses it to deliver large scientific data sets to researchers, and the developing Human Connectome Project uses it to share its open dataset.

    In August 2012, the Internet Archive added BitTorrent to its download options for more than 1.3 million existing files, describing it as the fastest means of downloading media from the Archive. The protocol has also been adopted for folder synchronization through Resilio Sync, which uses BitTorrent as the underlying engine for an alternative to services like Dropbox.

    GSC Game World shared files between offices in Czechia and Ukraine via BitTorrent during development of S.T.A.L.K.E.R. 2, a practice that led to game assets being leaked because the transfers were not adequately secured.

  • In 2017, BitTorrent, Inc. released the v2 protocol specification, updating the cryptographic foundation of the entire system. The original protocol used SHA-1 to generate a hash for each piece of data. By 2017, SHA-1 was no longer considered safe from collision attacks, so v2 replaced it with SHA-256.

    The new format also introduced a Merkle tree structure, where each piece hash forms part of a hash tree rooted in the torrent's infohash. This allows more precise checks for file corruption and speeds up the transition from adding a torrent to actually beginning the download. Each file is now hashed individually, enabling deduplication across different torrents: if two separate torrents share an identical file, a downloader of one can obtain that file from peers seeding the other.

    To protect users who had not yet upgraded, the v2 specification includes a hybrid torrent format that contains both SHA-1 and SHA-256 hashes, so a single torrent file can serve both v1-only and v2-capable clients simultaneously. Magnet links for v2 carry the same hybrid approach, embedding both hash types to maintain compatibility with older software.

    The 2019 Sandvine data offered one measure of how much the landscape had shifted since 2004: BitTorrent generated 2.46% of downstream traffic and 27.58% of upstream traffic, a dramatic drop from its third-of-all-traffic peak, reflecting competition from streaming services that had built the kind of centralized, convenient infrastructure BitTorrent had deliberately set out to replace.

Common questions

Who invented BitTorrent and when was it released?

BitTorrent was designed by programmer Bram Cohen, a University at Buffalo alumnus, in April 2001. He released the first version on the 2nd of July 2001. Cohen and Ashwin Navin later founded BitTorrent, Inc. in 2004 to continue developing the technology.

How much internet traffic did BitTorrent account for at its peak?

BitTorrent accounted for a third of all internet traffic in 2004, according to a study by Cachelogic. By early 2015, AT&T estimated that BitTorrent still accounted for 20% of all broadband traffic. As of 2019, Sandvine reported it generated 27.58% of upstream traffic.

What is the difference between BitTorrent v1 and BitTorrent v2?

BitTorrent v1 uses the SHA-1 hashing algorithm, which is no longer considered safe from collision attacks. BitTorrent v2, released in 2017, uses SHA-256 and a Merkle tree structure for more precise integrity checks. A hybrid format supports both v1 and v2 clients from a single torrent file.

Is using BitTorrent legal?

The BitTorrent protocol itself is legal. Legal problems arise from using it to distribute copyrighted material without authorization. In the United States, more than 200,000 copyright infringement lawsuits have been filed related to BitTorrent since 2010.

What legitimate organizations use BitTorrent?

Facebook and Twitter use BitTorrent to distribute updates to their own servers. Blizzard Entertainment previously used it for patches to World of Warcraft, StarCraft II, and Diablo III. The Internet Archive added BitTorrent download options for more than 1.3 million files in August 2012. The British government also used it to distribute information about public spending.

What happened when Comcast blocked BitTorrent traffic in 2007?

In August 2007, Comcast was found to be actively preventing BitTorrent seeding by monitoring and interfering with peer communications. In 2008, Comcast reached a settlement with BitTorrent, Inc. agreeing to manage traffic in a protocol-agnostic way. The episode intensified the debate over net neutrality in the United States.

All sources

116 references cited across the entry

  1. 1webBitTorrent Protocol 1.0Bram Cohen — BitTorrent.org — October 2002
  2. 3webBitTorrent – a new P2P appBram Cohen — Yahoo eGroups — 2 July 2001
  3. 5webbittorrent vs HTTP2009-06-13
  4. 7journalA Sleep-and-Wake technique for reducing energy consumption in BitTorrent networksFabrizio Marozzo et al. — 2020
  5. 9webUB Engineering TweeterUniversity at Buffalo's School of Engineering and Applied Sciences
  6. 11webThe BitTorrent Protocol Specification v2Bram Cohen — BitTorrent
  7. 12webTMRRkovalensky
  8. 13webBittorrent-v2libbittorrent
  9. 14journalEstimating Self-Sustainability in Peer-to-Peer Swarming SystemsDaniel S. Menasche et al. — 2010
  10. 15webRarest First and Choke Algorithms Are EnoughUrvoy-Keller — Sigcomm — December 2006
  11. 16webPublicBT Tracker Set To Patch BitTorrent' Achilles' HeelErnesto — Torrentfreak — 12 July 2009
  12. 18webHyperspaces for Object Clustering and Approximate Matching in Peer-to-Peer OverlaysWong, Bernard — Cornell University — 2 May 2007
  13. 19webCubit: Approximate Matching for Peer-to-Peer OverlaysWong, Bernard — Cornell University — 2008
  14. 20webApproximate Matching for Peer-to-Peer Overlays with CubitWong, Bernard — Cornell University
  15. 22webStudying and enhancing the BitTorrent protocolKarthik Tamilmani — Stony Brook University — 25 October 2003
  16. 23arxivUnraveling BitTorrent's File Unavailability: Measurements and AnalysisSebastian Kaune — 2009
  17. 24conferenceContent Availability and Bundling in Swarming SystemsD. Menasche — ACM via sigcomm.org — 1–4 December 2009
  18. 25webThe Seeder Promotion Problem: Measurements, Analysis and Solution SpaceSebastian Kaune — Queen Mary's University London
  19. 29webLibtorrent FeaturesArvid Norberg — libtorrent.org — 2019-12-10
  20. 30webDHT ProtocolAndrew Loewenstern — BitTorrent.org — 2003-01-01
  21. 31webPeer Exchange (PEX)Arvid Norberg — BitTorrent.org — 2005-03-01
  22. 32webWebSeed – HTTP/FTP Seeding (GetRight style)Greg Hazel — BitTorrent.org — 2005-02-01
  23. 36webTor Project: FAQThe Tor Project
  24. 40webVuze ChangelogAzureus.sourceforge.net
  25. 45webHTTP Seeding – BitTorrent Enhancement Proposal № 17John Hoffman, DeHackEd — 25 February 2008
  26. 48webBurn Any Web-Hosted File into a Torrent With BurnbitTorrentFreak — 13 September 2010
  27. 50webBitTorrent and RSS Create Disruptive RevolutionEWeek.com — 14 December 2003
  28. 52webBroadcatching with BitTorrentRaymond, Scott — scottraymond.net — 16 December 2003
  29. 53webMoveDigital API REST functionsMove Digital — 2006
  30. 55webEncrypting Bittorrent to take out traffic shapersTorrentfreak.com — 5 February 2006
  31. 57webComcast and BitTorrent Agree to CollaborateAnne Broache — News.com — 27 March 2008
  32. 58webIs Comcast's BitTorrent filtering violating the law?Chris Soghoian — 4 September 2007
  33. 61webArstechnica.comCasey Johnston — 9 December 2008
  34. 62webThunder Blasts uTorrent's Market Share AwayErnesto Van Der Sar — TorrentFreak — 4 December 2009
  35. 63webuTorrent Dominates BitTorrent Client Market ShareTorrentFreak — 24 June 2009
  36. 65webMost Popular BitTorrent Client 2015Alan Henry — lifehacker — 19 May 2015
  37. 67webDoes network neutrality mean an end to BitTorrent throttling?Nate Anderson — Ars Technica, LLC — 1 February 2007
  38. 70webBitLet - Bittorrent appletAlessandro Bahgat — 2008-10-10
  39. 71web8 Legal Uses for BitTorrent17 August 2013
  40. 74webApplication Usage & Threat ReportPalo Alto Networks. 2013
  41. 75bookIEEE P2P 2013 ProceedingsLiang Wang et al. — 1 September 2013
  42. 84webVPRO gemeengoedOctober 1, 2009
  43. 85webDownload California DreamingNovember 8, 2010
  44. 88webBlizzard DownloaderFandom — 6 December 2022
  45. 90webWorld of Tanks FAQWargaming — 1 January 2025
  46. 92webBitTorrent Sync is now Resilio SyncSamuel Bennett — 2016-11-04
  47. 93webCombined Online Information SystemHM Government — Controller of Her Majesty's Stationery Office — 4 September 2012
  48. 94webUK Government Uses BitTorrent to Share Public Spending DataErnesto — TorrentFreak — 4 June 2010
  49. 95webHPC Data RepositoryFlorida State University
  50. 96book2008 IEEE International Symposium on Parallel and Distributed ProcessingCosta, Fernando — IEEE — 2008
  51. 100webFacebook Uses BitTorrent, and They Love ItErnesto — 25 June 2010
  52. 101webTwitter Uses BitTorrent For Server DeploymentErnesto — 10 February 2010
  53. 103webInternet Archive Starts Seeding 1,398,875 TorrentsErnesto — TorrentFreak — 7 August 2012
  54. 108conferenceUDP NAT and Firewall Puncturing in the WildHalkes — Springer — 2011
  55. 110webThe Piratebay is Down: Raided by the Swedish PoliceTorrentFreak — 31 May 2006
  56. 113magazineU.K. High Court Orders ISPs to Block The Pirate BayChloe Albanesius — 30 April 2012
  57. 119webSearching for Malware in Bit TorrentAndrew D. Berns et al. — University of Iowa, via TechRepublic — 24 April 2008
  58. 120conferenceWhere Only Fools Dare to Tread: An Empirical Study on the Prevalence of Zero-Day MalwareHåvard Vegge et al. — IEEE Computer Society — 2009