SlideShare a Scribd company logo
1 of 28
The BitTorrent Protocol
Common Scenario Millions want to download the same popular huge files (for free) Softwares Media (the real example!) Client-server model fails Single server fails Can’t afford to deploy enough servers
Client-Server Overloaded! Source Router “Interested”    End-host
Peer-to-Peer ,[object Object]
As opposed to the Client-Server model, where one node provides services and other nodes use the services. ,[object Object]
All nodes are not created equal.,[object Object]
Designed to transfer large files
160 million clients, 100 million active users
Used by many different people and organisations
The more popular a large video, audio or software file, the faster and cheaper it can be transferred with BitTorrent,[object Object]
BitTorrent  Terminology Peers – A node or computer that does not have the complete file Seed or seeder - A computer with a complete copy of a BitTorrent file Swarm- A group of computers simultaneously sending (uploading) or receiving (downloading) the same file  .torrent - A pointer file that directs your computer to the file you want to download  Tracker- A server that manages the BitTorrent file-transfer process
BitTorrent Swarm ,[object Object]
Set of peers all downloading the same file
Organized as a random mesh
Each node knows list of pieces downloaded by neighbors
Node requests pieces it does not own from neighbors,[object Object]
A *.torrent guides users to owners of a file User obtains *.torrent file. File contains meta info about a target file.   1 Armed with a list of peers holding pieces of the file, user downloads from many peers 4 User loads *.torrent file into BitTorrent client, which then looks up the named client 2 3 Tracker coordinates peers.
All peers act as a source A machine with a complete copy (the seed) can distribute incomplete pieces to multiple peers Seed Peers exchange different pieces of the file with one another until they assemble a whole As soon as the user has a piece of the file on his machine, he can become a source of that piece to other peers, helping speed download
The key ingredients of the *.torrent file are the tracker’s address and the unique SHA1 hash  All data in a metainfo file is encoded.  info: a dictionary that describes the file(s) of the torrent.  announce: contains the URL of the “tracker” creation date Comments from the author(optional) created by: (optional) piece length: number of bytes in each piece (integer) pieces: string consisting of the concatenation of all 20-byte SHA1 hash values, one per piece
Bit Torrent Download ,[object Object]
 Check and configure firewall and/or router for BitTorrent (if applicable)
 Find files to download
 Download and open the .torrent pointer file
 Let BitTorrent give and receive pieces of the file
 Stay connected after the download completes to share your .torrent files with others,[object Object]
 Create a New .torrent filePublish the .torrent file on torrent search Index sites such as PirateBay
Peer-peer transactions:Choosing pieces to request Rarest-first: Look at all pieces at all peers, and request piece that’s owned by fewest peers 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

More Related Content

What's hot

Bit torrent seminar
Bit torrent seminarBit torrent seminar
Bit torrent seminar
balu0503
 
Bit Torrent presentation
Bit Torrent presentationBit Torrent presentation
Bit Torrent presentation
Avula Jagadeesh
 

What's hot (20)

Bit Torrent Protocol Report
Bit Torrent Protocol ReportBit Torrent Protocol Report
Bit Torrent Protocol Report
 
BitTorrent Seminar Report
BitTorrent Seminar ReportBitTorrent Seminar Report
BitTorrent Seminar Report
 
Bit Torrent
Bit Torrent Bit Torrent
Bit Torrent
 
Bit torrent seminar
Bit torrent seminarBit torrent seminar
Bit torrent seminar
 
BitTorrent
BitTorrentBitTorrent
BitTorrent
 
Introduction to the Bittorrent Protocol
Introduction to the Bittorrent ProtocolIntroduction to the Bittorrent Protocol
Introduction to the Bittorrent Protocol
 
Bittorrent
BittorrentBittorrent
Bittorrent
 
Torrent Seminar inc.- working, terms, details
Torrent Seminar inc.- working, terms, detailsTorrent Seminar inc.- working, terms, details
Torrent Seminar inc.- working, terms, details
 
Bit torrent
Bit torrentBit torrent
Bit torrent
 
BitTorrent Protocol
BitTorrent ProtocolBitTorrent Protocol
BitTorrent Protocol
 
Bit Torrent presentation
Bit Torrent presentationBit Torrent presentation
Bit Torrent presentation
 
Bittorrent final seminar
Bittorrent final seminarBittorrent final seminar
Bittorrent final seminar
 
Bit torrent Technology ppt
Bit torrent Technology pptBit torrent Technology ppt
Bit torrent Technology ppt
 
Bittorrent
BittorrentBittorrent
Bittorrent
 
Bittorrent Basics
Bittorrent BasicsBittorrent Basics
Bittorrent Basics
 
Torrent technology
Torrent technologyTorrent technology
Torrent technology
 
Bit torrent
Bit torrentBit torrent
Bit torrent
 
Torrents
TorrentsTorrents
Torrents
 
BitTorrent
BitTorrent BitTorrent
BitTorrent
 
Torrent
TorrentTorrent
Torrent
 

Viewers also liked

Lecture 7: DHT and P2P Games
Lecture 7: DHT and P2P GamesLecture 7: DHT and P2P Games
Lecture 7: DHT and P2P Games
Wei Tsang Ooi
 
Bit Torrent Protocol
Bit Torrent ProtocolBit Torrent Protocol
Bit Torrent Protocol
Ali Habeeb
 
BitTorrent - sharing files has never been easier
BitTorrent - sharing files has never been easierBitTorrent - sharing files has never been easier
BitTorrent - sharing files has never been easier
Mohd253
 
Introduction to Peer-to-Peer Networks
Introduction to Peer-to-Peer Networks Introduction to Peer-to-Peer Networks
Introduction to Peer-to-Peer Networks
Venkatesh Iyer
 

Viewers also liked (13)

Bittorrent_project_Srikanth_Vanama
Bittorrent_project_Srikanth_VanamaBittorrent_project_Srikanth_Vanama
Bittorrent_project_Srikanth_Vanama
 
Bit torrent techtalks_dht
Bit torrent techtalks_dhtBit torrent techtalks_dht
Bit torrent techtalks_dht
 
Lecture 7: DHT and P2P Games
Lecture 7: DHT and P2P GamesLecture 7: DHT and P2P Games
Lecture 7: DHT and P2P Games
 
The eMule application of the eDonkey protocol
The eMule application of the eDonkey protocolThe eMule application of the eDonkey protocol
The eMule application of the eDonkey protocol
 
Bittorrent
BittorrentBittorrent
Bittorrent
 
P2P in 2020 - The Push for Supplier Self-Service
P2P in 2020 - The Push for Supplier Self-ServiceP2P in 2020 - The Push for Supplier Self-Service
P2P in 2020 - The Push for Supplier Self-Service
 
Bit Torrent Protocol
Bit Torrent ProtocolBit Torrent Protocol
Bit Torrent Protocol
 
Magnet links
Magnet linksMagnet links
Magnet links
 
BitTorrent - sharing files has never been easier
BitTorrent - sharing files has never been easierBitTorrent - sharing files has never been easier
BitTorrent - sharing files has never been easier
 
DHT and NAT
DHT and NATDHT and NAT
DHT and NAT
 
Introduction to Peer-to-Peer Networks
Introduction to Peer-to-Peer Networks Introduction to Peer-to-Peer Networks
Introduction to Peer-to-Peer Networks
 
P2PFile
P2PFileP2PFile
P2PFile
 
Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networking
 

Similar to Bit torrent protocol seminar by Sanjay R

Bit torrent by SANDA SOLUTIONS
Bit torrent by SANDA SOLUTIONSBit torrent by SANDA SOLUTIONS
Bit torrent by SANDA SOLUTIONS
ssanda3
 
Project_report_BitTorrent
Project_report_BitTorrentProject_report_BitTorrent
Project_report_BitTorrent
Srikanth Vanama
 
P2P Seminar
P2P SeminarP2P Seminar
P2P Seminar
CoRehab
 
Bit torrent explained
Bit torrent explainedBit torrent explained
Bit torrent explained
Dan Miller
 
P2P: Grid-oriented Distribution Systems
P2P: Grid-oriented Distribution SystemsP2P: Grid-oriented Distribution Systems
P2P: Grid-oriented Distribution Systems
Lorin Olsen
 

Similar to Bit torrent protocol seminar by Sanjay R (20)

Aditya Pathak
Aditya PathakAditya Pathak
Aditya Pathak
 
Bit Torrent technology
Bit Torrent technology Bit Torrent technology
Bit Torrent technology
 
Bit torrent and tracker
Bit torrent and trackerBit torrent and tracker
Bit torrent and tracker
 
Bittorrent
BittorrentBittorrent
Bittorrent
 
Bittorrent
BittorrentBittorrent
Bittorrent
 
Copy Of Part 4
Copy Of Part 4Copy Of Part 4
Copy Of Part 4
 
Bit torrent protocol
Bit torrent protocolBit torrent protocol
Bit torrent protocol
 
Bit torrent by SANDA SOLUTIONS
Bit torrent by SANDA SOLUTIONSBit torrent by SANDA SOLUTIONS
Bit torrent by SANDA SOLUTIONS
 
Bit torrent a revolution in p2p
Bit torrent a revolution in p2pBit torrent a revolution in p2p
Bit torrent a revolution in p2p
 
Project_report_BitTorrent
Project_report_BitTorrentProject_report_BitTorrent
Project_report_BitTorrent
 
P2P Seminar
P2P SeminarP2P Seminar
P2P Seminar
 
Adaptive Sliding Piece Selection Window for BitTorrent Systems
Adaptive Sliding Piece Selection Window for BitTorrent SystemsAdaptive Sliding Piece Selection Window for BitTorrent Systems
Adaptive Sliding Piece Selection Window for BitTorrent Systems
 
Bit torrent protocol
Bit torrent protocolBit torrent protocol
Bit torrent protocol
 
Filesharing using bittorrent protocol
Filesharing using bittorrent protocolFilesharing using bittorrent protocol
Filesharing using bittorrent protocol
 
Bit torrent explained
Bit torrent explainedBit torrent explained
Bit torrent explained
 
P2P: Grid-oriented Distribution Systems
P2P: Grid-oriented Distribution SystemsP2P: Grid-oriented Distribution Systems
P2P: Grid-oriented Distribution Systems
 
Bittorrent Seminar by dhananjay pardeshi
Bittorrent Seminar by dhananjay pardeshiBittorrent Seminar by dhananjay pardeshi
Bittorrent Seminar by dhananjay pardeshi
 
Bittorrent
BittorrentBittorrent
Bittorrent
 
Bittorrent
BittorrentBittorrent
Bittorrent
 
BitTorrent.pdf
BitTorrent.pdfBitTorrent.pdf
BitTorrent.pdf
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 

Bit torrent protocol seminar by Sanjay R

  • 2. Common Scenario Millions want to download the same popular huge files (for free) Softwares Media (the real example!) Client-server model fails Single server fails Can’t afford to deploy enough servers
  • 3. Client-Server Overloaded! Source Router “Interested” End-host
  • 4.
  • 5.
  • 6.
  • 7. Designed to transfer large files
  • 8. 160 million clients, 100 million active users
  • 9. Used by many different people and organisations
  • 10.
  • 11. BitTorrent Terminology Peers – A node or computer that does not have the complete file Seed or seeder - A computer with a complete copy of a BitTorrent file Swarm- A group of computers simultaneously sending (uploading) or receiving (downloading) the same file .torrent - A pointer file that directs your computer to the file you want to download Tracker- A server that manages the BitTorrent file-transfer process
  • 12.
  • 13. Set of peers all downloading the same file
  • 14. Organized as a random mesh
  • 15. Each node knows list of pieces downloaded by neighbors
  • 16.
  • 17.
  • 18. A *.torrent guides users to owners of a file User obtains *.torrent file. File contains meta info about a target file. 1 Armed with a list of peers holding pieces of the file, user downloads from many peers 4 User loads *.torrent file into BitTorrent client, which then looks up the named client 2 3 Tracker coordinates peers.
  • 19. All peers act as a source A machine with a complete copy (the seed) can distribute incomplete pieces to multiple peers Seed Peers exchange different pieces of the file with one another until they assemble a whole As soon as the user has a piece of the file on his machine, he can become a source of that piece to other peers, helping speed download
  • 20. The key ingredients of the *.torrent file are the tracker’s address and the unique SHA1 hash All data in a metainfo file is encoded. info: a dictionary that describes the file(s) of the torrent. announce: contains the URL of the “tracker” creation date Comments from the author(optional) created by: (optional) piece length: number of bytes in each piece (integer) pieces: string consisting of the concatenation of all 20-byte SHA1 hash values, one per piece
  • 21.
  • 22. Check and configure firewall and/or router for BitTorrent (if applicable)
  • 23. Find files to download
  • 24. Download and open the .torrent pointer file
  • 25. Let BitTorrent give and receive pieces of the file
  • 26.
  • 27. Create a New .torrent filePublish the .torrent file on torrent search Index sites such as PirateBay
  • 28. Peer-peer transactions:Choosing pieces to request Rarest-first: Look at all pieces at all peers, and request piece that’s owned by fewest peers 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
  • 29. Choosing pieces to request Random First Piece: When peer starts to download, request random piece. So as to assemble first complete piece quickly Then participate in uploads When first complete piece assembled, switch to rarest-first
  • 30. Why BitTorrent took off Better performance through “pull-based” transfer Slow nodes don’t bog down other nodes Allows uploading from hosts that have downloaded parts of a file
  • 31. Why BitTorrent took off Practical Reasons (perhaps more important!) Working implementation (Bram Cohen) with simple well-defined interfaces for plugging in new content Many recent competitors got sued / shut down Napster, Kazaa Users use well-known, trusted sources to locate content Avoids the pollution problem, where garbage is passed off as authentic content
  • 32. Pros and cons of BitTorrent Pros Proficient in utilizing partially downloaded files Discourages “freeloading” By rewarding fastest uploaders Encourages diversity through “rarest-first” Extends lifetime of swarm Works well for “hot content”
  • 33. Pros and cons of BitTorrent Cons Assumes all interested peers active at same time; performance deteriorates if swarm “cools off” Even worse: no trackers for obscure content
  • 34. Pros and cons of BitTorrent Dependence on centralized tracker: pro/con?  Single point of failure: New nodes can’t enter swarm if tracker goes down Lack of a search feature  Prevents pollution attacks  Users need to resort to out-of-band search: well known torrent-hosting sites / plain old web-search
  • 35. “Trackerless” BitTorrent To be more precise, “BitTorrent without a centralized-tracker” E.g.: Azureus Uses a Distributed Hash Table (Kademlia DHT) Tracker run by a normal end-host (not a web-server anymore) The original seeder could itself be the tracker Or have a node in the DHT randomly picked to act as the tracker
  • 36. Why is (studying) BitTorrent important? BitTorrent consumes significant amount of internet traffic today In 2004, BitTorrent accounted for 35 to 60% of all internet traffic (according to CacheLogic) BT always used for legal software (linuxiso) distribution to
  • 37.
  • 38.
  • 39. Thank you for your attention.