Skip to main content


Showing posts from September, 2012

MANET Routing Protocols using ns3


Download the Code here:

Check the Video for Detailed instruction and how to use the plots, graphs and source code.

Comparison of MANET routing Protocols 1. AODV
3. DSR
using NS3 (Network Simulator 3)
B.Tech, M.Tech, PhD...
1. Reactive Vs Proactive routing
2. PErformance comparison of MANET protocols
3. AODV Vs DSDV Comparison and also at my channel.

What Version: ns-3.29
My Ubunut OS is: Ubuntu 18.04

This file we are going to use for our simulation:

Once you under stand the code, now lets run this example

Step 1: Copy the above file in to ~ns-3.29/scratch/ folder

Step 2: Understand this code.
Step 3: Run this code
Open the terminal, Go to ns-3.29 and run the following command

$] ./waf --run scratch/manet-routing-compare

enable the following header file

#include "ns3/flo…

Wireless Node Configuration in Network Simulator 2 (NS2)

The node configuration in ns2 is a special task in which the number of nodes can be configured for a set of parameters. The following table tells about the node  configuration parameters as defined in the ns-lib.tclThe readers are requested to refer the ns-lib.tcl file for more information.OptionAvailable ValuesRemarksaddressTypeflat, hierarchichalMPLSON,OFFMulti protocol Label SwitchingwiredRoutingON, OFFllTypeLL, LL/SatLink LayermacTypeMac/802_11, Mac/Csma/Ca, Mac/Sat, Mac/Sat/UnslottedAloha, Mac/TdmaMedium Access ControlifqTypeQueue/DropTail, Queue/DropTail/PriQueueInterface Queue typephyTypePhy/wirelessPhy, Phy/SatPhysical Layer TypeadhocRoutingDIFFUSION/RATE, DIFFUSION/PROB, DSDV, DSR, FLOODING, OMNIMCAST,AODV,TORA,PUMAadhoc routing protocolpropTypePropagation/TwoRayGround, Propagation/ShadowingPropagation TypeantTypeAntenna/OmniAntenna, Antenna typeChannelChannel/WirelessChannel, Channel/SatChannel to be usedmobileIPON,OFFto set the IP for Mobile or notenergyModelEnergyModelener…

Tracegraph - a graphing software to plot the trace files from NS2

Tracegraph is a third party software helps in plotting the graphs for NS2 and other networking simulation softwares. But the sad point is the software is not maintained by anyone and the happiest point is the software works fine still and it is free. You may download the tracegraph software from these locations.For windows: Linux : are actually two files one with the matlab runtime library file and other is the original software tracegraph.Tracegraph when opened, it opens 3 windows, one window to select the trace file (.tr) that was created by NS2 (depending on the size of the trace file, the processing time also varies)Second window is the main window in which you can see the graphs for various performance characteristics like throughput, End to End Delay, jitter, etc in 2D and 3D facillity. Even it can plot the histo…

proc directory in Linux

If by any chance, if you want to know about the processor, memory, IO Memory, Ports, etc about the system/CPU. Then you can look into the folder /proc in Linux. There are various files that tells you the information about the CPU.
Some Examples
if you want to know about the CPU Information, go to the terminal and try this
# cat /proc/cpuinfo
For memory information
# cat /proc/meminfo
For IO Memory information
# cat /proc/iomem
if you want to see how long the system is up can be seen using the file uptime
# cat /proc/uptime
(The above will list two numbers, one being the uptime of the system and other being uptime for all the cores of the processor)
and other information like scheduling, filesystems, etc can be seen from the /proc folder