SlideShare a Scribd company logo
1 of 40
Download to read offline
Submitted To:-
   Mr. Nayyar Khan
   Miss Suhani Agarwal




Submitted By:-
   Ankit Malvi CSE-16
   Ankit Chauhan CSE-14
   Himanil Gupta CSE-39
Contents…
    Simple Solution: One BIG Server (but a problem too…)
    How server Works…?
    Solution Of the problem
    Entering “BIT TORRENT”..
              -Something about creator……
            -Definition
             -Basic Component
             -Basic Idea
Simple Solution: One Big Server
 Make the file available on a central server
 Each client downloads file from this server
 Problems
    Solution does not scale very well
    With a large number of clients, the server’s resources get
     overwhelmed
How SERVER works?
Problem Being Solved Here?
 Sharing a fairly large file
 Involves making a replica
 Problem is somewhat similar to, but not the same as,
  replication in a distributed file system, a Content
  Delivery Network or a Distributed Hash Table overlay
  network
Entering Bit Torrent
 Released in the summer of 2001
 Uses basic ideas from game theory to largely eliminate
  the free-rider problem
    All previous systems could not deal with this problem
      well
 Makes no strong guarantees unlike DHTs
 It is working extremely well in practice, unlike DHTs 
Something About Creator…..




        Bram Cohen – the creator of Bit Torrent:
What is BitTorrent?
   Efficient content distribution system using
   file swarming. Usually does not perform
   all the functions of a typical p2p system,
   like searching.
Basic Components
  Seed
    Peer that has the entire file
  Leeches
    Peer that has an incomplete copy of the file
  A Torrent file
    Passive component
    Files are typically fragmented into 256KB pieces
    The torrent file lists SHA1 hashes of all the pieces to allow peers to
     verify integrity
    Typically hosted on a web server
  A Tracker
    Active component
    Allows peers to find each other
    Returns a random list of peers
Basic Idea
 Initial seeder chops file into many pieces.
 Leecher first locates the .torrent file that directs it to a
  tracker, which tells which other peers are downloading
  that file. As a leecher downloads pieces of the file, replicas
  of the pieces are created. More downloads mean more
  replicas available
 As soon as a leecher has a complete piece, it can potentially
  share it with other downloaders. Eventually each leecher
  becomes a seeder by obtaining all the pieces, and
  assembles the file. Verifies the checksum.
BitTorrent Lingo
 Seeder = a peer that provides the complete file.
 Initial seeder = a peer that provides the initial copy.


                                  Leecher

            Initial seeder                                 One who is downloading
                                                           (not a derogatory term)



                                                                       Leecher



   Seeder
Pieces & Sub-Pieces
 A piece is broken into sub-pieces ... typically 16KB in
  size
 Policy: Until a piece is assembled, only download sub-
  pieces for that piece
 This policy lets complete pieces assemble quickly
File sharing
 Large files are broken into pieces of size between

 64 KB and 1 MB




      1      2        3      4       5        6       7   8
Simple example
                         {1,2,3,4,5,6,7,8,9,10}



               Seeder:   A



                                            {1,2,3}
       {1,2,3,4,5}

                                  Downloader C
Downloader B
How delay is avoided between pieces..??
 When transferring data over TCP, it is critical to
  always have several requests pending at once, to
  avoid a delay between pieces being sent
 Bit Torrent breaks pieces into sub-pieces
 At any point in time, some number, typically 5, are
  requested simultaneously
 Every time a sub-piece arrives, a new request is
  sent
 This scheme has been found to saturate most
  connections in practice
BT: internal mechanism

 Built-in incentive mechanism (where all the
 magic happens):
   Choking Algorithm

   Optimistic Unchoking
Choking
 Choking is a temporary refusal to upload. It is one
 of BitTorrent’s most powerful idea to deal with free
 riders (those who only download but never
 upload).
 Tit-for-tat strategy is based on game-theoretic
 concepts.
Choking Algorithm
 Goal is to have several bidirectional connections
  running continuously
 Upload to peers who have uploaded to you recently
 Unutilized connections are uploaded to on a trial basis
  to see if better transfer rates could be found using
  them
Choking Specifics number of its peers
  A peer always unchokes a fixed
   (default of 4)
  Decision to choke/unchoke done based on current
   download rates, which is evaluated on a rolling 20-
   second average
  Evaluation on who to choke/unchoke is performed
   every 10 seconds
    This prevents wastage of resources by rapidly choking/unchoking
     peers
    Supposedly enough for TCP to ramp up transfers to their full
     capacity
  Which peer is the optimistic unchoke is rotated
   every 30 seconds
Optimistic unchoking
 A BitTorrent peer has a single “optimistic
 unchoke” to which it uploads regardless of the
 current download rate from it. This peer rotates
 every 30s

 Reasons:
   To discover currently unused connections are
    better than the ones being used
   To provide minimal service to new peers
Endgame Mode
 Policy: When all the sub-pieces that a peer doesn’t
  have are actively being requested, these are
  requested from EVERY peer
 When the sub-piece arrives, the replicated
  requests are cancelled
 This ensures that a download doesn’t get prevented
  from completion due to a single peer with a slow
  transfer rate
 Some bandwidth is wasted, but in practice, this is
  not too much
Bit Torrent p2p file-sharing
system
 Aspects important for the
 acceptance of a p2p
 system :
 1. High availability;
 2. Users always receive a
    good version of the
    content they are
    requesting;
 3. Ability to deal with
    flashcrowds;
 4. High download speed.
Upload-Only mode
 Once download is complete, a peer has no
  download rates to use for comparison nor has any
  need to use them
 The question is, which nodes to upload to?
 Policy: Upload to those with the best upload rate.
 This ensures that pieces get replicated faster
 Also, peers that have good upload rates are
  probably not being served by others
conclusion
Open any torrent client say BitTorrent ,BitLord..
That’s all …..

You are done……

You got your torrent file……….
Next What ???
 Now you need to share it! You can upload it to a forum,
  or a BitTorrent site, like www.MiniNova.com etc……
 Make sure your client is ready to seed to those who
  want the file before you upload, though, or else no one
  will get it.
Conclusion
 BitTorrent was conceived as a way of distributing
 large files more quickly, efficiently, and reliably.
 Thanks to BitTorrent though, the download of
 large files has become more feasible, and people
 have become accustomed to acquiring video
 through the net. At this point it is virtually
 impossible for anyone to bring an end to illegal
 downloads. whether or not BitTorrent will
 continue to play a role in this is yet to be seen.
References
 Google Search…
 www.en.wikipedia.com.com
 www.howstuffsworks.com
 www.what-is-torrent.com
 Torrent s/w official websites
Thank You…..




 Questions…??

More Related Content

Recently uploaded

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
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 WorkerThousandEyes
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
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
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Recently uploaded (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
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
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Featured

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Featured (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Bit torrent

  • 1. Submitted To:- Mr. Nayyar Khan Miss Suhani Agarwal Submitted By:- Ankit Malvi CSE-16 Ankit Chauhan CSE-14 Himanil Gupta CSE-39
  • 2. Contents…  Simple Solution: One BIG Server (but a problem too…)  How server Works…?  Solution Of the problem  Entering “BIT TORRENT”.. -Something about creator…… -Definition -Basic Component -Basic Idea
  • 3. Simple Solution: One Big Server  Make the file available on a central server  Each client downloads file from this server  Problems  Solution does not scale very well  With a large number of clients, the server’s resources get overwhelmed
  • 4.
  • 6. Problem Being Solved Here?  Sharing a fairly large file  Involves making a replica  Problem is somewhat similar to, but not the same as, replication in a distributed file system, a Content Delivery Network or a Distributed Hash Table overlay network
  • 7. Entering Bit Torrent  Released in the summer of 2001  Uses basic ideas from game theory to largely eliminate the free-rider problem  All previous systems could not deal with this problem well  Makes no strong guarantees unlike DHTs  It is working extremely well in practice, unlike DHTs 
  • 8. Something About Creator….. Bram Cohen – the creator of Bit Torrent:
  • 9. What is BitTorrent? Efficient content distribution system using file swarming. Usually does not perform all the functions of a typical p2p system, like searching.
  • 10. Basic Components  Seed  Peer that has the entire file  Leeches  Peer that has an incomplete copy of the file  A Torrent file  Passive component  Files are typically fragmented into 256KB pieces  The torrent file lists SHA1 hashes of all the pieces to allow peers to verify integrity  Typically hosted on a web server  A Tracker  Active component  Allows peers to find each other  Returns a random list of peers
  • 11. Basic Idea  Initial seeder chops file into many pieces.  Leecher first locates the .torrent file that directs it to a tracker, which tells which other peers are downloading that file. As a leecher downloads pieces of the file, replicas of the pieces are created. More downloads mean more replicas available  As soon as a leecher has a complete piece, it can potentially share it with other downloaders. Eventually each leecher becomes a seeder by obtaining all the pieces, and assembles the file. Verifies the checksum.
  • 12. BitTorrent Lingo Seeder = a peer that provides the complete file. Initial seeder = a peer that provides the initial copy. Leecher Initial seeder One who is downloading (not a derogatory term) Leecher Seeder
  • 13. Pieces & Sub-Pieces  A piece is broken into sub-pieces ... typically 16KB in size  Policy: Until a piece is assembled, only download sub- pieces for that piece  This policy lets complete pieces assemble quickly
  • 14. File sharing Large files are broken into pieces of size between 64 KB and 1 MB 1 2 3 4 5 6 7 8
  • 15. Simple example {1,2,3,4,5,6,7,8,9,10} Seeder: A {1,2,3} {1,2,3,4,5} Downloader C Downloader B
  • 16.
  • 17. How delay is avoided between pieces..??  When transferring data over TCP, it is critical to always have several requests pending at once, to avoid a delay between pieces being sent  Bit Torrent breaks pieces into sub-pieces  At any point in time, some number, typically 5, are requested simultaneously  Every time a sub-piece arrives, a new request is sent  This scheme has been found to saturate most connections in practice
  • 18. BT: internal mechanism  Built-in incentive mechanism (where all the magic happens):  Choking Algorithm  Optimistic Unchoking
  • 19. Choking  Choking is a temporary refusal to upload. It is one of BitTorrent’s most powerful idea to deal with free riders (those who only download but never upload).  Tit-for-tat strategy is based on game-theoretic concepts.
  • 20. Choking Algorithm  Goal is to have several bidirectional connections running continuously  Upload to peers who have uploaded to you recently  Unutilized connections are uploaded to on a trial basis to see if better transfer rates could be found using them
  • 21. Choking Specifics number of its peers  A peer always unchokes a fixed (default of 4)  Decision to choke/unchoke done based on current download rates, which is evaluated on a rolling 20- second average  Evaluation on who to choke/unchoke is performed every 10 seconds  This prevents wastage of resources by rapidly choking/unchoking peers  Supposedly enough for TCP to ramp up transfers to their full capacity  Which peer is the optimistic unchoke is rotated every 30 seconds
  • 22. Optimistic unchoking  A BitTorrent peer has a single “optimistic unchoke” to which it uploads regardless of the current download rate from it. This peer rotates every 30s  Reasons:  To discover currently unused connections are better than the ones being used  To provide minimal service to new peers
  • 23. Endgame Mode  Policy: When all the sub-pieces that a peer doesn’t have are actively being requested, these are requested from EVERY peer  When the sub-piece arrives, the replicated requests are cancelled  This ensures that a download doesn’t get prevented from completion due to a single peer with a slow transfer rate  Some bandwidth is wasted, but in practice, this is not too much
  • 24.
  • 25. Bit Torrent p2p file-sharing system Aspects important for the acceptance of a p2p system : 1. High availability; 2. Users always receive a good version of the content they are requesting; 3. Ability to deal with flashcrowds; 4. High download speed.
  • 26. Upload-Only mode  Once download is complete, a peer has no download rates to use for comparison nor has any need to use them  The question is, which nodes to upload to?  Policy: Upload to those with the best upload rate.  This ensures that pieces get replicated faster  Also, peers that have good upload rates are probably not being served by others
  • 28. Open any torrent client say BitTorrent ,BitLord..
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36. That’s all ….. You are done…… You got your torrent file……….
  • 37. Next What ???  Now you need to share it! You can upload it to a forum, or a BitTorrent site, like www.MiniNova.com etc……  Make sure your client is ready to seed to those who want the file before you upload, though, or else no one will get it.
  • 38. Conclusion  BitTorrent was conceived as a way of distributing large files more quickly, efficiently, and reliably. Thanks to BitTorrent though, the download of large files has become more feasible, and people have become accustomed to acquiring video through the net. At this point it is virtually impossible for anyone to bring an end to illegal downloads. whether or not BitTorrent will continue to play a role in this is yet to be seen.
  • 39. References  Google Search…  www.en.wikipedia.com.com  www.howstuffsworks.com  www.what-is-torrent.com  Torrent s/w official websites