Ch 8 - The OSPF Link State Database Flashcards

1
Q

A network design shows area 1 with three internal routers, area 0 with four internal routers, and area 2 with five internal routers. Additionally, one ABR (ABR1) connects areas 0 and 1, plus a different ABR (ABR2) connects areas 0 and 2. How many Type 1 LSAs would be listed in ABR2’s LSDB?

a. 6
b. 7
c. 15
d. 12
e. None of the other answers are correct.

A

D. As an ABR connected to areas 0 and 2, ABR2 will have LSDB entries for both area 0 and area 2. In area 0, ABR2 learns Type 1 LSAs from the four routers internal to area 0, plus ABR1, and plus 1 for the area 0 Type 1 LSA that ABR2 creates for itself. In area 2, ABR2 learns 1 each for the five routers internal to area 2, plus the 1 Type 1 LSA ABR2 created for itself inside area 2. The total is 12.

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

A network planning diagram shows a large internetwork with many routers. The configurations show that OSPF has been enabled on all interfaces, IP addresses correctly configured, and OSPF working. For which of the following cases would you expect a router to create and flood a Type 2 LSA?

a. When OSPF is enabled on a LAN interface, and the router is the only router connected to the subnet
b. When OSPF is enabled on a point-to-point serial link, and that router has both the higher router ID and higher interface IP address on the link
c. When OSPF is enabled on a Frame Relay point-to-point subinterface, has the lower RID and lower subinterface IP address, and otherwise uses default OSPF configuration on the interface
d. When OSPF is enabled on a working LAN interface on a router, and the router has been elected as a BDR
e. None of the other answers are correct.

A

E. OSPF creates a Type 2 LSA for a subnet when the router interface connected to the subnet calls for the election of a designated router (DR) and at least two routers have discovered each other and elected a DR. Then, the DR creates and floods the Type 2 LSA. IOS by default does not elect a DR on point-to-point topologies. It does on router LAN interfaces. One answer states that one router only exists in the subnet, so it does not actually find a second router and elect a DR. In the other case, a DR and BDR have been elected, but the router described in the answer is the BDR, not the DR. So, none of the other answers is correct.

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

A verification plan shows a network diagram with branch office Routers B1 through B100, plus two ABRs, ABR1 and ABR2, all in area 100. The branches connect to the ABRs using Frame Relay point-to-point subinterfaces. The verification plan lists the output of the show ip ospf database summary 10.100.0.0 command on a Router B1, one of the branches. Which of the following is true regarding the output that could be listed for this command?

a. The output lists nothing unless 10.100.0.0 has been configured as a summary route using the area range command.
b. If 10.100.0.0 is a subnet in area 0, the output lists one Type 3 LSA, specifically the LSA with the lower metric when comparing ABR1’s and ABR2’s LSA for 10.100.0.0.
c. If 10.100.0.0 is a subnet in area 0, the output lists two Type 3 LSAs, one each created by ABR1 and ABR2.
d. None, because the Type 3 LSAs would exist only in the ABR’s LSDBs.

A

C. Each ABR, by definition, creates a single Type 3 LSA to represent a subnet known in one area to be advertised into another area. Assuming that 10.100.0.0 is a subnet in area 0, both ABR1 and ABR2 would advertise a Type 3 LSA into area 100. The show ip ospf database summary command specifically lists Type 3 network summary LSAs.

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

Which of the following OSPF messages contains complete LSAs used during the database exchange process?

a. LSR b. LSAck c. LSU d. DD
e. Hello

A

C. The Database Description (DD) packet lists a short LSA header but not the entire LSA. The Link State Request (LSR) packet asks the neighbors for a copy of an LSA. The Link State Update (LSU) holds the LSAs. LSAck simply acknowledges received LSAs, and Hello is used for neighbor discovery and neighbor state maintenance.

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

Routers R1, R2, R3, and R4 connect to the same 10.10.10.0/24 LAN-based subnet. OSPF is fully working in the subnet. Later, R5, whose OSPF priority is higher than the other four routers, joins the subnet. Which of the following are true about the OSPF database exchange process over this subnet at this point? (Choose two.)

a. R5 will send its DD, LSR, and LSU packets to the 224.0.0.5 all-DR-routers multicast address.
b. R5 will send its DD, LSR, and LSU packets to the 224.0.0.6 all-DR-routers multicast address.
c. The DR will inform R5 about LSAs by sending its DD, LSR, and LSU packets to the 224.0.0.6 all-SPF-routers multicast address.
d. The DR will inform R5 about LSAs by sending its DD, LSR, and LSU packets to the 224.0.0.5 all-SPF-routers multicast address.

A

B and D. Because the subnet was stable before R5 arrived, the other routers will have elected a DR and BDR. OSPF does not preemptively elect a new DR or BDR, so R5 will be neither (DROther). As a result, R5’s messages to the DR will be sent to the 224.0.0.6 all-DR-routers multicast address, and the DR’s messages directed to R5 will be sent to the 224.0.0.5 all-SPF-router address.

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

R1 is internal to area 1, and R2 is internal to area 2. Subnet 10.1.1.0/24 exists in area 2 as a connected subnet off R2. ABR1 connects area 1 to backbone area 0, and ABR2 connects area 0 to area 2. Which of the following LSAs must R1 use when calculating R1’s best route for 10.1.1.0/24?

a. R2’s Type 1 LSA
b. Subnet 10.1.1.0/24’s Type 2 LSA
c. ABR1’s Type 1 LSA in area 0
d. Subnet 10.1.1.0/24’s Type 3 LSA in Area 0
e. Subnet 10.1.1.0/24’s Type 3 LSA in Area 1

A

E. R1, internal to area 1, can use LSAs only in the area 1 LSDB. R2’s Type 1 LSA exists only in area 2’s LSDB. The Type 2 LSA for subnet 10.1.1.0/24, if one exists, also only exists in area 2’s LSDB. R1 will use ABR1’s Type 1 LSA in area 1 to calculate the possible intra-area routes inside area 1, but R1 will use ABR1’s Type 1 LSA in area 1. Finally, the Type 3 LSA, created for 10.1.1.0/24 and flooded into area 1, is also needed to calculate the metric.

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

Which of the following LSA types describe topology information that, when changed, requires a router in the same area to perform an SPF calculation? (Choose two.)
a. 1 b. 2 c. 3 d. 4 e. 5 f. 7

A

A and B. OSPF builds the SPF tree based on the topology information in Type 1 and Type 2 LSAs. Changes therefore require another SPF run. Changes to the other LSA types do not require an SPF calculation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
The following output was taken from Router R3. A scan of R3’s configuration shows that no bandwidth commands have been configured in this router. Which of the following answers list configuration settings that could be a part of a configuration that results in the following output? Note that only two of the three interface’s costs have been set directly. (Choose two.)
R3# show ip ospf interface brief
Interface
Se0/0/0.2
Se0/0/0.1
Fa0/0
PID   Area
3     34
3     34
3     34
IP Address/Mask
10.10.23.3/29
10.10.13.3/29
10.10.34.3/24
Cost  State Nbrs F/C
647   P2P   1/1
1000  P2P   1/1
20    BDR   1/1
a. An auto-cost reference-bandwidth 1000 command in router ospf mode
b. An auto-cost reference-bandwidth 2000 command in router ospf mode
c. An ip ospf cost 1000 interface S0/0/0.1 command in router ospf mode
d. An auto-cost reference-bandwidth 64700 command in router ospf mode
A

A and B. Because none of the interfaces have a bandwidth command configured,
the only commands that can influence the OSPF cost are the auto-cost reference-bandwidth router subcommand and the ip ospf cost interface subcommand. To give the output shown in the question, the interface cost could be set directly on all three interfaces listed. Alternatively, the reference bandwidth could be set (in router configuration mode) to cause one of the interface costs to be as shown in the output, with the other two interfaces having their costs set directly.
For the wrong answers, the ip ospf cost interface s0/0/0.1 router subcommand does not exist—instead, it is an interface subcommand. An auto-cost of 64700, used as the numerator in the ref-bw/bandwidth cost calculation, does not result in any of the three listed interface costs.
For the two correct answers, with a default bandwidth of 1544 (kbps) on the serial subinterfaces, a reference bandwidth of 1000 (Mbps) implies the math 1,000,000 / 1544, for an interface cost of 647. With a default bandwidth of 100,000 kbps (100 Mbps) on Fa0/0, a reference bandwidth of 2000 (Mbps) implies math of 2000 / 100 = 20.

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

Which of the following LSA types describe information related to topology or subnets useful for calculating routes for subnets inside the OSPF domain? (Choose three.)
a. 1 b. 2 c. 3 d. 4 e. 5 f. 7

A

A, B, and C. OSPF uses Types 1, 2, and 3 for calculating routes internal to the OSPF domain. OSPF uses Types 4, 5, and 7 for external routes redistributed into the OSPF domain, as discussed in Chapter 10, “Route Redistribution.”

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

What are the 3 types of OSPF LSAs?

A

Type 1: router LSA
Type 2: network LSA
Type 3: Summary LSA

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

What is an OSPF Type 1 LSA and what does it do?

A

Router LSA. Created by each router to represent itself. It lists the RID and the IP of all interfaces in that area, represents stub networks as well.

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

How many Type 1 LSAs does a LSDB contain?

A

There is one Type 1 LSA for each router per area.

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

What is an OSPF Type 2 LSA and what does it do?

A

Network LSA. Created by the DR. Represents the subnet and all router interfaces connected to the subnet.

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

How many OSPF Type 2 LSAs are there for each transit network?

A

one.

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

What is an OSPF Type 3 LSA and what does it do?

A

Summary LSA. Created by ABRs. This LSA has no topology data and contains only the host routes (subnet and cost). These routes appear to be directly connected to the ABR. These ‘summaries’ are advertised into an area.

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

T/F: OSPF ABRs do not forward Type 1 and Type 2 LSAs between areas.

A

True. Only Type 3 Summary LSAs are sent inter-area.

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

What is an OSPF Type 8 LSA?

A

Link LSA. These LSAs exist only on an IPv6 local link. they are used by routers to advertise IPv6 link-local addresses to all routers on the same link.

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

What is an OSPF Type 9 LSA?

A

Intra-Area LSA. IPv6 uses these like Type 1 LSAs. Sends info about IPv6 networks attached to a router. Also fills the role of Type 2 LSAs by sending information about transit networks.

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

Which OSPF LSA identifies a router by it’s RID?

A

Type 1.

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

What information is in an OSPF Type 1 LSA for each interface with no DR?

A

It lists the local router’s interface subnet/mask and OSPf interface cost.

OSPF refers to these networks as stub networks.

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

What information is in an OSPF Type 1 LSA for each interface with a DR?

A

it lists the IP address of the DR and ad notation that the link attaches to at transit network. (meaning that a Type 2 LSA exists for that network.

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

What is an OSPF LSID?

A

Link State Identifier. When creating a Type 1 LSA, each router uses it’s own OSPF RID as the LSID. All Type 1 LSAs use this as the identifier.

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

Which of these statements about the OSPF SPF algorithm is false?

a. SPF requires that LSDB models the topo with nodes and links.
b. each link be between two nodes
c. on a multi-access link (LAN) OSPF must model the LAN with only a pair of nodes and a link. Type 2 LSAs are used for this modeling.
d. ABR creates the Type 2 LSA

A

d is false.

Type 2 LSAs are created by the DRs.

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

What determines if DR election will be attempted or not?

A

Network type.

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

What triggers the DR election?

A

DR election is attempted when a hello has been heard from at least one other router.

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

What are the 2 main purposes of a DR on a subnet?

A
  1. Create and flood Type 2 LSAs for that subnet.

2. Aid in the process of database exchange for that subnet.

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

What is the purpose of this command:

ip ospf priority 128

A

To set the OSPF priority to 128. Priority is used in DR/BDR election process.

If there is no DR or BDR then the highest priority is chosen for DR. The second highest priority is chosen as BDR.

Valid range for priority is 1-128.

28
Q

During a DR/BDR election neither router has the priority set. What happens next?

A

Ties are broken with RID, so the highest RID becomes the DR. Second highest RID will become the BDR

29
Q

A link has a DR and BDR already. A third OSPF router is introduced with lower priority. What happens?

A

Nothing. Elections will not be held again unless either the DR or the BDR fail.

30
Q

If the DR fails and there are 3 other routers on the link, what happens?

A

The BDR becomes the DR with no election, just instantly. Then an election is held for the newly vacated BDR spot.

31
Q

If the BDR fails and there are 3 other routers on the link, what happens?

A

The existing DR remains DR and a new BDR is elected.

32
Q

What is an OSPF pseudonode?

A

A pseudonode is a Type 2 Network LSA, and is often called a ‘transit network’. These are used to model the network while still conforming to the SPF restriction of having only 2 nodes per one link.

Each Type 1 Router LSA lists a connection to these Type 2 LSAs.

33
Q

T/F: OSPF Type 3 LSAs are used to advertise summary routes.

A

False. This is bunk.

34
Q

Which of these commands will show you info about the respective LSA type?

  1. Type 1 = sh ip ospf database router
  2. Type 2 = sh ip ospf database network
  3. Type 3 = sh ip ospf database summary
A

All of these are valid and will show information about the respective OSPF LSA Types.

35
Q

Which LSA uses a LSID of the RID?

A

Type 1.

36
Q

Which LSA uses a LSID of the DR’s IP address in the subnet?

A

Type 2.

37
Q

Which LSA uses a LSID of the RID subnet number?

A

Type 3.

38
Q

What OSPF message type is used to discover neighbors and send info used to confirm 2 routers should become neighbors?

A

hello.

Hellos will bring neighbors to 2-WAY and act as keep-alives once the neighbor relationship is formed.

39
Q

What OSPF message type is used to list the LSIDs of LSAs that the sender of the LSR would like the receiver of the LSR to supply during db exchange?

A

LSR - Link State Request.

40
Q

What OSPF message type is used to exchange brief versions of LSAs, typically on an initial topo exchange?

A

DD - Database Description

41
Q

What OSPF message type contains fully detailed LSAs, usually sent in response to an LSR?

A

LSU - Link State Update

42
Q

What OSPF message type is used to confirm receipt of LSU message?

A

LSAck.

43
Q

What is the OSPF neighbor state if no hellos have been received for more than the DEAD interval?

A

DOWN

44
Q

What is the OSPF neighbor state used after the ‘neighbor ‘ command has been issued but before any hellos have been received?

A

ATTEMPT

45
Q

What is the permanent OSPF neighbor state that results when hello parameters do not match or RID is missing from hello?

A

INIT

46
Q

What is the OSPF neighbor state if hello is received, it has a RID, and all neighbor verifications pass?

A

2-WAY

47
Q

What is the OSPF neighbor state when OSPF is currently negotiating two things:

  1. the DD sequence numbers
  2. the master/slave logic is used for DD packets.
A

EXSTART

48
Q

What is the OSPF neighbor state when the DD negotiation is finished and DD packets are currently being exchanged.

A

EXCHANGE

49
Q

What is the OSPF neighbor state when all DD packets have finished exchanging. Currently sending LSR, LSU, and LSAck packets to exchange LSAs.

A

LOADING

50
Q

What is the OSPF neighbor state the two neighbors are fully adjacent, meaning that they each believe that they have identical LSDBs. Route table calculations can now begin.

A

FULL

51
Q

What are DROthers?

A

All OSPF routers that are not DR/BDR.

52
Q

What is the final state of a working DROther to DROther routers?

A

2-WAY. This is normal.

53
Q

What is the final state of a working DROther to DR/BDR?

A

Full.

54
Q

You issue the command ‘sh ip ospf int’ on a DROther router. The state with one neighbor shows as ‘adjacent’ and another as 2WAY/DROther. What does this mean?

A

2WAY/DROther means that the other router is also a DROther router.

‘adjacent’ means that the neighbor is a DR or BDR.

55
Q

Where do DROther routers send their LSAs to?

A

To the DR router at 224.0.0.6. BDR get this as well and listen silently.

56
Q

T/F: LSA have sequence numbers that increment when the top changes.

A

True.

receiving the same LSA but with a higher sequence number will trigger the router to reflood the LSA.

57
Q

Does OSPF reflood the LSAs? If so, how often?

A

yes, every 1800 seconds, or 30 minutes.

This is accomplished by:

  1. incrementing the sequence number
  2. resetting the LSA ager variable to 0
  3. reflooding LSA.
58
Q

T/F: OSPF supports unequal cost load balancing.

A

False. Equal cost LB only.

59
Q

T/F: Intra-area routes are calculated by:

  1. use Type 1 and Type 2 LSAs to find subnets
  2. Run SPF to find all possible paths through the topo.
  3. Calculate OSPF interface cost for all egress interfaces in the route. Pick the lowest sum!
A

True, this is the process.

60
Q

T/F: Inter-area routes are calculated by:

  1. calculating the intra-area cost from that router to the ABR listed in the Type 3 LSA.
  2. Add cost value listed in the Type 3 LSA. This cost represents the cost from the ABR to the destination subnet.
A

True, this is the process.

61
Q

T/F: Inter-area routes with better metrics are preferred over intra-area routes with worse metrics.

A

False. Intra-area routes are always preferred, regardless of the metric.

62
Q

What is the command to set the reference bandwidth value in OSPF?

A

auto-cost reference-bandwidth

63
Q

What is the formula for OSPF metric cost?

A

OSPF cost = reference bandwidth / interface bandwidth

64
Q

What is the default value for the reference bandwidth in OSPF?

A

100Mbps

65
Q

What is the OSPF cost for Fast Ethernet?

A

1