Vince Lehman | d367dbb | 2015-07-14 15:59:29 -0500 | [diff] [blame^] | 1 | Getting Started |
| 2 | =============== |
| 3 | |
| 4 | ## Installation |
| 5 | Please see [INSTALL.md](../INSTALL.md) for instructions on installing Mini-NDN and its dependencies. |
| 6 | |
| 7 | ## Running Mini-NDN |
| 8 | |
| 9 | To run Mini-NDN with the default topology, ``ndn_utils/topologies/default-topology.conf``, type: |
| 10 | |
| 11 | sudo minindn |
| 12 | |
| 13 | To run Mini-NDN with a topology file, provide the filename as the first argument: |
| 14 | |
| 15 | sudo minindn my-topology.conf |
| 16 | |
| 17 | During set up, the list of nodes in the network will be listed as they are initialized: |
| 18 | |
| 19 | *** Adding hosts: |
| 20 | a b c d |
| 21 | |
| 22 | After set up, the command-line interface (CLI) will display a prompt. |
| 23 | |
| 24 | mininet> |
| 25 | |
| 26 | To interact with a node, first type the node's name and then the command to be executed: |
| 27 | |
| 28 | mininet> a echo "Hello, world!" |
| 29 | Hello, world! |
| 30 | |
| 31 | To see the status of the forwarder on the node: |
| 32 | |
| 33 | mininet> a nfd-status |
| 34 | |
| 35 | To see the status of routing on the node: |
| 36 | |
| 37 | mininet> a nlsrc status |
| 38 | |
| 39 | To exit Mini-NDN, type ``quit`` in the CLI: |
| 40 | |
| 41 | mininet> quit |
| 42 | |
| 43 | For a more in depth explanation of the CLI, please see the |
| 44 | [Mininet Walkthrough](http://mininet.org/walkthrough/). |
| 45 | |
| 46 | ## Command-line options |
| 47 | |
| 48 | To run Mini-NDN with a replica of the NDN testbed, use the ``--testbed`` parameter: |
| 49 | |
| 50 | sudo mini-ndn --testbed |
| 51 | |
| 52 | #### Routing options |
| 53 | |
| 54 | To run NLSR with hyperbolic routing enabled, use the ``--hr`` parameter: |
| 55 | |
| 56 | sudo mini-ndn --hr |
| 57 | |
| 58 | To configure the max number of faces added by NLSR to reach each name prefix, use the ``--faces`` |
| 59 | parameter: |
| 60 | |
| 61 | sudo mini-ndn --faces 3 |
| 62 | |
| 63 | ``--faces`` can be an integer from 0 to 60; 0 indicates NLSR can add all available faces. |
| 64 | |
| 65 | |