Ch.8: OSPF Foundations (1) Flashcards

1
Q

What type of protocol is OSPF?

A

A link-state Interior Gateway Protocol (IGP)

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

What does OSPF advertise to show link states and metrics?

A

Link State Advertisements (LSAs)

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

What does every OSPF router have an identical copy of?

A

Routers in the same area will have an identical copy of LSAs and an identical Link State Database (LSDB).

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

What algorithm does OSPF use to calculate loop-free paths in a network?

A

Dijkstra’s SPF algorithm (shortest-path first)

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

Every router will have an identical _____, but a different ____. Why?

A

Each router will have an identical LSDB but the SPF tree (SPT) will differ on each router. This is because each router’s SPT is made from each router’s perspective, even though each router has the same link state / metric information.

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

What provides scalability with OSPF?

A

The ability to create different areas; logically connected rotuers/subinterfaces that reduce the size and amount of LSAs being flooded to every router

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

What is the purpose of Area 0? What is it also known as?

A

Area 0, AKA the “backbone,” provids transit connectivity between all areas. All Area Boundary Routers (ABRs) have to connect to the backbone, and type 1 LSAs from one area is advertised as a type 3 (Summary) LSA when being advertised to or from Area 0 by an ABR.

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

Where does the backbone get its routes from? How do non-backbone areas get routes from other areas?

A

Routes get advertised into the backbone from non-backbone areas. The advertising router is the ABR.

Routes in Area 0 get advertised into non-backbone areas

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

What IP protocol does OSPF use for inter-router communication?

A

IP Protocl 89

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

What multicast addresses and MAC addresses do OSPF routers advertise to?

A

AllSPFRouters: 224.0.0.5 or MAC 01:00:5E:00:00:05
AllDRouters: 224.0.0.6 or MAC 01:00:5E:00:00:06

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

What are the 5 types of OSPF packets?

A

1 - Hello - discovering & maintaining neighbors
2 - Database Description (DBD/DDP) - summarizing DB contents
3 - Link-state request (LSR) - for DB downloads. Requested if part of the LSDB may be stale
4 - Link-state update (LSU) - for DB updates. Normally set as a response to an LSR
5 - Link-state acknowledgement - for flooding acknowledgements, resposne to LSA flooding

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

What is OSPF packet type 1?

A

1 - Hello - discovering & maintaining neighbors

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

What is OSPF packet type 2?

A

Database description (DBD/DDP) - summarizing DB contents

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

What is OSPF packet type 3?

A

3 - Link-state Request (LSR) - for DB downloads. Requested if part of the LSDB may be stale

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

What is OSPF packet type 4?

A

4 - Link-state update (LSU) - for DB updartes. Normally sent as a response to an LSR

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

What is OSPF packet type 5?

A

5 - Link-state acknowledgement - for flooding acknowledgemenets, response to LSA flooding

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

What is a Router ID?

A

A 32-bit number, unique ID for a router.
Must be unique for each AND between OSPF processes in an OSPF domain

18
Q

What is an OSPF neighbor?

A

A router that shares a common OSPF-enabled link

19
Q

What is the difference between a non-adjacenet and adjacent OSPF neighbor?

A

Adjacent neighbors are 2 OSPF routers that share a synchronized OSPF DB. Note that this full adjacency does not happen between all routers in an OSPF domain.

20
Q

In what situation does an OSPF router form a full adjacency with another router?

A

An OSPF router will only form a full adjacency with the Designated Router (DR) and Backup DR (BDR, if applicable).

21
Q

What is the purpose of the DR/BDR in an OSPF domain?

A

The DR/BDR is responsible for managing adjacency with non-DR/BDR routers in that broadcast segment. This ultimately saves resources on each router.

22
Q

What does the DR create to manage adjacency with other routers, and allow other routers to form an adjacency with the DR?

A

A “pseudonode” (virtual router)

23
Q

What happens when a DR fails (re-election general steps):

A

1) DR fails
2) BDR becomes the DR
3) A new BDR is elected

24
Q

What are the steps of DRs receiving and advertising an LSA?

A

1) All routers in broadcast segment form full adjacency with the DR/BDR
2) When a router learns of a new route, it sends an updated LSA to the AllDRouters multicast address
3) DR sends a unicast ack message to advertising router
4) DR floods the LSA to the AllSPFRouters multicast address

25
Q

How do you enable OSPF using the OSPF network statement?

A

> enable
configure terminal
router ospf 1 —- go to ospf process 1 on router
network [Network IP Address] [Subnet Wildcard Mask] area [Area #]

ex. network 192.168.0.0 255.255.255.0 area 0 – any up interface that matches 192.168.0.0-192.168.255.0 will have OSPF enabled in area 0

26
Q

What command(s) would you use to enable OSPF on a per-interface basis?

A

> enable
configure terminal
int [interface ID] —- go to interface-level configuration
ip ospf [process-id] area [area-id] [secondaries none]

If [secondaries none] is not specified, secondary connected networks will be added

27
Q

What does the router use for the RID? Can you set this manually?

A

The router will normally use the highest “up” loopback interface IP, or highest active & up physical interface.

To manually set, use: >router-id [rid]

28
Q

How do you restart an OSPF process?

A

> enable
clear ip ospf process

29
Q

What is an OSPF passive interface, and how do you set it?

A

Passive interfaces will not form adjacencies (process or send hello packets). Can be used to stop rogue OSPF routers

> passive [interface-id] — per interface
passive interface default — all interfaces

30
Q

What are the neighbor adjacency requirements?

A

1) RIDs must be unique bettw. 2 devices forming an adjacency. The RID must also be unique across the OSPF domain
2) Interfaces must share common subnet
The following should match on both routers:
3) MTUs on each interface
4) Area IDs
5) DR enablement setting
6) OSPF hello & dead timers
7) Auth type and any credenetials
8) Area type flags

31
Q

What is a simple link cost formula for OSPF? What is the default reference bandwidth (BW)?

A

Cost = Reference BW / Interface BW

Default is 100 Mbps

32
Q

How do you change the reference BW for all interfaces?

A

On an OSPF process:
> auto-cost reference-bandwidth [bw in mbps]

Per-interface:
> ip ospf cost [1-65535]

33
Q

What timers does OSPF use for failure detection?

A

1) Hello timer (10 by default on Ethernet or broadcast multi-access)
2) Dead interval timer (4x hello timer by default)

Neighbor considered down when dead interval timer reaches 0. Both timers can be set from 1-65535

34
Q

How do you set the hello and dead timer for OSPF?

A

On an interface level:
>ip ospf hello-interval [1-65535]
>ip ospf dead-interval [1-65535]

35
Q

Routers with _________ may encounter issues if placed as the DR.

A

low resources

36
Q

What are DR elections based off of?

A

Highest OSPF priority, then highest RID. During the last phase of 2-Way state

37
Q

How do you set the OSPF priority?

A

Per-interface:
>ip ospf priority [0-255]

38
Q

After changing the OSPF priority for an interface, what might you need to do?

A

Might need to restart the OSPF process if it is changed after DR election.

39
Q

What are the different OSPF network types (relevant to the CCNP)?

A

1) Broadcast - normal multi-access ethernet links (this is default)
- Hello 10, Wait 40, Dead 40
2) Point-to-point - advertised as a /32, even if interface prefixes are different.
- Hello 10, Wait 40, Dead 40
- NO DR election. Faster adjacency.

40
Q

What is the OSPF wait timer?

A

of seconds a router waits before a router participates in DR election.

A router will elect itself if hello packets it receives still don’t have a DR or BDR present. Once there is a DR/BDR it uses those RIDs in its hello packets for DR/BDR.