Chapter 1. OSPF
Chapter 1. OSPF
OSPF
CCNP ENARSI
300-410
By
Ramakrishnan
OSPF FUNDAMENTALS
It is link-state routing protocol , exchange routes LSA , received routes are stored in local LSDB.
This process floods the LSA throughout the OSPF routing domain just as the advertising router
advertised it.
All OSPF routers maintain a synchronized identical copy of the LSDB within an area.
All OSPF routers run Dijkstra’s shortest path first (SPF) algorithm to construct a loop-free topology of
shortest paths
OSPF dynamically detects topology changes within the network and calculates loop-free paths in a
short amount of time with minimal routing protocol traffic.
A router can run multiple OSPF processes. Each process maintains its own unique database, and routes
learned in one OSPF process are not available to a different OSPF process without redistribution of
routes between processes.
The OSPF process numbers are locally significant and do not have to match among routers.
AREAS
OSPF Areas are logical grouping of routers.
All routers within the same OSPF area maintain an identical copy of the LSDB.
OSPF runs directly over IPv4, using its own protocol 89, which is reserved
for OSPF by the Internet Assigned Numbers Authority (IANA).
Multi-access networks such as Ethernet (LANs) and Frame Relay networks allow more than two routers to
exist on a network segment.
Cause scalability problems with OSPF as the number of routers on a segment increases. Additional
routers flood more LSAs on the segment, and OSPF traffic becomes excessive as OSPF neighbor
adjacencies increase.
Using the number of edges formula, n (n – 1) / 2, where n represents the number of routers
DR and BDR elections
The DR/BDR election occurs during OSPF neighborship—specifically, during the
last phase of the 2-Way neighbor state and just before the ExStart state.
If the hello packet includes an RID other than 0.0.0.0 for the DR or BDR, the new
router assumes that the current routers are the actual DR and BDR.
The routers place their RID and OSPF priority in their OSPF hellos for that
segment.
Any router with the OSPF priority of 1 to 255 on its OSPF interface attempts to
become the DR. By default, all OSPF interfaces use a priority of 1.
OSPF deems a router more preferable if the priority for the interface is the
highest for that segment. If the OSPF priority is the same, the higher RID is more
favorable.
When all the routers have agreed on the same DR, all routers for that segment
become adjacent with the DR. Then the election for the BDR takes place, except
that the DR does not add its RID to the BDR field of the hello packet.
The OSPF DR and BDR roles cannot be preempted after the DR/BDR election.