What is OSPF (Open Shortest Path First)?
A link-state routing protocol used inside an organization. Each router floods the state of its own links so that all routers share the network topology, and computes the path with the lowest total cost using Dijkstra's algorithm. Costs are generally derived from link bandwidth, and splitting the network into several areas lets it scale to large networks.
Japanese name: OSPF
OSPF (Open Shortest Path First) appears in 6 practice questions across 2 topics, including Network Design and Operations, Computer Networking Basics.
Field: Network Design and Operations
FAQ
What is the difference between OSPF and RIP?
RIP is a distance-vector protocol that chooses routes only by the number of routers passed (the hop count, at most 15), so it ignores link speed. OSPF is a link-state protocol that chooses routes by total cost derived from bandwidth, reacts to changes faster, and can scale to large networks by dividing them into areas.
When is OSPF used and when BGP?
OSPF is a protocol (an IGP) for quickly finding the shortest paths inside one organization (AS). BGP is a protocol for exchanging routes between organizations based on route attributes and policies. Large organizations commonly combine the two, using OSPF inside and BGP toward their ISPs.