Eric Newberry | c22afde | 2018-06-19 01:28:31 -0700 | [diff] [blame] | 1 | Test Case - interest_aggregation |
jeraldabraham | b2a2655 | 2014-04-16 21:08:09 -0700 | [diff] [blame] | 2 | ================================ |
| 3 | |
| 4 | ## Objective ## |
| 5 | |
Eric Newberry | c22afde | 2018-06-19 01:28:31 -0700 | [diff] [blame] | 6 | Test NFD's Interest aggregation mechanism on a single host. |
jeraldabraham | b2a2655 | 2014-04-16 21:08:09 -0700 | [diff] [blame] | 7 | |
| 8 | ## Description ## |
| 9 | |
Eric Newberry | c22afde | 2018-06-19 01:28:31 -0700 | [diff] [blame] | 10 | This test case will run NFD, ndnpeek, and ndn-traffic-server to check for the proper aggregation of Interests by NFD. |
jeraldabraham | b2a2655 | 2014-04-16 21:08:09 -0700 | [diff] [blame] | 11 | |
Eric Newberry | c22afde | 2018-06-19 01:28:31 -0700 | [diff] [blame] | 12 | ## Steps ## |
| 13 | |
| 14 | 1. Start NFD. |
| 15 | 2. Set NFD to use the best-route v1 strategy on the / prefix. |
| 16 | 3. Start ndn-traffic-server to serve /test-agg, with -d 2000 flag to delay response for 2000ms. |
| 17 | 4. Start two instances of ndnpeek to request /test-agg/A. Fail if either instance fails to exit or if either Interest goes unanswered. |
| 18 | 5. Stop ndn-traffic-server. Fail if total number of served Interests does not equal 1. |
| 19 | 6. Start ndn-traffic-server to serve /test-agg, with -d 2000 flag to delay response for 2000ms. |
| 20 | 7. 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. |
| 21 | 8. Stop ndn-traffic-server. Fail if total number of served Interests does not equal 2. |
| 22 | 9. Start ndn-traffic-server to serve /test-agg, with -d 2000 flag to delay response for 2000ms. |
| 23 | 10. 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. |
| 24 | 11. Stop ndn-traffic-server. Fail if total number of served Interests does not equal 1. |