OSPF defines several area types for special cases, including stub areas, totally stubby areas, and not-so-stubby areas (NSSAs). The purpose behind all three types of stub areas is to inject default routes into an area so that external and summary LSAs are not flooded in. Stub areas are designed to reduce the amount of flooding, the size of the LSDB, and the size of the routing table in routers within the area. Network designers should always consider using stub area techniques when building networks, because they improve performance in OSPF networks and allow the network to scale to significantly large sizes. The characteristics assigned to an area control the type of route information that it receives. The possible area types are as follows: ABRs at the edge of the stub area use type 3 LSAs to advertise a single default route (0.0.0.0) into the area. If routers need to route to networks outside the autonomous area, they use the default route.Stub areas cannot contain ASBRs (except that the ABRs may also be ASBRs). The default route advertised by the ABR is used to reach destinations external to the autonomous system and all destinations external to the area. Therefore, if the router needs to send a packet to a network external to the area, it sends the packet using a default route. Totally stubby areas cannot contain ASBRs (except that the ABRs may also be ASBRs). The ASBR originates type 7 LSAs to advertise the external destinations. The type 7 LSAs are flooded throughout the NSSA but are blocked by the ABR. The ABR converts the type 7 LSA into a type 5 LSA, which is then propagated through the remainder of the autonomous system. Figure illustrates how LSUs are propagated throughout a network, including a stub area. Interactive Media Activity Drag and Drop: ID the Area Upon completion of this activity, the student will be able to identify the difference between stub and totally stubby areas in OSPF.
Content 3.7 Stub, Totally Stubby, and Not-So-Stubby Areas 3.7.2 Using Stub and Totally Stubby Areas Stub and totally stubby areas do not carry any external routes, known as type 5 LSAs. Stub and totally stubby areas have the following characteristics:
Content 3.7 Stub, Totally Stubby, and Not-So-Stubby Areas 3.7.3 Configuring Stub Area Configuring a stub area reduces the size of the LSDB, resulting in reduced memory requirements for routers in that area. External network LSAs (type 5), such as those redistributed from other routing protocols into OSPF, are not permitted to flood into a stub area. Routing from a stub area to the outside is based on a default route (0.0.0.0). If a packet is addressed to a network that is not in the routing table of an internal router, the router automatically forwards the packet to the ABR that sends a 0.0.0.0 LSA. Forwarding the packet to the ABR allows routers within the stub to reduce the size of their routing tables, because a single default route replaces many external routes. A stub area is typically created when a hub-and-spoke topology is used, with the spoke being the stub area, such as a branch office. In this case, the branch office does not need to know about every network at the headquarters site because it can use a default route to reach the networks. To configure an area as a stub, use the following steps: Step 1 Configure OSPF. Step 2 Define the area as a stub by issuing the area area-id stub command to all routers within the area. Figure lists the parameters of this command. By default, the ABR advertises a default route with a cost of 1. The cost of the default route can be changed by using the area default-cost command. Figure lists the parameters of this command.
Content 3.7 Stub, Totally Stubby, and Not-So-Stubby Areas 3.7.4 OSPF Stub Area Configuration Example Area 2 in Figure is defined as the stub area. No routes from the external autonomous system are forwarded into the stub area. The last line in each configuration (area 2 stub) defines the stub area. Router 3 (ABR) automatically advertises 0.0.0.0 (the default route) with a default cost metric of 1 into the stub area. Each router in the stub area must be configured with the area stub command. The routes that appear in the routing table of router 4 are as follows: Note
The hello packet exchanged between OSPF routers contains a stub area flag that must match with the neighboring routers. The area area-id stub command must be enabled on all routers in the stub so that they all have the stub flag set. They can then become neighbors and exchange routing information.

Content 3.7 Stub, Totally Stubby, and Not-So-Stubby Areas 3.7.5 Configuring Totally Stub Areas The totally stubby area is a Cisco proprietary enhancement that further reduces the number of routes in the routing table. A totally stubby area blocks external type 5 LSAs and summary type 3 and 4 LSAs (interarea routes) from entering the area. By blocking these routes, the totally stubby area recognizes only intra-area routes and the default route of 0.0.0.0. ABRs inject the default summary link 0.0.0.0 into the totally stubby area. Each router picks the closest ABR as a gateway to everything outside the area. Totally stubby areas minimize routing information more than stub areas, and increase stability and scalability of OSPF internetworks. Using totally stubby areas is typically a better solution than using stub areas as long as