I am trying to understand routing in AODV so I enabled some of DEBUG
in sendReply() and recvRequest(). I need some help in interpreting
these statements. SO this means that at Node 6 receives a reply from
Node 2? Node 7 receives a reply from Node 6? Why is the source
(ch->prev_hop_) 2 the same for 6, 7 and 0? This gives an impression
that rp->rp_src points to something else.

The printf that's repsonsible for the output below are:
fprintf(stderr, "sending Reply from %d at %.9f dest: %X \n", index,
Scheduler::instance().clock(), rpdst);
//sendReply()

 fprintf(stderr, "%d - %s: received a REPLY: from %d and source: %d
\n", index, __FUNCTION__, ch->prev_hop_, rp->rp_src);
//recvReply()

Starting Simulation ...
sending Reply from 2 at 4.562597414 dest: E000000
6 - recvReply: received a REPLY: from 2 and source: 2
7 - recvReply: received a REPLY: from 6 and source: 2
0 - recvReply: received a REPLY: from 7 and source: 2
sending Reply from 2 at 4.601018846 dest: E000000
6 - recvReply: received a REPLY: from 2 and source: 2
sending Reply from 3 at 4.612893085 dest: E000000
6 - recvReply: received a REPLY: from 3 and source: 3
2 - recvReply: received a REPLY: from 6 and source: 3
sending Reply from 4 at 4.956142316 dest: E000000
1 - recvReply: received a REPLY: from 4 and source: 4
sending Reply from 3 at 4.970794265 dest: E000000
6 - recvReply: received a REPLY: from 3 and source: 3
7 - recvReply: received a REPLY: from 6 and source: 3
0 - recvReply: received a REPLY: from 7 and source: 3
sending Reply from 4 at 4.997630118 dest: E000000
5 - recvReply: received a REPLY: from 4 and source: 4
0 - recvReply: received a REPLY: from 5 and source: 4
7 - recvReply: received a REPLY: from 0 and source: 4
6 - recvReply: received a REPLY: from 7 and source: 4
3 - recvReply: received a REPLY: from 6 and source: 4
<.....MORE OUTPUT......>

Please reply,
Asraf

Reply via email to