Locally Self-Adjusting Tree Networks Chen Avin (BGU) Bernhard - - PowerPoint PPT Presentation

locally self adjusting tree networks
SMART_READER_LITE
LIVE PREVIEW

Locally Self-Adjusting Tree Networks Chen Avin (BGU) Bernhard - - PowerPoint PPT Presentation

Locally Self-Adjusting Tree Networks Chen Avin (BGU) Bernhard Hupler (MIT) Zvi Lotker (BGU) Christian Scheideler (U. Paderborn) Stefan Schmid (T-Labs) 1 From Optimal Networks to Self -Adjusting Networks Networks become more and


slide-1
SLIDE 1

Locally Self-Adjusting Tree Networks

1

Chen Avin (BGU) Bernhard Häupler (MIT) Zvi Lotker (BGU) Christian Scheideler (U. Paderborn) Stefan Schmid (T-Labs)

slide-2
SLIDE 2

From “Optimal” Networks to Self-Adjusting Networks

2

  • Networks become more and more dynamic (e.g., flexible SDN control)
  • Vision: go beyond classic “optimal” static networks
  • Example (of this paper): Peer-to-peer

Chord, Pastry, SHELL Koorde, ... Pancake

  • Hypercubic
  • Log diameter
  • Log degree
  • Log routing
  • Constant degree
  • Log routing
  • Log/loglog degree and

log/loglog routing

Stefan Schmid (T-Labs)

slide-3
SLIDE 3

From “Optimal” Networks to Self-Adjusting Networks

3

  • Networks become more and more dynamic (e.g., flexible SDN control)
  • Vision: go beyond classic “optimal” static networks
  • Example: Peer-to-peer

Chord, Pastry, SHELL Koorde, ... Pancake

  • Hypercubic
  • Log diameter
  • Log degree
  • Log routing
  • Constant degree
  • Log routing
  • Log/loglog degree and

log/loglog routing

Wh What at if if ne networks

  • rks coul
  • uld

d sel elf-adjust adjust de depe pendin nding g

  • n
  • n comm
  • mmunic

unication ation pat attern? ern?

Stefan Schmid (T-Labs)

slide-4
SLIDE 4

An Old Concept: Move-to-front, Splay Trees, …

4

  • Classic data structures: lists, trees
  • Linked list: move frequently accessed elements to front!
  • Trees: move frequently accessed elements closer to root

Stefan Schmid (T-Labs)

slide-5
SLIDE 5

An Old Concept: Move-to-front, Splay Trees, …

5

  • Classic data structures: lists, trees
  • Linked list: move frequently accessed elements to front!
  • Trees: move frequently accessed elements closer to root

Stefan Schmid (T-Labs)

slide-6
SLIDE 6

An Old Concept: Move-to-front, Splay Trees, …

6

  • Classic data structures: lists, trees
  • Linked list: move frequently accessed elements to front!
  • Trees: move frequently accessed elements closer to root

Stefan Schmid (T-Labs)

slide-7
SLIDE 7

An Old Concept: Move-to-front, Splay Trees, …

7

  • Classic data structures: lists, trees
  • Linked list: move frequently accessed elements to front!
  • Trees: move frequently accessed elements closer to root

Stefan Schmid (T-Labs)

slide-8
SLIDE 8

An Old Concept: Move-to-front, Splay Trees, …

8

  • Classic data structures: lists, trees
  • Linked list: move frequently accessed elements to front!
  • Trees: move frequently accessed elements closer to root

Stefan Schmid (T-Labs)

slide-9
SLIDE 9

An Old Concept: Move-to-front, Splay Trees, …

9

  • Classic data structures: lists, trees
  • Linked list: move frequently accessed elements to front!
  • Trees: move frequently accessed elements closer to root

Splay Trees!

Stefan Schmid (T-Labs)

Splay Trees!

slide-10
SLIDE 10

The Vision: Splay Networks (“Distributed Splay Trees”)

10

  • Most simple self-adjusting tree network: Binary Search Tree (BST)

Stefan Schmid (T-Labs)

slide-11
SLIDE 11

The Vision: Splay Networks (“Distributed Splay Trees”)

11

  • Most simple self-adjusting tree network: Binary Search Tree (BST)

Stefan Schmid (T-Labs)

slide-12
SLIDE 12

The Vision: Splay Networks (“Distributed Splay Trees”)

12

  • Most simple self-adjusting tree network: Binary Search Tree (BST)

Stefan Schmid (T-Labs)

Communication between peer pairs! (Not only lookups from root…)

slide-13
SLIDE 13

The Vision: Splay Networks (“Distributed Splay Trees”)

13

  • Most simple self-adjusting tree network: Binary Search Tree (BST)

Stefan Schmid (T-Labs)

Why BST?!

  • Most simple generalization of

classic data structure

  • Allows for local routing!
  • Allows for algebraic gossip
slide-14
SLIDE 14

Model: Self-Adjusting SplayNets

14

Input:

  • communication pattern:

(static or dynamic) graph

Stefan Schmid (T-Labs)

Output:

  • sequence of network adjustments

Cost metric:

  • expected path length
  • # (local) network updates

“Host Graph” “Guest Graph”

slide-15
SLIDE 15

Our Contribution

15

SplayNets

  • “Online algorithm” for

self-adjusting distributed trees

  • Optimal offline algorithm

(polynomial time, for large class

  • f graphs!)

Stefan Schmid (T-Labs)

Performance evaluation:

  • General bounds on amortized costs
  • Lower bounds (empirical entropy)
  • Analysis of convergence times

for important static comm. patterns

  • Optimality of online algorithm for

special patterns (e.g., matchings)

  • Simulation study (Facebook data)
slide-16
SLIDE 16

The Optimal Offline Solution

16

Stefan Schmid (T-Labs)

Dynamic program

  • Binary search:

decouple left from right!

  • Polynomial time

(unlike MLA!)

  • So: solved M”BST”A

See also:

  • Related problem of

phylogenetic trees

OPT OPT OPT

slide-17
SLIDE 17

The Online SplayNets Algorithm

17

Stefan Schmid (T-Labs)

From Splay tree to SplayNet:

slide-18
SLIDE 18

The Online SplayNets Algorithm

18

Stefan Schmid (T-Labs)

From Splay tree to SplayNet:

slide-19
SLIDE 19

The Online SplayNets Algorithm

19

Stefan Schmid (T-Labs)

From Splay tree to SplayNet:

Least Common Ancestor Local rotations!

slide-20
SLIDE 20

Analysis: Basic Lower and Upper Bounds

20

Stefan Schmid (T-Labs)

Adaption of Tarjan&Sleator

A-Cost < H(X) + H(Y)

Upper Bound

where H(X) and H(Y) are empirical entropies of sources

  • resp. destinations

A-Cost > H(X|Y) + H(Y|X)

Lower Bound

where H( | ) are conditional entropies.

Assuming that each node is the root for “its tree” Therefore, our algorithm is optimal, e.g., if communication pattern describes a product distribution!

slide-21
SLIDE 21

Properties: Convergence

21

Stefan Schmid (T-Labs)

Nodes communicate within local clusters only!

Over time, nodes will form clusters in BST! No paths “outside”.

Cluster scenario:

IDs

slide-22
SLIDE 22

Properties: Optimal Solutions

22

Stefan Schmid (T-Labs)

Will converge to optimum: Amortized costs 1.

Laminated scenario:

IDs Will converge to optimum: Amortized costs 1.

Non-crossing matching (= “no polygamy”) scenario:

IDs

slide-23
SLIDE 23

Properties: Optimal Solutions

23

Stefan Schmid (T-Labs)

Multicast scenario (BST): Example Invariant over “stable” subtrees (from right):

slide-24
SLIDE 24

Improved Lower Bounds (and More Optimality)

24

Stefan Schmid (T-Labs)

Cut of interval: entropy yields amortized costs!

Via interval cuts or conductance entropy:

IDs

Grid:

slide-25
SLIDE 25

Simulation Results

25

Stefan Schmid (T-Labs)

  • Facebook component with 63k nodes and 800k edges
  • SplayNet exploit random walk locality, to less extent also matching
slide-26
SLIDE 26

Conclusion

26

Stefan Schmid (T-Labs)

  • Vision: self-adjusting networks
  • Interesting generalization of Splay trees
  • SplayNets
  • Formal analysis reveals nice properties
  • Amortized costs good: but tight?
  • Competitive ratio remains open
  • Future work? Yes 
slide-27
SLIDE 27

Thank you! Questions?

27

Stefan Schmid (T-Labs)

“Host Graph” “Guest Graph”