Routing tables Flashcards

1
Q

What are the properties of a routing table?

A

Source independence
Hierarchical
Universal routing
Optimal routes
Default route

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

What does source independence mean?

A

next hop does not depend on packet source only its destination

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

What does hierarchical mean?

A

only need to know how to reach a network not each machine

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

What does universal routing mean?

A

theres a next hop for every possible destination

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

What does optimal route mean?

A

next hop should give the shortest path to destination

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

What does default route mean?

A

a catch all route for anything not matched by a more specific route

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

What are the 2 types of routing table

A

Static and dynamic

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

How is static routing table built?

A

built when the router boots and calculates possible routes to the different networks and fills in table
doesnt change until machine rebooted

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

What is the problem with static routing table?

A

inflexible cannot adopt to changes in a network like a link going down and would still try to send packets over the dead link

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

What solves statics problem?

A

Dynamic routing table

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

How does Dynamic routing table work?

A

program running on router builds an initial table at boot which is then updated as network conditions change

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

How does Dynamic routing table know when conditions change?

A

routers talk to each other informing them of changes

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

how is Dynamic routing table compared to static?

A

more complex but flexible and autonomous

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

What happens if a route fails in a Dynamic routing table?

A

system will route around them

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

how are routing tables built more deeply?

A

software models the network as a graph
nodes are the networks and edges are the link between edges

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

What is each edge given?

17
Q

What is the sum of paths?

A

distance between 2 nodes

18
Q

What algorithm calculates the path

A

Dijkstras algorithm

19
Q

what needs to be known in Dijkstras algorithm

A

complete graph and weight of all edges

20
Q

How does Dijkstras algorithm work?

A

initialise a set S to contain all nodes except the source node
Initialise a table D so that D[v] is the weight of an edge from the source
to node v, or infinity if no edge exists
Initialise a table R so that R[v] is v if an edge exists from the source to v,
and zero otherwise

21
Q

Whats another way to build up the table?

A

Distributed algorithm

22
Q

How does Distributed algorithm work?

A

routers build up table of what they know then pass it on to peers
When they receive these messages, they can update their own routing
tables and then send the updated one out again

23
Q

what are 2 main algorithms of Distributed algorithm?

A

vector-distance routing
link-state routing

24
Q

What is vector-distance routing?

A

status messages are pairs of destinations that router can reach plus the distance
when received router updates its table if it finds shorter path

25
Q

What is link-state routing?

A

routers communicate details of when links go up and down
other routers use this to build graph of network
which then calculates shorter path

26
Q

Why is link-state better?

A

more faster to cope with links going down