Docsity

Routing Algorithms DV - Computer Networks - Lecture Slides, Slides of Computer Networks

Toggle sidebar
bg1
Routing Algorithms
โ€ข Adaptive algorithm:
โ€“ Reflect change in topology
โ€“ Get information locally from adjacent routers
โ€ข Non Adaptive Algorithm
โ€“ Static routers
โ€“ Downloaded to routers when network is booted
โ€ข Routing:
โ€ข Principle of Optimality:
โ€“ If router I on optimal path from router I to K then
optimal path from J to K also on same route!
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Routing Algorithms DV - Computer Networks - Lecture Slides and more Slides Computer Networks in PDF only on Docsity!

Routing Algorithms

Adaptive algorithm:

  • Reflect change in topology โ€“ Get information locally from adjacent routers

Non Adaptive Algorithm

  • Static routers โ€“ Downloaded to routers when network is booted

Routing:

Principle of Optimality:

If router I on optimal path from router I to K then optimal path from J to K also on same route!

Routing Algorithms(Static)

Set of all optimal routes from: Source to a givendestination

  • A sink tree!

Goal of routing algorithm find sink trees that arethere!

Shortest Path Routing:

  • Dijkstra โ€“ Uses topology โ€“ Greedy approach โ€“ Possible shorter path of equal length โ€“ need not be

unique

Dijkstra (example)

a

f

e

d

c

b

Shortest path from A

ร†

D is via b and c

Multipath Routing

Forward traffic based on โ€“ a random number

Example:Path from a to d^ โ€“ via b:

  • via f:

Packet for d from a:^ โ€“ Generate a random number r:^ โ€“ If 0 < r

0.65, choose b

  • otherwise choose f

Static Routing

  • Disadvantages:
    • SSSP and Multipath:

Require complete knowledge of Network topology to make a good decision.

  • Hot potato routing
    • Forward on to shortest Queue (defined by

hopcount)

  • Use hot potato with static routing โ€“ rank = Shortest Queue + shortest path

Distance Vector Routing

  • Distance Vector Routing: โ€ข (Distributed Bellman Ford, Fulkerson)
    • Each router maintain a table: โ€“ destination, estimated cost, link, hop count,

time delay in ms, queue length, โ€ฆ

  • Updated by exchanging information between

router - ICMP

a b c d e f g h i j k l

a b c d e f g h i j k l

a b c d e f g h i j k l

Via a

Via i

Via j

Router a

Router i

Router b

Distance Vector Routing

  • Compute route from b to g โ€ข

via a โ€“ 8 + 18

via i โ€“ 10 +

so update route to g to 26

Issues: Count to infinity

Number of exchanges depends on definition of infinity

x

b

c

d

e

1

2

3

4

3

2

3

4

3

1

3

4

5

4

5

4

5

6

5

6

7

6

7

6

7

8

7

8

1 exchange2 exchange

Count to infinity

Initially b โ€“ x

c โ€“ x

d โ€“ x

e โ€“ x

Now x goesdown