Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 1 | nfd-asf-strategy |
| 2 | ================ |
| 3 | |
Saurab Dulal | af3ff5a | 2021-09-19 19:45:07 -0400 | [diff] [blame] | 4 | Synopsis |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 5 | -------- |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 6 | |
Saurab Dulal | af3ff5a | 2021-09-19 19:45:07 -0400 | [diff] [blame] | 7 | **nfdc strategy set** **prefix** *NAME* **strategy** |
Davide Pesavento | 543b152 | 2024-06-25 17:00:32 -0400 | [diff] [blame] | 8 | /localhost/nfd/strategy/asf[/v=5][/**probing-interval**\ ~\ *INTERVAL*][/**max-timeouts**\ ~\ *TIMEOUTS*] |
Saurab Dulal | af3ff5a | 2021-09-19 19:45:07 -0400 | [diff] [blame] | 9 | |
| 10 | Description |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 11 | ----------- |
| 12 | |
Saurab Dulal | af3ff5a | 2021-09-19 19:45:07 -0400 | [diff] [blame] | 13 | **ASF** is an Adaptive Smoothed RTT-based Forwarding Strategy that chooses the |
| 14 | best next hop based on SRTT measurements, and also periodically probes other |
| 15 | next hops to learn their RTTs. |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 16 | |
Saurab Dulal | af3ff5a | 2021-09-19 19:45:07 -0400 | [diff] [blame] | 17 | Options |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 18 | ------- |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 19 | |
Davide Pesavento | 543b152 | 2024-06-25 17:00:32 -0400 | [diff] [blame] | 20 | .. option:: probing-interval <INTERVAL> |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 21 | |
Saurab Dulal | af3ff5a | 2021-09-19 19:45:07 -0400 | [diff] [blame] | 22 | This optional parameter tells ASF how often to send a probe to determine |
| 23 | alternative paths. The value is specified in milliseconds (non-negative |
| 24 | integer). Smaller values will result in higher overhead but faster reaction. |
| 25 | The default value is 1 minute and the minimum value is 1 second. |
| 26 | |
awlane | ee97f53 | 2024-09-19 15:48:21 -0500 | [diff] [blame^] | 27 | .. option:: measurements-lifetime <LIFETIME> |
| 28 | |
| 29 | This optional parameter tells ASF how long to retain NamespaceInfo and FaceInfo |
| 30 | measurements if they are not actively updated. If not specified, this value defaults |
| 31 | to 5 minutes. This value is specified in (non-negative integer) milliseconds and must |
| 32 | be greater than the probing interval, as otherwise there is negligible benefit gained |
| 33 | from the additional traffic generated by ASF. |
| 34 | |
Davide Pesavento | 543b152 | 2024-06-25 17:00:32 -0400 | [diff] [blame] | 35 | .. option:: max-timeouts <TIMEOUTS> |
Saurab Dulal | af3ff5a | 2021-09-19 19:45:07 -0400 | [diff] [blame] | 36 | |
| 37 | This optional parameter makes ASF switch to another appropriate face (if available) |
| 38 | after it has encountered the specified number of timeouts. The value is a positive |
| 39 | integer and defaults to 3, i.e., switch to another face after 3 timeouts. Smaller |
| 40 | values make ASF more sensitive to timeouts and will switch paths more frequently, |
| 41 | which should provide a faster reaction to link failures. Larger values may be better |
| 42 | suited when transient timeouts are common and for certain application uses. |
| 43 | |
| 44 | Examples |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 45 | -------- |
Saurab Dulal | af3ff5a | 2021-09-19 19:45:07 -0400 | [diff] [blame] | 46 | |
Davide Pesavento | 543b152 | 2024-06-25 17:00:32 -0400 | [diff] [blame] | 47 | ``nfdc strategy set prefix /ndn strategy /localhost/nfd/strategy/asf`` |
Saurab Dulal | af3ff5a | 2021-09-19 19:45:07 -0400 | [diff] [blame] | 48 | Use the default values for all parameters. |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 49 | |
Davide Pesavento | 543b152 | 2024-06-25 17:00:32 -0400 | [diff] [blame] | 50 | ``nfdc strategy set prefix /ndn strategy /localhost/nfd/strategy/asf/v=5/probing-interval~30000`` |
Ashlesh Gawande | 1ef93d0 | 2022-04-08 00:25:06 -0400 | [diff] [blame] | 51 | Set the probing interval to 30 seconds. |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 52 | |
Davide Pesavento | 543b152 | 2024-06-25 17:00:32 -0400 | [diff] [blame] | 53 | ``nfdc strategy set prefix /ndn strategy /localhost/nfd/strategy/asf/v=5/max-timeouts~5`` |
Ashlesh Gawande | 1ef93d0 | 2022-04-08 00:25:06 -0400 | [diff] [blame] | 54 | Set the maximum number of timeouts to 5. |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 55 | |
awlane | ee97f53 | 2024-09-19 15:48:21 -0500 | [diff] [blame^] | 56 | ``nfdc strategy set prefix /ndn strategy /localhost/nfd/strategy/asf/v=5/measurements-lifetime~120000`` |
| 57 | Set the maximum measurement lifetime to 2 minutes. |
| 58 | |
| 59 | ``nfdc strategy set prefix /ndn strategy /localhost/nfd/strategy/asf/v=5/probing-interval~30000/max-timeouts~2/measurements-lifetime~120000`` |
| 60 | Set the probing interval to 30 seconds, the maximum number of timeouts to 2, and the maximum measurement lifetime to 2 minutes. |
Ashlesh Gawande | 1ef93d0 | 2022-04-08 00:25:06 -0400 | [diff] [blame] | 61 | |
Davide Pesavento | 543b152 | 2024-06-25 17:00:32 -0400 | [diff] [blame] | 62 | ``nfdc strategy set prefix /ndn strategy /localhost/nfd/strategy/asf/v=5/retx-suppression-multiplier~2.5/probing-interval~45000`` |
Ashlesh Gawande | 1ef93d0 | 2022-04-08 00:25:06 -0400 | [diff] [blame] | 63 | Set the retransmission suppression multiplier to 2.5 and the probing interval |
| 64 | to 45 seconds. See :manpage:`nfdc-strategy(1)` for more information on the |
| 65 | retransmission suppression parameters. |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 66 | |
Davide Pesavento | 543b152 | 2024-06-25 17:00:32 -0400 | [diff] [blame] | 67 | See Also |
Ashlesh Gawande | 92e4ea5 | 2017-07-19 11:38:12 -0500 | [diff] [blame] | 68 | -------- |
Saurab Dulal | af3ff5a | 2021-09-19 19:45:07 -0400 | [diff] [blame] | 69 | |
Davide Pesavento | 543b152 | 2024-06-25 17:00:32 -0400 | [diff] [blame] | 70 | :manpage:`nfdc-strategy(1)` |