Skip to main content

Posts

Greedy Perimeter Stateless Routing (GPSR) protocol in ns3

GPSR - Greedy Perimeter and Stateless Routing Please watch the following video for Full details. VANETs - Vehicular Adhoc NEtworks. PA GPSR, MM GPSR and GPSR. Under and post graduate - You can use the modules as it is and compare these protcols for VANETs. If you are a PhD scholar, you can modify the protocols and design your own GPSR alternatives. In this video, we will be seeing the installation of GPSR and some source codes. ns-3.27 which i could not succeed, So I prefer going to ns-3.23 we can both multiple version of ns3. I am going to run ns-3.23 for GPSR and other simulations with ns-3.27 and ns-3.29 Welcome to the Installation. If you are installing ns3 for the first time, install the following packages. (You can copy paste) $] sudo apt install build-essential autoconf automake libxmu-dev  python-pygraphviz cvs mercurial bzr git cmake p7zip-full python-matplotlib python-tk python-dev python-kiwi python-gnome2 python-gnome2-dev qt4-dev-tools qt4-qm...

Installing Kali Linux 2019 along with Windows 10

Kali Linux along with Windows 10 Kali Linux 2019. For Detailed Instructions: Please follow the Video Link Step 1: Have a pen drive or USB Drive of minimum 8GB (16GB Pendrive) Format it to FAT32 Partition. Step 2: Check your Disk Drive Properties. MBR or GPT Master Boot Record, GPT- GUID Partition Table. See the following image, It shows the partition style as "Master Boot Record" Master Boot Record Step 3: Download bootable Software (RUFUS). Its a powerful USB bootloader creator software. rufus works only with windows. See the following image for rufus window. Use of DD Mode is preferred instead of ISO Model for Kali Linux (Else you might get an error like CD ROM Detection during installation...). Use dd MODE as given in the following figure Rufus Selection of DD or ISO Method. Step 4: Reboot the system and bring the bootloader. Rebooting now... Step 5 : Press F12 or ESC or F1 as per the Laptop model you have. There will be two options: USB HDD or EFI...

TORA Protocol in NS-2.35 (NS2)

This post tells you how to enable the TORA (Temporally ordered routing Algorithm) protocol in Network Simulator 2 (ns-2.35) TORA is a protocol in wireless adhoc networks that works with timing parameters. NS-2.35 comes with the TORA protocol by default but it has to be tweaked manually to make it run. This post will help you to do that. You can watch this video for detailed instructions: Step 1: Generate a Scenario for TORA protoco using NS2 Scenario Generator NSG Software. We have created a tcl file using NSG2.1.jar $] java -jar NSG2.1.jar Three files have to be modified ~ns-2.35/tora/tora.cc ~ns-2.35/tora/tora.h ~ns-2.35/imep/imep.cc There are various websites that tells you how to configure TORA by making changes to the above three files.  Change 1: tora.h In the tora.h file, go to the end of the File before the agent completes, include these two lines #include <classifier/classifier-port.h> protected: PortClassifier *dmux_; Tora...

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 third.cc and another example called as manet-routing-compare.cc Check the Video for complete instructions: Download all the source Codes here: https://drive.google.com/drive/folders/14B7QtvAgaiDvBtf-cn8R_mseUYorWkRN?usp=sharing Step 1: Copy the above files from examples/tutorial/third.cc and move it to scratch/ folder Copy manet-routing-compare.cc 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...

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. TexStudio texlive, it in...

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 Clustered RowStacked ColumnStacked etc. 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: aqi.data 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] "aqi.data" using COL:xtic(1) title "AQI" The following is the output in the pdf file that is generated within the...

Routing in VANETs using ns3

Part 1 WAVE - Wireless Access for Vehicular environments. vanet-routing-compare.cc It might take more than an hour. The readers are requested to be patient. SUMO, VANETs, routing comparison 1. Explain the full source code (1550 lines of code) 2. Creating a real scenario using osm (Open Street Map Web Wizard) 3. Performance analysis for various vanet protocols. https://www.nsnam.com Location of the source code /home/pradeepkumar/ns-allinone-3.27/ns-3.27/src/wave/examples Move this file to the scratch/ for inclusion of all modules. Step 1: Explanation of source code. Copy the file to scratch folder. This is just Part 1 of the VANET comparison Part 2 Please watch the First Part before watching this video   https://www.youtube.com/watch?v=IJYeIpUqjQI&t=850s Part 2 - Analysis of the results. Please go through the first video (Part 1) and then watch this video (PArt 2) #VANETs #NS3 #Routing 1. SUMO for web traffic (osmWebWizard.py) ...