Elsevier

Ad Hoc Networks

Volume 9, Issue 5, July 2011, Pages 799-820
Ad Hoc Networks

NetTopo: A framework of simulation and visualization for wireless sensor networks

https://doi.org/10.1016/j.adhoc.2010.09.003Get rights and content

Abstract

Network simulators are necessary for testing algorithms of large scale wireless sensor networks (WSNs), but lack the accuracy of real-world deployments. Deploying real WSN testbed provides a more realistic test environment, and allows users to get more accurate test results. However, deploying real testbed is highly constrained by the available budget when the test needs a large scale WSN environment. By leveraging the advantages of both network simulator and real testbed, an approach that integrates simulation environment and testbed can effectively solve both scalability and accuracy issues. Hence, the simulation of virtual WSN, the visualization of real testbed, and the interaction between simulated WSN and testbed emerge as three key challenges. In this paper, we present an integrated framework called NetTopo for providing both simulation and visualization functions to assist the investigation of algorithms in WSNs. NetTopo provides a common virtual WSN for the purpose of interaction between sensor devices and simulated virtual nodes. Two case studies are described to prove the effectiveness of NetTopo.

Introduction

The increasing market requirements of wireless sensor networks (WSNs) applications drive the fast development of research in various aspects, e.g., sensor hardware design, sensor operating system development. Among all kinds of research issues in WSNs, various algorithms, e.g., routing algorithm, topology control algorithm, are highly concentrated. Designing and validating algorithms pertaining to WSNs are among the most fundamental focuses of researchers. Network simulators are widely used for the purpose of analysis in these tasks due to the fast prototyping and the capability of tackling large scale systems. However, even the best simulators are still not able to provide real condition simulation environments in terms of completeness, complexity and accuracy, e.g., theoretical model based simulation may trade accuracy for simulation performance [1]. Taking this drawback of simulators into account, using real testbed to evaluate algorithms of WSNs is essentially necessary before applying them into commercial applications. Testbeds allow for rigorous and replicable testing. Nevertheless, there are two serious limitations on this approach in the following two conditions: (1) Large scale. Till today, it is still very expensive to buy a large number of sensor devices for a large scale testbed, e.g., the price of a Crossbow professional kit with eight sensor nodes is around 2800 Euros. Especially, for most academic researches the cost for building a large scale testbed is not acceptable. (2) Not replicable environment. For some specific applications, e.g., monitoring an erupting volcano [2], rescue in a sudden earthquake and monitoring hazardous situations [3], deploying a testbed is unwanted since the devices are exposed to dangerous conditions which can cause serious damage.

Even though simulation models are usually not able to represent the real environments with the levels of completeness and accuracy, simulators are still very important tools, because that simulators enable rapid prototyping and early evaluation of sensor network applications and algorithms. Compared to the cost and time involved in setting up an entire testbed containing multiple networked computers, routers and data links, network simulators are relatively fast and inexpensive. Due to the complementary properties of simulators and testbeds, a better solution could be the integration of simulation environment and physical testbed. Using this technology, applications can run partially in a simulation environment and partially in a physical WSN testbed and interact with each other to create an environment where scalability issues, heterogeneous environments, etc. can be better studied.

Thus, the subject of this research work is about building a new software framework, which integrates simulation and visualization functions to assist the investigation of various algorithms in WSNs. This integration is specially motivated by the following two concrete scenarios:

  • Researchers want to compare the performance of running a same algorithm in both simulator and real testbed. The comparison can guide researchers to improve the algorithm design and incorporate more realistic conditions. A good example is the applying of face routing algorithm in GPSR [4], which is proved to be loop free in theory but actually is not loop free in realistic situations, due to the irregular radio coverage [5].

  • A budget limitation prevents researchers from buying enough real sensor nodes but the research work has to base on a large scale WSN. For example, to evaluate the performance of any sensor middleware, e.g., [6], a large scale sensor network is needed. Researchers can actually do the research work by integrating a small number of real sensor nodes and a large number of virtual sensor nodes generated from the simulator.

The integration of simulation environment and physical testbed brings three major challenges:

  • Sensor node simulation. Normally, a number of heterogeneous sensor devices can be used for building a WSN testbed. The integrated platform should not simulate only a specific sensor device, which means that the heterogeneous problem requires the integrated platform to be flexible enough to simulate any new sensor device.

  • Testbed visualization. On one hand, sensor nodes are small in size and do not have user interfaces as displays or keyboards, which is difficult to track the testbed communication status. On the other hand, the communication topology in testbed is invisible, but researchers usually need to see the topology to analyze their algorithms. For example, when implementing a routing algorithm in the testbed, the actual routing path is expected to be visible.

  • Interaction between the simulated WSN and testbed. The simulated WSN and the real testbed need to exchange information, e.g., routing packet. Their horizontal interconnection, communication, interaction, and collaboration are all emerging difficult problems that need to be addressed.

In this paper, we present an extensible integrated framework of simulation and visualization called NetTopo to assist investigation of algorithms in WSNs. With respect to the simulation module, users can easily define a large number of on-demand initial parameters for sensor nodes, e.g., residential energy, transmission bandwidth, radio radius. Users also can define and extend the internal processing behavior of sensor nodes, e.g., energy consumption, bandwidth management. NetTopo allows users to simulate an extremely large scale heterogeneous WSN. For the visualization module, it works as a plug-in component to visualize testbed’s connection status, topology, sensed data, etc. These two modules paint the virtual sensor nodes and links on the same canvas, which is an integration point for centralized visualization. Since node attributes and internal operations are user definable, it guarantees simulated virtual nodes to have the same properties with those of real nodes. The sensed data captured from real sensor nodes can drive the simulation in a pre-deployed virtual WSN. Topology layouts and algorithms of virtual WSN are customizable and work as user defined plug-ins, both of which can easily match the corresponding topology and algorithms of real WSN testbed. Currently, NetTopo is released as open source software on SourceForge and its own website [7].

The rest of the paper is organized as follows: Section 2 presents an overview of the related work in terms of simulators and WSN visualization and positions our work with respect to the related literature. Section 3 illustrates design issues of the framework including architecture, mechanism of modular components, module interfaces and interaction between these interfaces. Section 4 describes the features of NetTopo and analyzes the implementation of the framework. It is focused on logic, programming techniques and interesting code of some core features. Section 5 presents two case studies provided in NetTopo as examples for testing the effectiveness of the framework. Section 6 concludes this paper.

Section snippets

Related work

Since NetTopo is an integrated framework of simulation and visualization for WSNs, network simulators and WSN visualization are two main aspects of related work. In this section, we have an overview of literature on both of them respectively.

Design of the framework

This section illustrates in detail the process of problem-solving and planning for the whole framework solution. We first analyze the requirement specification. Then we describe the architecture of NetTopo. Based on the architecture, modules are partitioned and presented in a hierarchy with specific description respectively. After that, we present the design of module interfaces and data persistence. For the purpose of utilizing NetTopo software and extending the framework for future

Implementation of core features

This section describes the features of NetTopo and analyzes the implementation of the framework based on the design vision presented in the previous section.

Case studies for test

To demonstrate the usability of NetTopo we present two case studies on simulation and visualization respectively as user examples. For simulation, two routing algorithms, GPSR [4] and TPGF [24], [25], [26], are implemented and compared based on the statistical results. For visualization, a testbed composed of Crossbow sensor nodes is visualized.

Cross-layer integrations with GSN [23]

As a sister project of the famous GSN middleware, NetTopo is designed to have tight cross-layer interactions with GSN to fully utilize GSN’s existing functions. Currently, two types of cross-layer integrations are designed as follows:

  • (1)

    NetTopo getting data from GSN, as shown in Fig. 25a: Basically, GSN is a powerful sensor network middleware because that a large number of wrappers had been implemented inside GSN to allow it to gather various sensor streams from heterogeneous sensor devices.

Is NetTopo aiming at a better simulator than other existing ones?

NetTopo is not aiming at a better simulator than other existing ones, especially, those commercialized special simulators, e.g., OPNET. The basic goal of NetTopo is to make it be a very good and useful platform for some tasks & scenarios, where both testbed evaluation and simulation are needed. However, during the design of NetTopo, we still tried our best to provide very good flexibility, extensibility and scalability in NetTopo.

How is the scalability and execution performance of NetTopo?

Supporting a large number of sensor nodes with reasonable

Conclusions and future work

We have presented NetTopo, a Java-based integrated framework of simulation and visualization for wireless sensor networks. The friendly GUI makes it easy to use and the modular components enable it to be easily extended. Due to the algorithm-oriented design, NetTopo supports the simulation for an extremely large scale network. It is useful for the rapid prototyping of an algorithm. The visualization function uncovers the real device based WSN topology and displays sensed data. Based on modular

Acknowledgment

The work in this paper was supported by: (in part) the Lion project supported by Science Foundation Ireland under Grant No. SFI/02/CE1/I131, (in part) by the European Project CONET (Cooperating Objects NETwork of excellence) under Grant No. 224053. This research was partially supported by Grant-in-Aid for Scientific Research (S)(21220002) of the Ministry of Education, Culture, Sports, Science and Technology, Japan. The authors would like to thank Dr. Lei Wang (Dalian University of Technology,

Lei Shu is a currently Specially Assigned Research Fellow in Department of Multimedia Engineering, Graduate School of Information Science and Technology, Osaka University, Japan, and was a Research Scientist in the Digital Enterprise Research Institute (DERI), at the National University of Ireland, Galway (NUIG). He received the B.Sc. degree in Computer Science from South Central University for Nationalities, China, 2002, and the M.Sc. degree in Computer Engineering from Kyung Hee University,

References (36)

  • K. Seada et al.

    Modeling and analyzing the correctness of geographic face routing under realistic conditions

    Ad Hoc Networks

    (2007)
  • Illinois Network Design and EXperimentation (INDEX) Group, <http://lion.cs.uiuc.edu/project/simulation.html>, 2010...
  • C. Werner-Allen et al.

    Deploying a wireless sensor network on an active volcano

    IEEE Internet Computing

    (2006)
  • T. Bokareva, W. Hu, S. Kanhere, B. Ristic, N. Gordon, T. Bessell, M. Rutten, S. Jha, Wireless sensor networks for...
  • B. Karp, H.T. Kung, GPSR: greedy perimeter stateless routing for wireless networks, in: Proceedings of the Annual...
  • K. Aberer, M. Hauswirth, A. Salehi, Infrastructure for data processing in large-scale interconnected sensor network,...
  • L. Shu, C. Wu, M. Hauswirth, Y. Zhang, J.M. Chen, NetTopo, <http://www.semanticreality.org/nettopo/index.htm>, 2010...
  • F. Jacques, A. Marculescu, AlgoSensim, <http://tcs.unige.ch/lib/exe/fetch.php/code/algosensim/guide.pdf>, 2010...
  • Shawnwiki, <http://shawnwiki.coalesenses.com/index.php/Shawn_Introduction>, 2010 (accessed...
  • Distributed Computing Group, Swiss Federal Institute of Technology Zurich, Sinalgo,...
  • ns-2, <http://www.isi.edu/nsnam/ns/>, 2010 (accessed...
  • S. Park, A. Savvides, M.B. Srivastava, SensorSim: a simulation framework for sensor networks, in: Proceedings of the...
  • Ohio State University, J-Sim. (1999) <http://j-sim.cs.uiuc.edu/>, 2010 (accessed...
  • X. Zeng, R. Bagrodia, M. Gerla, Glomosim: a library for parallel simulation of large-scale wireless networks, in:...
  • P. Levis, N. Lee, M. Welsh, D.E. Culler, Tossim: accurate and scalable simulation of entire Tinyos applications, in:...
  • J. Polley, D. Blazakis, J. McGee, D. Rusk, J.S. Baras, Atemu: a fine-grained sensor network simulator, in: Proceedings...
  • B. Titzer, D.K. Lee, J. Palsberg, Avrora: scalable sensor network simulation with precise timing, in: Proceedings of...
  • A.G. Ruzzelli, R. Jurdak., M. Dragone, A. Barbirato, G.M.P. O’Hare, Octopus: a dashboard for sensor networks visual...
  • Cited by (53)

    • A secure and energy-efficient platform for the integration of Wireless Sensor Networks and Mobile Cloud Computing

      2019, Computer Networks
      Citation Excerpt :

      Then, the mobile user has an application developed with Android Studio to download the encrypted file with JSON. For the simulation of WSNs along with their energy and security approaches, the NetTopo simulator will be used [43]. NetTopo has been used by several researches to get their results as it's intended mostly for research work.

    • Ubiquitous sensor network simulation and emulation environments: A survey

      2017, Journal of Network and Computer Applications
      Citation Excerpt :

      NetTopo is an algorithm level, large-scale network simulator which mainly focuses on USN data structure, logic, and presentation of the algorithms. It was developed in Java and provides both simulation and visualization functions (Shu, 2011; NetTopo, 2017). SENSE (Sensor Network Simulator and Emulator) is a component-oriented general-purpose network and application level simulator.

    • Simulators and Emulators for WSNs

      2023, Signals and Communication Technology
    View all citing articles on Scopus

    Lei Shu is a currently Specially Assigned Research Fellow in Department of Multimedia Engineering, Graduate School of Information Science and Technology, Osaka University, Japan, and was a Research Scientist in the Digital Enterprise Research Institute (DERI), at the National University of Ireland, Galway (NUIG). He received the B.Sc. degree in Computer Science from South Central University for Nationalities, China, 2002, and the M.Sc. degree in Computer Engineering from Kyung Hee University, Korea, 2005, and the Ph.D degree in Digital Enterprise Research Institute, NUIG, in 2010. He has published over 80 papers in related conferences, journals, and books. He has been awarded the MASS 2009 IEEE TCs Travel Grant and the Outstanding Leadership Award of EUC 2009 as Publicity Chair. He has served as guest co-editor and editor of 18 international journals. He has served as Program Co-chair of MMASN 2010, PMSN 2010, UBSN2010, MSSW 2009, MMASN 2009, PMSN 2009; Workshop Co-Chair of CIT 2010, EMC 2010; Publicity Co-Chair of BodyNets 2010, EMC 2010, EUC 2009, PICom 2009, ASIT 2009, EmbeddedCom 2009, CPSE 2009; TPC members of more than 60 conferences including, MASS, IWCMC, BROADNETS, WICON, Tridentcom, DEXA, Chinacom, UIC, WORLDCOMP, etc. He has served as reviewer of more than 30 journals, including, IEEE Network Magazine, IEEE Transaction on Wireless Communications, IEEE Journal of Selected Areas in Communications (J-SAC), ACM/Springer Mobile Networks and Applications (MONET), and ACM/Springer Wireless Networks (WINET), etc. His research interests include wireless multimedia sensor networks, wireless sensor networks, context aware middleware, and sensor network middleware, and security. He implemented a new open source WSNs simulator & visualizer: NetTopo. He is a member of ACM and IEEE. Email: [email protected].

    Manfred Hauswirth is Vice-Director of the Digital Enterprise Research Institute (DERI), Galway, Ireland and professor at the National University of Ireland, Galway (NUIG). He holds an M.S. (1994) and a Ph.D (1999) in computer science from the Technical University of Vienna. From January 2002 to September 2006 he was a senior researcher at the Distributed Information Systems Laboratory of the Swiss Federal Institute of Technology in Lausanne (EPFL). Prior to his work at EPFL he was an assistant professor at the Distributed Systems Group at the TU Vienna. His main research interests are on semantic sensor networks, sensor networks middleware, large-scale semantics-enabled distributed information systems and applications, peer-to-peer systems, Internet of things, self-organization and self-management, Semantic Web services, and distributed systems security. He has published over 70 papers in these domains; he has co-authored a book on distributed software architectures and several book chapters on P2P data management and semantics. He has served in over 130 program committees of international scientific conferences and was program co-chair of the Seventh IEEE International Conference on Peer-to-Peer Computing in 2007 and general chair of the Fifth European Semantic Web Conference in 2008. He is a member of IEEE and ACM and is on the board of WISEN, the Irish Wireless Sensors Enterprise Led Network, and the scientific board of the Corporate Semantic Web research center at FU Berlin. He is a member of IEEE (Computer and Communication Societies) and ACM. Email: [email protected]

    Han-Chieh Chao is currently a jointly appointed professor in the institute of Computer Science and Information Engineering and the institute and department of electronic engineering at National Ilan University, Taiwan; jointly adjunct professor in the institute and department of electrical engineering at National Dong Hwa University, Taiwan; and honorary adjunct professor in Beijing Jiaotong University (985 University), Xiamen University (985 University), Lanzhou University (985 University) and Yantai University, China. His research interests include High Speed Networks, Wireless Networks, IPv6 based Networks, Digital Creative Arts and Digital Divide. He received his M.S. and Ph.D degrees in Electrical Engineering from Purdue University in 1989 and 1993 respectively. He has authored or co-authored 4 books and has published about 250 refereed professional research papers. He has completed 90 MSEE and 2 Ph.D thesis students. Dr. Chao has received many research awards, including Purdue University SRC awards, and NSC research awards (National Science Council of Taiwan). He also received many funded research grants from NSC, Ministry of Education (MOE), RDEC, Industrial Technology of Research Institute, Institute of Information Industry and FarEasTone Telecommunications Lab. Dr. Chao has been invited frequently to give talks at national and international conferences and research organizations. Dr. Chao is also serving as an IPv6 Steering Committee member and co-chair of R&D division of the NICI (National Information and Communication Initiative, a ministry level government agency which aims to integrate domestic IT and Telecom projects of Taiwan), Co-chair of the Technical Area for IPv6 Forum Taiwan, the executive editor of the Journal of Internet Technology and the Editor-in-Chief for International Journal of Internet Protocol Technology and International Journal of Ad Hoc and Ubiquitous Computing. Dr. Chao has served as the guest editors for Mobile Networking and Applications (ACM MONET), IEEE JSAC, IEEE Communications Magazine, Computer Communications, IEE Proceedings Communications, and Wireless Communications & Mobile Computing. Dr. Chao is an IEEE senior member, a Fellow of the Institution of Engineering and Technology (FIET), and Chartered Fellow of British Computer Society (FBCS).

    Min Chen is an assistant professor in School of Computer Science and Engineering at Seoul National University (SNU). He was a research associate in Dept. of Computer Science at University of British Columbia (UBC) since Mar. 2009. He has worked as a Post-Doctoral Fellow in Dept. of Electrical and Computer Engineering at UBC for three years. Before joining UBC, he was a Post-Doctoral Fellow at SNU for one and half years. He has published more than 60 technical papers, including 32 journal papers. He is the sole author of a textbook OPNET Network Simulation (Tsinghua Univ. Press, 2004). Dr. Chen received the Best Paper Runner-up Award from The Fifth International Conference on Heterogeneous Networking for Quality, Reliability, Security and Robustness (QShine) 2008. He was interviewed by Chinese Canadian Times where he appeared on the Celebrity Column in 2007. He has worked as session chairs in several conferences, such as VTC’08, QShine’08, ICACT’09, Trientcom’09, and ICC’09. He is a TPC co-chair of BodyNets 2010. He is a workshop chair of CHINACOM 2010. He is the co-chair of MMASN-09 and UBSN-10. He was the TPC chair of ASIT-09, ASIT 2010, TPC co-chair of PCSI-09 and PCSI-10, publicity co-chair of PICom-09. He serves as the corresponding guest editors for several international journals, such as ACM/Springer Mobile Networks and Applications (MONET) Special Issue on ‘‘Ubiquitous Body Sensor Networks”, International Journal of Communications System (IJCS) Special Issue on ‘‘Advances on Multimedia Communications”, International Journal of Sensor Networks (IJSNET) Special Issue on “Recent Advances in Sensor Integration”, and International Journal of Communication Networks and Distributed Systems (IJCNDS) Special Issue on ‘‘Mobile, Multimedia, Ad Hoc & Sensor Networks”. He is managing editor for IJAACS Journal. He is an IEEE senior member.

    Yan Zhang received Ph.D degree in School of Electrical & Electronics Engineering, Nanyang Technological University, Singapore. He is a regional, associate editor or on the editorial board of: Wiley Wireless Communications and Mobile Computing, Security and Communication Networks; International Journal of Network Security; International Journal of Ubiquitous Computing; Transactions on Internet and Information Systems; International Journal of Autonomous and Adaptive Communications Systems; International Journal of Ultra Wideband Communications and Systems and International Journal of Smart Home. He is the Book Series Editor for the book series on ‘‘Wireless Networks & Mobile Communications” (Auerbach Publications, CRC Press, Taylor & Francis Group). He serves as guest co-editor for: IEEE Intelligent Systems, Security and Communication Networks, Wireless Personal Communications, Computer Communications, Journal of Universal Computer Science, Journal of Cluster Computing, EURASIP Journal on Wireless Communications and Networking, Journal of Wireless Personal Communications. He is serving as co-editor for several books. He serves as organizing chairs for many conferences, including Program Co-Chair (BROADNETS09, IWCMC09, UIC08, PCAC07, ISM07), Symposium Co-Chair (ChinaCom08-09), Industrial Co-Chair (ACM MobiHoc08), Workshop Co-Chair (ADHOCNETS09, APSCC08), Publication Chair (PSATS09, ISWCS07), and Track Co-Chair (ITNG09). He serves as TPC for numerous conferences, including ICC, GLOBECOM, WCNC, PIMRC, VTC, CCNC, AINA, ISWCS, HPCC, etc. He received the Best Paper Award in the IEEE AINA07. From Aug. 2006, he works with Simula Research Laboratory, Norway. His research interests include resource, mobility, spectrum, data, energy and security management in wireless networks and mobile computing. He is a member of IEEE and IEEE ComSoc. Email: [email protected]

    View full text