Actions
Feature #2201
closedRemote prefix registration test scenario
Start date:
Due date:
% Done:
100%
Estimated time:
6.00 h
Description
Develop an integration test for remote prefix registration.
Topology¶
A---B
IPv4 UDP tunnel is used.
Steps¶
- generate certificates on A for these identities, in RIB daemon's KeyChain:
- ndn:/Z/A self-signed
- ndn:/Z/A/nrd signed by ndn:/Z/A
- ndn:/Z/A/B/C signed by ndn:/Z/A
- ndn:/Z/A/B/C/D/E/nrd signed by ndn:/Z/A/B/C
- ndn:/Z/F self-signed
- configure NFD on A:
- enable remote prefix registration
- set remote registration refreshing time to 15 seconds
- configure NFD on B:
- set UDP face timeout to 35 seconds
- enable acceptance of prefix registration using
ndn:/localhop/nfd/rib
command prefix - make ndn:/Z/A a trust anchor for prefix registration using
ndn:/localhop/nfd/rib
command prefix - set broadcast strategy for ndn:/
- start NFD (including RIB Daemon) on A,B
- start
repo-ng
on A to listen onndn:/
prefix, and put all certificates generated in step 1 into this repo via TCP bulk insert protocol - start
nfd-autoreg --prefix=/Z
on B - execute nfdc on A to create a face toward B over UDP
- start ndnpingserver for ndn:/Z/A/G on A, defer 5 seconds
- inspect RIB on B, fail the test case if Route for ndn:/Z/A toward A exists
- execute nfdc on A to register a Route for ndn:/localhop/nfd on the face created in step 7
- defer 5 seconds
- inspect RIB on B, fail the test case if Route for ndn:/Z/A toward A does not exist
- start ndnpingserver for ndn:/Z/A/H on A, defer 5 seconds
- inspect RIB on B, fail the test case if Route for ndn:/Z/A toward A does not exist
- stop ndnpingserver from step 8, defer 5 seconds
- inspect RIB on B, fail the test case if Route for ndn:/Z/A toward A does not exist
- stop ndnpingserver from step 13, defer 5 seconds
- inspect RIB on B, fail the test case if Route for ndn:/Z/A toward A exists
- start ndnpingserver for ndn:/Z/A/B/C/D on A, defer 5 seconds
- inspect RIB on B, fail the test case if Route for ndn:/Z/A toward A exists, fail the test case if Route for ndn:/Z/A/B/C toward A does not exist
- stop ndnpingserver from step 19
- start ndnpingserver for ndn:/Z/A/B/C/D/E on A, defer 5 seconds
- inspect RIB on B, fail the test case if Route for ndn:/Z/A toward A exists, fail the test case if Route for ndn:/Z/A/B/C toward A exists, fail the test case if Route for ndn:/Z/A/B/C/D/E toward A does not exist
- defer 80 seconds
- inspect RIB on B, fail the test case if Route for ndn:/Z/A/B/C/D/E toward A does not exist
- start ndnpingserver for ndn:/Z/F/I on A, defer 5 seconds
- inspect RIB on B, fail the test case if Route for ndn:/Z/F toward A exists
Files
Actions