OSPFv2
netverdict models OSPFv2 as a deterministic routing protocol, not as a vendor router binary. The goal is to answer practical questions:
- Will these routers form neighbours?
- Which router becomes DR or BDR?
- Which routes are intra-area, inter-area, or external?
- What changes when an ABR summarizes, a stub area blocks externals, or a virtual link is added?
Support level
Section titled “Support level”| Area | Level | What this means |
|---|---|---|
| Single-area OSPFv2 | Supported | Neighbours, router IDs, OSPF routes, interface costs, timers, passive interfaces. |
| Multi-area OSPFv2 | Supported | ABR detection as RFC 3509’s Cisco type: a router is an ABR only with ports up in two or more areas, one of them the backbone (a virtual link counts); bit B and summaries wait until then. Type-3 inter-area route projection. |
| Broadcast segments | Supported | DR / BDR election with priority and router-id tie-breaks. |
| Stub areas | Supported | Stub and totally-stubby behaviour, including ABR default route injection. |
| NSSA | Supported | NSSA and totally-NSSA route behaviour, including Type-7-style local external handling and ABR projection. |
| ABR summarisation | Supported | area <id> range and not-advertise. A range’s cost has no effect: the summary carries the component metric. |
| Virtual links | Supported | ABR-to-ABR logical area-0 adjacency through a non-stub transit area. |
| Connected / static redistribution | Supported | Connected and static routes become OSPF external routes; E1 / E2 metric type is tracked. In a VRF’s process, redistribute bgp (MPLS L3VPN PE-CE) and redistribute omp (SD-WAN service VPN) are read too. |
| OSPF authentication | Partial | MD5 configuration is parsed and adjacency mismatch is modelled. Packet-level cryptographic fidelity is not the goal. |
| Packet fidelity | Supported | Hello, DBD, LSR, LSU and LSAck are on the wire in a capture (Packet Lens), decoded by Wireshark. LSAs carry the initial sequence number. |
Standards coverage
Section titled “Standards coverage”| Standard | Coverage | Notes |
|---|---|---|
| RFC 2328, OSPF Version 2 | Behaviour model | Core OSPFv2 concepts: areas, router IDs, Hello timers, DR / BDR election, SPF route computation, Type-3 summaries, virtual links, external routes. |
| RFC 2328 section 9.4 | Supported | DR / BDR election uses priority first and router ID as deterministic tie-break. Priority 0 prevents DR / BDR eligibility. |
| RFC 2328 section 12.4.3 | Supported | ABR summary range behaviour for area <id> range: covered components are suppressed and one summary may be advertised. |
| RFC 2328 section 15.1 | Supported | Virtual links are validated against ABR and transit-area constraints. Stub-family transit areas are rejected. |
| RFC 2328 appendix D | Partial | Area and interface MD5 authentication settings are accepted. Authentication mismatch prevents adjacency. |
| RFC 3101, NSSA | Supported | Plain NSSA gets summaries and no default; nssa no-summary gets the ABR’s Type-3 default and nothing else; nssa default-information-originate originates a Type-7 default (P bit clear). One translator per NSSA piece, elected among border routers reachable over the NSSA; Type-7s leave the area only through it. RFC 3101 §2.4’s mandatory default follows Cisco’s opt-in instead. |
| RFC 5880, BFD | Integration | OSPF can be gated by BFD with ip ospf bfd or bfd all-interfaces. BFD itself is modelled separately. |
| RFC 5340, OSPFv3 | Separate page | OSPFv3 exists as a separate IPv6 model and is not covered by this OSPFv2 matrix. |
Feature matrix
Section titled “Feature matrix”| Feature | Status | Notes |
|---|---|---|
router ospf <pid> | Supported | One process per device. |
router ospf <pid> vrf <name> | Supported | A per-VRF process, isolated from the other VRFs on the router. |
| Router ID selection | Supported | Explicit router-id; otherwise the highest address on an administratively up loopback, else on an up port, as on IOS. LDP and PIM use the same rule. |
network <prefix> <wildcard> area <id> | Supported | Cisco-style network statements bind IPv4 interfaces to areas. The most specific statement wins whatever the order typed; an ip ospf … area line on the port overrides them all. |
| Dotted area IDs | Supported | Accepted in Cisco-style CLI where implemented. |
| Hello packets | Supported | Simulated on deterministic timers, not wall-clock timers. |
| Hello / dead timer mismatch | Supported | Mismatched neighbours do not form; mismatch is surfaced as an event. |
| Passive interfaces | Supported | passive-interface <name> and passive-interface default. A passive port sends no Hellos, so it takes no part in the DR/BDR election. |
| Interface cost | Supported | ip ospf cost <cost> participates in route computation. A loopback’s stub costs its port’s cost: 1 on IOS and NX-OS, 0 on Junos and VyOS/FRR unless stated. An Arista EOS port with no ip ospf cost costs 10 whatever its speed, its loopback included. A point-to-point link also lists its subnet as a stub. |
| Interface priority | Supported | ip ospf priority <0-255> controls DR / BDR election. |
| DR / BDR election | Supported | Deterministic election on broadcast multi-access segments. |
| Network types | Supported | ip ospf network: broadcast, point-to-point, non-broadcast (neighbours configured by hand), point-to-multipoint, point-to-multipoint non-broadcast. |
| Adjacency states | Supported | 2-Way → ExStart → Exchange → Loading → Full, one state per round; the lower router ID is the slave; Loading only when LSAs are missing; routes install at Full (RFC 2328 §10, RFC 5340 §4.2). |
| MTU mismatch | Supported | One-sided as in RFC 2328 §10.6: a DBD naming a larger MTU is refused, so a narrower master stays EXSTART and its slave EXCHANGE, retransmitting every 5 s. ip ospf mtu-ignore (and ipv6 ospf / ospfv3, XR mtu-ignore enable, VyOS mtu-ignore) on the narrow end lifts it. OSPFv3 names the IPv6 MTU (ipv6 mtu, RFC 5340 §A.3.3) where one is set. An unstated MTU counts as 1500. |
| Router LSAs | Behaviour model | Internal LSDB state is modelled for route computation and show output. |
| Network LSAs | Behaviour model | Broadcast transit segments are represented for SPF behaviour. |
| Summary LSAs | Behaviour model | Type-3 inter-area route projection is modelled at ABRs. |
| External LSAs | Behaviour model | Redistributed statics are projected as external routes. |
| E1 / E2 metric type | Supported | redistribute static metric-type 1 or 2; E2 is the default. |
| Stub area | Supported | Blocks external routes and injects a default from the ABR. |
| Totally-stubby area | Supported | Blocks external and inter-area routes; default remains. |
| NSSA | Supported | Allows local external injection while preserving stub-like area behaviour. One ABR, the one with the highest router ID, translates Type-7 to Type-5. |
| Totally-NSSA | Supported | NSSA plus inter-area suppression. |
| Area default cost | Supported | area <id> default-cost <cost> changes the injected default metric. |
| Area range | Supported | area <id> range <network> <mask>. |
Area range not-advertise | Supported | Suppresses covered prefixes and does not emit the summary. |
Area range cost | No effect | Accepted and reported; the summary carries the component metric, not the configured one. |
| Virtual links | Supported | area <transit> virtual-link <remote-router-id>. |
| Virtual-link cost | Supported | Optional explicit cost. |
| Virtual-link auth mode | Configured | Accepted and emitted; packet-level auth exchange is simplified. |
maximum-paths | Supported | Limits equal-cost OSPF paths installed into the RIB. |
default-information originate | Supported | Advertises a default route when enabled. Optional always is accepted as equivalent. |
auto-cost reference-bandwidth | Supported | Interface cost is reference bandwidth divided by interface bandwidth, unless a cost is configured. |
max-metric router-lsa | Supported | The router stays reachable but is avoided as a transit path. |
| Sham-link | Supported | area <id> sham-link between two PEs competes with the backdoor link on cost. |
| Loop-free alternates | Supported | Backup next hops (LFA and remote LFA) are computed over the OSPF topology. |
redistribute bgp ... | Partial | Only in a VRF’s process (router ospf N vrf V): a PE hands the CE what MP-BGP imported, as E2 externals. See MPLS L3VPN. In the global process the line is not read. |
redistribute omp [route-map NAME] | Supported | In router ospf N vrf V on an SD-WAN edge: the OMP routes the edge installed in V become externals, filtered by the map. |
table-map NAME filter | Supported | A computed route the route-map denies is not installed. The LSDB and the tree are unchanged. |
distribute-list … in|out | No effect | Accepted and reported: every route the SPF found is installed. |
| Graceful restart | Partial | Helper mode exists in the engine: a helper keeps a restarting neighbour through the grace period. No vendor command turns it on yet. |
| Opaque LSAs / traffic engineering | Not modelled | Not part of the current OSPF training surface. |
Vendor command matrix
Section titled “Vendor command matrix”| Command | IOS-style | Junos-style | VyOS-style | Notes |
|---|---|---|---|---|
router ospf 1 | Supported | n/a | n/a | Cisco-family process mode. |
router-id 1.1.1.1 | Supported | Supported | Supported | Junos / VyOS map to the same canonical OSPF router ID. |
network 10.0.0.0 0.0.0.255 area 0 | Supported | n/a | n/a | Cisco-style interface selection. A secondary address is a stub network: under network statements it is advertised when one covers it in the primary’s area; ip ospf N area A [secondaries none] takes all or none of them and supersedes network; prefix suppression spares them. A process runs only on ports a network statement, ip ospf N area A or a vendor’s port statement binds; router ospf 1 with no network runs on no port and sends no Hellos. |
set protocols ospf area 0 interface ge-0/0/0 | n/a | Supported | n/a | Junos-style interface-to-area binding. |
set protocols ospf area 0 interface ge-0/0/0 metric 25 | n/a | Supported | n/a | As ip ospf cost: the cost moves the path. Written back in the Junos export. |
set protocols ospf area 0 interface ge-0/0/0 hello-interval 5 | n/a | Supported | n/a | As ip ospf hello-interval: a mismatch blocks the adjacency. Written back. |
set protocols ospf area 0 interface ge-0/0/0 dead-interval 20 | n/a | Supported | n/a | As ip ospf dead-interval: a mismatch blocks the adjacency. Written back. |
set protocols ospf area 0 interface ge-0/0/0 priority 0 | n/a | Supported | n/a | As ip ospf priority: priority 0 is never DR. Written back. |
set protocols ospf area 0 interface ge-0/0/0 interface-type p2p | n/a | Supported | n/a | Network type: p2p, p2mp or nbma. Written back. Other interface knobs, such as disable, are refused and reported. |
set protocols ospf area 0 interface ge-0/0/0 passive | n/a | Supported | n/a | Adds interface to passive OSPF set. |
set protocols ospf area 0 interface ge-0/0/0 bfd-liveness-detection | n/a | Supported | n/a | Enables OSPF BFD gating. |
set protocols ospf area 0 network 10.0.0.0/24 | n/a | n/a | Supported | VyOS-style area network syntax. |
passive-interface default | Supported | n/a | Supported | Junos has no default form; it marks each interface passive. |
passive-interface GigabitEthernet0/0 | Supported | Supported | Supported | Junos: area A interface IF passive. |
ip ospf priority 200 | Supported | Supported | Supported | Controls DR / BDR election. Junos: interface IF priority N. |
ip ospf network point-to-point | Supported | Supported | Supported | Interface network type. Junos: interface-type. Changing it (or the area, hello/dead interval or authentication) restarts the adjacency. |
ip ospf cost 20 | Supported | Supported | Supported | Canonical interface cost. Junos: interface IF metric N. |
ip ospf hello-interval 5 | Supported | Supported | Supported | Per-interface timer override. Junos: interface IF hello-interval N. |
ip ospf dead-interval 20 | Supported | Supported | Supported | A neighbour ages out after its own dead interval (carried on its Hellos). Must be greater than hello interval. ip ospf dead-interval minimal hello-multiplier N gives a one-second dead interval; its Hellos carry HelloInterval 0 and ignore the one received, so two fast-hello ends form an adjacency and a fast end facing a normal one does not. show ip ospf interface prints the Hello as Hello <1000/N> msec; a capture stepped finely enough shows N Hellos a second, the 1-second simulation round one. Junos: interface IF dead-interval N. |
ip ospf message-digest-key 1 md5 secret | Partial | Not yet | Partial | Auth mismatch affects adjacency; cryptographic packet fidelity is simplified. |
area 1 stub | Supported | Not yet | Supported | Blocks Type-5 external routes and injects default. |
area 1 stub no-summary | Supported | Not yet | Supported | Totally-stubby behaviour. |
area 1 nssa | Supported | Not yet | Supported | Summaries, no default. area 1 nssa default-information-originate [metric M] [metric-type T] adds a Type-7 default from the ABR. |
area 1 nssa no-summary | Supported | Not yet | Not yet | Totally-NSSA: the ABR’s Type-3 default and no other summary. A plain area 1 nssa on an internal router does not undo it. |
area 1 range 10.0.0.0 255.255.0.0 | Supported | Not yet | Supported | ABR Type-3 summarisation. |
area 1 virtual-link 2.2.2.2 | Supported | Not yet | Supported | Logical area-0 adjacency through transit area. |
area 1 sham-link 10.0.0.1 10.0.0.2 | Supported | Not yet | Not yet | Intra-area link between two PEs. |
max-metric router-lsa | Supported | Not yet | Supported | Stub router: no transit traffic. |
redistribute bgp 65001 | Partial | Not yet | Not yet | Only in a VRF’s process (PE-CE). |
redistribute static | Supported | Not yet | Supported | Static redistribution into OSPF. VyOS: set protocols ospf redistribute static|connected [metric N] [metric-type N]; default-information originate too. |
redistribute static route-map NAME | Supported | Not yet | Not yet | Route-map can filter redistributed static routes. |
prefix-suppression | Supported | n/a | n/a | RFC 6860: transit prefixes are left out (loopbacks and passive networks stay; a transit LAN’s DR decides and sends its Network-LSA with mask /32). ip ospf prefix-suppression [disable] overrides per port. Routing across the links is unchanged. |
bfd all-interfaces | Supported | Not yet | Not yet | Enables BFD gating for all OSPF interfaces. |
ip ospf bfd | Supported | Not yet | Not yet | Enables BFD gating per interface. |
show ip ospf | Supported | Supported view | n/a | IOS layout: Routing Process "ospf 1" with ID …, max-metric state, reference bandwidth, areas with their type and interface counts. |
show ip ospf neighbor | Supported | Supported view | Supported | IOS layout: Neighbor ID (router ID), Pri, State (FULL/DR, FULL/BDR, FULL/DROTHER, FULL/ - on point-to-point, 2WAY/DROTHER, and EXSTART, EXCHANGE, LOADING while the database exchange runs), a Dead Time counting down, Address, Interface; detail and an interface filter. NX-OS (show ip ospf neighbors), EOS, VyOS (FRR) and Junos print their own layouts. IOS detail shows state changes and the up time; NX-OS an Up Time column; IOS-XR show ospf neighbor; VyOS FRR 9.1’s table; EdgeOS a ZebOS-style layout (approximated). |
show ip ospf database [router|network|summary|asbr-summary|external|nssa-external] [LSID] | Supported | Supported view | n/a | Each area’s database as real OSPF holds it: a Router-LSA per area with B/E, ABR summaries per RFC 2328 §12.4.3, ASBR summaries, type 5 only from the ASBR, NSSA type 7 translated by the highest router ID. LS age counts from origination with the 1800 s refresh; sequence numbers and checksums are the instance’s. The detail forms print IOS’s layout. OSPFv3 has no ages or inter-area LSAs here. |
show ip ospf border-routers | Supported | n/a | n/a | IOS 15 layout: intra-area rows with cost, next hop, port, ABR/ASBR and area. |
show ip ospf virtual-links | Supported | n/a | n/a | is up with the transit area, the interface and the path cost, or is down. |
Behaviour notes
Section titled “Behaviour notes”OSPF in netverdict is replay-oriented. Timers are simulated events, not wall-clock sleeps. Running the same topology and the same commands should produce the same neighbour states and route tables.
SPF is deterministic. When multiple equal-cost candidates exist, the engine uses stable ordering so a replay does not drift between runs.
Broadcast network DR / BDR election follows the OSPF priority rule first,
then router ID. The bundled DR lab deliberately uses router IDs 1.1.1.1,
2.2.2.2, and 3.3.3.3 so the default outcome is easy to inspect before
changing priority.
ABR summarisation is modelled at the area boundary. With
area 1 range 10.0.0.0 255.255.0.0, more-specific area-1 components are
suppressed when leaving area 1, and the ABR emits the configured summary
unless not-advertise is present.
Virtual links are modelled as logical area-0 links between ABRs. They require
a valid non-stub transit area. If the transit area is stub-family, the virtual
link stays down and show ip ospf virtual-links reports it as down.
Examples
Section titled “Examples”Basic single-area OSPF
configure terminalrouter ospf 1 router-id 1.1.1.1 network 10.0.12.0 0.0.0.3 area 0 network 1.1.1.1 0.0.0.0 area 0endshow ip ospf neighborshow ip routeVendor styles
IOS-style
router ospf 1 router-id 1.1.1.1 network 10.0.12.0 0.0.0.3 area 0 network 10.0.1.0 0.0.0.255 area 1 area 1 stub no-summaryJunos-style
set routing-options router-id 1.1.1.1set protocols ospf area 0 interface ge-0/0/0.0set protocols ospf area 1 interface ge-0/0/1.0VyOS-style
set protocols ospf parameters router-id 1.1.1.1set protocols ospf area 0 network 10.0.12.0/30set protocols ospf area 1 network 10.0.1.0/24Force a DR election outcome
configure terminalinterface GigabitEthernet0/0 ip ospf priority 200endclear ip ospf processshow ip ospf neighborSummarise area routes at an ABR
configure terminalrouter ospf 1 area 1 range 10.0.0.0 255.255.0.0endshow ip ospf databaseshow ip routeBuild a virtual link through area 1
On the ABR connected to area 0:
configure terminalrouter ospf 1 area 1 virtual-link 3.3.3.3endshow ip ospf virtual-linksOn the remote ABR:
configure terminalrouter ospf 1 area 1 virtual-link 2.2.2.2endshow ip ospf virtual-linksRunnable labs
Section titled “Runnable labs”| Lab | Covers | Link |
|---|---|---|
| OSPF DR / BDR election | Broadcast segments, priority, router-id tie-break | Open lab |
| OSPF multi-area ABR | Area 0, non-zero areas, ABR Type-3 projection | Open lab |
| OSPF area range | ABR summarisation with area <id> range | Open lab |
| OSPF virtual link | Logical area-0 adjacency through transit area | Open lab |
Known limits
Section titled “Known limits”netverdict intentionally separates routing behaviour from full packet-level vendor emulation.
The current OSPFv2 model does not implement opaque LSAs, traffic-engineering
LSAs, vendor-specific SPF throttling, or exact vendor debug output. Graceful
restart helper mode exists in the engine, but no vendor command reaches it.
Redistribution carries connected and static routes, and, in a VRF’s process, BGP
and OMP routes. distribute-list has no effect. Junos reads OSPF only as
area A interface IF with its knobs (no area types, ranges or export policy);
VyOS and EdgeOS read the interface knobs in both spellings (1.4 protocols ospf interface ethN …, 1.3/EdgeOS interfaces … ip ospf …), passive default, area
types, ranges, virtual links, default-information originate, auto-cost,
maximum-paths, max-metric administrative and OSPFv3 (interface ethN area N, cost, priority, passive); abr-type and log-adjacency-changes have no
effect, one redistribution source is kept per process, and bfd, OSPFv3
network type and timers are not read. Junos has no mtu-ignore. IOS-XR’s interface
settings (cost, network type, priority, hello/dead interval, passive,
mtu-ignore), authentication and keys, and bfd fast-detect with its timers
inherit from area and process, the most explicit level winning; a key mismatch
forms no adjacency. The XR export writes each setting back at the level the
config stated it. XR has no dead-interval minimal (no sub-second Hellos), so
that line is not read.
OSPF packets are on the wire in a capture (Packet Lens), decoded by Wireshark. LSAs carry the initial sequence number, and authentication is shown as a simple password.
Use the page as a support contract for the simulator, not as a claim that netverdict is a drop-in replacement for IOS, Junos, FRR, or VyOS.