This post shows how to install ns 3.34 in Ubuntu 20.04 LTS
Prerequisites:
- Fresh installation of Ubuntu Version 20.04 LTS
- ns3.34 can be downloaded from here
Follow the video link for complete step by step instructions on the installation.
This version fixes the compilation issues of vanet-routing-compare.cc (bug in ns3.33)
Issue the following commands after opening a terminal
$ sudo apt update
$ sudo apt install g++ python3 python3-dev python-dev pkg-config sqlite3 python3-setuptools git qt5-default gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 openmpi-bin openmpi-common openmpi-doc libopenmpi-dev autoconf cvs bzr unrar openmpi-bin openmpi-common openmpi-doc libopenmpi-dev tcpdump wireshark libxml2 libxml2-dev
Unzip or untar the ns-allinone-3.34.tar.bz2 in the home folder (in my case its /home/pradeepkumar)
$ cd ns-allinone-3.34/
$ ./build.py --enable-examples --enable-tests
Once the installation is completed, you may get an output shown as below
ns-3.34 in Ubuntu 20.04 |
The following packages are installed
Visualizer
NetAnim
Python Bindings
Wireshark
ns3
GNU Scientific Library IEEE 802.11b
MPI
Please subcribe to my channel and share it to your friends..
There is membership options as well for my channel.
Thanks for watching...!!!!
In case, if you want to contribute to my work on Engineering Clinic, You can be part of my channel as a member.
Join my channel to get access to perks:
https://www.youtube.com/channel/UCSckTbBIf39jf2dIbruS32A/join
how we can use COAP and Quic protocol in ns2
ReplyDeleteGood Morning sir,
ReplyDeleteSir I am a Ph.D student in NIT Jalandhar.
I have started my research in IoT MAC Layer. My research objective are energy optimization, reliability improvement, and scalability optimization. I am using NS 2.35 simulator for this. Sir would you please help me to download the source code or patch file for the above objective and how to modified the file to fulfill the above objective in IoT MAC layer.
hello sir, I'd message you many time but did not get response form your side.
ReplyDeleteI've a question? please help me.
Dear Sir,
ReplyDeletegreetings,
I am a Ph.D student preparing a thesis on routing opimization for vanets.
My research objective are routing optimization, reliability improvement, and scalability optimization. I am using NS 3.31 simulator and sumo 1.2.0.
I am using meta heuristics approaches (ACO, GA,RTO,...)to optimize GPSR routing for vanet.
I address the routing optimization issue for VANET to define the optimal and the most reliable path for communication among vehicles. We have defined a new route optimization metric for data packet transmission between a source vehicle and a destination one based on new metric link between any two different vehicles in the aim to improve V2V communication.
I have designed an improved ACO based optimization routing algorithm for vanet (GPSR, OLSR, AODV) to determine optimal routes for data transmission between a source and a destination vehicle.
Would you please help me to implement the source code for the above objective and how to modify ( GPSR, OLSR, AODV) to fulfill the above objective.
Would you provide with the email address to contact you, sir.
Thanks in advance.
Hi sir
ReplyDeleteI'm trying to install ns3 using this video.
But When i enter this command " ./build.py --enable-examples --enable-tests"
it stucks in this line: " [2551/3008] compiling src/netanim/examples/star-animation.cc "
and my system stops working.
Can you please help me how can i fix this problem?
ReplyDeleteI was running the code ./build.py --enable-examples --enable-tests in ns3.34 in ubuntu 22.04 and it got this error :
[2306/3014] Processing command (${PYTHON}): ../bindings/python/ns3modulegen-modular.py ../src/antenna/bindings/modulegen__gcc_LP64.py -> src/antenna/bindings/ns3module.cc src/antenna/bindings/ns3module.h src/antenna/bindings/ns3modulegen.log
Waf: Leaving directory `/home/grimowl/Desktop/ns-allinone-3.34/ns-3.34/build'
Build failed
-> task in 'pybindgen(ns3 module antenna)' failed with exit status 1 (run with -v to display more information)
Traceback (most recent call last):
File "/home/grimowl/Desktop/ns-allinone-3.34/./build.py", line 175, in
sys.exit(main(sys.argv))
File "/home/grimowl/Desktop/ns-allinone-3.34/./build.py", line 166, in main
build_ns3(config, build_examples, build_tests, args, build_options)
File "/home/grimowl/Desktop/ns-allinone-3.34/./build.py", line 86, in build_ns3
run_command([sys.executable, "waf", "build"] + build_options)
File "/home/grimowl/Desktop/ns-allinone-3.34/util.py", line 25, in run_command
raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python3', 'waf', 'build'] exited with code 1