5G Network Simulation in NS3 using mmWave | NS3 Tutorials

Опубликовано: 27 Октябрь 2024
на канале: Engineering Clinic
653
like

Installation of #5g networks in ns3 namely mmWave for #ns3
#TSP #pradeepkumar #pradeepkumarts

$ sudo apt update

$ sudo apt install g++ python3 cmake ninja-build git gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 tcpdump wireshark libsqlite3-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools openmpi-bin openmpi-common openmpi-doc libopenmpi-dev doxygen graphviz imagemagick python3-sphinx dia imagemagick texlive dvipng latexmk texlive-extra-utils texlive-latex-extra texlive-font-utils libeigen3-dev gsl-bin libgsl-dev libgslcblas0 libxml2 libxml2-dev libgtk-3-dev lxc-utils lxc-templates vtun uml-utilities ebtables bridge-utils libxml2 libxml2-dev libboost-all-dev ccache build-essential autoconf automake libxmu-dev sqlite3 build-essential autoconf automake libxmu-dev

Download the complete package of ns3-mmwave from GitHub and install it

The website to download:
https://github.com/nyuwireless-unipd/...
or use the following method

$ git clone https://github.com/nyuwireless-unipd/...

After downloaded, the zip files are to be unzipped to the home folder

and open a terminal now

$ ./ns3 configure --enable-examples --enable-tests

$ ./ns3 build
This process will take a long time to complete.

Since 5G is older and it supports the older ns3 versions only, hence we are using a direct package of ns3 and compile it as per our needs.

Lets wait till the installation is done....

There are many errors i encountered. To correct those errors, open those files and include the following line at the include

For example /home/pradeepkumar/ns3-mmwave/src/mmwave/model/mmwave-net-device.h
in the above file, include the folllwing line

#include map
(map to be included between the less than and Greater than symbol, as this symbol is not permitted in the Youtube Description)
and then save it and rerun the compilation process.

Complete instructions are given on the website https://www.nsnam.com

Finally, we got the compilation done for ns3-mmwave

Let me run a file.... from the src/mmwave/examples/mmwave-simple-epc.cc

move the above file to the scratch folder/

To run the file, open a terminal

$ cd ns3-mmwave/
$ ./ns3 run scratch/mmwave-simple-epc.cc

and this file will create some files namely .pcap files and some performance metrics files.
An explanation of this source code will be available in my next video.

Keep checking my channel for more details. Thanks for watching...


Join this channel to get access to the perks:
   / @tspradeepkumar  

My other Channel -    / tspradeepkumar1​  
My Tech Blog - https://www.nsnam.com/
My Personal webiste - https://www.pradeepkumar.org ​
______________________________

Follow me on,
Instagram -   / tspradeepkumar  
Facebook -   / tspradeep​  
Twitter -   / tspradeepkumar​  
________________________________