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

HOW TO IMPORT CORE MODULE.H PACKAGES IN NS3

To import the core-module.h packages in NS3 , it’s important to know that core-module.h is a header file used in the NS-3 network simulator. It lays out the core module of the framework, which includes essential elements that other NS-3 modules depend on, like nodes, packets, and managing simulation time. This file is super important for developers who are creating custom simulations, as it allows them to tweak or enhance the core functions of NS-3. Grasping the ins and outs of core-module.h is essential for anyone looking to develop effective simulations in NS-3.

Installation steps of core-module.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/src/core/example folder:

Screenshot:

Locate to the ns3_src_core_example folder

2.Copy the sample-show-progress.cc file to scratch folder:

Next we need to copy the sample-show-progress.cc file from core/example folder.to the ns3/scratch folder.

Screenshot:

Copy the sample-show-progress.cc file to scratch folder

Next we need to paste the sample-show-progress.cc file to the ns3/scratch folder.

Screenshot:

Copy the sample-show-progress.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 Core-module.h:

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

Screenshot:

Importing Core-module.h

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

Screenshot:

Importing Core-module.h

Screenshot:

Importing Core-module.h

Here we will show the class file by opening command-line.cc file to show the class imported from the core module in the example code.

Screenshot:

Executing the Example Core-module Program

6.Executing the Example Core-module Program:

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

Command:      “./waf –run sample-show-progress”

Screenshot:

Executing the Example Core-module Program

In this version, we are prepared to assist you with project ideas. Our developers will provide you with a practical explanation regarding the installation of core-module.h