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…

Compiling Contiki OS from Source - an IOT Perspective

Installation and usage of Instant Contiki OS is already featured in my blog post. 

This post tells you how to compile contiki OS from source and make use of the maximum benefit of IOT.

Internet of Things is a new word in the technology and every corporate to healthcare talks about this. Being a researcher or a learner, the first step towards the learning of IOT starts with implementing an application. In this context, Contiki OS with cooja is a framework that can be installed in Linux to program sensor motes for any IOT application.

OS Used for testing: Ubuntu 14.04.3

Assuming you installed Ubuntu, here are the commands you can try now

$] sudo apt-get update
$] sudo apt-get install build-essential binutils-msp430 gcc-msp430 msp430-libc libncurses5-dev openjdk-7-jre openjdk-7-jdk avrdude avr-libc gcc-avr gdb-avr binutils-avr mspdebug msp430mcu autoconf automake libxmu-dev





contiki
Contiki OS

Once installed, download the contiki OS from Github.
https://github.com/contiki-os/contiki/releases
There are various releases, the latest one being contiki-3.0, but if you have sensor motes of more than 2 or 3 years old, then you may prefer contiki-2.7

Once downloaded, unzip the contents of contiki

$] tar zxvf contiki-2.7.tar.gz 
$] cd contiki-2.7/tools/cooja
$] ant run 
This will open the cooja window (Which is based on eclipse editor) and you can start working on the project. See the screenshot below

cooja
Cooja
If you are planning to use contiki of older version and newest version, there is not need to download any additional dependencies. You can simply download the tool and use the ant run command to open Contiki.
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