Skip to main content

Posts

Showing posts from November, 2020

Installing ns-3.37 and ns-3.35 in Ubuntu | Ubuntu 22.04 | NS3

Multiple Versions of ns3 in Ubuntu 22.04 In this post, we are going to install two versions of ns3 namely ns-3.35 and ns-3.37  My OS is : Ubuntu 22.04 LTS (Long Term Support) ns-3.35 uses waf and (./waf --run scratch/first)  ns-3.37 uses cmake  (./ns3 run scratch/first.cc) So we will install both the packages  Go through the video for complete instructions To start with  $ sudo apt update  $ sudo apt install build-essential autoconf automake libxmu-dev g++ python3 python3-dev pkg-config sqlite3 cmake python3-setuptools git qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 openmpi-bin openmpi-common openmpi-doc libopenmpi-dev autoconf cvs bzr unrar gsl-bin libgsl-dev libgslcblas0 wireshark tcpdump sqlite sqlite3 libsqlite3-dev  libxml2 libxml2-dev libc6-dev libc6-dev-i386 libclang-dev llvm-dev automake python3-pip libxml2 libxml2-dev libboost-all-dev  I have downloaded both the versions of ns3 fr

Flying Adhoc Network Simulation (FANET) using NS3

In this post, we will see how to simulation a Flying Adhoc Network (FANET) simulation using NS3.  Its actually MANET with 3D mobility Model called Gauss Markov Mobility Model.  See the following video for more details and explanation: So all the nodes are flying in a 3D Fashion with X axis, Y Axis and Z Axis  The default values of the three axes are  X axis can be (-100m, 100m) Y axis can be (-100m, 100m) Z axis can be (0m, 100m) We will take the following example for experimenting the Flying Adhoc Networks. To begin with, We use the following parameters for Simulation: The name of the File is fanetex.cc #include "ns3/point-to-point-module.h" #include "ns3/ipv4-global-routing-helper.h" #include <fstream> #include <string> #include "ns3/core-module.h" #include "ns3/network-module.h" #include "ns3/applications-module.h" #include "ns3/mobility-module.h" #include "ns3/config-store-module.h" #include &quo

Installing NS-3.31 in Ubuntu 20.04

Installing ns-3.31 in Ubuntu 20.04 - 64 bit OS. Follow the full video for more details: Fresh installation of Ubuntu OS  $] sudo apt update $] sudo apt install build-essential autoconf automake libxmu-dev $] 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-desktop qt4-dev-tools qt4-qmake qt4-qmake qt4-default gnuplot-x11 wireshark extract to /home/pradeepkumar $] echo $HOME $] cd ns-allinone-3.31/ $] ./build.py --enable-examples --enable-tests you will get the following screen after the installation $] cd ns-allinone-3.31/ns-3.31/ $] ./waf --run hello-simulator  This will display  "Hello Simulator"  Which indicates that ns3 is installed successfully. $] ./waf --run first