In April 1998 the IETF published RFC 2328, a 244-page specification for OSPF Version 2 written by John Moy of Ascend Communications. Its most important sentence is not about packets. It is about memory: “each OSPF router maintains an identical database describing the Autonomous System’s topology.” One network, one map, held identically by every router — and almost everything strange about OSPF follows from the cost of keeping that true.

Summary

  • RFC 2328, April 1998, documents “version 2 of the OSPF protocol”, described as “a link-state routing protocol ... designed to be run internal to a single Autonomous System”.
  • Its central claim is equal knowledge: “each OSPF router maintains an identical database describing the Autonomous System’s topology”, and “from this database, a routing table is calculated by constructing a shortest-path tree”.
  • The work of keeping that identity is named flooding, defined in the document as “the part of the OSPF protocol that distributes and synchronizes the link-state database between OSPF routers”, and it is economised by electing a Designated Router per broadcast network and by hiding topology at area boundaries.

Rumours versus a map

A distance-vector protocol runs on gossip. A router tells its neighbours what it believes about distances; the neighbours adjust, and the picture improves by repetition. It is cheap, local and surprisingly durable — right up to the moment a stale belief circulates politely and everyone believes it together.

A link-state protocol runs on survey. Every router describes its own links, the descriptions are flooded to everyone, and each router computes shortest paths from the same map. The output is sharper. The input has to be identical everywhere, which is a far harder promise to keep.

OSPF is the second kind, and it is worth saying plainly what that makes it: a distributed database that happens to forward packets.

Identical databases, or loops

The abstract states the promise without softening it: each router maintains an identical database describing the topology. Two routers that disagree are not merely suboptimal. They can disagree about which way is shorter, and hand each other’s packets round in a circle until the TTL runs out.

That is why so much of the specification is about agreement rather than about routing. Adjacency formation, database description exchange, flooding, ageing and re-flooding all exist to make a distributed set of records converge — and then stay converged while the topology underneath it keeps moving.

Flooding is the synchronisation protocol

The glossary is blunt about the job: flooding “distributes and synchronizes the link-state database”. Every new piece of topology travels to every router, not merely to the neighbours.

Flooding is expensive, and the expense is the point. Reliability of the shared copy is bought with redundancy; the document’s care about sequence numbers, acknowledgement and re-flooding is the price of a database that must not drift. OSPF does not optimise the message. It optimises the agreement.

The Designated Router: an election held to reduce chatter

On a broadcast network, every router does not need an adjacency with every other. The routers elect a Designated Router, which “generates an LSA for the network and has other special responsibilities”, and the document is explicit about why: reducing “the number of adjacencies required”, which “reduces the amount of routing protocol traffic and the size of the link-state database”.

That is a scaling decision wearing an election’s clothes. The network lowers its own chatter by appointing a spokesman — and inherits a new problem, because the spokesman’s failure becomes an event the protocol must survive. Every economy in a distributed system is a debt booked somewhere else.

Areas are the same trade at a larger scale

The specification also lets an Autonomous System be split into areas, giving “an additional level of routing protection and a reduction in routing protocol traffic”, at the cost of summarising topology at the boundary.

This is where the promise is deliberately broken. Inside an area, routers share the full map. Outside it, they share a summary, and the Area Border Router becomes the place where detail is knowingly lost. Both devices — the Designated Router and the area boundary — tell the same story: a protocol that insists on identical knowledge must keep the database small enough for the identity to remain maintainable, and every reduction in size is a reduction in detail somewhere.

It is also where the lock-in lives. Area design is easy to draw and expensive to redraw; the summarisation points you create become the permanent joints of the network, and the engineers who inherit them inherit your decisions.

The specification that kept rewriting itself

RFC 2328 is not the beginning. John Moy’s OSPF specification first appeared as RFC 1131 in October 1989, and the document was reissued as RFC 1247 in 1991, RFC 1583 in 1994, RFC 2178 in 1997 and finally RFC 2328 in April 1998 — five versions in nine years, each one a patch on a promise that kept needing new machinery to hold.

The protocol then did what surviving software does: it changed address family rather than dying. OSPFv3, RFC 5340, re-targeted the same architecture at IPv6 in 2008.

And it won for a reason that has nothing to do with elegance. The “open” in Open Shortest Path First was a claim against the proprietary routing protocols of the late 1980s: a protocol anyone could implement, specified in public, blessed by the IETF. Legitimacy came from deployment, not from the standards-track label. The IETF’s own creed — “rough consensus and running code” — is a statement about where authority lives, and Lu Heng’s Note on running-code primacy makes the same test explicit: a rule that cannot name the invariant it protects is power, not coordination.

Why the complexity was the moat

Two hundred and forty-four pages is not an accident of drafting style. It is a barrier. A protocol that takes a competent team months to implement correctly, and years to operate well, selects its own market: a handful of vendors ship it, a generation of engineers specialise in it, and the switching cost quietly becomes the product.

That is the lock-in nobody prints in the brochure. OSPF’s complexity protects the networks running it from half-finished alternatives, and protects the vendors implementing it from competition. The same 244 pages that make the protocol trustworthy make it expensive to leave.

The lesson about agreement

OSPF’s product is not a forwarding table. It is a shared understanding, maintained by machinery whose only job is to make sure everyone has the same story.

That is expensive, and it is deliberate. When correctness depends on everyone knowing the same map, the engineering moves from packets to consensus — and the parts that look like plumbing turn out to be the parts that matter. Every router holding the same map is a promise that costs bandwidth to keep and loops to break.