Introduction to BitTorrent

Slides:



Advertisements
Similar presentations
Optimal Scheduling in Peer-to-Peer Networks Lee Center Workshop 5/19/06 Mortada Mehyar (with Prof. Steven Low, Netlab)
Advertisements

Rarest First and Choke Algorithms are Enough Arnaud LEGOUT INRIA, Sophia Antipolis France G. Urvoy-Keller and P. Michiardi Institut Eurecom France.
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!)
Bit Torrent (Nick Feamster) February 25, BitTorrent Steps for publishing – Peer creates.torrent file and uploads to a web server: contains metadata.
Ln -s /usr/timtimmah /usr/kevinstanonik. TORRENT BASICS  You want to get a file to other people.  BUT you don’t have the bandwidth to have everyone.
The BitTorrent content distribution system CS217 Advanced Topics in Internet Research Guest Lecture Nikitas Liogkas, 5/11/2006.
BitTorrent Join the swarm! BY: Joe Petruska. What is BitTorrent? a peer-to-peer file sharing protocol used for distributing large amounts of data.
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.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #13: P2P and Sensor Networks Shivkumar Kalyanaraman:
Game Theory Presented by Hakim Weatherspoon. Game Theory Main Question: Can we cheat (and get away with it)? BitTorrent –P2P file distribution tool designed.
Game Theory Presented by Hakim Weatherspoon. Game Theory BitTorrent Do Incentives Build Robustness in BitTorrent? BAR Gossip.
1 Incentives Build Robustness in BitTorrent? Analysis on Bit Torrent Client performance By Jimmy Wong.
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
BitTorrent Background. Common Scenario Millions want to download the same popular huge files (for free) –ISO’s –Media (the real example!) Client-server.
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,
1 V1-Filename.ppt / yyyy-mm-dd / Initials P2P content distribution T Applications and Services in Internet, Fall 2008 Jukka K. Nurminen.
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.
File Sharing Prepared By: Mahmud Gabareen Eyal Biber Itamar Arie Lecturer Iris Reinhartz-Berger.
Distributed Systems Concepts and Design Chapter 10: Peer-to-Peer Systems Bruce Hammer, Steve Wallis, Raymond Ho.
1 BitTorrent System Efrat Oune Bar-Ilan What is BitTorrent? BitTorrent is a peer-to-peer file distribution system (built for intensive daily use.
P2P For More Showcase Presentation Jessie Gardiner John Lasa Travis Sheppard April 29, 2010.
BitTorrent Dr. Yingwu Zhu. Bittorrent A popular P2P application for file exchange!
A P2P file distribution system ——BitTorrent Pegasus Team CMPE 208.
1 BitHoc: BitTorrent for wireless ad hoc networks Jointly with: Chadi Barakat Jayeoung Choi Anwar Al Hamra Thierry Turletti EPI PLANETE 28/02/2008 MAESTRO/PLANETE.
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.
1 Slides from Richard Yang with minor modification Peer-to-Peer Systems: DHT and Swarming.
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.
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.
© 2016 A. Haeberlen, Z. Ives CIS 455/555: Internet and Web Systems 1 University of Pennsylvania Decentralized systems February 15, 2016.
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.
THE BITTORRENT PROTOCOL OVERVIEW BY ANATOLY RABINOVICH AND VLADIMIR OSTROVSKY Peer-to-Peer File Sharing.
An example of peer-to-peer application
BitTorrent Vs Gnutella.
Venkatesh Kumar Auzumeedi
nTorrent: Peer-to-Peer File Sharing in Named Data Networking
Economics and Computation Week 7: The economics of P2P file sharing
Angelo Sapello University of Delaware
Part 4: Peer to Peer - P2P Applications
Managing Inter-domain Traffic in the Presence of BitTorrent File-Sharing Srinivasan Seetharaman and Mostafa Ammar School of Computer Science Objective:
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
PEER-TO-PEER SYSTEMS.
Pure P2P architecture no always-on server
Chapter 2 Application Layer
#02 Peer to Peer Networking
Content Distribution Networks + P2P File Sharing
Presentation transcript:

Introduction to BitTorrent Alexey Zagalsky Introduction to BitTorrent Based on data from Wikipedia slides from “Introduction to BitTorent” by Arvid Norberg slides from”BitTorrent Background” by Hilel

What is BitTorrent BitTorrent is a peer-to-peer file sharing protocol used for distributing large amounts of data It has been estimated that it accounted for roughly 27% to 55% of all Internet traffic (depending on geographical location) as of February 2009. Programmer Bram Cohen designed the protocol in April 2001

Reasons for Adoption 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 Practical Reasons (perhaps more important!) Working implementation with simple well-defined interfaces for plugging-in new content Many recent competitors got sued / shut down Napster, Kazaa

How It Works The file to be distributed is split up in pieces and a SHA-1 hash is calculated for each piece

How It Works A metadata file (.torrent) is distributed to all peers Usually via Web, Email, etc… The metadata contains: SHA-1 hashes of all pieces Tracker reference (URL) Piece Length: usually 256KB is it better smaller or bigger pieces ?

How It Works The user makes the file itself available through a BitTorrent node acting as a seed The Tracker is a central server keeping a list of all peers participating in the swarm A swarm is the set of peers that are participating in distributing the same file A peer joins a swarm by asking the tracker for a peer list and connects to those peers

A Peer Joins The Swarm

A Peer Joins The Swarm

Seeding A File

Terminology A downloader is any peer that does not have the entire file and is downloading the file A leecher is: A peer who has a negative effect on the swarm by having a very poor share ratio A downloader A seeder is a peer that has an entire copy of the torrent and offers it for upload

Goals Efficiency Reliability Ability to download from many peers yields fast downloads Minimize piece overlap among peers Download random pieces Rarest First algorithm Reliability Tolerant to dropping peers Ability to verify data integrity (SHA-1 hashes)

Rarest First The piece picking algorithm used in BitTorrent is called Rarest First To maximize the distributed copies, maximize the availability of the rarest pieces Picks a random piece from the set of rarest pieces No peer has global knowledge of piece availability, it is approximated by the availability among neighbors

Incentive to Share Policies to determine to whom to send data: Tit-for-Tat Upload to whoever uploads the most to you "Survival of the fittest“ Theoretically increases performance by encouraging fast peers to upload to you and giving them even more pieces to upload to others May result in suboptimal situations Optimistic Unchoking In hope of discovering better partners To ensure that newcomers get a chance to join the swarm

Tit-for-tat as Incentive to Upload Want to encourage all peers to contribute Peer A is 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

Limitations Content unavailability The leech problem Although swarming scales well to tolerate flash crowds for popular content, it is less useful for unpopular content The leech problem A user may often choose to leave the swarm as soon as they have a complete copy of the file they are downloading Pieces not downloaded in sequential order (think VOD)

Trackerless Torrents Common problems with Trackers: Solutions: Single point of failure Solutions: Multiple Trackers (splits swarms) DHT

Distributed Hash Table Works as a hash table with SHA-1 hashes as keys The key is the info-hash, the hash of the metadata It uniquely identifies a torrent The data is a peer list of the peers in the swarm