Project

General

Profile

Task #1717

Route expiration test scenario

Added by Syed Amin over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Integration Tests
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
6.00 h

Description

Develop a integration test 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
    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)
  4. 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)
  5. 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

integ.ns (1.22 KB) integ.ns Junxiao Shi, 08/05/2014 03:11 PM

Related issues

Related to NFD - Task #1326: Delete expired RIB entriesClosedSyed Amin

Actions
Blocked by NFD - Task #1662: RIB dataset publisherClosedVince Lehman

Actions
Blocked by NFD - Task #1749: nfd-status: RIB datasetClosedChengyu Fan

Actions
#1

Updated by Syed Amin over 7 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.

#2

Updated by Junxiao Shi over 7 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
#3

Updated by Junxiao Shi over 7 years ago

  • Related to Task #1326: Delete expired RIB entries added
#4

Updated by Junxiao Shi over 7 years ago

  • Blocked by Task #1662: RIB dataset publisher added
#5

Updated by Syed Amin over 7 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.

#6

Updated by Junxiao Shi over 7 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.

#7

Updated by Junxiao Shi over 7 years ago

  • Blocked by Task #1749: nfd-status: RIB dataset added
#8

Updated by Lan Wang over 7 years ago

  • Assignee changed from Syed Amin to Vince Lehman
#9

Updated by Vince Lehman over 7 years ago

  • Status changed from New to In Progress
#10

Updated by Vince Lehman about 7 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 90
#11

Updated by Vince Lehman about 7 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?

#12

Updated by Junxiao Shi about 7 years ago

Topology is on-demand. There is no persistent running topology.

ns script is attached.

You may use UBUNTU12-64-NFD template.

#13

Updated by Vince Lehman about 7 years ago

  • Status changed from Code review to Closed
  • % Done changed from 90 to 100

Also available in: Atom PDF