100 OSPF Interview Questions and Answers
100 OSPF Interview Questions and Answers
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 1/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
OSPF uses five packet types for neighbor discovery and database synchronization:
Hello – Establishes and maintains neighbor relationships
Database Description (DBD) – Describes database contents
Link State Request (LSR) – Requests updated LSAs
Link State Update (LSU) – Sends updated LSAs
Link State Acknowledgment (LSAck) – Confirms LSA receipt
6. What is the OSPF backbone area?
The OSPF backbone area (area 0) forms the core of the OSPF network. All other areas must connect to the backbone directly or through
a virtual link. The backbone receives and distributes routing information between areas.
7. What are OSPF stub areas?
Stub areas in OSPF do not receive external LSAs or ASBR summaries. Stub areas reduce the size of the topological database by blocking
external routes. There are three types of stub areas:
AD – 110 AD – 90
9. What is the default administrative distance of OSPF?
The default administrative distance of OSPF is 110.
10. Is OSPF a classful or classless routing protocol?
OSPF is a classless routing protocol that supports VLSM and CIDR. OSPF routers send subnet mask information in their LSAs.
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 2/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
After reaching the 2-way state, OSPF routers form adjacencies through database description, database synchronization, and link-state
flooding processes. LSAs are requested and acknowledged until the link-state databases are fully synchronized.
17. How are link-state advertisements (LSAs) flooded in OSPF?
When an OSPF router detects a topology change, it floods updated LSAs only to its adjacent neighbors. Each router acknowledges the
LSA and propagates it to its neighbors until all routers have the same topological database.
18. What sequence of steps lead to OSPF convergence?
The steps leading to OSPF convergence are:
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 3/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
. Detect topology change
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 4/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
Area ID
Sequence number
LSA headers of database
Any recent LSA changes
DBDs are used to describe database contents during exchange.
23. When are OSPF Link State Request packets sent?
Link State Request (LSR) packets are sent during database synchronization to request updated LSAs that are discovered to be outdated
or missing. LSRs request specific LSAs based on sequence number.
24. What information is flooded in OSPF Link State Update packets?
Link State Update (LSU) packets contain updated LSAs that are flooded during database synchronization to provide missing or updated
link-states to neighbors. LSUs contain new instances of LSAs.
25. What is the purpose of OSPF Link State Acknowledgment packets?
Link State Acknowledgment (LSAck) packets confirm receipt of an LSA to the flooding neighbor. LSAcks prevent retransmission of
duplicate LSAs.
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 5/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
27. What information is contained in OSPF router LSAs?
OSPF router LSAs describe the state and cost of router interfaces within an area. Router LSAs contain:
Router ID
Neighboring router IDs
Interface IP addresses
Interface subnet masks
Interface cost
Other flags/options
28. When are OSPF network LSAs generated?
OSPF network LSAs are generated by the designated router (DR) on multiaccess networks, such as Ethernet. Network LSAs identify all
attached routers on the segment.
29. What information do OSPF summary LSAs contain?
Summary LSAs are generated by Area Border Routers (ABRs) to advertise destination networks from other areas. Summary LSAs contain:
Network number
Network mask
Cost to destination
Advertising ABR router ID
30. What is the purpose of OSPF ASBR summary LSAs?
ASBR summary LSAs are generated by ABRs to advertise the existence of ASBRs in the area. ASBR summary LSAs contain the router ID
of the ASBR being described.
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 7/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
A NSSA can import external LSAs as type 7s, while totally stubby areas block all external routes and allow only a default route. NSSA
ABRs convert type 7 to 5.
39. What is an OSPF virtual link?
A virtual link connects an area lacking a physical connection to the backbone through a transit area. Virtual links are configured between
ABRs across the transit area.
40. When is an OSPF virtual link required?
A virtual link is required when an area does not have a direct physical connection to the OSPF backbone area. This provides a logical
path to the backbone.
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 8/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
OSPF interface cost can be explicitly configured using the ip ospf cost command. The cost represents the overhead required to send
traffic across the link. Higher cost links are less preferred.
46. How is OSPF authentication configured?
OSPF authentication is configured on a per-interface basis using the ip ospf authentication command. Options include null, simple
password, and MD5 authentication.
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 9/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
The show ip ospf database command displays the OSPF link-state database, including LSAs, sequence numbers, checksums, and aging
information.
53. What are useful options for the show ip ospf database command?
Useful options include:
internal – Displays only internal LSAs
external – Displays only external LSAs
network – Displays only network LSAs
summary – Displays only summary LSAs
router – Displays only router LSAs
54. What does the show ip ospf interface command display?
The show ip ospf interface command displays OSPF information for interfaces, including area, cost, state, neighbor details,
authentication, and network type.
55. What does the show ip route ospf command display?
The show ip route ospf command displays the OSPF portion of the routing table, including intra-area, inter-area, and external routes
learned via OSPF.
56. What does the show ip ospf topology command show?
The show ip ospf topology command displays the OSPF topology table, including the shortest path tree calculated by the SPF algorithm
for each area.
57. What information is included in the show ip protocols command?
The show ip protocols command displays a summary of routing protocol information, including OSPF router ID, area and network
assignments, authentication, redistribution, and interfaces.
58. How can you determine if OSPF is enabled on an interface?
The show ip ospf interface command displays OSPF-specific information about interfaces on which OSPF is enabled. The show ip
protocols command also displays OSPF enabled interfaces.
59. What command verifies OSPF LSA flooding?
The show ip ospf database command displays OSPF LSAs and their age, which indicates if they are being refreshed by flooding. LSAs
with long age may indicate issues.
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 10/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
60. How do you determine the OSPF designated router?
The show ip ospf neighbor detail command displays the designated router and backup designated router for multiaccess networks. The
DR and BDR are elected based on priority.
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 11/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
“Metric” is a broader term used for any kind of value that a routing protocol uses to determine the optimal path to a destination, “cost”
is the specific form of metric that OSPF uses, calculated based on the bandwidth of the links.
69. How does OSPF elect the DR/BDR on multiaccess networks?
OSPF elects the DR and BDR based on the router priority value. If tied, the router with the highest router ID wins. Default priority is 1.
70. Can you have multiple OSPF processes on a router?
Yes, multiple OSPF processes can be configured using multiple OSPF process IDs. The processes operate independently with separate
SPF, LSDB, and adjacencies.
71. Is it possible to load balance traffic across multiple OSPF paths?
Yes, OSPF supports equal-cost multipath (ECMP) which allows load balancing traffic across up to four paths of equal cost to the same
destination.
72. Can you summarize routes between OSPF areas?
Yes, OSPF ABRs can summarize routes between areas with the area range command. This condenses the LSDBs and reduces route
computations.
73. What is the maximum number of paths supported by OSPF ECMP?
OSPF can support a maximum of four equal cost paths to the same destination network. Traffic is load balanced across the paths.
74. What is the default reference bandwidth for OSPF cost calculation?
The default auto-cost reference bandwidth is 100 Mbps. Link costs are calculated based on this reference value if not explicitly
configured.
75. Can you have a separate area solely for a loopback interface?
Yes, a best practice is to place loopbacks in a separate “stub” area to prevent flooding external LSAs over the loopback. This protects the
router ID.
76. What is the default SPF timer in OSPF?
The default SPF timer is 5 seconds. This sets the delay between receiving a topology change and starting the SPF calculation.
77. What is the function of OSPF opaque LSAs?
Opaque LSAs provide a generalized mechanism to carry application-specific information within OSPF. Opaque LSAs are identified by
their Opaque type and ID field.
78. What is the default LSA flood pacing timer?
The default LSA flood pacing timer is 33 milliseconds. This rate limits how fast LSAs can be sent to neighbors to prevent flooding over
slow links.
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 12/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
79. How many LSAs can be contained in a single OSPF LSU packet?
A single OSPF LSU packet can contain up to 1000 LSAs in its payload. This reduces overhead compared to sending individual LSAs.
80. What is the default dead interval in OSPF?
The default OSPF dead interval is 40 seconds. If no hello is received from a neighbor within the dead interval, the neighbor is declared
down.
81. What is the function of OSPF sham links?
Sham links are configured between OSPF backbone routers to establish adjacency over a non-backbone area, treating them as a point-
to-point link.
82. Can you have overlapping IP addressing with OSPF?
Yes, OSPF supports overlapping IP addresses using the ip ospf network point-to-point command. This eliminates DR election and
broadcast flooding.
87. What is the default timer for OSPF LLS block flooding?
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 13/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
The default LLS extended options block flooding timer is 5 seconds. LLS data blocks are used to multicast flood local signaling
information.
88. What is the default minimum LSA arrival timer?
The default LSA minimum arrival timer is 1000 milliseconds. This is the minimum delay between accepting the same LSA from neighbors.
89. What is the default minimum LSA interval?
The default LSA minimum interval is 5000 milliseconds. This is the delay between originating the same LSA.
90. What is the default LSA retransmission interval?
The default LSA retransmission interval is 5 seconds. This is the time between LSA retransmissions if not acknowledged.
91. What is the default OSPF hello interval?
The default OSPF hello interval is 10 seconds for multiaccess networks and 30 seconds for point-to-point. Hellos discover/maintain
neighbors.
92. What is the default OSPF dead interval?
The default dead interval is 4 times the hello interval, or 40 seconds. The dead interval dictates when a silent neighbor is declared down.
93. What is the default OSPF grace period?
The default OSPF grace period is 40 seconds. This provides time for neighbors to reconnect after a reload before declaring the
adjacency down.
94. Can you have different OSPF cost metrics per interface?
Yes, OSPF allows configuring the cost metric explicitly per interface with the ip ospf cost command. By default, cost is calculated based
on bandwidth.
95. What is the default administrative distance of OSPF external routes?
The default admin distance of OSPF external routes is 110. OSPF internal routes have an AD of 110, while external routes have an AD of
110 by default.
96. What is the difference between OSPF stub areas and totally stubby areas?
Stub areas block external LSAs, while totally stubby areas block external and summary LSAs. Totally stubby areas rely solely on a default
route.
97. What is the default OSPF E2 external route metric?
The default OSPF E2 external route metric is 20. This cost can be modified by changing the default-metric command when redistributing
routes into OSPF.
Here is the continuation of the OSPF interview questions:
98. What is the default reference bandwidth for OSPF?
The default auto-cost reference bandwidth used by OSPF is 100 Mbps. Link costs are calculated based on this reference value if not
explicitly configured.
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 14/15
7/1/24, 5:20 PM 100 OSPF Interview Questions And Answers
https://afrozahmad.com/blog/ospf-interview-questions-and-answers/ 15/15