NS3 Tutorial Installation Randy
NS3 Tutorial Installation Randy
c. After the packages have finished downloading, paste in this code and
press enter: sudo pip3 install cxxfilt
8. After installing the required packages, create a folder named workspace in the
home directory and then put the NS3 tar package into the workspace. See
example figure below.
cd
cd workspace
10. Test the NS3 build and installation success by running test.py in the ns
directory using the following commands:
cd ns-<version number>
./test.py
Figure 4: Testing the build and installation.
11. If all of the tests were passed, Congratulations! NS3 has now been installed
successfully.
Building NetAnim and Running a Simulation
1. To build NetAnim, the qmake package will be utilized in the following process:
a. Go to the NetAnim directory pasting these commands in the terminal:
cd
cd workspace
make clean
qmake NetAnim.pro
make
cd ../
f. Run NetAnim by entering the netanim directory in the terminal and use
the code:
./NetAnim
g. Select the created xml file and run resulting simulation by following
these procedures:
i. Click on the folder icon in the top left side, shown in Figure 6.
iii. Run simulation by pressing the play icon. Example shown in Figure
8.