BitTorrent Background. Common Scenario Millions want to download the same popular huge files (for free) –ISO’s –Media (the real example!) Client-server.

Slides:



Advertisements
Similar presentations
Rarest First and Choke Algorithms are Enough Arnaud LEGOUT INRIA, Sophia Antipolis France G. Urvoy-Keller and P. Michiardi Institut Eurecom France.
Advertisements

The BitTorrent Protocol
The BitTorrent Protocol. What is BitTorrent?  Efficient content distribution system using file swarming. Does not perform all the functions of a typical.
Incentives Build Robustness in BitTorrent Author: Bram Cohen Presenter: Brian Liao.
Incentives Build Robustness in BitTorrent- Bram Cohen Presented by Venkatesh Samprati.
The BitTorrent protocol A peer-to-peer file sharing protocol.
Incentives Build Robustness in BitTorrent Bram Cohen.
BitTorrent CS514 Vivek Vishnumurthy, TA. Common Scenario Millions want to download the same popular huge files (for free) –ISO’s –Media (the real example!)
CS5412: Torrents and Tit-for-Tat
Bit Torrent (Nick Feamster) February 25, BitTorrent Steps for publishing – Peer creates.torrent file and uploads to a web server: contains metadata.
Presented by: Su Yingbin. Outline Introduction SocialSwam Design Notations Algorithms Evaluation Conclusion.
Agenda Introduction BT + Multimedia Experimental Conclusion 2.
Cameron Dale and Jiangchuan LiuA Measurement Study of Piece Population in BitTorrent Introduction BitTorrent Experiment Results Simulation Discussion A.
Stochastic Analysis of File Swarming Systems The Chinese University of Hong Kong John C.S. Lui Collaborators: D.M. Chiu, M.H. Lin, B. Fan.
The BitTorrent content distribution system CS217 Advanced Topics in Internet Research Guest Lecture Nikitas Liogkas, 5/11/2006.
Clustering and Sharing Incentives in BitTorrent Systems Arnaud Legout 1, Nikitas Liogkas 2, Eddie Kohler 2, Lixia Zhang 2 1 INRIA, Projet Planète, Sophia.
CompSci 356: Computer Network Architectures Lecture 21: Content Distribution Chapter 9.4 Xiaowei Yang
Peer to Peer (P2P) Networks and File sharing. By: Ryan Farrell.
CMPT 401 Summer 2007 Dr. Alexandra Fedorova Lecture XV: Real P2P Systems.
Game Theory Presented by Hakim Weatherspoon. Game Theory Main Question: Can we cheat (and get away with it)? BitTorrent –P2P file distribution tool designed.
Ken Birman Cornell University. CS5410 Fall
Game Theory Presented by Hakim Weatherspoon. Game Theory BitTorrent Do Incentives Build Robustness in BitTorrent? BAR Gossip.
Improving ISP Locality in BitTorrent Traffic via Biased Neighbor Selection Ruchir Bindal, Pei Cao, William Chan Stanford University Jan Medved, George.
Peer-Assisted Content Distribution Networks: Techniques and Challenges Pei Cao Stanford University.
Paul Solomine Security of P2P Systems. P2P Systems Used to download copyrighted files illegally. The RIAA is watching you… Spyware! General users become.
Modeling and Performance Analysis of Bitorrent-Like Peer-to-Peer Networks Dongyu Qiu and R. Srikant University of Illinois, 2004 Presented by : Ran Zivhon.
A P2P file distribution system ——BitTorrent Fan Bin Sep,25,2004.
Courtesy: Philip Levis/David Mazieres, Stanford More application layer BitTorrent (Quick Overview) Tahir Azim.
Incentives Build Robustness in BitTorrent 1st Workshop on Economics of Peer-to-Peer Systems 2003 Bram Cohen
Middleware for P2P architecture Jikai Yin, Shuai Zhang, Ziwen Zhang.
Client-Server vs P2P or, HTTP vs Bittorrent. Client-Server Architecture SERVER client.
The Bittorrent Protocol
Content Overlays (Nick Feamster) February 25, 2008.
Bit Torrent (Nick Feamster) February 25, BitTorrent Steps for publishing – Peer creates.torrent file and uploads to a web server: contains metadata.
BitTorrent Presentation by: NANO Surmi Chatterjee Nagakalyani Padakanti Sajitha Iqbal Reetu Sinha Fatemeh Marashi.
University of Bologna, Italy How to cheat BitTorrent and why nobody does Simon Patarin and David Hales University of Bologna ECCS 2006,
BitTorrent.
BitTorrent Internet Technologies and Applications.

BitTorrent How it applies to networking. What is BitTorrent P2P file sharing protocol Allows users to distribute large amounts of data without placing.
1 BitTorrent System Efrat Oune Bar-Ilan What is BitTorrent? BitTorrent is a peer-to-peer file distribution system (built for intensive daily use.
Securing Data Authentication with Cryptographic Signatures in BitTorrent Du Wei cc.hut.fi / Supervisor : Professor Jukka Manner Instructor.
BitTorrent Dr. Yingwu Zhu. Bittorrent A popular P2P application for file exchange!
A P2P file distribution system ——BitTorrent Pegasus Team CMPE 208.
Do incentives build robustness in BitTorrent? Michael Piatek, Tomas Isdal, Thomas Anderson, Arvind Krishnamurthy, Arun Venkataramani.
MULTI-TORRENT: A PERFORMANCE STUDY Yan Yang, Alix L.H. Chow, Leana Golubchik Internet Multimedia Lab University of Southern California.
Peer-to-Peer File Sharing Jennifer Rexford COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
B IT T ORRENT T ECHNOLOGY Anthony Pervetich. H ISTORY Bram Cohen Designed the BitTorrent protocol in April 2001 Released July 2, 2001 Concept Late 90’s.
Impact of Incentives in BitTorrent By Jenny Liu and Seth Cooper.
Peer-to-Peer File Sharing
ADVANCED COMPUTER NETWORKS Peer-Peer (P2P) Networks 1.
Bit Torrent Nirav A. Vasa. Topics What is BitTorrent? Related Terms How BitTorrent works Steps involved in the working Advantages and Disadvantages.
Peer to Peer Networking. Network Models => Mainframe Ex: Terminal User needs direct connection to mainframe Secure Account driven  administrator controlled.
INTERNET TECHNOLOGIES Week 10 Peer to Peer Paradigm 1.
Peer-to-Peer Networks 10 Fast Download Christian Schindelhauer Technical Faculty Computer-Networks and Telematics University of Freiburg.
Chapter 29 Peer-to-Peer Paradigm Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
November 19, 2016 Guide:- Mrs. Kale J. S. Presented By:- Hamand Amol Sambhaji. Hamand Amol Sambhaji. Pardeshi Dhananjay Rajendra. Pardeshi Dhananjay Rajendra.
Lecture XV: Real P2P Systems
An example of peer-to-peer application
Introduction to BitTorrent
BitTorrent Vs Gnutella.
PEER TO PEER BitTorrent.
Angelo Sapello University of Delaware
Do incentives build robustness in BitTorrent?
Small Is Not Always Beautiful
Simplified Explanation of “Do incentives build robustness in BitTorrent?” By James Hoover.
The BitTorrent Protocol
Content Distribution Networks + P2P File Sharing
Pure P2P architecture no always-on server
Content Distribution Networks + P2P File Sharing
Presentation transcript:

BitTorrent Background

Common Scenario Millions want to download the same popular huge files (for free) –ISO’s –Media (the real example!) Client-server model fails –Single server fails –Can’t afford to deploy enough servers

BitTorrent Written by Bram Cohen (in Python) in 2001 “Pull-based” “swarming” approach –Each file split into smaller pieces –Nodes request desired pieces from neighbors As opposed to parents pushing data that they receive –Pieces not downloaded in sequential order Encourages contribution by all nodes

BitTorrent Swarm Swarm –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 –Exact method explained later

How a node enters a swarm for file “popeye.mp4” File popeye.mp4.torrent hosted at a (well-known) webserver The.torrent has address of tracker for file The tracker, which runs on a webserver as well, keeps track of all peers downloading file

How a node enters a swarm for file “popeye.mp4” Peer 1 popeye.mp4.torrent File popeye.mp4.torrent hosted at a (well-known) webserver The.torrent has address of tracker for file The tracker, which runs on a webserver as well, keeps track of all peers downloading file

How a node enters a swarm for file “popeye.mp4” Peer Tracker Addresses of peers 2 File popeye.mp4.torrent hosted at a (well-known) webserver The.torrent has address of tracker for file The tracker, which runs on a webserver as well, keeps track of all peers downloading file

How a node enters a swarm for file “popeye.mp4” Peer Tracker3 Swarm File popeye.mp4.torrent hosted at a (well-known) webserver The.torrent has address of tracker for file The tracker, which runs on a webserver as well, keeps track of all peers downloading file

Contents of.torrent file URL of tracker Piece length – Usually 256 KB SHA-1 hashes of each piece in file –For reliability

Terminology Seed: peer with the entire file –Original Seed: The first seed Leech: peer that’s downloading the file –Fairer term might have been “downloader”

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

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

Choosing pieces to request End-game mode: –When requests sent for all sub-pieces, (re)send requests to all peers. –To speed up completion of download –Cancel request for downloaded sub-pieces

Tit-for-tat as incentive to upload Want to encourage all peers to contribute Peer A said to choke peer B if it (A) decides not to upload to B Each peer (say A) unchokes at most 4 interested peers at any time –The three with the largest upload rates to A Where the tit-for-tat comes in –Another randomly chosen (Optimistic Unchoke) To periodically look for better choices

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

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

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”

Pros and cons of BitTorrent Cons –Assumes all interested peers active at same time; performance deteriorates if swarm “cools off”