- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2012 01:21 AM - edited 03-07-2019 04:42 AM
Hi
It is a quite simple question. If there are multiple available paths from A to B (same area). Router will only update the shortest path(least cost) in the routing table or more than that?
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Other Switching
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2012 03:15 PM
Hello Xi,
I'd like to add to Vivek's answer that what OSPF really has in its database are only topological pieces of information from which the resulting shortest path can be computed - or "stitched together". OSPF does not really precompute the backup paths even if they are available, rather, it only maintains the data from which the backup path can be computed later. If the primary path fails, OSPF has to reprocess its link-state database to compute the new best path. It does not have the backup path readily available.
Best regards,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2012 01:29 AM
yes you are right. Router will have the best path installed into its routing table (i.e the one with least cost). But it will keep the backup path always in its OSPF database. You can see that by issuing show ip ospf database command.
Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2012 03:15 PM
Hello Xi,
I'd like to add to Vivek's answer that what OSPF really has in its database are only topological pieces of information from which the resulting shortest path can be computed - or "stitched together". OSPF does not really precompute the backup paths even if they are available, rather, it only maintains the data from which the backup path can be computed later. If the primary path fails, OSPF has to reprocess its link-state database to compute the new best path. It does not have the backup path readily available.
Best regards,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2012 10:23 PM
Thanks Peter to complete the post. Yes, OSPF has to re-run the SPF algorithm to compute a backup path even though it has the topological roadmap of the entire network.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2012 12:03 AM
Just to add..
the routing protocols will calculate the best path for all the network that it knows off and sends it to the router's processor.
The router now takes all these path, compare the AD of each of the network advertised by various routing protocols and then decide on what should get into the routing table. the cost comes in as a Tie Breaker
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2012 04:18 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
One additional note for the OP, OSPF can maintain equal cost routes in the route table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2012 07:00 PM
Thanks for all of you guys.
