OSPF MASTERCLASS · CHAPTER 4

NBMA, MTU, LSA types and stub areas

A ping that works without a neighbor, an MTU that stalls the adjacency, and the LSA map that decides which routes reach each area.

14 min readVideos: Day 1, parts 7 and 8Level: intermediate

From point A to point B

Point A: you already know the network types and the 8 neighbor states, but when a neighbor gets stuck you still don't know where to start. Point B: by the end of this chapter you will bring up OSPF over an NBMA network, recognize stuck in Attempt and stuck in ExStart by their symptoms, and know which LSAs enter each type of area.

What you will see
  1. Frame Relay with no neighbor and the neighbor command
  2. Stuck in Attempt, caused with an ACL
  3. Stuck in ExStart from an MTU mismatch
  4. Reading the debug, from Down to Full
  5. The LSA types, the four stub areas and a real LSDB

Ping works, but there are no neighbors

The lab has two serial links. R1 and R2 connect over a point-to-point link, 40.40.40.0/24, in area 0. R2 and R3 use back-to-back Frame Relay, 50.50.50.0/24, in area 10. R2 is the ABR.

OSPF lab: a point-to-point link and a Frame Relay NBMA link R1, router ID 0.0.0.1, connects to R2, router ID 0.0.0.2, over a serial point-to-point link, 40.40.40.0/24, in area 0. R2 is the ABR. It connects to R3, router ID 0.0.0.3, over a back-to-back Frame Relay link, 50.50.50.0/24, in area 10. Frame Relay is a non-broadcast multiaccess network, so R2 needs the static command neighbor 50.50.50.53. The NBMA link uses a 30-second Hello, a 120-second dead interval and elects a DR, R3, and a BDR, R2. In the test, R3 applies the inbound ACL ACL-NO-OSPF on Serial0/1: R3 stops hearing R2 and its dead timer expires, while R2 still hears R3 until its own dead timer runs out. AREA 0 · POINT-TO-POINT AREA 10 · FRAME RELAY NBMA R1 RID 0.0.0.1 Lo 1.1.1.1 R2 · ABR RID 0.0.0.2 · BDR Lo 2.2.2.2 R3 RID 0.0.0.3 · DR Lo 3.3.3.3 40.40.40.0/24 .1 · serial · .2 50.50.50.0/24 .52 S0/0 · S0/1 .53 NBMA RULES no multicast Hellos: neighbor 50.50.50.53 on R2 Hello 30 s · Dead 120 s DR/BDR election (priority 1) ACL TEST ON R3 · S0/1 IN R3 drops Hellos: its dead timer expires R2 still hears R3: stays FULL a while longer the static neighbor goes to ATTEMPT Ping works in both cases: the problem is OSPF, not the link.

R2 joins point-to-point area 0 with area 10 over Frame Relay. Diagram: The House of Routing.

The interfaces are up/up, the encapsulation matches and the ping between 50.50.50.52 and 50.50.50.53 works. Even so, show ip ospf neighbor doesn't show R3 and the debug stays silent.

What's missing? Frame Relay is a non-broadcast multiaccess (NBMA) network: Hellos are not sent as multicast to 224.0.0.5, so you have to tell the router who its neighbor is.

R2(config)# router ospf 1
R2(config-router)# neighbor 50.50.50.53
R2(config-router)# do show ip ospf neighbor
R2(config-router)# do show ip ospf interface serial 0/0
! Network Type NON_BROADCAST · Hello 30 · State BDR · Priority 1

With a single neighbor on R2, the neighbor goes through Attempt and reaches Full. One end is enough, although configuring both is recommended.

show ip ospf interface serial 0/0 confirms the previous chapter: NON_BROADCAST, a 30-second Hello and a 120-second dead interval. Here there is an election: R3 becomes the DR and R2 the BDR, both with priority 1.

Stuck in Attempt: an ACL that silences the neighbor

Time to break something. On R3, Jesús creates an ACL that permits ICMP and blocks OSPF, and applies it inbound on the serial toward R2:

R3(config)# ip access-list extended ACL-NO-OSPF
R3(config-ext-nacl)# permit icmp any any
R3(config-ext-nacl)# deny ospf any any
R3(config-ext-nacl)# deny ip any any
R3(config-ext-nacl)# exit
R3(config)# interface serial 0/1
R3(config-if)# ip access-group ACL-NO-OSPF in
R3(config-if)# do show ip access-lists
R3(config-if)# do show ip ospf neighbor
! remove the filter and restart OSPF instead of waiting
R3(config-if)# no ip access-group ACL-NO-OSPF in
R3(config-if)# do clear ip ospf process

Watch the dead timer on R3: it no longer resets every 30 seconds. It keeps counting down, because R2's Hellos are dropped on the way in. When it reaches zero, R3 declares the neighbor dead.

On R2 the story is different. R2 still receives R3's Hellos, so the neighbor stays FULL/DR a little longer. The failure is asymmetric. In the end, R2 also goes from Full to Down.

Because the neighbor is static, R2 keeps trying in Attempt with unicast Hellos: that is stuck in Attempt, a state that only exists for manually configured neighbors on NBMA. Jesús also adds a neighbor toward 65.65.65.65, a device that doesn't exist: another way to leave a neighbor in Attempt. Over time, the debug ends up showing “too many retransmissions”.

A live surprise. After removing the ACL and restarting with clear ip ospf process, the neighbor goes through ATTEMPT/DOWN and then INIT/DROTHER. Jesús didn't expect that on NBMA. It is normal according to RFC 2328: from Attempt, when a Hello arrives from the neighbor, the state machine moves to Init. Init only means the Hello arrived, but your router ID isn't in it yet.

Stuck in ExStart: the MTU travels in the DBD

The next test uses the point-to-point link R1–R2, which reacts faster. On R2, Jesús lowers the MTU of serial 0/1 to 750. Nothing happens: the neighbor stays in Full.

The MTU doesn't travel in the Hello but in the Database Description (DBD), which is only exchanged while the adjacency forms. That's why you have to restart the process.

R2(config)# interface serial 0/1
R2(config-if)# mtu 750
R2(config-if)# do clear ip ospf process
R2(config-if)# do debug ip ospf adj
R2(config-if)# do debug ip ospf packet
R2(config-if)# do show ip ospf neighbor
! debug: Nbr ... has larger interface MTU  -> R1 stuck in EXSTART
! fix: the same MTU on both ends
R2(config-if)# mtu 1500
R2(config-if)# do clear ip ospf process

With debug ip ospf packet the key message appears: the neighbor has larger interface MTU. In Wireshark, R2's DBD shows MTU 750. R2 rejects R1's DBD, which advertises 1500, and stays in ExStart. RFC 2328 defines it this way: if the advertised MTU is larger than what the receiving interface can accept, the DBD is rejected.

The interface MTU travels in the Database Description R1 has an IP MTU of 1500 on the link and R2 has 750. In ExStart, each router sends a Database Description packet that carries its interface MTU. R2 receives the DBD from R1 with MTU 1500, which is larger than its own 750, rejects it and logs that the neighbor has a larger interface MTU, so R2 stays in ExStart. R1 accepts the DBD from R2, because 750 is smaller than 1500, and can move on to Exchange, but its larger DBDs never reach R2. The adjacency never reaches Full. Fix it with the same MTU on both ends; ip ospf mtu-ignore only for rare cases. R1 · RID 0.0.0.1 IP MTU 1500 may move to EXCHANGE R2 · RID 0.0.0.2 IP MTU 750 stuck in EXSTART DBD · Interface MTU 1500 → 1500 > 750: rejected DBD · Interface MTU 750 → 750 ≤ 1500: accepted debug: Nbr … has larger interface MTU HELLOS STILL FLOW · THE DBD EXCHANGE NEVER FINISHES Fix: the same MTU on both ends of the link (back to 1500 in the lab). ip ospf mtu-ignore turns the check off: only for rare, well-understood cases.

A DBD with MTU 1500 doesn't fit a 750 interface: the adjacency never gets past ExStart. Diagram: The House of Routing.

Look at the symptom: Hellos keep arriving, but the neighbor falls back to ExStart again and again. According to Cisco, the router with the larger MTU can move on to Exchange, but its large DBDs never get through.

The fix: the same MTU on both ends; in the lab, back to 1500. ip ospf mtu-ignore turns the check off, but Cisco keeps it for rare cases. Another cause of this stall is a duplicate router ID.

So when should you change the MTU?

Every encapsulation adds headers. MPLS, GRE and overlays such as VXLAN or VMware NSX need more than 1500 bytes. If you build a provider network from scratch, Jesús recommends moving to jumbo frames, over 9000 bytes, on every device in a single maintenance window. Without overlays, 1500 works fine.

Reading the adjacency debug

The second video starts clean: a single debug and an OSPF restart. For Jesús, with this command “you can do wonders” when learning OSPF.

R2(config)# do undebug all
R2(config)# do debug ip ospf adj
R2(config)# do show debug
R2(config)# do clear ip ospf process
Reset ALL OSPF processes? [no]: yes

Read in order, the debug tells the whole story of the neighbor relationship:

  1. Full to Down. The restart drops the neighbors; Down is an OSPF state, not a shutdown.
  2. Hello and election. The segment elects a DR and a BDR: 0.0.0.3 wins.
  3. 2-Way. Each router sees its own router ID in the other's Hello.
  4. ExStart. The DBDs negotiate master, slave and sequence number. The MTU is checked here.
  5. Exchange. The DBDs carry only LSA headers.
  6. Loading. The Link State Request asks for what's missing; the Link State Update delivers it.
  7. Full. The databases are synchronized and the adjacency is up.

Once in Full, Wireshark only shows Hellos until the LSAs are refreshed, every 30 minutes.

The LSA types

Each LSA has an author and a scope, and that decides how you see the route in the table.

LSAWho creates itHow far it goesIn the table
1 · RouterEvery routerIts own areaO
2 · NetworkThe segment's DRIts own areaO
3 · SummaryThe ABRThe other areasO IA
4 · ASBR SummaryThe ABRThe other areas(where the ASBR is)
5 · AS ExternalThe ASBRThe whole domain, except stub areasO E1 / O E2
7 · NSSA ExternalThe ASBR inside an NSSAThe NSSA; the ABR translates it to type 5O N1 / O N2

The ABR takes the type 1 and 2 LSAs of one area and advertises them into the other as type 3. That's where inter-area routes, O IA, come from.

And type 4? A router that redistributes routes from the Internet or another protocol becomes an ASBR, and its routes travel as type 5. The ASBR flags itself in its type 1 LSA, but that LSA never leaves its area. In the other areas, the ABR announces where the ASBR is with a type 4.

Where each LSA type travels Five columns from left to right: an external routing domain such as EIGRP, BGP or the Internet; the ASBR that redistributes it; area 0, the backbone; the ABR between area 0 and area 10; and area 10, a normal area. Type 1 router LSAs and type 2 network LSAs stay inside their own area; every router creates type 1 and the DR creates type 2. The ABR creates type 3 summary LSAs, seen as O IA routes, and type 4 ASBR summary LSAs, which tell other areas how to reach the ASBR. The ASBR creates type 5 external LSAs, seen as O E1 or O E2, which flood the whole domain except stub areas. In an NSSA, the ASBR creates type 7 LSAs and the NSSA ABR translates them into type 5. EXTERNAL EIGRP · BGP · Internet ASBR redistributes AREA 0 backbone ABR area 0 + area 10 AREA 10 normal area TYPE 1 · ROUTER every router every router TYPE 2 · NETWORK the DR the DR TYPE 3 · SUMMARY ABR → O IA routes TYPE 4 · ASBR SUM. ABR → where the ASBR is TYPE 5 · EXTERNAL ASBR → O E1 / O E2 · whole domain, except stub areas Types 1 and 2 never leave their area: the ABR turns them into type 3 for the other side. Type 7: an ASBR inside an NSSA creates it; the NSSA ABR translates it into type 5 (P-bit set). The ABR also sends type 3 summaries of area 10 into area 0.

Types 1 and 2 stay in their area; the ABR creates types 3 and 4; the ASBR creates type 5. Diagram: The House of Routing.

The four stub areas

A stub network has a single exit, like your home: one router and a default route, 0.0.0.0/0. Why send 150,000 routes to a router with 10 users and one cable out? Stub areas filter LSAs, shrink the table and add hierarchy.

AreaLSAs allowed inDefault routeConfiguration
Stub1, 2, 3The ABR injects itarea n stub on all routers
Totally stubby1, 2The ABR injects itno-summary only on the ABR
NSSA1, 2, 3, 7Not by defaultarea n nssa on all routers
Totally NSSA1, 2, 7The ABR injects itno-summary only on the ABR

Stub and NSSA are standards (RFC 2328 and RFC 3101). The names totally stubby and totally NSSA, with their no-summary, are Cisco's; the RFCs only allow the ABR to send fewer summaries. In a multivendor network, you may only use stub and NSSA.

Stub and totally stubby

A stub area blocks type 4 and 5 LSAs, and the ABR injects the default route. Every router in the area needs area n stub, because the Hello carries the E-bit (External Capable) set to 0 and it must match. If it doesn't, there is no neighbor: it's one of the causes from chapter 2.

Totally stubby also blocks type 3, except the default route. Only the ABR changes: it adds no-summary. The other routers keep area n stub.

! Stub: the same command on every router in area 10
R2(config)# router ospf 1
R2(config-router)# area 10 stub
R3(config)# router ospf 1
R3(config-router)# area 10 stub

! Totally stubby: add no-summary only on the ABR
R2(config-router)# area 10 stub no-summary

In neither case can the area be the transit area of a virtual link.

NSSA and totally NSSA

Imagine your area has been stub for 5 years and the company buys another business with its own Internet exit. The area is no longer “so stub”: it needs an ASBR. That's what the not-so-stubby area is for.

What the ASBR redistributes enters as a type 7 LSA. When it crosses the ABR, it becomes type 5 for the rest of the domain. In the Hello, the N-bit set to 1 marks NSSA routers, and the E-bit stays at 0. In the type 7, the P-bit tells the ABR to translate it. In Wireshark, depending on the version, you may only see the N-bit: it sits in the same position as the P-bit.

Watch the default route. In an NSSA, the ABR doesn't create it on its own: you have to ask for it with default-information-originate. In a totally NSSA, the ABR's no-summary does inject the default route. As an example, on area 10 of this lab:

! NSSA: the same command on every router in area 10
R2(config-router)# area 10 nssa
R3(config-router)# area 10 nssa

! The NSSA ABR does not send a default route unless you ask
R2(config-router)# area 10 nssa default-information-originate

! Totally NSSA: add no-summary only on the ABR
R2(config-router)# area 10 nssa no-summary

Router 3's LSDB

To wrap up, Jesús removes R3's FastEthernet0/0 from area 10 with no ip ospf 1 area 10 and reads the database of R3, which is only in area 10:

R3# show ip ospf database
R3# show ip ospf interface | include Designated
  • Type 1 (Router Link States): one from R2 and one from R3 itself; the Link State ID is their router ID.
  • Type 2 (Net Link States): advertised by 0.0.0.3, Link State ID 50.50.50.53. If you see a type 2, there is a DR; | include Designated confirms it is R3.
  • Type 3 (Summary Net Link States): 1.1.1.1, 2.2.2.2 and 40.40.40.0, the area 0 networks. The Advertising Router is R2, the ABR.

That's the ABR's logic: it receives types 1 and 2, turns them into type 3 and tells the other area “if you want to get here, go through me”. It acts as a gateway, in both directions.

Class videos

These are the two Day 1 videos this chapter is based on. They were recorded live on February 7, 2021, with Cisco IOSv routers in GNS3, debug and Wireshark. The audio is in Spanish, with Spanish, English, French and Portuguese subtitles.

Recorded live; Spanish audio with Spanish, English, French and Portuguese subtitles. When you play it, the video loads from YouTube. Day 1 playlist on YouTube

Test what you learned

1. Two Frame Relay routers can ping each other, but OSPF doesn't form a neighbor and the debug is silent. What's missing?

Answer. The neighbor command: on NBMA, Hellos aren't sent as multicast. One end is enough, although both are recommended.

2. R3 filters inbound OSPF with an ACL. Why does R2 still see R3 in FULL for a while?

Answer. Because R2 still receives R3's Hellos and its dead timer keeps resetting. Only R3 stops hearing its neighbor. Later R2 also drops to Down and, since the neighbor is static, moves to Attempt.

3. You change an interface MTU and the neighbor stays in Full. Is everything fine?

Answer. Not necessarily. The MTU travels in the DBD, which is only exchanged while the adjacency forms. After a restart, the side with the smaller MTU rejects the DBD with the message has larger interface MTU and gets stuck in ExStart.

4. A router in another area needs to reach an O E2 route. Which LSA tells it where the ASBR is?

Answer. The type 4 LSA, ASBR Summary, created by the ABR. The external route travels as type 5; type 4 shows how to reach the ASBR.

5. You want an area to receive only a default route, and it also has its own ASBR. Which area type do you configure, and where does no-summary go?

Answer. Totally NSSA. Every router in the area gets area n nssa and only the ABR adds no-summary, which blocks type 3 and injects the default route. The ASBR advertises its routes as type 7.

Key takeaways

  • On NBMA, ping isn't enough: without neighbor there are no Hellos. Hello 30, dead 120 and a DR/BDR election.
  • Attempt only exists for static neighbors on NBMA. An ACL that filters inbound OSPF causes an asymmetric failure.
  • The MTU travels in the DBD: with a mismatch, the adjacency stalls in ExStart even though Hellos arrive.
  • Match the MTU on both ends. If your network carries MPLS or overlays, plan jumbo frames on every device.
  • Types 1 and 2 stay in their area; the ABR creates 3 and 4; the ASBR creates 5; in an NSSA, type 7 is translated to 5.
  • Stub and NSSA go on every router in the area; totally only adds no-summary on the ABR. In an NSSA, ask for the default route with default-information-originate.

Official resources

Source and credits. Chapter written from the OSPF Masterclass that Jesús Espinoza recorded live in 2021. Text drafted with AI assistance and reviewed; original diagrams by The House of Routing. Technical data and configuration were checked against official Cisco documentation and IETF RFCs.

Navigate