Skip to content

Installing ns-3 with ndnSIM on Debian 10 chroot Environment.

ndnSIM: Named-Data Networking (NDN) Simulator.

ndnSIM is an ns-3 module to enable experimentation with Named-Data Networking (NDN).  It is an open-source ns-3 module that enables experimentation with the Named-Data Networking (NDN) architecture in wireless and wired networks[1]. ndnSIM project is maintained by the UCLA Computer Science Department’s Internet Research Lab (IRL). 

This article explains the way of installing ns-3 with ndnSIM on chroot jail. The procedure that we describe here will closely follow the steps explained in[2].


About Setting up Chroot Jail

One may follow the following article to learn about the benefits of using a chroot jail and how to set it up under Debian Linux.

Installing ns3.35 in Debian 10 chroot Jail Under Debian 11 Host OS or any Version of Linux Host

Further, one may read the following article also to understand the use of chroot jail.

In this ndnSIM demonstration, we use a Debin 10 chroot jail which was setup on Debin 11 Native Host operating system.

Features of ndnSIM[1]

  • It is fully integrated with the real-world NDN prototypes, the ndn-cxx library and the NDN Forwarding Daemon (NFD).
  • The integration with ndn-cxx and NFD ensures that the simulations are maximally realistic and can be reproduced in real environments with virtually no changes to the source code.
  • Any experiment with NDN forwarding (e.g., custom forwarding strategies, cache replacement policies) inside ndnSIM can be directly used within the real NFD implementation. Real-world applications written based on the ndn-cxx library can be ported to ndnSIM with minimal changes.
  • ndnSIM also provides an extensive collection of interfaces and helpers to perform detailed tracing of the behavior of each component, as well as of the NDN traffic flow.

For detailed installation procedure for installing ndnSIM on some other Mac and Ubuntu, one may refer[2]

Core dependencies

The following are the core dependencies that should be installed before installing ndnSIM.

  • python >= 3.5
  • libsqlite3
  • pkg-config
  • openssl
  • Boost libraries >= 1.54


Sorry!!!. Some sections are hidden; because, you are only having restricted access to this article.

While getting paid support/assistance for your research from Charles, you may get an access key/password to some articles. If you are having the access key/password to this particular article, then please enter it below to unlock the restricted section of this article.

If your research is related to this area, and you want to get paid support/assistance from Charles, then you may start a 'free' research discussion with Charles.

The following diagram explains this example scenario :

For example, if you want to run the example ndn-grid.cpp scenario with visualizer, you can do the following :

$ ./waf –run=ndn-grid –vis
The following screenshot shows the terminal output and the visualizer output during running the simulation.


The following gif animation shows the output of the Grid Network simulation.



  4. S. Mastorakis, A. Afanasyev, and L. Zhang, “On the Evolution of ndnSIM: an Open-Source Simulator for NDN Experimentation,” ACM SIGCOMM Computer Communication Review (CCR), July 2017
  5. A. Afanasyev, I. Moiseenko, and L. Zhang, “ndnSIM: NDN simulator for NS-3,” NDN, Technical Report NDN-0005, 2012

For Assistance in Protocol Implementation, Simulations & Analysis of Industrial as well as Scholarly Research Works, you may Contact Us.

WhatsApp chatDiscuss Through WhatsApp

Call 91 9843779735

Send an e-Mail Message.

This site is protected by reCAPTCHA and the Google
Privacy Policy and
Terms of Service apply.

WhatsApp chat