Sub topic 18
Stub, Totally Stubby, and NSSA Areas
This chapter assumes you know OSPF areas, ABR and ASBR roles, and LSA types 1 to 5. It covers three ways to shrink what routers in an area must store, then route summarization, then the main changes in OSPFv3.
Stub, Totally Stubby, and NSSA Areas
Routers in a leaf area rarely need every external route. The ABR can filter LSAs and give the area a default route instead.
| Area type | Blocks | Default route | ASBR allowed |
|---|---|---|---|
| Stub | Type 4, 5 | Injected by ABR (Type 3) | No |
| Totally stubby | Type 3, 4, 5 | Injected by ABR (Type 3) | No |
| NSSA | Type 5 | Optional | Yes (uses Type 7) |
Every router in a stub area must be configured as stub. The stub flag is carried in Hello packets, so a mismatch stops the adjacency from forming. A stub area cannot be area 0 or carry virtual links.
An NSSA (not-so-stubby area) solves one problem. You want a stub-like area that also contains an ASBR, for example a branch with a link to a partner network. The ASBR originates Type 7 LSAs, which flood only inside the NSSA. The ABR translates them to Type 5 LSAs for the rest of the OSPF domain.
router ospf 1
area 2 nssa
!
! On the ABR, to also block Type 3 LSAs in the NSSA:
router ospf 1
area 2 nssa no-summarySummarizing Routes at ABRs and ASBRs
Summarization replaces many specific prefixes with one. This shrinks routing tables and hides link flaps from other areas. OSPF summarizes only at area boundaries.
- At an ABR,
area 1 rangeadvertises one Type 3 LSA for the area's prefixes. - At an ASBR,
summary-addressadvertises one Type 5 (or Type 7) LSA for redistributed prefixes.
router ospf 1
area 1 range 10.1.0.0 255.255.0.0
summary-address 172.16.0.0 255.255.0.0The summarizing router also installs a discard route to Null0 for the summary. This prevents loops when traffic arrives for a part of the range that has no specific route.
OSPFv3: What Changes for IPv6
OSPFv3 keeps the same packet types, state machine, DR/BDR election, and SPF. The differences are these:
- It runs per link, not per subnet. Neighbors use link-local addresses.
- Router and Network LSAs no longer carry prefixes. New Type 8 (link) and Type 9 (intra-area prefix) LSAs do.
- It is enabled on the interface, not with
networkstatements. - The router ID is still a 32-bit value. With no IPv4 address on the router, you must set it manually.
- It uses the multicast addresses FF02::5 and FF02::6.
- Authentication relies on IPsec or the authentication trailer, not a key in the OSPF header.
ipv6 router ospf 1
router-id 1.1.1.1
!
interface GigabitEthernet0/0
ipv6 address 2001:db8:12::1/64
ipv6 ospf 1 area 0Exercise
Area 3 is configured as a stub area on R5 but not on R6, which shares a link with R5 in that area. What happens, and why?
Show answer
R5 and R6 will not form an adjacency. The stub flag is carried in Hello packets, and routers must agree on it. R6 must also be configured as stub, or R5 must stop being stub.
Exercise
A branch area needs a link to a partner network and still blocks Type 5 LSAs from the backbone. Which area type fits, and which LSA type carries the partner's routes inside the area?
Show answer
An NSSA fits. The ASBR in the branch originates the partner's routes as Type 7 LSAs, and the ABR translates them to Type 5 for the rest of the domain.