24
Swarming Overlay Construction Strategies Anwar Al Hamra 1 , Nikitas Liogkas 2 , Arnaud Legout 3 , Chadi Barakat 3 1 Hariri Canadian University, Damour, Lebanon 2 Knight Equity Markets, L.P., Jersey City, NJ, USA 3 INRIA, Projet Planète, Sophia Antipolis, France

Swarming Overlay Construction Strategies

  • Upload
    kaiser

  • View
    45

  • Download
    0

Embed Size (px)

DESCRIPTION

Swarming Overlay Construction Strategies. Anwar Al Hamra 1 , Nikitas Liogkas 2 , Arnaud Legout 3 , Chadi Barakat 3 1 Hariri Canadian University, Damour, Lebanon 2 Knight Equity Markets, L.P., Jersey City, NJ, USA 3 INRIA, Projet Planète, Sophia Antipolis, France. BitTorrent Overview. - PowerPoint PPT Presentation

Citation preview

Page 1: Swarming Overlay Construction Strategies

Swarming Overlay Construction Strategies

Anwar Al Hamra1, Nikitas Liogkas2, Arnaud Legout3, Chadi Barakat3

1Hariri Canadian University, Damour, Lebanon2Knight Equity Markets, L.P., Jersey City, NJ, USA3 INRIA, Projet Planète, Sophia Antipolis, France

Page 2: Swarming Overlay Construction Strategies

BitTorrent OverviewWeb

server

Tracker

Get a .torrent file that contains the address

of the tracker

random peer set

2

Peer set (neighbor set) as defined in mainline 4.0.2 Maximum 80

connections in total Maximum 40 outgoing

connections Results in a well

connected graph• Recent peers get a chance

to be connected to old peers

Page 3: Swarming Overlay Construction Strategies

Peer Bootstrap Strategies

Three strategies Tracker

• Default method, used by all clients

DHT • Distributed tracker• Leads to the same overlay as the tracker strategy

PEX (Peer EXchange) • Implemented in most popular clients

3

Page 4: Swarming Overlay Construction Strategies

Peer Bootstrap: Current Practice

Current clients use a mix of tracker + DHT + PEX

We focus on the tracker only strategy Classical bootstrap strategy Can be used in another context Fundamental to understand its properties

4

Page 5: Swarming Overlay Construction Strategies

BitTorrent Overlay Structure

Common wisdom is that BT builds random graphs with the tracker strategy Robust to churn Low diameter D

• Important for piece selection

Does BT build a random graph?

5

Page 6: Swarming Overlay Construction Strategies

Tracker Connectivity Matrix

1000 peers40 maximum

number of outgoing connections

Not a random graphStill well connected

2000 connections between the first 80 peers and the rest of the torrent

610

192

Peers ordered by arriving time

6

Page 7: Swarming Overlay Construction Strategies

Preemption

Modification of Tracker strategy

• Just requires client support • Backward compatible

When maximum peer set size reached

Always allows incoming connections from peers redirected by the tracker

7

Page 8: Swarming Overlay Construction Strategies

PreemptionNew peer

8

Tracker only

Accept me in your peer set

Preemption

OK

Preemption enables rewiring of the graph

Page 9: Swarming Overlay Construction Strategies

Connectivity Matrices Omax=40

PreemptionTracker

9

Page 10: Swarming Overlay Construction Strategies

Focus of the Presentation

Impact of Omax during the flash crowd phase Churn might improve overlay structure But, flash crowd is the most critical phase

• Single seed• Overlay structure dictates pieces propagation

Impact of Omax during flash crowd on the overlay structure obtained with Tracker Preemption

10

Page 11: Swarming Overlay Construction Strategies

Outline

BackgroundImpact of Omax on BitTorrent overlay

properties Connectivity matrices Metrics

11

Page 12: Swarming Overlay Construction Strategies

Methodology

Simulations with 1000 peers Validated with experiments Omax: 5 to 80 Max peer set size: 80 Tracker returns 50 peers

Flash crowd phase Before the first peer leaves the torrent

12

Page 13: Swarming Overlay Construction Strategies

Connectivity Matrices Omax=20

PreemptionTracker

13

Page 14: Swarming Overlay Construction Strategies

Connectivity Matrices Omax=40

PreemptionTracker

14

Page 15: Swarming Overlay Construction Strategies

Connectivity Matrices Omax=60

Tracker Preemption

15

Page 16: Swarming Overlay Construction Strategies

Connectivity Matrices Omax=80

Tracker PreemptionPartition

16

Page 17: Swarming Overlay Construction Strategies

Outline

BackgroundImpact of Omax on BitTorrent overlay

properties Connectivity matrices Metrics

17

Page 18: Swarming Overlay Construction Strategies

Metrics

Bottleneck index Ratio of the number of connections

between the first 80 peers and the rest of the peers, to the maximum possible number of such connections (80 ¤ 80 = 6400 connections)

Indication of the presence of a bottleneck between the initial seed peer set and the rest of the torrent

18

Page 19: Swarming Overlay Construction Strategies

Metrics

Average peer set size Average number of neighbors for all

peersDiameter

Longest shortest path between any two peers

19

Page 20: Swarming Overlay Construction Strategies

Results

20

Page 21: Swarming Overlay Construction Strategies

Results

partition

21

Page 22: Swarming Overlay Construction Strategies

Which Omax?

Tracker strategy 20 to 40 gives a good tradeoff 40 to 80 is used in current clients

Preemption 80 is optimal for the three metrics With preemption no more the need to

define a constraint on Omax

22

Page 23: Swarming Overlay Construction Strategies

Conclusion

The BitTorrent overlay is not random with tracker only strategy Specific structure Omax is an important parameter

Preemption strategy improves overlay structure No more need to set Omax Outperforms tracker strategy for all 3

metrics 23

Page 24: Swarming Overlay Construction Strategies

Thank you!

Questions?

Simulator available at:http://planete.inria.fr/software/BitSim/

Advertisement: If you are interested in P2P locality, have a look at

Stevens Le Blond, Arnaud Legout, Walid Dabbous. Pushing BitTorrent Locality to the Limit. Technical Report (inria-

00343822, version 2 - 12 May 2009), INRIA, Sophia Antipolis, May 2009.

http://hal.inria.fr/inria-00343822/en/