[ns] some questions of AODV in ns2.30

2011-04-12 Thread molly
Hi all, I want to modify AODV but I encounter some questions and have no ways to make it. The situation is like this: I want the destination node to record the received RREQ packets within the nearest five seconds. And compare a certain field to choose the best path to send the RREP. I know the

[ns] Scheduler::instance().clock() in ns.2.30

2011-04-12 Thread molly
Hi all, Can anybody tell me something about Scheduler::instance().clock(), the function returns system time, what kind of system time it returns? Does the return time including the current system date and time or something else??

[ns] HelloTimer function in ADOV of ns-2.30

2011-04-06 Thread molly
Hi,all. HelloTimer::handle(Event*) { agent->sendHello(); double interval = MinHelloInterval + ((MaxHelloInterval - MinHelloInterval) * Random::uniform()); assert(interval >= 0); Scheduler::instance().schedule(this, &intr, interval); } Originally, I read from a book, saying the

[ns] how to modify AODV protocol in NS2.30

2011-04-05 Thread molly
Recently, I want to modify the existing AODV protocol to enhance its route stability . I am a quite beginner in ns2, can anybody give me some help!! I am puzzled how to satisfy the below questions in c++ code a. how to record the system time when a packet is sent and filled the time in the