Shell Script to Clone AODV Routing Protocol in Network Simulator-2

  • Abstract
  • Keywords
  • References
  • PDF
  • Abstract

    Background and Objective: Most of the research that are carried in ad hoc routing protocol is through simulation. While working with a simulator, the codes are enclosed in a component that is accessible to all the developers. The difficulty arises as there is no enough documentation and users find it difficult to modify different C++ and TCL files. Even if one component is modified then the entire Network Simulator-2 (NS-2) suite must be reconfigured. Cloning the protocol manually takes a lot of time and prone to error. Our objective is to ease the work of developers and researchers by showing the procedure to clone the AODV protocol automatically using a script. Methodology: In this study, a shell script is developed that will clone the AODV protocol by modifying 18 C++ and TCL files of the protocol and NS-2 suite by automatically inserting the code in exact files at exact position. It also configures the NS-2 and installs the entire NS-2 suite along with setting the path in .bash files. Results: In this research work, a comparison of cloned protocol with AODV protocol is done based on throughput time and packet loss metrics and the results generated are exactly same for both the protocols. The results of the study reveal that the proposed script clones the AODV protocol successfully. Conclusion: This work proves that the proposed script can clone the AODV protocol faster with just one execution of shell script. This methodology will save the time and help the developers or research to focus more on their study on the protocol.


  • Keywords

    AODV Routing Protocol, Network Simulator-2, Ad-hoc Protocols, Access Protocol, Wireless Networks, Clone AODV

  • References

      [1] Anon, (2017). [online] Available at: [Accessed 27 Oct. 2017].

      [2] Selvarani, A. and Selvam, P. (2011). Study of Routing Protocols in Mobile Ad Hoc Networks. International Journal of Computer Applications. [online] Available at: [Accessed 4 Jun. 2017].

      [3] Anon, (2017). [online] Available at: [Accessed 3 Apr. 2017].

      [4] (2017). wireless networking using ns2. [online] Available at: [Accessed 30 Nov. 2016].

      [5] singh, R. and Uphdaya, A. (2016). A Literature Review on Black Hole Attacks on AODV Protocol in MANET. International Journal of Engineering Trends and Technology, 38(1), pp.44-49.

      [6] Sharma, C. and kaur, H. (2015). Literature Survey of AODV and DSR Reactive Routing Protocols. International Journal of Computer Applications, (0975 – 8887).

      [7] Singh, R. and Gupta, S. (2014). EE-AODV: Energy Efficient AODV routing protocol by Optimizing route selection process. International Journal of Research in Computer and ISSN (Online) 2278- 5841 Communication Technology, 3(1).

      [8] Harju, K. and Korventausta, S. (2001). Network Simulation and Protocol Implementation Using Network Simulator 2. [online] Available at: [Accessed 3 Apr. 2017].

      [9] Network Simulator - ns2. (2017). Network Simulator - ns2. [online] Available at: [Accessed 14 Sep. 2016].

      [10] Hossain, E. and Issariyakul, T. (2008). Introduction to Network Simulator NS2. US: Springer, p.512.

      [11] [ (2017). What is TCL? What Opens a TCL? File Format List from [online] Available at: [Accessed 2 Mar. 2017].




Article ID: 14668
DOI: 10.14419/ijet.v7i3.4.14668

Copyright © 2012-2015 Science Publishing Corporation Inc. All rights reserved.