Test Case - interest_aggregation
Objective
Test NFD's Interest aggregation mechanism on a single host.
Description
This test case will run NFD, ndnpeek, and ndn-traffic-server to check for the proper aggregation of Interests by NFD.
Steps
- Start NFD.
- Set NFD to use the best-route v1 strategy on the / prefix.
- Start ndn-traffic-server to serve /test-agg, with -d 2000 flag to delay response for 2000ms.
- Start two instances of ndnpeek to request /test-agg/A. Fail if either instance fails to exit or if either Interest goes unanswered.
- Stop ndn-traffic-server. Fail if total number of served Interests does not equal 1.
- Start ndn-traffic-server to serve /test-agg, with -d 2000 flag to delay response for 2000ms.
- Start ndnpeek to request /test-agg/B with CanBePrefix=false, and another instance to request /test-agg/B with CanBePrefix=true. Fail if either instance fails to exit or if either Interest goes unanswered.
- Stop ndn-traffic-server. Fail if total number of served Interests does not equal 2.
- Start ndn-traffic-server to serve /test-agg, with -d 2000 flag to delay response for 2000ms.
- Start ndnpeek to request /test-agg/C with InterestLifetime=6000ms, and another instance to request /test-agg/C with InterestLifetime=8000ms. Fail if either is instance fails to exit or if either Interest goes unanswered.
- Stop ndn-traffic-server. Fail if total number of served Interests does not equal 1.