L4 - Internet Routing 2 Flashcards

1
Q

Give 3 issues with Link State Algorithms.

A
  • Slow network changes
  • May not output correct result if graph has negative edges
  • Large forwarding tables and frequent LSM consume bandwidth.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a solution to the issues of LS algorithms?

A

Distance Vector Routing Algorithm

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

Define what a Distance Vector Algorithm is…

A

A class of network routing algorithms which use the concept of Distance Vectors to estimate the cost from a source node to an end node.

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

What is a Distance Vector?

A

A table of a node containing the estimated cost ( distance ) from that node to all other nodes. Remember, Vectors have magnitude and direction, thus, the Distance vector doesn’t account for other nodes. It’s the estimated cost from X to Y, which is resolved by other nodes in the network.

Each node is essentially saying → ‘I know the cost from myself to my neighbours, so I can provide the minimum of these. After that, I will let the other nodes deal with the remainder of the path.’

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

What are the 3 defining properties of a Distance Vector Algorithm? Define each…

A
  • Distributed
    • Each node only receives information from it’s neighbours ( local topology )
    • Performs calculations based on neighbours and returns results to neighbours.
  • Iterative
    • Iterates neighbours until no more information is exchanged between them.
  • Asynchronous
    • Nodes don’t need to work in sync.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In DV algorithms, who can each node communicate with?

A

Direct neighbours.

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

In DV algorithms, what does the forwarding table of each node contain?

A
  • Cost of X to it’s neighbours.
  • Distance Vector of X to all N-1 nodes.
  • Distance Vector of X’s neighbours.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define the Bellman Ford algorithm…

A

A dynamic programming algorithm. It’s designed to find the shortest path from a source node to all other nodes in a weighted and directed graph.

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

How would the Bellman Ford Algorithm go about finding the shorted path from X to Y?

A

The distance between X and Y is the least cost path between X and it’s neighbours, plus the least cost path between that neighbour and Y.

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

What is the time complexity of the BFA?

A
  • Complete graph → N(N-1)(|E|) → N( N^3 )
  • Usually → N(|E|) → O( N^2 )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Explain the process of Relaxation in the BFA…

A

Comparing current cost of neighbour node to cost of current node + local distance to neighbour node.

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

What is an issue with the BFA?

A

If we have a negative cycle, the cost will decrement continuously until iteration stops at E-1.

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

Explain the general idea of how the Distance Vector Routing Algorithm works…

A
  • ach vertex X periodically sends it’s DV to it’s neighbours.
  • Upon receiving DV, neighbours update their own DV based on the Bellman Ford Equation.
  • This dynamic process results in a natural convergence to the least cost path from X to Y.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

During the DVRA, what is the 4 step process that occur asynchronously at each node?

A
  • Initialise the graph from origin node.
  • Wait for local links to change values.
  • Recompute the Distance Vector.
  • Notify all neighbours of the updated Distance Vector.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the result of the DVRA?

A

A natural convergence to the least cost path.

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

Explain the initialisation step in the DV algorithm…

A

Create the routing table for each node, where non-neighbouring nodes are set to infinity.

17
Q
  1. Explain the relaxation step in the DV algorithm…
A
  • If at any point the DV of a node changes, the nodes neighbours must recalculate their DV’s.
  • This ensures the network always has up to date costs, and can dynamically calculate the least cost path from any node.
18
Q

Explain the Convergence step in the DV algorithm…

A

Every node has a steady Distance Vector given the current Link Cost configuration, resulting in the least cost route.

19
Q

Explain what happens when there is a Link Cost change…

A

The change is communicated to neighbours via DV transmission, and the algorithm repeats until re-convergence occurs.

20
Q

What happens if a link gets cut?

A

This can lead to an infinite increase in cost between 2 nodes because one of the nodes is not aware of the lost connection. For example, B → C is cut. B updates DV and informs A. Then A updates its DV, but updates it assuming that B → C is still open. B notices this update and updates its own DV. This cycle continues infinitely.