Lecture 7: IGP and Djikstra's Algorithm Flashcards
What is the count-to-infinity problem?
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 do link-state avoid the count-to-infinity issue and provide faster convergence over distance-vector protocols?
The build a complete map of the network and broadcast transmissions to the entire network
What are the 2 steps in link state protocols?
- Broadcast info about your neighbors to the entire network while receiving similar broadcasts from other routers (link-state information)
- Build the routing table with the complete network map that the link state information provides
How do link state protocols identify its neighbors?
It repeatedly scanning it’s network interfaces for new connections
What does the link-state packet contain?
- The address of each neighbor
- The edge cost of the connection to each neighbor
Where does the link-state packet go?
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
What algorithm is used in link-state protocols to find the shortest path?
Dijkstra’s algorithm
How does Dijkstra’s algorithm work?
- Set all node costs to infinity
- Find the shortest edge, and travel along it. Update the cost of the vertex at the end of the edge, and mark it visited
- Update the costs of the visited nodes’ neighbors
based on their edge costs - Find the next lowest cost unvisited node, and continue
What does the first step in the shortest path to a particular destination form for the route?
The next hop
What is a difference between Bellman-Ford and Dijkstra’s algorithms?
- 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
What is the trade off of link-state protocols?
Have faster route calculation and convergence at the cost of memory/network capacity