Queuing Models in NS2

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…

Thanks for visiting

If you have donated us, Thanks for your Donation. If not please click the link which is the right side of this page and Donate Us.

About NSNAM.com
This website showcases various network simulators like ns2, ns3, omnet, etc and their allied softwares mainly for research and development.
Some of the Tools listed below (You can find more information about these tools by visiting my blog http://www.nsnam.com)

  • Network Simulator 2 (NS2)
  • Network Simulator 3 (NS3)
  • OMNET++ 
  • Tracegraph (A graphing software that understands the tracing format generated from ns2)
  • xgraph (A third party graphing software that plot characteristics)
  • Linux (Open Source)
  • Open Source Technologies
  • IOT (Internet of Things)
  • C/C++
  • Errors and exception handlings of these above softwares
  • Installation of these softwares, their customisation and also 
  • Source Codes along with video lectures of these software are listed in this website,
Each post is individually created by T S Pradeep Kumar and hours of time is being spent on creating these codes. More than 25% of the research in computing science involves the networking research and that too uses simulators. 
So do not copy our codes and republish elsewhere, all the contents were either original or reproduced from elsewhere (by giving credits to the authors). 

From March 2014, giving the complete source code to the readers is restricted, since some mediators uses our code and sell it to the others. But these codes can be created by the readers themselves by going through my video tutorials or the text materials given in my blog. 

Still if you need it, you can purchase it at a cost of  US$20 by giving a request to acadprj at gmail dot com.

So read, exploit and cherish from my blog !!!!!

Popular posts from this blog

AWK Scripts for NS2 to process data from Trace Files


ns2 installation in Ubuntu 14.04