Project

General

Profile

Actions

Task #1388

closed

nfdc and nfd-status test scenario

Added by Yi Huang about 10 years ago. Updated almost 10 years ago.

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

100%

Estimated time:
5.00 h

Description

Topology: A-B connected on same IPv4 subnet and same IPv6 subnet. Both are NDN nodes.

Script is invoked on host A. Script should control other hosts over ssh.

multi-host.conf has these variables defined: CTRL_B, IP4_A1, IP6_A1, IP4_B1, IP6_B1

nfdc create / add-nexthop / destroy test case

  1. Start NFD on host A and B.
    Unless otherwise noted, perform all steps below on host A.
  2. Execute nfd-status. Check the existence of udp4/udp6/ether multicast faces.
  3. Invoke nfdc create tcp://$IP4_B1. Pause 2 seconds for connection establishment.
  4. Execute nfd-status. Check the existence of new tcp4 face.
  5. Invoke nfdc create tcp://[$IP6_B1]. Pause 2 seconds for connection establishment.
  6. Execute nfd-status. Check the existence of new tcp6 face.
  7. Invoke nfdc create udp://$IP4_B1. Pause 2 seconds for connection establishment.
  8. Execute nfd-status. Check the existence of new udp4 face.
  9. Invoke nfdc create udp://[$IP6_B1]. Pause 2 seconds for connection establishment.
  10. Execute nfd-status. Check the existence of new udp6 face.
  11. Invoke nfdc to add a nexthop for ndn:/test-nfdc with cost 24 toward FaceId created in step 3.
  12. Invoke nfdc to add a nexthop for ndn:/test-nfdc with cost 26 toward FaceId created in step 5.
  13. Invoke nfdc to add a nexthop for ndn:/test-nfdc with cost 14 toward FaceId created in step 7.
  14. Invoke nfdc to add a nexthop for ndn:/test-nfdc with cost 16 toward FaceId created in step 9.
  15. Execute nfd-status. Check the existence of ndn:/test-nfdc FIB entry, and the correctness of cost on nexthop records.
  16. Invoke nfdc to choose BroadcastStrategy for ndn:/ namespace.
  17. Invoke ndn-tlv-ping to send 100 Interests under ndn:/test-nfdc prefix.
    Pause 50ms before sending each Interest.
  18. Execute nfd-status. Verify NOutInterests counters of faces created in step 3,5,7,9 are greater than 60.
  19. On host B, execute nfd-status. Check the existence of tcp4, tcp6, udp4, udp6 faces with host A's address. Verify NInInterests counters for those faces are greater than 60.
  20. Invoke nfdc to destroy FaceIds created in step 3,5.
  21. Execute nfd-status. Check the non-existence of tcp4 and tcp6 faces.

nfdc add-nexthop / remove-nexthop test case

  1. Start NFD on host A and B.
    Unless otherwise noted, perform all steps below on host A.
  2. Invoke nfdc add-nexthop -c 44 ndn:/test-nfdc udp4://$IP4_B1. Pause 2 seconds for connection establishment.
  3. Execute nfd-status. Check the existence of new tcp4 face. Check the existence of ndn:/test-nfdc FIB entry, and the correctness of cost on nexthop records.
  4. Invoke nfdc to remove the nexthop for FaceId seen in step 3.
  5. Execute nfd-status. Check the non-existence of ndn:/test-nfdc FIB entry.

nfdc register / unregister test case

  1. Start NFD on host A and B.
    Unless otherwise noted, perform all steps below on host A.
  2. Invoke nfdc register -c 55 ndn:/test-nfdc udp4://$IP4_B1. Pause 2 seconds for connection establishment.
  3. Execute nfd-status. Check the existence of new tcp4 face. Check the existence of ndn:/test-nfdc FIB entry, and the correctness of cost on nexthop records.
  4. Invoke nfdc to unregister the prefix ndn:/test-nfdc for FaceId seen in step 3.
  5. Execute nfd-status. Check the non-existence of ndn:/test-nfdc FIB entry.

Script can assume integrated test suite is cloned to all hosts, necessary programs are installed and accessible in $PATH, and current user can ssh to other hosts and has sudo privilege.


Files

result_c858-5.tgz (55.1 KB) result_c858-5.tgz Junxiao Shi, 05/29/2014 03:50 PM
result_c858-6.zip (55.2 KB) result_c858-6.zip Junxiao Shi, 05/29/2014 11:22 PM
result_c858-7.tgz (55.3 KB) result_c858-7.tgz Junxiao Shi, 06/10/2014 02:54 PM
result_c858-8.zip (60.1 KB) result_c858-8.zip Junxiao Shi, 06/12/2014 12:07 AM
Actions

Also available in: Atom PDF