L13. Compare link state vs distance vector routing. Flashcards
What are link state and distance vector routing?
Link state routing and distance vector routing are two fundamental approaches used in network routing to determine the best path for data packets to travel from a source to a destination.
What is the idea of link state routing?
Each router having complete knowledge of the network topology.
What is the most common link state routing protocol?
OSPF (Open Shortest Path First)
What is the idea of distance vector routing?
Routers sharing their routing tables with immediate neighbors.
What is the most common vector routing protocol?
RIP (Routing Information Protocol)
How does link state routing work?
- Each router discovers its neighbors and measures the cost to each directly connected neighbor.
- Routers generate LSAs (Link State Advertisements), which contain information about the state of the router’s links (e.g., the cost to each neighbor). These LSAs are then flooded throughout the network to all other routers.
- Each router uses the information from the received LSAs to build a complete map of the network.
- Routers use the Dijkstra algorithm to compute the shortest path to every other router in the network, updating their routing tables accordingly.
What is an LSA?
Link State Advertisement, contains information about the state of the router’s links (e.g., the cost to each neighbor)
How are LSAs created?
The router discovers its neighbors and measures the cost to each neighbor.
How are LSAs propagated?
LSAs are flooded throughout the network to all routers.
How do routers use LSAs?
Each router uses the information from the received LSAs to build a complete map of the network.
How do link state routers compute the shortest path to other routers?
Using the Dijkstra algorithm
What are the advantages of link state routing?
Scalability, Fast Convergence, and Accurate Metrics
Why is link state routing more scalable?
It only sends updates when there are changes in the network, not periodically.
Why do link state routed networks converge quickly?
The network converges quickly since each router has a complete map and can independently calculate the shortest path.
What is complex about link state routing?
The algorithms and data structures required for link state routing are more complex compared to distance vector routing.