VMware ESXi and vSphere Cluster Management
OSPF Areas Explained: Area 0, ABRs, ASBRs, and Route Summarization
Learn how OSPF areas reduce routing overhead, how Area 0, ABRs, and ASBRs work, and how inter-area routes, external routes, and summarization are handled.
OSPF (Open Shortest Path First) is a link-state interior gateway routing protocol. Instead of learning only a next hop, OSPF builds a model of network topology and uses the Shortest Path First (SPF) algorithm to calculate best paths.
As an OSPF network grows, keeping detailed topology information for every router can require more memory, processing, and link-state traffic. OSPF areas solve this scaling problem by dividing one OSPF routing domain into smaller logical sections.
What Is an OSPF Area?
An OSPF area is a logical collection of contiguous OSPF networks and routers. Routers in the same area exchange link-state information that describes the topology of that area.
Areas create a hierarchy inside one OSPF domain. A large network can be divided into smaller topology domains, each with its own detailed link-state database (LSDB). The LSDB is the collection of link-state information that OSPF uses to model topology.
Why OSPF Uses Areas
| Design benefit | Effect on routers | Why it matters |
|---|---|---|
| Reduced routing information | Routers do not need detailed topology data for every other area. | Less memory is needed for topology and routing information. |
| Smaller topology-calculation scope | Topology changes normally trigger SPF processing primarily within the affected area. | Routers outside that area have less SPF work to perform. |
| Reduced routing-update propagation | Link-state advertisements (LSAs) have an area-related scope instead of automatically describing every internal change everywhere. | Less link-state traffic crosses the OSPF domain. |
Routers within one area maintain a shared view of that area's topology. An internal router does not maintain the same detailed topology knowledge for routers in other areas. It instead learns summarized reachability information through area border routers.
For example, if a link changes inside Area 1, routers in Area 1 may need to update their LSDBs and recalculate SPF paths. Routers in Area 0 do not normally need to recalculate SPF for every internal detail of Area 1. The area boundary limits the impact of the change.
Area IDs and OSPF Neighbor Formation
An Area ID identifies an OSPF area. An area ID can be written as a decimal value such as 1 or in dotted-decimal form such as 0.0.0.1. These forms identify an OSPF area; they do not represent an IP subnet.
Interfaces that must become OSPF neighbors on the same segment must be assigned to the same area. If one router uses Area 0 on a shared link and the other uses Area 1, the routers will not form an OSPF adjacency on that link.
Do not confuse an Area ID with these other identifiers:
- IP subnet: An address range used to number interfaces and hosts, such as
192.0.2.0/24. - Router ID: A unique 32-bit identifier for an OSPF router, commonly written like an IPv4 address.
- Area ID: A logical OSPF grouping identifier, such as
0or0.0.0.1.
Area 0: The OSPF Backbone
Area 0, also called the backbone area, is the central area in a multi-area OSPF design. Non-backbone areas are designed to connect to Area 0.
Inter-area routing information normally traverses the backbone. A simple hierarchy might contain Area 1 connected to Area 0 through an ABR:
Area 1 LANs ---- Area 1 routers ---- ABR ---- Area 0 routers ---- other OSPF areas
Area 1 routers can learn reachability to Area 0 networks through the ABR without storing the detailed Area 0 topology. Likewise, Area 0 routers can learn reachability to Area 1 networks through information advertised by the ABR.
OSPF Router Roles
| Role | Interface or topology condition | Primary function | Example |
|---|---|---|---|
| Internal router | All OSPF-enabled interfaces belong to one area. | Maintains detailed topology information for its area. | A router with all OSPF interfaces in Area 1. |
| Area Border Router (ABR) | Has OSPF interfaces in more than one area, typically Area 0 and a non-backbone area. | Exchanges and advertises routing information between OSPF areas. | A router with one interface in Area 0 and another in Area 1. |
| Autonomous System Boundary Router (ASBR) | Connects OSPF to another routing domain or external route source. | Redistributes external routes into OSPF. | A router importing EIGRP routes or Internet-connected routes into OSPF. |
Internal Router
An internal router has all of its OSPF-enabled interfaces assigned to one area. It participates in that area's topology and maintains the area's detailed LSDB.
A router can have several interfaces and still be an internal router. The deciding factor is not the number of interfaces; it is whether its OSPF interfaces belong to one area or multiple areas.
Area Border Router
An Area Border Router (ABR) has OSPF interfaces in multiple areas. In a typical design, one interface or logical OSPF connection belongs to Area 0 and another belongs to Area 1, Area 2, or another non-backbone area.
The ABR maintains area-specific topology information and advertises reachability between the areas. It is the boundary through which Area 1 networks can be advertised toward Area 0 and vice versa.
Autonomous System Boundary Router
An Autonomous System Boundary Router (ASBR) introduces routes from outside the OSPF domain. The external source could be another routing protocol, such as EIGRP, or a set of external networks learned from an Internet edge or another routing system.
The ASBR uses route redistribution to import those routes into OSPF. An ASBR is identified by its external route function, not simply by having interfaces in multiple OSPF areas.
A single router can be both an ABR and an ASBR. For example, a router with interfaces in Area 0 and Area 1 that also redistributes EIGRP routes into OSPF has both roles.
Intra-Area, Inter-Area, and External Routes
| Route category | Origin | Router role involved | Conceptual example |
|---|---|---|---|
| Intra-area route | A network in the same OSPF area as the receiving router. | Internal routers exchange the area's topology information. | An Area 1 router learns another Area 1 LAN. |
| Inter-area route | A network in a different OSPF area. | An ABR advertises reachability between areas. | An Area 1 router learns an Area 0 LAN through an ABR. |
| External route | A network originating outside the OSPF domain. | An ASBR redistributes the route into OSPF. | An OSPF router learns an EIGRP prefix advertised by an ASBR. |
An intra-area route is calculated using detailed topology within the local area. An inter-area route describes reachability learned from another OSPF area and is normally advertised by an ABR. An external route originated outside OSPF and enters through an ASBR by redistribution.
These categories describe the route's source and scope. An ABR handles inter-area advertisements; an ASBR handles external route redistribution. The same router may perform both functions.
Basic Cisco IOS-Style Area Configuration
One method assigns interfaces to areas through OSPF network statements. On an ABR, different network statements can place different interfaces into Area 0 and Area 1.
router ospf 10
network 10.0.0.0 0.0.0.255 area 0
network 10.1.0.0 0.0.0.255 area 1
In this example, interfaces matching the first network statement participate in Area 0. Interfaces matching the second statement participate in Area 1. If the router has matching interfaces in both areas, it is an ABR.
OSPF can also be enabled directly under an interface:
interface GigabitEthernet0/0
ip ospf 10 area 0
interface GigabitEthernet0/1
ip ospf 10 area 1
Both routers on a shared OSPF segment must use compatible OSPF settings, including the same area assignment for that segment.
Manual OSPF Route Summarization
Route summarization combines multiple more-specific network routes into one broader prefix. For example, these four contiguous /24 networks:
10.1.0.0/24
10.1.1.0/24
10.1.2.0/24
10.1.3.0/24
can be represented by the aligned summary 10.1.0.0/22. Instead of advertising four separate prefixes across a boundary, a router can advertise one aggregate route.
Manual OSPF summarization is performed in two places:
- ABR summarization: Summarizes routes learned from a specific OSPF area before advertising them to other areas.
- ASBR summarization: Summarizes external routes before or while those redistributed routes are advertised into OSPF.
An ABR summary for Area 1 can be configured in Cisco IOS-style syntax as follows:
router ospf 10
area 1 range 10.1.0.0 255.255.252.0
Summarization can reduce the number of advertised routes and produce smaller routing tables. It can also hide internal changes: if one component /24 changes while the summary remains valid, routers outside the area may not need to learn every internal detail.
Worked Multi-Area Topology
Consider this logical topology:
Area 1: 10.1.0.0/24 -- R1 ----- R2 (ABR) ----- R3 -- 10.0.3.0/24 : Area 0
|
R4 (ASBR)
|
EIGRP domain: 172.16.0.0/16
- R1 has OSPF interfaces only in Area 1, so R1 is an internal router.
- R2 has one OSPF interface in Area 1 and another in Area 0, so R2 is an ABR.
- R3 has OSPF interfaces only in Area 0, so R3 is an internal router.
- R4 connects OSPF to an EIGRP domain and redistributes EIGRP routes into OSPF, so R4 is an ASBR.
Tracing Three Route Types
- Intra-area route: R1 learns another Area 1 LAN through Area 1 topology information. The route remains within the same area.
- Inter-area route: R1 needs to reach the Area 0 network
10.0.3.0/24. R2, the ABR, advertises Area 0 reachability into Area 1. R1 uses R2 as the path toward that inter-area destination. - External route: The EIGRP domain contains
172.16.0.0/16. R4 learns it from EIGRP and redistributes it into OSPF. R1 receives an external OSPF advertisement and forwards traffic toward R4.
Notice the difference: R2 carries information between OSPF areas, while R4 introduces a route from outside OSPF. Their roles are based on different boundaries.
Verifying OSPF Areas and Roles
These Cisco IOS-style commands help verify neighbor relationships, area assignments, routes, and redistribution:
show ip ospf neighbor
show ip ospf interface brief
show ip ospf
show ip route ospf
show ip protocols
show ip ospf neighborverifies whether expected adjacencies exist.show ip ospf interface briefhelps confirm which interfaces participate in OSPF and their area assignments.show ip ospfdisplays process-level OSPF information, including area details.show ip route ospfdisplays OSPF-learned routes.show ip protocolshelps review active routing protocols and redistribution settings.
Troubleshooting Common Problems
Neighbors Do Not Form
Symptom: Two directly connected routers fail to become OSPF neighbors.
Likely cause: The interfaces on the shared segment use different area IDs.
- Inspect the OSPF area on both interfaces.
- Review neighbor status and interface details.
- Assign both participating interfaces to the same area.
Non-Backbone Area Cannot Exchange Routes Properly
Likely cause: The non-backbone area is not connected through the Area 0 backbone as required by the normal OSPF hierarchy.
- Map the physical and logical connections between areas.
- Confirm that an ABR has the expected Area 0 and non-backbone area assignments.
- Provide the appropriate backbone connection through an ABR.
External Prefixes Are Missing
Likely causes: The ASBR is not redistributing routes, the source protocol does not contain the expected route, or redistribution parameters are incomplete.
- Confirm that the source protocol has the expected route.
- Check the OSPF redistribution configuration.
- Verify that the ASBR advertises external routes and that other routers receive them.
A Cisco IOS-style redistribution example is:
router ospf 10
redistribute eigrp 100 subnets
Summarization Produces Unexpected Routes
Likely cause: The summary prefix or mask does not correctly represent the intended networks.
- List all component prefixes.
- Validate the summary's binary boundary and mask.
- Compare routing tables before and after applying the summary.
- Use an accurately aligned summary or remove the incorrect one.
Key Points to Remember
- An OSPF area is a logical collection of contiguous networks and routers that share detailed topology information.
- Areas reduce LSDB size, limit SPF calculation scope, and reduce link-state update overhead.
- Interfaces on the same OSPF segment need matching area IDs to form an adjacency.
- Area 0 is the backbone through which non-backbone areas normally exchange inter-area information.
- An internal router belongs to one area; an ABR connects multiple OSPF areas.
- An ASBR injects routes from another routing domain or external source into OSPF.
- ABRs handle inter-area advertisements, while ASBRs handle external route redistribution.
- ABRs can summarize routes from an area, and ASBRs can summarize redistributed external routes.
- Summaries must be correctly aligned and broad enough to include the intended contiguous networks, but not broader than the design permits.
For a related reference, see OSPF areas explained.