OSPF Stub Area vs Totally Stub Area

Both stub and totally stub areas in OSPF are designed to reduce the amount of routing information within an area, which can improve performance and reduce resource usage. However, they differ in the type of routing information they filter and the use cases they are suited for. Here's a detailed comparison:

FeatureStub AreaTotally Stub Area
DefinitionA stub area prevents Type-5 LSAs (External routes) from being flooded but allows Type-3 LSAs (Inter-area routes).A totally stub area prevents both Type-5 (External routes) and most Type-3 LSAs (Inter-area routes) from being flooded.
Default Route InjectionReceives a default route (0.0.0.0/0) from the ABR to reach external destinations.Receives a default route (0.0.0.0/0) from the ABR to reach both external and inter-area destinations.
Type of LSAs AllowedAllows Type-1, Type-2, and Type-3 LSAs. Type-5 LSAs are blocked.Allows Type-1 and Type-2 LSAs. Blocks Type-3, Type-4, and Type-5 LSAs.
Configurationarea <area-id> stubarea <area-id> stub no-summary
Main Use CaseUseful when external routes are not needed in the area, but inter-area routes are required.Useful for areas that need minimal routing information and rely on a single default route for all non-local destinations.
Traffic OptimizationReduces external route advertisements, optimizing performance for areas with less interest in external destinations.Maximizes simplicity and performance by drastically reducing routing information, suitable for edge areas with simple connectivity requirements.
Resource SavingsModerate reduction in routing table size and CPU/memory usage.Significant reduction in routing table size and CPU/memory usage.
Example ScenarioA branch office that requires access to other OSPF areas but not to external networks.A remote office that connects only to a single central office and relies entirely on default routes.

Similarities

  1. Default Route: Both receive a default route from the ABR.
  2. Filtered LSAs: Both reduce the size of the routing table by filtering specific LSAs.

Differences

  1. Type-3 LSAs: Stub areas allow Type-3 LSAs (inter-area routes), whereas totally stub areas block them.
  2. Configuration Syntax: Totally stub areas require the no-summary keyword, while stub areas do not.

https://networklessons.com/ospf/introduction-to-ospf-stub-areas https://networklessons.com/ospf/how-to-configure-ospf-stub-area https://networklessons.com/ospf/how-to-configure-ospf-totally-stub-area