10-26-2017 06:59 AM - edited 03-03-2019 08:39 AM
Hi!
I’m a beginner in this area and I have a question. How does OSPF know when a link is down vs a neighbour is down? Which information give us that information? When I neighbour is down, LSA and Hello messages are used... is it the same when a link is down?
Thanks for your help!
10-26-2017 12:34 PM
Hi @RachelG
OSPF is a link-state protocol, so, identify link down must be a priority. OSPF use link-state advertisement (LSA) . If there´s something OSPF knows well, is when a link fail.
-If I helped you somehow, please, rate it as useful.-
10-27-2017 12:15 AM
Hi @Flavio Miranda!
Thank you for your answer. So OSPF works the same way even if it's about knowing if a neighbor is down or a link? Should it not be a different? Or can't we see the different if it is the link who is down or the neighbor?
10-27-2017 03:11 AM
No. It has different mechanisms to identify both events. Neighbors down will first identified by Hello packets absent.
Link down is known via SLA.
OSPF uses hello packets and two timers to check if a neighbor is still alive or not:
The hello and dead interval values can be different depending on the OSPF network type. On Ethernet interfaces you will see a 10 second hello interval and a 40 second dead interval.
10-27-2017 08:48 AM
Perhaps I am not understanding something in this discussion. OSPF does use Hello messages to build neighbor relationships and also to verify that the neighbor is still functioning. If OSPF stops receiving Hello messages from a neighbor then it will mark that neighbor as down. OSPF will also mark a neighbor as down if it determines that the link connecting to the neighbor is down (this is quicker than waiting for the Hello and Dead timers). In my experience a link going down typically means that the interface carrying that link has changed line protocol state to down. OSPF will know that a link is down if it observes the IOS message that an interface changed link state to down. Or are we talking about something different here? If something different then please clarify what it is.
HTH
Rick
10-27-2017 09:09 AM - edited 10-27-2017 09:21 AM
Thank you for your answer! My question is; how a router knows if a connected link is down? You say it is by IOS messages, not by LSA? I haven't heard about IOS messages how does it work?
10-27-2017 11:07 AM
IOS uses inter process messaging to communicate between various processes. So the process that manages the interface will communicate with the process for OSPF about the event when an interface changes to the down state.
HTH
Rick
10-30-2017 11:13 AM
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