In the previous lesson, we learned what OSPF Multi-Area is and the terminology related to the multi-area design. 

This lesson goes further and explains how external routing protocol is redistributed into the OSPF domain and what are the roles of LSAs Type 4 and 5.

Link-State Advertisments

Let's quickly review the three basic LSA types and their functions in the OSPF operation. We won't go into great detail about each one as we already had a lesson that explains each LSA in depth. You can find it here.

Type 1 - Router LSA

LSAs Type 1 and 2 are the topological LSAs. The SPF algorithm uses them to build the area's topology and to calculate the best paths to every destination inside the area. The following diagram shows an example of an area and the Router LSAs that are present.

Router LSA
Figure 1. Router_LSA.

Every router in the area generates one Router LSA (Type 1) that represents itself in the area. It includes the following information:

  • The RID of the originating device.
  • Information about every interface (IP address/Mask/Cost/etc.)
  • Current interface status.

Let's look at the example shown in Figure 1. There are four routers in the area. Therefore, the LSDB of each OSPF node will have four Router LSAs uniquely identified by the RID of the originating device.

Type 2 - Network LSA

For every multiaccess segment with a Designated Router and at least one more neighbor, the DR generates a Type 2 LSA that describes the network.

Network LSA
Figure 2. Network_LSA.

For example, router 1.1.1.1 is the DR on segment 10.1.0.0/24. It generates a Type 2 LSA for the network and floods it inside the area. Similarly, for network 10.1.2.0/24, router 4.4.4.4 is the DR, so it generates a Type 2 link-state advertisement and floods it.

It is important to understand that a single-area OSPF network only needs LSAs type 1 and 2 to function. All other link-state advertisement types are required in multi-area OSPF networks. It is also important to remember that only these two LSA types hold topological information. A change in one of the two types triggers the entire area to run the SPF algorithm.

Type 3 - Summary LSA

The OSPF area is a property of each interface. When a router configures multiple interfaces with different area IDs, it becomes an Area Border Router (ABR). ABRs connect areas together by generating Type 3 LSAs for each network that exists in one area into the other, as shown below.

Summary LSA
Figure 3. Summary_LSA.

For example, the ABR in the diagram above generates a Type 3 LSA into Area 34 for every network in Area 0 and vice versa. Type 3 is called a Summary LSA because it does not contain any topological information but only the subnet, the mask, and the ABR's lowest cost to reach it. Hence, it is a high-level summary of an external network that exists in another area. That's why it is called the Summary_LSA. 

Types 1, 2, and 3 round-up

The following table summarizes the key aspects of LSAs types 1, 2, and 3 that we have briefly discussed as a context for the next part of the lesson.

LSA TypeCommon NameRepresentsCreated ByLSIDDescription
1Router LSAA router inside the areaEach router in the areaLSID is the RID
  • Each router creates a LSA Type 1 to represent itself in the area. 
  • The LSA describes the router's own interfaces, their states, IP addresses/Mask, and costs.
2Network LSAA subnet with a DR and at least one neighborThe DR on that subnetLSID is the DR address
  • The DR establishes full OSPF adjacency with every router on the multiaccess segment, so it knows which router really connects to the segment.
  • For a network that has a DR and at least one more neighbor, the DR creates and floods a Network LSA to list all routers connected to the multiaccess segment. 
  • For a network where no other router is present except for the DR, no Network LSA is generated. The network is considered a "Stub Network".
  • For a network where no DR is present at all (for example, all routers have IP ospf priority 0), no network LSA is generated. 
3Summary LSAA subnet in another areaThe ABR of the areaLSID is the subnet address
  • The Area Border Router (ABR) connects to two areas. It generates a Summary LSA to provide summary information about networks in one area to the other area. 
  • One LSA Type 3 per inter-area network.

LSAs Type 4 and 5

One OSPF multi-area network only needs LSAs types 1, 2, and 3 to function. The other two types, 4 and 5, are only required when information from another routing protocol needs to be advertised into the OSPF network.

Type 5 - External LSA

When a router is connected to the OSPF domain and another routing protocol, it is called the Autonomous System Border Router (ASBR). The ASBR redistributes an external routing protocol into the OSPF domain by generating a Type 5 LSA (called External_LSA) for every external route in the external routing protocol.

For example, if the ASBR redistributes 20 EIGRP routes into the OSPF network, it generates 20 Type 5 LSAs and floods them into the OSPF area it connects to, as shown in the diagram below.

Redistributing external routing protocol into OSPF
Figure 4. Redistributing external routing protocol into OSPF.

The Type 5 LSAs are then forwarded unchanged by the Area Border Routers (ABRs) to all other normal areas.

The following output shows the content of one Type 5 LSA that ASBR 8.8.8.8 floods into Area 34 to represent the external EIGRP route 172.16.1.0/24. Notice that the LSID is the subnet address of the external route, and the Advertising Router is the RID of the Autonomous System Boundary Router (ASBR), which redistributes the link-state advertisement. 

ASBR# sh ip ospf database external 
            OSPF Router with ID (8.8.8.8) (Process ID 5)
                Type-5 AS External Link States
  LS age: 8
  Options: (No TOS-capability, DC, Upward)
  LS Type: AS External Link
  Link State ID: 172.16.1.0 (External Network Number )
  Advertising Router: 8.8.8.8
  LS Seq Number: 80000001
  Checksum: 0x8442
  Length: 36
  Network Mask: /24
        Metric Type: 2 (Larger than any link state path)
        MTID: 0 
        Metric: 20 
        Forward Address: 0.0.0.0
        External Route Tag: 0

Now, let's see how routers inside the OSPF domain can reach external routes. When an internal router inside the area where the ASBR connects receives an LSA Type 5, it goes through the following steps, illustrated in the diagram below.

Connectivity to external routes
Figure 5. Connectivity to external routes.
  • The router understands it can reach the external network (172.16.1.0/24) via the advertising ASBR (8.8.8.8).
  • The router knows how to reach the ASBR (8.8.8.8). All routers inside the area have the ASBR's Router_LSA and can reach it over the shortest available path.

This is how the redistribution of external routes works at a high level in OSPF. However, this is not the entire story. Let's see how internal routers in other areas (which the ASBR does not directly connect to) reach the external networks. Consider the following example from the point of view of a router inside area 0. When it receives the LSA Type 5 from the ABR, it goes through the following steps, illustrated in the diagram below.

Connectivity to external routes from other areas
Figure 6. Connectivity to external routes from other areas.
  • The router understands it can reach the external network (172.16.1.0/24) via the advertising ASBR (8.8.8.8).
  • The router doesn't know how to reach the ASBR (8.8.8.8) and doesn't have the ASBR's Router_LSA (8.8.8.8). Recall that LSAs type 1 and 2 are local for an area and are not re-advertised between areas by ABRs.

The bottom line is that routers inside Area 0 cannot reach the redistributed external routes even though they receive the Type 5 LSAs. So what is the solution? - Here comes the role of the LSA Type 4 (ASBR Summary_LSA).

Type 4 - ASBR Summary LSA

When an Area Border Router (ABR) is connected to an area where ASBR is present, it generates one additional link-state advertisement called ABR Summary into the other areas it connects to.

Full Content Access is for Registered Users Only (it's FREE)...

  • Learn any CCNA, DevNet or Network Automation topic with animated explanation.
  • We focus on simplicity. Networking tutorials and examples written in simple, understandable language for beginners.