why bdr is elected first in ospf?
According to the RFC, the BDR is actually elected first, followed by the DR. The RFC explains why: "The reason behind the election algorithm's complexity is the desire for an orderly transition from Backup Designated Router to Designated Router, when the current Designated Router fails.