OSPF Routing Visualizer — watch routers become neighbors

OSPF is the routing protocol CCNP ENCOR candidates must see, not just memorize. On this page four routers form adjacencies in front of you, elect a DR and BDR, pick the cheapest path, and flood LSAs across two areas — and then one router refuses to join, and you find out why. Every step is graded.

Learning simulator, not real Cisco IOS. This page models OSPF behavior so you can study it — neighbor states, elections, costs and LSAs behave the way the protocol rules say they should. It does not configure real routers, and nothing here is a Cisco device, image or command output.
YOUR PROGRESS
0 of 6 exercises complete · best score —

The scenario — a branch that has to join the network

CertCrack.com runs a small enterprise network. Three routers — R1, R2 and R3 — already share the headquarters segment 10.0.0.0/24 in Area 0, and they route happily. A new branch router, R4, has just been plugged into the same segment, and the branch LAN 192.168.99.0/24 behind it has to become reachable from everywhere.

Your job, in five stages: 1) watch R4 form a full adjacency, 2) work the DR/BDR election and the cheapest path yourself, 3) follow LSAs across two areas, 4) fix the router that will not join, and 5) prove it with six graded exercises. The lab saves your progress in this browser.

Stage 2 — Watch the adjacency form

Press Form adjacencies and watch R4 join the segment. Hello packets travel the segment, the seven neighbor states tick by, and at the end the DR and BDR are elected. Then change a priority below and watch the election move — that is the rule, drawn.

BROADCAST SEGMENT — 10.0.0.0/24 — AREA 0 R1RID 1.1.1.1priority 100 R2RID 2.2.2.2priority 10 R3RID 3.3.3.3priority 1 R4 — new branchRID 4.4.4.4priority 0 Neighbor state between R1 and R4: Down — no hello heard yet No DR/BDR yet — form the adjacencies to run the election.
Step 0 of 7
Down

R4 has just been plugged in. Nobody has heard a hello from anybody yet, so every neighbor relationship on this segment is Down.

Try it: set R3's priority to 100 and press Form adjacencies again — R3 becomes DR and R1 drops to BDR, because the highest priority wins and the tie with R1 is broken by the higher router ID (3.3.3.3 beats 1.1.1.1). Set R4's priority to 100 and it becomes DR too — priority 0 is the only thing that kept it out. Real-world note: on a real network the DR and BDR do not change when a higher-priority router joins later — the election only runs while the segment first forms. This simulator re-runs the election when you change a priority so you can see the rule working.

Which path does OSPF install? Follow the cost

R1 needs to reach the branch LAN 192.168.99.0/24. Two paths exist. OSPF adds up the outgoing interface costs along each path and installs the cheapest one — nothing else matters. Change a cost below and watch the routing table flip.

Path A — via R210 + 10 = 20
Path B — via R35 + 5 = 10
Installed routevia R3 · cost 10
DestinationNext hopTotal costOutgoing interface
192.168.99.0/24R3 (10.0.0.3)10GigabitEthernet0/0
10.0.0.0/24directly connected1GigabitEthernet0/0

Where the cost comes from: an interface's OSPF cost is the reference bandwidth (100 Mbps by default) divided by the link's bandwidth. A 10 Mbps link costs 10, a 100 Mbps link costs 1, and anything faster also costs 1 — the minimum — unless the reference bandwidth is raised, which is exactly why modern networks raise it to 10 Gbps or 100 Gbps. The exam loves cost questions because the arithmetic is simple, but you have to add up every hop, and the lowest total wins even when the path has more routers in it.

Two areas, one ABR — follow the LSAs

Now the network grows. Area 0 is the backbone; Area 1 is an NSSA (a not-so-stubby area) holding the branch routers, and R5 is an ASBR advertising an outside route, 203.0.113.0/24. Click an LSA type and watch where it is allowed to go — the flooding rules are the whole of multi-area OSPF.

AREA 0 — BACKBONE AREA 1 — NSSA R1RID 1.1.1.1Area 0 R2 — ABRRID 2.2.2.2Area 0 + Area 1 R3RID 3.3.3.3Area 1 R4RID 4.4.4.4Area 1 R5 — ASBRRID 5.5.5.5203.0.113.0/24 R2 is the Area Border Router: it holds a database for Area 0 and one for Area 1, and it translates routes between them.
Pick an LSA type

Click a button above. The flood path lights up on the diagram and this box explains who creates the LSA, what it carries, and how far it is allowed to travel.

The rule to remember: Types 1 and 2 never leave their area. Type 3 is how the ABR tells each area about the other's routes. Type 4 tells an area where the ASBR lives. Type 5 carries external routes everywhere — except into stub and NSSA areas. Type 7 is the NSSA's own version of an external route, and the ABR translates it into a Type 5 for the backbone.

Stage 3–5 — Prove it: six graded exercises

Work each exercise, press Check, and read the explanation — right or wrong, the explanation is where the learning happens. Your best score is saved in this browser.

Exercise 1 — Put the neighbor states in order (7 points)

Click the seven OSPF neighbor states in the order two routers pass through them, from first contact to a fully working adjacency.

Your order will appear here — click the states above, in order.

Exercise 2 — Elect the DR and BDR (2 points)

Four routers share one segment. Their OSPF priorities and router IDs are:

RouterPriorityRouter ID
R1501.1.1.1
R21002.2.2.2
R31003.3.3.3
R404.4.4.4

Exercise 3 — Which path wins? (3 points)

R1 must reach 192.168.99.0/24. The link costs are: R1 → R2 = 10, R2 → LAN = 10, R1 → R3 = 5, R3 → LAN = 5.

Exercise 4 — Match the LSA types (6 points)

Match each description to the LSA type that carries it.

Exercise 5 — Summarize these routes (2 points)

An ABR must advertise these four networks from Area 1 into Area 0 as a single summary. What is the summary address and prefix?

10.1.0.0/24  ·  10.1.1.0/24  ·  10.1.2.0/24  ·  10.1.3.0/24

Exercise 6 — Fault challenge: the router that will not join (2 points)

R4 is plugged into the Area 0 segment, but its neighbor state with R1 is stuck at Down. Read the evidence and find the fault.

R4's hello packetArea 2 · Hello 10s · Dead 40s · MTU 1500 · Priority 0
The segment (R1, R2, R3)Area 0 · Hello 10s · Dead 40s · MTU 1500
R1's neighbor tableR2 — Full · R3 — Full · R4 — Down
R4's neighbor tableEmpty — no neighbors seen
YOUR SCORE
0 / 22

Work the six exercises above — your score updates after every check. 80% (18 of 22) is the pass mark.

LSA types at a glance

TypeNameMade byWhere it floods
1Router LSAEvery routerInside its own area only
2Network LSAThe DRInside its own area only
3Summary LSAThe ABRFrom one area into the others
4ASBR Summary LSAThe ABRInto an area, pointing at the ASBR
5External LSAThe ASBRThe whole domain, except stub and NSSA areas
7NSSA External LSAThe ASBR in an NSSAInside the NSSA; the ABR turns it into a Type 5

Keep going

OSPF is one piece of ENCOR routing. The same habits — read the evidence, work the numbers, verify — carry into every other topic: try the Journey of a Packet to follow a packet through NAT and routing, the CLI Trainer for configuration practice, and the Subnet Visualizer for the addressing underneath it all. This is the first tool in the CCNP ENCOR suite — more are coming.

Questions students ask

Why do routers stop at 2-Way instead of going to Full?

On a broadcast segment, routers only form full adjacencies with the DR and BDR. Every other pair stops at 2-Way — they have seen each other, which is enough, and the DR handles the database exchange for the segment. That is normal, not a fault.

What happens if two routers have the same router ID?

The adjacency will not form properly — the routers cannot tell each other apart in hello packets and LSAs. Every router in an OSPF domain needs a unique router ID; the usual practice is to set it explicitly with a loopback address.

Does a higher-priority router steal the DR role when it joins?

No. Once a DR and BDR are elected on a segment, they stay until they fail — a newcomer with a higher priority becomes a DROther and waits. The election only runs when the segment first forms, or when the DR or BDR goes down.

Why does an MTU mismatch stop neighbors at ExStart?

In ExStart and Exchange the routers swap database description packets, and those packets carry the sender's MTU. If the MTUs differ, each side drops the other's descriptions and the exchange never finishes — the neighbors sit in ExStart/Exchange forever. An area or timer mismatch is different: the hello itself is dropped, so the neighbor never gets past Down.