Simulation of wireless ad-hoc sensor networks with QualNet

Similar documents
RecoveryVault Express Client User Manual

Online Backup Client User Manual

1. Product Information

Online Backup Client User Manual Linux

Online Backup Client User Manual

Online Backup Linux Client User Manual

Installing FEAR on Windows, Linux, and Mac Systems

6LoWPAN Technical Overview

Online Backup Client User Manual

OPNET Network Simulator

Monitor network traffic in the Dashboard tab

QualNet 3.6 Product Tour

Installation Guide for Basler pylon 2.3.x for Linux

Local Caching Servers (LCS): User Manual

Installing (1.8.7) 9/2/ Installing jgrasp

Code::Block manual. for CS101x course. Department of Computer Science and Engineering Indian Institute of Technology - Bombay Mumbai

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

Online Backup Client User Manual Mac OS

Online Backup Client User Manual Mac OS

Moxa Device Manager 2.3 User s Manual

Deploying Windows Streaming Media Servers NLB Cluster and metasan

Installing the Android SDK

Network Probe User Guide

OPNET - Network Simulator

APPENDIX - A. Tools Used. 1. Qualnet Simulator. 2. TRMSim-WSN Simulator. 3. SnetSim Simulator. 4. EDX SignalPro. 5.

Eclipse installation, configuration and operation

Building a Penetration Testing Virtual Computer Laboratory

Supported platforms & compilers Required software Where to download the packages Geant4 toolkit installation (release 9.6)

Configuring Windows Server Clusters

Consolidated Monitoring, Analysis and Automated Remediation For Hybrid IT Infrastructures. Goliath Performance Monitor Installation Guide v11.

Guideline for setting up a functional VPN

Kaseya Server Instal ation User Guide June 6, 2008

The BSN Hardware and Software Platform: Enabling Easy Development of Body Sensor Network Applications

Installation Guidelines (MySQL database & Archivists Toolkit client)

SIMULATION STUDY OF BLACKHOLE ATTACK IN THE MOBILE AD HOC NETWORKS

Net/FSE Installation Guide v1.0.1, 1/21/2008

Installing Virtual Coordinator (VC) in Linux Systems that use RPM (Red Hat, Fedora, CentOS) Document # 15807A1-103 Date: Aug 06, 2012

CDH installation & Application Test Report

Getting Started using the SQuirreL SQL Client

Chapter 15: Advanced Networks

Code::Blocks Student Manual

RIP: Routing Information Protocol

McAfee Firewall for Linux 8.0.0

If you never used nor intend to use the wired-connection, then please disregard the following info.

DESIGN AND DEVELOPMENT OF LOAD SHARING MULTIPATH ROUTING PROTCOL FOR MOBILE AD HOC NETWORKS

Attix5 Pro Server Edition

Introweb Remote Backup Client for Mac OS X User Manual. Version 3.20

Behavior Analysis of TCP Traffic in Mobile Ad Hoc Network using Reactive Routing Protocols

Intelligent Agents for Routing on Mobile Ad-Hoc Networks

Code Estimation Tools Directions for a Services Engagement

Performance Evaluation of AODV, OLSR Routing Protocol in VOIP Over Ad Hoc

Moxa Device Manager 2.0 User s Guide

Procedure: You can find the problem sheet on Drive D: of the lab PCs. Part 1: Router & Switch

Source Code Review Using Static Analysis Tools

CommandCenter Secure Gateway

ilaw Installation Procedure

CASHNet Secure File Transfer Instructions

USING STUFFIT DELUXE THE STUFFIT START PAGE CREATING ARCHIVES (COMPRESSED FILES)

Configure A VoIP Network

2. What is the maximum value of each octet in an IP address? A. 28 B. 255 C. 256 D. None of the above

Reflection DBR USER GUIDE. Reflection DBR User Guide. 995 Old Eagle School Road Suite 315 Wayne, PA USA

The System Monitor Handbook. Chris Schlaeger John Tapsell Chris Schlaeger Tobias Koenig

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

NetBrain Workstation Professional Edition 2.3 Release notes

Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v Steps to Developing a QNX Program Quickstart Guide

Cincom Smalltalk. Installation Guide P SIMPLIFICATION THROUGH INNOVATION

Department of Veterans Affairs VistA Integration Adapter Release Enhancement Manual

Configuring the WT-4 for ftp (Ad-hoc Mode)

Hacking. Aims. Naming, Acronyms, etc. Sources

Enterprise SSL Support

Getting Started with Android Development

TecLocal 4.0 MultiUser Database

VIA CONNECT PRO Deployment Guide

Configuring the WT-4 for ftp (Ad-hoc Mode)

Lab 0 (Setting up your Development Environment) Week 1

NoMachine (free version) Installation Guide

Tutorial: setting up a web application

This chapter describes how to set up and manage VPN service in Mac OS X Server.

Digi Port Authority- Remote. Setup Guide _A

Publishing Geoprocessing Services Tutorial

Creating a DUO MFA Service in AWS

System Requirements - Table of Contents

Eclipse.org CDT and Cygwin: A Tutorial on Installation and Functionality

RingStor User Manual. Version 2.1 Last Update on September 17th, RingStor, Inc. 197 Route 18 South, Ste 3000 East Brunswick, NJ

Lab 0: Preparing your laptop for the course OS X

Setup for PCCharge. Important Pre-Installation Notes for PCCharge. Installation Overview. Step 1 Install And Set Up PCCharge on the Fileserver

PowerPanel Business Edition Installation Guide

Penetration Testing LAB Setup Guide

KASPERSKY LAB. Kaspersky Administration Kit version 6.0. Administrator s manual

Massey University Follow Me Printer Setup for Linux systems

ALTIRIS Deployment Solution 6.8 Preboot Automation Environment

etoken Enterprise For: SSL SSL with etoken

CRSP MOVEit Cloud Getting Started Guide

Testing and Restoring the Nasuni Filer in a Disaster Recovery Scenario

Installing The SysAidTM Server Locally

SAS Marketing Automation 4.4. Unix Install Instructions for Hot Fix 44MA10

Getting Started with PRTG Network Monitor 2012 Paessler AG

FSM73xx GSM73xx GMS72xxR Shared access to the Internet across Multiple routing VLANs using a Prosafe Firewall

Viewing and Troubleshooting Perfmon Logs

Transcription:

Advanced Seminar Embedded Systems 2008/2009 Simulation of wireless ad-hoc sensor networks with QualNet Documentation by Tobias Doerffel Chemnitz, April 9, 2009

Contents Contents 1 Introduction 3 1.1 The scenario............................... 3 2 QualNet overview 4 2.1 Components of QualNet........................ 4 2.2 Installing QualNet on a recent Linux system............. 4 2.3 Installing QualNet on Windows.................... 5 3 Designing the scenario 6 3.1 Data sink................................ 8 3.2 Mobile sensor nodes........................... 8 3.3 Wireless subnet............................. 8 3.4 Traffic generators............................ 9 4 Running the scenario 11 4.1 Graphical animation.......................... 11 4.2 QualNet 3D Visualizer......................... 11 4.3 Command line interface........................ 13 5 Analyzing the results 14 6 Conclusion 16 2

1. Introduction 1 Introduction Nowadays network applications especially in the area of wireless networks are becoming more and more complex which makes the design and the testing almost impossible without appropriate software. There re a lot of different programs available to aid the user in simulating previously designed scenarios. This work covers the implementation of a given scenario using the software QualNet by Scalable Networks in version 4.5.1. QualNet is a commercial software that runs on all common platforms (Linux, Windows, Solaris, OS X) and is specialized in simulating all kind of wireless applications. It has a quite clear user interface compared to other solutions while also offering an easy to use command line interface. 1.1 The scenario We had been given the following wireless scenario to be implemented: sensor network with 10 mobile nodes and a statically placed data sink (root node) IEEE 802.15.4 wireless standard for PHY and MAC layer AODV (Ad hoc On-Demand Distance Vector) routing 1 Random Waypoint Mobility Model for the mobile nodes 2 2 KB/s unidirectional continuous network load from each sensor node to data sink time synchronization with the root node every 10 seconds using the FTSP (Flooding Time Synchronization Protocol) 3 optional: TCP/IP stack integration with UDP load (e.g. videostream) from root node to all nodes (10 KB/s) acknowledged sensor data It however was not possible to meet all these requirements due to missing features in the program. Details will follow. 1 http://tools.ietf.org/html/rfc3561 2 http://mathstat.helsinki.fi/mathphys/evergrow/virtamo.pdf 3 http://www.eecs.harvard.edu/ mdw/course/cs263/papers/ftsp-sensys04.pdf 3

2. QualNet overview 2 QualNet overview 2.1 Components of QualNet QualNet consists of various components: QualNet Scenario Designer QualNet Animator QualNet 3D Visualizer QualNet Analyzer QualNet Packet Tracer All components but the last will be described in detail in the according chapter. 2.2 Installing QualNet on a recent Linux system Getting to run QualNet on recent Linux systems is a bit tricky as it has been built for rather outdated Linux distributions (Fedora Core 4 which has been released in June 2005). All steps described in the following refer to recent Debian based distributions but probably are applicable for other distributions as well. First of all you need to register an account in order to download the software archive at 4. Afterwards the archive can be extracted: sudo su cd / opt tar xzf < download directory >/ qualnet -4.5.1 - evaluation. tar. gz Next the QualNet core application has to be compiled. Since the provided source code does not follow the official C++ standard (ISO/IEC 14882:1998) it can t be compiled without some small modifications. An according patch named fix-qualnetcore-sources.diff can be found in the archive containing all files related to this work. To apply it and compile everything run the following commands: sudo su cd / opt / qualnet /4.5/ patch -p2 <.../ fix - qualnet -core - sources. diff cd main cp Makefile - linux - glibc -2.3 - gcc -4.0 Makefile make 4 http://www.scalable-networks.com/products/qualnet/download.php 4

2.3 Installing QualNet on Windows In case you system is 64 bit you need to replace Makefile-linux-glibc-2.3-gcc-4.0 with Makefile-linux-x86 64-glibc-2.3-gcc-4.0 in the above commands. Now some symlinks need to be created due to the already mentioned linking against old libraries. sudo su cd / usr / lib ln -s libexpat.so libexpat.so.0 ln -s libssl.so libssl.so.5 ln -s libcrypto.so libcrypto.so.5 The last thing to do at this stage is to download the license file (qualnet-4.5.1-eval-yyyy.mm.dd.lic) from the same URL as the software and place it in /opt/qualnet/4.5/license dir. If everything finished without errors, QualNet is ready to run. 2.3 Installing QualNet on Windows The installation of QualNet on Windows should be quite straight-forward via the installer and thus is not described in detail here. The installation brings a precompiled qualnet.exe so there s no need to compile components of QualNet on your own. 5

3. Designing the scenario 3 Designing the scenario Given QualNet has been started successfully, a new empty scenario has to be created using a wizard which can be started via File New. After it has finished a workspace with an empty scenario can be seen as as shown in figure 1. Figure 1: QualNet Designer: an empty scenario to start with All properties of the scenario can be viewed and changed using the Inspector on the left side. There s an amazing amount of properties, subproperties and parameters that can be altered although we only need to touch a very few of them. For not having to change common properties for each node there s a possibility to set global properties below ConfigSettings. In particular only some of the items are of interest in the following. The changes as listed below were made to configure the nodes according to the requirements: 6 Wireless Settings Radio/Physical Layer Radio Type: 802.15.4 Radio Wireless Settings MAC Protocol MAC Protocol: 802.15.4 Network Protocols Routing Protocol Routing Policy Routing Protocol for IPv4 : AODV

3. Designing the scenario Network Protocols Network Protocol IP Fragmentation Unit: 70 Node Positioning Mobility Mobility Model: Random Waypoint General Terrain Coordinate-System Dimensions: 100 100 Now we can start adding nodes by selecting Devices DEFAULT in the toolbar and clicking in the workspace. This is merely useful in scenarios with only a few nodes. A vast number of nodes can be created easily utilizing Experiment Place Nodes. In the dialog the numer of nodes to be created can be set - in our case 11 nodes. Keeping the placement strategy Uniform works quite well. After clicking Finish, 11 new nodes should appear on the workspace. The first node (which will be our data sink) should be dragged to the center of the workspace (make sure to select the move-tool before) so the average distance to all the other mobile nodes will be minimal. Figure 2: Inspector with all modified global properties 7

3.1 Data sink 3.1 Data sink The data sink differs from the other (sensor) nodes only regarding mobility and its role in the 802.15.4 network. Therefore the following properties below Hierarchy(0) Nodes host1 Node Configuration explicitely have to be overridden: Mobility Mobility Model: None MAC Protocol MAC Protocol: 802.15.4 MAC Protocol MAC Protocol Device Type: Full Function Device The latter two settings are required to make the root node act as PAN Coordinator which is required in every 802.15.4 wireless network. The other nodes act as so called Reduced Function Devices (RFD). 3.2 Mobile sensor nodes No further changes have to be made for mobile sensor nodes although it s possible to tune various interesting parameters in later experiments, for example transmission power or energy model specifications. 3.3 Wireless subnet Until now all the nodes will only communicate on PHY and MAC layer. Therefore a wireless subnet has to be added to the scenario. The most convenient way to achieve this is selecting all hosts either using the rectangular- or the lasso selection tool. Then enable Network Components Wireless Network in the toolbar and click somewhere into the selected region. This will add a new wireless subnet and automatically attach all hosts to it. Now the PHY and MAC layer need to be configured by modifying some items below Hierarchy(0) Nodes Wireless Subnet N8-192.0.0.0 : Wireless Subnet Properties Radio Type Radio Type: 802.15.4 Radio Wireless Subnet Properties MAC Protocol MAC Protocol: 802.15.4 8

3.4 Traffic generators 3.4 Traffic generators The last important thing that is still missing in our scenario are traffic generators so that we can actually do some sensible simulations. For this select Applications CBR from the toolbar in the designer view. Via drag n drop it s possible to link all sensor nodes with the root node. Make sure to drag from sensor node to root node so that there s an unidirectional traffic to root node. After finishing the scenario looks like in figure 3. Figure 3: Final scenario with traffic generators 9

3.4 Traffic generators Finally the traffic generators have to be configured according to the scenario specifications. For each traffic generator in the inspector change the following properties below Connections CBR XX-1 : Items to Send: 30 Item Size (bytes): 2048 End Time: 0 Traffic type Data Size Fixed Size: 2048 As a last tweak the simulation time (ConfigSettings General Simulation Time) should be altered to 300 seconds as per default the simulation runs faster than realtime and thus would be finished just after a few seconds. Now the scenario should be ready to run. Figure 4: Inspector with properties of traffic generators 10

4. Running the scenario 4 Running the scenario There are various ways of running the scenario depending on the results you want to have. Every procedure has its own advantages and disadvantages. 4.1 Graphical animation To give an idea of how (in terms of quantitative) the scenario performs it can be run using the QualNet Animator. Figure 5 shows the Animator with the previously designed scenario in action. On the right side you can enable or disable various types of animations. In the Layers tab animations for each of the 7 OSI layers can be enabled or disabled individually. Figure 5: QualNet Animator in action The worst drawback of the QualNet animator is its extrem high CPU utilization and its implementation in Java which makes it run very slowly on most machines. 4.2 QualNet 3D Visualizer To bypass the performance limitations of the Animator you can use the QualNet 3D Visualizer which makes use of OpenGL accellerated graphic cards. It also allows various threedimensional views at the running scenario. In figure 6 and figure 7 typical 3D Visualizer sessions are shown. 11

4.2 QualNet 3D Visualizer Figure 6: 3D Visualizer Figure 7: 3D Visualizer with broadcasts enabled 12

4.3 Command line interface 4.3 Command line interface While offering a lot of easy-to-use graphical frontends, QualNet also brings a command line interface which is mainly useful if you re only interested in the actual statistical data of a simulation. When creating a scenario using the Designer, besides the project file a subdirectory with the same name is being created and contains various other files related to simulation. For using the command line interface the file <project name>.config is of importance. This config file is a standard text file and settings can be changed easily by just editing this file. To run the scenario described in a config file, the QualNet CLI can be run as follows: cd < path to scenario folder >/ < project name > < path to qualnet >/ bin / qualnet < project name >. config If not specified differently, this will generate a file called Qualnet.stat which contains all statistical data related to the simulation. It can be viewed using the QualNet Analyzer as described in the next chapter. 13

5. Analyzing the results 5 Analyzing the results The most interesting part probably is analyzing the statistical data generated during simulation. Depending on the configuration scenario statistics for all OSI layers can be viewed separately. Clicking the Analyzer tab at the top will bring up the QualNet Analyzer. Inside the subdirectory belonging to the current scenario there should be some files called Qualnet...stat - if not, the scenario hasn t been run before. Double clicking the according statistic file will open the Analyzer which allows you to browse through the statistics of the different OSI layers. Selecting items will show informative graphs such as shown in figure 8 and figure 9. Figure 8: Analyzer with chart of signals received and forwarded to MAC 14

5. Analyzing the results Figure 9: Analyzer with chart on AODV routing statistics 15

6. Conclusion 6 Conclusion Without having compared QualNet to other similiar solutions various advantages became apparent while using it. The most important ones are: easy-to-use and clear UI wide range of possible applications (even WiMAX MAC layer is supported) support for multiprocessor systems and distributed computing sophisticated animation capabilities extensive possibilities for analyzing scenario shipped with a lot helpful documentation and tons of example scenarios There re some disadvantages as well: difficult installation on Linux slow Java-based UI very expensive (couldn t find any specific figure) however there s a special QualNet University Program which - according to 5 - allows to get a license for about 3000 Euro per year. 5 ftp://ftp.tik.ee.ethz.ch/pub/publications/tik-report-255.pdf, page 11 16