Download the configuration files from here.
Let's think as the router. He only understand what other routers say via LSAs. I am taking a random router named as R3 (router-id: 3.3.3.3) in a lab network.
Starting form viewing the LSDB which has all the LSAs he can see that there are 6 routers in the OSPF process numbered as 1 in the area 0 which he is also in.
The the SPT is drawn using the Router LSAs.
1st he sees what His own Router LSA says to others.
It says that there are 2 transit networks connected to him. Transit networks are network segments.
Their DRs are 10.0.35.5 and 10.0.34.4 and the Cost is 10 for the routers in those segments.
So the road map from him will start like this.
Now it's the time to query Network LSAs to find out what those DRs are adjacent or connected with.
Network LSAs say that those DRs are connected to 5.5.5.5 & 4.4.4.4 nodes as well.
So he can continue drawing his map.
It's time to query the Router LSAs received from 4.4.4.4 & 5.5.5.5 to figure out their neighbors, attached links and costs.
Now he can continue drawing his map using these information like before.
Now he queries Network LSAs of new 3 DRs to find out other routers in those segments.
Now the map will be like below.
Now he queries other Router LSAs of 1.1.1.1 & 2.2.2.2 & 6.6.6.6 to find out their networks.
Here this router has a stub network with ip address of 1.1.1.1/32
Its a loopback.
The new DR (10.0.12.2) found from these Router LSAs is connected to 1.1.1.1 & 2.2.2.2 only. Following is its Network LSA.
Now the final diagram will be updated like this.
This is the road map which is used to reach & calculate the costs to all routes in the network. Every router in the same area has a copy of this. But the actual costs in the routing table will be like below.
It will be confusing if we look at the map and try to compare the costs of the routing table to the routes. Actually there is no problem in the map. Its is confusing because of the DRs in the map. They are used to calculate the costs to the network segments only. Because the Network LSAs say which routers are advertising it we can draw a simplified map by removing the DRs now. Then it will be ok.
By the way, the actual physical topology was like this.
No comments:
Post a Comment