Changing the Unchoking Policy for an Enhnaced BitTorrent

Similar documents
Changing the Unchoking Policy for an Enhanced Bittorrent

EnhancedBit: Unleashing the Potential of the Unchoking Policy in the BitTorrent Protocol

Content Distribution and BitTorrent [Based on slides by Cosmin Arad]

Design Space Analysis for Modeling Incentives in Distributed Systems

Do incentives build robustness in BitTorrent?

Improving BitTorrent: A Simple Approach

Game Theory. Presented by Hakim Weatherspoon

Modeling Leechers Attack in BitTorrent

CompSci 356: Computer Network Architectures Lecture 21: Overlay Networks Chap 9.4. Xiaowei Yang

P2P Applications. Reti di Elaboratori Corso di Laurea in Informatica Università degli Studi di Roma La Sapienza Canale A-L Prof.ssa Chiara Petrioli

BitTorrent. Masood Khosroshahy. July Tech. Report. Copyright 2009 Masood Khosroshahy, All rights reserved.

Lecture 17: Peer-to-Peer System and BitTorrent

Contracts: Practical Contribution Incentives for P2P Live Streaming

New Technique to Improve BitTorrent Performance Based on Application Layer Traffic Optimization

BitRiver: Final Report

inria , version 1-6 Sep 2006

Performance Improvements of Peer-to-Peer File Sharing

Introduction to Distributed Computing Systems

A Trace Study of BitTorrent P2P File Distribution with Downloading-Side Performance Measurement and Analysis

BitTorrent for Really Selfish Peers T4T Trading over Cycles

Introduction to P P Networks

building BitTyrant, a (more) strategic BitTorrent client

Using Torrent Inflation to Efficiently Serve the Long Tail in Peer-Assisted Content Delivery Systems

Improving Peer-to-Peer File Distribution: Winner Doesn t Have to Take All

Towards the Coevolution of Incentives in BitTorrent

On Feasibility of P2P Traffic Control through Network Performance Manipulation

Attacks and exploits targeting BitTorrent and other P2P file sharing networks

On swarm-level resource allocation in BitTorrent communities

P2P Applications. Reti di Elaboratori Corso di Laurea in Informatica Università degli Studi di Roma La Sapienza

METHODOLOGIES TO IMPROVE THE PERFORMANCE OF A BITTORRENT LIKE PEER TO PEER NETWORK

Performance Analysis and Improvement for BitTorrent-like File Sharing Systems

Cache Capacity Allocation to Overlay Swarms

Do incentives build robustness in BitTorrent?

A Survey Of Free-Ridingbehaviour In Peer-To-Peer Networks

Cooperation in Open Distributed Systems. Stefan Schmid

A Further Look at the Distance-Availability Weighted Piece Selection Method

BitTorrent from swarms to collectives

BitTorrent Optimization Techniques. (from various online sources)

arxiv:cs.ni/ v1 21 Nov 2006

Protected and Effective Transmission of Data in Peer-To-Peer Network Using SGA

A Case For OneSwarm. Tom Anderson University of Washington.

Peer-to-Peer Applications Reading: 9.4

Extreme Computing. BitTorrent and incentive-based overlay networks.

On maximum throughput in BitTorrent

ANALYZING PEER SELECTION POLICIES FOR BITTORRENT MULTIMEDIA ON-DEMAND STREAMING SYSTEMS IN INTERNET

Delft University of Technology Parallel and Distributed Systems Report Series. Investment strategies for credit-based P2P communities

Robustness of BitTorrent-like VoD Protocols

CSE 486/586 Distributed Systems Peer-to-Peer Architectures

Using Torrent Inflation to Efficiently Serve the Long Tail in Peer-Assisted Content Delivery Systems

BitTorrent. Internet Technologies and Applications

Performance Analysis of BitTorrent Protocol

BiToS: Enhancing BitTorrent for Supporting Streaming Applications

CS 3516: Advanced Computer Networks

Collaborative Multi-Source Scheme for Multimedia Content Distribution

Content Overlays (continued) Nick Feamster CS 7260 March 26, 2007

The Seed Attack: Can BitTorrent be Nipped in the Bud?

T-Chain: A General Incentive Scheme for Cooperative Computing

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

Application-Layer Protocols Peer-to-Peer Systems, Media Streaming & Content Delivery Networks

5. Bi&orrent and coopera0on

THE PEER-TO-PEER (P2P) paradigm has proved to be

A game-theoretic framework for ISPs interactions in the context of Economic Traffic Management

Lecture 8: Application Layer P2P Applications and DHTs

improving the performance and robustness of P2P live streaming with Contracts

416 Distributed Systems. Mar 3, Peer-to-Peer Part 2

Improving Performance of BitTorrent Network through Incentive Mechanism

CS 3516: Computer Networks

Understanding BitTorrent: An Experimental Perspective

Application Layer: P2P File Distribution

BitTorrent for the Less Privileged

FairTorrent: Bringing Fairness to Peer-to-Peer Systems. Alex Sherman, Jason Nieh, and Cliff Stein Department of Computer Science Columbia University

Bandwidth Trading in Unstructured P2P Content Distribution Networks

Modeling and Performance Analysis of BitTorrent-Like Peer-to-Peer Networks

On Randomness in ISP-friendly P2P Applications

Efficiency of Data Distribution in BitTorrent-Like Systems

Leveraging BitTorrent for End Host Measurements

Stealing Bandwidth from BitTorrent Seeders

Cooperative File Sharing in Hybrid Delay Tolerant Networks

Scalability of the BitTorrent P2P Application

CS 43: Computer Networks BitTorrent & Content Distribution. Kevin Webb Swarthmore College September 28, 2017

Impact of Inner Parameters and Overlay Structure on the Performance of BitTorrent

Understanding BitTorrent: An Experimental Perspective

Chapter 2: Application layer

Small Is Not Always Beautiful

The Design Trade-offs of BitTorrent-like File Sharing Protocols

Distributed Data Management. Christoph Lofi Institut für Informationssysteme Technische Universität Braunschweig

Peer-to-Peer Streaming Systems. Behzad Akbari

Reti P2P per file distribution: BitTorrent

BitTorrent Fairness Analysis

Dissecting BitTorrent: Five Months in a Torrent s Lifetime

Peer-to-Peer Media Streaming

ARTICLE IN PRESS. Journal of Network and Computer Applications

Page 1. How Did it Start?" Model" Main Challenge" CS162 Operating Systems and Systems Programming Lecture 24. Peer-to-Peer Networks"

DISTRIBUTED SYSTEMS CSCI 4963/ /4/2015

INVESTIGATING AND IMPROVING BITTORRENT S PIECE AND NEIGHBOR SELECTION ALGORITHMS

Cooperative End-to-end content distribution. Márk Jelasity

LECT-01, S-1 IAD99S, Javed I.

PEER-TO-PEER (P2P) content sharing protocols dominate the

Last Lecture SMTP. SUNY at Buffalo; CSE 489/589 Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 1

CMSC 332 Computer Networks P2P and Sockets

Transcription:

1/1 Changing the Unchoking Policy for an Enhnaced BitTorrent Vaggelis Atlidakis, Mema Roussopoulos and Alex Delis Department of Informatics and Telecommunications, University of Athens, 15748, Greece April 25, 2016

2/1 Problem Statement Given: 1. An uploading peer A that receives data requests from ν downloaders under a BitTorrent swarm. 2. Peer A should upload to only four downloaders at a time: Three regular unchoked peers; selected under regular unchoking tit-for-tat schema. One optimistic unchoked peer; selected under optimistic unchoking schema, at random. We modify: The unbiased random selection of original BT. Which downloader should be selected optimistic unchoked?

Outline 3/1

Introduction 4/1 BitTorrent Statistics BitTorrent has 150 million active users in 2012 [BT] Accounts for 27%-57% of internet traffic in Europe, according to [IPQ] pre-bittorrent era Napster, Gnutella and Fast-Track were used for transferring large multimedia files before BitTorrent. BT s predecessors were using centralized indexing methods BT s predecessors were lacking a tit-for-tat schema among peers.

Introduction 5/1 BitTorrent Decentralized Nature Peers play a dual role by being both a server and/or a client at times. No central authority point. A tit-for-tat schema is implemented locally in peers. Operation BitTorrent operates at there different layers: 1. At the swarm layer: a peer contacts a tracker to receive a list of other peers to connect to. 2. At the neighborhood layer: the core reciprocation mechanism is implemented. 3. At the data layer: a file is viewed as a concatenation of fixed-size data pieces.

Introduction 6/1 Unchoking Policy We modify the neighborhood selection mechanism, known as peer unchoking [Coh. 03]; Peer unchoking includes: Regular Unchoking: implements a tit-for-tat schema that allocates bandwidth preferably to peers sending data (top-3 uploaders). Optimistic Unchoking: an additional peers is kept unchoked regardless of its contribution (a random peer). Question: How an uploader should allocate its optimistic unchoke intervals to downloaders to enhance the cooperation of peers?

Optimistic Unchoking Policy Enhanced BT 7/1 Why Optimistic Unchoking? Guarantees that new peers have a chance of downloading one first piece without having sent any. Randomly connect to new peers (reach better uploaders??). Original BT [Coh. 03] The original optimistic unchoking policy uses a round-robin approach. Enhanced BT [Atlid. 12] Modify round-robin selection of native BT. Rotate optimistic unchoked peer in a prioritized way. Yielding the right-of-way to peers with few clients interested in downloading from them. (why?)

Enhanced BT 8/1 Enhanced BT Messages Peer Messages For our enhanced BT we use messages of the original BT. We augment the have state-oriented message with an additional value. The latter corresponds to the number of interested connection of the sender.

Enhanced BT Messages Enhanced BT 9/1 The messages in use can be categorized into: 1. swarm oriented 2. state oriented 3. data oriented Swarm Oriented join join response peerset peerset response leave State Oriented (un)choke (un)interested have modify bitfield handshake Data Oriented request piece cancel

Enhanced BT 10/1 Ratio of Interest We define the ratio of interest of a peer p: RI p = intp act p int p is the number of interested connections peer p maintains act p is the number of active connections peer p maintains (usually fixed to 40) Any peer p receives data request only via connections marked as interested.

Ratio of Interest Enhanced BT 11/1 We use the Ratio of interest RI as a measure of peers uploading utilization: Peers with a low ratio of interest: Receive few data requests. Are likely to be underutilized and/or idle. Should be selected optimistic unchoked.

Algorithms Enhanced BT 12/1 Algorithms 1 and 2 implement our Enhanced Unchoking policy; leech state and seed state, respectively. Algorithms are invoked: 1. every 10 seconds. 2. every time a peer disconnects from local client. 3. when an unchoked peer becomes (un)interested; When Algorithms invoked, a new round starts; a round ranges from 1 to 3. Every first round set the peer with Min{RI p} optimistic unchoked.

Evaluation 13/1 Evaluation Experimental Setup Use 40 workstations (1GHz clock, 1GB M.M.). Local Ethernet network. 150 peers: 15 seeders, 135 leechers. Distribution of an 700MB file. Experimental Objectives Compare the quality of peer inter-connections. Examine pieces uploaded from leechers and seeders. Ascertain altruism perented by enhanced BT leechers.

Ratio of Interest 1.25 interested connections 50 Ratio of interest 1 0.75 0.5 0.25 0 0 100 200 300 400 500 600 0 40 30 20 10 Number of interested connections Enhanced BT Average ratio of interest: 0.30 per peer. High coverage of samples near Max value. All peers act as intermediaries (downloading and uploading). The ratio of interest is uniformly decreased. time(seconds) 1.25 interested connections 50 Native BT Ratio of interest 1 0.75 0.5 0.25 40 30 20 10 Number of interested connections Average ratio of interest: 0.22 per peer. More underutilized peers with low ratio of interest. Ratio of interest asymptotically reaches zero when the majority complete downloading. Idle peers experience a severely increased downloading time. 0 0 0 500 1000 1500 2000 time(seconds) Evaluation 14/1

Uploading Contribution Altruism pieces uploaded pieces uploaded 3000 2500 2000 1500 1000 500 3000 2500 2000 1500 1000 500 instant altruism y=x 500 1000 1500 pieces downloaded instant altruism y=x (i) altruism > 1 (ii) altruism < 1 (i) altruism > 1 (ii) altruism < 1 Altruism = pieces up pieces down Enhanced BT A non-negligible number of peers clustered into area (i). Altruistic leechers upload more than 2, 500 pieces. Leechers in the area (i) act more as uploaders than downloaders. Provide swarm with additional uploading capacity. Native BT Only a handful of peers in area (i). Leechers upload at most 1, 300 pieces. 500 1000 1500 pieces downloaded Evaluation 15/1

Aggregate Uploading Contribution 70 Enhanced BT Native BT Uploaded Data (GB) 60 50 40 30 20 10 0 0 0.25 0.5 0.75 1 Cumulative function of leechers Leechers Altruistic enhanced BT leechers uploaded 70GB. Native BT leechers uploaded 60GB Uploaded Data (GB) 20 10 Enhaned BT Native BT Seeders Decongested BT seeders uploaded 10GB. Native BT seeders uploaded 20GB. 0 0 0.5 1 Cumulative function of seeders Evaluation 16/1

Conclusions Future Work 17/1 Conclusions Future Work Conclusions Enhanced BT displays a higher number of directly-connected and interested-in-cooperation peers. Creating altruistic leechers who act more as uploaders than downloaders. More peers act as data intermediaries, relieve the burden of seeders. Future work Experimentation in PlanetLab [PL]. Present a mathematical model that captures performance improvement under our approach.

Related Work 18/1 Related Work Analytical Models Downloading time, effectiveness: [Qiu 04]. Heterogeneous Users: [Alix 09], [Liao 07]. Game theoretic analysis: [Rah. 11]. Unchoking Policy Reciprocation/Incentive compatibility: [Men. 10], [Pia. 07]. Free riding: [Sir. 07], [Ju. 05], [Shin 09], [Pet. 09].

Related Work 19/1 Related Work Differences from prior work The very first to modify optimistic policy. No complex incentive policy is suggested.cd Treat underutilized peers as nodes that lack data to upload. Locate idle peers and reward them with bonus optimistic unchoking slots.

References Related Work 20/1 BT The Bittorrent Protocol, http://www.bittorrent.org/beps. IPQ Internet Study, http://www.ipoque.com. Coh. 03 B. Cohen, Incentives Build Robustness in BitTorrent, In USENIX IPTPS, Berkeley, CA, USA, February 2003. PLab PlanetLab platform, http://www.planet-lab.org. Qiu 04 D. Qiu and R. Srikant, Modeling and Performance Analysis of BitTorrent-like Peer-to-Peer Networks, In ACM SIGCOMM, Portland, OR, USA, August 2004 Alix 09 Alix L., Chow, L. Golubchik, and V. Misra, BitTorrent: An Extensible Heterogeneous Model, In IEEE INFOCOM, pages 585-593, Rio De Janeiro, Brazil, April 2009. Liao 07 W.C. Liao, F. Papadopoulos, and K. Psounis, Performance analysis of BitTorrent-like systems with heterogeneous users, Performance Evaluation, 64(9-12):876-891, September 2007.

References Related Work 21/1 Rah. 11 R. Rahman, T. Vink, D. Hales, J. A. Pouwelse, and H. J. Sips, Design Space Analysis for Modeling Incentives in Distributed Systems, In ACM SIGCOMM, pages 182-193, Toronto, ON, Canada, August 2011. Men. 10 D.S. Menasche, L. Massoulie, and D.F. Towsley, Reciprocity and Barter in Peer-to-Peer Systems, In IEEE INFOCOM, pages 1505-1513, San Diego, CA, USA, March 2010. Pia. 07 M. Piatek, T. Isdal, T.E. Anderson, A. Krishnamurthy, and A. Venkataramani, Do Incentives Build Robustness in BitTorrent?, In USENIX NSDI, Cambridge, MA, USA, April 2007. Sir. 07 Michael Sirivianos and Jong Han Park and Rex Chen and Xiaowei Yang, Free-riding in BitTorrent Networks with the Large View Exploit, In USENIX IPTPS, Bellevue, WA, USA, February 2007.

References Related Work 22/1 Ju. 05 S. Jun and M. Ahamad, Incentives in BitTorrent Induce Free Riding, In ACM SIGCOMM-Workshops, pages 116-121, Philadelphia, PA, USA, August 2005. Shin 09 K. Shin, D.S. Reeves, and I. Rhee. Treat-before-Trick: Free-Riding Prevention for BitTorrent-like Peer-to-Peer Networks, In IEEE IPDPS, pages 1-12, Rome, Italy, May 2009. Pet. 09 R. Peterson and E.G. Sirer, AntFarm: Efficient Content Distribution with Managed Swarms, In USENIX NSDI, pages 107-122, Boston, MA, USA, April 2009.

Appendix - Algorithm 1 appendix 23/1 Algorithm 1 peer unchoking algorithm for client in leech state Input: Uploaders, Downloaders, RI p Downloaders 1: Interested {p : p Downloaders AND p interested in local client} 2: if round = 1 then 3: OU {p : Min{RI p} p Interested} 4: unchoke OU 5: end if 6: RU {p : p Top3 Uploaders} 7: for p Interested do 8: if p RU then 9: unchoke p 10: else 11: choke p 12: end if 13: end for 14: if OU RU then 15: repeat 16: choose p Downloaders 17: unchoke p 18: until p Interested 19: end if

Appendix - Algorithm 2 appendix 24/1 Algorithm 2 peer unchoking algorithm for client in seed state Input: Downloaders, RI p Downloaders 1: temp1 {p : p Downloaders AND has pending requests OR recently unchoked} 2: sort temp1 according to last unchoke time 3: temp2 {p : p Downloaders AND p / temp1} 4: sort temp2 according to downloading rate 5: if round = 1, 2 then 6: RU {p i=1,2,3 temp1+temp2} 7: OU {p : Min{RI p} p temp1+temp2} 8: unchoke OU 9: else 10: RU {p i=1,2,3,4 temp1+temp2} 11: end if 12: for p D do 13: if p RU then 14: unchoke p 15: else 16: choke p 17: end if 18: end for

contact 25/1 Contact info Contact info: v.atlidakis <at> gmail <dot> com. ad <at> di <dot> uoa <dot> gr. mema <at> di <dot> uoa <dot> gr.