John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1 | .. _startup: |
| 2 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 3 | ========================================== |
| 4 | VPP Configuration - CLI and 'startup.conf' |
| 5 | ========================================== |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 6 | |
| 7 | After a successful installation, VPP installs a startup config file named |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 8 | *startup.conf* in the */etc/vpp/* directory. This file can be tailored to |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 9 | make VPP run as desired, but contains default values for typical installations. |
John DeNisco | c64ba6d | 2018-08-02 15:03:15 -0400 | [diff] [blame] | 10 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 11 | Below are more details about this file and some of the the parameters and values |
| 12 | it contains. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 13 | |
| 14 | Command-line Arguments |
| 15 | ---------------------- |
| 16 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 17 | Before we describe details of the startup configuration file (startup.conf) it |
| 18 | should be mentioned that VPP can be started without a startup configuration |
| 19 | file. |
| 20 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 21 | Parameters are grouped by a section name. When providing more than one |
| 22 | parameter to a section, all parameters for that section must be wrapped in |
| 23 | curly braces. For example, to start VPP with configuration data via the |
| 24 | command line with the section name *'unix'*: |
| 25 | |
| 26 | .. code-block:: console |
| 27 | |
| 28 | $ sudo /usr/bin/vpp unix { interactive cli-listen 127.0.0.1:5002 } |
| 29 | |
| 30 | The command line can be presented as a single string or as several; anything |
| 31 | given on the command line is concatenated with spaces into a single string |
| 32 | before parsing. VPP applications must be able to locate their own executable |
| 33 | images. The simplest way to ensure this will work is to invoke a VPP |
| 34 | application by giving its absolute path. For example: |
| 35 | *'/usr/bin/vpp <options>'* At startup, VPP applications parse through their |
| 36 | own ELF-sections [primarily] to make lists of init, configuration, and exit |
| 37 | handlers. |
| 38 | |
| 39 | When developing with VPP, in gdb it's often sufficient to start an application |
| 40 | like this: |
| 41 | |
| 42 | .. code-block:: console |
| 43 | |
| 44 | (gdb) run unix interactive |
| 45 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 46 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 47 | Startup Configuration File (startup.conf) |
| 48 | ----------------------------------------- |
| 49 | |
| 50 | The more typical way to specify the startup configuration to VPP is with the |
| 51 | startup configuration file (startup.conf). |
| 52 | |
| 53 | The path of the file is provided to the VPP application on the command line. |
| 54 | This is typically at /etc/vpp/startup.conf. If VPP is installed as a package |
| 55 | a default startup.conf file is provided at this location. |
| 56 | |
| 57 | The format of the configuration file is a simple text file with the same content |
| 58 | as the command line. |
| 59 | |
| 60 | **A very simple startup.conf file:** |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 61 | |
| 62 | .. code-block:: console |
| 63 | |
| 64 | $ cat /etc/vpp/startup.conf |
| 65 | unix { |
| 66 | nodaemon |
| 67 | log /var/log/vpp/vpp.log |
| 68 | full-coredump |
| 69 | cli-listen localhost:5002 |
| 70 | } |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 71 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 72 | api-trace { |
| 73 | on |
| 74 | } |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 75 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 76 | dpdk { |
| 77 | dev 0000:03:00.0 |
| 78 | } |
| 79 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 80 | VPP is instructed to load this file with the -c option. For example: |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 81 | |
| 82 | .. code-block:: console |
| 83 | |
| 84 | $ sudo /usr/bin/vpp -c /etc/vpp/startup.conf |
| 85 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 86 | Configuration Parameters |
| 87 | ------------------------ |
| 88 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 89 | Below is the list of some section names and their associated parameters. |
| 90 | This is not an exhaustive list, but should give you an idea of how VPP can be configured. |
| 91 | |
| 92 | For all of the configuration parameters search the source code for instances of |
| 93 | **VLIB_CONFIG_FUNCTION** and **VLIB_EARLY_CONFIG_FUNCTION**. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 94 | |
| 95 | For example, the invocation *'VLIB_CONFIG_FUNCTION (foo_config, "foo")'* will |
| 96 | cause the function *'foo_config'* to receive all parameters given in a |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 97 | parameter block named "foo": "foo { arg1 arg2 arg3 ... }". |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 98 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 99 | The unix section |
| 100 | ---------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 101 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 102 | Configures VPP startup and behavior type attributes, as well and any OS based |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 103 | attributes. |
| 104 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 105 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 106 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 107 | unix { |
| 108 | nodaemon |
| 109 | log /var/log/vpp/vpp.log |
| 110 | full-coredump |
| 111 | cli-listen /run/vpp/cli.sock |
| 112 | gid vpp |
| 113 | } |
| 114 | |
| 115 | nodaemon |
| 116 | ^^^^^^^^ |
| 117 | |
| 118 | Do not fork / background the vpp process. Typical when invoking VPP |
| 119 | applications from a process monitor. Set by default in the default |
| 120 | *'startup.conf'* file. |
| 121 | |
| 122 | .. code-block:: console |
| 123 | |
| 124 | nodaemon |
| 125 | |
Ruslan Babayev | e31820a | 2020-02-14 17:45:02 -0800 | [diff] [blame] | 126 | nosyslog |
| 127 | ^^^^^^^^ |
| 128 | |
| 129 | Disable syslog and log errors to stderr instead. Typical when invoking |
| 130 | VPP applications from a process monitor like runit or daemontools that |
| 131 | pipe service's output to a dedicated log service, which will typically |
| 132 | attach a timestamp and rotate the logs as necessary. |
| 133 | |
| 134 | .. code-block:: console |
| 135 | |
| 136 | nosyslog |
| 137 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 138 | interactive |
| 139 | ^^^^^^^^^^^ |
| 140 | |
| 141 | Attach CLI to stdin/out and provide a debugging command line interface. |
| 142 | |
| 143 | .. code-block:: console |
| 144 | |
| 145 | interactive |
| 146 | |
| 147 | log <filename> |
| 148 | ^^^^^^^^^^^^^^ |
| 149 | |
| 150 | Logs the startup configuration and all subsequent CLI commands in filename. |
| 151 | Very useful in situations where folks don't remember or can't be bothered |
| 152 | to include CLI commands in bug reports. The default *'startup.conf'* file |
| 153 | is to write to *'/var/log/vpp/vpp.log'*. |
| 154 | |
| 155 | In VPP 18.04, the default log file location was moved from '/tmp/vpp.log' |
| 156 | to '/var/log/vpp/vpp.log' . The VPP code is indifferent to the file location. |
| 157 | However, if SELinux is enabled, then the new location is required for the file |
| 158 | to be properly labeled. Check your local *'startup.conf'* file for the log file |
| 159 | location on your system. |
| 160 | |
| 161 | .. code-block:: console |
| 162 | |
| 163 | log /var/log/vpp/vpp-debug.log |
| 164 | |
| 165 | exec | startup-config <filename> |
| 166 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 167 | |
| 168 | Read startup operational configuration from filename. The contents of the file |
| 169 | will be performed as though entered at the CLI. The two keywords are aliases |
| 170 | for the same function; if both are specified, only the last will have an effect. |
| 171 | |
| 172 | A file of CLI commands might look like: |
| 173 | |
| 174 | .. code-block:: console |
| 175 | |
| 176 | $ cat /usr/share/vpp/scripts/interface-up.txt |
| 177 | set interface state TenGigabitEthernet1/0/0 up |
| 178 | set interface state TenGigabitEthernet1/0/1 up |
| 179 | |
| 180 | Parameter Example: |
| 181 | |
| 182 | .. code-block:: console |
| 183 | |
| 184 | startup-config /usr/share/vpp/scripts/interface-up.txt |
| 185 | |
| 186 | gid <number | name> |
| 187 | ^^^^^^^^^^^^^^^^^^^ |
| 188 | |
| 189 | Sets the effective group ID to the input group ID or group name of the calling |
| 190 | process. |
| 191 | |
| 192 | .. code-block:: console |
| 193 | |
| 194 | gid vpp |
| 195 | |
| 196 | full-coredump |
| 197 | ^^^^^^^^^^^^^ |
| 198 | |
| 199 | Ask the Linux kernel to dump all memory-mapped address regions, instead of |
| 200 | just text+data+bss. |
| 201 | |
| 202 | .. code-block:: console |
| 203 | |
| 204 | full-coredump |
| 205 | |
| 206 | coredump-size unlimited | <n>G | <n>M | <n>K | <n> |
| 207 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 208 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 209 | Set the maximum size of the coredump file. The input value can be set in |
| 210 | GB, MB, KB or bytes, or set to *'unlimited'*. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 211 | |
| 212 | .. code-block:: console |
| 213 | |
| 214 | coredump-size unlimited |
| 215 | |
| 216 | cli-listen <ipaddress:port> | <socket-path> |
| 217 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 218 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 219 | Bind the CLI to listen at address localhost on TCP port 5002. This will |
| 220 | accept an ipaddress:port pair or a filesystem path; in the latter case a |
| 221 | local Unix socket is opened instead. The default *'startup.conf'* file |
| 222 | is to open the socket *'/run/vpp/cli.sock'*. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 223 | |
| 224 | .. code-block:: console |
| 225 | |
| 226 | cli-listen localhost:5002 |
| 227 | cli-listen /run/vpp/cli.sock |
| 228 | |
| 229 | cli-line-mode |
| 230 | ^^^^^^^^^^^^^ |
| 231 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 232 | Disable character-by-character I/O on stdin. Useful when combined with, |
| 233 | for example, emacs M-x gud-gdb. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 234 | |
| 235 | .. code-block:: console |
| 236 | |
| 237 | cli-line-mode |
| 238 | |
| 239 | cli-prompt <string> |
| 240 | ^^^^^^^^^^^^^^^^^^^ |
| 241 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 242 | Configure the CLI prompt to be string. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 243 | |
| 244 | .. code-block:: console |
| 245 | |
| 246 | cli-prompt vpp-2 |
| 247 | |
| 248 | cli-history-limit <n> |
| 249 | ^^^^^^^^^^^^^^^^^^^^^ |
| 250 | |
Paul Vinciguerra | 7fa3dd2 | 2019-10-27 17:28:10 -0400 | [diff] [blame] | 251 | Limit command history to <n> lines. A value of 0 disables command history. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 252 | Default value: 50 |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 253 | |
| 254 | .. code-block:: console |
| 255 | |
| 256 | cli-history-limit 100 |
| 257 | |
| 258 | cli-no-banner |
| 259 | ^^^^^^^^^^^^^ |
| 260 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 261 | Disable the login banner on stdin and Telnet connections. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 262 | |
| 263 | .. code-block:: console |
| 264 | |
| 265 | cli-no-banner |
| 266 | |
| 267 | cli-no-pager |
| 268 | ^^^^^^^^^^^^ |
| 269 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 270 | Disable the output pager. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 271 | |
| 272 | .. code-block:: console |
| 273 | |
| 274 | cli-no-pager |
| 275 | |
| 276 | cli-pager-buffer-limit <n> |
| 277 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 278 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 279 | Limit pager buffer to <n> lines of output. A value of 0 disables the |
| 280 | pager. Default value: 100000 |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 281 | |
| 282 | .. code-block:: console |
| 283 | |
| 284 | cli-pager-buffer-limit 5000 |
| 285 | |
| 286 | runtime-dir <dir> |
| 287 | ^^^^^^^^^^^^^^^^^ |
| 288 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 289 | Set the runtime directory, which is the default location for certain |
| 290 | files, like socket files. Default is based on User ID used to start VPP. |
| 291 | Typically it is *'root'*, which defaults to *'/run/vpp/'*. Otherwise, |
| 292 | defaults to *'/run/user/<uid>/vpp/'*. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 293 | |
| 294 | .. code-block:: console |
| 295 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 296 | runtime-dir /tmp/vpp |
| 297 | |
| 298 | poll-sleep-usec <n> |
| 299 | ^^^^^^^^^^^^^^^^^^^ |
| 300 | |
| 301 | Add a fixed-sleep between main loop poll. Default is 0, which is not to |
| 302 | sleep. |
| 303 | |
| 304 | .. code-block:: console |
| 305 | |
| 306 | poll-sleep-usec 100 |
| 307 | |
| 308 | pidfile <filename> |
| 309 | ^^^^^^^^^^^^^^^^^^ |
| 310 | |
| 311 | Writes the pid of the main thread in the given filename. |
| 312 | |
| 313 | .. code-block:: console |
| 314 | |
| 315 | pidfile /run/vpp/vpp1.pid |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 316 | |
| 317 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 318 | The api-trace Section |
| 319 | --------------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 320 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 321 | The ability to trace, dump, and replay control-plane API traces makes all the |
| 322 | difference in the world when trying to understand what the control-plane has |
| 323 | tried to ask the forwarding-plane to do. |
| 324 | |
| 325 | Typically, one simply enables the API message trace scheme: |
| 326 | |
| 327 | .. code-block:: console |
| 328 | |
| 329 | api-trace { |
| 330 | api-trace on |
| 331 | } |
| 332 | |
| 333 | on | enable |
| 334 | ^^^^^^^^^^^ |
| 335 | |
| 336 | Enable API trace capture from the beginning of time, and arrange for a |
| 337 | post-mortem dump of the API trace if the application terminates abnormally. |
| 338 | By default, the (circular) trace buffer will be configured to capture |
| 339 | 256K traces. The default *'startup.conf'* file has trace enabled by default, |
| 340 | and unless there is a very strong reason, it should remain enabled. |
| 341 | |
| 342 | .. code-block:: console |
| 343 | |
| 344 | on |
| 345 | |
| 346 | nitems <n> |
| 347 | ^^^^^^^^^^ |
| 348 | |
| 349 | Configure the circular trace buffer to contain the last <n> entries. By |
| 350 | default, the trace buffer captures the last 256K API messages received. |
| 351 | |
| 352 | .. code-block:: console |
| 353 | |
| 354 | nitems 524288 |
| 355 | |
| 356 | save-api-table <filename> |
| 357 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 358 | |
| 359 | Dumps the API message table to /tmp/<filename>. |
| 360 | |
| 361 | .. code-block:: console |
| 362 | |
| 363 | save-api-table apiTrace-07-04.txt |
| 364 | |
| 365 | |
| 366 | The api-segment Section |
| 367 | ----------------------- |
| 368 | |
| 369 | These values control various aspects of the binary API interface to VPP. |
| 370 | |
| 371 | The default looks like the following: |
| 372 | |
| 373 | .. code-block:: console |
| 374 | |
| 375 | api-segment { |
| 376 | gid vpp |
| 377 | } |
| 378 | |
| 379 | |
| 380 | prefix <path> |
| 381 | ^^^^^^^^^^^^^ |
| 382 | |
| 383 | Sets the prefix prepended to the name used for shared memory (SHM) |
| 384 | segments. The default is empty, meaning shared memory segments are created |
| 385 | directly in the SHM directory *'/dev/shm'*. It is worth noting that on |
| 386 | many systems *'/dev/shm'* is a symbolic link to somewhere else in the file |
| 387 | system; Ubuntu links it to *'/run/shm'*. |
| 388 | |
| 389 | .. code-block:: console |
| 390 | |
| 391 | prefix /run/shm |
| 392 | |
| 393 | uid <number | name> |
| 394 | ^^^^^^^^^^^^^^^^^^^ |
| 395 | |
| 396 | Sets the user ID or name that should be used to set the ownership of the |
| 397 | shared memory segments. Defaults to the same user that VPP is started |
| 398 | with, probably root. |
| 399 | |
| 400 | .. code-block:: console |
| 401 | |
| 402 | uid root |
| 403 | |
| 404 | gid <number | name> |
| 405 | ^^^^^^^^^^^^^^^^^^^ |
| 406 | |
| 407 | Sets the group ID or name that should be used to set the ownership of the |
| 408 | shared memory segments. Defaults to the same group that VPP is started |
| 409 | with, probably root. |
| 410 | |
| 411 | .. code-block:: console |
| 412 | |
| 413 | gid vpp |
| 414 | |
| 415 | **The following parameters should only be set by those that are familiar with the |
| 416 | interworkings of VPP.** |
| 417 | |
| 418 | baseva <x> |
| 419 | ^^^^^^^^^^ |
| 420 | |
| 421 | Set the base address for SVM global region. If not set, on AArch64, the |
| 422 | code will try to determine the base address. All other default to |
| 423 | 0x30000000. |
| 424 | |
| 425 | .. code-block:: console |
| 426 | |
| 427 | baseva 0x20000000 |
| 428 | |
| 429 | global-size <n>G | <n>M | <n> |
| 430 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 431 | |
| 432 | Set the global memory size, memory shared across all router instances, |
| 433 | packet buffers, etc. If not set, defaults to 64M. The input value can be |
| 434 | set in GB, MB or bytes. |
| 435 | |
| 436 | .. code-block:: console |
| 437 | |
| 438 | global-size 2G |
| 439 | |
| 440 | global-pvt-heap-size <n>M | size <n> |
| 441 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 442 | |
| 443 | Set the size of the global VM private mheap. If not set, defaults to 128k. |
| 444 | The input value can be set in MB or bytes. |
| 445 | |
| 446 | .. code-block:: console |
| 447 | |
| 448 | global-pvt-heap-size size 262144 |
| 449 | |
| 450 | api-pvt-heap-size <n>M | size <n> |
| 451 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 452 | |
| 453 | Set the size of the api private mheap. If not set, defaults to 128k. |
| 454 | The input value can be set in MB or bytes. |
| 455 | |
| 456 | .. code-block:: console |
| 457 | |
| 458 | api-pvt-heap-size 1M |
| 459 | |
| 460 | api-size <n>M | <n>G | <n> |
| 461 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 462 | |
| 463 | Set the size of the API region. If not set, defaults to 16M. The input |
| 464 | value can be set in GB, MB or bytes. |
| 465 | |
| 466 | .. code-block:: console |
| 467 | |
| 468 | api-size 64M |
| 469 | |
| 470 | The socksvr Section |
| 471 | ------------------- |
| 472 | |
| 473 | Enables a Unix domain socket which processes binary API messages. See |
| 474 | .../vlibmemory/socket_api.c. If this parameter is not set, vpp |
| 475 | won't process binary API messages over sockets. |
| 476 | |
| 477 | .. code-block:: console |
| 478 | |
| 479 | socksvr { |
| 480 | # Explicitly name a socket file |
| 481 | socket-name /run/vpp/api.sock |
| 482 | or |
| 483 | # Use defaults as described below |
| 484 | default |
| 485 | } |
| 486 | |
| 487 | The "default" keyword instructs vpp to use /run/vpp/api.sock when |
| 488 | running as root, otherwise to use /run/user/<uid>/api.sock. |
| 489 | |
| 490 | The cpu Section |
| 491 | --------------- |
| 492 | |
| 493 | In the VPP there is one main thread and optionally the user can create worker(s) |
| 494 | The main thread and worker thread(s) can be pinned to CPU core(s) manually or automatically |
| 495 | |
| 496 | .. code-block:: console |
| 497 | |
| 498 | cpu { |
| 499 | main-core 1 |
| 500 | corelist-workers 2-3,18-19 |
| 501 | } |
| 502 | |
| 503 | |
| 504 | Manual pinning of thread(s) to CPU core(s) |
| 505 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 506 | |
| 507 | main-core |
| 508 | ^^^^^^^^^ |
| 509 | |
| 510 | Set logical CPU core where main thread runs, if main core is not set VPP will use |
| 511 | core 1 if available |
| 512 | |
| 513 | .. code-block:: console |
| 514 | |
| 515 | main-core 1 |
| 516 | |
| 517 | corelist-workers |
| 518 | ^^^^^^^^^^^^^^^^ |
| 519 | |
| 520 | Set logical CPU core(s) where worker threads are running |
| 521 | |
| 522 | .. code-block:: console |
| 523 | |
| 524 | corelist-workers 2-3,18-19 |
| 525 | |
| 526 | Automatic pinning of thread(s) to CPU core(s) |
| 527 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 528 | |
| 529 | skip-cores number |
| 530 | ^^^^^^^^^^^^^^^^^ |
| 531 | |
| 532 | Sets number of CPU core(s) to be skipped (1 ... N-1), Skipped CPU core(s) are |
| 533 | not used for pinning main thread and working thread(s). |
| 534 | |
| 535 | The main thread is automatically pinned to the first available CPU core and worker(s) |
| 536 | are pinned to next free CPU core(s) after core assigned to main thread |
| 537 | |
| 538 | .. code-block:: console |
| 539 | |
| 540 | skip-cores 4 |
| 541 | |
| 542 | workers number |
| 543 | ^^^^^^^^^^^^^^ |
| 544 | |
| 545 | Specify a number of workers to be created Workers are pinned to N consecutive |
| 546 | CPU cores while skipping "skip-cores" CPU core(s) and main thread's CPU core |
| 547 | |
| 548 | .. code-block:: console |
| 549 | |
| 550 | workers 2 |
| 551 | |
| 552 | scheduler-policy other | batch | idle | fifo | rr |
| 553 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 554 | |
| 555 | Set scheduling policy and priority of main and worker threads |
| 556 | |
| 557 | Scheduling policy options are: other (SCHED_OTHER), batch (SCHED_BATCH) |
| 558 | idle (SCHED_IDLE), fifo (SCHED_FIFO), rr (SCHED_RR) |
| 559 | |
| 560 | .. code-block:: console |
| 561 | |
| 562 | scheduler-policy fifo |
| 563 | |
| 564 | scheduler-priority number |
| 565 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 566 | |
| 567 | Scheduling priority is used only for "real-time policies (fifo and rr), |
| 568 | and has to be in the range of priorities supported for a particular policy |
| 569 | |
| 570 | .. code-block:: console |
| 571 | |
| 572 | scheduler-priority 50 |
| 573 | |
| 574 | The buffers Section |
| 575 | ------------------- |
| 576 | |
| 577 | .. code-block:: console |
| 578 | |
| 579 | buffers { |
| 580 | buffers-per-numa 128000 |
| 581 | default data-size 2048 |
| 582 | } |
| 583 | |
| 584 | buffers-per-numa number |
| 585 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 586 | |
| 587 | Increase number of buffers allocated, needed only in scenarios with |
| 588 | large number of interfaces and worker threads. Value is per numa node. |
| 589 | Default is 16384 (8192 if running unpriviledged) |
| 590 | |
| 591 | .. code-block:: console |
| 592 | |
| 593 | buffers-per-numa 128000 |
| 594 | |
| 595 | default data-size number |
| 596 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 597 | |
| 598 | Size of buffer data area, default is 2048 |
| 599 | |
| 600 | .. code-block:: console |
| 601 | |
| 602 | default data-size 2048 |
| 603 | |
| 604 | |
| 605 | The dpdk Section |
| 606 | ---------------- |
| 607 | |
| 608 | .. code-block:: console |
| 609 | |
| 610 | dpdk { |
| 611 | dev default { |
| 612 | num-rx-desc 512 |
| 613 | num-tx-desc 512 |
| 614 | } |
| 615 | |
| 616 | dev 0000:02:00.1 { |
| 617 | num-rx-queues 2 |
| 618 | name eth0 |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | dev <pci-dev> | default { .. } |
| 623 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 624 | |
| 625 | White-list [as in, attempt to drive] a specific PCI device. PCI-dev is a |
| 626 | string of the form "DDDD:BB:SS.F" where: |
| 627 | |
| 628 | * DDDD = Domain |
| 629 | * BB = Bus Number |
| 630 | * SS = Slot number |
| 631 | * F = Function |
| 632 | |
Paul Vinciguerra | 5ac392d | 2020-03-01 01:37:37 -0500 | [diff] [blame] | 633 | If the keyword **default** is used the values will apply to all the devices. |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 634 | |
| 635 | This is the same format used in the linux sysfs tree (i.e./sys/bus/pci/devices) |
| 636 | for PCI device directory names. |
| 637 | |
| 638 | .. code-block:: console |
| 639 | |
| 640 | dpdk { |
| 641 | dev default { |
| 642 | num-rx-desc 512 |
| 643 | num-tx-desc 512 |
| 644 | } |
| 645 | |
| 646 | dev <pci-dev> { .. } |
| 647 | ^^^^^^^^^^^^^^^^^^^^ |
| 648 | |
| 649 | Whitelist specific interface by specifying PCI address. When whitelisting specific |
| 650 | interfaces by specifying PCI address, additional custom parameters can also be |
| 651 | specified. Valid options include: |
| 652 | |
| 653 | .. code-block:: console |
| 654 | |
| 655 | dev 0000:02:00.0 |
| 656 | dev 0000:03:00.0 |
| 657 | |
| 658 | blacklist <pci-dev> |
| 659 | ^^^^^^^^^^^^^^^^^^^ |
| 660 | |
| 661 | Blacklist specific device type by specifying PCI vendor:device Whitelist entries |
| 662 | take precedence |
| 663 | |
| 664 | .. code-block:: console |
| 665 | |
| 666 | blacklist 8086:10fb |
| 667 | |
| 668 | name interface-name |
| 669 | ^^^^^^^^^^^^^^^^^^^ |
| 670 | |
| 671 | Set interface name |
| 672 | |
| 673 | .. code-block:: console |
| 674 | |
| 675 | dev 0000:02:00.1 { |
| 676 | name eth0 |
| 677 | } |
| 678 | |
| 679 | num-rx-queues <n> |
| 680 | ^^^^^^^^^^^^^^^^^ |
| 681 | |
| 682 | Number of receive queues. Also enables RSS. Default value is 1. |
| 683 | |
| 684 | .. code-block:: console |
| 685 | |
| 686 | dev 0000:02:00.1 { |
Paul Vinciguerra | 5ac392d | 2020-03-01 01:37:37 -0500 | [diff] [blame] | 687 | num-rx-queues <n> |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 688 | } |
| 689 | |
| 690 | num-tx-queues <n> |
| 691 | ^^^^^^^^^^^^^^^^^ |
| 692 | |
| 693 | Number of transmit queues. Default is equal to number of worker threads |
| 694 | or 1 if no workers treads. |
| 695 | |
| 696 | .. code-block:: console |
| 697 | |
| 698 | dev 000:02:00.1 { |
| 699 | num-tx-queues <n> |
| 700 | } |
| 701 | |
| 702 | num-rx-desc <n> |
| 703 | ^^^^^^^^^^^^^^^ |
| 704 | |
| 705 | Number of descriptors in receive ring. Increasing or reducing number |
| 706 | can impact performance. Default is 1024. |
| 707 | |
| 708 | .. code-block:: console |
| 709 | |
| 710 | dev 000:02:00.1 { |
| 711 | num-rx-desc <n> |
| 712 | } |
| 713 | |
| 714 | vlan-strip-offload on | off |
| 715 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 716 | |
| 717 | VLAN strip offload mode for interface. VLAN stripping is off by default |
| 718 | for all NICs except VICs, using ENIC driver, which has VLAN stripping on |
| 719 | by default. |
| 720 | |
| 721 | .. code-block:: console |
| 722 | |
| 723 | dev 000:02:00.1 { |
| 724 | vlan-strip-offload on|off |
| 725 | } |
| 726 | |
| 727 | uio-driver driver-name |
| 728 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 729 | |
| 730 | Change UIO driver used by VPP, Options are: igb_uio, vfio-pci, uio_pci_generic |
| 731 | or auto (default) |
| 732 | |
| 733 | |
| 734 | .. code-block:: console |
| 735 | |
| 736 | uio-driver vfio-pci |
| 737 | |
| 738 | no-multi-seg |
| 739 | ^^^^^^^^^^^^ |
| 740 | |
| 741 | Disable multi-segment buffers, improves performance but disables Jumbo MTU support |
| 742 | |
| 743 | .. code-block:: console |
| 744 | |
| 745 | no-multi-seg |
| 746 | |
| 747 | socket-mem <n> |
| 748 | ^^^^^^^^^^^^^^ |
| 749 | |
| 750 | Change hugepages allocation per-socket, needed only if there is need for |
| 751 | larger number of mbufs. Default is 256M on each detected CPU socket |
| 752 | |
| 753 | .. code-block:: console |
| 754 | |
| 755 | socket-mem 2048,2048 |
| 756 | |
| 757 | no-tx-checksum-offload |
| 758 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 759 | |
| 760 | Disables UDP / TCP TX checksum offload. Typically needed for use faster |
| 761 | vector PMDs (together with no-multi-seg) |
| 762 | |
| 763 | .. code-block:: console |
| 764 | |
| 765 | no-tx-checksum-offload |
| 766 | |
| 767 | enable-tcp-udp-checksum |
| 768 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 769 | |
| 770 | Enable UDP / TCP TX checksum offload This is the reversed option of |
| 771 | 'no-tx-checksum-offload' |
| 772 | |
| 773 | .. code-block:: console |
| 774 | |
| 775 | enable-tcp-udp-checksum |
| 776 | |
| 777 | The plugins Section |
| 778 | ------------------- |
| 779 | |
| 780 | Configure VPP plugins. |
| 781 | |
| 782 | .. code-block:: console |
| 783 | |
| 784 | plugins { |
| 785 | path /ws/vpp/build-root/install-vpp-native/vpp/lib/vpp_plugins |
| 786 | plugin dpdk_plugin.so enable |
| 787 | } |
| 788 | |
| 789 | path pathname |
| 790 | ^^^^^^^^^^^^^ |
| 791 | |
| 792 | Adjust the plugin path depending on where the VPP plugins are. |
| 793 | |
| 794 | .. code-block:: console |
| 795 | |
| 796 | path /ws/vpp/build-root/install-vpp-native/vpp/lib/vpp_plugins |
| 797 | |
| 798 | plugin plugin-name | default enable | disable |
| 799 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 800 | |
| 801 | Disable all plugins by default and then selectively enable specific plugins |
| 802 | |
| 803 | .. code-block:: console |
| 804 | |
| 805 | plugin default disable |
| 806 | plugin dpdk_plugin.so enable |
| 807 | plugin acl_plugin.so enable |
| 808 | |
| 809 | Enable all plugins by default and then selectively disable specific plugins |
| 810 | |
| 811 | .. code-block:: console |
| 812 | |
| 813 | plugin dpdk_plugin.so disable |
| 814 | plugin acl_plugin.so disable |
| 815 | |
| 816 | Th statseg Section |
| 817 | ^^^^^^^^^^^^^^^^^^ |
| 818 | |
| 819 | .. code-block:: console |
| 820 | |
| 821 | statseg { |
| 822 | per-node-counters on |
| 823 | } |
| 824 | |
| 825 | socket-name <filename> |
| 826 | ^^^^^^^^^^^^^^^^^^^^^^ |
| 827 | |
| 828 | Name of the stats segment socket defaults to /run/vpp/stats.sock. |
| 829 | |
| 830 | .. code-block:: console |
| 831 | |
| 832 | socket-name /run/vpp/stats.sock |
| 833 | |
| 834 | size <nnn>[KMG] |
| 835 | ^^^^^^^^^^^^^^^ |
| 836 | |
| 837 | The size of the stats segment, defaults to 32mb |
| 838 | |
| 839 | .. code-block:: console |
| 840 | |
| 841 | size 1024M |
| 842 | |
| 843 | per-node-counters on | off |
| 844 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 845 | |
| 846 | Defaults to none |
| 847 | |
| 848 | .. code-block:: console |
| 849 | |
| 850 | per-node-counters on |
| 851 | |
| 852 | update-interval <f64-seconds> |
| 853 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 854 | |
| 855 | Sets the segment scrape / update interval |
| 856 | |
| 857 | .. code-block:: console |
| 858 | |
| 859 | update-interval 300 |
| 860 | |
| 861 | |
| 862 | Some Advanced Parameters: |
| 863 | ------------------------- |
| 864 | |
| 865 | |
| 866 | acl-plugin Section |
| 867 | ------------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 868 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 869 | These parameters change the configuration of the ACL (access control list) plugin, |
| 870 | such as how the ACL bi-hash tables are initialized. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 871 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 872 | They should only be set by those that are familiar with the interworkings of VPP |
| 873 | and the ACL Plugin. |
| 874 | |
| 875 | The first three parameters, *connection hash buckets*, *connection hash memory*, |
| 876 | and *connection count max*, set the **connection table per-interface parameters** |
| 877 | for modifying how the two bounded-index extensible hash tables for |
| 878 | IPv6 (40\*8 bit key and 8\*8 bit value pairs) and IPv4 |
| 879 | (16\*8 bit key and 8\*8 bit value pairs) **ACL plugin FA interface sessions** |
| 880 | are initialized. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 881 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 882 | connection hash buckets <n> |
| 883 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 884 | |
| 885 | Sets the number of hash buckets (rounded up to a power of 2) in each |
| 886 | of the two bi-hash tables. Defaults to 64\*1024 (65536) hash buckets. |
| 887 | |
| 888 | .. code-block:: console |
| 889 | |
| 890 | connection hash buckets 65536 |
| 891 | |
| 892 | connection hash memory <n> |
| 893 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 894 | |
| 895 | Sets the allocated memory size (in bytes) for each of the two bi-hash tables. |
| 896 | Defaults to 1073741824 bytes. |
| 897 | |
| 898 | .. code-block:: console |
| 899 | |
| 900 | connection hash memory 1073741824 |
| 901 | |
| 902 | connection count max <n> |
| 903 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 904 | |
| 905 | Sets the maximum number of pool elements when allocating each per-worker |
| 906 | pool of sessions for both bi-hash tables. Defaults to 500000 elements in each pool. |
| 907 | |
| 908 | .. code-block:: console |
| 909 | |
| 910 | connection count max 500000 |
| 911 | |
| 912 | main heap size <n>G | <n>M | <n>K | <n> |
| 913 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 914 | |
| 915 | Sets the size of the main memory heap that holds all the ACL module related |
| 916 | allocations (other than hash.) Default size is 0, but during |
| 917 | ACL heap initialization is equal to |
| 918 | *per_worker_size_with_slack * tm->n_vlib_mains + bihash_size + main_slack*. |
| 919 | Note that these variables are partially based on the |
| 920 | **connection table per-interface parameters** mentioned above. |
| 921 | |
| 922 | .. code-block:: console |
| 923 | |
| 924 | main heap size 3G |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 925 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 926 | The next three parameters, *hash lookup heap size*, *hash lookup hash buckets*, |
| 927 | and *hash lookup hash memory*, modify the initialization of the bi-hash lookup |
| 928 | table used by the ACL plugin. This table is initialized when attempting to apply |
| 929 | an ACL to the existing vector of ACLs looked up during packet processing |
| 930 | (but it is found that the table does not exist / has not been initialized yet.) |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 931 | |
| 932 | hash lookup heap size <n>G | <n>M | <n> K | <n> |
| 933 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 934 | |
| 935 | Sets the size of the memory heap that holds all the miscellaneous allocations |
| 936 | related to hash-based lookups. Default size is 67108864 bytes. |
| 937 | |
| 938 | .. code-block:: console |
| 939 | |
| 940 | hash lookup heap size 70M |
| 941 | |
| 942 | hash lookup hash buckets <n> |
| 943 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 944 | |
| 945 | Sets the number of hash buckets (rounded up to a power of 2) in the bi-hash |
| 946 | lookup table. Defaults to 65536 hash buckets. |
| 947 | |
| 948 | .. code-block:: console |
| 949 | |
| 950 | hash lookup hash buckets 65536 |
| 951 | |
| 952 | hash lookup hash memory <n> |
| 953 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 954 | |
| 955 | Sets the allocated memory size (in bytes) for the bi-hash lookup table. |
| 956 | Defaults to 67108864 bytes. |
| 957 | |
| 958 | .. code-block:: console |
| 959 | |
| 960 | hash lookup hash memory 67108864 |
| 961 | |
| 962 | use tuple merge <n> |
| 963 | ^^^^^^^^^^^^^^^^^^^ |
| 964 | |
| 965 | Sets a boolean value indicating whether or not to use TupleMerge |
| 966 | for hash ACL's. Defaults to 1 (true), meaning the default implementation |
| 967 | of hashing ACL's does use TupleMerge. |
| 968 | |
| 969 | .. code-block:: console |
| 970 | |
| 971 | use tuple merge 1 |
| 972 | |
| 973 | tuple merge split threshold <n> |
| 974 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 975 | |
| 976 | Sets the maximum amount of rules (ACE's) that can collide in a bi-hash |
| 977 | lookup table before the table is split into two new tables. Splitting ensures |
| 978 | less rule collisions by hashing colliding rules based on their common tuple |
| 979 | (usually their maximum common tuple.) Splitting occurs when the |
| 980 | *length of the colliding rules vector* is greater than this threshold amount. |
| 981 | Defaults to a maximum of 39 rule collisions per table. |
| 982 | |
| 983 | .. code-block:: console |
| 984 | |
| 985 | tuple merge split threshold 30 |
| 986 | |
| 987 | reclassify sessions <n> |
| 988 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 989 | |
| 990 | Sets a boolean value indicating whether or not to take the epoch of the session |
| 991 | into account when dealing with re-applying ACL's or changing already applied ACL's. |
| 992 | Defaults to 0 (false), meaning the default implementation does NOT take the |
| 993 | epoch of the session into account. |
| 994 | |
| 995 | .. code-block:: console |
| 996 | |
| 997 | reclassify sessions 1 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 998 | |
| 999 | .. _api-queue: |
| 1000 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1001 | api-queue Section |
| 1002 | ----------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1003 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1004 | length <n> |
| 1005 | ^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1006 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1007 | Sets the api queue length. Minimum valid queue length is 1024, which is |
| 1008 | also the default. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1009 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1010 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1011 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1012 | length 2048 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1013 | |
| 1014 | .. _cj: |
| 1015 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1016 | cj Section |
| 1017 | ---------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1018 | |
| 1019 | The circular journal (CJ) thread-safe circular log buffer scheme is |
| 1020 | occasionally useful when chasing bugs. Calls to it should not be checked in. |
| 1021 | See .../vlib/vlib/unix/cj.c. The circular journal is disables by default. |
| 1022 | When enabled, the number of records must be provided, there is no default |
| 1023 | value. |
| 1024 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1025 | records <n> |
| 1026 | ^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1027 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1028 | Configure the number of circular journal records in the circular buffer. |
| 1029 | The number of records should be a power of 2. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1030 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1031 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1032 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1033 | records 131072 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1034 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1035 | on |
| 1036 | ^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1037 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1038 | Turns on logging at the earliest possible moment. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1039 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1040 | .. code-block:: console |
| 1041 | |
| 1042 | on |
| 1043 | |
| 1044 | dns Section |
| 1045 | ----------- |
| 1046 | |
| 1047 | max-cache-size <n> |
| 1048 | ^^^^^^^^^^^^^^^^^^ |
| 1049 | |
| 1050 | Set the maximum number of active elements allowed in the pool of |
| 1051 | dns cache entries. When resolving an expired entry or adding a new |
| 1052 | static entry and the max number of active entries is reached, |
| 1053 | a random, non-static entry is deleted. Defaults to 65535 entries. |
| 1054 | |
| 1055 | .. code-block:: console |
| 1056 | |
| 1057 | max-cache-size 65535 |
| 1058 | |
Paul Vinciguerra | 491741a | 2020-03-02 16:10:54 -0500 | [diff] [blame] | 1059 | |
| 1060 | ethernet Section |
| 1061 | ----------------- |
| 1062 | |
| 1063 | default-mtu <n> |
| 1064 | ^^^^^^^^^^^^^^^ |
| 1065 | |
| 1066 | Specifies the default MTU size for Ethernet interfaces. Must be in |
| 1067 | the range of 64-9000. The default is 9000. |
| 1068 | |
| 1069 | .. code-block:: console |
| 1070 | |
| 1071 | default-mtu 1500 |
| 1072 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1073 | heapsize Section |
| 1074 | ----------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1075 | |
| 1076 | Heapsize configuration controls the size of the main heap. The heap size is |
| 1077 | configured very early in the boot sequence, before loading plug-ins or doing |
| 1078 | much of anything else. |
| 1079 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1080 | heapsize <n>M | <n>G |
| 1081 | ^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1082 | |
Dave Barach | 2fef3df | 2020-02-21 17:31:17 -0500 | [diff] [blame] | 1083 | Specifies the size of the heap in MB or GB. The default is 1GB. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1084 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1085 | .. code-block:: console |
| 1086 | |
| 1087 | heapsize 2G |
| 1088 | |
| 1089 | ip Section |
| 1090 | ---------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1091 | |
| 1092 | IPv4 heap configuration. he heap size is configured very early in the boot |
| 1093 | sequence, before loading plug-ins or doing much of anything else. |
| 1094 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1095 | heap-size <n>G | <n>M | <n>K | <n> |
| 1096 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1097 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1098 | Set the IPv4 mtrie heap size, which is the amount of memory dedicated to |
| 1099 | the destination IP lookup table. The input value can be set in GB, MB, KB |
| 1100 | or bytes. The default value is 32MB. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1101 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1102 | .. code-block:: console |
| 1103 | |
| 1104 | heap-size 64M |
| 1105 | |
| 1106 | ip6 Section |
| 1107 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1108 | |
| 1109 | IPv6 heap configuration. he heap size is configured very early in the boot |
| 1110 | sequence, before loading plug-ins or doing much of anything else. |
| 1111 | |
| 1112 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1113 | heap-size <n>G | <n>M | <n>K | <n> |
| 1114 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1115 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1116 | Set the IPv6 forwarding table heap size. The input value can be set in GB, |
| 1117 | MB, KB or bytes. The default value is 32MB. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1118 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1119 | .. code-block:: console |
| 1120 | |
| 1121 | heap-size 64M |
| 1122 | |
| 1123 | hash-buckets <n> |
| 1124 | ^^^^^^^^^^^^^^^^ |
| 1125 | |
| 1126 | Set the number of IPv6 forwarding table hash buckets. The default value is |
| 1127 | 64K (65536). |
| 1128 | |
| 1129 | .. code-block:: console |
| 1130 | |
| 1131 | hash-buckets 131072 |
| 1132 | |
| 1133 | l2learn Section |
| 1134 | --------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1135 | |
| 1136 | Configure Layer 2 MAC Address learning parameters. |
| 1137 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1138 | limit <n> |
| 1139 | ^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1140 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1141 | Configures the number of L2 (MAC) addresses in the L2 FIB at any one time, |
| 1142 | which limits the size of the L2 FIB to <n> concurrent entries. Defaults to |
| 1143 | 4M entries (4194304). |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1144 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1145 | .. code-block:: console |
| 1146 | |
| 1147 | limit 8388608 |
| 1148 | |
| 1149 | l2tp Section |
| 1150 | ------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1151 | |
| 1152 | IPv6 Layer 2 Tunnelling Protocol Version 3 (IPv6-L2TPv3) configuration controls |
| 1153 | the method used to locate a specific IPv6-L2TPv3 tunnel. The following settings |
| 1154 | are mutually exclusive: |
| 1155 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1156 | lookup-v6-src |
| 1157 | ^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1158 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1159 | Lookup tunnel by IPv6 source address. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1160 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1161 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1162 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1163 | lookup-v6-src |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1164 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1165 | lookup-v6-dst |
| 1166 | ^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1167 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1168 | Lookup tunnel by IPv6 destination address. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1169 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1170 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1171 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1172 | lookup-v6-dst |
| 1173 | |
| 1174 | lookup-session-id |
| 1175 | ^^^^^^^^^^^^^^^^^ |
| 1176 | |
| 1177 | Lookup tunnel by L2TPv3 session identifier. |
| 1178 | |
| 1179 | .. code-block:: console |
| 1180 | |
| 1181 | lookup-session-id |
| 1182 | |
| 1183 | logging Section |
| 1184 | --------------- |
| 1185 | |
| 1186 | size <n> |
| 1187 | ^^^^^^^^ |
| 1188 | |
| 1189 | Number of entries in the global logging buffer. Defaults to 512. |
| 1190 | |
| 1191 | .. code-block:: console |
| 1192 | |
| 1193 | size 512 |
| 1194 | |
| 1195 | nthrottle-time <n> |
| 1196 | ^^^^^^^^^^^^^^^^^^ |
| 1197 | |
| 1198 | Set the global value for the time to wait (in seconds) before resuming |
| 1199 | logging of a log subclass that exceeded the per-subclass message-per-second |
| 1200 | threshold. Defaults to 3. |
| 1201 | |
| 1202 | .. code-block:: console |
| 1203 | |
| 1204 | unthrottle-time 3 |
| 1205 | |
| 1206 | default-log-level emerg|alert | crit | err | warn | notice | info | debug | disabled |
| 1207 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1208 | |
| 1209 | Set the default logging level of the system log. Defaults to notice. |
| 1210 | |
| 1211 | .. code-block:: console |
| 1212 | |
| 1213 | default-log-level notice |
| 1214 | |
| 1215 | default-syslog-log-level emerg|alert | crit | err | warn | notice | info | debug | disabled |
| 1216 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1217 | |
| 1218 | Set the default logging level of the syslog target. Defaults to warning. |
| 1219 | |
| 1220 | .. code-block:: console |
| 1221 | |
| 1222 | default-syslog-log-level warning |
| 1223 | |
| 1224 | mactime Section |
| 1225 | --------------- |
| 1226 | |
| 1227 | lookup-table-buckets <n> |
| 1228 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1229 | |
| 1230 | Sets the number of hash buckets in the mactime bi-hash lookup table. |
| 1231 | Defaults to 128 buckets. |
| 1232 | |
| 1233 | .. code-block:: console |
| 1234 | |
| 1235 | lookup-table-buckets 128 |
| 1236 | |
| 1237 | lookup-table-memory <n>G | <n>M | <n>K | <n> |
| 1238 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1239 | |
| 1240 | Sets the allocated memory size (in bytes) for the mactime bi-hash lookup table. |
| 1241 | The input value can be set in GB, MB, KB or bytes. The default value is 262144 |
| 1242 | (256 << 10) bytes or roughly 256KB. |
| 1243 | |
| 1244 | .. code-block:: console |
| 1245 | |
| 1246 | lookup-table-memory 300K |
| 1247 | |
| 1248 | timezone_offset <n> |
| 1249 | ^^^^^^^^^^^^^^^^^^^ |
| 1250 | |
| 1251 | Sets the timezone offset from UTC. Defaults to an offset of -5 hours |
| 1252 | from UTC (US EST / EDT.) |
| 1253 | |
| 1254 | .. code-block:: console |
| 1255 | |
| 1256 | timezone_offset -5 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1257 | |
| 1258 | "map" Parameters |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1259 | ---------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1260 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1261 | customer edge |
| 1262 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1263 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1264 | Sets a boolean true to indicate that the MAP node is a Customer Edge (CE) |
| 1265 | router. The boolean defaults to false, meaning the MAP node is not treated |
| 1266 | as a CE router. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1267 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1268 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1269 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1270 | customer edge |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1271 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1272 | nat Section |
| 1273 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1274 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1275 | These parameters change the configuration of the NAT (Network address translation) |
| 1276 | plugin, such as how the NAT & NAT64 bi-hash tables are initialized, if the NAT is |
| 1277 | endpoint dependent, or if the NAT is deterministic. |
| 1278 | |
| 1279 | For each NAT per thread data, the following 4 parameters change how certain |
| 1280 | bi-hash tables are initialized. |
| 1281 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1282 | translation hash buckets <n> |
| 1283 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1284 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1285 | Sets the number of hash buckets in each of the two in/out NAT bi-hash lookup |
| 1286 | tables. Defaults to 1024 buckets. |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1287 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1288 | If the NAT is indicated to be endpoint dependent, which can be set with the |
| 1289 | :ref:`endpoint-dependent parameter <endpointLabel>`, then this parameter sets |
| 1290 | the number of hash buckets in each of the two endpoint dependent sessions |
| 1291 | NAT bi-hash lookup tables. |
| 1292 | |
| 1293 | .. code-block:: console |
| 1294 | |
| 1295 | translation hash buckets 1024 |
| 1296 | |
| 1297 | translation hash memory <n> |
| 1298 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1299 | |
| 1300 | Sets the allocated memory size (in bytes) for each of the two in/out NAT |
| 1301 | bi-hash tables. Defaults to 134217728 (128 << 20) bytes, which is roughly 128 MB. |
| 1302 | |
| 1303 | If the NAT is indicated to be endpoint dependent, which can be set with the |
| 1304 | :ref:`endpoint-dependent parameter <endpointLabel>`, then this parameter sets the |
| 1305 | allocated memory size for each of the two endpoint dependent sessions NAT bi-hash |
| 1306 | lookup tables. |
| 1307 | |
| 1308 | .. code-block:: console |
| 1309 | |
| 1310 | translation hash memory 134217728 |
| 1311 | |
| 1312 | user hash buckets <n> |
| 1313 | ^^^^^^^^^^^^^^^^^^^^^ |
| 1314 | |
| 1315 | Sets the number of hash buckets in the user bi-hash lookup table |
| 1316 | (src address lookup for a user.) Defaults to 128 buckets. |
| 1317 | |
| 1318 | .. code-block:: console |
| 1319 | |
| 1320 | user hash buckets 128 |
| 1321 | |
| 1322 | user hash memory <n> |
| 1323 | ^^^^^^^^^^^^^^^^^^^^ |
| 1324 | |
| 1325 | Sets the allocated memory size (in bytes) for the user bi-hash lookup table |
| 1326 | (src address lookup for a user.) Defaults to 67108864 (64 << 20) bytes, |
| 1327 | which is roughly 64 MB. |
| 1328 | |
| 1329 | .. code-block:: console |
| 1330 | |
| 1331 | user hash memory 67108864 |
| 1332 | |
| 1333 | max translations per user <n> |
| 1334 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1335 | |
| 1336 | Sets the maximum amount of dynamic and/or static NAT sessions each user can have. |
| 1337 | Defaults to 100. When this limit is reached, the least recently used translation |
| 1338 | is recycled. |
| 1339 | |
| 1340 | .. code-block:: console |
| 1341 | |
| 1342 | max translations per user 50 |
| 1343 | |
| 1344 | deterministic |
| 1345 | ^^^^^^^^^^^^^ |
| 1346 | |
| 1347 | Sets a boolean value to 1 indicating that the NAT is deterministic. Defaults to 0, |
| 1348 | meaning the NAT is not deterministic. |
| 1349 | |
| 1350 | .. code-block:: console |
| 1351 | |
| 1352 | deterministic |
| 1353 | |
| 1354 | nat64 bib hash buckets <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame] | 1355 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1356 | |
| 1357 | Sets the number of hash buckets in each of the two in/out NAT64 BIB bi-hash |
| 1358 | tables. Defaults to 1024 buckets. |
| 1359 | |
| 1360 | .. code-block:: console |
| 1361 | |
| 1362 | nat64 bib hash buckets 1024 |
| 1363 | |
| 1364 | nat64 bib hash memory <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame] | 1365 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1366 | |
| 1367 | Sets the allocated memory size (in bytes) for each of the two in/out NAT64 |
| 1368 | BIB bi-hash tables. Defaults to 134217728 (128 << 20) bytes, |
| 1369 | which is roughly 128 MB. |
| 1370 | |
| 1371 | .. code-block:: console |
| 1372 | |
| 1373 | nat64 bib hash memory 134217728 |
| 1374 | |
| 1375 | nat64 st hash buckets <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame] | 1376 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1377 | |
| 1378 | Sets the number of hash buckets in each of the two in/out NAT64 session table |
| 1379 | bi-hash tables. Defaults to 2048 buckets. |
| 1380 | |
| 1381 | .. code-block:: console |
| 1382 | |
| 1383 | nat64 st hash buckets 2048 |
| 1384 | |
| 1385 | nat64 st hash memory <n> |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame] | 1386 | ^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1387 | |
| 1388 | Sets the allocated memory size (in bytes) for each of the two in/out NAT64 session |
| 1389 | table bi-hash tables. Defaults to 268435456 (256 << 20) bytes, which is roughly |
| 1390 | 256 MB. |
| 1391 | |
| 1392 | .. code-block:: console |
| 1393 | |
| 1394 | nat64 st hash memory 268435456 |
| 1395 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1396 | .. _endpointLabel: |
| 1397 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1398 | endpoint-dependent |
| 1399 | ^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1400 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1401 | Sets a boolean value to 1, indicating that the NAT is endpoint dependent. |
| 1402 | Defaults to 0, meaning the NAT is not endpoint dependent. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1403 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1404 | .. code-block:: console |
| 1405 | |
| 1406 | endpoint-dependent |
| 1407 | |
| 1408 | oam Section |
| 1409 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1410 | |
| 1411 | OAM configuration controls the (ip4-icmp) interval, and number of misses |
| 1412 | allowed before reporting an oam target down to any registered listener. |
| 1413 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1414 | interval <n.n> |
| 1415 | ^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1416 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1417 | Interval, floating-point seconds, between sending OAM IPv4 ICMP messages. |
| 1418 | Default is 2.04 seconds. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1419 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1420 | .. code-block:: console |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1421 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1422 | interval 3.5 |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1423 | |
Jieqiang Wang | affa055 | 2019-10-22 20:09:16 +0800 | [diff] [blame] | 1424 | physmem Section |
| 1425 | --------------- |
| 1426 | |
| 1427 | Configuration parameters used to specify base address and maximum size of |
| 1428 | the memory allocated for the pmalloc module in VPP. pmalloc is a NUMA-aware, |
| 1429 | growable physical memory allocator. pmalloc allocates memory for the DPDK |
| 1430 | memory pool. |
| 1431 | |
| 1432 | base-addr <address> |
| 1433 | ^^^^^^^^^^^^^^^^^^^ |
| 1434 | |
| 1435 | Specify the base address for pmalloc memory space. |
| 1436 | |
| 1437 | .. code-block:: console |
| 1438 | |
| 1439 | base-addr 0xfffe00000000 |
| 1440 | |
| 1441 | max-size <n>G | <n>M | <n>K | <n> |
| 1442 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1443 | |
| 1444 | Set the memory size for pmalloc memory space. The default is 16G. |
| 1445 | |
| 1446 | .. code-block:: console |
| 1447 | |
| 1448 | max-size 4G |
| 1449 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1450 | tapcli Section |
| 1451 | -------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1452 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1453 | Configuration parameters for TAPCLI (dynamic tap interface hookup.) |
| 1454 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1455 | mtu <n> |
| 1456 | ^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1457 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1458 | Sets interface MTU (maximum transmission unit) size in bytes. This size |
| 1459 | is also related to the number of MTU buffers. Defaults to 1500 bytes. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1460 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1461 | .. code-block:: console |
| 1462 | |
| 1463 | mtu 1500 |
| 1464 | |
| 1465 | disable |
| 1466 | ^^^^^^^ |
| 1467 | |
| 1468 | Disables TAPCLI. Default is that TAPCLI is enabled. |
| 1469 | |
| 1470 | .. code-block:: console |
| 1471 | |
| 1472 | disable |
| 1473 | |
| 1474 | |
| 1475 | tcp Section |
| 1476 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1477 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1478 | Configuration parameters for TCP host stack utilities. The following |
| 1479 | preallocation parameters are related to the initialization of fixed-size, |
| 1480 | preallocation pools. |
| 1481 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1482 | preallocated-connections <n> |
| 1483 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1484 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1485 | Sets the number of preallocated TCP connections. Defaults to 0. |
| 1486 | The preallocated connections per thread is related to this value, |
| 1487 | equal to (preallocated_connections / (num_threads - 1)). |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1488 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1489 | .. code-block:: console |
| 1490 | |
| 1491 | preallocated-connections 5 |
| 1492 | |
| 1493 | preallocated-half-open-connections <n> |
| 1494 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1495 | |
| 1496 | Sets the number of preallocated TCP half-open connections. Defaults to 0. |
| 1497 | |
| 1498 | .. code-block:: console |
| 1499 | |
| 1500 | preallocated-half-open-connections 5 |
| 1501 | |
| 1502 | buffer-fail-fraction <n.n> |
| 1503 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1504 | |
| 1505 | Sets the TCP buffer fail fraction (a float) used for fault-injection |
| 1506 | when debugging TCP buffer allocation. Its use is found in *tcp_debug.h*. |
| 1507 | Defaults to 0.0. |
| 1508 | |
| 1509 | .. code-block:: console |
| 1510 | |
| 1511 | buffer-fail-fraction 0.0 |
| 1512 | |
| 1513 | |
| 1514 | tls Section |
| 1515 | ----------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1516 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1517 | Configures TLS parameters, such as enabling the use of test certificates. |
| 1518 | These parameters affect the tlsmbedtls and tlsopenssl plugins. |
| 1519 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1520 | use-test-cert-in-ca |
| 1521 | ^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1522 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1523 | Sets a boolean value to 1 to indicate during the initialization of a |
| 1524 | TLS CA chain to attempt to parse and add test certificates to the chain. |
| 1525 | Defaults to 0, meaning test certificates are not used. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1526 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1527 | .. code-block:: console |
| 1528 | |
| 1529 | use-test-cert-in-ca |
| 1530 | |
| 1531 | ca-cert-path <filename> |
| 1532 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 1533 | |
| 1534 | Sets the filename path of the location of TLS CA certificates, used when |
| 1535 | initializing and loading TLS CA certificates during the initialization |
| 1536 | of a TLS CA chain. If not set, the default filename path is |
| 1537 | */etc/ssl/certs/ca-certificates.crt*. |
| 1538 | |
| 1539 | .. code-block:: console |
| 1540 | |
| 1541 | ca-cert-path /etc/ssl/certs/ca-certificates.crt |
| 1542 | |
| 1543 | |
| 1544 | tuntap Section |
| 1545 | -------------- |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1546 | |
| 1547 | The "tuntap" driver configures a point-to-point interface between the vpp |
| 1548 | engine and the local Linux kernel stack. This allows e.g. users to ssh to the |
| 1549 | host | VM | container via vpp "revenue" interfaces. It's marginally useful, and |
| 1550 | is currently disabled by default. To [dynamically] create TAP interfaces - the |
| 1551 | preferred scheme - see the "tap_connect" binary API. The Linux network stack |
| 1552 | "vnet" interface needs to manually configure, and VLAN and other settings if |
| 1553 | desired. |
| 1554 | |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1555 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1556 | enable|disable |
| 1557 | ^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1558 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1559 | Enable or disable the tun/tap driver. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1560 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1561 | .. code-block:: console |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1562 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1563 | enable |
| 1564 | |
| 1565 | ethernet|ether |
| 1566 | ^^^^^^^^^^^^^^ |
| 1567 | |
| 1568 | Create a tap device (ethernet MAC) instead of a tun device (point-to-point |
| 1569 | tunnel). The two keywords are aliases for the same function. |
| 1570 | |
| 1571 | .. code-block:: console |
| 1572 | |
| 1573 | ethernet |
| 1574 | |
| 1575 | have-normal-interface|have-normal |
| 1576 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 1577 | |
| 1578 | Treat the host Linux stack as a routing peer instead of programming VPP |
| 1579 | interface L3 addresses onto the tun/tap devices. The two keywords are |
| 1580 | aliases for the same function. |
| 1581 | |
| 1582 | .. code-block:: console |
| 1583 | |
| 1584 | have-normal-interface |
| 1585 | |
| 1586 | name <name> |
| 1587 | ^^^^^^^^^^^ |
| 1588 | |
| 1589 | Assign name to the tun/tap device. |
| 1590 | |
| 1591 | .. code-block:: console |
| 1592 | |
| 1593 | name vpp1 |
| 1594 | |
| 1595 | |
| 1596 | vhost-user Section |
| 1597 | ------------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1598 | |
| 1599 | Vhost-user configuration parameters control the vhost-user driver. |
| 1600 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1601 | coalesce-frames <n> |
| 1602 | ^^^^^^^^^^^^^^^^^^^ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1603 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1604 | Subject to deadline-timer expiration - see next item - attempt to transmit |
| 1605 | at least <n> packet frames. Default is 32 frames. |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1606 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1607 | .. code-block:: console |
| 1608 | |
| 1609 | coalesce-frames 64 |
| 1610 | |
| 1611 | coalesce-time <seconds> |
| 1612 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 1613 | |
| 1614 | Hold packets no longer than (floating-point) seconds before transmitting |
| 1615 | them. Default is 0.001 seconds |
| 1616 | |
| 1617 | .. code-block:: console |
| 1618 | |
| 1619 | coalesce-time 0.002 |
| 1620 | |
| 1621 | dont-dump-memory |
| 1622 | ^^^^^^^^^^^^^^^^ |
| 1623 | |
| 1624 | vhost-user shared-memory segments can add up to a large amount of memory, so |
| 1625 | it's handy to avoid adding them to corefiles when using a significant number |
| 1626 | of such interfaces. |
| 1627 | |
| 1628 | .. code-block:: console |
| 1629 | |
| 1630 | dont-dump-memory |
| 1631 | |
| 1632 | |
| 1633 | vlib Section |
| 1634 | ------------ |
John DeNisco | 06dcd45 | 2018-07-26 12:45:10 -0400 | [diff] [blame] | 1635 | |
andrew | 9f0c020 | 2018-08-14 09:35:42 -0400 | [diff] [blame] | 1636 | These parameters configure VLIB, such as allowing you to choose whether to |
| 1637 | enable memory traceback or a post-mortem elog dump. |
| 1638 | |
John DeNisco | 4f85968 | 2019-12-10 14:25:50 -0500 | [diff] [blame] | 1639 | memory-trace |
| 1640 | ^^^^^^^^^^^^ |
| 1641 | |
| 1642 | Enables memory trace (mheap traceback.) Defaults to 0, meaning memory |
| 1643 | trace is disabled. |
| 1644 | |
| 1645 | .. code-block:: console |
| 1646 | |
| 1647 | memory-trace |
| 1648 | |
| 1649 | elog-events <n> |
| 1650 | ^^^^^^^^^^^^^^^ |
| 1651 | |
| 1652 | Sets the number of elements/events (the size) of the event ring |
| 1653 | (a circular buffer of events.) This number rounds to a power of 2. |
| 1654 | Defaults to 131072 (128 << 10) elements. |
| 1655 | |
| 1656 | .. code-block:: console |
| 1657 | |
| 1658 | elog-events 4096 |
| 1659 | |
| 1660 | elog-post-mortem-dump |
| 1661 | ^^^^^^^^^^^^^^^^^^^^^ |
| 1662 | |
| 1663 | Enables the attempt of a post-mortem elog dump to |
| 1664 | */tmp/elog_post_mortem.<PID_OF_CALLING_PROCESS>* if os_panic or |
| 1665 | os_exit is called. |
| 1666 | |
| 1667 | .. code-block:: console |
| 1668 | |
| 1669 | elog-post-mortem-dump |