Hello,
I am trying to implement aodv + LAR + energy judgement in NS3, so here is the idea:
(1) When destination node receives RREQ, it will add it's position information and velocity information in RREP, then source node parse RREP to update information about destination node.
(2) Before source node broadcast RREQ, positon information of Request Zone will be added in RREQ. So when intermediatenodes receive RREQ, I think it need to analysis RREQ and add some criteria(such as position information judgement and remaining energy information judgement) for each intermediatenode to determine to rebroadcast RREQ or not.
(3) If the intermediatenode is not in Request Zone or it's remaining energy is too low, it will not reboadcast RREQ to save energy.
Is that right? There are several questions confusing me:
(1) How to add position information judgement and remaining energy information judgement for each intermediatenode to determine to rebroadcast RREQ or not.
(2) How destionation node add information in RREP and how source node parse RREP.
(3) Are there any available source code about this simulation. There are many papers about this scheme, but I can't find the source code in the paper.
Thanks a lot.