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

HOW TO IMPORT PROPAGATION-MODULE.H IN NS3

To import PROPAGATION-MODULE.H packages in NS3 you can read the instruction listed below, stay in touch with us if you have any installation guidance.  

The PropagationModule class has tools to set up and use models that mimic real signal behavior in various situations. This is important for correctly simulating wireless communication, as it affects the signal strength and quality that network devices receive. Knowing about propagation-module.h is vital for researchers and developers who are creating simulations related to wireless signal propagation in NS-3.

PRE-REQUISITES:

  1. Fresh installation of Ubuntu 22.04 LTS:

Screenshot:

Fresh installation of Ubuntu 22_04 LTS

2.NS-3.35 Installation:

Screenshot:

NS-3.35 Installation

HEADER FILE VERIFICATION:

  1. Locate to the ns3.35/src/propagation/examples/ folder:

Screenshot:

Locate to the ns3-src-propagation-examples folder

2.Copy the main-propagation-loss.cc file to scratch folder:

Next, we need to copy the main-propagation-loss.cc file from ns3.35/src/propagation/examples/ folder to the ns3/scratch folder.

Screenshot:

Copy the main-propagation-loss.cc file to scratch folder

Next, we need to paste the main-propagation-loss.cc file to the ns3/scratch folder.

Screenshot:

Copy the main-propagation-loss.cc file to scratch folder

3.Open the Terminal:

Next, we need to launch the terminal by right clicking the mouse in the ns3 location.

Screenshot:

Open the Terminal

Screenshot:

Open the Terminal

4.NS-3.35 Configuration && Building Process:

Next, we need to configure and build the ns3 folder to make the copied files to the scratch need to store in configuration.

Command:      “./waf configure && ./waf build”

Screenshot:

NS-3.35 Configuration && Building Process

Screenshot:

NS-3.35 Configuration && Building Process

5.Importing Propagation-module.h:

Here we imported the propagation-module.h header file in this example program.

Screenshot:

Importing Propagation-module.h

Here we highlighted the code line that JakesPropagationLossModel class which is the part of the Propagation-module.h that we will show class file that used in this code via propagation folder which represents propagation module.

Screenshot:

Importing Propagation-module.h

Screenshot:

Here we will show the header file by opening Propagation-module.h file to show the class imported from the Propagation-module.h in the example code.

Screenshot:

Importing Propagation-module.h

6.Executing the Example Propagation-module Program:

Then we need to run the Example Propagation-module program to view output of the program.

Command:      “./waf –run main-propagation-loss”

Screenshot:

Executing the Example Propagation-module Program

Here we shown the output of the example Propagation-module program by using Propagation-module.h.

Screenshot:

Executing the Example Propagation-module Program