Sub topic 11
Router Roles: Internal, ABR, and ASBR
This chapter assumes you know what OSPF areas are, that Area 0 is the backbone, and that each router keeps a link-state database (LSDB) per area. Here you will learn how a router's role follows from where its interfaces sit and what it redistributes.
Roles Describe Position, Not Configuration
OSPF has no command that says "be an ABR." A router's role is a result of its interfaces and routing sources. One router can hold more than one role at the same time.
| Role | Defining condition | Keeps |
|---|---|---|
| Internal router | All interfaces are in one area | One LSDB |
| Backbone router | At least one interface is in Area 0 | Area 0 LSDB (plus others if it is also an ABR) |
| ABR (Area Border Router) | Interfaces in two or more areas, one of them Area 0 | One LSDB per area |
| ASBR (Autonomous System Boundary Router) | Injects routes from outside OSPF | LSDBs for its areas |
Internal and Backbone Routers
An internal router floods and receives LSAs for a single area. It knows the full topology of that area and nothing about the inside of other areas. A backbone router is any router with an interface in Area 0. An internal router that sits entirely in Area 0 is both an internal router and a backbone router.
The ABR
An ABR connects a non-backbone area to Area 0. It runs a separate SPF calculation for each area it belongs to. It then advertises each area's prefixes into the others as Type 3 summary LSAs. Other routers see those prefixes as inter-area routes, with no detail about the topology behind them.
Two points matter in practice:
- A router with interfaces in Area 1 and Area 2 but none in Area 0 does not pass routes between those areas. Inter-area traffic must cross Area 0.
- An ABR has a larger LSDB and does more SPF work than an internal router, so ABRs need more CPU and memory.
The ASBR
An ASBR brings external routes into OSPF. Typical sources are static routes, connected networks, or another routing protocol, imported by redistribution. The ASBR originates Type 5 external LSAs. Routers in other areas cannot reach the ASBR's address directly through the LSAs they hold, so the ABR generates a Type 4 LSA that points to the ASBR.
An ASBR does not need to be in Area 0. It can be an internal router in any normal area.
In this example, R3 and R4 are ABRs and also backbone routers. R5 is an internal router in Area 2 and an ASBR.
Checking a Router's Role
Run show ip ospf on the router. The output states whether it is an area border router, an autonomous system boundary router, or both. It also lists each area the router belongs to.
show ip ospfExercise
Router X has interface Gi0/0 in Area 1, interface Gi0/1 in Area 2, and a static route redistributed into OSPF. It has no Area 0 interface. Which roles does it hold, and does it pass routes between Area 1 and Area 2?
Show answer
It is an ASBR because it redistributes the static route. It touches two areas but has no Area 0 interface, so it does not act as a working ABR for inter-area routing. It does not pass routes between Area 1 and Area 2, because inter-area traffic must go through Area 0.