AODV: Calculate number of data packets received from and forwarded to each neighbor

53 views
Skip to first unread message

Shanen Leen

unread,
Jun 21, 2017, 11:59:16 AM6/21/17
to ns-3-users
I've set up some misbehaving nodes in a MANET using AODV protocol, which drops AODV packets(RREQ, RREP, RERR. etc) in a given probability.

All nodes calculate the no.of packets received from and forwarded to each of its neighbors and store those counts in a data structure within the aodv-routing-protocol.h/.cc
This is done via Recv...() methods and  Send...() methods of the protocol.

Similarly, how can I calculate the number of data packets received from and forwarded to each neighbor and store in the above data structure? Within which method should I increase the counters (Eg: RouteOutput()).

I want to use the packets counts(RREQ, RREP, ets and data packet counts) stored in the mentioned structure for algorithm which tries to identify above mentioned misbehaving neighbors of each node.

Simulation script is pretty much similar to manet-routing-comapre.cc example where an On-off application send packets to 10 sinks.
Thanks!
Reply all
Reply to author
Forward
0 new messages