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

HOW TO IMPORT APPLICATION CONTAINER.H PACKAGES IN NS3

To import APPLICATION-CONTAINER.H packages in NS3 we have listed the necessary steps to be carried on.  The ApplicationContainer class creates a container for managing and manipulating multiple ns3::Application instances. This class supports batch operations on multiple applications, such as starting, stopping, and iterating through them. It makes it easier to manage applications within a simulation by allowing you to add and remove applications and query their status. ApplicationContainer is critical for organizing and controlling complex simulation scenarios in which multiple applications must interact or be managed collaboratively. Understanding application-container.h is critical for developers who want to efficiently manage groups of applications in their NS-3 simulations.

Some of the required for the installation of Application-container.h.

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/examples/tutorial folder:

Screenshot:

Locate to the ns3-examples-tcp folder

2.Copy the first.cc file to scratch folder:

Next, we need to copy the first.cc file from ns3.35/examples/tutorial/ folder to the ns3/scratch folder.

Screenshot:

Copy the first.cc file to scratch folder

Next, we need to paste the first.cc file to the ns3/scratch folder.

Screenshot:

Copy the first.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 Application-container.h:

Here we imported the Application-container.h header file in this example program.

Screenshot:

Importing Application-container.h

Here we highlighted the code line that Start() class which is the part of the Application-container.h that we will show class file that used in this code via network folder.

Screenshot:

Importing Application-container.h

Screenshot:

Importing Application-container.h

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

Screenshot:

Importing Application-container.h

6.Executing the Example Application-container Program:

Then we need to run the Example Application-container program to view output of the program.

Command:      “./waf –run first –vis”

Screenshot:

Executing the Example Application-container Program

Here we shown the output of the example Application-container program by using Application-container.h.

Screenshot:

Executing the Example Application-container Program

Screenshot:

Executing the Example Application-container Program

Screenshot:

Executing the Example Application-container Program

Get novel ideas from us to apply this version in your research .