tree: d454c5bf2a05c61b512530f36e3aee4032d28eb1 [path history] [tgz]
  1. __init__.py
  2. fib-matching-test.sh
  3. README.md
  4. test-traffic-client-1.conf
  5. test-traffic-client-2.conf
  6. test-traffic-client-3.conf
  7. test-traffic-client-4.conf
  8. test-traffic-client-5.conf
  9. test-traffic-client-6.conf
  10. test-traffic-client-7.conf
  11. test-traffic-server-1.conf
  12. test-traffic-server-2.conf
  13. test-traffic-server-3.conf
  14. test-traffic-server-4.conf
  15. 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-client, 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-client to request /F with MustBeFresh=true. Fail if unanswered or if received content is not "Z".
  7. Wait 100ms.
  8. Invoke ndn-traffic-client to request /A with MustBeFresh=true. Fail if unanswered or if received content is not "A".
  9. Wait 100ms.
  10. Invoke ndn-traffic-client to request /a with MustBeFresh=true. Fail if unanswered or if received content is not "Z".
  11. Wait 100ms.
  12. Invoke ndn-traffic-client to request /A/B with MustBeFresh=true. Fail if unanswered or if received content is not "A".
  13. Wait 100ms.
  14. Invoke ndn-traffic-client to request /A/B/G with MustBeFresh=true. Fail if unanswered or if received content is not "A".
  15. Wait 100ms.
  16. Invoke ndn-traffic-client to request /A/B/C with MustBeFresh=true. Fail if unanswered or if received content is not "C".
  17. Wait 100ms.
  18. Invoke ndn-traffic-client 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".