blob: 6dc75c1781f3bf815d19b08c1461552978449e15 [file] [log] [blame] [view]
Teng Liang39465c22018-11-12 19:43:04 -07001This file describes how self-learning forwarding strategy is tested.
2
3Installation/Configuration:
4
5 - Install two NFDs (A and B) with the self-learning forwarding strategy
6
7 - Configure two NFDs to be connected: either both NFDs have to be connected to the same multicast-capable network (they effectively will communicate over it) or faces between two nodes have to be configured and maintained for communication
8
9 - Enable `localhop_security` by editing nfd.conf file for both NFDs
10
11Execution:
12
13 - Run NFD, and choose self-learning forwarding strategy for name prefix /sl on both NFDs with this command:
14 `nfdc strategy set /sl /localhost/nfd/strategy/self-learning`
15
16 - Run ndnpingserver on node A to serve /sl: `ndnpingserver /sl` (Install ndn-tools first)
17
18 - Run ndnping on node B for /sl: `ndnping /sl`
19
20Results:
21
22 - ndnping works
23
24 - run command `nfdc route` to show the newly added route that follows the following format:
25 `prefix=/sl/ping nexthop=<faceID> origin=prefixann cost=2048 flags=child-inherit expires=<duration>`
26
27 - in NFD logs (with DEBUG level enabled), the first Interest is sent to all faces, while the subsequent Interests are sent to only one face