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…

VANET SImulator in Fedora 19 (32 bit) - SUMO and MOVE

Simulation of Urban Mobility (SUMO) along with MOVE is a software that helps in simulating  the VANETs.
SUMO is the software that does the mobility of nodes, edges, etc from the MOVE software.
Installation of SUMO and MOVE in Linux is always a challenging job.

This post tells the installation of both these softwares SUMO and MOVE

Installation of SUMO

  • In my case, I have used Fedora 19 (32 bit) OS. There are many problems in 64 bit version of Fedora 19, but 32 bit OS uses perfectly.
  • Execute the command one by one.
  • sudo yum update
  • sudo yum install perl libFOX-1.6.so.0  libGLU.so.1 libgdal.so.1 libproj.so.0 libxerces-c-3.1.so (this will install almost 30 MB of softwares downloaded from the internet)
Fedora 19
Fedora 19

  • Download the sumo software from http://download.opensuse.org/repositories/home:/behrisch/Fedora_19/i686/
  • there will be SVN versions and source files, but you can download ,  sumo-0.18.0-2.3.i686.rpm
  •  Once downloaded, open the terminal and give this command to install SUMO
  • sudo rpm -ivh  sumo-0.18.0-2.3.i686.rpm (this will install the SUMO Software without any errors)
See the Screen shot below
SUMO for VANET
SUMO for VANET


MOVE Installation

  • Download the MOVE Software from this link http://lens1.csie.ncku.edu.tw/MOVE/download.php (you may fill your particulars to download the software)
  • Once downloaded, execute this command in terminal to run the .jar file 
  • java -Xmx512m -jar MOVE.jar 
  • (this assumes that java is already there). For running MOVE.jar file, javac is not needed, just the java runtime environment is enough to run. Fedora 19 comes default installation of Java Run Time environment. 
  • Here is the screenshot after running the MOVE.jar file

MOVE VAnet
MOVE Software in Fedora


Popular posts from this blog

AWK Scripts for NS2 to process data from Trace Files

Xgraph

ns2 installation in Ubuntu 14.04