cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1737
Views
20
Helpful
6
Replies

"Forwarding" of Type 5 LSA

AllanGrou7562
Level 1
Level 1

I am a middle-beginner in OSPF and have doubts about intra-area type 5 lsa flooding. Suppose I have R1-R2-R3 OSPF Hub and SpokeTopology connected through P2P links as R2 being the HUB. With R1 being the ASBR, does the R2 simply forward the type 5 lsa received to R3, as a non-root bridge switch forwards BPDUs through the designed port?  I guess if R1 and R2 links are configured first, when ospf process is enabled on r3, this "forward" would be unnecessary since r2 would announce type 5 lsa after the DBD exchange. But and if I have a stable topology and then a I configure R1 as a ASBR? 

 

Thanks and sorry my bad english!

 

1 Accepted Solution

Accepted Solutions

Hello Allan,

in your R1-R2-R3 topology in a standard area all OSPF adjacencies are in state FULL.

When you configure redistribution on R1 and you make it an ASBR the following two events happen:

R1 Router LSA is updated setting the E bit meaning the router has became an ASBR

R1 generates a type 5  LSA for each prefix injected in OSPF with LSA ID = prefix.

R2 receives both the updated R1 router LSA and the LSA type 5 for the prefix.

R2 floods R1 updated router LSA and LSA type 5 with no changes to R3.

Both R2 and R3 wait a time (default 5 seconds) to collect all possible new LSAs and then each of them executes the SPF algorithm recalculating all best paths and adding the external route to the link state database and to the IP routing table.

The setting of  the E bit in the R1 router LSA provides a security check that allows to validate LSA type 5 generated by R1. if R1 router LSA has the E bit cleared R1 is not considering itself an ASBR and the LSA type 5 may be old information that should not be considered.

This safety check works well in a single area, but LSA type 5 are flooded in the whole domain, To allow routers in  other standard area to perform a similar check the ABRs of the area where the ASBR is connected originate an LSA type 4 for the ASBR Router-id. This LSA type 4 is sent in backbone area and regenerated by other ABR nodes and sent in other standard areas.

In OSPF each LSA has an owner that is the LSA advertising router. Only the owner of an LSA can update the LSA with a new version increasing the sequence number (every 30 minutes in Cisco OSPF) or it can purge it.

All other devices can only flood or block the LSA (in the case of LSA type 5 not sent in a stub area by the ABR ).

 

Final note:

in order for an LSA type 5 to be installed in the routing table the forwarding address field must be 0.0.0.0 or if set to an IP address that address has to be reached via an OSPF internal route either O or O IA route.

Having an external route with a forwarding address (roughly a next-hop) that is another external route is not allowed.

 

Hope to help

Giuseppe

 

View solution in original post

6 Replies 6

Richard Burts
Hall of Fame
Hall of Fame

Perhaps it related to difficulty with English but I am not understanding what you are asking when you say "But and if I have a stable topology and then a I configure R1 as a ASBR? " I am not sure what a stable topology has to do with forwarding the LSA type 5. In OSPF when an ASBR learns a redistributed route it generates a type 5 LSA which is flooded to all routers in the area. So if R1 learns a redistributed route it will generate a type 5 LSA. If a neighbor relationship exists with R2 then the LSA 5 is sent to R2 which processes it and inserts it into its Link State Data Base. If a neighbor relationship exists between R2 and R3 then the LSA 5 is sent to R3 which processes it and inserts it into its LSDB. If there is not currently a neighbor relationship between R2 and R3 then the LSA 5 will be sent when the neighbor relationship is formed.

 

HTH

 

Rick

 

 

 

HTH

Rick

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Allan,

in a stable OSPF topology all routers within an area have the same link state database content.

Meaning the same set of

Router LSAs

Network LSAs

Summary route LSA type 3

ASBR Summary LSA type 4

External LSA type 5

 

As noted by Rick regardless when OSPF adjacencies are built the LSA type 5 will be sent before or later

LSA type 5 are flooded in all the OSPF domain in all normal areas.

LSA type 5 are not sent inside stub areas, totally stub areas, NSSA areas, totally NSSA areas.

But this is a different aspect.

 

Hope to help

Giuseppe

 

Thanks for the aswers!
So in a R1-R2-R3 point-to-point links topology (normal area). R1, being the ASBR, creates and forwards the type 5 LSAs; R2, being the only router directly connected to R1, simply forwards the type 5 LSAs received, keeping them untouchable (even the router id field in OSPF header), to R3 . That's it? I know about the synchronized LSDB in a area rule, but it isn't clear to me how its achieved in this situation, and by stable topology I mean all the routers already have FULL adjacency before making r1 a ASBR.

Hello Allan,

in your R1-R2-R3 topology in a standard area all OSPF adjacencies are in state FULL.

When you configure redistribution on R1 and you make it an ASBR the following two events happen:

R1 Router LSA is updated setting the E bit meaning the router has became an ASBR

R1 generates a type 5  LSA for each prefix injected in OSPF with LSA ID = prefix.

R2 receives both the updated R1 router LSA and the LSA type 5 for the prefix.

R2 floods R1 updated router LSA and LSA type 5 with no changes to R3.

Both R2 and R3 wait a time (default 5 seconds) to collect all possible new LSAs and then each of them executes the SPF algorithm recalculating all best paths and adding the external route to the link state database and to the IP routing table.

The setting of  the E bit in the R1 router LSA provides a security check that allows to validate LSA type 5 generated by R1. if R1 router LSA has the E bit cleared R1 is not considering itself an ASBR and the LSA type 5 may be old information that should not be considered.

This safety check works well in a single area, but LSA type 5 are flooded in the whole domain, To allow routers in  other standard area to perform a similar check the ABRs of the area where the ASBR is connected originate an LSA type 4 for the ASBR Router-id. This LSA type 4 is sent in backbone area and regenerated by other ABR nodes and sent in other standard areas.

In OSPF each LSA has an owner that is the LSA advertising router. Only the owner of an LSA can update the LSA with a new version increasing the sequence number (every 30 minutes in Cisco OSPF) or it can purge it.

All other devices can only flood or block the LSA (in the case of LSA type 5 not sent in a stub area by the ABR ).

 

Final note:

in order for an LSA type 5 to be installed in the routing table the forwarding address field must be 0.0.0.0 or if set to an IP address that address has to be reached via an OSPF internal route either O or O IA route.

Having an external route with a forwarding address (roughly a next-hop) that is another external route is not allowed.

 

Hope to help

Giuseppe

 

@Giuseppe Larosa excellent post with a very comprehensive explanation. Worth at least +5.

 

HTH

 

Rick

HTH

Rick

Wow ! It will certainly help other people too, since, at least from experience, The mechanisms of intra-area LSAs flooding and exchange aren't very detailed explained.  And with the FA as a bonus!

 

Thanks a million!!

 

 

 

Review Cisco Networking products for a $25 gift card