L13. Compare link state vs distance vector routing. Flashcards

1
Q

What are link state and distance vector routing?

A

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.

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

What is the idea of link state routing?

A

Each router having complete knowledge of the network topology.

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

What is the most common link state routing protocol?

A

OSPF (Open Shortest Path First)

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

What is the idea of distance vector routing?

A

Routers sharing their routing tables with immediate neighbors.

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

What is the most common vector routing protocol?

A

RIP (Routing Information Protocol)

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

How does link state routing work?

A
  1. Each router discovers its neighbors and measures the cost to each directly connected neighbor.
  2. 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.
  3. Each router uses the information from the received LSAs to build a complete map of the network.
  4. Routers use the Dijkstra algorithm to compute the shortest path to every other router in the network, updating their routing tables accordingly.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an LSA?

A

Link State Advertisement, contains information about the state of the router’s links (e.g., the cost to each neighbor)

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

How are LSAs created?

A

The router discovers its neighbors and measures the cost to each neighbor.

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

How are LSAs propagated?

A

LSAs are flooded throughout the network to all routers.

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

How do routers use LSAs?

A

Each router uses the information from the received LSAs to build a complete map of the network.

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

How do link state routers compute the shortest path to other routers?

A

Using the Dijkstra algorithm

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

What are the advantages of link state routing?

A

Scalability, Fast Convergence, and Accurate Metrics

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

Why is link state routing more scalable?

A

It only sends updates when there are changes in the network, not periodically.

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

Why do link state routed networks converge quickly?

A

The network converges quickly since each router has a complete map and can independently calculate the shortest path.

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

What is complex about link state routing?

A

The algorithms and data structures required for link state routing are more complex compared to distance vector routing.

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

What are disadvantages of link state routing?

A

Complexity, Resource Intensive, Initial Overhead

17
Q

How does link state routing create overhead?

A

The initial flooding of LSAs can create significant overhead, especially in large networks.

18
Q

Why is link state routing resource intensive?

A

It requires more CPU and memory resources due to the need to maintain the complete network topology and run the Dijkstra algorithm.

19
Q

How does distance vector routing work?

A
  1. Each router initializes its routing table with direct distances to its neighbors. Distances to all other routers are set to infinity.
  2. Periodically, each router sends its routing table to its immediate neighbors.
  3. Upon receiving a neighbor’s routing table, a router updates its own routing table based on the Bellman-Ford algorithm, which uses the distance vector formula to compute the shortest path to each destination.
  4. The process continues until all routers have consistent routing tables, reflecting the shortest paths to all network destinations.
20
Q

How does a distance vector router initialize its table?

A

With direct distances to its neighbors. Distances to all other routers are set to infinity.

21
Q

How does routing information propagate in distance vector routed networks?

A

Each router sends its routing table to its immediate neighbors periodically

22
Q

How does a distance vector router update its table?

A

Upon receiving a neighbor’s routing table, based on the Bellman-Ford algorithm, which uses the distance vector formula to compute the shortest path to each destination.

23
Q

How does a distance vector routed network converge?

A

The routers periodically share their tables with other routers and update their own tables upon receiving other routers’ tables using the Bellman-Ford algorithm. The process continues until all routers have consistent routing tables, reflecting the shortest paths to all network destinations.

24
Q

What are the advantages of distance vector routing?

A

Simplicity, Low Resource Requirements, Easy Configuration

25
Q

How is distance vector routing simpler than link state routing?

A

The algorithms and data structures used are simpler.

26
Q

Why does distance vector routing require less resources?

A

It requires less CPU and memory since routers only need to keep track of their neighbors’ distances.

27
Q

What are the disadvantages of distance vector routing?

A

Slow Convergence, Count-to-Infinity Problem, Periodic Updates

28
Q

Why is slow convergence in distance routing protocols an issue?

A

It can lead to routing loops and inconsistencies during convergence.

29
Q

How does the count-to-infinity problem arise?

A

This problem arises when routers continuously increment the distance to a downed node, causing slow convergence and routing issues.

30
Q

What issues can arise from the periodic updates in distance vector routing?

A

The periodic broadcasting of entire routing tables can create unnecessary network traffic, especially in large networks.

31
Q

Name the four main differences between link state and distance vector routing

A
  1. Link state routing generally converges faster than distance vector routing due to its complete network knowledge and independent shortest path calculations.
  2. Link state routing is more scalable for large and complex networks, whereas distance vector routing is better suited for smaller, simpler networks.
  3. Link state routing requires more computational and memory resources, while distance vector routing is less resource-intensive.
  4. Link state routing protocols are more complex to implement and manage compared to distance vector protocols.
32
Q

What type of networks are link state vs distance vector routing best suited to?

A

Link state routing, with its fast convergence and scalability, is well-suited for large, dynamic networks, despite its complexity and resource demands. Distance vector routing, on the other hand, offers simplicity and low resource usage, making it ideal for smaller networks.