The initial experience of the network simulation tool with the method of installation and operation. This was an additional project of the mobile and wireless networks course in the Computer Engineering Department at Taibah University. Supervised by Dr. Salah M. Abdel-Mageid
OS Used: Ubuntu 16.04.4
NS3 version: NS3 version 3.25
1- Download Ubuntu 16.04.4 from link
ubuntu-16.04-desktop-amd64.iso
2 - Download Oracle VM VirtualBox from link
3 - Install Oracle VM VirtualBox
4 - Install Ubuntu 16.04.4 in VirtualBox
If the system options do not appear to you with 64-bit architecture, you must activate Virtualization from the BIOS
5 - From Ubuntu: Download and install required packages, from these commands in terminal
sudo apt update
./build.py --enable-examples --enable-tests
6 - From Ubuntu: Download the ns3 tool version 3.25 from link
7 - Move the file to Desktop or any place you want, then click on the right press in mouse to option [ open in Terminal ]
8 - Extract the file by command
tar jxvf ns-allione-3.25.tar.bz2
9 - Open the folder and build the tool
cd ns-allinone-3.25/
sudo apt-get install build-essential autoconf automake libxmu-dev python-pygoocanvas python-pygraphviz cvs mercurial bzr git cmake p7zip-full python-matplotlib python-tk python-dev python-kiwi python-gnome2 python-gnome2-desktop-dev python-rsvg qt4-dev-tools qt4-qmake qt4-qmake qt4-default gnuplot-x11 wireshark
Then enter Y to confirm download
> Do not worry when you do not see the password π when you are typing, this is a safety measure in Linux systems π
Congratulations π! The tool has been installed after waiting for the installation β°
To make sure the tool works, it is possible to try the simple example, but this time it is not Hello world, but Hello simulator π
cd ns-3.25/
./waf --run hello-simulator
This will print the hello Simulator which indicates that ns3 is installed successfully.
You are ready to understand how to run examples! β¨
The team has made an illustration of the scientific one as follows:
Whereas, the files, whether in the C ++ language or Python in order to play them, must be copied to the Scratch folder at the beginning!
After that, to run in a graphical manner, write the command as follows
./waf --run scratch/[program] --vis
Simulation run experience
We will continue the rest after the discussion today π (Actually π = After 4 months :) )
The beginning of the mods is to increase the number of noods from 2 to 5
NodeContainer c; c.Create (2); //old c.Create (5);
In addition to placing places for them and assigning them to them. from 2 nodes to 5
/* positionAlloc->Add (Vector (0.0, 1.0, 2.0)); positionAlloc->Add (Vector (5.0, 6.0, 7.0)); positionAlloc->Add (Vector (3.0, 3.0, 5.0)); */
to
positionAlloc->Add (Vector (0.0, 1.0, 1.0)); positionAlloc->Add (Vector (5.0, 5.0, 5.0)); positionAlloc->Add (Vector (10.0, 10.0, 10.0)); positionAlloc->Add (Vector (15.0, 15.0, 15.0)); positionAlloc->Add (Vector (20.0, 20.0, 20.0))
At first, this is the result of running the file without modification
During work, there was a meeting via Microsoft Times with Ahmed and Thamer :)
To activate the possibility of modification, we have done many options, as we note in this picture, such as increasing the time
Then allow the creation of a third of the new files
// bool tracing = false;
But after enable will be
bool tracing = true;
This tool was used and built-in Java This is the tool experience for the third example of the tool
The tools need to download Jave JRE by the command in terminal
sudo apt install default-jre
- It was hard to install the tool
- It was a challenge for us to start the simulation
- Other tool for performance matrices like with java
Versions | Run visual simulate by group |
---|---|
3.33 | β |
3.31 | β |
3.29 | β |
3.27 | β |
3.25 | β |
Because of that, I'm thinking of doing a shell script to install the version with simple steps soon, God willing π
A picture during the installation of the tool in the Thamer device
Mohammad Yaser Ammar
GitHub: https://github.com/MohammadYAmmar
LinkedIn: https://www.linkedin.com/in/mohammad-y-ammar/
Thamer Saleh Al-Mutairi
GitHub: https://github.com/thamer122
LinkedIn: https://www.linkedin.com/in/thamer-almutairi-7b0b141b8/
Ahmed Ibrahim Elegl
GitHub: https://github.com/Ahmedie98
LinkedIn: https://www.linkedin.com/in/ahmed-elegl-815668192/
If you have seen the description and codes with design, can you recommend our skills on LinkedIn? :)
Do not forget to give the project a star βπ to encourage us to continue if you liked it.
Thank you for reading all of this to benefit you instead of just copying and pasting β!