Changing the OLSR HELLO and TC intervals

When changing the HELLO and TC intervals in the ns-2 OLSR implementation by Ros and Ruiz (v0.8.8), we use the definitions in the script file, for example:

Agent/OLSR set hello_ival_ 2.0
Agent/OLSR set tc_ival_ 5.0

However, bugs have found their way into the code, so you have to make the following changes in olsr.h to make it behave properly:

  • Change the hello_ival_ and tc_ival_ from int to double, and the corresponding functions accordingly.
  • Change the macro definitions for OLSR_HELLO_INTERVAL, OLSR_TC_INTERVAL, OLSR_MID_INTERVAL and OLSR_REFRESH_INTERVAL from 2 and 5 to hello_ival_ and tc_ival_ respectively.

2 thoughts on “Changing the OLSR HELLO and TC intervals

  1. ms says:

    hi,
    i want to simulate an ad hoc network with multi-hop and with OaLSR routing protocole on ns2.34 so i install ns2.34 and i add the patch olsr “um-olsr-0.8.8″ then i compile ns2.34, the compilation have succeed but when i try to run olsr with olsr.tcl i got the following error:
    invalid command name “Agent/OLSR”
    i want help, contact me if you have a solution…thx

  2. I was applying the umolsr patch on ubuntu 10.04 with ns2.34 ,I followed the instructions from masimum site everything worked fine until make clean ,it resulted in errors like
    “No rule to make target `olsr/OLSR.o’, needed by `ns’. Stop”
    and same type of error with dijkstra.o file .
    what’s the issue ? and also tell me how to revert changes I made by patching olsr ,I mean if I want to go back to my ns2 without patch ,what should I have to do ?
    This didn’t work

    make clean
    make depend
    make
    [/code ]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.