i am using ns2 as a simulator but i want to ask if someone can help me to make some modification on AODV routing protocol to take decision based on remaining emergy level and on node position
You need to modify the Routing Agent of AODV protocol which is responsible for selecting next node while forwarding packets. Routing Agent is defined in routing class as a function in the implementation of AODV. You should add another function in the routing class and call the function in the existing Routing Agent function to integrate your suggested approach in AODV next-node selection technique.
I have review several articles that propose routing methods based in the residual energy in wifi, and every one of them had the same problem, from the point of view of the engineering, they don’t offer any advantage.
The problem is that in wifi the radio must be always on, and the consumption in reception and transmission is similar, you can avoid the nodes with low energy, but this doesn’t imply that life of the nodes will be extended. The bigger consumption in the radio component is due to the polarization of the electronic, and the electronic must be polarized if you want receive something. It is more, we have measure devices in which the peak of consumption was in idle reception, because in these moment the amplifiers were at maximum. The only form that you really can reduce the consumption is switch of the radio, extract the nodes with low residual energy from the route don’t extend significantly the lifetime of the nodes. Using simulation it is possible to cheat if the reception consumption is significantly lower that the energy in transmission, but with real devices, the consumption is very similar.