This article is considered as the illustration to run the code in network simulator 3 and it is derived by our technical experts.
Stage: I
Here, we have started this through the configuration of ns3 packages that are installed through the utilization of the commands that are highlighted below.
cd /home/research/ns-allinone-3.26/ns-3.26
sudo ./waf configure
![Configuration of Ns3 Packages](https://ns3simulation.com/wp-content/uploads/2023/01/configure-ns-3.png)
Stage: II
Then, we have to create the simulation code through the utilization of file extension .cc or .py and it is stored in the scratch folder.
![Creation of Simulation Code](https://ns3simulation.com/wp-content/uploads/2023/01/Simulation-code.png)
Stage: III
As the subsequent process, we have to run the simulation file along with the extension of .cc over the utilization of the below mentioned commands. Following that, the acquire result is highlighted.
cd /home/research/ns-allinone-3.26/ns-3.26
sudo ./waf –run SimulationFile –vis
![](https://ns3simulation.com/wp-content/uploads/2023/01/Simulation-file-execution.png)
![Result of Executing Ns3 Simulation](https://ns3simulation.com/wp-content/uploads/2023/01/result-for-Simulation-file-execution-1024x461.png)
We are here to assist you to acquire the appropriate results in your research process, reach us for the aids.