ndnSIM is a modular open source NS-3-based Named Data Networking (NDN) simulator which implements all basic operations of NDN such as Forwarding Information Base (FIB), Pending Interest Table (PIT), Content Store (CS). Following are some steps which i followed for installation of ndnSIM on Ubuntu 16.04.
Prerequisites
Following modules / libraries are necessary in order to run ndnSIM.
1. sudo apt-get update
2. sudo apt-get install python-software-properties
3. sudo add-apt-repository ppa:boost-latest/ppa
4. sudo apt-get update
5. sudo apt-get install libboost-all-dev
6. sudo apt-get install libssl-dev
7. sudo apt-get install build-essential
8. sudo apt-get install libsqlite3-dev libcrypto++-dev
9. sudo apt-get install python-dev python-pygraphviz python-kiwi
10. sudo apt-get install python-pygoocanvas python-gnome2
11. sudo apt-get install python-rsvg ipython
12. sudo apt-get install doxygen graphviz python-sphinx python-pip
13. sudo pip install sphinxcontrib-doxylink sphinxcontrib-googleanalytics
Downloading ndnSIM source
The following commands create ndnSIM directory and download ndnSIM package from GitHub.
1. sudo apt-get install git (if not already installed)
2. mkdir ndnSIM
3. cd ndnSIM
4. git clone https://github.com/named-data/ndn-cxx.git ndn-cxx
5. git clone https://github.com/named-data-ndnSIM/ns-3-dev.git ns-3
6. git clone https://github.com/named-data-ndnSIM/pybindgen.git pybindgen
7. git clone --recursive https://github.com/named-data-ndnSIM/ndnSIM.git ns-3/src/ndnSIM
Compiling and running ndnSIM
Following commands will compile and install ndn-cxx libray and compile NS-3 with ndnSIM module.
1. cd ndnSIM/ndn-cxx
2. ./waf configure --enable-shared --disable-static
3. ./waf
4. sudo ./waf install
5. sudo ldconfig
6. cd ndnSIM/ns-3
7. ./waf configure --enable-examples
8. ./waf
Simulating using ndnSIM
1. ./waf --run=ndn-simple ( Simple Run )
2. ./waf --run=ndn-simple --vis ( Running with Visualizer )
3. NS_LOG=ndn.Consumer:ndn.Producer ./waf --run=ndn-simple --vis (Running + Visualizing + Logging)
4. NS_LOG=ndn.Consumer:ndn.Producer ./waf --run=ndn-simple --vis > debug.out 2>&1 (Running + Visualizing + Logging in separate file. you can find debug.out file in ns-3 folder)
References
1. http://ndnsim.net/2.0/getting-started.html
2. http://named-data.net/doc/ndn-cxx/current/INSTALL.html
3. http://bupeanubuntu.blogspot.com/2015/08/installing-ndnsim-on-ubuntu-1504.html
4. A lot of searching on stack overflow and GitHub :p
Dear Sir,
ReplyDeleteWe are thankful to your services about ndnsim.We are giving tips for ndnsim research scholars.Please use our links.
https://www.youtube.com/channel/UCoojSNObgcYBKxk4IlVH2iw?view_as=subscriber
http://www.ndnsim.com/
Thanks
i have tried all the above mentioned steps and it worked correctly but when i run this,
ReplyDelete./waf --run=ndn-simple --vis ( Running with Visualizer )
it shows build successful but assert failed and not able to see the visualizer. kindly help to solve this issue.
Thank you..
i am getting error while executing these commands
ReplyDelete./waf configure --enable-shared --disable-static
./waf
Please help me
Waf: Leaving directory `/home/ubuntu/ndnSIM/ndn-cxx/build'
Build failed
i am getting error while executing these commands
ReplyDelete./waf configure --enable-shared --disable-static
./waf
Please help me
Waf: Leaving directory `/home/ubuntu/ndnSIM/ndn-cxx/build'
Build failed
ubuntu indirmek için tıklayın: ubuntu indir
ReplyDelete