Task #1717
closedRoute expiration test scenario
100%
Description
Develop a integration test for route expiration.
Topology¶
B---A---C
Edges represent logical links (UDP tunnels).
Steps¶
- start NFD (including RIB Daemon) on A,B,C
- add routes on A
- ndn:/P , nexthop=hostB, expiration=10s
- ndn:/P , nexthop=hostC, expiration=20s
- ndn:/Q , nexthop=hostB, expiration=20s
- ndn:/R , nexthop=hostC, expiration=10s
- ndn:/S , nexthop=hostB, expiration=3600s
- delay 5 seconds; run
nfd-status
on A to inspect RIB
Expected:- ndn:/P (hostB expires in 3-8s, hostC expires in 13-18s)
- ndn:/Q (hostB expires in 13-18s)
- ndn:/R (hostC expires in 3-8s)
- ndn:/S (hostB expires in >3000s)
- delay 10 seconds; run
nfd-status
on A to inspect RIB
Expected:- ndn:/P (hostC expires in 3-8s)
- ndn:/Q (hostB expires in 3-8s)
- ndn:/R : entry does not exist
- ndn:/S (hostB expires in >3000s)
- delay 8 seconds; run
nfd-status
on A to inspect RIB
Expected:- ndn:/P : entry does not exist
- ndn:/Q : entry does not exist
- ndn:/R : entry does not exist
- ndn:/S (hostB expires in >3000s)
Files
Updated by Syed Amin over 10 years ago
Alex/Junxiao can you please move this task to NFD. I also don't see any option to set the related tasks here. Thanks.
Updated by Junxiao Shi over 10 years ago
- Project changed from ndn-cxx to NFD
- Subject changed from Write integration tests for Task #1325 to Route expiration test scenario
- Description updated (diff)
- Category changed from Tests to Integration Tests
- Target version changed from v0.2 to v0.3
- Start date deleted (
06/30/2014) - Estimated time changed from 1.00 h to 6.00 h
Updated by Junxiao Shi over 10 years ago
- Related to Task #1326: Delete expired RIB entries added
Updated by Junxiao Shi over 10 years ago
- Blocked by Task #1662: RIB dataset publisher added
Updated by Syed Amin over 10 years ago
Single node is enough for this test why do we need three nodes?
Do we need Task #1662 for this? With Fib enumeration, we can have at least basic tests for version 2, which can allow us to check whether expiration events are triggered at the correct time or not.
Lastly, I am planning to integrate these tests with Task #1388, if that seems fine I can add that task to the related task.
Updated by Junxiao Shi over 10 years ago
- Description updated (diff)
You won't be able to create UDP tunnels to non-existent addresses after #1285 is implemented, so you need actual hosts.
Please don't add stuff into #1388.
That test is focus on nfdc
.
You may make a copy and take the needed part.
You may start writing the test using FIB enumeration, but it should ultimately use RIB enumeration so that expiration period is correctly reported.
#1687 ensures RIB to FIB conversion is correct.
Updated by Junxiao Shi over 10 years ago
- Blocked by Task #1749: nfd-status: RIB dataset added
Updated by Lan Wang over 10 years ago
- Assignee changed from Syed Amin to Vince Lehman
Updated by Vince Lehman over 10 years ago
- Status changed from New to In Progress
Updated by Vince Lehman over 10 years ago
- Status changed from In Progress to Code review
- % Done changed from 0 to 90
Updated by Vince Lehman over 10 years ago
Would it be possible for me to have access to the NFD Emulab topology to run the tests myself or the topology startup scripts?
Updated by Junxiao Shi over 10 years ago
Topology is on-demand. There is no persistent running topology.
ns script is attached.
You may use UBUNTU12-64-NFD template.
Updated by Vince Lehman over 10 years ago
- Status changed from Code review to Closed
- % Done changed from 90 to 100