Search This Blog

[ns-3] Installing ndnSIM on Ubuntu: One Step Procedure

Labels: , , , ,

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: and place it on Desktop

2. Go to Desktop via terminal and give the following command:


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.

Mohit P. Tahiliani


[1] ndnSIM Documentation:

Comments (7)

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.

Mohit P. Tahiliani

Can u help in implementing one vanet scheme in NS3.. I will pay u for that 63: cd: can't cd to ns-3/src/ndnSIM/ndn-cxx 64: ./waf: not found 65: ./waf: not found
sudo: ./waf: command not found 69: cd: can't cd to pybindgen 70: ./waf: not found 71: ./waf: not found
sudo: ./waf: command not found 76: cd: can't cd to ns-3 77: ./waf: not found 78: ./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/", line 150, in task_status
return tsk.runnable_status()
File "/home/babarshahzaad/Desktop/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/", line 448, in runnable_status
File "/home/babarshahzaad/Desktop/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/", line 313, in runnable_status
File "/home/babarshahzaad/Desktop/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/", line 298, in signature
File "/home/babarshahzaad/Desktop/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/", 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.


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 ").