blob: 1f1c29266ac7be1fc1a9eda48790c3e39268dc6e [file] [log] [blame]
Junxiao Shi6c135622016-11-21 14:30:33 +00001nfdc-strategy
2=============
3
4SYNOPSIS
5--------
6| nfdc strategy [list]
7| nfdc set-strategy <prefix> <strategy>
8| nfdc unset-strategy <prefix>
9
10DESCRIPTION
11-----------
12In NFD, packet forwarding behavior is determined by forwarding pipelines and forwarding strategies.
13The forwarding pipelines define general steps of packet processing.
14Forwarding strategies provide the intelligence to make decision on whether, when, and where
15to forward Interests.
16
17NFD contains multiple forwarding strategy implementations.
18The strategy choice table determines which strategy is used in forwarding an Interest.
19
20The **nfdc strategy list** command shows the strategy choices.
21
22The **nfdc set-strategy** command sets the strategy for a name prefix.
23
24The **nfdc unset-strategy** command clears the strategy choice at a name prefix,
25so that a strategy choice at a shorter prefix or the default strategy will be used.
26It undoes a prior **nfdc set-strategy** command on the same name prefix.
27
28OPTIONS
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
42SEE ALSO
43--------
44nfd(1), nfdc(1)