Topic 1 Single-Area OSPFv2 Concepts
Topic 1 Single-Area OSPFv2 Concepts
Concepts
1
OSPF Packets
Types of OSPF Packets
The five types of Link State Packets (LSPs) used by OSPFv2.
3 Link-State Request (LSR) Requests specific link-state records from router to router
Link-State Acknowledgment
5 Acknowledges the other packet types
(LSAck)
1
OSPF Operation
Establish Neighbor Adjacencies
To determine if there is an OSPF neighbor on the link, the router sends a Hello
packet that contains its router ID out all OSPF-enabled interfaces.
The OSPF router ID is:
• used to uniquely identify each router in the OSPF area
• a 32-bit number formatted like an IPv4 address
When a neighboring OSPF-enabled router receives a Hello packet with a router
ID that is not within its neighbor list, the receiving router attempts to establish
an adjacency with the initiating router.
In the DR and BDR election process, the router with the highest priority or
highest router ID is elected as the DR, and second highest is the BDR.
1
OSPF Operation
Synchronizing OSPF Databases
This is a three step process, as follows:
1. Decide first router: The router with the highest router ID sends its DBD first.
2. Exchange DBDs: As many as needed to convey the database. The other router
must acknowledge each DBD with an LSAck packet.
3. Send an LSR: Each router compares the DBD information with the local LSDB. If
the DBD has more current link information, the router transitions to the loading
state.
After all LSRs have been exchanged and satisfied, the routers are considered
synchronized and in a full state. Updates (LSUs) are sent:
• When a change is perceived (incremental updates)
• Every 30 minutes
1
OSPF Operation
The Need for a DR
Multiaccess networks can create
two challenges for OSPF regarding
the flooding of LSAs, as follows:
• Creation of multiple adjacencies -
Ethernet networks could potentially
interconnect many OSPF routers over a
common link. Creating adjacencies with
every router would lead to an excessive
number of LSAs exchanged between
routers on the same network.
• Extensive flooding of LSAs - Link-
state routers flood their LSAs any time
OSPF is initialized, or when there is a
change in the topology. This flooding
can become excessive.
1
OSPF Operation
LSA Flooding with a DR
An increase in the number of routers on a multiaccess network also increases
the number of LSAs exchanged between the routers. This flooding of LSAs
significantly impacts the operation of OSPF.
On multiaccess networks, OSPF elects a DR to be the collection and
distribution point for LSAs sent and received.
A BDR is also elected in case the DR fails.
All other routers become DROTHERs. A DROTHER is a router that is neither the
DR nor the BDR.
• Note: The DR is only used for the dissemination of LSAs. The router will still use the
best next-hop router indicated in the routing table for the forwarding of all other
packets.