| Mobile Ad Hoc Network is a temporary network composed of some mobile devices with wireless communication capabilities. These devices are called nodes in the network, and they do not need to rely on specialized infrastructure to communicate with each other. Nodes are free to move, this will make the network topology also follow the changing. When communication is needed between nodes outside the communication range, the other nodes can transmit packets to complete the communication. In this network environment, the ordinary Internet routing protocol such as RIP OSPF, can not run normally. Therefore, the development and research of routing algorithms and protocols have attracted most attention in Ad Hoc network.The Dynamic Source Routing(DSR) protocol is the on-demand routing protocol in Ad Hoc network, its feature including high efficiency, simple, multi hop, low overhead and so on. But DSR protocol has not restricted QoS parameters of bandwidth, delay and packet loss rate. In order to solve these shorts of DSR, an improved routing protocol is proposed that is called DSR-I which based on QoS and equilibrium energy. The DSR-I protocol is aimed to satisfy enough bandwidth of QoS. Then choose the biggest weight in the function of routing hops and energy to transmit packets.Thus effectively improving utilization rate of network bandwidth, reducing the average delay and increasing survival time of the nodes in the network.This paper uses the network simulation named NS2 to do the experiment, the NS2 is an object-oriented and discrete event driven developed by Berkeley UC. Simulating the whole process of routing protocol via writing OTcl scripts, and outputing simulation data to a Trace file. Then using Awk, Python or other tools analysis Trace file to get relevant value of performance to evaluate routing protocol in Ad Hoc network.In the NS2 simulation platform, the AODV and DSR, DSR and DSR-I protocols are simulated and compared in different situations. The simulation results show that the improved DSR-I protocol is more superior than the DSR protocol. |