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 (64 bit)

This post tells you how to install the ns3 version in Linux Mint 17 (64bit)- Long Term Support till 2019.

Preliminaries
The following development libraries are to be installed before trying ns3
$prompt] sudo apt-get update 
$prompt] sudo apt-get install build-essential autoconf automake libxmu-dev
$prompt] sudo apt-get install ia32-libs 
(the above software ia32-libs is needed only when you want to run the 32 bit applications inside a 64bit OS)

Now download the ns3 software from the website http://www.nsnam.org
I downloaded the version 3.20 (ns-allinone-3.20.tar.bz2).

Please do understand that ns2 is different from ns3 and they are not having any link between them (however, some network models were used in ns3 were adopted from ns2).
Also ns3 will run using the main() of C++ and also it has python bindings.

Here is the installation steps of ns3
1. copy the ns-allinone-3.20.tar.bz2 in the home directory(Ex: /home/pradeepkumar)
2. Set the following path information (type these commands one by one in the terminal or copy these lines in the /home/pradeepkumar/.profile)
export BAKE_HOME=`pwd`/bake
export PATH=$PATH:$BAKE_HOME
export PYTHONPATH=$PYTHONPATH:$BAKE_HOME
3. Open the terminal and issue this command one by one
$prompt] tar jxvf ns-allinone-3.20.tar.gz
$prompt] cd ns-allinone-3.20/
$prompt] cd bake
$prompt] ./bake.py configure -e ns-3.20
$prompt] ./bake check 
(This step will tell you the extra software that needs  to be installed)
$prompt] ./bake download (download the software)
$prompt] sudo apt-get install python-pygoocanvas python-pygraphviz python-dev qt4-default p7zip-full bzr cmake mercurial git cvs 
See the screenshot after the command ./bake.py check

bake.py check

see the screenshot after the command ./bake.py download
bake.py download
The above command will install the optional files that may need to run ns3 completely. And here is the complete build of ns3
$prompt] ./build.py --enable-examples --enable-tests
See the screenshot below for information
ns3 installation
T S Pradeep Kumar

Popular posts from this blog

AWK Scripts for NS2 to process data from Trace Files

Xgraph

LEACH protocol installation in ns2 (ns-2.35)