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…

Tracegraph installation in Ubuntu 13.10 (64 bit)

Installing Tracegraph in Linux is always a challenge and that too in a 64 BIT operating System. This post will help the readers in installing the tracegraph comfortably in Ubuntu 13.10 (64 bit OS).

You may refer the older post too: http://www.nsnam.com/2013/02/how-to-install-tracegraph-in-64-bit.html

Ubuntu 13.10 is revamped with great features and also there are some limitations while installing 32 bit softwares in 64 bit OS.

So here are the steps in Installing Tracegraph in Ubuntu 13.10

  • Download the Tracegraph.tar.gz file and copy it to the /home/username folder
  • Enter the following commands one by one 
  • Untar it by entering the command, "tar xvzf tracegraph.tar.gz"
  • cd tracegraph202
  • ./trgraph  (if this command gives you ./trgraph command not found, the follow the next step)
  • sudo apt-get install  lib32z1 lib32ncurses5 lib32bz2-1.0 libxi6 libxtst6 libxrender1 libxtst6:i386 libXp6:i386 libXt6:i386
  • The above command will fetch various libraries from the internet sources and downloaded and then try ./trgraph (you can see three windows popping out as indicated in the figure)
Tracegraph
Tracegraph on Ubuntu 13.10

Don't forget to set the LD_LIBRARY_PATH for the shared object libraries as given below
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/username/tracegraph202/bin/glnx86/

If the path for NS2 is already set, the append this line to the existing LD_LIBRARY_PATH variable as given below
export LD_LIBRARY_PATH=/first/path:/second/path:/home/username/tracegraph202/bin/glnx86/



Popular posts from this blog

AWK Scripts for NS2 to process data from Trace Files

Xgraph

ns2 installation in Ubuntu 14.04