Teng Liang | 39465c2 | 2018-11-12 19:43:04 -0700 | [diff] [blame] | 1 | This file describes how self-learning forwarding strategy is tested. |
| 2 | |
| 3 | Installation/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 | |
| 11 | Execution: |
| 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 | |
| 20 | Results: |
| 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 |