Skip to main content

Posts

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) ...

VANETs using NS3 - Part 1

VANETs using Ns3 and SUMO - Example 1 SUMO, open street maps and VANETS using ns2. VANETs, SUMO, ns3 and open street Maps. sumo software - Install this software, refer my previous video sumo 1.2.x Check the following video for full instructions. Compile it from the source. Download sumo.1.2.x....tar.gz git clone command.... Softwares used: ns-3.29 sumo 1.2.0 OSM - Open street Map (osmWebWizard.py) Step 1 $] cd sumo/tools $] python osmWebWizard.py Select the cars, buses, motorcycles, etc. and generate the scenario, sumo-gui automatically pops up. Step 1: Create the Sumo-gui or Sumo configuration file using the above method. Step 2: Create the mobility.tcl Step 3: run the ns2-mobility-trace.cc file with nodeNum, duration, logFile, etc. Step 4: Include the NetAnim Code and run the simulation. Step 2: Mobility.tcl file (How to create) $] sumo -c osm.sumocfg --fcd-output trace.xml $] cd && cd sumo/tools $] python traceExporter.py -i trace.xml...

Installation of SUMO 1.2.0 in Ubuntu 18.04

SUMO (Simulation of Urban Mobility) Software Installation for VANETs Traffic Modeling, Vehicular Connectivity Network Modeling. Please watch the below video for full instructions on how to install. $] sudo apt update $] sudo apt-get install cmake python g++ libxerces-c-dev libfox-1.6-dev libgdal-dev libproj-dev libgl2ps-dev swig Step 1: Prerequisities (download all the dependencies) $] sudo apt update $] sudo apt-get install cmake python g++ libxerces-c-dev libfox-1.6-dev libgdal-dev libproj-dev libgl2ps-dev swig Step 2: Download SUMO $] sudo apt install git  $] git clone --recursive https://github.com/eclipse/sumo step 3 - Setting the path $] export SUMO_HOME="$PWD/sumo" Step 4 - Cmake build $] mkdir sumo/build/cmake-build && cd sumo/build/cmake-build $] cmake ../.. $] make -j8 Thanks for watching!!!  Subscribe and Share it to your friends.  www.nsnam.com

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 ...

NAM and XGraph Installation in Ubuntu 18.04

This post helps you in installing nam and xgraph in ubuntu 18.04. Mandatory steps before proceeding the following installation $] sudo apt update $] sudo apt install build-essential autoconf automake libxmu-dev $] sudo apt install gcc-4.8 g++-4.8  Installing ns2 on Ubuntu 18.04 (Refer this detailed instructions) ns2 uses gcc-4.8 as c compiler and g++-4.8 as C++ Compiler ns2, nam and xgraph all these softwares were comfortable with 4.8 version so wee need to change these settings inthe Makefile.in We have to modify at three locations; 1. ns-2.35/Makefile.in 2. nam-1.15/Makefile.in 3. xgraph-12.2/Makefile.in Change as per the following in the above three files. @CC@ --> gcc-4.8 @CPP@ --> g++-4.8 ns-2.35/linkstate/ls.h  line nuber 137, change erase to this->erase Set the PATH and LD_LIBRARY_PATH in /home/networks/.bashrc file as per the video shown below. we have installed ns2, nam and xgraph in the OS Ubuntu 18.04 Subscribe to Engi...

Wired Cum Wireless Network Simulation - NS2 Tutorial 22

Today Session on Wired Cum Wireless Networks using ns2. You can watch the following lecture before understanding this lecture. Watch Wireless Networks - https://www.youtube.com/watch?v=ws6kCbhdrWw Watch Wired Networks - https://www.youtube.com/watch?v=FS0jnfNCwBA https://www.youtube.com/watch?v=1_KeTTFsrt0 Number of Wireles snodes is 7 Wired nodes - 2 Accesspoint or Base Stations - 2 Watch the full video for this example this example is already avaialble in tcl/ex folder. The same example I have taken but modified to my design... How to generate Scenario and Traffic generation (connection Pattern) To generate the connection pattern, here is the steps Open the terminal and go to the folder $] cd /home/pradeepkumar/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen and run this command $] ns cbrgen.tcl -type tcp -nn 7 -seed 1 -mc 20 -rate 0.001  for 7 nodes, type of traffic is TCP, random seed is 1, maximum connection is 20 and the rate is 1ms or 0.001 ...

Ns2 and Ns3 Video Tutorials with Free Source Code

This post shows you the way to download, learn and watch source  codes and their working in ns3 and ns2. Everyday thousands of visitor visits this blog and search for source code and explanation. Since 2011, the blog is delivering information across the globe. Now this era is on Videos and online tutorials. nsnam is happily created a Video Channel called " Engineering Clinic " in Youtube and deliver video lectures with free source codes for all applications. Engineering Clinic Subscribers of this blog are requested to subscribe to the video channel given below https://www.youtube.com/tspradeepkumar  Here are some Playlists that are important to the viewers of this blog. NS2 Tutorials -  https://www.youtube.com/watch?v=jRS0-hNk-Gw&list=PLX6MKaDw0naZBi0R-6_IAuYA9Yk_yuyXp NS3 Tutorials -  https://www.youtube.com/watch?v=LPOl81VIDG4&list=PLX6MKaDw0naZILVYjo8_quA4JI8Jz-idL IoT Tutorials -  https://www.youtube.com/watch?v=MRTJdC4ye9A&li...