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…

Installing NS-2.35 in Fedora 20 (64 bit)

Installing ns2 under Fedora 20 is same as Fedora 19. However, there are some slight changes in the installation pattern.
Refer to this post for downloading the ns2.35 software and pre installation steps:

http://www.nsnam.com/2013/09/installing-network-simulator-2-ns-2-35-in-fedora-19.html

Steps for Fedora 20

During the software customization in Fedora 20, I have selected all the softwares in GNOME Desktop. So I did not tried the following command. However, if you have installed Fedora 20 with default set of softwares, there here is the step to install all the developmental libraries.

$prompt] yum install tcl tk gcc-c++ libX11-devel libXt-devel libXmu-devel 

You need to change the file ns-2.35/linkstate/ls.h file as specified below.
in Line number 137, change erase( to this->erase

 
The installation will report an error if the above change is not made.

Once installed, set the PATH in /home/pradeepkumar/.bash_profile file, in my case here is my path information.

PATH=$PATH:$HOME/.local/bin:$HOME/bin:/home/pradeepkumar/ns-allinone-2.35/bin:/home/pradeepkumar/ns-allinone-2.35/tcl8.5.10/unix:/home/pradeepkumar/ns-allinone-2.35/tk8.5.10/unix
 

export LD_LIBRARY_PATH=/home/pradeepkumar/ns-allinone-2.35/otcl-1.14:/home/pradeepkumar/ns-allinone-2.35/lib
Here is the screenshot of my file
ns-2.35 in fedora 20
NS2 in Fedora 20

 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)