Cyntia kh
unread,May 31, 2012, 12:15:57 PM5/31/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ns-3-users
Hello,
Question : how to stop the sending me Hello packets in Olsr after a
certain period of time ?
I am creating my own routing protocol which is a modification of
OLSR .
I am dealing with a very particular network scenario. My nodes are
not moving, and none of them gets disconnected .
What I want to accomplish it :
Stop the sending of Hello messages after ensuring that the Olsr state
has the 1hop and 2 hop neighbor information.
I have added an accessor method to read the 1 hop and 2 hop
information from Olsr state.
I have noticed that these information are complete after around 15
seconds from starting OLsr.
How Do I stop the sending of OLSR hello messages. They are scheduled
to be sent each " m_helloInterval" time interval as you can see in
olsr-routing-protocol.cc lines 2721 - 2725 .
RoutingProtocol::HelloTimerExpire ()
{
SendHello ();
m_helloTimer.Schedule (m_helloInterval);
}
my other question is , once I am able to stop the olsr,, I want to
immediately schedule the call for another function that starts using
the 1hop and 2 hop information. so basically I want to stop the
Sending of Olsr hello messages at second 15 , and at the same second,
start call a new function.
i have looked at Simulator Class but couldnt figure out how to solve
my problem.