Skip to main content


Showing posts from November, 2019

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…

Flow Monitor in ns3

Flow Monitor - ns3

Flow monitor is a powerful too that identifies the performance characteristics of networks

Flow Monitor
Already there are some examples within ns3. We will be using one example called as
and another example called as

Check the Video for complete instructions:

Download all the source Codes here:

Step 1: Copy the above files from examples/tutorial/ and move it to scratch/ folder

Copy from examples/routing/ and move it to scratch/

Step 2: Include the code relevant for flow monitor.
There are two header files to be included

#include "ns3/flow-monitor.h"
#include "ns3/flow-monitor-helper.h"

Include the following lines above the Simulator::Stop()
// Flow monitor
Ptr<FlowMonitor> flowMonitor;
FlowMonitorHelper flowHelper;
flowMonitor = flowHelper.InstallAll();

include the follwing line after the Simulator…

Installing TexLive 2019 in Ubuntu 18.04

Installation of TexLive 2019 in Linux (Ubuntu 18.04 LTS)
TeX (Tech)

Installation of TexLive 2019

Please watch the video for full installation

I used .iso file to download, the Total size is 3.3GB for Linux,

and i used the torrent file to download, it took me just 20 min to download the entire .iso file

Extract the .iso file to a folder and open a terminal

$] sudo ./install-tl
(it goes into a terminal mode, which is faster compared to the GUI Mode)

$] sudo ./install-tl -gui
after the installation, set the PATH, MANPATH and INFOPATH as suggested by LATEX

export PATH=$PATH:/usr/local/texlive/2019/bin/x86_64-linux
export MANPATH=/usr/local/texlive/2019/texmf-dist/doc/man
export INFOPATH=/usr/local/texlive/2019/texmf-dist/doc/info

put these lines in to the /home/pradeepkumar/.bashrc

$] gedit /home/pradeepkumar/.bashrc
We have installed TexLive 2019 and texstudio.

To install texstudio

$] sudo apt install texstudio
The look and feel of TexStudio looks like this image.

texlive, it install everything a researcher…

Histogram plotting using Gnuplot

Gnuplot to plot histograms
To plot histograms using Gnuplot, please follow the steps given below. Gnuplot supports various techniques on historgrams like

ClusteredRowStackedColumnStackedetc.Use the following video to watch the complete steps and description
Steps for Gnuplot

Part 1 - Gnuplot (Already In my youtube Channel)
Part 2 - Histogram

Step 1: Create a Data File
Air Quality Index for famous cities across the world.

#Filename is:
Chennai 323 278 567
Turkey 890 765 456
Andorra 7 7 98
Palestine 70 67 56
Bulgaria 159 123 100
China 677 478 123
Netherlands 52 76 43

Step 2 : Write the GNU COde.

#filename: gnucode.txt
set terminal pdf
set output "aqi.pdf"
set title "Air Quality Index"
set style data histogram
set style fill solid
set style histogram clustered
plot for [COL=2:4] "" using COL:xtic(1) title "AQI"

The following is the output in the pdf file that is generated within the same folder

Store both the above files in one folder