Ns3 Projects for B.E/B.Tech M.E/M.Tech PhD Scholars.  Phone-Number:9790238391   E-mail: ns3simulation@gmail.com

How Can I Calculate Routing Overhead of AODV Using Ns 3 Network Simulator 3

               This article is about the depiction of calculating the routing overhead based on AODV through the utilization of network simulator 3.

               Hereby, we have highlighted the source codes that are deployed in the process of calculating routing overhead based on AODV using Ns3.

  • Include header files
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/mobility-module.h"
#include "ns3/config-store-module.h"
#include "ns3/wifi-module.h"
#include "ns3/internet-module.h"
#include "ns3/aodv-module.h"
#include "ns3/ipv4-static-routing-helper.h"
#include "ns3/ipv4-list-routing-helper.h"
#include "ns3/yans-wifi-phy.h"
#include "ns3/netanim-module.h"
#include "ns3/flow-monitor-module.h"
#include "ns3/gnuplot.h"
#include "ns3/mac-gplot.h"
  • AODV routing configuration
Ipv4StaticRoutingHelper staticRouting;
AodvHelper aodv;
Ipv4ListRoutingHelper list;
list.Add (staticRouting, 0);
list.Add (aodv, 1);
InternetStackHelper internet;
internet.SetRoutingHelper (list);
  • Calculate and generate routing overhead graph through the utilization of gnuplot package
system("gnuplot 'Detection_Rate.plt'");
system("gnuplot 'PDR.plt'");
system("gnuplot 'Delay.plt'");
system("gnuplot 'Routing_Overhead.plt'");
system("gnuplot 'Packet_Loss.plt'")

           As the next process, we have to configure the network simulator 3 through the execution of the following commands.

cd /home/research/ns-allinone-3.26/ns-3.26
sudo ./waf configure –enable-examples
Configuration of Network Simulator 3

            Then, we have to implement the following commands to execute the main file to acquire the routing overhead graph.

sudo ./waf --run Main --vis
Execution of Aodv Main File

             As an additional note, our research professional have highlighted graph window that is based on the routing overhead.

Graphical Result of Routing Overhead

            If you have any queries while calculating routing overhead in real time, you guys can contact us through various medium.