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