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…

Simulation of Urban Mobility (SUMO) in Ubuntu 12.04

This post will tell you how to install SUMO 0.12.3 version in Ubuntu 12.04 LTS. Also this post will tell you how to use MOVE for generating VANETs Simulation scenario.

OS Used: Ubuntu 12.04 LTS (64 bit)
Sumo Version : 0.12.3
MOVE.jar (For this to work, Java runtime environment to be installed)
(Also MOVE.jar will support only SUMO 0.12.3). The latest version of SUMO (at the time of writing this post) is sumo 0.21.

Points to be noted:

  • Its always better to use the latest software, but to begin with SUMO needs XMl files are roads, edges, vehicle routes, etc. So MOVE.jar file is just helping in creating the xml files needed by SUMO. But the recent versions of SUMO (0.21) and etc, the XML files are to be generated manually by means of any external xml editors or simply using gedit or vim.
  • Also, the Ubuntu package manager comes default with sumo and sumo-gui command (that can be installed using the command sudo apt-get install sumo , but the python scripts like randomTrips.py, traceExporter.py etc may not work for creating the routes, vehicles, etc. So compiling from the source is the best option for  installing SUMO in Ubuntu.
Steps to install sumo-0.12.3 in Ubuntu 12.04
2. Download MOVE.jar from this location: http://lens1.csie.ncku.edu.tw/MOVE/download.php
2. Execute the following commands one by one 
$] sudo apt-get update
$] sudo apt-get install build-essential autoconf automake libxmu-dev default-jre g++-4.4 libproj-dev libgdal-dev libxerces-c2-dev libfox-1.6-dev
$] export CC=gcc-4.4 CXX=g++-4.4 
$] ./configure
$] make
$] sudo make install
See the screenshot below for successful installation of sumo and sumo-gui. Now you can create the simulations using MOVE and SUMO. 
sumo
sumo

sumo-gui
sumo-gui
Installation of MOVE
MOVE is a software that runs using java run time and helpful in creating the xml files for SUMO. This can be running using the command 
$] java -jar MOVE.jar
Here is the screenshot of all the three windows for MOVE.
move
MOVE
Thats all about the MOVE installation. My next post will be about the creation of xml files using MOVE and to generate traffic files for NS2.

Please pour in your comments for SUMO or MOVE installation. I have created a Virtual image OS for running the SUMO, MOVE and NS2 (if anybody wants the Virtual Image separately, contact me through the comment section or through google plus. I may send you the DVD by Courier after paying the nominal charges)

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