Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 1 | nfdc-face |
| 2 | ========= |
| 3 | |
| 4 | SYNOPSIS |
| 5 | -------- |
Junxiao Shi | 0d97692 | 2017-04-01 14:35:21 +0000 | [diff] [blame] | 6 | | nfdc face [list [[remote] <FACEURI>] [local <FACEURI>] [scheme <SCHEME>]] |
Junxiao Shi | d695801 | 2017-02-20 03:34:48 +0000 | [diff] [blame] | 7 | | nfdc face show [id] <FACEID> |
Davide Pesavento | d214744 | 2018-02-19 23:58:17 -0500 | [diff] [blame] | 8 | | 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>] |
Eric Newberry | 4f8dd96 | 2018-06-17 21:32:07 -0700 | [diff] [blame] | 12 | | [mtu <MTU>] |
Junxiao Shi | d695801 | 2017-02-20 03:34:48 +0000 | [diff] [blame] | 13 | | nfdc face destroy [face] <FACEID|FACEURI> |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 14 | | nfdc channel [list] |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 15 | |
| 16 | DESCRIPTION |
| 17 | ----------- |
| 18 | In NFD, a face is the generalization of network interface. |
| 19 | It could be a physical network interface to communicate on a physical link, |
| 20 | an overlay communication channel between NFD and a remote node, |
| 21 | or an inter-process communication channel between NFD and a local application. |
| 22 | |
Junxiao Shi | 0d97692 | 2017-04-01 14:35:21 +0000 | [diff] [blame] | 23 | The **nfdc face list** command shows a list of faces, their properties, and statistics, |
| 24 | optionally filtered by remote endpoint, local endpoint, and FaceUri scheme. |
| 25 | When multiple filters are specified, returned faces must satisfy all filters. |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 26 | |
Junxiao Shi | 1f481fa | 2017-01-26 15:14:43 +0000 | [diff] [blame] | 27 | The **nfdc face show** command shows properties and statistics of one specific face. |
| 28 | |
Junxiao Shi | 0d97692 | 2017-04-01 14:35:21 +0000 | [diff] [blame] | 29 | The **nfdc face create** command creates a UDP unicast, TCP, or Ethernet unicast face. |
Eric Newberry | 13ff259 | 2020-03-06 17:32:29 -0800 | [diff] [blame] | 30 | If the face already exists, the specified arguments will be used to update its properties, if |
| 31 | possible. |
Junxiao Shi | 0d97692 | 2017-04-01 14:35:21 +0000 | [diff] [blame] | 32 | Local FaceUri is required for creating Ethernet unicast faces; otherwise it must be omitted. |
Eric Newberry | 84d3adc | 2017-08-09 23:31:40 -0400 | [diff] [blame] | 33 | The NDNLPv2 unicast reliability feature may be explicitly enabled by specifying **reliability on** |
| 34 | or explicitly disabled by specifying **reliability off**. |
| 35 | If enabled, this feature must also be enabled on the other endpoint to function properly. |
Eric Newberry | de33245 | 2018-01-30 11:45:32 -0700 | [diff] [blame] | 36 | Reliability is disabled by default. |
| 37 | The send queue congestion detection and signaling feature may be explicitly enabled by specifying |
| 38 | **congestion-marking on** or explicitly disabled by specifying **congestion-marking off**. |
Eric Newberry | 17d1849 | 2018-02-10 22:50:06 -0700 | [diff] [blame] | 39 | Congestion marking is enabled by default on TCP, UDP, and Unix stream faces and is disabled by |
| 40 | default on all other face types. |
Eric Newberry | de33245 | 2018-01-30 11:45:32 -0700 | [diff] [blame] | 41 | Parameters for this feature can set with the **congestion-marking-interval** option (specified in |
| 42 | milliseconds) and the **default-congestion-threshold** option (specified in bytes). |
Eric Newberry | 13ff259 | 2020-03-06 17:32:29 -0800 | [diff] [blame] | 43 | The effective MTUs of unicast Ethernet and UDP faces may be overridden using the **mtu** parameter |
| 44 | (specified in bytes). |
| 45 | The forwarder may limit the range of this override MTU and will use the minimum of it and the MTU |
| 46 | of the underlying Ethernet or UDP transport. |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 47 | |
Junxiao Shi | 05dd444 | 2017-02-06 22:50:07 +0000 | [diff] [blame] | 48 | The **nfdc face destroy** command destroys an existing face. |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 49 | |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 50 | The **nfdc channel list** command shows a list of channels. |
| 51 | Channels are listening sockets that can accept incoming connections and create new faces. |
| 52 | |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 53 | OPTIONS |
| 54 | ------- |
Junxiao Shi | f0dfb33 | 2017-02-02 05:32:25 +0000 | [diff] [blame] | 55 | <FACEID> |
Junxiao Shi | 1f481fa | 2017-01-26 15:14:43 +0000 | [diff] [blame] | 56 | Numerical identifier of the face. |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 57 | It is displayed in the output of **nfdc face list** and **nfdc face create** commands. |
Junxiao Shi | 1f481fa | 2017-01-26 15:14:43 +0000 | [diff] [blame] | 58 | |
Junxiao Shi | f0dfb33 | 2017-02-02 05:32:25 +0000 | [diff] [blame] | 59 | <FACEURI> |
Junxiao Shi | 0d97692 | 2017-04-01 14:35:21 +0000 | [diff] [blame] | 60 | A URI representing the remote or local endpoint of a face. |
| 61 | Examples: |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 62 | |
Junxiao Shi | 0d97692 | 2017-04-01 14:35:21 +0000 | [diff] [blame] | 63 | - udp4://192.0.2.1:6363 |
| 64 | - udp6://[2001:db8::1]:6363 |
| 65 | - udp://example.net |
| 66 | - tcp4://192.0.2.1:6363 |
| 67 | - tcp6://[2001:db8::1]:6363 |
| 68 | - tcp://example.net |
| 69 | - unix:///var/run/nfd.sock |
| 70 | - fd://6 |
| 71 | - ether://[08:00:27:01:01:01] |
| 72 | - dev://eth0 |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 73 | |
| 74 | When a hostname is specified, a DNS query is used to obtain the IP address. |
| 75 | |
Junxiao Shi | 0d97692 | 2017-04-01 14:35:21 +0000 | [diff] [blame] | 76 | <SCHEME> |
| 77 | The scheme portion of either remote or local endpoint. |
| 78 | Examples: |
| 79 | |
| 80 | - udp4 |
| 81 | - unix |
| 82 | - dev |
| 83 | |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 84 | <PERSISTENCY> |
| 85 | Either "persistent" or "permanent". |
| 86 | A "persistent" face (the default) is closed when a socket error occurs. |
| 87 | A "permanent" face survives socket errors, and is closed only with a **nfdc destroy** command. |
| 88 | |
Eric Newberry | de33245 | 2018-01-30 11:45:32 -0700 | [diff] [blame] | 89 | <MARKING-INTERVAL> |
| 90 | The initial marking interval (in milliseconds) during an incident of congestion. |
| 91 | |
| 92 | <CONGESTION-THRESHOLD> |
| 93 | This value serves two purposes: |
| 94 | It is the maximum bound of the congestion threshold for the face, as well as the default |
| 95 | threshold used if the face does not support retrieving the capacity of the send queue. |
| 96 | |
Eric Newberry | 13ff259 | 2020-03-06 17:32:29 -0800 | [diff] [blame] | 97 | <MTU> |
| 98 | The MTU used to override the MTU of the underlying transport on Ethernet and UDP faces. |
| 99 | This MTU serves as an upper bound for the MTU provided by the transport. |
| 100 | The range of acceptable values may be limited by the forwarder. |
| 101 | To unset this override, specify the MTU as "auto". |
| 102 | |
Junxiao Shi | 1f481fa | 2017-01-26 15:14:43 +0000 | [diff] [blame] | 103 | EXIT CODES |
| 104 | ---------- |
Junxiao Shi | 1f481fa | 2017-01-26 15:14:43 +0000 | [diff] [blame] | 105 | 0: Success |
| 106 | |
| 107 | 1: An unspecified error occurred |
| 108 | |
| 109 | 2: Malformed command line |
| 110 | |
Junxiao Shi | 05dd444 | 2017-02-06 22:50:07 +0000 | [diff] [blame] | 111 | 3: Face not found (**nfdc face show** and **nfdc face destroy** only) |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 112 | |
Junxiao Shi | 05dd444 | 2017-02-06 22:50:07 +0000 | [diff] [blame] | 113 | 4: FaceUri canonization failed (**nfdc face create** and **nfdc face destroy** only) |
| 114 | |
| 115 | 5: Ambiguous: multiple matching faces are found (**nfdc face destroy** only) |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 116 | |
Junxiao Shi | 0e13e1e | 2018-01-22 08:29:12 +0000 | [diff] [blame] | 117 | EXAMPLES |
| 118 | -------- |
| 119 | nfdc face list |
| 120 | List all faces. |
| 121 | |
| 122 | nfdc face list scheme udp4 |
| 123 | List all UDP-over-IPv4 faces. |
| 124 | |
| 125 | nfdc face show id 300 |
| 126 | Show information about the face whose FaceId is 300. |
| 127 | |
| 128 | nfdc face create remote udp://router.example.net |
| 129 | Create a face with the specified remote FaceUri, keeping all other settings at their defaults. |
| 130 | |
| 131 | nfdc face create remote ether://[08:00:27:01:01:01] local dev://eth2 persistency permanent |
| 132 | Create a face with the specified remote FaceUri, local FaceUri, and persistency. |
| 133 | |
| 134 | nfdc face create remote udp://router.example.net reliability on |
| 135 | Create a face with the specified remote FaceUri and enable NDNLP reliability. |
| 136 | |
Eric Newberry | 17d1849 | 2018-02-10 22:50:06 -0700 | [diff] [blame] | 137 | nfdc face create remote udp://router.example.net congestion-marking-interval 100 default-congestion-threshold 65536 |
| 138 | Create a face with the specified remote FaceUri. Set the base congestion marking interval to |
| 139 | 100 ms and the default congestion threshold to 65536 bytes. |
| 140 | |
| 141 | nfdc face create remote udp://router.example.net congestion-marking off |
| 142 | Create a face with the specified remote FaceUri and explicitly disable congestion marking. |
Eric Newberry | de33245 | 2018-01-30 11:45:32 -0700 | [diff] [blame] | 143 | |
Eric Newberry | 4f8dd96 | 2018-06-17 21:32:07 -0700 | [diff] [blame] | 144 | nfdc face create remote udp://router.example.net mtu 4000 |
Eric Newberry | 13ff259 | 2020-03-06 17:32:29 -0800 | [diff] [blame] | 145 | Create a face with the specified remote FaceUri and set the override MTU to 4000 bytes. |
Eric Newberry | 4f8dd96 | 2018-06-17 21:32:07 -0700 | [diff] [blame] | 146 | |
Junxiao Shi | 0e13e1e | 2018-01-22 08:29:12 +0000 | [diff] [blame] | 147 | nfdc face destroy 300 |
| 148 | Destroy the face whose FaceId is 300. |
| 149 | |
| 150 | nfdc face destroy udp4://192.0.2.1:6363 |
| 151 | Destroy the face whose remote FaceUri is "udp4://192.0.2.1:6363". |
| 152 | |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 153 | SEE ALSO |
| 154 | -------- |
| 155 | nfd(1), nfdc(1) |