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…

About nsnam.com

This website nsnam.com is hosted for showcasing the network simulators like ns2, ns3, omnet++ and their supporting tools.

Often I get queries like why are you showcasing only installation instructions of various softwares and not the source codes for various protocols, etc.  Also I used the idea of some other websites and post those codes here in my website.  Here is my justification for these questions

  • NS2, NS3 is open source softwares and only the software is free, but the support is pricey. But i do the support also free (so far). I never charged a single penny for anyone whom i have helped online. 
  • Initially i developed this website for my students to get to know the information related to ns2, Most of the users of the world first try to install ns2 and only then they started practicing. My website nsnam.com will help them in the first step to install, to run simple scripts and progress
  • I used some of the codes given by my students to compile it on a new OS, once I tried that, I try to record it and post it in my blog. (But some third party companies take the code and sell it to students (that's quite normal) and later if they found any errors, they divert to me for any errors or bugs in the program (which I don't like). So I stopped posting the workable source codes of ns2, still most of the codes are freely available in ns2 that were compiled once in a older versions of ns2 (ns 2.1, 2.26, etc)... 
  • But I do help lot of students across the globe through Facebook, Google+ or @tspradeepkumar any social media and I help them in sharing the source codes (what i develop or the codes some others developed and recompiled in latest version of ns2). So I do help the student community outside this blog.
Also I place Google Adverstisements (Adsense codes) to pay for the adwords and to pay the domain hosting and registration charges. Since everything is free,  I place ads to compensate my hosting charges. 

Also if you want to donate through paypal, here is the link
So, I wont stop sharing information to my readers. I feel "Information is Wealth" 

Popular posts from this blog

AWK Scripts for NS2 to process data from Trace Files


ns2 installation in Ubuntu 14.04