The QKDNetSim source code is free for download from the git repository “

The code is periodically updated in accordance with the NS-3 dev version of the NS-3 simulator. Last modification and code customization was made on July 17, 2018. which corresponds to the NS-3 version 3.29


QKDNetSim has been successfully tested on linux distributions:

  • Ubuntu 18.04
  • Ubuntu 17.10
  • Ubuntu 17.04
  • Ubuntu 16.04


Install prerequisites as root:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi libboost-all-dev git flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify libgsl23 python-pygccxml libcrypto++-dev libcrypto++-doc libcrypto++-utils -y


git clone
cd qkdnetsim-dev
./waf configure

Execute the test script:

./waf --run scratch/qkd_channel_test