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…

NS2 projects with Source Code


Before shedding huge money for projects,  please go through the links which has source code along with how to execute the project.
The following projects are either taken from another website or from a open source hub and all the works are compatible with ns-2.35. It is a individual work done by me (T S Pradeep Kumar). For some projects, i lost the source code or its misplaced, but all these posts have detailed explanation that tells how to install these projects.  Also the source codes are provided from a google drive link.
(If any one have a source code and dont know to compile, please send it to me through my google+ link, I will compile for you and let you know the results).

This posts is suitable for PG students, Research scholars and Graduate students.


  1. Aqua Sim in NS2
  2. LEACH Protocol Installation
  3. Security Protocol as a packet (Agent/Security_packet)
  4. Adding a new agent and application in ns2
  5. AntNet (Ant colony Algorithm in ns2)
  6. SUMO and MOVE Example traffic Simulation (Do it yourself exercise, but a video is available)
  7. Routing Table printing in DSDV Protocol
  8. Routing table printing in AODV protocol
  9. Printing the Congestion window for TCP protocol
  10. TORA protocol in NS2
  11. Green Cloud Simulator in ns2
  12. Printing the Antenna threshold in propagation modes in ns2
  13. OLSR Protocol in NS2
  14. Mannasim - A Sensor network simulator in ns2
  15. AWK Scripts for performance calculation
  16. Energy Model in NS2
  17. Finding the node position, velocity and speed of the node while using AODV protocol
  18. Promiscuous mode in AODV 
These works takes more time and to support my effort, kindly donate me


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