OSPF and link-state logic: LSA, LSDB, SPF, DR/BDR and areas
Sign in to read this lesson
OSPF (Open Shortest Path First) is a link-state routing protocol. A distance vector protocol trusts what its neighbour says; a link-state protocol builds a full map of the network. Each router sends LSAs (link-state advertisements) about its own links; put together, every router has the same LSDB (link-state database), the full topology. With SPF the router calculates the shortest path to each destination and installs the best one. On a multi-access network a DR and BDR are elected to cut traffic. OSPF works with areas; every area must connect to the backbone (Area 0).
What you will learn
- OSPF is a link-state protocol: like a navigation system it knows the full map of the network and calculates the shortest path itself. Because it knows everything, loops don't form, but it uses more CPU than distance vector.
- Link = a router interface, state = that interface's condition and how it connects to neighbours. Routers send LSAs, and the LSAs build the LSDB (the full topology).
- Once the LSDB is ready, the SPF (Shortest Path First) algorithm calculates the shortest path to every destination; only the best path goes into the routing table.
- On a multi-access network (a switch) routers form full adjacencies only with the DR (Designated Router) and BDR (Backup DR), not with everyone. No DR/BDR is elected on a point-to-point link.
- OSPF works with areas: Area 0 = backbone; every area connects to Area 0. An ABR sits between two areas, an ASBR at the border with another routing domain.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.