Below is my topo:
Area 1 is a NSSA.
R5 is an ASBR which advertises 188.8.131.52/8 and I am redistributing into ospf.
R3 is also an ASBR which advertises 184.108.40.206/8 and I am redistributing into ospf.
Since, R5 advertises type 7 LSA, it will be converted into type 5 LSA into area 0 by R1. My doubt is whether area0's database has both routes for 220.127.116.11/8 in its database ? (One translated by R1 and other advertised by R3)
The answer is yes. All routers in area0 will have both type 5 LSAs in their LSDB. One advertised by R1 and another by R3.
Hope this helps,
But in RFC2328 section 18.104.22.168,they have mentioned "if two routers, both reachable from one another, originate functionally equivalent AS-external-LSAs (i.e., same destination, cost and non-zero forwarding address), then the LSA originated by the router having the highest OSPF Router ID is used. The router having the lower OSPF Router ID can then flush its LSA. "
In my secnario, I am advertising 22.214.171.124/8 with same metric from R1 and R3, but the forwarding address is different. In that case, both LSAs should be in the database, rt ?
That is correct. RFC2328 clearly states that the destination, cost and non-zero forwarding address have to be the same for this rule to apply. So in your case the two type 5 LSAs should be present in the LSDB as the FAs are different.
Good explaination. But, I have a doubt. What is the significance of forwarding address in type 5 LSA?To reach all external networks, every router (in the topology given by Vijay) has to reach ASBR only. Then, what is there to do with forwarding adress? Does it play any key role?
The forwarding address does play a key role indeed. If it is set in the type 5 LSA then the reachibility of the external route is based on the reachibility of this forwarding address via an OSPF internal route.
Hope this helps,
As per you explaination, I got this info ie OSPF routers use Forwarding address only to reach external networks, not ASBRs. right!
Thanks for the valuable info.
Why forward address is 0.0.0.0 in type LSA when the routes are originated from non-OSPF networks? Why it shouldnt be ASBR address itself?
RFC2328 states the following:
"If the forwarding address is set to 0.0.0.0, packets should be sent to the ASBR itself."