schedules and overlays: interactions between information scheduling and topology management in p2p...

40
Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN) Torino, 21th January 2011

Upload: harold-myron-stafford

Post on 02-Jan-2016

218 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming

Renato Lo CignoUniversity of Trento (UNITN)

Torino, 21th January 2011

Page 2: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 2

Agenda

Selecting peers and planning transfers: topology management or information scheduling?

Scheduling in structured systems: What is the freedom?

The NAPA-WINE architecture: a reprise An approach based on offer/trade protocol Analysis of Push based scheduling on quasi-

random topologies

Page 3: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 3

Structures or Swarms

Structured systems follow regular topologies Imply a (relatively) small number of contacts Restrict freedom in scheduling information Simplify scheduling choices (if any)

Swarms do not have a regular topology Large number of neighbors Reduced sensitivity to topology changes (churn) Multiple choices for information exchange Resilient but … can they perform?

Page 4: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 4

Structured systems: Scheduling follows topology Trees & Multi-Trees The burden or

performance is entirely on the tree maintenance algorithm

Non bandwidth-optimal (trees)

Page 5: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 5

Structured systems: Scheduling follows topology

Regular trees (and forests) Suffer from heterogeneity

Trees & Multi-Trees The burden or

performance is entirely on the tree maintenance algorithm

Non bandwidth-optimal (trees)

Page 6: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 6

Structured systems: Scheduling follows topology

Uneven/unbalanced treesare hard to manage/predict

Trees & Multi-Trees The burden or

performance is entirely on the tree maintenance algorithm

Non bandwidth-optimal (trees)

Page 7: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 7

Structured systems: Scheduling follows topology

Leaves do not contribute (trees)Multi-trees are hard to match

Trees & Multi-Trees The burden or

performance is entirely on the tree maintenance algorithm

Non bandwidth-optimal (trees)

Page 8: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 8

Structured systems: Scheduling follows topology Hypercubes Bandwidth-optimal in

homogeneous settings Minimum delivery delay when

bandwidth=stream rate What if nodes are not 2N ? What if resources are not

homogeneous? Even more complex than

trees to manage

Page 9: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 9

Unstructured systems:Scheduling decisions are required The information flow does not follow the

structure of the topology Peers have a neighborhood, not parents &

children ¿ What chunk to send / request ? ¿ To / From which peer ? ¿ When ?

Page 10: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 10

Unstructured systems:Random Topologies & Blind Selection Normally based on Pull

Blind Push is too wasteful Derived from file-sharing and BitTorrent

Choose neighbors at random (nearly/biased) Often following a selfish utility function

Search in neighborhood the information (chunks) more needed from the peers that gives them fast Bad Neighborhood?

Sorry, watch TV next time … or try to change it Inefficient Neighborhood?

The networks (and other peers) will suffer … who cares!

Page 11: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 11

Unstructured systems:Random Topologies & Blind Selection

?

?

Page 12: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 12

Unstructured systems: Beyond Random Pull Required functionalities

A Peer discovery protocol If good gives a random topology (may include a tracker)

A chunk exchange protocol Includes decisions on When / Who / What and Pull / Push

Additional (useful) functionalities A Topology Management protocol

Obtains topologies with given characteristics May make use of ALTO-like oracles

A robust, efficient, chunk/peer scheduler Must be coupled to the Topology Management Requires knowledge (signaling overhead) Can be Pull/Push or mixed

Page 13: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 14

Unstructured systems:Random Topologies & Useful Selection

?

?

?

?

Page 14: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 15

Unstructured systems:Random Topologies & Useful Selection

Page 15: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 16

Unstructured systems:Random Topologies & Useful Selection

Page 16: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 17

Unstructured systems:Random Topologies & Useful Selection

Page 17: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 18

NAPA-WINE architecture

Scheduler layer

Overlay Layer

Active peers’InfoBase

Chunk buffer

PeerSelection

TradingLogic

Neighbourset

Topologycontroller

Peer-Rep

Net-Rep

Ext-Rep

REPcontroller

Video Source(s) Display(s)User Layer

ContentIngestion

Player ControlInterface

NAPA-WINE Second Video Conference22 Oct 2008 18IPv4 / IPv6 + UDP / TCP / SCTP / ...

Messaging Layer + NAT/FW traversal

Monitoring layer

MonitoringController

Pasv. meas Act. meas

Page 18: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 19

Monitoring layer

MonitoringController

Topology; Scheduling and Monitoring

Scheduler

Overlay Management

Active peers’InfoBase

Chunk buffer

PeerSelection

TradingLogic

Neighbor set

Topologycontroller

To/FromALTO

Page 19: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 20

Monitoring layer

A more abstract view

The T-Man offers a set of peers

The Scheduler feedbacks good ones / bad ones

T-Man offers more & merge based on feedbak

Neighbors

T-ManT-Man

SchedulerScheduler

Page 20: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 21

NAPA-WINE architecture: Flexibility at Work Different implementations of

Topology Controller Peer Selection Trading Logic

Give rise to different architectures and interaction models of Topology Management and Scheduling Random Topology with Offer/Trade Random Topology with Deadline Based Chunk Push and

Earliest/Latest Peer selection (DLc/ELp … more later) ALTO-based Topology and Offer/Trade ...

Page 21: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 22

Random Topology and Offer Trade T-Man try to build a random graph with high

connectivity (Nn neighbors) The scheduler

Offers buffermaps with owned chunks to Np<<Nn peers

Answer FIFO to requests selecting chunks from the buffermao

Modify Np to keep a small stable queue of chunk transmissions

Page 22: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 2323

Predictive trading

timeChunk #1 to Peer 2

Chunk #1 to Peer 5

Chunk #2to Peer 1

New Chunk Arrival

Receive SelectSend Offer

Chunk Transmission

Tdiff is the time between a new chunk arrival and the moment in which the tx queue becomes empty.

Toffer is the time between a new chunk arrival and the moment in which starts a new offer session.

Tqueue is the interval that runs from the reception of last select message until the moment in which the tx queue becomes empty.

Np is the number of neighbors that a peer contacts in every offer session.

Tdiff

Toffer Tqueue

Np

Page 23: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 2424

The Adaptative Signaling Protocol Crucial parameters

Np should match peer upload capacity If Np is too small

Peers’ upload bandwidth is not exploited at best The transmission queue empties quickly Long periods of inactivity

If Np is too large Transmission queue becomes too long Large delivery delays and, possibly, losses A lot of signaling overhead is produced

Tdiff should match the minimum RTT among neighbors to avoid long idle periods (this means Toffer = Tqueue = 0)

Page 24: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 2525

Comparison with fixed Np schemes

Chunk loss probability varying ρ.

Page 25: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 27

Offer/Trade scheduling

A form of Random Peer selection Bias towards peers that are closer & with more

bandwidth (faster to answer) Blind, or with explicit preference for peers with

higher upload (must be diffused with signaling) Chunk selection left to the destination

Selfish – does not take into account further distribution chances

Random Useful (results shown) or Latest Useful

Page 26: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 28

More on Scheduling Lots of works done

Most ignore interaction with topology, assuming either full mesh or random with high connectivity

Most ignore difference between Pull (the receiver decides what to receive and from whom) Push (the sender decides what to send and to whom)

Explored in NAPA-WINE Push/Pull differences; Mixed schemes Chunk or Peer First strategies One distributed scheme, based on “Push, Chunk First”

has been proven optimal

Page 27: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 29

Scheduling Chunks and Peers Chunks

Random Useful (RU) Latest Useful (LU) – found fragile for pushing Earliest Useful (EU) DeadLine (DL), updated dynamically

Peers Random Useful (RU) Most Deprived (MD) Earliest Latest (EL)

DLc/ELp Proven Optimal

All can be combined with “network awareness” (bandwidth, delay, ...) thus interacting with and modifying the topology

Page 28: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 30

DLc/ELp (push, chunk first) DLc: select the chunk i with the minimum deadline di

di = chunk emission time + T’ Ntx T’: any time larger than the chunk duration T Ntx: number of times this copy or the chunk has been

retransmitted by any peer Intuition: the smallest deadline identifies a chunk that is old

AND has not diffused in the system ELp: select the Peer which has the oldest most

recent chunk It is the peer which is distributing the oldest information Intuition: it is the peer that will be the first to start

distributing the chunk we give it

Page 29: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 31

DLc/ELp (push, chunk first) Distributed, but requires buffermap diffusion Robust to small neighborhoods Sensitive to stale buffermaps

Confirmation before sending? OPTIMAL

Uniform scenario with bandwidth = streaming rate All peer receive all stream with delay td

td < log N + 1

Page 30: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 32

DLc/ELp: Worst case delay comparison

DLc/ELp and LUc/ELp are optimal, but ...

Page 31: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 33

DLc/ELp: Worst case delay comparison

... LUc/ELp is fragile in face of neighborhood

reduction

Page 32: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 34

More on Scheduling The goals we have are three

1. Minimize delays: Can we do better than offer/trade?

2. Minimize bandwidth wastes: No wrong decisions

3. Be Network-Aware: refine and optimize topology

DLδc/BAβELP δ is the postponing delay and can be used also

for priorities (embedded in chunks – see the presentation on QoS for that)

β is a weight for the bandwidth parameter

Page 33: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 35

Bandwidth-Aware ELp Algorithm

weighted combination Maximize:

t − L(Pj , t) + β (s(Pj)/s(Pi)) Where β is a weight assigned to the bandwidth

component L(Pj , t) is the expected arrival of the chunk to Pj,

through the bandwidth of the sender s(Pi)

Redistribution potential of Pj

through the bandwidth of the target peer s(Pj).

Page 34: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 37

90th percentile as a function of heterogeneity with 3 classes of users

Bandwidth-Aware ELp Algorithm:Sample results

600 peers Nn 20

Page 35: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 38

Selected Literature (from NAPA-WINE)

C. Kiraly, R. Lo Cigno, and L. Abeni, “Deadline-based Differentiation in P2P Streaming,” in IEEE GLOBECOM 2010, Miami, Florida, USA, Dec. 2010

A. Carta, M. Mellia, M. Meo, and S. Traverso, “Efficient Uplink Bandwidth Utilization in P2P-TV Streaming Systems,” in IEEE GLOBECOM 2010, Miami, Florida, US), Dec. 2010

J. Seedorf, S. Niccolini, M. Stiemerling, E. Ferranti, and R. Winter, “Quantifying operational Cost-Savings through ALTO-Guidance for P2P Live Streaming,” in 3rd Workshop on Economic Traffic Management (ETM 2010), Sept. 2010

R. Fortuna, E. Leonardi, M. Mellia, M. Meo, and S. Traverso, “QoE in Pull Based P2P-TV Systems: Overlay Topology Design Tradeoffs,” in Proceedings of the 10th International Conference on Peer-to-Peer Computing 2010 (P2P'10), Delft, The Netherlands, August 2010

Page 36: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 39

Selected Literature (from NAPA-WINE)

A. Russo and R. Lo Cigno, “Delay-Aware Push/Pull Protocols for Live Video Streaming in P2P Systems,” in IEEE ICC 2010, Cape Town, South Africa, May 2010

L. Abeni, C. Kiraly, and R. Lo Cigno, “Robust Scheduling of Video Streams in Network-Aware P2P Applications,” in IEEE ICC 2010, Cape Town, South Africa, May 2010

C. Kiraly, L. Abeni, and R. Lo Cigno, “Effects of P2P Streaming on Video Quality,” in IEEE ICC 2010, Cape Town, South Africa, May 2010

A. Couto da Silva, E. Leonardi, M. Mellia, and M. Meo, “Chunk Distribution in Mesh-Based Large Scale P2P Streaming Systems: a Fluid Approach,” IEEE Transactions on Parallel and Distributed Systems, To appear

Page 37: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 40

Selected Literature (from NAPA-WINE)

R. Birke, E. Leonardi, M. Mellia, A. Bakay, T. Szemethy, C. K. amd R. Lo Cigno, F. Mathieu, L. Muscariello, S. Niccolini, J. Seedorf, and G. Tropea, “ Architecture of a Network-Aware P2P-TV Application: the NAPA-WINE Approach,” IEEE Communication Magazine, To appear

A. Couto da Silva, E. Leonardi, M. Mellia, and M. Meo, “Exploiting Heterogeneity in P2P Video Streaming,” IEEE Transactions on Computers, vol. To appear

F. Mathieu and D. Perino, “On resource aware algorithms in epidemic live streaming,” in 22nd International Teletraffic Congress (ITC22), Amsterdam, NL, 2010

M. Stiemerling and S. Kiesel, “A System for Peer-to-Peer Video Streaming in Resource Constrained Mobile Environments,” in CoNext U-NET Workshop, Rome, IT, Dec. 2009

Page 38: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 41

Selected Literature (from NAPA-WINE)

L. Abeni, C. Kiraly, and R. Lo Cigno, “Scheduling P2P Multimedia Streams: Can We Achieve Performance and Robustness?,” in IMSAA 2009, Bangalore, India, Dec. 2009

L. Abeni and A. Montresor, “Scheduling in P2P Streaming: from Algorithms to Protocols,” in IWSOS 2009, Zurich, CH, Dec. 2009

J. Seedorf, S. Kiesel, and M. Stiemerling, “Traffic Localization for P2P-Applications: The ALTO Approach,” in IEEE P2P 2009, Seattle, OR, USA, Sept. 2009

L. Abeni, C. Kiraly, and R. Lo Cigno, “SSSim: a Simple and Scalable Simulator for P2P Streaming Systems,” in 14th IEEE CAMAD, Pisa, Italy, June 2009

Page 39: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected] 42

Selected Literature (from NAPA-WINE)

R. Lobb, A. P. Couto da Silva, E. Leonardi, M. Mellia, and M. Meo, “Adaptive Overlay Topology for Mesh-Based P2P-TV Systems,” in ACM NOSSDAV 2009, Williamsburg, VA, USA, June 2009

C. Kiraly and R. Lo Cigno, “On the Effects of Overlay Localization on P2P Networks,” in IEEE Infocom 2009 Student Workshop, Rio de Janeiro, BR, Apr. 2009

A. Russo and R. Lo Cigno, “Push/Pull Protocols for Streaming in P2P Systems,” in IEEE Infocom 2009 Student Workshop, Rio de Janeiro, BR, Apr. 2009

L. Abeni, C. Kiraly, and R. Lo Cigno, “On the Optimal Scheduling of Streaming Applications in Unstructured Meshes,” in IFIP Networking, Aachen, DE, May 2009

Page 40: Schedules and Overlays: Interactions Between Information Scheduling and Topology Management in P2P Streaming Renato Lo Cigno University of Trento (UNITN)

NAPA-WINE Final Workshop – Torino 20-21 Jan 20-21, 2011

[email protected]

THE END

Thank you!

Questions? Comments?