DR and BDR

Introduction

On a broadcast or NBMA network, any two routers need to establish an adjacency to exchange routing information with each other. If n routers are present on the network, n(n-1)/2 adjacencies are required. In addition, any topology change on the network results in traffic for route synchronization, which consumes many system and bandwidth resources. The Designated Router (DR) was introduced to solve this problem. On a network, a DR is elected to advertise routing information among other routers.

If the DR fails, routers on the network have to elect another DR and synchronize information with the new DR. It is time-consuming and prone to routing calculation errors. The Backup Designated Router (BDR) can solve this problem.

The BDR is elected along with the DR and establishes adjacencies with all other routers. When the DR fails, the BDR becomes the new DR in a very short time. Meanwhile, other routers elect a new BDR.

Routers other than the DR and BDR are called "DRothers". They do not establish adjacencies with one another. Thus the number of adjacencies is reduced.

In Figure 23, solid lines are Ethernet physical links, and dashed lines represent OSPF adjacencies. In the network with the DR and BDR, only seven adjacencies are needed.

Figure 23: DR and BDR in a network

DR and BDR election

Routers in a network elect the DR and BDR according to their router priorities and router IDs. Routers with a router priority value higher than 0 are candidates for DR/BDR election.

The election votes are hello packets. Each router sends the DR elected by itself in a hello packet to all the other routers. If two routers on the network declare themselves as the DR, the router with the higher router priority wins. If router priorities are the same, the router with the higher router ID wins. In addition, a router with router priority 0 cannot become the DR or BDR.