Lesson 4 Advance OSPF
Lesson 4 Advance OSPF
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
Areas
• An OSPF area is a logical grouping of routers or, more specifically, a logical grouping
of router interfaces.
• Area membership is set at the interface level, and the area ID is included in the OSPF
hello packet.
• An interface can belong to only one area.
• All routers within the same OSPF area maintain an identical copy of the link-state
database (LSDB).
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
Areas
OSPF Areas
An OSPF area grows in size as the number of network links and routers increase in the area.
While using a single area simplifies the topology, there are trade-offs:
• Full shortest path first (SPF) tree calculation runs when a link flaps within the area.
• The LSDB for the area grows, consuming more memory, and lengthening the SPF
computation process.
Proper design addresses each of these issues by segmenting the routers into multiple OSPF
areas, thereby keeping the LSDB to a manageable size. Sizing and design of OSPF networks
should account for the hardware constraints of the smallest router in that area.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
Areas
OSPF Areas (Cont.)
In essence, an OSPF area hides the topology from another area but enables the networks to be
visible in other areas within the OSPF domain. Segmenting the OSPF domain into multiple areas
reduces the size of the LSDB for each area, making SPF tree calculations faster, and decreasing
LSDB flooding between routers when a link flaps.
Just because a router connects to multiple OSPF areas does not mean the routes from one area
will be injected into another area. Figure 9-1 shows router R1 connected to Area 1 and Area 2.
Routes from Area 1 will not advertise into Area 2 and vice versa.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
Areas
OSPF Area 0 and ABRs
Area 0 is a special area called the backbone. By design, all areas must connect to Area 0 because
OSPF expects all areas to inject routing information into the backbone, and Area 0 advertises the
routes into other areas.
Area border routers (ABRs) are OSPF routers connected to Area 0 and another OSPF area. ABRs
are responsible for advertising routes from one area and injecting them into a different OSPF area.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
Areas
Multi-Area OSPF Configurations and Verifying Interfaces for ABRs
• During router configuration, the area can use decimal format on one router and
dotted-decimal format on a different router, and the routers can still form an
adjacency.
• OSPF advertises the area ID in dotted-decimal format in the OSPF hello packet.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
Areas
OSPF Intra-Area and Interarea Routes
Network routes that are learned from other OSPF routers within the same area are known as
intra-area routes. In Figure 9-3, the network link between R2 and R4 (10.24.1.0/29) is an intra-
area route to R1. The IP routing table displays OSPF intra-area routes with an O.
Network routes that are learned from
other OSPF routers from a different area
using an ABR are known as interarea
routes.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
Areas
OSPF Inter-Area Routes and Interarea Routes (Cont.)
In Example 9-4, notice that R4’s routing table shows the routes from within Area 1234 and
Area 0 as intra-area and routes from Area 56 as interarea because R4 does not connect to
Area 56. The metric for the 10.123.1.0/24 and 10.3.3.0/24 networks has drastically
increased compared to the metric for the 10.56.1.0/24 network.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
Areas
OSPD Inter-Area Routes and Interarea Routes (Cont.)
External routes are routes learned from outside the OSPF domain but injected into an OSPF
domain through redistribution. External OSPF routes can come from a different OSPF
domain or from a different routing protocol.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11