Skip to main content

Posts

Showing posts from November, 2013

MANET Routing Protocols using ns3

#AODV #OLSR #MANETs #DSDV #DSR

Download the Code here: 
https://drive.google.com/open?id=1OkVOsifjN9UfQjPGvfR7OuS-x_GBRgCV

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


Comparison of MANET routing Protocols 1. AODV
2. DSDV
3. DSR
4. OLSR
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

https://www.nsnam.com 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:
/home/networks/ns-allinone-3.29/ns-3.29/examples/routing/manet-routing-compare.cc

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…

OLSR protocol in NS-2.35 (ns2)

OLSR protocol is called as Optimized link State routing protocol and is defined by http://tools.ietf.org/html/draft-ietf-manet-olsr-03
The OLSR is available as a patch for ns2 for various versions. There is a new version UM-OLSR patch in the given link below.

OS Used: Linux Mint 14 and Ubuntu 12.10

The following files are modified in ns-2.35 for OLSR
~ns-2.35/Makefile.in
~ns-2.35/common/packet.h
~ns-2.35/queue/priqueue.cc
~ns-2.35/tcl/lib/ns-agent.tcl
~ns-2.35/tcl/lib/ns-default.tcl
~ns-2.35/tcl/lib/ns-lib.tcl
~ns-2.35/tcl/lib/ns-packet.tcl
~ns-2.35/trace/cmu-trace.cc
~ns-2.35/trace/cmu-trace.h

Download the OLSR File here (the original OLSR may contain some bug, so download from this location for bug free OLSR Code)
Copy the file from ns-modified files/ to the corresponding location

Ensure that you have a fresh installation of ns-2.35 (else pasting these files will overwrite the information what you have earlier)

The zip file also has a patch file that can be patched for various ns2 v…

VANET SImulator in Fedora 19 (32 bit) - SUMO and MOVE

Simulation of Urban Mobility (SUMO) along with MOVE is a software that helps in simulating  the VANETs.
SUMO is the software that does the mobility of nodes, edges, etc from the MOVE software.
Installation of SUMO and MOVE in Linux is always a challenging job.

This post tells the installation of both these softwares SUMO and MOVE
Installation of SUMOIn my case, I have used Fedora 19 (32 bit) OS. There are many problems in 64 bit version of Fedora 19, but 32 bit OS uses perfectly.Execute the command one by one.sudo yum updatesudo yum install perl libFOX-1.6.so.0  libGLU.so.1 libgdal.so.1 libproj.so.0 libxerces-c-3.1.so (this will install almost 30 MB of softwares downloaded from the internet)
Download the sumo software from http://download.opensuse.org/repositories/home:/behrisch/Fedora_19/i686/there will be SVN versions and source files, but you can download ,  sumo-0.18.0-2.3.i686.rpm Once downloaded, open the terminal and give this command to install SUMOsudo rpm -ivh  sumo-0.18.0-2.…