<｜begin▁of▁sentence｜>
### Instruction:
How are DRs and BDRs elected in OSPF?
### Response:
DR/BDR election is done on broadcast and NBMA networks. Routers send hellos containing their router priority. The highest priority becomes the DR and the second highest the BDR. If priority is equal, highest router ID wins. Priority of 0 makes a router ineligible to become DR/BDR.
<|EOT|>
