Steve DiBenedetto | 1a3c673 | 2014-03-13 06:44:05 -0600 | [diff] [blame] | 1 | ; The general section contains settings of nfd process. |
Steve DiBenedetto | 24b9a64 | 2014-04-07 15:45:39 -0600 | [diff] [blame] | 2 | general |
| 3 | { |
| 4 | ; Specify a user and/or group for NFD to drop privileges to |
| 5 | ; when not performing privileged tasks. NFD does not drop |
| 6 | ; privileges by default. |
| 7 | |
| 8 | ; user ndn-user |
| 9 | ; group ndn-user |
| 10 | } |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 11 | |
Steve DiBenedetto | bf6a93d | 2014-03-21 14:03:02 -0600 | [diff] [blame] | 12 | log |
| 13 | { |
| 14 | ; default_level specifies the logging level for modules |
| 15 | ; that are not explicitly named. All debugging levels |
| 16 | ; listed above the selected value are enabled. |
| 17 | ; |
| 18 | ; Valid values: |
| 19 | ; |
| 20 | ; NONE ; no messages |
| 21 | ; ERROR ; error messages |
| 22 | ; WARN ; warning messages |
| 23 | ; INFO ; informational messages (default) |
| 24 | ; DEBUG ; debugging messages |
| 25 | ; TRACE ; trace messages (most verbose) |
| 26 | ; ALL ; all messages |
| 27 | |
Alexander Afanasyev | 885a85b | 2014-04-12 21:01:13 -0700 | [diff] [blame] | 28 | default_level INFO |
Steve DiBenedetto | bf6a93d | 2014-03-21 14:03:02 -0600 | [diff] [blame] | 29 | |
| 30 | ; You may override default_level by assigning a logging level |
| 31 | ; to the desired module name. Module names can be found in two ways: |
| 32 | ; |
| 33 | ; Run: |
| 34 | ; nfd --modules |
| 35 | ; |
| 36 | ; Or look for NFD_LOG_INIT(<module name>) statements in .cpp files |
| 37 | ; |
| 38 | ; Example module-level settings: |
| 39 | ; |
| 40 | ; FibManager DEBUG |
| 41 | ; Forwarder INFO |
| 42 | } |
| 43 | |
Steve DiBenedetto | 3a4f83d | 2014-06-02 14:58:54 -0600 | [diff] [blame] | 44 | ; The tables section configures the CS, PIT, FIB, Strategy Choice, and Measurements |
| 45 | tables |
| 46 | { |
| 47 | |
| 48 | ; ContentStore size limit in number of packets |
| 49 | ; default is 65536, about 500MB with 8KB packet size |
| 50 | cs_max_packets 65536 |
Steve DiBenedetto | c0640f5 | 2014-11-03 15:55:43 -0700 | [diff] [blame] | 51 | |
Junxiao Shi | 9685cc5 | 2016-08-29 12:47:05 +0000 | [diff] [blame] | 52 | ; Set a policy to decide whether to cache or drop unsolicited Data. |
| 53 | ; Available policies are: drop-all, admit-local, admit-network, admit-all |
Junxiao Shi | 88f5f73 | 2016-09-03 07:11:37 +0000 | [diff] [blame] | 54 | cs_unsolicited_policy drop-all |
Junxiao Shi | 9685cc5 | 2016-08-29 12:47:05 +0000 | [diff] [blame] | 55 | |
Steve DiBenedetto | c0640f5 | 2014-11-03 15:55:43 -0700 | [diff] [blame] | 56 | ; Set the forwarding strategy for the specified prefixes: |
| 57 | ; <prefix> <strategy> |
| 58 | strategy_choice |
| 59 | { |
| 60 | / /localhost/nfd/strategy/best-route |
Junxiao Shi | 67ba8d2 | 2015-08-21 21:21:28 -0700 | [diff] [blame] | 61 | /localhost /localhost/nfd/strategy/multicast |
Steve DiBenedetto | c0640f5 | 2014-11-03 15:55:43 -0700 | [diff] [blame] | 62 | /localhost/nfd /localhost/nfd/strategy/best-route |
Junxiao Shi | 67ba8d2 | 2015-08-21 21:21:28 -0700 | [diff] [blame] | 63 | /ndn/broadcast /localhost/nfd/strategy/multicast |
Steve DiBenedetto | c0640f5 | 2014-11-03 15:55:43 -0700 | [diff] [blame] | 64 | } |
Vince Lehman | 63ab1bb | 2015-09-04 17:06:58 -0500 | [diff] [blame] | 65 | |
| 66 | ; Declare network region names |
| 67 | ; These are used for mobility support. An Interest carrying a Link object is |
| 68 | ; assumed to have reached the producer region if any delegation name in the |
| 69 | ; Link object is a prefix of any region name. |
| 70 | network_region |
| 71 | { |
| 72 | ; /example/region1 |
| 73 | ; /example/region2 |
| 74 | } |
Steve DiBenedetto | 3a4f83d | 2014-06-02 14:58:54 -0600 | [diff] [blame] | 75 | } |
| 76 | |
Steve DiBenedetto | 1a3c673 | 2014-03-13 06:44:05 -0600 | [diff] [blame] | 77 | ; The face_system section defines what faces and channels are created. |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 78 | face_system |
| 79 | { |
Steve DiBenedetto | dbcb1a1 | 2014-11-17 11:04:21 -0700 | [diff] [blame] | 80 | ; The unix section contains settings of Unix stream faces and channels. |
| 81 | ; Unix channel is always listening; delete unix section to disable |
| 82 | ; Unix stream faces and channels. |
Steve DiBenedetto | 158f73f | 2014-12-22 14:46:12 -0700 | [diff] [blame] | 83 | ; |
| 84 | ; The ndn-cxx library expects unix:///var/run/nfd.sock |
| 85 | ; to be used as the default transport option. Please change |
| 86 | ; the "transport" field in client.conf to an appropriate tcp4 FaceUri |
| 87 | ; if you need to disable unix sockets. |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 88 | unix |
| 89 | { |
Steve DiBenedetto | dbcb1a1 | 2014-11-17 11:04:21 -0700 | [diff] [blame] | 90 | path /var/run/nfd.sock ; Unix stream listener path |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 91 | } |
| 92 | |
Steve DiBenedetto | 1a3c673 | 2014-03-13 06:44:05 -0600 | [diff] [blame] | 93 | ; The tcp section contains settings of TCP faces and channels. |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 94 | tcp |
| 95 | { |
| 96 | listen yes ; set to 'no' to disable TCP listener, default 'yes' |
| 97 | port 6363 ; TCP listener port number |
Steve DiBenedetto | 9515287 | 2014-04-11 12:40:59 -0600 | [diff] [blame] | 98 | enable_v4 yes ; set to 'no' to disable IPv4 channels, default 'yes' |
| 99 | enable_v6 yes ; set to 'no' to disable IPv6 channels, default 'yes' |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 100 | } |
| 101 | |
Steve DiBenedetto | 1a3c673 | 2014-03-13 06:44:05 -0600 | [diff] [blame] | 102 | ; The udp section contains settings of UDP faces and channels. |
Steve DiBenedetto | 9515287 | 2014-04-11 12:40:59 -0600 | [diff] [blame] | 103 | ; UDP channel is always listening; delete udp section to disable UDP |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 104 | udp |
| 105 | { |
| 106 | port 6363 ; UDP unicast port number |
Steve DiBenedetto | 9515287 | 2014-04-11 12:40:59 -0600 | [diff] [blame] | 107 | enable_v4 yes ; set to 'no' to disable IPv4 channels, default 'yes' |
| 108 | enable_v6 yes ; set to 'no' to disable IPv6 channels, default 'yes' |
Chengyu Fan | addecff | 2015-02-10 14:09:01 -0700 | [diff] [blame] | 109 | |
| 110 | ; idle time (seconds) before closing a UDP unicast face, the actual timeout would be |
| 111 | ; anywhere within [idle_timeout, 2*idle_timeout), default is 600 |
| 112 | idle_timeout 600 |
| 113 | |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 114 | keep_alive_interval 25; interval (seconds) between keep-alive refreshes |
| 115 | |
Alexander Afanasyev | 885a85b | 2014-04-12 21:01:13 -0700 | [diff] [blame] | 116 | ; UDP multicast settings |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 117 | ; NFD creates one UDP multicast face per NIC |
Giulio Grassi | 6d7176d | 2014-04-16 16:08:48 +0200 | [diff] [blame] | 118 | ; |
| 119 | ; In multi-homed Linux machines these settings will NOT work without |
| 120 | ; root or settings the appropriate permissions: |
| 121 | ; |
| 122 | ; sudo setcap cap_net_raw=eip /full/path/nfd |
| 123 | ; |
Alexander Afanasyev | 885a85b | 2014-04-12 21:01:13 -0700 | [diff] [blame] | 124 | mcast yes ; set to 'no' to disable UDP multicast, default 'yes' |
| 125 | mcast_port 56363 ; UDP multicast port number |
| 126 | mcast_group 224.0.23.170 ; UDP multicast group (IPv4 only) |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 127 | } |
| 128 | |
Steve DiBenedetto | 1a3c673 | 2014-03-13 06:44:05 -0600 | [diff] [blame] | 129 | ; The ether section contains settings of Ethernet faces and channels. |
| 130 | ; These settings will NOT work without root or setting the appropriate |
| 131 | ; permissions: |
| 132 | ; |
| 133 | ; sudo setcap cap_net_raw,cap_net_admin=eip /full/path/nfd |
| 134 | ; |
| 135 | ; You may need to install a package to use setcap: |
| 136 | ; |
| 137 | ; **Ubuntu:** |
| 138 | ; |
| 139 | ; sudo apt-get install libcap2-bin |
| 140 | ; |
| 141 | ; **Mac OS X:** |
| 142 | ; |
| 143 | ; curl https://bugs.wireshark.org/bugzilla/attachment.cgi?id=3373 -o ChmodBPF.tar.gz |
| 144 | ; tar zxvf ChmodBPF.tar.gz |
| 145 | ; open ChmodBPF/Install\ ChmodBPF.app |
| 146 | ; |
| 147 | ; or manually: |
| 148 | ; |
| 149 | ; sudo chgrp admin /dev/bpf* |
| 150 | ; sudo chmod g+rw /dev/bpf* |
susmit | 91e1d7c | 2016-10-03 16:16:57 -0600 | [diff] [blame^] | 151 | ; |
Alexander Afanasyev | 885a85b | 2014-04-12 21:01:13 -0700 | [diff] [blame] | 152 | @IF_HAVE_LIBPCAP@ether |
| 153 | @IF_HAVE_LIBPCAP@{ |
| 154 | @IF_HAVE_LIBPCAP@ ; Ethernet multicast settings |
| 155 | @IF_HAVE_LIBPCAP@ ; NFD creates one Ethernet multicast face per NIC |
| 156 | @IF_HAVE_LIBPCAP@ |
| 157 | @IF_HAVE_LIBPCAP@ mcast yes ; set to 'no' to disable Ethernet multicast, default 'yes' |
| 158 | @IF_HAVE_LIBPCAP@ mcast_group 01:00:5E:00:17:AA ; Ethernet multicast group |
susmit | 91e1d7c | 2016-10-03 16:16:57 -0600 | [diff] [blame^] | 159 | @IF_HAVE_LIBPCAP@ |
| 160 | @IF_HAVE_LIBPCAP@ ; Whitelist and blacklist can contain, in no particular order, |
| 161 | @IF_HAVE_LIBPCAP@ ; interface names (e.g., ifname eth0), |
| 162 | @IF_HAVE_LIBPCAP@ ; mac addresses (e.g., ether 85:3b:4d:d3:5f:c2), |
| 163 | @IF_HAVE_LIBPCAP@ ; subnets (e.g., subnet 192.0.2.0/24, note that only IPv4 is supported here), |
| 164 | @IF_HAVE_LIBPCAP@ ; or a wildcard (*) that matches all interfaces. |
| 165 | @IF_HAVE_LIBPCAP@ |
| 166 | @IF_HAVE_LIBPCAP@ whitelist |
| 167 | @IF_HAVE_LIBPCAP@ { |
| 168 | @IF_HAVE_LIBPCAP@ * |
| 169 | @IF_HAVE_LIBPCAP@ } |
| 170 | @IF_HAVE_LIBPCAP@ blacklist |
| 171 | @IF_HAVE_LIBPCAP@ { |
| 172 | @IF_HAVE_LIBPCAP@ } |
Alexander Afanasyev | 885a85b | 2014-04-12 21:01:13 -0700 | [diff] [blame] | 173 | @IF_HAVE_LIBPCAP@} |
Wentao Shang | 53df163 | 2014-04-21 12:01:32 -0700 | [diff] [blame] | 174 | |
| 175 | ; The websocket section contains settings of WebSocket faces and channels. |
Wentao Shang | 53df163 | 2014-04-21 12:01:32 -0700 | [diff] [blame] | 176 | @IF_HAVE_WEBSOCKET@websocket |
| 177 | @IF_HAVE_WEBSOCKET@{ |
| 178 | @IF_HAVE_WEBSOCKET@ listen yes ; set to 'no' to disable WebSocket listener, default 'yes' |
| 179 | @IF_HAVE_WEBSOCKET@ port 9696 ; WebSocket listener port number |
| 180 | @IF_HAVE_WEBSOCKET@ enable_v4 yes ; set to 'no' to disable listening on IPv4 socket, default 'yes' |
| 181 | @IF_HAVE_WEBSOCKET@ enable_v6 yes ; set to 'no' to disable listening on IPv6 socket, default 'yes' |
| 182 | @IF_HAVE_WEBSOCKET@} |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 183 | } |
| 184 | |
Steve DiBenedetto | 1a3c673 | 2014-03-13 06:44:05 -0600 | [diff] [blame] | 185 | ; The authorizations section grants privileges to authorized keys. |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 186 | authorizations |
| 187 | { |
Steve DiBenedetto | 1a3c673 | 2014-03-13 06:44:05 -0600 | [diff] [blame] | 188 | ; An authorize section grants privileges to a NDN certificate. |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 189 | authorize |
| 190 | { |
Steve DiBenedetto | 1a3c673 | 2014-03-13 06:44:05 -0600 | [diff] [blame] | 191 | ; If you do not already have NDN certificate, you can generate |
| 192 | ; one with the following commands. |
| 193 | ; |
| 194 | ; 1. Generate and install a self-signed identity certificate: |
| 195 | ; |
| 196 | ; ndnsec-keygen /`whoami` | ndnsec-install-cert - |
| 197 | ; |
| 198 | ; Note that the argument to ndnsec-key will be the identity name of the |
| 199 | ; new key (in this case, /your-username). Identities are hierarchical NDN |
| 200 | ; names and may have multiple components (e.g. `/ndn/ucla/edu/alice`). |
| 201 | ; You may create additional keys and identities as you see fit. |
| 202 | ; |
| 203 | ; 2. Dump the NDN certificate to a file: |
| 204 | ; |
| 205 | ; sudo mkdir -p @SYSCONFDIR@/ndn/keys/ |
| 206 | ; ndnsec-cert-dump -i /`whoami` > default.ndncert |
| 207 | ; sudo mv default.ndncert @SYSCONFDIR@/ndn/keys/default.ndncert |
| 208 | ; |
| 209 | ; The "certfile" field below specifies the default key directory for |
| 210 | ; your machine. You may move your newly created key to the location it |
| 211 | ; specifies or path. |
| 212 | |
Yingdi Yu | c8f214c | 2014-04-29 20:39:37 -0700 | [diff] [blame] | 213 | ; certfile keys/default.ndncert ; NDN identity certificate file |
| 214 | certfile any ; "any" authorizes command interests signed under any certificate, |
| 215 | ; i.e., no actual validation. |
Steve DiBenedetto | 1a3c673 | 2014-03-13 06:44:05 -0600 | [diff] [blame] | 216 | privileges ; set of privileges granted to this identity |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 217 | { |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 218 | faces |
| 219 | fib |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 220 | strategy-choice |
| 221 | } |
| 222 | } |
Steve DiBenedetto | 1a3c673 | 2014-03-13 06:44:05 -0600 | [diff] [blame] | 223 | |
| 224 | ; You may have multiple authorize sections that specify additional |
| 225 | ; certificates and their privileges. |
| 226 | |
Alexander Afanasyev | 885a85b | 2014-04-12 21:01:13 -0700 | [diff] [blame] | 227 | ; authorize |
| 228 | ; { |
| 229 | ; certfile keys/this_cert_does_not_exist.ndncert |
| 230 | ; authorize |
| 231 | ; privileges |
| 232 | ; { |
| 233 | ; faces |
| 234 | ; } |
| 235 | ; } |
Steve DiBenedetto | 84da5bf | 2014-03-11 14:51:29 -0600 | [diff] [blame] | 236 | } |
Alexander Afanasyev | 89cf5e0 | 2014-04-17 12:08:57 -0700 | [diff] [blame] | 237 | |
Yingdi Yu | e5224e9 | 2014-04-29 18:04:02 -0700 | [diff] [blame] | 238 | rib |
Alexander Afanasyev | 89cf5e0 | 2014-04-17 12:08:57 -0700 | [diff] [blame] | 239 | { |
Yingdi Yu | e5224e9 | 2014-04-29 18:04:02 -0700 | [diff] [blame] | 240 | ; The following localhost_security allows anyone to register routing entries in local RIB |
| 241 | localhost_security |
| 242 | { |
| 243 | trust-anchor |
| 244 | { |
| 245 | type any |
| 246 | } |
| 247 | } |
Alexander Afanasyev | 89cf5e0 | 2014-04-17 12:08:57 -0700 | [diff] [blame] | 248 | |
Yingdi Yu | e5224e9 | 2014-04-29 18:04:02 -0700 | [diff] [blame] | 249 | ; localhop_security should be enabled when NFD runs on a hub. |
| 250 | ; "/localhop/nfd/fib" command prefix will be disabled when localhop_security section is missing. |
| 251 | ; localhop_security |
Alexander Afanasyev | 89cf5e0 | 2014-04-17 12:08:57 -0700 | [diff] [blame] | 252 | ; { |
Yingdi Yu | e5224e9 | 2014-04-29 18:04:02 -0700 | [diff] [blame] | 253 | ; ; This section defines the trust model for NFD RIB Management. It consists of rules and |
| 254 | ; ; trust-anchors, which are briefly defined in this file. For more information refer to |
| 255 | ; ; manpage of ndn-validator.conf: |
| 256 | ; ; |
| 257 | ; ; man ndn-validator.conf |
| 258 | ; ; |
| 259 | ; ; A trust-anchor is a pre-trusted certificate. This can be any certificate that is the |
| 260 | ; ; root of certification chain (e.g., NDN testbed root certificate) or an existing |
| 261 | ; ; default system certificate `default.ndncert`. |
| 262 | ; ; |
| 263 | ; ; A rule defines conditions a valid packet MUST have. A packet must satisfy one of the |
| 264 | ; ; rules defined here. A rule can be broken into two parts: matching & checking. A packet |
| 265 | ; ; will be matched against rules from the first to the last until a matched rule is |
| 266 | ; ; encountered. The matched rule will be used to check the packet. If a packet does not |
| 267 | ; ; match any rule, it will be treated as invalid. The matching part of a rule consists |
| 268 | ; ; of `for` and `filter` sections. They collectively define which packets can be checked |
| 269 | ; ; with this rule. `for` defines packet type (data or interest) and `filter` defines |
| 270 | ; ; conditions on other properties of a packet. Right now, you can only define conditions |
| 271 | ; ; on packet name, and you can only specify ONLY ONE filter for packet name. The |
| 272 | ; ; checking part of a rule consists of `checker`, which defines the conditions that a |
| 273 | ; ; VALID packet MUST have. See comments in checker section for more details. |
| 274 | ; |
| 275 | ; rule |
| 276 | ; { |
| 277 | ; id "NRD Prefix Registration Command Rule" |
| 278 | ; for interest ; rule for Interests (to validate CommandInterests) |
| 279 | ; filter |
| 280 | ; { |
| 281 | ; type name ; condition on interest name (w/o signature) |
Yingdi Yu | 676a55a | 2014-06-18 21:09:09 -0700 | [diff] [blame] | 282 | ; regex ^[<localhop><localhost>]<nfd><rib>[<register><unregister>]<>$ ; prefix before |
| 283 | ; ; timestamp |
Yingdi Yu | e5224e9 | 2014-04-29 18:04:02 -0700 | [diff] [blame] | 284 | ; } |
| 285 | ; checker |
| 286 | ; { |
| 287 | ; type customized |
| 288 | ; sig-type rsa-sha256 ; interest must have a rsa-sha256 signature |
| 289 | ; key-locator |
| 290 | ; { |
| 291 | ; type name ; key locator must be the certificate name of the |
| 292 | ; ; signing key |
| 293 | ; regex ^[^<KEY>]*<KEY><>*<ksk-.*><ID-CERT>$ |
| 294 | ; } |
| 295 | ; } |
| 296 | ; } |
| 297 | ; rule |
| 298 | ; { |
| 299 | ; id "NDN Testbed Hierarchy Rule" |
| 300 | ; for data ; rule for Data (to validate NDN certificates) |
| 301 | ; filter |
| 302 | ; { |
| 303 | ; type name ; condition on data name |
| 304 | ; regex ^[^<KEY>]*<KEY><>*<ksk-.*><ID-CERT><>$ |
| 305 | ; } |
| 306 | ; checker |
| 307 | ; { |
| 308 | ; type hierarchical ; the certificate name of the signing key and |
| 309 | ; ; the data name must follow the hierarchical model |
| 310 | ; sig-type rsa-sha256 ; data must have a rsa-sha256 signature |
| 311 | ; } |
| 312 | ; } |
| 313 | ; trust-anchor |
| 314 | ; { |
| 315 | ; type file |
| 316 | ; file-name keys/default.ndncert ; the file name, by default this file should be placed in the |
| 317 | ; ; same folder as this config file. |
| 318 | ; } |
| 319 | ; ; trust-anchor ; Can be repeated multiple times to specify multiple trust anchors |
| 320 | ; ; { |
| 321 | ; ; type file |
| 322 | ; ; file-name keys/ndn-testbed.ndncert |
| 323 | ; ; } |
Alexander Afanasyev | 89cf5e0 | 2014-04-17 12:08:57 -0700 | [diff] [blame] | 324 | ; } |
Yanbiao Li | c17de83 | 2014-11-21 17:51:45 -0800 | [diff] [blame] | 325 | |
Yanbiao Li | b9d439d | 2014-12-11 16:12:32 -0800 | [diff] [blame] | 326 | ; The following localhop_security should be enabled when NFD runs on a hub, |
| 327 | ; which accepts all remote registrations and is a short-term solution. |
| 328 | ; localhop_security |
| 329 | ; { |
| 330 | ; trust-anchor |
| 331 | ; { |
| 332 | ; type any |
| 333 | ; } |
| 334 | ; } |
| 335 | |
Yanbiao Li | d7c9636 | 2015-01-30 23:58:24 -0800 | [diff] [blame] | 336 | auto_prefix_propagate |
Yanbiao Li | c17de83 | 2014-11-21 17:51:45 -0800 | [diff] [blame] | 337 | { |
| 338 | cost 15 ; forwarding cost of prefix registered on remote router |
Yanbiao Li | d7c9636 | 2015-01-30 23:58:24 -0800 | [diff] [blame] | 339 | timeout 10000 ; timeout (in milliseconds) of prefix registration command for propagation |
Yanbiao Li | c17de83 | 2014-11-21 17:51:45 -0800 | [diff] [blame] | 340 | |
Yanbiao Li | d7c9636 | 2015-01-30 23:58:24 -0800 | [diff] [blame] | 341 | refresh_interval 300 ; interval (in seconds) before refreshing the propagation |
Yanbiao Li | c17de83 | 2014-11-21 17:51:45 -0800 | [diff] [blame] | 342 | ; This setting should be less than face_system.udp.idle_time, |
| 343 | ; so that the face is kept alive on the remote router. |
Yanbiao Li | d7c9636 | 2015-01-30 23:58:24 -0800 | [diff] [blame] | 344 | |
| 345 | base_retry_wait 50 ; base wait time (in seconds) before retrying propagation |
| 346 | max_retry_wait 3600 ; maximum wait time (in seconds) before retrying propagation |
| 347 | ; for consequent retries, the wait time before each retry is calculated based on the back-off |
| 348 | ; policy. Initially, the wait time is set to base_retry_wait, then it will be doubled for every |
| 349 | ; retry unless beyond the max_retry_wait, in which case max_retry_wait is set as the wait time. |
Yanbiao Li | c17de83 | 2014-11-21 17:51:45 -0800 | [diff] [blame] | 350 | } |
Alexander Afanasyev | 89cf5e0 | 2014-04-17 12:08:57 -0700 | [diff] [blame] | 351 | } |