NDN-A...ONFIG(1)
hey bestie π welcome to the ndn-autoconfig page from the Named Data Networking Forwarding Daemon (NFD) manual β the one labeled NDN-A...ONFIG(1). this is gonna be fun, i promise π«Ά
πΈ NAME πΈ
ndn-autoconfig β auto-configuration client for NDN. yes bestie, that's the whole job π
β¨ SYNOPSIS β¨
ndn-autoconfig [-h] [-V] [-c file] [-d]
π DESCRIPTION π
okay so this is a client tool to run the NDN hub discovery procedure. no cap, that's it.
π OPTIONS π
-d,--daemonβ Runndn-autoconfigin daemon mode. In this mode, the auto-discovery procedure is re-run hourly or when a network change event is detected.
NOTE: if connection to NFD fails, the daemon will be terminated. π
-c FILE,--config=FILEβ Use the specified configuration file. Ifenabled = trueis not specified in the configuration file, no actions will be performed. okay so that's important β noenabled = true, no actions, periodt.--ndn-fch-url=URLβ Use the specified URL to find the closest hub (NDN-FCH protocol). If not specified,http://ndn-fch.named-data.net/will be used. Onlyhttp://URLs are supported. only http, bestie, don't try to be fancy with it π-h,--helpβ Print help message and exit. slay.-V,--versionβ Show version information and exit. iconic.
π¦ NDN HUB DISCOVERY PROCEDURE π¦
When an end host starts up, or detects a change in its network environment, it MAY use this procedure to discover a NDN router, in order to gain connectivity to the NDN research testbed (https://named-data.net/ndn-testbed/). This procedure can discover either an NDN router in the local network, or a NDN testbed gateway router (commonly known as a "hub").
π¦ Overview π¦
This procedure contains four methods to discover a NDN router:
- Look for a local NDN router by multicast. This is useful in a home or small office network.
- Look for a local NDN router by DNS query with default suffix. This allows network administrator to configure a NDN router in a large enterprise network.
- Find closest hub by sending an HTTP request to NDN-FCH server.
- Connect to the home hub according to user certificate. This ensures connectivity from anywhere.
After connecting, two prefixes will be registered toward the router:
/β this allows application communication/localhop/nfdβ this informsNFD-RIBthat there is connectivity to a router
π Stage 1: multicast discovery π
π Request π
The end host sends Interest /localhop/ndn-autoconf/hub over a multicast face.
π Response π
A producer app on the router answers this Interest with a Data packet that contains a Uri TLV element. The value of this element is the FaceUri for the router, such as a UDP tunnel.
πΈ Stage 2: DNS query with default suffix πΈ
πΈ Request πΈ
The end host sends a DNS query that is equivalent to this command:
dig +search +short +cmd +tries=2 +ndots=10 _ndn._udp srv
πΈ Response πΈ
The DNS server should answer with an SRV record that contains the hostname and UDP port number of a nearby NDN router.
β Stage 3: HTTP Request to NDN-FCH server β
This stage uses a simple HTTP-based API. For more information about NDN-FCH server, refer to the NDN-FCH README file (https://github.com/named-data/ndn-fch). iykyk π§
β Request β
HTTP/1.0 request for the NDN-FCH server URI (http://ndn-fch.named-data.net/ by default)
β Response β
The HTTP response is expected to be a hostname or an IP address of the closest hub, inferred using IP-geo approximation service.
π Stage 4: find home router π
This stage assumes that user has configured default certificate using https://ndncert.named-data.net/ as described in Certification Architecture (https://redmine.named-data.net/attachments/download/23/CertificationArchitecture.pptx).
π Request π
The end host loads the default user identity (eg. /ndn/edu/ucla/cs/afanasev), and converts it to DNS format.
The end host sends a DNS query for an SRV record of name _ndn._udp. + user identity in DNS format + _homehub._autoconf.named-data.net. For example:
_ndn._udp.afanasev.cs.ucla.edu.ndn._homehub._autoconf.named-data.net
π Response π
The DNS server should answer with an SRV record that contains the hostname and UDP port number of the home hub of this user's site.
π§ CLIENT PROCEDURE π§
Stage 1
Send a multicast discovery Interest. If this Interest is answered, connect to the router and terminate auto-discovery.
Stage 2
Send a DNS query with default suffix. If this query is answered, connect to the router and terminate auto-discovery.
Stage 3
Send HTTP request to NDN-FCH server. If request succeeds, attempt to connect to the discovered hub and terminate auto-discovery.
Stage 4
Load default user identity, and convert it to DNS format. If either fails, the auto-discovery fails.
Send a DNS query to find home hub. If this query is answered, connect to the home hub and terminate auto-discovery. Otherwise, the auto-discovery fails.
π EXIT STATUS π
0β No error.1β An unspecified error occurred.2β Malformed command line, e.g., invalid, missing, or unknown argument.4β Insufficient privileges.
π¦ SEE ALSO π¦
ndn-autoconfig-server(1), autoconfig.conf <> π
π Copyright π
Copyright Β© 2014-2024 Named Data Networking Project.
xoxo, source/version 24.07, date 1980-01-01, manual NDN-A...ONFIG(1) β periodt π
π¦ where this page comes from
- nixos 26.05: nfd 24.07
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms