05-12-2012 05:25 AM - last edited on 03-25-2019 03:35 PM by ciscomoderator
hi
two routers are connected and ospf is enabled , after creating adjacency , how router is knowing that hello packet is a just a hello packet to keep the adjacency up .
Regards
Binoj
05-12-2012 06:07 AM
Hello Binoj,
OSPF keeps a finite state machine (FSM) for each neighbor, after having reached the adjacency FULL state receiving timely hellos makes this neighbor status to be stable.
Each received hello resets the dead interval timer for that neighbor.
To be noted from Two way state the received hello packet contains the OSPF router-ids of the OSPF neighbors existing on that specific interface, so the local router can see its own OSPF RID in each of the received Hello packets.
Edit:
see
http://www.ietf.org/rfc/rfc2328.txt
section 10.3 Neighbor state machine
Hope to help
Giuseppe
05-13-2012 12:56 AM
Thanks for the explanation and the link you provide
Regards
Binoj
05-12-2012 06:10 AM
Binoj,
During the initial adjacency, the routers will send hello packets with their router-id listed in that packet. If the router-id exists in the neighbor table, then it's considered a keep-alive and the dead interval is incremented. If the router-id is new and doesn't exist in the neighbor table, then the adjacency process begins.
Neighbor ID Pri State Dead Time Address Interface
192.168.12.1 1 FULL/BDR 00:00:37 192.168.12.1 FastEthernet0/0
If I brought up another interface on another router with router-id 192.168.12.2, the adjacency process would start. Otherwise, if I'm receiving hello packets from the above router with router-id 192.168.12.1 then it's considered a hello packet and the dead time increases back to 4 times the hello period. (10 second hellos and 40 second dead interval).
HTH,
John
05-13-2012 12:54 AM
Thanks for the detailed explanation
Regards
Binoj
05-13-2012 01:35 AM
good explanation guiseppe and john
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