Академический Документы
Профессиональный Документы
Культура Документы
distributing large amounts of data over the Internet. Programmer Bram Cohen designed the protocol in April 2001 and released a first implementation on July 2, 2001.It is now maintained by Cohen's company BitTorrent, Inc. There are numerous BitTorrent clients available for a variety of computing platforms.
Common Scenario
Millions want to download the same popular huge
Why Torrent ?
Client-Server
Client-Server
Overloaded!
Basic terms :
Tracker
Web Server
.torrent file Seeder Piece
The Tracker
IP address, port, peer id
State information (Completed Returns a random list of peers
or Downloading)
Overall Architecture
Web Server Tracker
Overall Architecture
Web Server Tracker
Overall Architecture
Web Server Tracker
Overall Architecture
Web Server Tracker
Overall Architecture
Web Server Tracker
Overall Architecture
Web Server Tracker
Piece Selection
The order in which pieces are selected by
different peers is critical for good performance If an inefficient policy is used, then peers may end up in a situation where each has all identical set of easily available pieces, and none of the missing ones. If the original seed is prematurely taken down, then the file cannot be completely downloaded! What are good policies?
Increases diversity in the pieces downloaded avoids case where a node and each of its peers have exactly the same pieces; increases throughput Increases likelihood all pieces still available even if
original seed leaves before any one node has downloaded entire file
piece.
So as to assemble first complete piece quickly Then participate in uploads
rarest-first
requests to all peers. To speed up completion of download Cancel request for downloaded sub-pieces
peer C peer A
peer D peer B
peer E
peer C peer A
C3,C4
peer D
peer B
peer E
peer C peer A
C5
peer D peer B
peer E
peer C peer A
peer D peer B
peer E
performance deteriorates if swarm cools off Even worse: no trackers for obscure content