blob: 37c6c0663ae7ea6c2add09a44ffd0ae221cb7d78 [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>
Eric Newberryde332452018-01-30 11:45:32 -07008| nfdc face create [remote] <FACEURI> [[persistency] <PERSISTENCY>] [local <FACEURI>] [reliability on|off] [congestion-marking on|off] [congestion-marking-interval <MARKING-INTERVAL>] [default-congestion-threshold <CONGESTION-THRESHOLD>]
Junxiao Shid6958012017-02-20 03:34:48 +00009| nfdc face destroy [face] <FACEID|FACEURI>
Junxiao Shi1d7fef52017-02-02 05:33:14 +000010| nfdc channel [list]
Junxiao Shi6c135622016-11-21 14:30:33 +000011
12DESCRIPTION
13-----------
14In NFD, a face is the generalization of network interface.
15It could be a physical network interface to communicate on a physical link,
16an overlay communication channel between NFD and a remote node,
17or an inter-process communication channel between NFD and a local application.
18
Junxiao Shi0d976922017-04-01 14:35:21 +000019The **nfdc face list** command shows a list of faces, their properties, and statistics,
20optionally filtered by remote endpoint, local endpoint, and FaceUri scheme.
21When multiple filters are specified, returned faces must satisfy all filters.
Junxiao Shi6c135622016-11-21 14:30:33 +000022
Junxiao Shi1f481fa2017-01-26 15:14:43 +000023The **nfdc face show** command shows properties and statistics of one specific face.
24
Junxiao Shi0d976922017-04-01 14:35:21 +000025The **nfdc face create** command creates a UDP unicast, TCP, or Ethernet unicast face.
26Local FaceUri is required for creating Ethernet unicast faces; otherwise it must be omitted.
Eric Newberry84d3adc2017-08-09 23:31:40 -040027The NDNLPv2 unicast reliability feature may be explicitly enabled by specifying **reliability on**
28or explicitly disabled by specifying **reliability off**.
29If enabled, this feature must also be enabled on the other endpoint to function properly.
Eric Newberryde332452018-01-30 11:45:32 -070030Reliability is disabled by default.
31The send queue congestion detection and signaling feature may be explicitly enabled by specifying
32**congestion-marking on** or explicitly disabled by specifying **congestion-marking off**.
Eric Newberry17d18492018-02-10 22:50:06 -070033Congestion marking is enabled by default on TCP, UDP, and Unix stream faces and is disabled by
34default on all other face types.
Eric Newberryde332452018-01-30 11:45:32 -070035Parameters for this feature can set with the **congestion-marking-interval** option (specified in
36milliseconds) and the **default-congestion-threshold** option (specified in bytes).
Junxiao Shi6c135622016-11-21 14:30:33 +000037
Junxiao Shi05dd4442017-02-06 22:50:07 +000038The **nfdc face destroy** command destroys an existing face.
Junxiao Shi6c135622016-11-21 14:30:33 +000039
Junxiao Shi1d7fef52017-02-02 05:33:14 +000040The **nfdc channel list** command shows a list of channels.
41Channels are listening sockets that can accept incoming connections and create new faces.
42
Junxiao Shi6c135622016-11-21 14:30:33 +000043OPTIONS
44-------
Junxiao Shif0dfb332017-02-02 05:32:25 +000045<FACEID>
Junxiao Shi1f481fa2017-01-26 15:14:43 +000046 Numerical identifier of the face.
Junxiao Shi1d7fef52017-02-02 05:33:14 +000047 It is displayed in the output of **nfdc face list** and **nfdc face create** commands.
Junxiao Shi1f481fa2017-01-26 15:14:43 +000048
Junxiao Shif0dfb332017-02-02 05:32:25 +000049<FACEURI>
Junxiao Shi0d976922017-04-01 14:35:21 +000050 A URI representing the remote or local endpoint of a face.
51 Examples:
Junxiao Shi6c135622016-11-21 14:30:33 +000052
Junxiao Shi0d976922017-04-01 14:35:21 +000053 - udp4://192.0.2.1:6363
54 - udp6://[2001:db8::1]:6363
55 - udp://example.net
56 - tcp4://192.0.2.1:6363
57 - tcp6://[2001:db8::1]:6363
58 - tcp://example.net
59 - unix:///var/run/nfd.sock
60 - fd://6
61 - ether://[08:00:27:01:01:01]
62 - dev://eth0
Junxiao Shi6c135622016-11-21 14:30:33 +000063
64 When a hostname is specified, a DNS query is used to obtain the IP address.
65
Junxiao Shi0d976922017-04-01 14:35:21 +000066<SCHEME>
67 The scheme portion of either remote or local endpoint.
68 Examples:
69
70 - udp4
71 - unix
72 - dev
73
Junxiao Shi1d7fef52017-02-02 05:33:14 +000074<PERSISTENCY>
75 Either "persistent" or "permanent".
76 A "persistent" face (the default) is closed when a socket error occurs.
77 A "permanent" face survives socket errors, and is closed only with a **nfdc destroy** command.
78
Eric Newberryde332452018-01-30 11:45:32 -070079<MARKING-INTERVAL>
80 The initial marking interval (in milliseconds) during an incident of congestion.
81
82<CONGESTION-THRESHOLD>
83 This value serves two purposes:
84 It is the maximum bound of the congestion threshold for the face, as well as the default
85 threshold used if the face does not support retrieving the capacity of the send queue.
86
Junxiao Shi1f481fa2017-01-26 15:14:43 +000087EXIT CODES
88----------
Junxiao Shi1f481fa2017-01-26 15:14:43 +0000890: Success
90
911: An unspecified error occurred
92
932: Malformed command line
94
Junxiao Shi05dd4442017-02-06 22:50:07 +0000953: Face not found (**nfdc face show** and **nfdc face destroy** only)
Junxiao Shi6c135622016-11-21 14:30:33 +000096
Junxiao Shi05dd4442017-02-06 22:50:07 +0000974: FaceUri canonization failed (**nfdc face create** and **nfdc face destroy** only)
98
995: Ambiguous: multiple matching faces are found (**nfdc face destroy** only)
Junxiao Shi1d7fef52017-02-02 05:33:14 +0000100
Junxiao Shi0e13e1e2018-01-22 08:29:12 +0000101EXAMPLES
102--------
103nfdc face list
104 List all faces.
105
106nfdc face list scheme udp4
107 List all UDP-over-IPv4 faces.
108
109nfdc face show id 300
110 Show information about the face whose FaceId is 300.
111
112nfdc face create remote udp://router.example.net
113 Create a face with the specified remote FaceUri, keeping all other settings at their defaults.
114
115nfdc face create remote ether://[08:00:27:01:01:01] local dev://eth2 persistency permanent
116 Create a face with the specified remote FaceUri, local FaceUri, and persistency.
117
118nfdc face create remote udp://router.example.net reliability on
119 Create a face with the specified remote FaceUri and enable NDNLP reliability.
120
Eric Newberry17d18492018-02-10 22:50:06 -0700121nfdc face create remote udp://router.example.net congestion-marking-interval 100 default-congestion-threshold 65536
122 Create a face with the specified remote FaceUri. Set the base congestion marking interval to
123 100 ms and the default congestion threshold to 65536 bytes.
124
125nfdc face create remote udp://router.example.net congestion-marking off
126 Create a face with the specified remote FaceUri and explicitly disable congestion marking.
Eric Newberryde332452018-01-30 11:45:32 -0700127
Junxiao Shi0e13e1e2018-01-22 08:29:12 +0000128nfdc face destroy 300
129 Destroy the face whose FaceId is 300.
130
131nfdc face destroy udp4://192.0.2.1:6363
132 Destroy the face whose remote FaceUri is "udp4://192.0.2.1:6363".
133
Junxiao Shi6c135622016-11-21 14:30:33 +0000134SEE ALSO
135--------
136nfd(1), nfdc(1)