Queuing Models in NS2

Image
M/M/1 is a system with poisson arrival time, servicing exponentially and a queue of unlimited capacity and type of FIFO Queue. This is the simplest queuing system.  NS2 supports various distributions like pareto, exponential, constant, unifrom, etc to handle the network dynamics and metrics. So it is very easy to test the given network link to monitor a given queue using any of these queuing models. The listing 3 and 4 are monitoring the link when DropTail queue is used with a capacity of finite and infinite. Listing 13.3 uses infinite capacity and Listing 13.4 uses Finite capacity The output screen shot is shown below the scripts for further understanding
Listing 3 – M/M/1 Queuing Model #new Simulator creation set ns [new Simulator] #trace file creation for capturing the UDP data set tf [open out.tr w] $ns trace-all $tf
#setting the exponential distribution param set lambda 30.0 set mu     33.0
#creation of nodes set n1 [$ns node] set n2 [$ns node] #The queue limit is 1Lakh as the capacity is infin…

NS3 installation in Linux Mint 17.1

This post shows you how to install ns3 (ns-3.21) in Linux Mint 17.1

OS Used: Linux Mint 17.1 or Ubuntu 14.04
NS3 verion: 3.21


  • Download the software ns3 from http://www.nsnam.org
  • Assuming you have done the linux installation just now, execute the following commands one by one
  • $] sudo apt-get update
  • $] sudo apt-get install build-essential autoconf automake libxmu-dev cvs git cmake bzr mercurial python-pygoocanvas python-pygraphviz p7zip-full NetAnim
Once the above softwares are installed, execute these commands
$] tar jxvf ns-allinone-3.21.tar.bz2 
$] cd ns-allinone-3.21/
$] ./build.py --enable-examples --enable-tests
and this will take more than 10 minutes to install everything, till that time wait. 

Once the installation is done, open an example and check whether its working or not

$] cd ns-allinone-3.21/ns-3.21 /
$] ./waf --run hello-simulator
The output should be displayed as hello-simulator, if this is not working, then ns3 was not installed successfully.
Here is a video that showcases the installation of ns3.

T S Pradeep Kumar

Popular posts from this blog

AWK Scripts for NS2 to process data from Trace Files

Xgraph

ns2 installation in Ubuntu 14.04