StrategyChoice » History » Revision 4
« Previous |
Revision 4/16
(diff)
| Next »
Junxiao Shi, 03/18/2014 11:35 AM
Strategy Choice Management¶
Strategy Choice Management is a module of NFD Management protocol.
It provides:
- commands to choose the forwarding strategy for a namespace
Strategy Choice Management commands are published in namespace ndn:/localhost/nfd/strategy-choice
.
Strategy¶
A strategy is represented by a Name.
NFD currently supports builtin strategies only. The following strategies are available:
- ndn:/localhost/nfd/strategy/best-route
- ndn:/localhost/nfd/strategy/broadcast
- ndn:/localhost/nfd/strategy/client-control
- ndn:/localhost/nfd/strategy/ncc
Control Commands¶
ControlCommand management-module: strategy-choice
Set the strategy for a namespace¶
command-verb: set
ControlParameters fields:
- Name (required)
- Strategy (required)
Strategy must be a Name
that represents a builtin strategy.
If Strategy does not match any builtin strategy, the command fails with code 504.
Unset the strategy for a namespace¶
command-verb: unset
ControlParameters fields:
- Name (required)
After this operation, the effective strategy at Name is inherited from the parent.
If there is no strategy defined at Name, this command does nothing, but is still considered successful.
Name must not be ndn:/
, otherwise the command fails with code 403.
Updated by Junxiao Shi over 10 years ago · 16 revisions