Routing Flashcards

1
Q

what is routing

A

selecting the best path for a packet from source to dest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are the 2 main routing algorithms

A
  • bellman ford (distance vector)
  • link state
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how does bellman ford work

A
  • each node has a table with <dest, cost, next-hop>
  • a node shares with all its neighbours all of its info it has
  • eventually the network stabilizes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

whats the issue with distance vector

A
  • count to infinity problem

A –X– B —– C

link from A to B fails

C tells B it can reach A since it doesnt know about the failure. B now thinks it can reach A through C and they go back and forth and the cost reaches inf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

delay propogation

A
  • solution to count 2 inf
  • when link fails, delay sending any info, eventually C will think B is gone and will try to find a different route
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

set inf to small value

A

by setting inf to 16 instead of counting to inf we can just count to 16

  • problem: limits the size of the network as 16 is the max cost
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

split horizon

A

C does not tell B about any routes that go though B

never advertise a route to neighbour X if the route passes through X

  • problem: C will still have the stale route
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

poison reverse

A
  • B tells C that its route to A is dead
  • C can know set its route to A as dead

problem: unstable for 3 router loops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how does Link state routing work

A
  • each router has entire picture of network in the routing table
  • nodes send small updates to all other nodes in network
  • using all this info the node will do dikjstras alg to find shortest path to all other nodes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

pros of link state routing

A
  • no loops
  • stabalizes fast
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

cons of link state routing

A
  • more storage requiremnts
  • overhead to do dikjras
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

distance vector vs LSR

A

in dist: node only talks to neighbour but tells them everything

in LSR: nodes talk to everyone but only tell them their direct links

How well did you know this?
1
Not at all
2
3
4
5
Perfectly