Project

General

Profile

Actions

Feature #1687

closed

Route inheritance test scenario

Added by Alex Afanasyev over 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Integration Tests
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
6.00 h

Description

Develop a integration test for route inheritance flags.

Topology

B---A---C
    |
    D

Edges represent logical links (UDP tunnels).

Steps

  1. start NFD on A,B,C,D
  2. set multicast strategy for root namespace on A
  3. 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
  4. 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
  5. 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
  6. stop traffic generator server on B,C,D
  7. 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

client.log (21.7 KB) client.log Hila Ben Abraham, 02/08/2016 01:02 PM
serverB.log (12.3 KB) serverB.log Hila Ben Abraham, 02/08/2016 01:03 PM
NDNTrafficClient.conf (369 Bytes) NDNTrafficClient.conf Hila Ben Abraham, 02/08/2016 03:13 PM
20160209230045.tgz (166 KB) 20160209230045.tgz Hila Ben Abraham, 02/09/2016 04:08 PM
20160215233745.tgz (167 KB) 20160215233745.tgz integ 2706,5 Junxiao Shi, 02/16/2016 01:01 PM
20160224213124.tgz (168 KB) 20160224213124.tgz integ 2706,6 Junxiao Shi, 02/24/2016 02:40 PM

Related issues 1 (0 open1 closed)

Related to NFD - Task #1325: Generate FIB updatesClosedVince Lehman03/07/2014

Actions
Actions #1

Updated by Junxiao Shi over 10 years ago

  • 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
Actions #2

Updated by Junxiao Shi over 10 years ago

  • Related to Task #1325: Generate FIB updates added
Actions #3

Updated by Junxiao Shi over 9 years ago

  • Tracker changed from Task to Feature
  • Target version changed from v0.3 to v0.4
Actions #4

Updated by Junxiao Shi about 9 years ago

  • Description updated (diff)
Actions #5

Updated by Hila Ben Abraham about 9 years ago

  • Assignee changed from Vince Lehman to Hila Ben Abraham
Actions #6

Updated by Hila Ben Abraham almost 9 years ago

  • Status changed from New to In Progress
Actions #7

Updated by Hila Ben Abraham almost 9 years ago

  • % Done changed from 0 to 80

Updated by Hila Ben Abraham almost 9 years ago

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)

Actions #9

Updated by Junxiao Shi almost 9 years ago

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.

Actions #10

Updated by Hila Ben Abraham almost 9 years ago

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).

Actions #11

Updated by Hila Ben Abraham almost 9 years ago

  • 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.

Actions #12

Updated by Hila Ben Abraham almost 9 years ago

20160209230045.tgz indicates that all tests passed successfully except of test-remote-register.

Actions #14

Updated by Junxiao Shi over 8 years ago

Actions

Also available in: Atom PDF