You are on page 1of 20

QualNet Tutorial

By- Punit Rathod

Outline
What is QualNet? Tools in QualNet Directory Structure of QualNet How to use QualNet
Graphical Interface Command Line

Analysis using QualNet Demo


10th Sep, 2005 2

Introduction
What is QualNet ?
Commercial Derivative of GloMoSim Java Based Graphical Interface C based implementation for protocols Event Based Simulator Modular Design MANET QoS Wired Networks Cellular Networks Satellite Networks
3

Support for various networks

10th Sep, 2005

Introduction
Advantages of QualNet
Rapid Prototyping Comparative performance of alternative protocols at each layer Built-in Measurements at each Layer Modular Scalable A Graphical tool to allow rapid system and protocol prototyping/modeling

10th Sep, 2005

Layered Model
Architecture Similar to the Physical Networks 2. Well defined API for the protocols to interact with each other Unit of Interaction: Message can either Packet or Timer
CBR / FTP / TELNET TCP / UDP IP OSPF / AODV 802.11 / 802.3 Bus / Point-2-Point Application Transport IP Network MAC Physical

Wired / Free Space

10th Sep, 2005

Tools Provided by QualNet


Animator
Graphical Experiment Setup and Animation

Designer
Finite State Machine (FSM) based custom protocol designer

Analyzer
Statistical graphical analysis tool for custom statistics

Tracer
Packet Level Tracing and Visualization
10th Sep, 2005 6

Installation
Prerequisites
C compiler
Windows: Visual C++ 6.0 with SP5 Unix: gcc

Java 1.3 or later QualNet License

Department QualNet License Server


prayog.it.iitb.ac.in 30 user License Can be accessed from 10.129.*.* subnet
10th Sep, 2005 7

Directory Structure
The Basic Directory Hierarchy
/bin /gui /main /docs /data /verification Executable Files GUI Basic Design and Makefiles Documentation Modulation and Terrain data files Sample files and Output

10th Sep, 2005

Directory Structure
Directories of use for modifications
/addons /phy /mac /network /mobility /transport Optional Packages Wireless Physical Layer & Propagation Models MAC layer Protocols Network layer and routing Protocols Mobility Models Transport layer Protocols (TCP/UDP) All flavors of TCP Trace based TCP applications (FTP, TELNET, HTTP) Application Layer Protocols & Traffic Generators
9

/tcplib

/application

10th Sep, 2005

Using QualNet
2 ways of using
Graphical Interface
Using QualNet Animator

Command line
Using text config files

10th Sep, 2005

10

Graphical Method
Use QualNet Animator Setup QualNet Parameters Place Nodes and set up Applications Create links Change Application, node and link parameters Animator Runtime Toolbar
Start, Pause, Stop, Step through the simulation

Choose simulation speed and animation detail Choose among the dynamic statistics available
10th Sep, 2005 11

Star Topology Example

10th Sep, 2005

12

Star Topology Example

10th Sep, 2005

13

Star Topology Example

10th Sep, 2005

14

Star Topology Example

10th Sep, 2005

15

Star Topology Example

10th Sep, 2005

16

Star Topology Example

10th Sep, 2005

17

Command Line Method


Create .config file using the template default.config given in /bin folder Add nodes, applications and links in the config file Run Simulation using the command "qualnet <expt-name>.config"

10th Sep, 2005

18

Input & Output files


Input Files
Each file has name <expt-name>.extension .config : General Simulation Parameters configuration .nodes : Nodes in the Network to be simulated .app : Applications Configuration .fault : Probabilistic Faults in a Node .routes : Routing Entries

Template for the configuration files available in /bin directory


Example configuration entry for FTP Flow FTP <src> <dest> <# items> <size> <start_time> FTP 1 2 10000 512 1.5S
10th Sep, 2005 19

Input & Output files


Output Files
.stat
Statistical Data (Summary)

.trace
Packet Traces (can be read by QualNet Tracer)

Specific Trace Dumps (TCP)


tcptrace.dmp tcptrace.asc tcptrace.out

10th Sep, 2005

20