cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1270
Views
8
Helpful
6
Replies

Why OSPF Type-4 Route to ASBR ?

manish.gautam
Level 1
Level 1

why do we need special type-4 lsa (route to asbr) for ASBR can't we reach ASBR router using type-3 LSA when it is not a ASBR. so when a router turns into ASBR by redistributing external networks why is it that we need another type-4 LSA

6 Replies 6

Peter Paluch
Cisco Employee
Cisco Employee

Manish,

Assume that you are in area 1 that has a single ABR. In some other areas, there are two ASBRs redistributing a route, say, 192.0.2.0/24, as a Type 2 external route. Furthermore, assume that one of those ASBRs is considerably closer to you (in means of metric) than the other.

Now, the Type 2 external route has a constant metric that is set when first redistributing a route into OSPF domain but that is not incremented anymore. But that makes the Type 2 external route quite hard to handle - if two different ASBRs are announcing a Type 2 external route with the same metric, shall we use any of them? Certainly not! We would like to route our packets through that ASBR which is closer to us.

This is where the LSA-4 comes in. Because you are in a different area than the ASBR, you do not know the exact network topology between you and the ASBR to be able to decide which one is closer to you. The LSA-4 serves this very purpose. It describes the distance from your ABR to individual ASBRs announcing some external routes so you can choose which ASBR is the closest to you for a particular external route.

The logic for choosing the best Type2 route to a destination is as follows:

1.) Take the route that has the lowest metric

2.) If there are multiple routes with the lowest metric, take the one whose ASBR is the closest to you (the distance between you and the ASBR is distance from you to your ABR plus distance from your ABR to the ASBR given by LSA-4)

Note that LSA-4 is also necessary for Type 1 external routes but on Type 2, it is more evident why we need it.

Best regards,

Peter

Hi

thanks for your reply that was very helpful and explanatory but can we anyhow block type-4 lsa in an area but allow type-3 & type-5 lsa and check the behaviour of ospf

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Manish,

it is part of OSPF design:

when you use O E1 routes the seed metric is summed to the metric to reach the ASBR.

Instead of using an arbitrary LSA type 3 to describe ASBR reachability these LSA type 4 are used.

In addition, OSPF stub areas filter OSPF LSA type 5 and type 4 but not LSA type 3 (unless totally stub)

Hope to help

Giuseppe

Hi

thanks for your reply that was very helpful and explanatory but can we anyhow block type-4 lsa in an area but allow type-3 & type-5 lsa and check the behaviour of ospf

Hello Manish,

this is not possible:

or both LSA type 4 and LSA type 5 are permitted in an area (standard area) or they are both denied (any stub area type).

you can look at LSA type 4 information available to a router using

sh ip ospf border-routers

this lists ABRs and ASBRs

Hope to help

Giuseppe

Hello Manish,

Just to add to Giuseppe's perfect explanation: There is no logical reason to filter out LSA-4 while permitting LSA-5. The LSA-4 does not by itself contain information about reachable subnets. It is merely a topological component that is necessary to build the topological representation of your network. The LSA-5 depends on LSA-4 (with a single exception that I am not going to discuss right now). If it was possible to filter out LSA-4 while retaining the LSA-5, the LSA-5 would become unusable, because it would refer to a "puzzle piece" that would not be present in the topological database.

Best regards,

Peter

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card