blob: f9dd1fd0beac57c35727cdc78611236a395779f7 [file] [log] [blame]
Junxiao Shi6c135622016-11-21 14:30:33 +00001nfdc-face
2=========
3
4SYNOPSIS
5--------
Junxiao Shi0d976922017-04-01 14:35:21 +00006| nfdc face [list [[remote] <FACEURI>] [local <FACEURI>] [scheme <SCHEME>]]
Junxiao Shid6958012017-02-20 03:34:48 +00007| nfdc face show [id] <FACEID>
Davide Pesaventod2147442018-02-19 23:58:17 -05008| nfdc face create [remote] <FACEURI> [[persistency] <PERSISTENCY>] [local <FACEURI>]
9| [reliability on|off] [congestion-marking on|off]
10| [congestion-marking-interval <MARKING-INTERVAL>]
11| [default-congestion-threshold <CONGESTION-THRESHOLD>]
Junxiao Shid6958012017-02-20 03:34:48 +000012| nfdc face destroy [face] <FACEID|FACEURI>
Junxiao Shi1d7fef52017-02-02 05:33:14 +000013| nfdc channel [list]
Junxiao Shi6c135622016-11-21 14:30:33 +000014
15DESCRIPTION
16-----------
17In NFD, a face is the generalization of network interface.
18It could be a physical network interface to communicate on a physical link,
19an overlay communication channel between NFD and a remote node,
20or an inter-process communication channel between NFD and a local application.
21
Junxiao Shi0d976922017-04-01 14:35:21 +000022The **nfdc face list** command shows a list of faces, their properties, and statistics,
23optionally filtered by remote endpoint, local endpoint, and FaceUri scheme.
24When multiple filters are specified, returned faces must satisfy all filters.
Junxiao Shi6c135622016-11-21 14:30:33 +000025
Junxiao Shi1f481fa2017-01-26 15:14:43 +000026The **nfdc face show** command shows properties and statistics of one specific face.
27
Junxiao Shi0d976922017-04-01 14:35:21 +000028The **nfdc face create** command creates a UDP unicast, TCP, or Ethernet unicast face.
29Local FaceUri is required for creating Ethernet unicast faces; otherwise it must be omitted.
Eric Newberry84d3adc2017-08-09 23:31:40 -040030The NDNLPv2 unicast reliability feature may be explicitly enabled by specifying **reliability on**
31or explicitly disabled by specifying **reliability off**.
32If enabled, this feature must also be enabled on the other endpoint to function properly.
Eric Newberryde332452018-01-30 11:45:32 -070033Reliability is disabled by default.
34The send queue congestion detection and signaling feature may be explicitly enabled by specifying
35**congestion-marking on** or explicitly disabled by specifying **congestion-marking off**.
Eric Newberry17d18492018-02-10 22:50:06 -070036Congestion marking is enabled by default on TCP, UDP, and Unix stream faces and is disabled by
37default on all other face types.
Eric Newberryde332452018-01-30 11:45:32 -070038Parameters for this feature can set with the **congestion-marking-interval** option (specified in
39milliseconds) and the **default-congestion-threshold** option (specified in bytes).
Junxiao Shi6c135622016-11-21 14:30:33 +000040
Junxiao Shi05dd4442017-02-06 22:50:07 +000041The **nfdc face destroy** command destroys an existing face.
Junxiao Shi6c135622016-11-21 14:30:33 +000042
Junxiao Shi1d7fef52017-02-02 05:33:14 +000043The **nfdc channel list** command shows a list of channels.
44Channels are listening sockets that can accept incoming connections and create new faces.
45
Junxiao Shi6c135622016-11-21 14:30:33 +000046OPTIONS
47-------
Junxiao Shif0dfb332017-02-02 05:32:25 +000048<FACEID>
Junxiao Shi1f481fa2017-01-26 15:14:43 +000049 Numerical identifier of the face.
Junxiao Shi1d7fef52017-02-02 05:33:14 +000050 It is displayed in the output of **nfdc face list** and **nfdc face create** commands.
Junxiao Shi1f481fa2017-01-26 15:14:43 +000051
Junxiao Shif0dfb332017-02-02 05:32:25 +000052<FACEURI>
Junxiao Shi0d976922017-04-01 14:35:21 +000053 A URI representing the remote or local endpoint of a face.
54 Examples:
Junxiao Shi6c135622016-11-21 14:30:33 +000055
Junxiao Shi0d976922017-04-01 14:35:21 +000056 - udp4://192.0.2.1:6363
57 - udp6://[2001:db8::1]:6363
58 - udp://example.net
59 - tcp4://192.0.2.1:6363
60 - tcp6://[2001:db8::1]:6363
61 - tcp://example.net
62 - unix:///var/run/nfd.sock
63 - fd://6
64 - ether://[08:00:27:01:01:01]
65 - dev://eth0
Junxiao Shi6c135622016-11-21 14:30:33 +000066
67 When a hostname is specified, a DNS query is used to obtain the IP address.
68
Junxiao Shi0d976922017-04-01 14:35:21 +000069<SCHEME>
70 The scheme portion of either remote or local endpoint.
71 Examples:
72
73 - udp4
74 - unix
75 - dev
76
Junxiao Shi1d7fef52017-02-02 05:33:14 +000077<PERSISTENCY>
78 Either "persistent" or "permanent".
79 A "persistent" face (the default) is closed when a socket error occurs.
80 A "permanent" face survives socket errors, and is closed only with a **nfdc destroy** command.
81
Eric Newberryde332452018-01-30 11:45:32 -070082<MARKING-INTERVAL>
83 The initial marking interval (in milliseconds) during an incident of congestion.
84
85<CONGESTION-THRESHOLD>
86 This value serves two purposes:
87 It is the maximum bound of the congestion threshold for the face, as well as the default
88 threshold used if the face does not support retrieving the capacity of the send queue.
89
Junxiao Shi1f481fa2017-01-26 15:14:43 +000090EXIT CODES
91----------
Junxiao Shi1f481fa2017-01-26 15:14:43 +0000920: Success
93
941: An unspecified error occurred
95
962: Malformed command line
97
Junxiao Shi05dd4442017-02-06 22:50:07 +0000983: Face not found (**nfdc face show** and **nfdc face destroy** only)
Junxiao Shi6c135622016-11-21 14:30:33 +000099
Junxiao Shi05dd4442017-02-06 22:50:07 +00001004: FaceUri canonization failed (**nfdc face create** and **nfdc face destroy** only)
101
1025: Ambiguous: multiple matching faces are found (**nfdc face destroy** only)
Junxiao Shi1d7fef52017-02-02 05:33:14 +0000103
Junxiao Shi0e13e1e2018-01-22 08:29:12 +0000104EXAMPLES
105--------
106nfdc face list
107 List all faces.
108
109nfdc face list scheme udp4
110 List all UDP-over-IPv4 faces.
111
112nfdc face show id 300
113 Show information about the face whose FaceId is 300.
114
115nfdc face create remote udp://router.example.net
116 Create a face with the specified remote FaceUri, keeping all other settings at their defaults.
117
118nfdc face create remote ether://[08:00:27:01:01:01] local dev://eth2 persistency permanent
119 Create a face with the specified remote FaceUri, local FaceUri, and persistency.
120
121nfdc face create remote udp://router.example.net reliability on
122 Create a face with the specified remote FaceUri and enable NDNLP reliability.
123
Eric Newberry17d18492018-02-10 22:50:06 -0700124nfdc face create remote udp://router.example.net congestion-marking-interval 100 default-congestion-threshold 65536
125 Create a face with the specified remote FaceUri. Set the base congestion marking interval to
126 100 ms and the default congestion threshold to 65536 bytes.
127
128nfdc face create remote udp://router.example.net congestion-marking off
129 Create a face with the specified remote FaceUri and explicitly disable congestion marking.
Eric Newberryde332452018-01-30 11:45:32 -0700130
Junxiao Shi0e13e1e2018-01-22 08:29:12 +0000131nfdc face destroy 300
132 Destroy the face whose FaceId is 300.
133
134nfdc face destroy udp4://192.0.2.1:6363
135 Destroy the face whose remote FaceUri is "udp4://192.0.2.1:6363".
136
Junxiao Shi6c135622016-11-21 14:30:33 +0000137SEE ALSO
138--------
139nfd(1), nfdc(1)