Feature #1687
closed
Route inheritance test scenario
Added by Alex Afanasyev over 10 years ago.
Updated over 8 years ago.
Category:
Integration Tests
Description
Develop a integration test for route inheritance flags.
Topology¶
B---A---C
|
D
Edges represent logical links (UDP tunnels).
Steps¶
- start NFD on A,B,C,D
- set multicast strategy for root namespace on A
- run traffic generator server on B,C,D each with these prefixes
- ndn:/A/P
- ndn:/A/B/C/Q
- ndn:/D/R
- ndn:/S
- add routes on A
- ndn:/ , nexthop=hostB, CHILD_INHERIT=yes, CAPTURE=no
- ndn:/ , nexthop=hostC, CHILD_INHERIT=no, CAPTURE=no
- ndn:/A , nexthop=hostB, CHILD_INHERIT=yes, CAPTURE=no
- ndn:/A/B/C , nexthop=hostD, CHILD_INHERIT=yes, CAPTURE=no
- ndn:/D , nexthop=hostC, CHILD_INHERIT=yes, CAPTURE=yes
- ndn:/D , nexthop=hostD, CHILD_INHERIT=yes, CAPTURE=no
- run traffic generator client on A to send 20 Interests to each of:
- ndn:/A/P
- ndn:/A/B/C/Q
- ndn:/D/R
- ndn:/S
- stop traffic generator server on B,C,D
- in traffic generator server reports, verify the number of served Interests of each traffic pattern, fail the test case if any condition is violated
- traffic generator server on B
- ndn:/A/P , >=18
- ndn:/A/B/C/Q , >=18
- ndn:/D/R , =0
- ndn:/S , >=18
- traffic generator server on C
- ndn:/A/P , =0
- ndn:/A/B/C/Q , =0
- ndn:/D/R , >=18
- ndn:/S , >=18
- traffic generator server on D
- ndn:/A/P , =0
- ndn:/A/B/C/Q , >=18
- ndn:/D/R , >=18
- ndn:/S , =0
Files
- Subject changed from Basic integrated tests for NRD with flags to Route inheritance test scenario
- Description updated (diff)
- Estimated time set to 6.00 h
- Tracker changed from Task to Feature
- Target version changed from v0.3 to v0.4
- Description updated (diff)
- Assignee changed from Vince Lehman to Hila Ben Abraham
- Status changed from New to In Progress
- % Done changed from 0 to 80
Is there a way to set ndn-traffic to send a fixed number of interests per name (without running ndn-traffic separately for each name)? The test fails occasionally when the number of interests sent for one of the names is less than 18. (See attached files)
Is there a way to set ndn-traffic to send a fixed number of interests per name (without running ndn-traffic separately for each name)?
No. In step 4, you may run four traffic generator client instances in parallel.
The test fails occasionally when the number of interests sent for one of the names is less than 18.
If traffic generator client is configured to send 80 Interests, and there are four traffic patterns each with 25% share, it's supposed to send exactly 20 Interests per traffic pattern.
Otherwise, this should be a bug of traffic generator.
Step 7 specifies "at least 18" to accommodate packet loss.
If traffic generator client is configured to send 80 Interests, and there are four traffic patterns each with 25% share, it's supposed to send exactly 20 Interests per traffic pattern.
Otherwise, this should be a bug of traffic generator.
Then I believe it is a bug. See attached client config file (and previously uploaded client.log).
- Status changed from In Progress to Code review
- % Done changed from 80 to 100
No. In step 4, you may run four traffic generator client instances in parallel.
I uploaded a draft patchset that uses 4 instances of traffic generator to avoid the issue. It can be easily changed later.
20160209230045.tgz indicates that all tests passed successfully except of test-remote-register.
Also available in: Atom
PDF