cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13076
Views
24
Helpful
15
Replies

OSPF - Stub / Totally Stubby Area

GRANT3779
Spotlight
Spotlight

Hello,

Reading into OSPF again after not touching it for a while.

From what I'm reading - Stub area, allows LSA 1 and 2 within the stub area and the ABR sends LSA 3 into the stub area. This LSA 3 is a default route - 0.0.0.0 /0 pointing to the ABR

A Totally stubby area is the same, LSA 1 and 2, but instead of LSA 3 -  ABR injects a default route of 0.0.0.0 /0 pointing to itself?

Is this not exactly the same outcome for both areas? I'm obviously missing something here

15 Replies 15

Hi,

Stub area has LSA 1,2 and 3

but Totally Stub area allows 1,2 and a default route.

for detail see attachment

Regards,

kazim

 

"please rate for helpful posts"

Hi Kazim,

Maybe it's my misunderstanding of LSA3. What exactly does LSA3 provide? Summary routes for various Networks?

Type 3 - Summary LSA - an Area Border Router (ABR) takes information it has learned on one of its attached areas and summarizes it before sending it out on other areas it is connected to. This summarization helps provide scalability by removing detailed topology information for other areas, because their routing information is summarized into just an address prefix and metric. The summarization process can also be configured to remove a lot of detailed address prefixes and replace them with a single summary prefix, helping scalability. The link-state ID is the destination network number for type 3 LSAs.

Please rate useful posts & remember to mark any solved questions as answered. Thank you.

Logically it is correct, the stub has no where else to go apart from one exit point in the area. Why else would it be stub? It does not need to know a summary of other routes, instead the ABR generates a summary LSA with the link state ID of 0.0.0.0 - associated with a default exit point.

Please rate useful posts & remember to mark any solved questions as answered. Thank you.

OK Kinda got it now after reading here with the examples

 

http://simplecisco.wordpress.com/2012/12/21/ospf-stub-totally-stubby-areas/

 

 

Why would you use a STUB over a Totally Stubby Area though? The TSA looks to do everything a stub does but more, and use less resources

It provides other areas information/routes, actually its not a summary route. All routes are there by default. but you can configure it as a summary.

secondly, in sense of summary mean these LSA's have not detailed information, only summarized.

Regards,

kazim

Hello

Basically if you are going to configure an ospf area as a stub and prohibit E1/E2 routes which will shrink the opsf database, Then why not go further and make it a totally stubby area which will also prohibit OIA routes and shrink the D/B even more so:

sh ip ospf database database-summary

Once thing you need to be aware of is if the ospf adjececies hellos are oritignating from a interarea/external prefix when you make the area a stub/totally stub the adjacency's will fail.

area x stub - abr injects default route (stub area no lsa 4-5 = E1/E2 routes

area x stub no-summary - abr (no summary) injects default route  ( totally stuby area - no lsa 3-4-5) = OIA/E1/E2 routes
(the only type LSA 3 allowed is the injected one by the abr but the abr will stop all other lsa type 3 from other areas)




res

Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Still a bit unclear, sorry :-(

So for a Stub - could there be multiple different LSA type 3 injected into the STUB? various summaries? and with the totally stubby there is only ONE route - 0.0.0.0 /0?

I believe that your statements are correct. In a stub area there are likely to be multiple LSA type 3 entries providing routing information about networks and subnets in other areas of the OSPF routing domain (and no routing entries for routes external to the OSPF routing domain other than the default route). In a totally stubby area there are no LSA type 3 summaries from other areas. The only routing entry for destinations outside the area is the default route.

 

HTH

 

Rick

HTH

Rick

Hi Rick,

That's the understanding I came to once reading more so thanks for confirming. I guess my next logical question would be, why would you ever use a STUB over a Totally Stubby Area?

Let me begin my response with a rhetorical question "Do you believe that when you have more information available that you make better decisions?"

 

I think that most of us would agree that more information leads to better decisions. So how does that apply to OSPF and stub vs totally stub areas?

 

I suggest that stub areas present more information (about networks and subnets outside the area and within the OSPF routing domain) while the totally stub area presents no information about any resource outside the area.

 

So a stub area requires more resources and may lead to more optimum routing decisions while a totally stub area requires fewer resources and may lead to some sub optimal routing decisions. So in designing a network you choose one or the other depending on what you believe satisfies the requirements better.

 

HTH

 

Rick

HTH

Rick

Hi Rick, Very good point. I was under the impression that a stub had one way out only. I assume this doesn't always have to be the case? My initial thought was it doesn't need to know anymore info about the rest of the OSPF domain as it only has one way out anyways. The clever work would be done by the ABR? Unless a stub can have more than one way out, wouldn't any extra information be of no use anyway as the next hop will always be the same?

One particular scenario that I've come across.

Site A (third party) is connected to the enterprise network via WAN router. This WAN router is in its stub area, it has the following static routes and OSPF route to its internal organisational networks and default route for outbound.

S 10.0.0.0/8

S 172.16.0.0/12

S 192.168.0.0/24

*O IA 0.0.0.0/0

A PC in this third party site needs to get to 10.1.1.1 (server A which exists in the enterprise network)

If we had totally stub, we have one default route out. In which case we could potentially have a routing loop. This WAN router has a more preferred route back into its internal network. Why? there is a longer match prefix (10.0.0.0/8) - As Rick pointed out, It's making the wrong decision. 

If this was perhaps a stub area we could "leak" routes (using very loosely - allowing type 1,2 and 3) to other inter area routes, therefore we have this in the routing table...

S 10.0.0.0/8

S 172.16.0.0/12

S 192.168.0.0/24

O IA10.1.1.0/24

*O IA 0.0.0.0/0

In this case it will send out the packet correctly taking the OSPF path out rather than back in to its local network, as a result of having the extra information required to make these types of scenario's work.

hth

Please rate useful posts & remember to mark any solved questions as answered. Thank you.

Hi Bilal,

That explanation and example paints a very clear picture!

Thanks a lot for that.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card