Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 1 | nfdc-strategy |
| 2 | ============= |
| 3 | |
| 4 | SYNOPSIS |
| 5 | -------- |
| 6 | | nfdc strategy [list] |
| 7 | | nfdc set-strategy <prefix> <strategy> |
| 8 | | nfdc unset-strategy <prefix> |
| 9 | |
| 10 | DESCRIPTION |
| 11 | ----------- |
| 12 | In NFD, packet forwarding behavior is determined by forwarding pipelines and forwarding strategies. |
| 13 | The forwarding pipelines define general steps of packet processing. |
| 14 | Forwarding strategies provide the intelligence to make decision on whether, when, and where |
| 15 | to forward Interests. |
| 16 | |
| 17 | NFD contains multiple forwarding strategy implementations. |
| 18 | The strategy choice table determines which strategy is used in forwarding an Interest. |
| 19 | |
| 20 | The **nfdc strategy list** command shows the strategy choices. |
| 21 | |
| 22 | The **nfdc set-strategy** command sets the strategy for a name prefix. |
| 23 | |
| 24 | The **nfdc unset-strategy** command clears the strategy choice at a name prefix, |
| 25 | so that a strategy choice at a shorter prefix or the default strategy will be used. |
| 26 | It undoes a prior **nfdc set-strategy** command on the same name prefix. |
| 27 | |
| 28 | OPTIONS |
| 29 | ------- |
| 30 | <prefix> |
| 31 | The name prefix of a strategy choice. |
| 32 | The strategy choice is effective for all Interests under the name prefix, |
| 33 | unless overridden by another strategy choice. |
| 34 | Specifying ``ndn:/`` as the prefix in **nfdc set-strategy** changes the default strategy. |
| 35 | Specifying ``ndn:/`` as the prefix in **nfdc unset-strategy** is disallowed, |
| 36 | because NFD must always have a default strategy. |
| 37 | |
| 38 | <strategy> |
| 39 | A name that identifies the forwarding strategy. |
| 40 | Consult NFD Developer's Guide for a complete list of all implemented strategies. |
| 41 | |
| 42 | SEE ALSO |
| 43 | -------- |
| 44 | nfd(1), nfdc(1) |