Routing and Distance Vector - - PDF document

routing and distance vector
SMART_READER_LITE
LIVE PREVIEW

Routing and Distance Vector - - PDF document

COLE POLYTECHNIQUE FDRALE DE LAUSANNE Routing and Distance Vector Contents


slide-1
SLIDE 1
  • Routing

and Distance Vector

  • ÉCOLE POLYTECHNIQUE

FÉDÉRALE DE LAUSANNE

  • Contents
  • !

"#$!%

&# &# &#

'()

slide-2
SLIDE 2
  • 1. Introduction

Why were routing protocols invented

&#)$ )*#+ #+ #+ #+ ,$

)*

  • $)*)*

. !&/(# 0 )*!1&#23*4 $ * *!

/!0-5)*)!*+ !+.

6 6 6 6 $*. 7

  • Routing vs Packet Forwarding

#+

.*!+ !.).

  • **)

0*! !1&#489#4:&#1/2. %(#4(89#4#&(2 &/(#*)4)*$

slide-3
SLIDE 3
  • Interior Routing

$. *!

&,& ,:;

#) #) #) #) )*! <$!

.$) .)!$

)$. $4)$!$4. 1).$!4*2

  • Metrics

+ . !$ $ =

  • 9 ! $ +>.;!0

) .$! +!**

  • * ! $ +

+ * .

slide-4
SLIDE 4
  • Simple Routing Methods

How routing protocols work . . . .

.* +*

. . . .

$ !+ ! $ +>! ! )* !+ $ $ >!!+ * )

  • !)

. ) ) + . !

$.!+ $. $$ !$ $

*

* ! !+ ? . ..

)*)$ $ 1-8%4892

  • !+ $

; $!. !+ $4! )*.

  • Source Routing
  • '

&9

  • &9

&9 &9

  • 9--&
  • "
  • "
  • "

' "

  • '
  • '
  • '

' ' ' 6 6 6 6 <$$$).-7

  • ))*@.!)
slide-5
SLIDE 5
  • Route Discovery in Token Rings
  • '

' " A A B B

  • "
  • 8C-D !+)*-3$

A..!+

  • "
  • "ABB

"-"AA' '-''AA"" A-''AABB .$$1)A2 E,"ABB E,''AABB

  • &$FGH4$+ !:$

$*!. $$ +$4$ ! +-5).!) 9) +$.0

+$)3$+.+.*$ :$

  • -$!+1$-(-/4)$ +

@* $&#2-.!.3$4- .$ + $C)D !+3$!+)*- 3$!+$! $C )D

  • )$$*$1$$I).

2<$$*!+ $C)D4$* . $!+$$*$4;!.$!+$* $1$!+$$. )$$ *2 ;!4$!+)*-)*J!'K $. !* J!'K"$!+. A":

  • !4'!+'!)*A4 $$.0C-

"AA'D 1!+)"23$!+4$.' . 3$A!+1)A$.24.$$B <$*.$4+ -3$+ 4 $

  • $ +4$.$.$)

)*-- $ $.;!$$1 ).$!2

91*92!.$ +$ $$4) $&#.(-/

slide-6
SLIDE 6
  • Other Methods
  • 12

*+ $

+$)

!1&#4&#2

+ + + +

+ .$)

!*) )!=19$#$ I+2

!189#4#55&1-3(22

#$ #$ #$ #$

+ .$)

!$0@.-9 $) )!=!*

;!1#2

  • 2. Distance Vector

<$ 0

/! )!$ * ) L * .$. .

+

) ? ; 50 + !)* + < .) $= $

slide-7
SLIDE 7
  • The Centralized Bellman-Ford Algorithm

<$0 <$0 <$0 <$0 !$ $+-14I24!$) !$.I.*!14I2

<-14I2M-14I2,∝ $I

  • 0 3+.;!I,!12)$.$)!$.
  • .!+12$.$)!$.+$!!12,

4!12,∝ .≠

142

3$ 3$ 3$ 3$

&.$ +.*4$$!$. +,$!+12,!12. 3$$!$.≠ .)*!12,-I≠ J-14I2N !1I2K

&.#.0!+12$.+$! /0@0!+12,OI≠4I≠ J-14I2N!+1I2K4-142P

  • Example
  • !!*$$0 !+124!12 $$!$
  • 3

2 1 4 5 6 1 1 1 1 3 3

slide-8
SLIDE 8
  • Impact of Initial Conditions

:;!06 6 6 6 $$ $$ !$ $ $ 7

  • 3

2 1 4 5 6 1 1 1 1 3 3

  • Impact of Initial Condition

3$ 3$ 3$ 3$

3$$ . ) .! $ .$ $ !12,.* $ &.$ !$ . 4$$ !+12∞

slide-9
SLIDE 9
  • #.

#. #. #. < $!. !+ )$!+JK4,4Q)$!!$.* ;JK,Q$*; ..≠ )* ;JK,I≠ 4I ≠ J-14I2N;1I2K ))$*..≠ )* )JK,-142 3$$) . 12!+ ,!+ ∧ ) $∧ $! :@ 12!@$!.1;∧*2,; ∧* 3$4:@12 )!) 12!+ ,+! ∧ +)∧ Q ∧ )∧ ) " .$*.≠ )*JK,∝!,:@ 12) 1"2!+ ,+)∧ Q ∧ )∧ )5 $$$ $ 4$4)*3$0 1'2.+≥ 0+)∧ Q ∧ )∧ ),@ $@JK$. ' < :@12.+≥ 1A2!+ ,+! ∧ @ A +!JK) -J4KN-J4KNQN-J+4+KN!J+K$ 1B2+!JK≥ +4 $$.-J4IK3$+!JK∝ $+ 3$.+$4+!$@) :@1A2&$ 4.+$0 1B2!+ ,@

  • Distributed Bellman Ford

)=$!!12.$ ! 4$4)$ )$1I+2$)=$ 0))4. 3$ 3$ 3$ 3$0.$)*))*34$ $$=3 1.$ +.*2

Distributed Bellman-Ford Algorithm v1, BFD1 every node, say i, maintains an estimate q(i) of the distance p(i) to some fixed node 1; initial conditions are arbitrary but q(1)=0 at all steps from time to time, i sends the new value q(i) to all its neighbours when node i receives a value q(j0) from any neighbour j0, it sets q(j0) to the received value and updates q(i) by recomputing eq (1) q(i) := min j neighbour (A(i,j)+q(j)) if eq (1) causes q(i) to be modified, pred(i) is set to a value of j that achieves the min Distributed Bellman-Ford Algorithm v1, BFD1 every node, say i, maintains an estimate q(i) of the distance p(i) to some fixed node 1; initial conditions are arbitrary but q(1)=0 at all steps from time to time, i sends the new value q(i) to all its neighbours when node i receives a value q(j0) from any neighbour j0, it sets q(j0) to the received value and updates q(i) by recomputing eq (1) q(i) := min j neighbour (A(i,j)+q(j)) if eq (1) causes q(i) to be modified, pred(i) is set to a value of j that achieves the min

slide-10
SLIDE 10
  • Distributed Bellman-Ford v1

3 2 1 4 5 6 1 2 1 1 3 3 !!"#$

∝ ∝ ∝

∝ ∝ ∝ ∝

  • %&

! ' ('

  • Naive Distributed Bellman-Ford

3$! ) @ ) !* @1I2.$)4 .$* $) &!$ !) . ! $$ !$ I 4))

  • ) ) ;! !@12

)*0 6 6 6 6 $ + 7 $* $* 7

  • Distributed Bellman-Ford Algorithm v1a, BFD1a

when node i receives new value q(j) from node j do eq (1a) q(i) := min { A(i,j) + q(j), q(i) } Distributed Bellman-Ford Algorithm v1a, BFD1a when node i receives new value q(j) from node j do eq (1a) q(i) := min { A(i,j) + q(j), q(i) }

slide-11
SLIDE 11
  • Distributed Bellman-Ford, cont’d

3$ $4$ @ * ) $) $) 1!122 Distributed Bellman-Ford Algorithm, version 2 BFD2 every node, say i, maintains an estimate q(i) of the distance p(i) to some fixed node 1; initial conditions are arbitrary but q(1)=0 at all steps from time to time, i sends its value q(i) to all its neighbours when node i receives a value q(j0) from any neighbour j0, it sets q(j0) to the received value and updates q(i) by recomputing eq (2) if j0 == pred(i) then q(i) := A(i,j0)+q(j0) else q(i) := min { A(i,j0) + q(j0), q(i) } if eq (2) causes q(i) to be modified, pred(i) is set to j0 Distributed Bellman-Ford Algorithm, version 2 BFD2 every node, say i, maintains an estimate q(i) of the distance p(i) to some fixed node 1; initial conditions are arbitrary but q(1)=0 at all steps from time to time, i sends its value q(i) to all its neighbours when node i receives a value q(j0) from any neighbour j0, it sets q(j0) to the received value and updates q(i) by recomputing eq (2) if j0 == pred(i) then q(i) := A(i,j0)+q(j0) else q(i) := min { A(i,j0) + q(j0), q(i) } if eq (2) causes q(i) to be modified, pred(i) is set to j0

  • Distributed Bellman-Ford v2
  • 3$0

3$0 3$0 3$0&.$)*$)!. !))*3H4$$$$ 13N3H24 $$).!. .$=$ $

  • /0

/0 /0 /03$.. $$@12!@12 - 4 .$$@12@$ )*@ 121 $$ $4*4.$2 <$I@!124)$@12@12$$..0$ .@12$)$&4.I,,!124$@ 12@12 $ -14I2N@1I24 $@12I $) 1-14I2N@1I22 :@12 !!!)@124$&$$$ +4)*$$$+$$ + $$ )*&4 $)4 $ !*4 .@1I2$ $!)&$ 4.$ .@12$$ 1! $ )) $@ 1224$!. ;$ $$$)

slide-12
SLIDE 12
  • Distributed Bellman-Ford v2

3 2 1 4 5 6 1 2 1 1 3 3 &

∝ ∝ ∝

∝ ∝ ∝ ∝

  • %&

! ' ('

  • How it is used in practice

5 !$!$;$!. +!.; $ $. &*0142 ,. * 142 ,N∞ .* $ $. 5 .$)+ .1+42 . 1$$ 25 !$) $ 3$. +)

$$!.$ .$)+ !4 $4 .4$$$... $ .+01+42,∞ . 3$$

slide-13
SLIDE 13
  • Example 1

n1 A B n3 D C n2 n4 net dist nxt n1 0 n1,A n4 0 n4,A net dist nxt n1 0 n1,B n2 0 n2,B net dist nxt n3 0 n3,D n4 0 n4,D m3 0 m3,D net dist nxt n2 0 n2,C n3 0 n3,C m1 0 m1,C m2 0 m2,C A B C D m1 m2 m3

  • Example 1

n1 A B n3 D C n2 n4 net dist nxt n1 0 n1,A n4 0 n4,A net dist nxt n1 0 n1,B n2 0 n2,B n4 1 n1,A net dist nxt n3 0 n3,D n4 0 n4,D m3 0 m3,D net dist nxt n2 0 n2,C n3 0 n3,C m1 0 m1,C m2 0 m2,C n4 1 n3,D m3 1 n3,D from A n1 0 n4 0 A B C D m1 m2 m3 from D n3 0 n4 0 m3 0

slide-14
SLIDE 14
  • Example 1

n1 A B n3 D C n2 n4 net dist nxt n1 0 n1,A n4 0 n4,A net dist nxt n3 0 n3,D n4 0 n4,D m3 0 m3,D net dist nxt n2 0 n2,C n3 0 n3,C m1 0 m1,C m2 0 m2,C n4 1 n3,D m3 1 n3,D A C D m1 m2 m3 from C n2 0 n3 0 m1 0 m2 0 n4 1 m3 1 net dist nxt n1 0 n1,B n2 0 n2,B n3 1 n2,C n4 1 n1,A m1 1 n2,C m2 1 n2,C m3 2 n2,C B

  • Example 1 - Final

n1 A B n3 D C n2 n4 net dist nxt n1 0 n1,A n2 1 n1,B n3 1 n4,D n4 0 n4,A m1 2 n4,D m2 2 n4,D m3 1 n4,D net dist nxt n1 1 n4,A n2 1 n3,C n3 0 n3,D n4 0 n4,D m1 1 n3,C m2 1 n3,C m3 0 m3,D A C D m1 m2 m3 net dist nxt n1 1 n2,B n2 0 n2,C n3 0 n3,C m1 0 m1,C m2 0 m2,C n4 1 n3,D m3 1 n3,D net dist nxt n1 0 n1,B n2 0 n2,B n3 1 n2,C n4 1 n1,A m1 1 n2,C m2 1 n2,C m3 2 n2,C B

slide-15
SLIDE 15
  • Example 1 - Failure

n1 A B n3 D C n2 n4 m1 m2 m3 net dist nxt n1 1 A n2 1 C n3 0 D n4 0 D m1 1 C m2 1 C m3 0 D D C net dist nxt n1 1 B n2 0 C n3 0 C m1 0 C m2 0 C n4 1 D m3 1 D net dist nxt n1 0 B n2 0 B n3 1 C n4 1 A m1 1 C m2 1 C m3 2 C B

) *+,

  • Example 1 - Failure

n1 A B n3 D C n2 n4 m1 m2 m3 timeout net dist nxt n1 0 B n2 0 B n3 1 C n4 1 A m1 1 C m2 1 C m3 2 C B C net dist nxt n1 1 B n2 0 C n3 0 C m1 0 C m2 0 C n4 1 D m3 1 D net dist nxt n1 1 A n2 1 C n3 0 D n4 0 D m1 1 C m2 1 C m3 0 D D timeout

slide-16
SLIDE 16
  • Example 1 - Failure

n1 A B n3 D C n2 n4 m1 m2 m3 net dist nxt n1 0 B n2 0 B n3 1 C m1 1 C m2 1 C m3 2 C B C net dist nxt n1 1 B n2 0 C n3 0 C m1 0 C m2 0 C n4 1 D m3 1 D net dist nxt n1 2 C n2 1 C n3 0 D n4 0 D m1 1 C m2 1 C m3 0 D D

From C: n1 1 B n2 0 C n3 0 C m1 0 C m2 0 C n4 1 D m3 1 D

  • Example 1 - After Failure

n1 A B n3 D C n2 n4 m1 m2 m3 net dist nxt n1 0 B n2 0 B n3 1 C n4 2 C m1 1 C m2 1 C m3 2 C B C net dist nxt n1 1 B n2 0 C n3 0 C m1 0 C m2 0 C n4 1 D m3 1 D net dist nxt n1 2 C n2 1 C n3 0 D n4 0 D m1 1 C m2 1 C m3 0 D D

slide-17
SLIDE 17
  • Example 1: conclusions

:;!

$ !!$ +! $ !*$+

!! .$))

$ $)* .

  • Example 2

dest link cost A local 0 B l1 1 D l3 1 C l1 2 E l1 2 A l1 A B l6 D E l4 l3 C l5 l2 dest link cost B local 0 A l1 1 C l2 1 E l4 1 D l1 2 B dest link cost C local 0 A l2 2 B l2 1 D l2 3 E l2 2 C dest link cost D local 0 A l3 1 B l3 2 C l3 3 E l6 1 D dest link cost E local 0 A l4 2 B l4 1 D l6 1 C l4 2 E

3!.*4 .* $

  • $$

!- !- !- !- !-

slide-18
SLIDE 18
  • Example 2

l1 A B l6 D E l4 l3 C l5

$ *)0/ +. !)

C l1 2 C l2 ∞

∞ ∞ ∞

C l3 3 C l4 2 C local 0

  • Example 2: Link failure

).!)4-)) $/ !

l1 A B l6 D E l4 l3 C l5 C l1 2 C l1 3 C l3 3 C l4 2

&.

C local 0

slide-19
SLIDE 19
  • Example 2: Link failure

!-:

  • :!

l1 A B l6 D E l4 l3 C l5 C l1 4 C l1 3 C l3 3 C l4 4

/&. /&.

C local 0

  • Example 2: Link failure

/! )*:)

l1 A B l6 D E l4 l3 C l5 C l1 4 C l1 3 C l3 3 C l4 4 C local 0

.&.!

slide-20
SLIDE 20
  • Example 2: Link failure
  • )) $'/

!Q $!) -/ )**

l1 A B l6 D E l4 l3 C l5 C l1 4 C l1 5 C l3 3 C l4 4

&.

C local 0

  • Example 2: Link failure

l1 A B l6 D E l4 l3 C l5 C l1 6 C l1 7 C l3 7 C l5 5

.&.! : !./

C local 0

slide-21
SLIDE 21
  • Example 2: Link failure

l1 A B l6 D E l4 l3 C l5 C l1 7 C l4 6 C l6 6 C l5 5

:

  • $$$? )

0&. /&. 0&.

C local 0

  • Conclusions from Example 2

$$...$!*4)$ *)*

)..

604$ )7

slide-22
SLIDE 22
  • Example 3

dest link cost A local 0 B l3 3 D l3 1 C l3 3 E l3 2 A A B D E l4 l3 C l5 l2 dest link cost B local 0 A l4 3 C l2 1 E l4 1 D l4 2 B dest link cost C local 0 A l5 3 B l2 1 D l5 2 E l5 1 C dest link cost D local 0 A l3 1 B l3 ∞ ∞ ∞ ∞ C l6 ∞ ∞ ∞ ∞ E l6 ∞ ∞ ∞ ∞ D dest link cost E local 0 A l6 2 B l4 1 D l6 1 C l5 1 E

  • +@

+B. .∞

  • Example 3

dest link cost A local 0 B l3 3 D l3 1 C l3 3 E l3 2 A A D l3 dest link cost D local 0 A l3 1 B l3 4 C l3 4 E l3 3 D from A: dest cost A 0 B,C 3 D 1 E 2 dest link cost A local 0 B l3 5 D l3 1 C l3 5 E l3 4 A A D l3 dest link cost D local 0 A l3 1 B l3 4 C l3 4 E l3 3 D from B: dest cost A 1 B,C 4 D 0 E 3 dest link cost A local 0 B l3 3 D l3 1 C l3 3 E l3 2 A A D l3 dest link cost D local 0 A l3 1 B l3 6 C l3 6 E l3 5 D from A: dest cost A 0 B,C 5 D 1 E 3

slide-23
SLIDE 23
  • Conclusion from Example 3

3$/44: )C/&.*D

$.

/).

∞ ∞ ∞ ∞ ,)

&#0∞

∞ ∞ ∞ ,B

C9!=D

$!$ .-!+S4$

  • Example 3: with Split Horizon

dest link cost A local 0 B l3 3 D l3 1 C l3 3 E l3 2 A A B D E l4 l3 C l5 l2 dest link cost B local 0 A l4 3 C l2 1 E l4 1 D l4 2 B dest link cost C local 0 A l5 3 B l2 1 D l5 2 E l5 1 C dest link cost D local 0 A l3 1 B l3 ∞ ∞ ∞ ∞ C l6 ∞ ∞ ∞ ∞ E l6 ∞ ∞ ∞ ∞ D dest link cost E local 0 A l6 2 B l4 1 D l6 1 C l5 1 E

slide-24
SLIDE 24
  • Example 3: with Split Horizon

dest link cost A local 0 B l3 3 D l3 1 C l3 3 E l3 2 A A D l3 dest link cost D local 0 A l3 1 B l3 ∞ ∞ ∞ ∞ C l6 ∞ ∞ ∞ ∞ E l6 ∞ ∞ ∞ ∞ D from A: dest cost A 0

  • Split horizon

dest link cost A local 0 B l3 ∞ ∞ ∞ ∞ D l3 1 C l3 ∞ ∞ ∞ ∞ E l3 ∞ ∞ ∞ ∞ A A D l3 dest link cost D local 0 A l3 1 B l3 ∞ ∞ ∞ ∞ C l6 ∞ ∞ ∞ ∞ E l6 ∞ ∞ ∞ ∞ D from D: dest cost D 0 B,C,E ∞ ∞ ∞ ∞

9!$=$!. .*

slide-25
SLIDE 25
  • Split horizon may fail

B E l4 C l5 l2 dest link cost B local 0 A l4 ∞ ∞ ∞ ∞ C l2 1 E l4 1 D l4 ∞ ∞ ∞ ∞ B dest link cost C local 0 A l5 3 B l2 1 D l5 2 E l5 1 C dest link cost E local 0 A l6 ∞ ∞ ∞ ∞ B l4 1 D l6 ∞ ∞ ∞ ∞ C l5 1 E from E: dest cost A ∞ ∞ ∞ ∞ B 1 C 1 D ∞ ∞ ∞ ∞

  • Split horizon may fail

B E l4 C l5 l2 dest link cost B local 0 A l2 4 C l2 1 E l4 1 D l2 3 B dest link cost C local 0 A l5 3 B l2 1 D l5 2 E l5 1 C dest link cost E local 0 A l6 ∞ ∞ ∞ ∞ B l4 1 D l6 ∞ ∞ ∞ ∞ C l5 1 E from C: dest cost A 3 D 2 E 1 from C: dest cost B 1

slide-26
SLIDE 26
  • Split horizon may fail

B E l4 C l5 l2 dest link cost B local 0 A l2 4 C l2 1 E l4 1 D l2 3 B dest link cost C local 0 A l5 3 B l2 1 D l5 2 E l5 1 C dest link cost E local 0 A l4 5 B l4 1 D l4 4 C l5 1 E from B: dest cost A 4 B 0 C 1 D 3

  • Conclusion: Distance Vector

)*) .$ .*)!)*;

slide-27
SLIDE 27
  • 3. Distance Vector Protocols

RIP

! ( $! 5 +!A

∞ ∞ ∞ ∞ ,B

9!$= +.)*&#

5+ &#

:!L#!+4!A *!1routed L;2 *" $! "

)∞

∞ ∞ ∞

  • $&#)*(A1$2
  • IGRP (Interior Gateway Routing

Protocol)

#!*!)*/&9/8 ($$)* (.

$

3++ 5.A

).

*F

slide-28
SLIDE 28
  • Metric example

(

3,T $1U)2 *,1.*2T ,JUV3N1UV32T1AB2NU"V*K .0U,4U,4U",4U',4UA, .UA≠ 4,VJUAT1)*NU'2K

$U)T4*µ

  • %0.TB0(,TG'N

1N2T,'GAA

  • 90.TG0(,T'N1N

2T,'B'

  • 3. Load Dependent Routing

<)+$ $ $ $ $ ! &.;=C!$@*D 1) $!4*2 ;=$ +* +* +* +*

.;!0!. $!.$.

$ $)7 60$ ;! $$!$! $!. 1 $!$2

  • 8$)+*$!$

$$+,M$$,M+ $ 4$$!)0$$ !;

slide-29
SLIDE 29
  • Braess Paradox (1)
  • . !+$ $$*
  • !!$;. +.$

*..) >+A1!*2 3..),B)T ;!4

. !..0"0),4'),A $*"B4'A $$+ $ $

:*4$ )@)1C<! :@)D2

*@!

60!$@)... *+ 9

  • Braess Paradox (2)

60@ $ !+A $*.0 9

slide-30
SLIDE 30
  • Braess Paradox

<$$*4 +* $$!

3$$*$)!

  • Optimal Routing

8$$)I.0.! $!$4 )!=!)0

=*)I. $ !!=!) $!!. ))!)$3/# >J+FK

6 6 6 6 /* *1+ 4 $$.$!$2.$! +*7

solution

slide-31
SLIDE 31
  • Conclusion

*)4.

*!*1L;9routed2 9!*

5.!; + +9!$)

  • Review Questions

:;!$. 0

  • )..

.* !$=

  • &#4&(#
  • :;! $*$!$*)*

! <$$ !;7

slide-32
SLIDE 32
  • Solutions
  • 1. Introduction

Why were routing protocols invented /5 +*) $

)*#+ #+ #+ #+

,$

)*

  • $

*)*. !&/(# 0 )*!1&#2

/!0-5)*)!*+ !+.

6 6 6 6 $*. 7

  • *.$!+$*)>)

)! !'

slide-33
SLIDE 33
  • Source Routing
  • '

&9

  • &9

&9 &9

  • 9--&
  • "
  • "
  • "

' "

  • '
  • '
  • '

' ' ' 6 6 6 6 <$$$).-7

  • '
  • '
  • '
  • '
  • "'
  • "'
  • "'
  • "'
  • '"'
  • '"'
  • '"'
  • '"'
  • ""'
  • ""'
  • ""'
  • ""'
  • "'
  • "'
  • "'
  • "'
  • ""'
  • ""'
  • ""'
  • ""'

)+ )+ )+ )+

  • ))*@.!)
  • Example
  • !!*$$0 !+1424!12 $$!$
  • )+

3 2 1 4 5 6 1 1 1 1 3 3

  • ∝ ∝ ∝ ∝

∝ ∝

slide-34
SLIDE 34
  • Impact of Initial Conditions

:;!06 6 6 6 $$ $$ !$ $ $ 7-

  • *

)+

3 2 1 4 5 6 1 1 1 1 3 3

  • Distributed Bellman-Ford v1

3 2 1 4 5 6 1 2 1 1 3 3 &

∝ ∝ ∝

∝ ∝ ∝ ∝

∝ !

  • !'

%& ! ' ('

slide-35
SLIDE 35
  • Naive Distributed Bellman-Ford

3$! ) @ ) !* @1I2.$)4 .$* $) &!$ !) . ! $$ !$ I 4))

  • ) ) ;! !@12

)*0 6 6 6 6 $ + 7 $* $* 7

  • @12 * 9. .

;! W &!.&/ X4$$ $$& W + X $ & !)$ $ + .) $.4.;! @1I2,∞ * $4 + .$ !* $4 $ @ . ..

)+

Distributed Bellman-Ford Algorithm v1a, BFD1a when node i receives new value q(j) from node j do eq (1a) q(i) := min { A(i,j) + q(j), q(i) } Distributed Bellman-Ford Algorithm v1a, BFD1a when node i receives new value q(j) from node j do eq (1a) q(i) := min { A(i,j) + q(j), q(i) }

  • Distributed Bellman-Ford v2

3 2 1 4 5 6 1 2 1 1 3 3 &

∝ ∝ ∝

∝ ∝ ∝ ∝

""

∝ ∝

  • !'

%& ! ' ('

slide-36
SLIDE 36
  • Conclusions from Example 2

604$ )7

$* $!? !+133;!2 )+

  • 3. Load Dependent Routing

6 6 6 6 $ ;! $$!$!$! . 1 $!$2

  • . .:09$!$ !+

$+:*.)$ .$ +1-:/:2 )+

l1 A B l6 D E l4 l3 C l5 l2 E

!- !- !- !- !-

slide-37
SLIDE 37
  • Braess Paradox (1)

&'12&'1 !3 4*"& 5-5

  • 5-

"-- ,* !'

  • Braess Paradox (2)

60@ $ !+A $*.0

  • 0$$!$

0 +4"> 0 +4'> "0 +4A4' *@ AN)N)",AN)N)",N)N)N)" . )N)N)",) <.),),)",)T 3$*!$$4@F0$).Y )+

slide-38
SLIDE 38
  • Optimal Routing

8$$)I.0.! $!$4 )!=!)0

=*)I. $ !!=!) $!!. ))!)$3/# >J+FK

6 6 6 6 /* *1+ 4 $$.$!$2.$! +*7

  • = +!!$+

1)*2 + ..;!$$! *1$!=!)4 $$2 *. 4!$+? $ $! !$ back