tree: ee4bcd5a408cc1d10585220c1f014fb6d76d2e72 [path history] [tgz]
  1. __init__.py
  2. fib-matching-test.sh
  3. README.md
  4. test-traffic-client-1.conf
  5. test-traffic-client-10.conf
  6. test-traffic-client-2.conf
  7. test-traffic-client-3.conf
  8. test-traffic-client-4.conf
  9. test-traffic-client-5.conf
  10. test-traffic-client-6.conf
  11. test-traffic-client-7.conf
  12. test-traffic-client-8.conf
  13. test-traffic-client-9.conf
  14. test-traffic-server-1.conf
  15. test-traffic-server-2.conf
  16. test-traffic-server-3.conf
  17. test-traffic-server-4.conf
  18. test_fib_matching.py
test_fib_matching/README.md

Test Case - fib_matching

Objective

Test NFD's FIB matching mechanism on a single host.

Description

This test case will run NFD, ndn-traffic, and ndn-traffic-server to test NFD's FIB matching mechanism.

Steps

  1. Start NFD.
  2. Start ndn-traffic-server to serve / with Content "Z" with FreshnessPeriod=10ms.
  3. Start ndn-traffic-server to serve /A with Content "A" with FreshnessPeriod=10ms.
  4. Start ndn-traffic-server to serve /A/B/C with Content "C" with FreshnessPeriod=10ms.
  5. Start ndn-traffic-server to serve /D/E with Content "E" with FreshnessPeriod=10ms.
  6. Invoke ndn-traffic to request / with MustBeFresh=true. Fail if unanswered or if received content is not "Z".
  7. Wait 100ms.
  8. Invoke ndn-traffic to request /F with MustBeFresh=true. Fail if unanswered or if received content is not "Z".
  9. Wait 100ms.
  10. Invoke ndn-traffic to request /A with MustBeFresh=true. Fail if unanswered or if received content is not "A".
  11. Wait 100ms.
  12. Invoke ndn-traffic to request /a with MustBeFresh=true. Fail if unanswered or if received content is not "Z".
  13. Wait 100ms.
  14. Invoke ndn-traffic to request /A/B with MustBeFresh=true. Fail if unanswered or if received content is not "A".
  15. Wait 100ms.
  16. Invoke ndn-traffic to request /A/B/G with MustBeFresh=true. Fail if unanswered or if received content is not "A".
  17. Wait 100ms.
  18. Invoke ndn-traffic to request /A/B/C with MustBeFresh=true. Fail if unanswered or if received content is not "C".
  19. Wait 100ms.
  20. Invoke ndn-traffic to request /A/B/C/P/Q/R/S/T/U/V/W/X/Y/Z with MustBeFresh=true. Fail if unanswered or if received content is not "C".
  21. Wait 100ms.
  22. Invoke ndn-traffic to request /D with MustBeFresh=true and Exclude=[...,D] (... is a zero-length generic component). Fail if unanswered or if received content is not "Z".
  23. Wait 100ms.
  24. Invoke ndn-traffic to request /D with MustBeFresh=true and Exclude=[...,E] (... is a zero-length generic component). Fail if unanswered or if received content is not "Z".