Network Bytes · Episode 118 · CCNA 3.4
"OSPF network types: broadcast vs point-to-point"
OSPF treats Ethernet as a broadcast network, so routers wait and then elect a designated router and a backup. On a link with only two routers that election just adds delay, so set the network type to point-to-point on both ends. Serial links are point-to-point by default.
Why Ethernet is a "broadcast" network
Every OSPF interface has a network type, which tells OSPF how many neighbors it might meet on that link. Ethernet is a shared medium: through a switch, many routers could sit on the same segment. So on Ethernet interfaces OSPF uses the broadcast network type by default.
If every router on a busy segment formed a full adjacency with every other router, the number of adjacencies and the flood of updates would grow fast. To avoid that, routers on a broadcast segment elect a designated router (DR) and a backup designated router (BDR). The other routers form full adjacencies only with the DR and BDR, and the DR speaks for the segment.
The wait before the election
A router that comes up on a broadcast segment doesn't elect straight away. It first waits to learn which routers are already there, in case a DR exists. This wait timer equals the dead interval, 40 seconds by default on Ethernet. Only then does the election run (highest OSPF priority, then highest router ID).
On a segment with many routers that wait makes sense. But many Ethernet links, for example between two routers in different buildings, join only two routers. There, there is nobody else to coordinate, and the wait and the election just add delay.
Point-to-point: no wait, no election
The fix is to change the network type on that interface to point-to-point:
`` interface g0/0 ip ospf network point-to-point ``
A point-to-point interface expects exactly a single neighbor, so it skips the wait and elects no DR or BDR. The two routers go straight to the full state. In show ip ospf neighbor, the neighbor shows as FULL/ -: full, with no DR or BDR role. Set the same network type on both ends; show ip ospf interface shows which type each interface uses.
Serial links already do this
Serial interfaces using HDLC or PPP can only ever have a single router at the other end, so OSPF uses the point-to-point network type on them by default. Only Ethernet needs the command.
Try it yourself
In Packet Tracer or a lab, connect two routers with an Ethernet cable and enable OSPF on both. Run show ip ospf interface and look for "Network Type BROADCAST" and the DR and BDR lines, then show ip ospf neighbor and note the DR or BDR role next to FULL. Now add ip ospf network point-to-point on both interfaces, clear the OSPF process or bounce the link, and compare: the network type changes, the DR and BDR lines disappear, and the neighbor reaches FULL without the 40-second wait.
Good to know
- CCNA 3.4 covers configuring and verifying single-area OSPFv2, including neighbor adjacencies, point-to-point and broadcast network types, and DR/BDR selection (see EP46 OSPF in 60 seconds, EP47 neighbors and DR/BDR, EP114 hello and dead timers).
- On Cisco IOS, Ethernet interfaces default to the OSPF broadcast network type, which elects a DR and a BDR.
- Before electing, a broadcast interface waits the wait timer, equal to the dead interval (40 seconds by default), to learn of existing routers (RFC 2328, sections 9.4 and 7.3).
- Serial interfaces using HDLC or PPP default to the point-to-point network type: no DR or BDR, and the neighbor shows as
FULL/ -inshow ip ospf neighbor. ip ospf network point-to-pointsets an Ethernet interface to the point-to-point type;show ip ospf interfaceshows the network type.- Both ends should use the same network type. A broadcast/point-to-point mismatch can still form a neighbor, because the hello and dead timers match (10/40), but the link-state databases disagree and routes may not be installed.
- Point-to-point on Ethernet also removes the network LSA (Type 2) for that link.
- "They become neighbors faster" means they reach the full state without the wait.
- The video draws generic routers, a generic switch and plain cables, not any vendor's hardware.
For CCNA learners
CCNA exam topic 3.4 asks you to configure and verify single-area OSPFv2. Know which network type Ethernet and serial links use by default, which one elects a DR and BDR, and the interface command that changes it.
Answer to the comment question
1. Only the Ethernet link left on the default broadcast network type elects a designated router (and a backup). The serial link uses point-to-point by default, and the Ethernet link set with ip ospf network point-to-point skips the election too, so neither of those elects a DR.
Test your knowledge
Quick quiz: "OSPF network types: broadcast vs point-to-point"
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- IETF, "RFC 2328, OSPF Version 2": network types, the wait timer and the designated router election
- Cisco, "Initial Configurations for OSPF over Point-to-Point Links": no DR or BDR election on a point-to-point link, and how the neighbor shows as full
- NetworkLessons, "OSPF Network Type Point-to-Point": the ip ospf network point-to-point command, and why no DR or BDR is elected
Video transcript
On a link with just two routers, why hold an election?
OSPF treats Ethernet as a broadcast network: many routers could share one segment.
So the routers first wait to see who's there, then elect a designated router and a backup.
But many Ethernet links join only two routers. There, the election just adds delay.
So change the OSPF network type to point-to-point. No waiting, no election: they become neighbors faster.
In interface mode, type: ip ospf network point-to-point. Set it the same on both ends.
Serial links use point-to-point by default. Only Ethernet needs the change.
A router has three OSPF links: a serial link, a default Ethernet link, and an Ethernet link set to point-to-point. How many elect a designated router? Comment your answer below!
That's your byte.
More from Network Bytes
- EP113"IPv6 SLAAC: an address with no DHCP server"
- EP114"OSPF hello and dead timers"
- EP115"Creating a WLAN in the controller GUI with WPA2-PSK"
- EP116"DTP: how trunks negotiate, and why to turn it off"