Symptoms:
With the attached diagram which has L3 point-to-point connectivity with help switches - why DR/BDR election happens here, Inferred below details:
Router0#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.20.1 1 FULL/DR 00:00:31 11.0.0.2 GigabitEthernet0/0/1
Router0#
Router1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.10.1 1 FULL/BDR 00:00:37 11.0.0.1 GigabitEthernet0/0/1
Router1#
Diagnosis:
An important distinction to make when designing or analyzing OSPF (Open Shortest Path First) networks.
In the topology you've shown, although there are point-to-point connections between routers and switches, the network type as interpreted by OSPF depends on the interface type and configuration, not just the physical layout.
Solution:
1)You're seeing DR/BDR elections because OSPF is using the default broadcast network type on Ethernet interfaces.
2)If you want no DR/BDR (and direct adjacency between routers), configure those interfaces as OSPF point-to-point.
3)Switches in this setup act just as Layer 2 media, but OSPF sees the Ethernet as broadcast-capable unless told otherwise.