Project

General

Profile

Actions

Task #1385

closed

FIB match test scenario

Added by Yi Huang over 10 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

Also available in: Atom PDF