Overview
OSPF is an interior gateway protocol (IGP) that runs within a single autonomous system (AS). Exterior gateway protocols (EGPs), such as Border Gateway Protocol (BGP), exchange routing information between ASs.
OSPF is a link-state routing protocol, similar to the Intermediate System–to–Intermediate System (IS-IS) routing protocol. It advertises the states of its local network links. This link advertisement distinguishes OSPF from some IGPs, such as Routing Information Protocol (RIP). A distance vector protocol, such as RIP, advertises the distances (that is, the number of hops) to each known destination within the network.
Each participating OSPF router within the AS has an identical database describing the AS’s topology. Each individual piece of this database is a particular router’s local state. From this database, OSPF calculates a routing table by constructing a shortest-path tree.
OSPF learns the best routes to reachable destinations. It can quickly detect changes in the topology of an AS and, after a short convergence period, calculate new loop-free routes. This protocol has been designed expressly for the TCP/IP Internet environment, including explicit support for classless interdomain routing (CIDR) and the tagging of externally derived routing information.
This chapter provides direction for customizing basic OSPF settings if you need to do so. For detailed information about the OSPF commands, see the JunosE Command Reference Guide.
OSPF Terms
Table 51 defines commonly used OSPF terms.
Table 51: OSPF-Related Terms
Term | Meaning |
---|---|
adjacency | The relationship between selected neighboring routers for exchanging routing information. Not every pair of neighboring routers is adjacent. |
area | A collection of network segments interconnected by routers. It is a region in an OSPF routing domain. |
area border router (ABR) | A router that sits on the edge of an OSPF area and routes link-state advertisements (LSAs) between areas. |
area ID | A unique number that identifies an area. Typically, formatted as an IP address. |
authentication | A process whereby a user or data source proves that it is what it claims to be. |
authentication type | The method by which authentication is achieved—null (or none), simple, or MD5. For example, simple authentication requires a 64-bit password in each OSPF packet. |
autonomous system (AS) | A set of networks or IP prefixes within a single routing policy domain. |
autonomous system boundary router (AS boundary router) | An OSPF router that redistributes routing information from other routing protocol sources. |
classless interdomain routing (CIDR) | An addressing method that replaces the traditional class structure of IP addresses. In CIDR, the boundary between the network and host portions of an IP address can be on any bit boundary. CIDR addresses have no class restrictions, enabling more efficient use of the IP address space. CIDR addresses are represented by a prefix and a notation that indicates the IP address and mask; for example, 10.12.8.3/16. |
designated router | A designated device (OSPF router) with which other routers form adjacencies, reducing the number of adjacencies required on a broadcast or NBMA network. |
domain | A collection of routers that use a common interior gateway protocol. |
flooding | The distribution and synchronization of the link-state database between OSPF routers. |
hello protocol | A protocol that establishes and maintains neighbor relationships and that communication between neighbors is bidirectional. The hello protocol also dynamically discovers neighboring routers on broadcast or point-to-point networks. |
interior gateway protocol (IGP) | A routing protocol that routers within an AS use to exchange information. |
link-state advertisement (LSA) | A unit of data that describes the local state of a router or network. LSAs are flooded throughout their respective flooding domains. For example, router LSAs are flooded within the area to which the router belongs, summary LSAs are flooded to other areas through the backbone, and external LSAs are flooded throughout the OSPF domain. |
LSA types | OSPF LSAs are categorized into the following types:
|
neighboring routers | Routers that have interfaces to a common network. |
nonbroadcast network | A network that has no broadcast capability but supports more than two routers. |
Not-so-stubby area (NSSA) | Similar to a stub area, but can also import selected external LSAs. |
router ID | A 32-bit number that uniquely identifies a router within an AS; for example, 10.10.1.5. |
stub area | An area that does not get flooded with external LSAs but does carry intra-area and interarea routes and a default route. |
Totally stubby area | A stub area that also blocks type 3 summary LSAs from flowing into the area; however, type 3 LSAs carrying default route information alone are injected into the area. |
virtual link | A logical link between two backbone routers for which the link tunnels through a nonbackbone area. |
Figure 16 illustrates the topology of an OSPF routing domain.
Figure 16: OSPF Topology
