Ospf Lsa Types


Link State Advertisements are used to propagate routing information within the OSPF routing domain.

LSA Types

  • Each LSA has a different Link ID and Link Data. See below:
LSA Type Description Link ID Link Data
1 Point to point numbered Neighbor's RID Interface IP
1 Point to point unnumbered Neighbor's RID MIB-II IfIndex value
2 Transit IP of DR Interface IP
3 Stub IP Network Number Subnet Mask
4 Virtual Link Neighbor's RID Interface IP

Type 1 (Router Link LSA)

  • Describes the state of each connected link.
  • Only flooded within the local area.

Type 2 (Net Link LSA)

  • Only generated by the DR.
  • Represents DR's (pseudo node) attached routers.
  • Only flooded within the local area.

Type 3 (Summary Net Link LSA)

  • Only generated by the ABR.
  • Describes destination of an area it's representing.
  • In stub type areas, default routes are represented as network LSA replacing individual routes.
  • Flooded to other areas that don't originate these advertised LSAs.
  • See ospf-loop-avoidance-summary for more information on loop avoidance.

Type 4 (ASB Summary Link LSA)

  • Generated by the Area Border Router not the ASBR.
  • Describe the route to the ASBR.
  • In the same area, the ASBR routers are type 1 then converted by ABR to type 4.
  • This route is not inserted in the router's routing table, only database, used for calculation of external routes.
  • This type of routes are host routes.

Type 5 (Type-5 AS External LSA)

  • Originated by ASBR, advertise a destination outside of the OSPF domain.
  • These LSAs are not associated with any areas.
  • Flooded throughout the OSPF domain (with exception of stub type areas and virtual links).
  • If the forwarding address is, it will use the advertising router as the destination.
  • If the forwarding address is not full of 0s, that means the ASBR is advertising an external route that's should be forwarded to another host not running OSPF which is on the same subnet. This is similar to ICMP redirect or BGP next-hop on the same subnet.
  • There are two types of External LSA: Type 1 (E1) and Type 2 (E2).
    • Type 1 (E1) - consider the total cost to the external destination.
    • Type 2 (E2) - consider the injected cost of the advertised route. If there is a tie, consider the forwarding metric which is the cost to the ASBR. If the forwarding metric is the same use both routes. One exception is if the LSA has a forwarding address. In that case pick the router with highest ID to advertise and win the route.
  • LSA Type 4 has to be advertised to reach external types. This could be a problem when Summary loop prevention, stops type 4s.

Type 6 (Multicast)

  • Not implemented in IOS.

Type 7 (NSSA LSA)

  • LSA originated by ASBR in NSSA areas.
  • Can be translated by the ABR to LSA type 5 to cross the NSSA area boundary.
  • Flooded only in the NSSA area.
  • There are two types of NSSA LSA: Type 1 (N1) and Type 2 (N2), which are similar to external types of LSA 5.

Type 8 (External Attributes )

  • Not implemented in IOS.
  • It was proposed as an replacement to iBGP for OSPF to carry attribute info over the OSPF domain.

Type 9 (Opaque Link Local Scope)

  • Opaque LSA with a link local scope.

Type 10(Opaque Area Local Scope)

  • Opaque LSA with an area-local scope. Can only be advertised within the same area.
  • MPLS traffic engineering

Type 11(Opaque AS Local Scope)

  • Opaque LSA with an AS range. Can be advertised throughout the OSPF domain, with the exceptions of stub and NSSA areas. This is similar to LSA type 5s.


rating: 0+x
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License