What is OSPF area?

An OSPF area is “a group of OSPF routers with the identical LSDB”. By dividing into multiple areas instead of a single area, OSPF can efficiently build routing tables in large networks. The following is a simple example of a multiple area layout.

Figure OSPF Area Overview
Figure OSPF Area Overview

All routers in area 0 have a common “LSDB for area 0”. All routers in area 1 have a common “area 1 LSDB”. Similarly, all routers in area 2 have a common “area 2 LSDB”. A router that interconnects areas is called an Area Border Router (ABR), which belongs to multiple areas and has LSDB for multiple areas.

The OSPF area is identified by a 32-bit area ID. The OSPF area ID can be a simple number, or it can be an 8-bit decimal number like an IP address, “x.x.x.x”.

Recognition of inside and outside the area

OSPF routers understand the network diagram by LSDB. By dividing the network into multiple areas, the degree to which the detailed network diagram is recognized inside and outside the area will differ. In short, “inside the area, in detail; outside the area, just a summary.”

For within an area, understand the network configuration in detail, including how many routers there are and how each router is interconnected. LSAs that describe the detailed network diagram in such an area will not be flowed outside the area. This reduces the exchange of LSAs even in large networks. On the other hand, out of area is only a summary of the network address and the metric to reach it. This means that outside the area does not need to know the network diagram in much detail, and is comparable to a distance-vectored routing protocol such as RIP. Also, for the part of the network that is doing non-OSPF routing (non-OSPF domain), the network address is also known.

When there is a change in the network in an area, it notifies the area and performs SPF calculation to update the routing table if necessary. On the other hand, SPF calculation will not be performed for changes outside the area. By dividing the area, SPF calculations are not performed when networks outside of the area that are not so relevant are changed.

If we focus on the LSDB (Area 1) in “Figure OSPF Area Overview”, it looks like this

Figure LSDB(Area 1)
Figure LSDB(Area 1)

The LSDB (Area 1) describes the details of the network diagram of Area 1. You can see that there are three routers and how each router is connected to each other. You can also see the routers that are ABRs that connect to other areas. For areas other than area 1, this is just an overview of what network addresses are available.

OSPF area is two layers

When a network to be routed by OSPF is divided into multiple areas, a two-tiered area layout is taken. The central area is called the backbone area. Area 0 is recognized as the backbone area. All other areas must be connected to the backbone area. As a principle, it is not possible to connect another area beyond the non-backbone area. As shown below, an area layout in which Area 3 is connected to Area 1 is an illegal area layout.

Figure Illegal area layout Part 1
Figure Illegal area layout Part 1

If you must have such an area layout, you can do so by using virtual-link in exceptional cases. However, it is better to consider the area layout that requires a virtual-link as a temporary solution.

Also, multiple backbone areas as shown below are also illegal area layout.

Figure Illegal area layout Part 2
Figure Illegal area layout Part 2

These multiple backbone area layout is called “fragmented backbone” or “discontinuous backbone”. If a discontinuous backbone area layout is used, communication is possible only between the two tiered areas centered on each backbone area, but not for the entire OSPF network. In the above figure, communication between Area 1 and Area 3 is not possible. Also, communication between discontinuous backbone areas is not possible. Virtual-link may be configured to prevent unintentional discontinuous backbone due to link failures.

Example of an area layout for an enterprise network

Since the OSPF area is in principle a two-tiered area centered on the backbone area, the area layout of an enterprise network will often have the part of the WAN that connects the sites as area 0. Then, the network of each site is divided into other areas.

Figure Example of an area layout for an enterprise network
Figure Example of an area layout for an enterprise network
When you are using IP-VPN as a WAN service, you may not be able to freely decide the area layout.

Such an area layout also makes it possible to efficiently summarize the route information of the networks of each site.

Summary

Point

  • An OSPF area is a group of routers that have the identical LSDB.
  • The details of the network configuration to be grasp are different between inside and outside the area. ” Inside the area, in detail; outside the area, just a summary.”
  • The OSPF area must be a two-tiered structure with the backbone area (Area 0) at the center.
  • In an enterprise network, the backbone area is the part of the WAN that connects the sites.

How the OSPF works