ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 1 | Mini-NDN Installing Instructions |
| 2 | ================================ |
| 3 | |
| 4 | ### What equipment will I need ? |
| 5 | |
| 6 | Basically, you'll need a laptop/desktop with a recent Linux distro (Ubuntu, Fedora). |
| 7 | We recommend Ubuntu. For this guide, the _Ubuntu 14.04 LTS_ was used. |
| 8 | Also, note that you'll need administrative privileges in order to download and install |
| 9 | extra packages and also to execute **Mini-NDN**. |
| 10 | |
| 11 | ### Installing NDN |
| 12 | |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 13 | Each node in **Mini-NDN** will run the official implementation of NDN. The following dependencies are needed: |
ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 14 | |
| 15 | Mini-NDN uses NFD, NLSR, and ndn-tlv-ping. |
| 16 | |
| 17 | To install NFD: |
| 18 | http://named-data.net/doc/NFD/current/INSTALL.html |
| 19 | |
| 20 | To install NLSR: |
| 21 | http://named-data.net/doc/NLSR/current/INSTALL.html |
| 22 | |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 23 | To install ndn-tools: |
| 24 | https://github.com/named-data/ndn-tools |
ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 25 | |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 26 | ### Installing Mininet |
ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 27 | |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 28 | **Mini-NDN** is based on Mininet. To install Mininet: |
| 29 | https://github.com/mininet/mininet/INSTALL |
ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 30 | |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 31 | ### Installing **Mini-NDN** |
ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 32 | |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 33 | If you have all the dependencies installed simply clone this repository and run: |
ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 34 | |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 35 | sudo ./install.sh -i |
ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 36 | |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 37 | else if you don't have the dependencies: |
ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 38 | |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 39 | sudo ./install.sh -mrfti |
ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 40 | |
| 41 | ### Verification |
| 42 | |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 43 | Once everything is installed, the following command can be issued for verification |
ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 44 | |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 45 | sudo minindn --pingall 50 --ctime 180 ndn_utils/hyperbolic_conf_file/minindn.caida.conf |
ashu | 8bf379e | 2015-05-04 09:54:06 -0500 | [diff] [blame] | 46 | |
| 47 | All the ping logs will be stored under /tmp/node-name/ping-data and the command will provide a |
| 48 | command line interface at the end. |
ashu | 2ad32e2 | 2015-05-29 13:37:40 -0500 | [diff] [blame] | 49 | |
| 50 | When the "mininet>" CLI prompt appears, press CTRL+D to terminate the experiment. |
| 51 | Then, execute `ls /tmp/*/ping-data/*.txt | wc -l`, and expect to see "90". |
| 52 | Execute `cat /tmp/*/ping-data/*.txt | grep loss`, and expect to see "0% packet loss" on every line. |