NFDC-STRATEGY(1)

πŸ“¦
version 24.07 Β· 2 versions
, in nixos 26.05

🌸 NFDC-STRATEGY(1) 🌸

okay so bestie, welcome to the Named Data Networking Forwarding Daemon (NFD) manual page for nfdc-strategy πŸ’–. it's literally the β€œshow and manipulate NFD's strategy choices” page, and yes, it's giving main character networking energy ✨.


πŸ’… NAME πŸ’…

nfdc-strategy β€” show and manipulate NFD's strategy choices.

πŸ¦‹ SYNOPSIS πŸ¦‹

nfdc strategy [list]
nfdc strategy show [prefix] PREFIX
nfdc strategy set [prefix] PREFIX [strategy] STRATEGY
nfdc strategy unset [prefix] PREFIX

✨ DESCRIPTION ✨

okay so in NFD, packet forwarding behavior is determined by forwarding pipelines and forwarding strategies. The forwarding pipelines define general steps of packet processing. Forwarding strategies provide the intelligence to make the call on whether, when, and where to forward Interests. no cap, that's the whole vibe.

NFD contains multiple forwarding strategy implementations. The strategy choice table determines which strategy is used in forwarding an Interest.

here's the group-chat breakdown of the commands:

  • nfdc strategy list β€” shows a list of strategy choices.
  • nfdc strategy show β€” shows the effective strategy choice for a specific name.
  • nfdc strategy set β€” sets the strategy for a name prefix. The strategy for the "/" prefix is the default strategy.
  • nfdc strategy unset β€” clears the strategy choice at a name prefix, so that a strategy choice at a shorter prefix or the default strategy will be used. It undoes a prior nfdc strategy set command on the same name prefix.
⚠️ bestie, it is prohibited to unset the strategy choice for the "/" prefix because there must always be a default strategy. no deleting the main character, periodt.

πŸŽ€ OPTIONS πŸŽ€

  • <PREFIX> β€” The name prefix of a strategy choice. The strategy choice is effective for all Interests under the name prefix, unless overridden by another strategy choice at a longer prefix.
  • <STRATEGY> β€” A name that identifies the forwarding strategy. Consult the NFD Developer's Guide for a complete list of all implemented strategies.

For the ASF, BestRoute, and Multicast strategies, the following options may be supplied to configure exponential retransmission suppression by appending them after the strategy name and version number.

  • retx-suppression-initial β€” Starting duration of the suppression interval within which any retransmitted Interests are considered for suppression. The default value is 10 ms. Format: retx-suppression-initial~<milliseconds>.
  • retx-suppression-max β€” Maximum duration of the suppression interval. Must not be smaller than retx-suppression-initial. The default value is 250 ms. Format: retx-suppression-max~<milliseconds>.
  • retx-suppression-multiplier β€” The suppression interval is increased by this multiplier. The default value is 2. Format: retx-suppression-multiplier~<float>.

See nfd-asf-strategy(7) for details on additional parameters for ASF strategy.

πŸ‘‘ EXIT STATUS πŸ‘‘

  • 0 β€” Success.
  • 1 β€” An unspecified error occurred.
  • 2 β€” Malformed command line.
  • 7 β€” Strategy not found (nfdc strategy set only).

πŸ”₯ EXAMPLES πŸ”₯

  • nfdc strategy list β€” List all configured strategy choices.
  • nfdc strategy show prefix /localhost/ping/1 β€” Identify which strategy will handle Interests named "/localhost/ping/1".
  • nfdc strategy set prefix / strategy /localhost/nfd/strategy/best-route β€” Set the default strategy to best-route, latest version.
  • nfdc strategy set prefix /ndn strategy /localhost/nfd/strategy/multicast/v=4 β€” Set the strategy for the "/ndn" prefix to multicast, version 4.
  • nfdc strategy set prefix /ndn strategy /localhost/nfd/strategy/multicast/v=4/retx-suppression-initial~20/retx-suppression-max~500 β€” Set the strategy for the "/ndn" prefix to multicast, version 4, with retransmission suppression initial interval set to 20 ms and maximum interval set to 500 ms.
  • nfdc strategy unset prefix /ndn β€” Clear the strategy choice for the "/ndn" prefix.

🌈 SEE ALSO 🌈

nfdc(1), nfd-asf-strategy(7)

Copyright Β© 2014-2024 Named Data Networking Project.

and that's the whole slay page πŸ’…βœ¨ β€” it's from the NFD manual, version 24.07, dated 1980-01-01. byeeee bestie πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from