Adaptive Routing of QoS-Constrained Media Streams over Scalable - - PowerPoint PPT Presentation

adaptive routing of qos constrained media streams over
SMART_READER_LITE
LIVE PREVIEW

Adaptive Routing of QoS-Constrained Media Streams over Scalable - - PowerPoint PPT Presentation

Adaptive Routing of QoS-Constrained Media Streams over Scalable Overlay Topologies Gerald Fry and Richard West Boston University Boston, MA 02215 {gfry,richwest}@cs.bu.edu Computer Science Introduction Computer Science Internet growth


slide-1
SLIDE 1

Computer Science

Adaptive Routing of QoS-Constrained Media Streams over Scalable Overlay Topologies

Gerald Fry and Richard West Boston University Boston, MA 02215 {gfry,richwest}@cs.bu.edu

slide-2
SLIDE 2

Computer Science

Introduction

Internet growth has stimulated development of real- time distributed applications

e.g., streaming media delivery, interactive distance learning, webcasting (e.g., SHOUTcast)

Peer-to-peer (P2P) systems now popular

Efficiently locate & retrieve data (e.g., mp3s) e.g., Gnutella, Freenet, Kazaa, Chord, CAN, Pastry

To date, limited work on scalable delivery & processing of QoS-constrained data streams

slide-3
SLIDE 3

Computer Science

Objectives

Scalable overlay networks

Devise a logical network that can support many thousands of hosts Minimize the average (logical) hop count between nodes

Efficient delivery of data streams

Route arbitrary messages (eg., video data packets) along the overlay topology Reduce routing latency by considering physical proximity

How can logical positions of hosts be adapted to reduce lateness with respect to deadlines?

slide-4
SLIDE 4

Computer Science

Contributions

Focus on scalable delivery of real-time media streams

Analysis of k-ary n-cube graphs as structures for overlay topologies Comparison of overlay routing algorithms Dynamic host relocation in logical space based

  • n QoS constraints

Applications: live video broadcasts, resource intensive sensor streams, data intensive scientific applications

slide-5
SLIDE 5

Computer Science

Introduction (4)

Overview of this talk

Definition and properties of k-ary n-cube graphs Optimization through M-region analysis Overlay routing policies Adaptive node relocation based on per- subscriber QoS constraints Concluding remarks and future work

slide-6
SLIDE 6

Computer Science

A k-ary n-cube graph is defined by two parameters:

n = # dimensions k = radix (or base) in each dimension

Each node is associated with an identifier consisting of n base-k digits Two nodes are connected by a single edge iff:

their identifiers have n-1 identical digits, and the ith digits in both identifiers differ by exactly 1 (modulo k)

Definition of k-ary n-cube Graphs

slide-7
SLIDE 7

Computer Science

Properties of k-ary n-cube Graphs

M = kn nodes in the graph If k = 2, degree of each node is n If k > 2, degree of each node is 2n Worst-case hop count between nodes:

nk/2

Average case path length:

A(k,n) = n (k2/4)  1/k

Optimal dimensionality:

n = ln M Minimizes A(k,n) for given k and n

slide-8
SLIDE 8

Computer Science

Overlay Routing Example

Overlay is modeled as an undirected k-ary n-cube graph An edge in the overlay corresponds to a uni-cast path in the physical network

E C A G F D B H R1 R2 5 2 4 8 10 1 9 6 3 Physical view Logical view B A C D F E G H 16 18 21 19 12 10 16 7 18 14 10 8 [000] [100] [111] [101] [010] [011]

slide-9
SLIDE 9

Computer Science

Average Hop Count

H(k,n): sum of the distances from any one node to every other node in a k-ary n-cube graph Proof by induction on dimensionality, n

Base case: H(k,1) = (k2/4)  H(k,n) = H(k,n-1)k + kn-1(k2/4)  Thus, H(k,n) = kn (n (k2/4)  1/k)

  • Avg. hop count between pairs of nodes

Given by A(k,n) = H(k,n) / kn = n (k2/4)  1/k

slide-10
SLIDE 10

Computer Science

Worst-case Hop Count

Each k-ary n-cube node is represented by a string of n digits in base k Given two node identifiers:

A = a1,a2,…,an; B = b1,b2,…,bn Distance between corresponding nodes is given by the sum of each ai – bi (modulo k) Maximum distance in one dimension = k/2

Thus, the maximum path length for n dimensions = nk/2

slide-11
SLIDE 11

Computer Science

Mapping between physical and logical hosts is not necessarily one-to-one

M logical hosts m physical hosts

For routing, we must have m <= M

Destination identifier would be ambiguous

  • therwise

If m < M, some logical nodes are unassigned

Logical versus Physical Hosts

slide-12
SLIDE 12

Computer Science

M-region Analysis

Hosts joining / leaving system change value

  • f m

Initial system is bootstrapped with overlay that

  • ptimizes A(k,n)

Let M-region be range of values for m for which A(k,n) is minimized

slide-13
SLIDE 13

Computer Science

Calculating M-regions

Calculate_M-Region(int m) { i = 1; k = j = 2; while (M[i,j] < m) i++; // Start with a hypercube n = i; maxM = M[i,j]; minA = A[i,j]; incj = 1; while (i > 0) { j += incj; i--; if ((A[i,j] <= minA) && (M[i,j] > maxM)) { incj = 1; maxM = M[i,j]; minA = A[i,j]; n = i; k = j; } else incj = 0; } return k, n; }

Try to find the largest M such that: m <= M & A(k,n) is minimized

slide-14
SLIDE 14

Computer Science

M-regions

2 4 9 2 7 3 2 8 1 2 4 3 7 2 9 2 1 8 7 6 5 6 1 1 9 6 8 3 5 9 4 9 1 7 7 1 4 7 5 3 1 4 4 1 1 5 9 4 3 2 3 4 7 8 2 9 6 9

1 2 3 4 5 6 7 8 9 10 11 12 13 14

k n

M Value of k and n

e.g., m=6500 k=3, n=8, M=6561

slide-15
SLIDE 15

Computer Science

Three routing policies are investigated

Ordered Dimensional Routing (ODR) Random Ordering of Dimensions (Random) Proximity-based Greedy Routing (Greedy)

  • Forward message to neighbor along logical edge with lowest cost

that reduces hop-distance to destination

Experimental analysis done via simulation

5050 routers in physical topology (transit-stub) 65536 hosts

Overlay Routing

slide-16
SLIDE 16

Computer Science

16D Hypercube versus 16-ary 4-cube

10 20 30 40 50 60 70 80 90 100 1 2 4 8 16 32 64 128 256 512

Cumulative % of Subscribers Delay Penalty (relative to unicast)

2x16 ODR 2x16 Random 2x16 Greedy 16x4 ODR 16x4 Random 16x4 Greedy

Greedy routing up to 40% better

slide-17
SLIDE 17

Computer Science

Adaptive Node Assignment

Initially, hosts are assigned random node IDs Publisher hosts announce availability of channels

Super-nodes make info available to peers

Hosts subscribing to published channels specify QoS constraints (e.g., latency bounds) Subscribers may be relocated in logical space

to improve QoS by considering “physical proximities” of publishers & subscribers

slide-18
SLIDE 18

Computer Science

Adaptive Node Assignment (2)

Subscribe (Subscriber S, Publisher P, Depth d) { if (d == D) return; find a neighbor i of P such that i.cost(P) is maximal for all neighbors if (S.cost(P) < i.cost(P)) swap logical positions of i and S; else Subscribe (S, i, d+1); }

  • Swap S with node i up to D logical hops from P
slide-19
SLIDE 19

Computer Science

Simulation Results

Randomly generated physical topology with 5050 routers M=65536 and topology is a 16D hypercube Randomly chosen publisher plus some number of subscribers with QoS (latency) constraints Adaptive algorithm used with D=1 Greedy routing performed with & without adaptive node assignment

slide-20
SLIDE 20

Computer Science

Success if routing latency <= QoS constraint, c Success ratio = (# successes) / (# subscribers) Adaptive node assignment shows up to 5% improvement

Success Ratio

0.65 0.66 0.67 0.68 0.69 0.7 0.71 0.72 0.73 5 1 2 1 2 4 2 4 8 4 9 6 8 1 9 2 1 6 3 8 4 3 2 7 6 8 6 5 5 3 6

Group Size

Adaptive Non-adaptive

Success Ratio vs Group Size

Can potentially be improved

slide-21
SLIDE 21

Computer Science

Normalized lateness = 0, if S.cost(P) <= c Normalized lateness = (S.cost(P)-c)/c, otherwise Adaptive method can yield >20% latency reduction

512 1024 2048 4096 8192 16384 32768 65535 0.5 1 1.5 2 2.5 3 3.5 Adaptive Non-adaptive

Group Size

Average Normalized Lateness

Lateness versus Group Size

slide-22
SLIDE 22

Computer Science

Adaptive Node ID Assignment

Initial results look encouraging Improved performance likely if adaptation considers nodes at greater depth,D, from publishers

Expts only considered D=1

Adaptive node assignment attempts to minimize maximum delay between publishers and subscribers

slide-23
SLIDE 23

Computer Science

Link Stress

Previously, aimed to reduce routing latencies Important to consider physical link stress:

Avg times a message is forwarded over a given link, to multicast info from publisher(s) to all subscribers

slide-24
SLIDE 24

Computer Science

Link Stress Simulation Results

16D hypercube overlay on random physical network Randomly chosen publisher plus varying groups of subscribers Multicast trees computed from union of routing paths between publisher and each subscriber

Measure average physical link stress:

(# times message is forwarded over a link)

(# unique links required to route msg to all subscribers)

slide-25
SLIDE 25

Computer Science

Lateness versus Group Size

Variations in lateness (for pairs of columns) due in part to random locations of subscribers relative to publisher

1.5 1.6 1.7 1.8 1.9 2 2.1 2.2 2.3 2.4

Average Normalized Lateness

Group Size

512 1024 2048 4096 8192 16384 32768

slide-26
SLIDE 26

Computer Science

Link Stress versus Group Size

Greedy routing performs worse as group size increases Appears to be due to greater intersection of physical links for multicast tree (i.e. fewer physical links)

Average Link Stress Group Size 512 1024 2048 4096 8192 16384 32768 5 10 15 25 35 20 30 40

slide-27
SLIDE 27

Computer Science

Analysis of k-ary n-cube graphs as overlay topologies

Minimal average hop count M-region analysis determines optimal values for k and n.

Greedy routing

Leverages physical proximity information Significantly lower delay penalties than existing approaches based on P2P routing

Adaptive node ID re-assignment for satisfying QoS constraints

Conclusions

slide-28
SLIDE 28

Computer Science

Further investigation into alternative adaptive algorithms How does changing the overlay structure affect per-subscriber QoS constraints? Analysis of stability as hosts join and depart from the system Goal is to build an adaptive distributed system

QoS guarantees of NARADA Scalability of systems such as Pastry/Scribe

Future and Ongoing Work