Locations of visitors to this page Perfect dream will never let you sleep in peace...untill you make it real: OSPF States/ OSPF handshake / OSPF Neighbor states

Thursday, December 16, 2010

OSPF States/ OSPF handshake / OSPF Neighbor states

Here are the logs in bebug mode. I will capture the live packets...but the time stamp will be different.


Router#debug ip ospf events
OSPF events debugging is on
----------------------Here I have shut the interface on the other router-------------------------
--------------Already we had neighbours formed, but I wanted to check the packets----------------
Router#
*Mar  1 00:54:03.215: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 172.30.0.1-->first hello
*Mar  1 00:54:13.215: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 172.30.0.1-->Second hello
*Mar  1 00:54:23.215: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 172.30.0.1-->third hello
*Mar  1 00:54:32.859: OSPF: 2.2.2.2 address 172.30.0.2 on FastEthernet0/0 is dead

*Mar  1 00:54:32.859: %OSPF-5-ADJCHG: Process 10, Nbr 2.2.2.2 on FastEthernet0/0 from FULL to DOWN, Neighbor Down:

Dead timer expired---->hahaha 4*hello--->neighbor down

*Mar  1 00:54:32.859: OSPF: Neighbor change Event on interface FastEthernet0/0
*Mar  1 00:54:32.863: OSPF: DR/BDR election on FastEthernet0/0
*Mar  1 00:54:32.863: OSPF: Elect BDR 0.0.0.0
*Mar  1 00:54:32.863: OSPF: Elect DR 1.1.1.1   ------------------>Router ID of the router where Debug is on
*Mar  1 00:54:32.863:        DR: 1.1.1.1 (Id)   BDR: none
------------------------------------->single router DR set---------------------------------------

*Mar  1 00:54:33.215: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 172.30.0.1
*Mar  1 00:54:43.215: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 172.30.0.1
*Mar  1 00:54:43.359: OSPF: service_maxage: Trying to delete MAXAGE LSA
*Mar  1 00:54:53.215: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 172.30.0.1
*Mar  1 00:55:03.215: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 172.30.0.1
*Mar  1 00:55:13.215: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/0 from 172.30.0.1
----------------sending multicasts ----searching for buddies---------------------------------------
--------------------now I have enabled the interface on the other router--------------------------

*Mar  1 00:55:16.071: OSPF: Rcv hello from 2.2.2.2 area 0 from FastEthernet0/0 172.30.0.2
*Mar  1 00:55:16.071: OSPF: Send immediate hello to nbr 2.2.2.2, src address 172.30.0.2, on FastEthernet0/0
*Mar  1 00:55:16.075: OSPF: Send hello to 172.30.0.2 area 0 on FastEthernet0/0 from 172.30.0.1
*Mar  1 00:55:16.075: OSPF: End of hello processing
*Mar  1 00:55:20.463: OSPF: Rcv DBD from 2.2.2.2 on FastEthernet0/0 seq 0x1551 opt 0x52 flag 0x7 len 32  mtu 1500

state INIT

--------------------------------->1.1.1.1 goes to INIT state<-----------------------------------------------

*Mar  1 00:55:20.463: OSPF: 2 Way Communication to 2.2.2.2 on FastEthernet0/0, state 2WAY

--------------------------------->done with 2 way state<-------------------------------------------------

*Mar  1 00:55:20.467: OSPF: Neighbor change Event on interface FastEthernet0/0
*Mar  1 00:55:20.467: OSPF: DR/BDR election on FastEthernet0/0
*Mar  1 00:55:20.467: OSPF: Elect BDR 2.2.2.2
*Mar  1 00:55:20.467: OSPF: Elect DR 1.1.1.1
*Mar  1 00:55:20.467:        DR: 1.1.1.1 (Id)   BDR: 2.2.2.2 (Id)

---------------------------->elected DR and BDR<-----------------------------------------------

*Mar  1 00:55:20.471: OSPF: Send DBD to 2.2.2.2 on FastEthernet0/0 seq 0x15B3 opt 0x52 flag 0x7 len 32
*Mar  1 00:55:20.471: OSPF: NBR Negotiation Done. We are the SLAVE

------------------------>For Master slave relation <----------------------------------
--->Priority of the router decides Master or slave, router ID breaks the tie so 2.2.2.2 is having ---------
------------------------------higher ID so it becomes master--------------------------------------
---------------------------------slave always sends first DBR and then master---------------------------------------

*Mar  1 00:55:20.471: OSPF: Send DBD to 2.2.2.2 on FastEthernet0/0 seq 0x1551 opt 0x52 flag 0x2 len 92
*Mar  1 00:55:20.655: OSPF: Rcv DBD from 2.2.2.2 on FastEthernet0/0 seq 0x1552 opt 0x52 flag 0x3 len 112  mtu 1500

state EXCHANGE
*Mar  1 00:55:20.655: OSPF: Send DBD to 2.2.2.2 on FastEthernet0/0 seq 0x1552 opt 0x52 flag 0x0 len 32
*Mar  1 00:55:20.747: OSPF: Rcv DBD from 2.2.2.2 on FastEthernet0/0 seq 0x1553 opt 0x52 flag 0x1 len 32  mtu 1500

state EXCHANGE

----------------------------> EX-start state<----------------------------------------------------
---------------------------->we will do packet analysis here------------------------------------
*Mar  1 00:55:20.747: OSPF: Exchange Done with 2.2.2.2 on FastEthernet0/0
*Mar  1 00:55:20.751: OSPF: Send LS REQ to 2.2.2.2 length 24 LSA count 2
*Mar  1 00:55:20.751: OSPF: Send DBD to 2.2.2.2 on FastEthernet0/0 seq 0x1553 opt 0x52 flag 0x0 len 32
*Mar  1 00:55:20.755: OSPF: Rcv LS REQ from 2.2.2.2 on FastEthernet0/0 length 36 LSA count 1
*Mar  1 00:55:20.755: OSPF: Send UPD to 172.30.0.2 on FastEthernet0/0 length 40 LSA count 1
*Mar  1 00:55:20.859: OSPF: Rcv LS UPD from 2.2.2.2 on FastEthernet0/0 length 96 LSA count 2

------------------------------Loading state-----------------------------------------------

*Mar  1 00:55:20.863: OSPF: Synchronized with 2.2.2.2 on FastEthernet0/0, state FULL
*Mar  1 00:55:20.863: %OSPF-5-ADJCHG: Process 10, Nbr 2.2.2.2 on FastEthernet0/0 from LOADING to FULL, Loading Done

----------------------------------------------Full State----------------------------------------------------

No comments:

Post a Comment