Parsim: A parametric simulation application for wireless sensor networks based on NS2 simulator

Document Type : Research Paper


Department of Computer Engineering, Quchan University of Technology, Quchan, Iran


Wireless sensor networks (WSNs) are attractive technologies that have been highly regarded by researchers in recent years due to their wide applications in various fields. Due to the high cost of implementing wireless sensor networks, one of the most important issues in their use is simulation and extraction of the results to achieve maximum efficiency before implementing them. Therefore, simulation is essential to studying WSN. A large number of WSN simulators available nowadays differ in their design, goals, and characteristics. Of course, there are still challenges in simulating wireless sensor networks, the most important of which are the lack of ease of use and lack of full access to the relevant parameters in the existing cases. In this article, we first introduce the various available simulators for WSNs, together with guidelines for selecting an appropriate simulator. In the following, we present our proposed simulator based on NS2 with the aim of achieving an effective and efficient simulation by considering the ease of use and providing a complete list of relevant parameters.


[1] I.F. Akyildiz, W. Su, Y. Sankarasubramaniam and E. Cayirci, A survey on sensor networks, IEEE Commun. Magazine 40 (2002), no. 8, 102–114.
[2] B.I. Bakare and J.D. Enoch, A review of simulation techniques for some wireless communication system, Int. J. Electron. Commun. Comput. Engin. 10 (2019), no. 2, 60–70.
[3] M. Bakni, L. Manuel, M. Chac´on, Y. Cardinale and G. Terrasson, et al., WSN Simulators Evaluation: An Approach Focusing on Energy awareness, Int. J. Wireless Mobile Networks (IJWMN). 11 (2020), no. 6, 1–20.
[4] P. Baldwin, S. Kohli, E.A. Lee, X. Liu and Y. Zhao, Modeling of sensor nets in ptolemy II, Proc. Inf. Process. Sensor Networks (IPSN), Berkeley, 2004, pp. 359–368.
[5] M.G. Ball, B. Qela and S. Wesolkowski, A review of the use of computational intelligence in the design of military surveillance networks, Recent Adv. Comput. Intell. Defense Secur. 621 (2015), 663–693.
[6] R. Barr, Z.J. Haas and R. Van Renesse, JiST: embedding simulation time into a virtual machine, Proc. 5th EUROSIM Cong. Model. Simul., Paris, France, Sep. 2004.
[7] I.T. Downard, Simulating sensor networks in NS-2, Technical Report NRL/FR/5522-04-10073, Naval Research Lab, Washington DC, U.S.A., May 2004.
[8] E. Egea-Lopez, J. Vales-Alonso, A.S. Martinez-Sala, P. Pavon-Marino and J. Garcia-Haro, Simulation tools for wireless sensor networks, Procedia Summer Simulation Multiconference - SPECTS. 2005.
[9] L. Girod, T. Stathopoulos, N. Ramanathan, J. Elson, D. Estrin, E. Osterweil and T. Schoellhammer, A system for simulation, emulation and deployment of heterogeneous sensor networks, Proc. 2nd ACM Int. Conf. Embedded Networked Sensor Syst.(SenSys), Baltimore, MD, 2004, pp. 201–213.
[10] GloMoSim, Available:
[11] D. He, N. Kumar, J. Chen, C.C. Lee and N. Chilamkurti, Robust anonymous authentication protocol for healthcare applications using wireless medical sensor networks, Multimedia Syst. 21 (2015), no. 1, 49–60.
[12] H. Jiang, P. Wang and H. Liu, Research on oPNET simulation model in wireless sensor networks, Jisuanji Gongcheng/ Comput. Engin. 33 (2007), no. 4.
[13] A. Jiang and L. Zheng, An effective hybrid routing algorithm in WSN: ant colony optimization in combination with Hop count minimization, Sensors 18, no. 4, 1020–1020.
[14] J-Sim, Available:
[15] A. Kr¨oller, D. Pfisterer, C. Buschmann, S.P. Fekete and S. Fischer, Shawn: A new approach to simulating wireless sensor networks, Proc. DASD’05, Design, Anal. Simul. Distributed Syst., (San Diego, USA), Apr. 2005.
[16] M. Korkalainen, M. Sallinen, N. K¨arkk¨ainen and P. Tukeva, Survey of wireless sensor networks simulation tools for demanding applications, Fifth Int. Conf. Network. Serv., 2009, pp. 102–106.
[17] P. Levis, N. Lee, M. Welsg and D. Culler, TOSSIM: accurate and scalable simulation of entire tinyOS applications, Proc. 1st ACM Int. Conf. Embedded Networked Sensor Syst. (SenSys), Los Angeles, CA, 2003, pp. 126–137.
[18] M. Li and H.J. Lin, Design and implementation of smart home control systems based on wireless sensor networks and power line communications, IEEE Trans. Ind. Electron. 62 (2015), no. 7, 4430–4442.
[19] A. Marchiori, L. Guo, J. Thomas and Q. Han, Realistic performance analysis of WSN protocols through trace based simulation, Seventh ACM Perform. Eval. Wireless Ad Hoc, Sensor, and Ubiquitous Networks Conference (PE-WASUN), (Bodrum, Turkey), Oct, 2010.
[20] F.G. Marmol and G.M. Perez, TRMSim-WSN, trust and reputation models simulator for wireless sensor networks, Proc. IEEE ICC 2009, IEEE Int. Conf. Commun. (Dresden, Germany), Jun, 2009.
[21] M.A. Moulavi, J. Nasiri, B. Bahmani, H. Parvar, M. Sadeghizadeh and M. Naghibzadeh, DHA-KD: Dynamic hierarchical agent based key distribution in group communication, Ninth ACIS Int. Conf. Software Engin. Artif. Intell. Network. Parallel/Distributed Comput., 2008, pp. 301-306,
[22] F. Osterlind, A. Dunkels, J. Eriksson, N. Finne and T. Voigt, Cross-level sensor network simulation with COOJA,Proc. SenseApp, First IEEE Int. Workshop Practical Issues in Build. Sensor Network Appl., (Tampa, USA), Nov. 2006.
[23] C. Pang, G. Xu, G. Shan and Y. Zhang, A new energy efficient management approach for wireless sensor networks in target tracking, Defence Technol. 17 (2021), no. 3, 932–947.
[24] E. Perla, A.O. Cathain, R.S. Carbajo, M. Huggard and C. Mc Goldrick, PowerTOSSIM z: realistic energy modelling for wireless sensor network environments, Proc. 3nd ACM Workshop Perform. Monitor. Measure. Heterogen. Wireless Wired Networks, ACM, 2008, pp. 35–42.
[25] J. Polley, D. Blazakis, J. McGee, D. Rusk, J.S. Baras and M. Karir, ATEMU: A fine-grained sensor network simulator, Proc. 1st IEEE Int. Conf. Sensor Adhoc Communication Networks (SECON’04), Santa Clara, CA, Oct. 2004.
[26] A. Rodr´─▒guez, C. Del-Valle-Soto and R. Vel´azquez, Energy-efficient clustering routing protocol for wireless sensor networks based on yellow saddle goatfish algorithm, Math. 8 (2020), no. 9, 1515–1515.
[27] M. Sadeghizadeh and O.R. Marouzi, A lightweight intrusion detection system based on two-level trust for wireless sensor networks, Iran. J. Electric. Comput. Engin. 17 (2019), no. 1, 47–56.
[28] M. Sadeghizadeh and O.R. Marouzi, A lightweight intrusion detection system based on specifications to improve security in wireless sensor networks, J. Commun. Engin. 7 (2018), no. 2, 29–60.
[29] M. Sadeghizadeh and O.R. Marouzi, Securing cluster-heads in wireless sensor networks by a hybrid intrusion detection system based on data mining, J. Commun. Engin. 8 (2019), no. 1, 1–19.
[30] M. Sadeghizadeh, A lightweight intrusion detection system based on RSSI for sybil attack detection in wireless sensor networks, Int. J. Nonlinear Anal. Appl. 13 (2022), no. 1, 305–320.
[31] A. Sarkar and T. Senthil Murugan, Routing protocols for wireless sensor networks: What the literature says?, Alexandria Engin. J. 55 (2016), no. 4, 3173–3183.
[32] S. Silmi, Z. Doukha, R. Kemcha and S. Moussaoui, Wireless sensor networks simulators and testbeds, Comput. Sci. Inf. Technolo. 10 (2020), no. 9, 141–159.
[33] G. Simon, P. Volgyesi, M. Maroti and A. Ledeczi, Simulation-based optimization of communication protocols for large-scale wireless sensor networks, Proc. IEEE Int. Aerospace Conf. 3 (2003), pp. 1339–1346.
[34] L. Shu, C. Wu, and M. Hauswirth, NetTopo: Beyond simulator and visualizor for wireless sensor networks, Tech. Nep., Digital Enterprise Research Institute (DERI), Jul. 2008.
[35] A. Sobeih, J.C. Hou, L.C. Kung, N. Li, H. Zhang, W.P. Chen, H.Y. Tyan and H. Lim, J-Sim: a simulation and emulation environment for wireless sensor networks, IEEE Wireless Commun. 13 (2006), no. 4, 104–119.
[36] SQualnet, Available: htpp://
[37] S. Sundresh, W. Kim and G. Agha, SENS: A sensor, environment and network simulator, Proc. 37th ACM Ann. Symp. Simul., Washington, DC, 2004, pp. 221.
[38] B.K. Szymanski and G.G. Chen, Sensor network component based simulator, Handbook of Dynamic System Modeling (P. Fishwick, ed.), 2007.
[39] A.S. Tonneau, N. Mitton and J. Vandaele, How to choose an experimentation platform for wireless sensor networks? A survey on static and mobile wireless sensor network experimentation facilities, Ad Hoc Networks 30 (2015), 115–127.
[40] The network simulator - ns2, [Online]. Available:, 2009.
[41] OPNET technologies, Available:, 2012.
[42] PARSEC: Parallel simulation environment for complex systems, Available:
Volume 14, Issue 1
January 2023
Pages 2603-2616
  • Receive Date: 07 November 2021
  • Revise Date: 07 July 2022
  • Accept Date: 10 July 2022