Lecture 7: IGP and Djikstra's Algorithm Flashcards

1
Q

What is the count-to-infinity problem?

A

A router goes offline during
normal operation, and the news of this failure doesn’t propagate into the network fast enough

Re-advertisement of a no-longer valid route ends up pinging
back and forth across the network, constantly increasing in
link cost in an infinite loop

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

How do link-state avoid the count-to-infinity issue and provide faster convergence over distance-vector protocols?

A

The build a complete map of the network and broadcast transmissions to the entire network

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

What are the 2 steps in link state protocols?

A
  1. Broadcast info about your neighbors to the entire network while receiving similar broadcasts from other routers (link-state information)
  2. Build the routing table with the complete network map that the link state information provides
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do link state protocols identify its neighbors?

A

It repeatedly scanning it’s network interfaces for new connections

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

What does the link-state packet contain?

A
  • The address of each neighbor
  • The edge cost of the connection to each neighbor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where does the link-state packet go?

A

It is broadcast across all network interfaces of the router so that all routers in the AS receive it and update their link state info

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

What algorithm is used in link-state protocols to find the shortest path?

A

Dijkstra’s algorithm

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

How does Dijkstra’s algorithm work?

A
  1. Set all node costs to infinity
  2. Find the shortest edge, and travel along it. Update the cost of the vertex at the end of the edge, and mark it visited
  3. Update the costs of the visited nodes’ neighbors
    based on their edge costs
  4. Find the next lowest cost unvisited node, and continue
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the first step in the shortest path to a particular destination form for the route?

A

The next hop

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

What is a difference between Bellman-Ford and Dijkstra’s algorithms?

A
  • Bellman-Ford can handle negative edge weights
  • Bellman-Ford has higher time complexity
  • The ordering of steps in finding the shortest path and whether nodes are revisted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the trade off of link-state protocols?

A

Have faster route calculation and convergence at the cost of memory/network capacity

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