Module 4: IP Routing - I Flashcards

1
Q

flat vs. hierarchical addressing

A

flat:
- ethernet addressing

hierarchical:
- provide layers or a hierarchy to the address (phone number)
- ip addressing uses hierarchical

MAC and IP address functionality
- the MAC address generally remains fixed and follows the network device, but the IP address changes as the network device moves from one network to another

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

what does network mask define?

A

which bits are used to describe the network part

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

Describe addressing for IP addresses.

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

Classful Addressing vs. Classless

A

Classful:
simple
tends to be wasteful
uses the same subnet mask for each subnet, and all the subnets have the same number of addresses in them

Classless:
refers to VLSM
benefits: allows the use of multiple mask lengths, breaks up an address block into smaller custom blocks, provides more flexibility in network design.

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

Internet Routing:

A

What is the first level? autonomous systems (AS’s)

AS’s run an intra domain routing protocol (eg DV (Routing Information Protocol), LS (Open Shortest Path First)

Between AS’s runs inter-domain routing protocols (Border Gateway Routing)

today: BGP-4

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

Intra-domain routing protocols is based on what?

A

unreliable datagram delivery

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

How does link state work?

A

Open shortest-path first (OSPF)
Each network periodically floods immediate reachability information to other routers
Fast convergence, but high communication and computation overhead

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

How does distance vector work?

A

Routing information protocol (RIP) based on Bellman-Ford
Each neighbor periodically exchange reachability information to its neighbors
Minimal communication overhead, but it takes long to converge, i.e., in proportion to the maximum path length

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

What is flooding?

A

Every node broadcasts information to every node
Be careful not to do anything redundant or make cycles!

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

Why is DV more efficient than link state?

A

Because we don’t have to flood the network like in LS. Minimal communication.

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

Even though DV has less communication overhead than LS, what is the downside?

A

Takes longer to converge, i.e., in proportion to the maximum path length
Might not converge at all (infinite loops)

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

What is the goal of routing?

A

determine a “good”path through the network from source to destination

good = the shortest path usually

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

Describe the network modeled as a graph

A

routers -> nodes
link -> edges
(edge costs = delays, congestion, etc)

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

T/F
BGP is an intra domain protocol used to connect one AS to another

A

False
It is an INTER-domain routing protocol

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

Describe link state flooding

A
  • each router maintains link state database and periodically sends link state packets (LSP) to neighbor
  • LSP = router, neighbors, costs
    -each router forwards LSPs not already in its database on all ports except where received
  • each LSP will travel over the same link at most once in each direction
  • flooding is fast, and can be made reliable with link-layer acknowledgements and periodic re-flooding
  • two types of updates: triggered and periodic
  • when link/router fails need to remove all data using sequence numbers to determine new data, send a new LSP with cost infinity to signal a link down, LSP have TTL (soft-state)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

key advantage of link state

A

fast convergence

17
Q

When a router receives a LSP, it will forward this packet to all links connected to it.

A

False

18
Q

What is the end result of the link state flooding?

A

Every node has all the topology information

19
Q

Dijkstra’s algorithm

A

Net topology, link costs known to all node
– flooding
– all nodes have the same info
Compute least cost paths from one node to all other nodes
Iterative: after k iterations, know least cost paths to k closes destinations

20
Q

In the Dijkstra algorithm, D(v) always goes down monotonically, which is the cost from a specific node to node v?

A

True

21
Q

What is the basic idea of the DV algo?

A
  • tell neighbors about learned distances to all destinations
  • each router maintains a vector of costs to all destinations as well as a routing table
  • initialize neighbors with known cost, others with infinity
22
Q

DV Routing algo is…

A
  1. iterative: continues until no nodes exchange info
  2. asynchronous: nodes need not exchange info/iterate in lock steps
  3. distributed: each node communicates only with directly attached neighbors
23
Q

In DV, what is contained in table

A

each router maintains:
row for each possible destination
column for each directly-attached neighor to node
entry in row Y and column Z of node X
best known distance from X to Y via Z as next hop

24
Q

Describe DV Routing

A
25
Q

pseudo code for DV

A
26
Q

What are some advantages to DV?

A

“good news travels fast”
fast convergence

27
Q

count to infinity problem

A

could take a very long time or never converge

this happens when there is “bad news”

28
Q

Which of the following problems does poisoned reverse attempt to solve

A

when we have routing loops in a cycle of two nodes

29
Q

LS vs. DV

A

storage:
LS stores all links
DV entry for each possible destination/next-hop

convergence:
LS reacts more quickly in bounded time to connectivity changes
DV count to infinity problem; slower convergence; bounded path length

global policies:
LS able to impose global policies in a globally consistent way
DV harder since do not have complete network topology

30
Q

advantage of LS

A

impose policies in a globally consistent way