blob: df57f8e4591c47e975ec4cc1fdf197591235b9c4 [file] [log] [blame] [view]
Eric Newberryc22afde2018-06-19 01:28:31 -07001Test Case - interest_aggregation
jeraldabrahamb2a26552014-04-16 21:08:09 -07002================================
3
4## Objective ##
5
Eric Newberryc22afde2018-06-19 01:28:31 -07006Test NFD's Interest aggregation mechanism on a single host.
jeraldabrahamb2a26552014-04-16 21:08:09 -07007
8## Description ##
9
Eric Newberryc22afde2018-06-19 01:28:31 -070010This test case will run NFD, ndnpeek, and ndn-traffic-server to check for the proper aggregation of Interests by NFD.
jeraldabrahamb2a26552014-04-16 21:08:09 -070011
Eric Newberryc22afde2018-06-19 01:28:31 -070012## Steps ##
13
141. Start NFD.
152. Set NFD to use the best-route v1 strategy on the / prefix.
163. Start ndn-traffic-server to serve /test-agg, with -d 2000 flag to delay response for 2000ms.
174. Start two instances of ndnpeek to request /test-agg/A. Fail if either instance fails to exit or if either Interest goes unanswered.
185. Stop ndn-traffic-server. Fail if total number of served Interests does not equal 1.
196. Start ndn-traffic-server to serve /test-agg, with -d 2000 flag to delay response for 2000ms.
207. 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.
218. Stop ndn-traffic-server. Fail if total number of served Interests does not equal 2.
229. Start ndn-traffic-server to serve /test-agg, with -d 2000 flag to delay response for 2000ms.
2310. 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.
2411. Stop ndn-traffic-server. Fail if total number of served Interests does not equal 1.