Skip to main content


Showing posts from July, 2014

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

Printing the Routing Table in DSDV protocol

Printing the routing table for any protocol is quite a easier task if the data structure is known. You may read the post on "printing the routing table for AODV protocol"   Now this post will let you know how to print the routing table when using DSDV protocol. As you know, the DSDV protocol is a table driven protocol in which each node maintains a Routing table for a given source to destination and the table gets updated periodically to maintain the routes. But AODV protocol is a on demand routing protocol that deals with Route Request, Route Reply for forming the routes. So printing the routing table takes a minor tweak. But the DSDV protocol handles the routing table as a data structure, here is the steps to do it. OS Used : Linux Mint 17 - 64 bit NS2 Used : ns-2.35 Files to be modified: and dsdv.h Step 1: The folder where ns2 installed on my machine  /home/pradeepkumar/ns-allinone-2.35/ns-2.35 Execute these commands to access the DSDV protocol $promp