Project

General

Profile

HubDiscovery » History » Version 1

Alex Afanasyev, 01/31/2014 10:41 PM

1 1 Alex Afanasyev
NDN hub discovery procedure
2
===========================
3
4
1. Add multicast face, issue interest for ``/local/ndn/udp``
5
6
    *   if data returned, configure face to the hub and finish auto-config
7
8
    *   auto-configured face is remembered using creating a "fake" route to ``/autoconf`` prefix
9
10
2. If previous step failed, issue the following DNS query using dig command 
11
12
        dig +search +short +cmd +tries=2 +ndots=10 _nfd._udp srv
13
14
    *   if valid data returned, get the first returned data, configure face, and finish auto-config
15
16
    *   auto-configured face is remembered using creating a "fake" route to /autoconf prefix
17
18
3. If previous steps failed:
19
20
    *   Obtain name of the default certificate configured for the user
21
22
    *   Try to extract site-specific part from the certificate name (TBD).  If failed, abort auto-configuration step.
23
24
    *   Append ``_homehub._autoconf.named-data.net.`` postfix to the site-specific DNSified name, e.g.
25
26
            alex.ucla.edu._homehub._autoconf.named-data.net.
27
28
    *   Issue a SRV dns query with ``_ndnx._udp`` prefix (not really necessary, but should do it for clarity)