commit | 03f4dc9532b34a99bfb7d2ff6d04e43d03dec3c3 | [log] [tgz] |
---|---|---|
author | Obaid <soamin@memphis.edu> | Sun Apr 13 10:57:04 2014 -0500 |
committer | Obaid <soamin@memphis.edu> | Mon Apr 14 21:31:56 2014 -0500 |
tree | bec1da04b8b89e6b1982f1adc71dc0e71d5c25fe | |
parent | 60df7214317c011a424643c08c3c2ad8c51c2527 [diff] |
rib: Updated logic for inserting and comparing rib entries. refs #1473 Change-Id: Ie4b34d0e4a72191a96f93f8833e7119c007804a7
NRD works in parallel with NFD and provides services for prefix registration.
For installation details please see INSTALL.md.
This README uses SYSCONFDIR
when referring to the default locations of various configuration files. By default, SYSCONFDIR
is set to /usr/local/etc
. If you override just PREFIX
, then SYSCONFDIR
will default to PREFIX/etc
.
You may override SYSCONFDIR
and/or PREFIX
by specifying their corresponding options during configuration:
./waf configure --prefix <path/for/prefix> --sysconfdir <some/other/path>
NRD's runtime settings may be modified via configuration file. After installation, a working sample configuration is provided at SYSCONFDIR/ndn/nrd.conf.sample
. At startup, NRD will attempt to read the default configuration file from following location: SYSCONFDIR/ndn/nrd.conf
.
You may also specify an alternative configuration file location by running NRD with:
nrd --config </path/to/nrd.conf>
Currently, nrd.conf contains only a security section, which is well documented in the sample configuration file.
Build, install and setup NFD by following the directions provided in README.md in NFD root folder.
Create certificates by following the instructions in NFD's README.md
Build and install NRD by following the directions in INSTALL.md
Create nrd.conf file. You can simply copy the provided sample file in SYSCONFDIR/ndn/nrd.conf
.
Setup the trust-anchors in nrd.conf. Ideally, the prefix registration Interest should be signed by application/user key, and this application/user key should be used as trust-anchor. However, currently the default certificate is used to sign the registration Interests. Therefore, for initial testing the default certificate should be set as the trust-anchor. For doing so, the default certificate should be copied in the same folder where the nrd.conf is. Secondly, the trust-anchor should point to the copied certificate in nrd.conf. To know the id of default certificate you can use:
~$ ndnsec-get-default
Start NFD (assuming the NFD's conf file exist in SYSCONFDIR/ndn/nfd.conf
):
~$ nfd
Start NRD (assuming the conf file exist in SYSCONFDIR/ndn/nrd.conf
):
~$ nrd
Try to connect any application to NFD. For example, producer application that is provided ndn-cpp-dev examples.