SlideShare a Scribd company logo
1 of 12
How does Torrent work ?
Interesting question, huh?
Deep Kakkad
deep-kakkad.github.io
So, What is BitTorrent?
• Basically, BitTorrent is a peer to peer file
sharing system.
The typical questions – Who? When?
Answer is - Bram Cohen,
July 2001
The Question :- How??
• To know the whole process, we need to
understand basic stuff. And, to make it simple,
we’ll read a story.
The story!
• Imagine…
You’re sitting in an exam hall. But (as
expected), you don’t know answer to a
question. But, you can read people’s mind.
You’ll read everyone’s mind and conclude
which of them know the answer. Then, you’ll
conclude(by reading minds), who knows the
full or partial answer. And, at last, you have
your answer.
Compare…
• Now,
The answer you don’t know = the file to be downloaded
Mind reading ability = BitTorrent client
Reading of mind = peer exchange/torrent download
People who know complete answer = Seeders
People who know partial answer = Leecher
One more Layman Example…
• There is one person having a book, 30 people
want to read. Two possibilities :-
1) The person having book will go to each
person to let them xerox the book. (problem :-
It might take a lot of time. )
2) The person having book won’t let other 29
copy. (oh no, this is not what we want!)
Optimal solution…
• In this situation, optimal solution would be :-
The 29 go to the 1 and each tear out a page and
photocopy it, then give it back. Now everyone has at
least 1 page. Now they can either go back to the 1
person and get another page, or they can go to any
of the other people and get a copy of the pages they
do have.
How to see it in “Torrent’s” terms?
• The peers first obtain a metadata file for each
object.
Now, What does meta-data contain?
 The SHA-1 hashes of all pieces.
 A mapping of the pieces to files.
 Piece size.
 Length of the file.
 A tracker reference.
How to see it in “Torrent’s” terms?
• First off, File is split up into pieces…
And, SHA-1 is created for each part.
How to see it in “Torrent’s” terms?
(The secret)
• The file pieces are downloaded by leecher,
meanwhile, replicas of file are created. As
soon as a leecher has a completed download
of a piece, it can potentially share it with
other downloaders. Eventually each leecher
becomes a seeder by obtaining all the pieces,
and assembles the file.
• And, This was the stuff you didn’t knew was
happening, when you were downloading a
movie from torrent last time!

More Related Content

Similar to How does torrent work?

Write a better FM
Write a better FMWrite a better FM
Write a better FMRich Bowen
 
Solving Problems with Web 2.0
Solving Problems with Web 2.0Solving Problems with Web 2.0
Solving Problems with Web 2.0Dorothea Salo
 
Torrent Protocol
Torrent ProtocolTorrent Protocol
Torrent ProtocolHarsht2888
 
Jeff Atwood - How To Optimize Your Community Platform
Jeff Atwood - How To Optimize Your Community PlatformJeff Atwood - How To Optimize Your Community Platform
Jeff Atwood - How To Optimize Your Community PlatformFeverBee Limited
 
turning test, how it works and winners.ppt
turning test, how it works and winners.pptturning test, how it works and winners.ppt
turning test, how it works and winners.pptMuhammadAbdullah311866
 
Special Topics Day for Engineering Innovation Lecture on Cybersecurity
Special Topics Day for Engineering Innovation Lecture on CybersecuritySpecial Topics Day for Engineering Innovation Lecture on Cybersecurity
Special Topics Day for Engineering Innovation Lecture on CybersecurityMichael Rushanan
 
P2P: Grid-oriented Distribution Systems
P2P: Grid-oriented Distribution SystemsP2P: Grid-oriented Distribution Systems
P2P: Grid-oriented Distribution SystemsLorin Olsen
 

Similar to How does torrent work? (12)

Write a better FM
Write a better FMWrite a better FM
Write a better FM
 
Solving Problems with Web 2.0
Solving Problems with Web 2.0Solving Problems with Web 2.0
Solving Problems with Web 2.0
 
Torrent Protocol
Torrent ProtocolTorrent Protocol
Torrent Protocol
 
Library Linked Data
Library Linked DataLibrary Linked Data
Library Linked Data
 
Jeff Atwood - How To Optimize Your Community Platform
Jeff Atwood - How To Optimize Your Community PlatformJeff Atwood - How To Optimize Your Community Platform
Jeff Atwood - How To Optimize Your Community Platform
 
turning test, how it works and winners.ppt
turning test, how it works and winners.pptturning test, how it works and winners.ppt
turning test, how it works and winners.ppt
 
Dmk audioviz
Dmk audiovizDmk audioviz
Dmk audioviz
 
Bittorrent
BittorrentBittorrent
Bittorrent
 
8-3-11
8-3-118-3-11
8-3-11
 
Special Topics Day for Engineering Innovation Lecture on Cybersecurity
Special Topics Day for Engineering Innovation Lecture on CybersecuritySpecial Topics Day for Engineering Innovation Lecture on Cybersecurity
Special Topics Day for Engineering Innovation Lecture on Cybersecurity
 
P2P: Grid-oriented Distribution Systems
P2P: Grid-oriented Distribution SystemsP2P: Grid-oriented Distribution Systems
P2P: Grid-oriented Distribution Systems
 
Peer to peer
Peer to peer Peer to peer
Peer to peer
 

Recently uploaded

Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 

Recently uploaded (20)

Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 

How does torrent work?

  • 1. How does Torrent work ? Interesting question, huh? Deep Kakkad deep-kakkad.github.io
  • 2. So, What is BitTorrent? • Basically, BitTorrent is a peer to peer file sharing system.
  • 3. The typical questions – Who? When? Answer is - Bram Cohen, July 2001
  • 4. The Question :- How?? • To know the whole process, we need to understand basic stuff. And, to make it simple, we’ll read a story.
  • 5. The story! • Imagine… You’re sitting in an exam hall. But (as expected), you don’t know answer to a question. But, you can read people’s mind. You’ll read everyone’s mind and conclude which of them know the answer. Then, you’ll conclude(by reading minds), who knows the full or partial answer. And, at last, you have your answer.
  • 6. Compare… • Now, The answer you don’t know = the file to be downloaded Mind reading ability = BitTorrent client Reading of mind = peer exchange/torrent download People who know complete answer = Seeders People who know partial answer = Leecher
  • 7. One more Layman Example… • There is one person having a book, 30 people want to read. Two possibilities :- 1) The person having book will go to each person to let them xerox the book. (problem :- It might take a lot of time. ) 2) The person having book won’t let other 29 copy. (oh no, this is not what we want!)
  • 8. Optimal solution… • In this situation, optimal solution would be :- The 29 go to the 1 and each tear out a page and photocopy it, then give it back. Now everyone has at least 1 page. Now they can either go back to the 1 person and get another page, or they can go to any of the other people and get a copy of the pages they do have.
  • 9. How to see it in “Torrent’s” terms? • The peers first obtain a metadata file for each object. Now, What does meta-data contain?  The SHA-1 hashes of all pieces.  A mapping of the pieces to files.  Piece size.  Length of the file.  A tracker reference.
  • 10. How to see it in “Torrent’s” terms? • First off, File is split up into pieces… And, SHA-1 is created for each part.
  • 11. How to see it in “Torrent’s” terms? (The secret) • The file pieces are downloaded by leecher, meanwhile, replicas of file are created. As soon as a leecher has a completed download of a piece, it can potentially share it with other downloaders. Eventually each leecher becomes a seeder by obtaining all the pieces, and assembles the file.
  • 12. • And, This was the stuff you didn’t knew was happening, when you were downloading a movie from torrent last time!

Editor's Notes

  1. Why optimal? As time goes on, some people drop off, and some people join in, but among this miniature community, hopefully, there are enough pages to reconstruct the whole book. If everyone stays available long enough, a lot of people end up having the whole book and can speed up the whole process, since there are multiple sources for potentially "rare" pages