Project

General

Profile

Task #1942

Updated by Junxiao Shi over 8 years ago

Develop an [[IntegrationTests]] [integration test](http://gerrit.named-data.net/#/admin/projects/NFD/integration-tests) scenario to test verify the client-control strategy. 

 Topology: 

     B--A--C 

 Procedure: 

 1.    start NFD on A,B,C 
 2.    configure NFD on A to use client-control strategy for `ndn:/P` 
 3.    on A, create a route for prefix `ndn:/P` toward B and C, where the cost toward B is lower than the cost toward C 
 4.    on B, start traffic generator producer on `ndn:/P` prefix, serving payload "BBBBBBBB" 
 5.    on C, start traffic generator producer on `ndn:/P` prefix, serving payload "CCCCCCCC" 
 6.    on A, execute a consumer to enable NextHopFaceId feature and then express an Interest for `ndn:/P/1` without NextHopFaceId tag, expect Data with payload "BBBBBBBB" 
 7.    on A, execute a consumer to enable NextHopFaceId feature and then express an Interest for `ndn:/P/2` tagged NextHopFaceId=faceB, expect Data with payload "BBBBBBBB" 
 8.    on A, execute a consumer to enable NextHopFaceId feature and then express an Interest for `ndn:/P/3` tagged NextHopFaceId=faceC, expect Data with payload "CCCCCCCC" 
 9.    on A, execute a consumer to enable NextHopFaceId feature and then express an Interest for `ndn:/P/4` tagged NextHopFaceId=null-face, expect either a timeout or a Nack 
 10. on A, execute a consumer to disable NextHopFaceId feature and then express an Interest for `ndn:/P/5` tagged NextHopFaceId=faceC, expect either a timeout or Data with payload "BBBBBBBB"

Back