Hi all, I just want to ask what does MaxHelloInterval and MinHelloInterval really menas and do in aodv code?
It really puzzlaes me thuis code in aodv.cc from line 166 to 173: void HelloTimer::handle(Event*) { agent->sendHello(); double interval = MinHelloInterval + ((MaxHelloInterval - MinHelloInterval) * Random::uniform()); assert(interval >= 0); Scheduler::instance().schedule(this, &intr, interval); } why the value for hello timer (i assume that's hello message interval) is equal to MinHelloInterval + ((MaxHelloInterval - MinHelloInterval) * Random::uniform()); for the old version of ns2 (version 2.1x), it does not have these MaxHelloInterval and MinHelloInterval should it be as simple as HELLO_INTERVAL x ALLOWED_HELLO_LOSS? it's defined in aodv.h from line 119 to 123: #define HELLO_INTERVAL 1 // 1000 ms #define ALLOWED_HELLO_LOSS 3 // packets #define BAD_LINK_LIFETIME 3 // 3000 ms #define MaxHelloInterval (1.25 * HELLO_INTERVAL) #define MinHelloInterval (0.75 * HELLO_INTERVAL) i'm not quite understand what does this MaxHelloInterval and MinHelloInterval do, if anyone can explain to me, it will be much appreciated.. I also have tried simulation with both AODV-LL and AODV-HELLO, and seems that the performance is quite match (AODV-LL is better by maybe 0.1 % for high mobility scenario), for me it does not make any sense... is something wrong with the AODV ns-2.34 code?