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 | |
| 13 | Each node in **Mini-NDN** will run the official implementation of NDN. Let's get it. |
| 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 | |
| 23 | To install ndn-tlv-ping: |
| 24 | https://github.com/named-data/ndn-tlv-ping |
| 25 | |
| 26 | ### Downloading and installing **Mini-NDN** |
| 27 | |
| 28 | If you don't have it yet, you'll need to have _git_ installed first. In Ubuntu, that would be: |
| 29 | |
| 30 | sudo apt-get install git |
| 31 | |
| 32 | Now, let's get the source code of **Mini-NDN**. |
| 33 | Go to your home directory and use the following command: |
| 34 | |
| 35 | git clone https://github.com/named-data/mini-ndn |
| 36 | |
| 37 | As a result, there will be a directory named _mini-ndn_ in your home directory, containing all the source code. |
| 38 | |
| 39 | Still in your home directory, use the utility install script with _-fnv_ options: |
| 40 | |
| 41 | sudo ./mini-ndn/util/install.sh -fnv |
| 42 | |
| 43 | where |
| 44 | -f: install open(F)low |
| 45 | -n: install mini(N)et dependencies + core files |
| 46 | -v: install open (V)switch |
| 47 | |
| 48 | Prerequisite packages will be downloaded and installed during the process. |
| 49 | |
| 50 | ### Verification |
| 51 | |
| 52 | Once everything is installed, the following command can be issued for verification from the home folder: |
| 53 | |
| 54 | sudo minindn --pingall 50 --ctime 180 mini-ndn/ndn_utils/hyperbolic_conf_file/minindn.caida.conf |
| 55 | |
| 56 | where: |
| 57 | --pingall: Will schedule and collect the specified number of pings from each node to every other node |
| 58 | --ctime: Convergence time for NLSR, provide according to the size of the topology |
| 59 | |
| 60 | Note: The configuration file contains hyperbolic coordinates but hyperbolic routing will only be |
| 61 | activated if --hr is provided |
| 62 | |
| 63 | All the ping logs will be stored under /tmp/node-name/ping-data and the command will provide a |
| 64 | command line interface at the end. |