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…

A Text book for OMNeT++ (Learning OMNeT++)

This post is for the nsnam.com readers particularly those who want to learn OMNeT++. As you aware, ns2 and OMNeT++ are two software that are freely distributed and available to academics for almost free of cost.

However, when dealing with the documentation, both suffers a set back. NS has a documentation and still researchers across the world have their own way of learning. And OMNeT++ has a proper documentation, that is very huge and takes times to understand.
Packt Publishing has published a book in OMNeT++ authored by Thomas Chamberlain
You may refer the following website for http://www.packtpub.com/

Omnet++
OMNeT++
You can also learn: http://www.nsnam.com/2013/12/installation-of-omnet-in-linux-mint-16.html
This book is organized in the following chapters.

  • Getting started with OMNeT++
  • Installing OMNeT++
  • OMNeT++ Simulations 
  • Creating and Running simulation
  • Learning from your simulation
There are just 5 chapters that are just enough for a beginner to get a grip in understanding  OMNeT++. Also the book contains just 102 pages and one can learn this book within a day or two.


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