OSPF DR/BDR Election Myth
OSPF DR/BDR election process is something that is full of many details, i hope that in the following thread i can cover its main aspects.
Each multi-access segment (ex: Ethernet Segment), will have 1 DR and 1 BDR. Each router on the segment forms a Full adjacency with the DR/BDR. Keep in mind that a router might be a DR/BDR on one of its attached multi-access networks, and it might not be the DR/BDR on another of its attached multi-access networks. In other words, the DR/BDR is a property of a router’s interface, not the entire router.
Now, how are the DR/BDR elected ?
A router declares its priority value via the “Rtr Pri” field in the OSPF hello packet. This value is configured under the interface via the “ip ospf priority <0-255>” command, with 1 being the default, and 0 meaning that the router is ineligible to become a DR or a BDR, and the higher priority wins. The RID serves as a tie-breaker when the priority values are the same.One important thing to keep in mind, the DR/BDR election is not pre-empitive, thus the first router to come up will be the DR and the second will be the BDR, the rules of election are only effective when one of them fail. If the BDR fails, a new BDR is elected according to the rules of election. on the other hand if the DR fails, the BDR takes the DR role, and a new BDR is elected according to the rules of election.Using “ip ospf priority 0″ is the strongest tool with the lowest impact if you wish to have an instantaneous action, it doesn’t require resetting the OSPF process. If configured on router that is a DR or a BDR, this router will resign its role immediately.
I hope that i’ve been informative.
BR,
Mohammed Mahmoud.
No related posts.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
November 19th, 2008 at 8:47 am
Hey,
Great site,
Ideal for learning new tricks or refreshing other knowledge
September 5th, 2010 at 4:55 pm
Thanks for the article. I have been doing labs and the highest RID doesn’t always get elected DR. You have confirmed my suspicion that boot order plays a role.
May 24th, 2011 at 5:24 pm
Thanks!
June 16th, 2011 at 11:45 am
Nice article