Exploring the Stratified Shortest-Paths Problem Timothy G. Griffin - - PowerPoint PPT Presentation

exploring the stratified shortest paths problem
SMART_READER_LITE
LIVE PREVIEW

Exploring the Stratified Shortest-Paths Problem Timothy G. Griffin - - PowerPoint PPT Presentation

Exploring the Stratified Shortest-Paths Problem Timothy G. Griffin timothy.griffin@cl.cam.ac.uk Computer Laboratory University of Cambridge, UK University of Stirling SICSA Workshop 17 June 2010 T. Griffin (cl.cam.ac.uk) Exploring the


slide-1
SLIDE 1

Exploring the Stratified Shortest-Paths Problem

Timothy G. Griffin

timothy.griffin@cl.cam.ac.uk Computer Laboratory University of Cambridge, UK

University of Stirling SICSA Workshop 17 June 2010

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 1 / 33

slide-2
SLIDE 2

This Talk

Motivation

There is a long history of algebraic approaches to solving path problems in graphs. Question : Can BGP be cast in a way that falls within this tradition?

Sources

[Gri10] The Stratified Shortest-Paths Problem COMSNETS (January, 2010) TGG [SG10] Routing in Equilibrium

  • Math. Theory of Networks and Systems (July, 2010)

Jo˜ ao Lu´ ıs Sobrinho and TGG

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 2 / 33

slide-3
SLIDE 3

Shortest paths example, sp = (N∞, min, +)

1 2 3 4 5 6 5 4 2 1 4 3 The adjacency matrix A =      

1 2 3 4 5 1

∞ 2 1 6 ∞

2

2 ∞ 5 ∞ 4

3

1 5 ∞ 4 3

4

6 ∞ 4 ∞ ∞

5

∞ 4 3 ∞ ∞      

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 3 / 33

slide-4
SLIDE 4

Shortest paths example, continued

1 2 3 4 5 6 5 4 2 1 4 3 Bold arrows indicate the shortest-path tree rooted at 1. The routing matrix R =      

1 2 3 4 5 1

0 2 1 5 4

2

2 0 3 7 4

3

1 3 0 4 3

4

5 7 4 0 7

5

4 4 3 7 0       Matrix R solves this global

  • ptimality problem:

R(i, j) = min

p∈P(i, j) w(p),

where P(i, j) is the set of all paths from i to j.

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 4 / 33

slide-5
SLIDE 5

Semirings

A few examples

name S ⊕, ⊗ 1 possible routing use sp N∞ min + ∞ minimum-weight routing bw N∞ max min ∞ greatest-capacity routing rel [0, 1] max × 1 most-reliable routing use {0, 1} max min 1 usable-path routing 2W ∪ ∩ {} W shared link attributes? 2W ∩ ∪ W {} shared path attributes?

Path problems focus on global optimality

A∗(i, j) =

  • p∈P(i, j)

w(p)

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 5 / 33

slide-6
SLIDE 6

Recomended Reading

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 6 / 33

slide-7
SLIDE 7

What algebraic properties are associated with global

  • ptimality?

Distributivity

L.D : a ⊗ (b ⊕ c) = (a ⊗ b) ⊕ (a ⊗ c), R.D : (a ⊕ b) ⊗ c = (a ⊗ c) ⊕ (b ⊗ c).

What is this in sp = (N∞, min, +)?

L.DIST

: a + (b min c) = (a + b) min (a + c),

R.DIST

: (a min b) + c = (a + c) min (b + c).

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 7 / 33

slide-8
SLIDE 8

(Left) Local Optimality

Say that L is a left-locally optimal solution when L = (A ⊗ L) ⊕ I. That is, for i = j we have L(i, j) =

  • q∈V

A(i, q) ⊗ L(q, j) =

  • (i, q)∈E

w(i, q) ⊗ L(q, j), In other words, L(i, j) is the best possible value given the values L(q, j), for all out-neighbors q of source i.

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 8 / 33

slide-9
SLIDE 9

(Right) Local Optimality

Say that R is a left-locally optimal solution when R = (R ⊗ A) ⊕ I. That is, for i = j we have R(i, j) =

  • q∈V

R(i, q) ⊗ A(q, j) =

  • (q, j)∈E

R(i, q) ⊗ w(q, j), In other words, R(i, j) is the best possible value given the values R(q, j), for all in-neighbors q of destination j.

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 9 / 33

slide-10
SLIDE 10

With and Without Distributivity

With

For (well behaved) Semirings, the three optimality problems are essentially the same — locally optimal solutions are globally optimal solutions. A∗ = L = R

Without

Suppose that we drop distributivity and A∗, L, R exist. It may be the case they they are all distinct.

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 10 / 33

slide-11
SLIDE 11

A World Without Distributivity

Global Optimality

This has been studied, for example [LT91b,LT91a] in the context of circuit layout. See Chapter 5 of [BT10]. This approach does not play well with (loop-free) hop-by-hop forwarding (need tunnels!)

Left Local Optimality

At a very high level, this is the type of problem that BGP attempts to solve!!

Right Local Optimality

This approach does not play well with (loop-free) hop-by-hop forwarding (need tunnels!)

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 11 / 33

slide-12
SLIDE 12

Example

1 2 3 4 5 (5,1) (5,1) (5,4) (5,1) (10,5) (10,1) (5,1) (bandwidth, distance) with lexicographic order (bandwidth first).

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 12 / 33

slide-13
SLIDE 13

Left-locally optimal paths to node 2

1 2 3 4 5

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 13 / 33

slide-14
SLIDE 14

Right-locally optimal paths to node 2

1 2 3 4 5 5 → 2 1,3,4 → 2 5 → 2 3 → 2 4 → 2 4 → 2 3 → 2

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 14 / 33

slide-15
SLIDE 15

Functions on arcs

From (S, ⊕, ⊗, 0, 1) to (S, ⊕, F, 0, 1) Replace ⊗ with F ⊆ S → S, Replace L.D : a ⊗ (b ⊕ c) = (a ⊗ b) ⊕ (a ⊗ c) with D : f(b ⊕ c) = f(b) ⊕ f(c) Path weight is now w(p) = g(v0, v1)(g(v1, v2) · · · (g(vk−1, vk)(1) · · · )) = (g(v0, v1) ◦ g(v1, v2) ◦ · · · ◦ g(vk−1, vk))(1)

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 15 / 33

slide-16
SLIDE 16

What accounts for loss of distributivity?

Algebras can be constructed from component algebras, and we must be careful. EIGRP is an example [GS03]. Link weights may be a function of path weight. From w(v0, v1, · · · , vk) = w(v0, v1) ⊗ w(v1, · · · , vk) to w(v0, v1, · · · , vk) = g(v0, v1)(w(v1, · · · , vk)) ⊗ w(v1, · · · , vk). This makes distributivity harder to maintain (especially given the kinds of g’s natural in a routing context).

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 16 / 33

slide-17
SLIDE 17

What are the conditions needed to guarantee existence of local optima?

For a non-distributed structure S = (S, ⊕, F, 0, 1), can be used to find local optima when the following property holds.

Strictly Inflationary

S.INFL : ∀a, b ∈ S : a = 0 =

⇒ a < b ⊗ a where a ≤ b means a = a ⊕ b.

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 17 / 33

slide-18
SLIDE 18

Useful properties

(S, ⊕, F, 0, 1) property definition D ∀a, b ∈ S, f ∈ F : f(a ⊕ b) = f(a) ⊕ f(b)

INFL

∀a ∈ S, f ∈ F : a ≤ f(a)

S.INFL

∀a ∈ S, F ∈ F : a = 0 = ⇒ a < f(a) K0 ∀a, b ∈ S, f ∈ F : f(a) = f(b) = ⇒ (a = b ∨ f(a) = 0) C0 ∀a, b ∈ S, f ∈ F : f(a) = f(b) = ⇒ (f(a) = 0 ∨ f(b) = 0)

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 18 / 33

slide-19
SLIDE 19

Stratified Shortest-Paths Metrics

Metrics

(s, d) or ∞ s = ∞ is a stratum level in {0, 1, 2, . . . , m − 1}, d is a “shortest-paths” distance, Routing metrics are compared lexicographically (s1, d1) < (s2, d2) ⇐ ⇒ (s1 < s2) ∨ (s1 = s2 ∧ d1 < d2)

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 19 / 33

slide-20
SLIDE 20

Stratified Shortest-Paths Policies

Policy has form (f, d)

(f, d)(s, d′) = f(s), d + d′ (f, d)(∞) = ∞ where s, t =

(if s = ∞) (s, t) (otherwise)

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 20 / 33

slide-21
SLIDE 21

Constraint on Policies

(f, d) Either f is inflationary and 0 < d,

  • r f is strictly inflationary and 0 ≤ d.

Why?

(S.INFL(S) ∨ (INFL(S) ∧ S.INFL(T))) = ⇒ S.INFL(S ×0 T).

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 21 / 33

slide-22
SLIDE 22

All Inflationary Policy Functions for Three Strata

1 2 D K∞ C∞ 1 2 D K∞ C∞ a 1 2 ⋆ ⋆ m 2 1 2 b 1 ∞ ⋆ ⋆ n 2 1 ∞ ⋆ c 2 2 ⋆

  • 2

2 2 ⋆ ⋆ d 2 ∞ ⋆ ⋆ p 2 2 ∞ ⋆ ⋆ e ∞ 2 ⋆ q 2 ∞ 2 ⋆ f ∞ ∞ ⋆ ⋆ ⋆ r 2 ∞ ∞ ⋆ ⋆ ⋆ g 1 1 2 ⋆ s ∞ 1 2 ⋆ h 1 1 ∞ ⋆ ⋆ t ∞ 1 ∞ ⋆ ⋆ i 1 2 2 ⋆ u ∞ 2 2 ⋆ j 1 2 ∞ ⋆ ⋆ v ∞ 2 ∞ ⋆ ⋆ k 1 ∞ 2 ⋆ w ∞ ∞ 2 ⋆ ⋆ l 1 ∞ ∞ ⋆ ⋆ ⋆ x ∞ ∞ ∞ ⋆ ⋆ ⋆

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 22 / 33

slide-23
SLIDE 23

Almost shortest paths

1 2 D K∞ interpretation a 1 2 ⋆ ⋆ +0 j 1 2 ∞ ⋆ ⋆ +1 r 2 ∞ ∞ ⋆ ⋆ +2 x ∞ ∞ ∞ ⋆ ⋆ +3 b 1 ∞ ⋆ ⋆ filter 2 e ∞ 2 ⋆ filter 1 f ∞ ∞ ⋆ ⋆ filter 1, 2 s ∞ 1 2 ⋆ filter 0 t ∞ 1 ∞ ⋆ filter 0, 2 w ∞ ∞ 2 ⋆ filter 0, 1

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 23 / 33

slide-24
SLIDE 24

Shortest paths with filters, over INF3

1 2 3 4 5 (j, 1) (s, 1) (a, 10) (a, 10) (a, 1) Note that the path 5, 4, 2, 1 with weight (1, 3) would be the globally best path from node 5 to node 1. But in this case, poor node 5 is left with no path! The locally optimal solution has R(5, 1) = ∞.

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 24 / 33

slide-25
SLIDE 25

Both D and K0

This makes combined algebra distributive!

1 2 a 1 2 b 1 ∞ d 2 ∞ f ∞ ∞ j 1 2 ∞ l 1 ∞ ∞ r 2 ∞ ∞ x ∞ ∞ ∞

Why?

(D(S) ∧ D(T) ∧ K0(S)) = ⇒ D(S ×0 T)

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 25 / 33

slide-26
SLIDE 26

Example 1

0, 3 0, 4 0, 2 0, 2 0, 0 0, 1 1 2 3 4 5 6 (d, 1) (j, 1) (a, 1) (b, 1) (f, 1) (f, 1) (a, 1) (f, 1)

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 26 / 33

slide-27
SLIDE 27

Example 2

2, 4 2, 3 2, 3 1, 2 0, 0 1, 1 1 2 3 4 5 6 (f, 1) (f, 1) (l, 1) (b, 1) (d, 1) (j, 1) (f, 1) (a, 1)

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 27 / 33

slide-28
SLIDE 28

BGP : standard view

0 is the type of a downstream route, 1 is the type of a peer route, and 2 is the type of an upstream route. 1 2 f ∞ ∞ l 1 ∞ ∞

  • 2

2 2

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 28 / 33

slide-29
SLIDE 29

“Autonomous” policies

1 2 D K∞ f ∞ ∞ ⋆ ⋆ h 1 1 ∞ ⋆ l 1 ∞ ∞ ⋆ ⋆

  • 2

2 2 ⋆ p 2 2 ∞ ⋆ q 2 ∞ 2 r 2 ∞ ∞ ⋆ ⋆ t ∞ 1 ∞ ⋆ u ∞ 2 2 v ∞ 2 ∞ ⋆ w ∞ ∞ 2 ⋆ x ∞ ∞ ∞ ⋆ ⋆

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 29 / 33

slide-30
SLIDE 30

Putting BGP in context, summary

Two main differences over previous work on algebraic path problems in graphs. Natural to think that link weights are not fixed but are instead a function of the path (route) itself.

◮ Very difficult to perserve distributivity with “dependent” link weights.

When distributivity fails, look for local optimal solutions.

◮ This required some new theory.

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 30 / 33

slide-31
SLIDE 31

Open Problems

Complexity of solving for left-local solutions?

◮ Recent result by Sobrinho and Griffin [SG10] : O(V 3) with a greedy

algorithm.

◮ We know that “path vectoring” will find a solution, but still no known

bounds.

How could the > m! policies be expressed/implemented in BGP? Can this be done without giving up some autonomy? Other applications of local optimality.

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 31 / 33

slide-32
SLIDE 32

Bibliography I

[BT10] John S. Baras and George Theodorakopoulos. Path problems in networks. Morgan & Claypool, 2010. [Gri10] T. G. Griffin. The stratified shortest-paths problem. In The third International Conference on COMmunication Systems and NETworkS (COMSNETS), January 2010. [GS03] Mohamed G. Gouda and Marco Schneider. Maximizable routing metrics. IEEE/ACM Trans. Netw., 11(4):663–675, 2003. [LT91a] T. Lengauer and D. Theune. Efficient algorithms for path problems with general cost criteria. Lecture Notes in Computer Science, 510:314–326, 1991.

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 32 / 33

slide-33
SLIDE 33

Bibliography II

[LT91b] T. Lengauer and D. Theune. Unstructured path problems and the making of semirings. Lecture Notes in Computer Science, 519:189–200, 1991. [SG10] Jo˜ ao Lu´ ıs Sobrinho and Timothy G. Griffin. Routing in equilibrium. In 19th International Symposium on Mathematical Theory of Networks and Systems (MTNS 2010), July 2010. To appear.

  • T. Griffin (cl.cam.ac.uk)

Exploring the Stratified Shortest-Paths Problem June 2010 33 / 33