blob: 22f330d1d8a21f6fc2f693d926fd2783ff8fe8f6 [file] [log] [blame] [view]
ashu8bf379e2015-05-04 09:54:06 -05001Mini-NDN Installing Instructions
2================================
3
4### What equipment will I need ?
5
6Basically, you'll need a laptop/desktop with a recent Linux distro (Ubuntu, Fedora).
7We recommend Ubuntu. For this guide, the _Ubuntu 14.04 LTS_ was used.
8Also, note that you'll need administrative privileges in order to download and install
9extra packages and also to execute **Mini-NDN**.
10
11### Installing NDN
12
ashu2ad32e22015-05-29 13:37:40 -050013Each node in **Mini-NDN** will run the official implementation of NDN. The following dependencies are needed:
ashu8bf379e2015-05-04 09:54:06 -050014
15Mini-NDN uses NFD, NLSR, and ndn-tlv-ping.
16
17To install NFD:
18http://named-data.net/doc/NFD/current/INSTALL.html
19
20To install NLSR:
21http://named-data.net/doc/NLSR/current/INSTALL.html
22
ashu2ad32e22015-05-29 13:37:40 -050023To install ndn-tools:
24https://github.com/named-data/ndn-tools
ashu8bf379e2015-05-04 09:54:06 -050025
ashu2ad32e22015-05-29 13:37:40 -050026### Installing Mininet
ashu8bf379e2015-05-04 09:54:06 -050027
ashu2ad32e22015-05-29 13:37:40 -050028**Mini-NDN** is based on Mininet. To install Mininet:
29https://github.com/mininet/mininet/INSTALL
ashu8bf379e2015-05-04 09:54:06 -050030
ashu2ad32e22015-05-29 13:37:40 -050031### Installing **Mini-NDN**
ashu8bf379e2015-05-04 09:54:06 -050032
ashu2ad32e22015-05-29 13:37:40 -050033If you have all the dependencies installed simply clone this repository and run:
ashu8bf379e2015-05-04 09:54:06 -050034
ashu2ad32e22015-05-29 13:37:40 -050035 sudo ./install.sh -i
ashu8bf379e2015-05-04 09:54:06 -050036
ashu2ad32e22015-05-29 13:37:40 -050037else if you don't have the dependencies:
ashu8bf379e2015-05-04 09:54:06 -050038
ashu2ad32e22015-05-29 13:37:40 -050039 sudo ./install.sh -mrfti
ashu8bf379e2015-05-04 09:54:06 -050040
41### Verification
42
ashu2ad32e22015-05-29 13:37:40 -050043Once everything is installed, the following command can be issued for verification
ashu8bf379e2015-05-04 09:54:06 -050044
ashu2ad32e22015-05-29 13:37:40 -050045 sudo minindn --pingall 50 --ctime 180 ndn_utils/hyperbolic_conf_file/minindn.caida.conf
ashu8bf379e2015-05-04 09:54:06 -050046
47All the ping logs will be stored under /tmp/node-name/ping-data and the command will provide a
48command line interface at the end.
ashu2ad32e22015-05-29 13:37:40 -050049
50When the "mininet>" CLI prompt appears, press CTRL+D to terminate the experiment.
51Then, execute `ls /tmp/*/ping-data/*.txt | wc -l`, and expect to see "90".
52Execute `cat /tmp/*/ping-data/*.txt | grep loss`, and expect to see "0% packet loss" on every line.