OSPF Tutorial(Part-2)

Sowmiya K
2 min readFeb 15, 2024

--

DR and BDR Election

OSPF (Open Shortest Path First) is a routing protocol used in computer networks to determine the best paths for routing IP packets. In OSPF, routers form adjacencies with neighboring routers to exchange routing information. When multiple routers are connected to the same network segment, OSPF elects a Designated Router (DR) and a Backup Designated Router (BDR) to reduce the amount of routing overhead.

Here’s an explanation of the OSPF DR and BDR election process:

Neighbor Discovery: When OSPF routers come online or interfaces change state, they send OSPF Hello packets to discover neighboring routers. Routers become neighbors if they agree on certain parameters like OSPF area, authentication settings, and subnet mask.

DR and BDR Election: Once routers become neighbors on a network segment, they participate in the DR and BDR election process. The router with the highest OSPF priority on the segment becomes the DR, and the router with the next highest priority becomes the BDR. OSPF priority is a configurable value ranging from 0 to 255. A higher priority value increases the likelihood of a router becoming the DR or BDR.

OSPF Priority: If OSPF priority values are equal among routers, the router with the highest OSPF Router ID (RID) becomes the DR. If OSPF priority values and Router IDs are also equal, the router with the highest IP address on the interface becomes the DR. Configuring OSPF priority to 0 on a router ensures that it will not participate in the DR/BDR election process.

#ip ospf priority <priority_value>
#ip ospf priority 0

DR and BDR Functions:

The DR is responsible for generating and flooding Link State Advertisements (LSAs) to all routers within the OSPF area. This reduces the amount of OSPF routing traffic by preventing each router from flooding LSAs to every other router.
The BDR acts as a backup to the DR. If the DR fails, the BDR takes over its responsibilities until a new DR is elected. This ensures network stability and continuity of OSPF operations.
Adjacency Formation: OSPF routers establish adjacencies with both the DR and BDR on a network segment. This allows them to exchange routing information efficiently.

DR and BDR Removal: If the DR fails, the BDR assumes the role of DR, and a new BDR is elected from the remaining routers on the segment. OSPF routers monitor the state of the DR and BDR and initiate new elections if necessary.

Overall, the OSPF DR and BDR election process ensures efficient routing in OSPF networks by designating specific routers to handle routing information exchange within multi-access network segments while providing redundancy in case of failure.

--

--

Sowmiya K
Sowmiya K

Written by Sowmiya K

Working for HCL as a Senior Software Engineer | Interested in Networking | cybersecurity | Python

No responses yet