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:
- Fresh installation of Ubuntu 22.04 LTS:
Screenshot:

2.NS-3.35 Installation:
Screenshot:

HEADER FILE VERIFICATION:
- 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:

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:

Screenshot:

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:

Screenshot:

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:

Screenshot:

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:

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:

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