Task #1717
Updated by Junxiao Shi over 11 years ago
Develop a [integration test](http://gerrit.named-data.net/#/admin/projects/NFD/integration-tests) for route expiration.
## Topology
B---A---C
Edges represent logical links (UDP tunnels).
## Steps
1. start NFD (including RIB Daemon) on A,B,C
2. 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
3. delay 5 seconds; run `nfd-status` on A to inspect RIB and FIB
Expected:
* ndn:/P (hostB expires in 3-8s, hostC expires in 13-18s) (hostB, hostC)
* ndn:/Q (hostB expires in 13-18s) (hostB)
* ndn:/R (hostC expires in 3-8s) (hostC)
* ndn:/S (hostB expires in >3000s) (hostB)
4. delay 10 seconds; run `nfd-status` on A to inspect RIB and FIB
Expected:
* ndn:/P (hostC expires in 3-8s) (hostC)
* ndn:/Q (hostB expires in 3-8s) (hostB)
* ndn:/R : entry does not exist
* ndn:/S (hostB expires in >3000s) (hostB)
5. delay 8 seconds; run `nfd-status` on A to inspect RIB and FIB
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) (hostB)