The ultimate goal of this study is to reduce routing overhead and latency by using mobile agent to get the information about the mobile nodes. The mobile agent is a software program that able to migrate from one node to another node. The mobile agent is not executes under any controller. In this study, the mobile agent is used to get the information about link duration and the energy of the nodes. The source node accesses the information from the mobile agent by using Remote procedure call. When there exists a link between source and destination means it will directly transmit the data to the destination or otherwise transmit via relay node. The relay node is selected based on the link duration and energy of the node. So, the proposed technique reduces the link failure and routing overhead. The performance of the proposed scheme is analyzed by using the simulator NS2.