Skip to main content

Posts

Showing posts from April, 2021

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

BonnMotion - A mobile scenario Generator Tool

BonnMotion is a tool that generates scenario for ns2, ns3, qualnet, etc. This will comfortably work with Linux. And in windows, there could be some bugs. Please refer the documentation here: h ttp://sys.cs.uos.de/bonnmotion/doc/BonnMotion_Docu.pdf To use this tool for ns2, here are the steps. Step1 : Download the BonnMotion tool from this website Step 2: Unzip it to home folder (/home/pradeepkumar in my case) step 3: Here are the commands to install $] unzip -d bonnmotion-2.1.3.zip $] cd bonnmotion-2.1.3/ $] ./install  The above command will install, if any packages are missing for dependencies, please install it. $] Once installed, copy the bonnmotion-2.1.3/bin/bm file to /usr/bin/ for running it anywhere. if not go to bin folder using the command given below $] cd bonnmotion-2.1.3/bin/ To run BonnMotion $bonnmotion-2.1.3/bin] ./bm -hm  (this will list all the models) $bonnmotion-2.1.3/bin] ./bm -hm RandomWaypoint Will display all the parameters for RandomWaypoi

Link State Routing in NS3 - Wired Network

Link state routing in ns3 There are two varieties of protocols that deals with wired networks namely distance vector routing and link state routing,  As per the wikipedia, Distance-vector routing protocols , which work by having each node share its routing table with its neighbours, in a link-state protocol the only information passed between nodes is  connectivity related . Link-state algorithms are sometimes characterized informally as each router, "telling the world about its neighbors. This exercise can be one of the lab exercises of many universities in India. There are many more exercises to follow. If one understand this video, they can able to simulate any network design and run it successfully in ns3. In this blog post, I am not going to explain the concepts of link state routing, but will explain how to configure the nodes to use link state routing in ns3.  Please find the video for the source code explanation and compilation in ns3 on link state routing protocol Here is