Question: how dr and bdr is elected in ospf?
Answer: Two rules are used to elect a DR and BDR: router with the highest OSPF priority will become a DR. ... if there is a tie, a router with the highest router ID wins the election. The router with the second highest OSPF priority or router ID will become a BDR.