1. While I am forwarding packets between nodes, they are not creating path, i.e., if I transfer data between node-0 to node-1 and node-1 to node-2 they do so, but if I want to create path between node-0 to node-2 using node-1 as inter mediator it is not forwarding packets. 2. I want to assign the threshold value for energy so that when the energy of any node becomes below that threshold value (Qos requirement) it will stop forwarding the packet and new route is selected to do so.