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-DELAY-MODEL.H IN NS3

To import PROPAGATION-DELAY-MODEL.H packages in NS3 our developers have an exciting and exclusive article that is just popped out for you to notify the steps that are required. 

The Propagation Delay Model class has methods to calculate how long it takes for a signal to go from the sender to the receiver, considering distance and speed. Subclasses create specific delay models to simulate how these delays impact network performance. Knowing about propagation-delay-model.h is important for studying latency and synchronization in NS-3 simulations.

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/scratch folder:

Screenshot:

2.Create the Propagation-delay-model_eg.cc file in the scratch folder:

Next we need to create the propagation-delay-model_eg.cc file by using text editor in the ns3/scratch folder.

Screenshot:

Create the Propagation-delay-model_eg.cc file in the scratch folder

Next we need to paste the below code to the propagation-delay-model_eg.cc file and save the file in the ns3/scratch folder.

Code:

Create the Propagation-delay-model_eg.cc file in the scratch folder

Screenshot:

Open the Terminal

3.Open the Terminal:

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

Screenshot:

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-delay-model.h:

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

Screenshot:

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

Screenshot:

Importing Propagation-delay-model.h

Screenshot:

Importing Propagation-delay-model.h

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

Screenshot:

Importing Propagation-delay-model.h

6.Executing the Example Propagation-delay-model Program:

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

Command:      “./waf –run Propagation-delay-model_eg –vis”

Screenshot:

Executing the Example Propagation-delay-model Program

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

Screenshot:

Executing the Example Propagation-delay-model Program