Project

General

Profile

Task #1444

Hub Discovery test scenario

Added by Beichuan Zhang over 7 years ago. Updated over 7 years ago.

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

100%

Estimated time:

Description

Topology

B---A---R---D

A,B,D are NDN hosts.

R is an IP router and is not NDN host; R does not forward multicast packets.

Script is invoked on host A. It can control other hosts via ssh.

  1. On host A,
    1. start NFD
    2. start ndn-autoconfig-server, set FaceUri to udp4://10.63.18.1
    3. start bind to serve these records
      • _ndn._udp.autoconfig-test.named-data.net => 10.63.18.2
      • _ndn._udp.autoconfig-test.tmp._homehub._autoconf.named-data.net => 10.63.18.3
  2. On host B
    1. invoke ndnsec-keygen /tmp/autoconfig-test | ndnsec-install-cert -
    2. in /etc/resolv.conf, set DNS Server to A's IP address on A-B link, set DNS search domain to autoconfig-test.named-data.net (stage 2 would work, but autoconfig tool should try stage 1 first)
    3. start NFD
    4. invoke nfd-autoconfig
    5. execute nfd-status -f,
      • search output for 10.63.18.1, fail if not found.
      • search output for 10.63.18.2, fail if found.
      • search output for 10.63.18.3, fail if found.
    6. stop NFD
  3. On host D, invoke ndnsec-keygen /tmp/autoconfig-test | ndnsec-install-cert -
  4. On host D,
    1. in /etc/resolv.conf, set DNS Server to A's IP address on A-R link, set DNS search domain to autoconfig-test.named-data.net
    2. start NFD
    3. invoke nfd-autoconfig
    4. execute nfd-status -f,
      • search output for 10.63.18.1, fail if found.
      • search output for 10.63.18.2, fail if not found.
      • search output for 10.63.18.3, fail if found.
    5. stop NFD
  5. On host D,
    1. in /etc/resolv.conf, set DNS Server to A's IP address on A-R link, set DNS search domain to autoconfig-test-none.named-data.net
    2. start NFD
    3. invoke nfd-autoconfig
    4. execute nfd-status -f,
      • search output for 10.63.18.1, fail if found.
      • search output for 10.63.18.2, fail if found.
      • search output for 10.63.18.3, fail if not found.
    5. stop NFD

Files

result_c947-3.tgz (70.1 KB) result_c947-3.tgz Junxiao Shi, 06/24/2014 04:58 AM
result_c947-6.tgz (71.2 KB) result_c947-6.tgz Junxiao Shi, 06/27/2014 03:26 PM
#1

Updated by Hila Ben Abraham over 7 years ago

  • Status changed from New to In Progress

Do we want automated script here as in #1388?

#2

Updated by Junxiao Shi over 7 years ago

Ultimately, every test scenario should be automated.

#3

Updated by Hila Ben Abraham over 7 years ago

I need some more time to verify this tool. this is my current status:

Step 1:

ndn-autoconfig-server fails to register a FaceMgmt uri. I need more time to debug it to understand if I'm doing something wrong here.

Step 2 (After setting: search ndnsim.net):

I get the next uri: udp://spurs.cs.ucla.edu:1395, but whenever I try to connect to this uri, I get:
ERROR: Failed to create face: : Unauthorized command (code: 403)

Step 3:

Is there anyway to test it using a tmp certificate?

#4

Updated by Alex Afanasyev over 7 years ago

For step 3, just create a self-signed certificate with the "correct" name.

#5

Updated by Hila Ben Abraham over 7 years ago

  • % Done changed from 0 to 80

All stages passed.

I suspect that we need to set a larger timeout to ndn-autoconfig-server, what do you think?

80% represents manual tests as well as a basic script. I still need to modify the script to use the integration framework.

#6

Updated by Alex Afanasyev over 7 years ago

Hila, is it a typo about the port number returned by DNS query (1395) or is it that you're getting in the script? The port configured in DNS entry is 6363.

There is no need to modify timeout for the server. The current timeout is long enough (~4 seconds).

#7

Updated by Junxiao Shi over 7 years ago

  • Subject changed from Test Hub Discovery tool to Hub Discovery test scenario
  • Description updated (diff)
#8

Updated by Hila Ben Abraham over 7 years ago

Alex, it's not a typo... it's a bug. be16toh is missing. I'll fix it now.

#9

Updated by Hila Ben Abraham over 7 years ago

I actually already use be16toh, but I'm taking the port number at the wrong place...

#10

Updated by Hila Ben Abraham over 7 years ago

After solving #1550, I get:

Stage2:

Stage 1: Trying multicast discovery...
Timeout
Stage 2: Trying DNS query with default suffix...
about to connect to: udp://spurs.cs.ucla.edu:6363
Successfully created face: ControlParameters(FaceId: 45, Uri: udp://spurs.cs.ucla.edu:6363, )

Stage 3:

Stage3: About to query for a home router: _ndn._udp.hila.wustl.edu.ndn._homehub._autoconf.named-data.net
about to connect to: udp://momcat.arl.wustl.edu:6363
Successfully created face: ControlParameters(FaceId: 43, Uri: udp://momcat.arl.wustl.edu:6363, )

I am ready to push the changes if that looks OK.

#11

Updated by Hila Ben Abraham over 7 years ago

Sorry, I can't modify the previous comment and it looks bad...

Stage2:

Stage 1: Trying multicast discovery... 
Timeout Stage 
2: Trying DNS query with default suffix... 
about to connect to: udp://spurs.cs.ucla.edu:6363 Successfully created face: ControlParameters(FaceId: 45, Uri: udp://spurs.cs.ucla.edu:6363, )

Stage 3:

Stage3: About to query for a home router: ndn.udp.hila.wustl.edu.ndn.homehub.autoconf.named-data.net 
about to connect to:     
udp://momcat.arl.wustl.edu:6363 Successfully created face: ControlParameters(FaceId: 43, Uri: udp://momcat.arl.wustl.edu:6363, )
#12

Updated by Alex Afanasyev over 7 years ago

  • Target version changed from v0.1 to v0.2
#13

Updated by Junxiao Shi over 7 years ago

  • Description updated (diff)

I'm correcting a mistake in the spec.
Stage 2 and 3 testing must be done on host D, because A and D cannot talk over multicast.

#14

Updated by Junxiao Shi over 7 years ago

uploading patchset 3 log

#15

Updated by Junxiao Shi over 7 years ago

  • Description updated (diff)

Correcting another mistake.
Host B should be configured such that Stage 1, 2, and 3 can all work, but ndn-autoconfig tool should try stage 1 first.

#16

Updated by Junxiao Shi over 7 years ago

upload patchset 6 verification logs

#17

Updated by Alex Afanasyev over 7 years ago

  • Target version changed from v0.2 to v0.3
#18

Updated by Junxiao Shi over 7 years ago

  • Status changed from In Progress to Closed
  • Start date deleted (04/03/2014)
  • % Done changed from 80 to 100

This Task is finally complete after being open for almost 3 months.

Also available in: Atom PDF