07-18-2020 04:58 AM
hello,
i got theoretical question.
For examle i got this LSA:
CORE01# sho ip ospf database 37.157.20.144 detail vrf wan OSPF Router with ID (37.157.3.192) (Process ID 2 VRF wan) Summary Network Link States (Area 0.0.0.0) LS age: 228 Options: 0x2 (No TOS-capability, No DC) LS Type: Network Summary Link State ID: 37.157.20.144 (Network address) Advertising Router: 37.157.21.224 LS Seq Number: 0x8000b909 Checksum: 0xe4fb Length: 28 Network Mask: /28 TOS: 0 Metric: 200
so for example, i need to know how router decides its way to: Link State ID: 37.157.20.144. ?
Does it looks at advertising router id ? and calcualtes metric to it ? This particualr part of OSPF is quite hard to understand for me. Thanks
Solved! Go to Solution.
07-18-2020 06:29 AM
07-18-2020 05:16 AM
OSPF will listen to neighbors and gather all link state data available to build a topology map of all available paths in its network and then save the information in its topology database, also known as its Link-State Database (LSDB). Using the information from its topology database. From the information gathered, it will calculate the best shortest path to each reachable subnet/network using an algorithm called Shortest Path First (SFP)
The Link State ID identifies what is being advertised by the LSA. A router LSA is describing what a router claim is directly connected to it, so the Link State ID is the Router ID of the originating router.
link-state-id
|
(Optional) Portion of the Internet environment that is being described by the advertisement. The value entered depends on the advertisement's link-state type. Specify in the form of an IP address.
|
how the process take place well explained here and documented :
https://www.ciscopress.com/articles/article.asp?p=2294214&seqNum=2
07-18-2020 06:29 AM
07-18-2020 09:14 AM
thanks, seems im starting to sort this out:
show ip ospf broders showed that the cost to that border router is [16]
so i the final cost that to reach that router is 16 + LSA metric 200. Thats what show ip route shows.
btw - where that LSA metric (200) comes from ? Could that be due to auto-cost reference-bandwidth command usage ?
07-18-2020 02:18 PM - edited 07-18-2020 02:19 PM
btw - where that LSA metric (200) comes from ? Could that be due to auto-cost reference-bandwidth command usage ?
Your local router (where you do show commands) received LSA from Area0 , so ABR (which generated this type 3 LSA) generated that LSA using type1/2 from connected area (we can't see details from local router point of view, because OSPF acts as distance vector in inter area routing). So, ABR computed 200 metric for that route (using type1/2 LSAs), generated type3 LSA and sent over area0.
Autocost does not have direct influence. But if you change autocost value, interface metric changes which has affect on LSA metric.
07-19-2020 02:22 AM
Thanks, yes, i see that ABR gets Router lsa with Metric 100, si the ABR itself add another 100 what makes 200. Its interesting where metric 100 comes from, i guess its some kind of default metric.
Anyway, thanks for sharing your information. The thing i missed was border routers table :)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide