Boosting Market Liquidity of Peer-to-Peer Systems Through Cyclic Trading

Similar documents
Do incentives build robustness in BitTorrent?

Cooperation in Open Distributed Systems. Stefan Schmid

BitTorrent for Really Selfish Peers T4T Trading over Cycles

Dynamics, Non-Cooperation, and Other Algorithmic Challenges in Peer-to-Peer Computing

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

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

On Feasibility of P2P Traffic Control through Network Performance Manipulation

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

Game Theory. Presented by Hakim Weatherspoon

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

Design Space Analysis for Modeling Incentives in Distributed Systems

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

What If Some Peers Are More Equal than Others?

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

Lecture 8: Application Layer P2P Applications and DHTs

BitTorrent from swarms to collectives

Application Layer: P2P File Distribution

Peer-to-Peer Applications Reading: 9.4

Extreme Computing. BitTorrent and incentive-based overlay networks.

Modeling Leechers Attack in BitTorrent

Peer-to-Peer Streaming Systems. Behzad Akbari

Introduction to P P Networks

Do incentives build robustness in BitTorrent?

Attacks and exploits targeting BitTorrent and other P2P file sharing networks

Introduction to Distributed Computing Systems

CMSC 332 Computer Networks P2P and Sockets

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

Chapter 2: Application layer

Some Peers Are More Equal than Others! Stefan Schmid

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

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

Contracts: Practical Contribution Incentives for P2P Live Streaming

Performance Improvements of Peer-to-Peer File Sharing

Performance Analysis and Improvement for BitTorrent-like File Sharing Systems

Scalability of the BitTorrent P2P Application

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

Improving BitTorrent: A Simple Approach

Traffic Patterns in Peer-to-Peer-Networking. Christian Schindelhauer. joint work with Amir Alsbih Thomas Janson

internet technologies and standards

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

Second Generation P2P Live Streaming

Lecture 17: Peer-to-Peer System and BitTorrent

FairTorrent: A Deficit-Based Distributed Algorithm to Ensure Fairness in Peer-to-Peer Systems

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

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

GIAN Course on Distributed Network Algorithms. Network Topologies and Local Routing

Systems Infrastructure for Data Science. Web Science Group Uni Freiburg WS 2012/13

P2P content distribution Jukka K. Nurminen

BitRiver: Final Report

Distributed Data Management

A Measurement Study of Attacks on BitTorrent Seeds

Systematic Cooperation in P2P Grids

CS 3516: Advanced Computer Networks

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

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

ISP-Aided Neighbor Selection for P2P Systems

BitTorrent for the Less Privileged

Topic 6: SDN in practice: Microsoft's SWAN. Student: Miladinovic Djordje Date:

improving the performance and robustness of P2P live streaming with Contracts

BitTorrent Optimization Techniques. (from various online sources)

FG INET: Intelligent Networks

building BitTyrant, a (more) strategic BitTorrent client

Taming the Flood: How I Learned to Stop Worrying and Love the Swarm Yogesh Vedpathak Cleversafe

Improving Performance of BitTorrent Network through Incentive Mechanism

A Case For OneSwarm. Tom Anderson University of Washington.

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

Modeling, Analysis and Improvement for BitTorrent-Like File Sharing Networks

Peer-to-Peer Networks 12 Fast Download

P2P Content Distribution

inria , version 1-6 Sep 2006

5. Bi&orrent and coopera0on

Distributed Data Management

BitTorrent and CoolStreaming

T-Chain: A General Incentive Scheme for Cooperative Computing

Programmable Peer-to-Peer Systems

Topology Enhancement in Wireless Multihop Networks: A Top-down Approach

CSC 4900 Computer Networks: P2P and Sockets

Changing the Unchoking Policy for an Enhanced Bittorrent

Multi-Core Microprocessor Chips: Motivation & Challenges

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Computer Systems Engineering: Spring Quiz 2 Solutions

CS 3516: Computer Networks

IMPLEMENTATION AND EVALUATION OF THE MULTICAST FILE TRANSFER PROTOCOL (MCFTP)

Designing a Tit-for-Tat Based Peer-to-Peer Video-on-Demand System

The hidden locality in swarms

Stochastic Analysis and File Availability Enhancement for BT-like File Sharing Systems

Stochastic Models of Pull-Based Data Replication in P2P Systems

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

Incentive-Compatible Caching and Inter-Domain Traffic Engineering in CCN

A new caching policy for cloud assisted Peer-to-Peer video on-demand services

P2P content distribution

Localization based Peer2Peer traffic optimization

arxiv:cs.ni/ v1 21 Nov 2006

Designing a Tit-for-Tat Based Peer-to-Peer Video-on-Demand System

On maximum throughput in BitTorrent

Scalable overlay Networks

Robustness of BitTorrent-like VoD Protocols

GIAN Course on Distributed Network Algorithms. Network Topologies and Interconnects

BitTorrent Fairness Analysis

Performance and Scalability of Networks, Systems, and Services

BitTorrent. Internet Technologies and Applications

Transcription:

Boosting Market Liquidity of Peer-to-Peer Systems Through Cyclic Trading Raphael Eidenbenz Thomas Locher Stefan Schmid Raphael+Roger: ETH Zurich DCG Thomas: ABB Research Roger Wattenhofer T-Labs Stefan: Telekom Innovation Laboratories Stefan Schmid @ P2P (2012) 1

A Renaissance of Barter? Most economical systems today are money-based Advantages of monetary systems Money overcomes problems and inefficiencies of barter markets! More flexible: do not have to find matching good (and amount) for trade Temporal flexibility (can store money) But barter markets continue to exist Neighborhood barter markets in Barcelona Apartment barter (switch cycles of «assigned apartments» in 80ies in Russia) Organ donation markets And above all: Internet-based barter! T-Labs Stefan Schmid @ P2P (2012) 2

Example 1: Barter Markets near Tarragona! People in Barcelona meet regularly to trade stuff! T-Labs Stefan Schmid @ P2P (2012) 3

Example 2: Organ Donation Market Monetary trade with organs forbidden by law! But what if you do not have a relative who is able to donate? Mechanism design: organ market! Today, bilateral or even multilateral trades take place! Multiple transplantation must occur concurrently! (No money allowed...) 2007 Nobel Memorial Prize in Economics According to Michel Goemans (MIT), surgeries for up to 7 patients (= 14 people) simultaneously! Gammoid theory to maximize number of survivors. A. brother B B. daughter C C. nephew A T-Labs Stefan Schmid @ P2P (2012) 4

Peer-to-Peer Content Distribution Largest barter however today: Internet! For example: peer-to-peer computing Monetary solution too complex (virtual money, anonymous context,...) Peer-to-peer content distibution attractive for its scalability More peers = more uploaders («cake grows with the number of eaters») For example, used in BitTorrent, Wuala (other talk) in a hybrid manner,... But how to prevent free-riding? Bram Cohen: fairness can be achieved on a single file by trading blocks! «Tit-for-tat» like schemes: instantaneous fairness (no money!) But how to solve the bootstrap problem? Optimistic unchoking exploited by BitThief client (bitthief.ethz.ch) Strategic clients such as BitTyrant T-Labs Stefan Schmid @ P2P (2012) 5

Tit-for-Tat Trading in Swarms Usually, trades in different swarms are independent: S 2 S 2 S p p 5 p 5 p 6 3 S 5 3 p 6 p 1 p 1 p 4 p 4 S 1 p 3 p 2 p 1 S 1 p 3 p 2 p 4 Problem T4T: only peers with mutual interest can trade! Thus, T4T comes at a price of market liquidity! T-Labs Stefan Schmid @ P2P (2012) 6

Inter-Swarm and Cyclic T4T Trading S 2 p 6 p 5 S 3 p 1 p 4 p 3 p 2 Many unused trading opportunities! Idea: improve market liquidity by allowing inter-swarm trades and trades along cycles (see organ market)! S 1 Example: p1->p5->p4->p1 interest cycle! Idea: Cycle(k) looks in k-neighborhood for cycles, trade T4T along cycle! T-Labs Stefan Schmid @ P2P (2012) 7

# peers in % BitTorrent: Downloads per Peer Motivation: almost 50% of peers are active in multiple swarms simultaneously => lots of opportunities? 52.2% 18.0% 9.2% 5.4% 3.5% 6.9% 3.0% 1.8% 1 2 3 4 5 6-10 11-20 >20 # downloads Data source: C. Zhang, P. Dhungel, D. Wu, and K. W. Ross, Unraveling the BitTorrent Ecosystem IEEE Transactions on Parallel and Distributed Systems, vol. 22, no. 7, 2010. T-Labs Stefan Schmid @ P2P (2012) 8

average # cycles per peer Cross-Swarm Cycles in BitTorrent Motivation: number of (interest) cycles grows significantly with k. 1E+10 1E+8 1E+6 1E+4 1E+2 KAT TPB BTJ 1E+0 2-cycles 3-cycles 4-cycles Data source: Top 100 video torrents (highest Alexa rank) Kat.ph, Btjunkie.org, Piratebay.org T-Labs Stefan Schmid @ P2P (2012) 9

Cross-Swarm Cycles in BitTorrent Motivation: peers take part in many cycles. T-Labs Stefan Schmid @ P2P (2012) 10

Paper Overview Empirical study of number of cycles in different p2p networks Algorithm to exploit cycles Study of performance benefits (the «Price of Tit-for-Tat Mechanism») Extensive simulations (based on observed distributions, with realistic latencies, using active sets, etc.) New model for peers download preferences combining preferential attachment with co-occurrence principles Discussion of possible pitfalls, such as redundant downloads (and solutions) T-Labs Stefan Schmid @ P2P (2012) 11

Algorithm Cycle(k) At each peer p Keep track of k-neighborhood in demand/interest graph Compute possible trading cycles (brute force) Trade in tit-for-tat manner on any cycle of length at most k as long as it exists (use cycle ID): local decision T4T on cycle c p p out c p in Δ = 0; loop if(δ 0) send file block to p in ; Δ ; if(receive block on c) Δ + +; T-Labs Stefan Schmid @ P2P (2012) 12

Simulation Event-driven simulator in Java Base scenario 365 peers, 100 swarms 512 MB files, 500 KB blocks Upload bandwidth 500 KB/s, download bandwidth unlimited 1 publisher/seeder per swarm Seeds at 10 KB/s Constant and multi-modal / Gauss latencies 10 simulation runs for Intra-swarm, Cycle(k) with k = 2,3,4 Sample all D p = # downloads at p from BitTorrent data Choose D p swarms for each peer u.a.r. p starts downloads in a Poisson process with 1 = 10 min λ T-Labs Stefan Schmid @ P2P (2012) 13

Evaluation: System Throughput Take home messages: 1. Cycle(2) already nice improvement (12%) over intra-swarm! 2. Cycle(3) yields 24% increase of peak rate. 3. Higher cycles lenghts do not give you so much! (Good news as cycles are more complicated to compute, maintain, synchronize!) T-Labs Stefan Schmid @ P2P (2012) 14

Evaluation: Download Completion Times Take home messages : 1. Intra-swarm has completion time of 5h on average! 2. Cycle(2) down to 2.5h on average (49% on average, 85% of all downloads finish faster) 3. Cycle(3) improvement of 58% on average (2h 8min), 97% of all simulated downloads faster 4. Higher improvements for download time than for peak rate! But some redundant requests: twice as many duplicates as for 2-cycle! T-Labs Stefan Schmid @ P2P (2012) 15

Reduce Redundancy Trade-off liquidity vs. redundancy Problem: if too many interest cycles over a given neighbor, neighbor cannot provide so many different new blocks! Problem: peers ask random missing block, but re-request a pending block when neighbor has no non-requested blocks anymore => threat of re-requesting a block many times: redundant downloads (or unfair) x r p q Cycle Selection Restrict number of cycles over a given neighbor depending on number of blocks it has! Probabilistic Re-Request Re-request with prob ρ T-Labs Stefan Schmid @ P2P (2012) 16

Probabilistic Re-Request Good news: duplicates increase linearly with re-request probability, while for average download speed it does not help so much Tradeoff! A good choice? : ρ =.5 for Intra-swarm and Cycle(2) ρ =.1 for Cycle(3) and Cycle(4) average redundancy < 5% T-Labs Stefan Schmid @ P2P (2012) 17

Final Evaluation Further extensions: - Active set concept: peer only trades with 10 most active peers per swarm (optimistic unchoking to find new ones) - Intra-swarm (IS) vs IS with active set (as) and redundancy-avoidance mechanism in place (*) Example: compared to IS, even with as and * C3 yields reduction of download completion time of 44% (average) with 2.6% duplicates (average). T-Labs Stefan Schmid @ P2P (2012) 18

Also in the Paper.. Modeling preferences to fit clustering coefficients Preferential attachment: popular swarm more popular (but what about clustering?) Co-Occurrence: peers together in many swarms more likely also in other swarms Distributed implementation CYCT4T Approximates k-neighborhood to prune search space T-Labs Stefan Schmid @ P2P (2012) 19

Conclusion P2P, a Renaisance Age for barter? Inter-swarm trading can boost download speeds and durations (first study!) Especially short cycles useful, no big difference between Cycle(4) and higher! This is good news as short cycles are less complex! Open questions, e.g., on selfish behavior Cross-swarm trading: peerrs remain online longer, keep data as seeders? Peers prefer shorter cycles (e.g., more robust)? Collusion: fake many cycles? (Balance per peer in addition to per cycle) Privacy? Do not need to know which swarms a peer in, only interest graph: okay? T-Labs Stefan Schmid @ P2P (2012) 20

Thank You! Questions & Comments? www.net.t-labs.tu-berlin.de/~stefan

Simplified BitTorrent in a Nutshell Peers interested in same file are organized in swarm Peers in swarm trade blocks of shared file «Tit-for-tat» (actually active set trading) with some peers, seeding others, optimistic unchoking to find new active set candidates,... Tracker organizes swarm Get new set of random peers when needed T-Labs Stefan Schmid @ P2P (2012) 22

Cyclic Trading Protocol CYCT4T intable k 2 outtable source via dist id q r k 1 r r 1 r x q q x x 1 p Update: SELECT DISTINCT source, dist FROM intable WHERE distance < k 1 AND via q; Out-neighbors on cycles from r: SELECT id FROM outtable INNER JOIN intable ON outtable.id = intable.source WHERE via = r; T-Labs Stefan Schmid @ P2P (2012) 23

Cyclic Trading Protocol CYCT4T r q x CID = h p (p q p (q _) h r (r p) T-Labs Stefan Schmid @ P2P (2012) 24

Established Equilibrium utility n T-Labs Stefan Schmid @ P2P (2012) 25

BitThief: Smooth Transition utility n T-Labs Stefan Schmid @ P2P (2012) 26

BitThief: Smooth Transition utility n T-Labs Stefan Schmid @ P2P (2012) 27