Project

General

Profile

Actions

Task #1717

closed

Route expiration test scenario

Added by Syed Amin over 10 years ago. Updated about 10 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 3 (0 open3 closed)

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
Actions #1

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.

Actions #2

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
Actions #3

Updated by Junxiao Shi over 10 years ago

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

Updated by Junxiao Shi over 10 years ago

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

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.

Actions #6

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.

Actions #7

Updated by Junxiao Shi over 10 years ago

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

Updated by Lan Wang over 10 years ago

  • Assignee changed from Syed Amin to Vince Lehman
Actions #9

Updated by Vince Lehman over 10 years ago

  • Status changed from New to In Progress
Actions #10

Updated by Vince Lehman over 10 years ago

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

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?

Actions #12

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.

Actions #13

Updated by Vince Lehman about 10 years ago

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

Also available in: Atom PDF