can change hello packet interval in AODV

288 views
Skip to first unread message

Patel Rajan

unread,
Mar 31, 2014, 5:41:18 AM3/31/14
to ns-3-...@googlegroups.com
Hi,

Any one know what is the default item for hello packet interval and i want to change it for 10 second. can i do if yes than how ?
please guide me..

Thanks

Konstantinos

unread,
Mar 31, 2014, 5:48:12 AM3/31/14
to ns-3-...@googlegroups.com
Hi,

The Hello Interval is an attribute of the AODV routing protocol. You can change it using the attribute system
As you can see, the default value is 1sec (10^9 ns).
  • HelloInterval: HELLO messages emission interval.
    • Set with class: ns3::TimeValue
    • Underlying type: Time -9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: +1000000000.0ns
    • Flags: construct write read

Patel Rajan

unread,
Mar 31, 2014, 6:02:23 AM3/31/14
to ns-3-...@googlegroups.com
sir,
i updated the following field in  AODV model/aodv-routing-protocol.cc file

HelloInterval (Seconds (10)); //line number 131

and run by  ./waf --run aodv.cc

but not getting delay for sending hello packet.

Please help



--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Konstantinos

unread,
Mar 31, 2014, 6:32:04 AM3/31/14
to ns-3-...@googlegroups.com
I have already told you. You need to use the attribute system to change the interval.

Please read the documentation first.


On Monday, March 31, 2014 11:02:23 AM UTC+1, Patel Rajan wrote:
sir,
i updated the following field in  AODV model/aodv-routing-protocol.cc file

HelloInterval (Seconds (10)); //line number 131

and run by  ./waf --run aodv.cc

but not getting delay for sending hello packet.

Please help

On Mon, Mar 31, 2014 at 3:18 PM, Konstantinos wrote:
Hi,

The Hello Interval is an attribute of the AODV routing protocol. You can change it using the attribute system
As you can see, the default value is 1sec (10^9 ns).
  • HelloInterval: HELLO messages emission interval.
    • Set with class: ns3::TimeValue
    • Underlying type: Time -9223372036854775808.0ns:+9223372036854775807.0ns
    • Initial value: +1000000000.0ns
    • Flags: construct write read

On Monday, March 31, 2014 10:41:18 AM UTC+1, Patel Rajan wrote:
Hi,

Any one know what is the default item for hello packet interval and i want to change it for 10 second. can i do if yes than how ?
please guide me..

Thanks

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

Patel Rajan

unread,
Apr 2, 2014, 5:15:54 AM4/2/14
to ns-3-...@googlegroups.com
Thanks.  As per suggested document, able to change the default value of parameter.


To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages