Ns-3-Network-Simulator/C2/Installation-of-Network-simulator-3/English
Visual Cue | Narration |
Slide:1
Title slide |
Welcome to Spoken tutorial on Installation of Network Simulator-3. |
Show Slide:
Learning Objectives
|
In this tutorial, we will learn
|
Show Slide:
System Requirements
|
To record this tutorial, I am using
|
Show Slide:
Installation Requirements
|
For the installation of ns-3 software,
|
Show Slide:
Code Files
|
|
Show Slide:
What is ns-3?
|
ns-3 stands for Network Simulator-3.
It is used for network simulation and modeling.
It allows us to simulate and study the behavior of various network protocols.
To learn more about it, please visit this website |
Open Terminal Window
Type sudo apt update |
Now let us open the terminal window by pressing Ctrl, Alt and T keys together.
Now type sudo apt update and press Enter. Enter the password of your root directory and then press Enter. This will update the system.
|
Open terminal window
Type cd Downloads |
Now, we need to install the required packages for the installation.
For that, download the packages.txt that is available in the code files section. It contains the list of necessary packages to be downloaded. I have already downloaded it in my Downloads folder. Go to the Downloads directory by typing cd Downloads. You can choose the path where the packages.txt file is downloaded. |
Type xargs -a packages.txt sudo apt-get install | Now type xargs -a packages.txt sudo apt-get install
Through this command, we could install the necessary packages.
If the Package configuration window appears, select No by pressing the Enter key. |
Open browser | Now, to proceed with installation, let us open the browser.
Then type this link in the address bar. |
https://www.nsnam.org/releases/ns-allinone-3.38.tar.bz2
Click on Save button on the dialog box. Open a new terminal window
Type cd Downloads Right click on the downloaded folder |
We can see the releases of ns-3 so far.
For this series, let us install ns-3.38.
For that, let us click on ns-3.38 in the left pane. Then click on this link under Download. If the Save confirmation dialog box appears, click on the Save button. The file gets downloaded in the Downloads directory. |
Click on move to option
Click on Home in the left pane Right click on the folder select the Extract here option |
For convenience, please move the downloaded file to the Home directory.
After moving, now let us unzip the dot tar file. For that Right click on the folder and select the Extract here option. |
Only narration | After extracting, now, let us open the unzipped folder using the terminal. |
Open a new terminal
Type cd ns-allinone-3.38 |
Let us open a new terminal window.
Now, we shall move into the ns-3 folder. For that, type the command cd ns-allinone-3.38 and press Enter. |
Type ./build.py | Let us build the extracted files now so that it is ready for use.
Type, ./build.py and press Enter. |
Type hg clone http://code.nsnam.org/netanim
Type cd netanim Type qmake NetAnim.pro Type make |
The default NetAnim package available is not compatible with the wifi networks.
So, let us install a NetAnim version that is compatible. Please remember to press Enter key after typing every command. Let us do it through the following commands.
Type the command sudo apt install mercurial Enter the password of your root directory and then press Enter. Then type hg clone http://code.nsnam.org/netanim Enter the password of your root directory and then press Enter. After a while, you would be asked for confirmation to continue.
Please type Y so that we can continue. After this command is executed, let us build the files so that it is ready for use.
For that, type cd netanim Then type, qmake NetAnim.pro Now, type make After the successful execution of this command, netanim is ready for use. |
Go to a new terminal window
Type cd ns-allinone-3.38/ns-3.38 Press Enter Type ./ns3 run hello-simulator |
Let us get into the required folder to simulate the default Scratch simulator program .
Open a new terminal window.
Type cd ns-allinone-3.38/ns-3.38 and press Enter. Then type, ./ns3 run scratch/scratch-simulator.cc and press Enter. We get the output as Scratch Simulator. This is the compilation result of the Scratch simulator program . Our installation has been successful. |
Show Slide:
Features of ns-3
|
Let us see the features of ns-3.* ns-3 is used for research and education.
|
Show Slide:
Features of ns-3
|
|
Show Slide:
Features of ns-3
|
|
Show Slide:
Summary
|
This brings us to the end of this tutorial.
Let us summarize. In this tutorial, we have learnt
|
Show Slide:
About Spoken Tutorial Project
|
The video at the following link summarizes the Spoken Tutorial Project.
Please download and watch it.
|
Show Slide:
Spoken Tutorial Workshops
|
The Spoken Tutorial Project team conducts workshops and gives certificates.
For more details, please write to us.
|
Show Slide:
Answers for THIS Spoken Tutorial |
Do you have questions in THIS Spoken Tutorial?
Please visit this website.
Choose the minute and second where you have the question.
Explain your question briefly.
The Spoken Tutorial project will ensure an answer.
You will have to register to ask questions.
|
Slide : Forum for specific questions | The Spoken Tutorial forum is for specific questions on this tutorial.
Please do not post unrelated and general questions on them.
This will help reduce the clutter.
With less clutter, we can use these discussions as instructional material.
|
Show Slide:
FOSSEE Forum
|
For any general or technical questions on ns-3, visit the FOSSEE forum and post your question. |
Show Slide:
Acknowledgement
|
Spoken Tutorial Project was established by the Ministry of Education, Government of India. |
Show Slide:
Acknowledgement
|
We thank Dr. Moyukh Laha from IIT Kharagpur for his domain support.
We would also like to thank Dr. R. Radha, Dr. X. Anita, and Dr. T. Subbulakshmi from VIT Chennai for their support. |
Show Slide:
Thank you
|
This is Arun Santhosh, a FOSSEE Summer Fellow 2023, IIT Bombay signing off.
Thank you for joining.
|