Project

General

Profile

Actions

Task #1385

closed

FIB match test scenario

Added by Yi Huang almost 11 years ago. Updated over 10 years ago.

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

100%

Estimated time:
4.00 h

Description

Topology: Single host.

Steps:

  1. Start NFD.
  2. Start ndn-traffic-server to serve ndn:/ with Content "Z", FreshnessPeriod=10ms. Prefix registration must either use NFD FibMgmt, or use NRD and specify CAPTURE flag.
  3. Start ndn-traffic-server to serve ndn:/A with Content "A", FreshnessPeriod=10ms. Prefix registration must either use NFD FibMgmt, or use NRD and specify CAPTURE flag.
  4. Start ndn-traffic-server to serve ndn:/A/B/C with Content "C", FreshnessPeriod=10ms. Prefix registration must either use NFD FibMgmt, or use NRD and specify CAPTURE flag.
  5. Start ndn-traffic-server to serve ndn:/D/E with Content "E", FreshnessPeriod=10ms. Prefix registration must either use NFD FibMgmt, or use NRD and specify CAPTURE flag.
  6. Invoke ndn-traffic-client to request ndn:/ MustBeFresh=yes MaxSuffixComponents=2. Fail if unanswered. Fail if Content is not "Z".
  7. Wait 100ms.
  8. Invoke ndn-tlv-peek to request ndn:/F MustBeFresh=yes. Fail if unanswered. Fail if Content is not "Z".
  9. Wait 100ms.
  10. Invoke ndn-tlv-peek to request ndn:/A MustBeFresh=yes. Fail if unanswered. Fail if Content is not "A".
  11. Wait 100ms.
  12. Invoke ndn-tlv-peek to request ndn:/a MustBeFresh=yes. Fail if unanswered. Fail if Content is not "Z".
  13. Wait 100ms.
  14. Invoke ndn-tlv-peek to request ndn:/A/B MustBeFresh=yes. Fail if unanswered. Fail if Content is not "A".
  15. Wait 100ms.
  16. Invoke ndn-tlv-peek to request ndn:/A/B/G MustBeFresh=yes. Fail if unanswered. Fail if Content is not "A".
  17. Wait 100ms.
  18. Invoke ndn-tlv-peek to request ndn:/A/B/C MustBeFresh=yes. Fail if unanswered. Fail if Content is not "C".
  19. Wait 100ms.
  20. Invoke ndn-tlv-peek to request ndn:/A/B/C/P/Q/R/S/T/U/V/W/X/Y/Z MustBeFresh=yes. Fail if unanswered. Fail if Content is not "C".
  21. Wait 100ms.
  22. Invoke ndn-traffic to request ndn:/D MustBeFresh=yes Exclude=[,D]. Fail if unanswered. Fail if Content is not "Z".
  23. Wait 100ms.
  24. Invoke ndn-traffic to request ndn:/D MustBeFresh=yes Exclude=[,E]. Fail if unanswered. Fail if Content is not "Z".

Script can assume necessary programs are installed and accessible in $PATH, and current user has sudo privilege.

Actions #1

Updated by Junxiao Shi over 10 years ago

  • Subject changed from FIB test scenario to FIB match test scenario
  • Description updated (diff)
  • Category set to Integration Tests
  • Target version set to v0.1
  • Start date deleted (03/21/2014)
Actions #2

Updated by Junxiao Shi over 10 years ago

  • Description updated (diff)
  • Estimated time set to 4.00 h
Actions #3

Updated by Beichuan Zhang over 10 years ago

  • Assignee set to Jerald Paul Abraham
Actions #4

Updated by Jerald Paul Abraham over 10 years ago

  • Status changed from New to In Progress
Actions #5

Updated by Jerald Paul Abraham over 10 years ago

  • % Done changed from 0 to 90

Manual Testing Successful

Issue While Automating With ndn-tlv-peek. Trying to automate with ndn-traffic-client.

Actions #6

Updated by Jerald Paul Abraham over 10 years ago

  • % Done changed from 90 to 100

There is a newly seen unexpected data response for ndn:/

This occurs specifically against step 6 of this test scenario. All the other steps pass.

I suspect this is due to some lapses/changes in NFD's FIB/Face Management protocol but this could also be a flaw in the test case steps. Awaiting response from Junxiao/Alex on the this unexpected response.

The automated script is ready for code review.

Actions #7

Updated by Junxiao Shi over 10 years ago

  • Description updated (diff)

Step 6 has an error: NFD will generate a Face Notification when ndn-tlv-peek connects, and that notification would satisfy ndn:/. I'm fixing this by adding MaxSuffixComponents=2.

Actions #8

Updated by Jerald Paul Abraham over 10 years ago

All test steps pass with new task description.

Code ready for review.

Actions #9

Updated by Jerald Paul Abraham over 10 years ago

  • Status changed from In Progress to Code review
Actions #10

Updated by Jerald Paul Abraham over 10 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF