Labels: installation , ndnSIM , ns-3 , shell script , Ubuntu
ndnSIM is "ns-3 based Named Data Networking Simulator" [1]. This post provides a "shell script" that automates the installation of ndnSIM on Ubuntu. It has been tested on Ubuntu 14.04, 15.04, 16.04 and 17.04.
Note 1: This post is updated when a new version of ndnSIM or a new version of Ubuntu is released.
Note 2: You must be connected to Internet while executing the shell script.
Contributed by: Kiran Ramesh, Karthik S and Ayush Agarwal, Wireless Information Networking Group (WiNG), NITK Surathkal.
Updated by: Viyom Mittal and Vivek Jain, WiNG, NITK Surathkal.
Steps to install ndnSIM:
1. Download the shell script: ndnSIM-install.sh and place it on Desktop
2. Go to Desktop via terminal and give the following command:
sh ndnSIM-install.sh
3. Give your system password, when asked.
You are done with it!
Verifying the installation of ndnSIM:
1. Go ~/Desktop/ndnSIM/ns-3 and give the following command:
./waf --run=ndn-simple
If you see " 'build' finished successfully " message, ndnSIM is installed correctly.
Hope it helps.
Regards,
Mohit P. Tahiliani
References:
[1] ndnSIM Documentation: http://ndnsim.net/2.3/getting-started.html
Note 2: You must be connected to Internet while executing the shell script.
Contributed by: Kiran Ramesh, Karthik S and Ayush Agarwal, Wireless Information Networking Group (WiNG), NITK Surathkal.
Updated by: Viyom Mittal and Vivek Jain, WiNG, NITK Surathkal.
Steps to install ndnSIM:
1. Download the shell script: ndnSIM-install.sh and place it on Desktop
2. Go to Desktop via terminal and give the following command:
sh ndnSIM-install.sh
3. Give your system password, when asked.
You are done with it!
Verifying the installation of ndnSIM:
1. Go ~/Desktop/ndnSIM/ns-3 and give the following command:
./waf --run=ndn-simple
If you see " 'build' finished successfully " message, ndnSIM is installed correctly.
Hope it helps.
Regards,
Mohit P. Tahiliani
References:
[1] ndnSIM Documentation: http://ndnsim.net/2.3/getting-started.html
Hi,
I'm glad to finally found a post about this easy installation as I have been trying hard to get over with the installation but every time I tried a new error would popup so thanks to you for posting it.
I have a question. How much of the processing power and RAM would it need to work smoothly without any hurdles.
@Babar - I am glad to know that the script was useful to you.
Any typical machine's configuration (i3 processor, 1 or 2 GB RAM) is fine for its smooth functioning. I recommend not to use VMs.
Hope it helps.
Regards,
Mohit P. Tahiliani
Can u help in implementing one vanet scheme in NS3.. I will pay u for that
ndnSIM-install.sh: 63: cd: can't cd to ns-3/src/ndnSIM/ndn-cxx
ndnSIM-install.sh: 64: ndnSIM-install.sh: ./waf: not found
ndnSIM-install.sh: 65: ndnSIM-install.sh: ./waf: not found
sudo: ./waf: command not found
ndnSIM-install.sh: 69: cd: can't cd to pybindgen
ndnSIM-install.sh: 70: ndnSIM-install.sh: ./waf: not found
ndnSIM-install.sh: 71: ndnSIM-install.sh: ./waf: not found
sudo: ./waf: command not found
ndnSIM-install.sh: 76: cd: can't cd to ns-3
ndnSIM-install.sh: 77: ndnSIM-install.sh: ./waf: not found
ndnSIM-install.sh: 78: ndnSIM-install.sh: ./waf: not found
sudo: ./waf: command not found
I tried to install in ubuntu16.04 ..It comes like above..could you please help me??
Build failed
Traceback (most recent call last):
File "/home/babarshahzaad/Desktop/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Runner.py", line 150, in task_status
return tsk.runnable_status()
File "/home/babarshahzaad/Desktop/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Build.py", line 448, in runnable_status
ret=super(inst,self).runnable_status()
File "/home/babarshahzaad/Desktop/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Task.py", line 313, in runnable_status
new_sig=self.signature()
File "/home/babarshahzaad/Desktop/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Task.py", line 298, in signature
self.sig_explicit_deps()
File "/home/babarshahzaad/Desktop/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Task.py", line 351, in sig_explicit_deps
raise Errors.WafError('Missing node signature for %r (required by %r)'%(x,self))
WafError: Missing node signature for /home/babarshahzaad/Desktop/ndnSIM/ns-3/build/src/fd-net-device/ns3-dev-tap-device-creator-optimized (required by
{task 139876710605008: inst ns3-dev-tap-device-creator-optimized -> })
I tried to install in Ubuntu 16.04. After spending more than 2 hours the final output with a number errors in intermediate is listed above.
Help needed.
Hi Mohit,
Really appreciate your help and support. I wanted to ask if you have worked on LoRaWAN in ns3. If you could post something related to that. i will be really thankful.
Cheers
Hi Please suggest as I am getting this error.
[3164/3206] Linking build/utils/ns3-dev-test-runner-optimized
[3165/3206] Linking build/utils/ns3-dev-print-introspected-doxygen-optimized
Waf: Leaving directory `/home/ritika/Desktop/ndnSIM/ns-3/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (2m36.941s)
Command ['/home/ritika/Desktop/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-optimized', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run --command-template="gdb --args %s ").