Project

General

Profile

Task #1942

Updated by Junxiao Shi over 7 years ago

Develop an [[IntegrationTests]] scenario to test [[NDNLPv2]] **NextHopFaceId** field. 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 
 3. 4.    on B, start traffic generator producer on `ndn:/P` prefix, serving payload "BBBBBBBB" 
 4. 5.    on C, start traffic generator producer on `ndn:/P` prefix, serving payload "CCCCCCCC" 
 5. 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" 
 6. 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" 
 7. 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" 
 8. 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 
 9.    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