]> git.proxmox.com Git - ovs.git/blame - vswitchd/vswitch.xml
vswitch.xml: Update dpdk-init documentation.
[ovs.git] / vswitchd / vswitch.xml
CommitLineData
ce887677 1<?xml version="1.0" encoding="utf-8"?>
57ba0a77 2<database name="ovs-vswitchd.conf.db" title="Open vSwitch Configuration Database">
c5f341ab
BP
3 <p>
4 A database with this schema holds the configuration for one Open
5 vSwitch daemon. The top-level configuration for the daemon is the
6 <ref table="Open_vSwitch"/> table, which must have exactly one
89365653 7 record. Records in other tables are significant only when they
c5f341ab
BP
8 can be reached directly or indirectly from the <ref
9 table="Open_vSwitch"/> table. Records that are not reachable from
10 the <ref table="Open_vSwitch"/> table are automatically deleted
11 from the database, except for records in a few distinguished
3fd8d445 12 ``root set'' tables.
c5f341ab 13 </p>
89365653 14
3fd8d445
BP
15 <h2>Common Columns</h2>
16
17 <p>
18 Most tables contain two special columns, named <code>other_config</code>
19 and <code>external_ids</code>. These columns have the same form and
20 purpose each place that they appear, so we describe them here to save space
21 later.
22 </p>
23
24 <dl>
25 <dt><code>other_config</code>: map of string-string pairs</dt>
26 <dd>
27 <p>
28 Key-value pairs for configuring rarely used features. Supported keys,
29 along with the forms taken by their values, are documented individually
30 for each table.
31 </p>
32 <p>
33 A few tables do not have <code>other_config</code> columns because no
34 key-value pairs have yet been defined for them.
35 </p>
36 </dd>
37
38 <dt><code>external_ids</code>: map of string-string pairs</dt>
39 <dd>
40 Key-value pairs for use by external frameworks that integrate with Open
41 vSwitch, rather than by Open vSwitch itself. System integrators should
42 either use the Open vSwitch development mailing list to coordinate on
43 common key-value definitions, or choose key names that are likely to be
44 unique. In some cases, where key-value pairs have been defined that are
45 likely to be widely useful, they are documented individually for each
46 table.
47 </dd>
48 </dl>
49
89365653 50 <table name="Open_vSwitch" title="Open vSwitch configuration.">
c5f341ab
BP
51 Configuration for an Open vSwitch daemon. There must be exactly
52 one record in the <ref table="Open_vSwitch"/> table.
89365653
BP
53
54 <group title="Configuration">
55 <column name="bridges">
56 Set of bridges managed by the daemon.
57 </column>
58
89365653
BP
59 <column name="ssl">
60 SSL used globally by the daemon.
61 </column>
f5e7ed5d 62
3fd8d445
BP
63 <column name="external_ids" key="system-id">
64 A unique identifier for the Open vSwitch's physical host.
65 The form of the identifier depends on the type of the host.
66 On a Citrix XenServer, this will likely be the same as
67 <ref column="external_ids" key="xs-system-uuid"/>.
3fe80505
BP
68 </column>
69
3fd8d445
BP
70 <column name="external_ids" key="xs-system-uuid">
71 The Citrix XenServer universally unique identifier for the physical
72 host as displayed by <code>xe host-list</code>.
f5e7ed5d 73 </column>
40358701 74
9e6ec60a 75 <column name="external_ids" key="hostname">
207e85db
BS
76 The hostname for the host running Open vSwitch. This is a fully
77 qualified domain name since version 2.6.2.
9e6ec60a
RB
78 </column>
79
34d4f74d
RW
80 <column name="external_ids" key="rundir">
81 In Open vSwitch 2.8 and later, the run directory of the running Open
82 vSwitch daemon. This directory is used for runtime state such as
83 control and management sockets. The value of <ref
84 column="other_config" key="vhost-sock-dir"/> is relative to this
85 directory.
86 </column>
87
12eb035b
AW
88 <column name="other_config" key="stats-update-interval"
89 type='{"type": "integer", "minInteger": 5000}'>
90 <p>
91 Interval for updating statistics to the database, in milliseconds.
92 This option will affect the update of the <code>statistics</code>
93 column in the following tables: <code>Port</code>, <code>Interface
94 </code>, <code>Mirror</code>.
95 </p>
96 <p>
97 Default value is 5000 ms.
98 </p>
99 <p>
100 Getting statistics more frequently can be achieved via OpenFlow.
101 </p>
102 </column>
103
40358701
GS
104 <column name="other_config" key="flow-restore-wait"
105 type='{"type": "boolean"}'>
106 <p>
107 When <code>ovs-vswitchd</code> starts up, it has an empty flow table
108 and therefore it handles all arriving packets in its default fashion
109 according to its configuration, by dropping them or sending them to
110 an OpenFlow controller or switching them as a standalone switch.
111 This behavior is ordinarily desirable. However, if
112 <code>ovs-vswitchd</code> is restarting as part of a ``hot-upgrade,''
113 then this leads to a relatively long period during which packets are
114 mishandled.
115 </p>
116 <p>
117 This option allows for improvement. When <code>ovs-vswitchd</code>
118 starts with this value set as <code>true</code>, it will neither
119 flush or expire previously set datapath flows nor will it send and
120 receive any packets to or from the datapath. When this value is
121 later set to <code>false</code>, <code>ovs-vswitchd</code> will
122 start receiving packets from the datapath and re-setup the flows.
123 </p>
124 <p>
125 Thus, with this option, the procedure for a hot-upgrade of
126 <code>ovs-vswitchd</code> becomes roughly the following:
127 </p>
128 <ol>
129 <li>
130 Stop <code>ovs-vswitchd</code>.
131 </li>
132 <li>
133 Set <ref column="other_config" key="flow-restore-wait"/>
134 to <code>true</code>.
135 </li>
136 <li>
137 Start <code>ovs-vswitchd</code>.
138 </li>
139 <li>
140 Use <code>ovs-ofctl</code> (or some other program, such as an
141 OpenFlow controller) to restore the OpenFlow flow table
142 to the desired state.
143 </li>
144 <li>
145 Set <ref column="other_config" key="flow-restore-wait"/>
146 to <code>false</code> (or remove it entirely from the database).
147 </li>
148 </ol>
407b1473
GS
149 <p>
150 The <code>ovs-ctl</code>'s ``restart'' and ``force-reload-kmod''
151 functions use the above config option during hot upgrades.
152 </p>
40358701 153 </column>
380f49c4 154
e79a6c83 155 <column name="other_config" key="flow-limit"
380f49c4
EJ
156 type='{"type": "integer", "minInteger": 0}'>
157 <p>
e79a6c83
EJ
158 The maximum
159 number of flows allowed in the datapath flow table. Internally OVS
160 will choose a flow limit which will likely be lower than this number,
38b366b1
JS
161 based on real time network conditions. Tweaking this value is
162 discouraged unless you know exactly what you're doing.
380f49c4
EJ
163 </p>
164 <p>
e79a6c83 165 The default is 200000.
380f49c4
EJ
166 </p>
167 </column>
7155fa52 168
06745dc3
JS
169 <column name="other_config" key="max-idle"
170 type='{"type": "integer", "minInteger": 500}'>
171 <p>
172 The maximum time (in ms) that idle flows will remain cached in the
173 datapath. Internally OVS will check the validity and activity for
174 datapath flows regularly and may expire flows quicker than this
175 number, based on real time network conditions. Tweaking this
176 value is discouraged unless you know exactly what you're doing.
177 </p>
178 <p>
179 The default is 10000.
180 </p>
53611f7b
PB
181 </column>
182
183 <column name="other_config" key="hw-offload"
184 type='{"type": "boolean"}'>
185 <p>
186 Set this value to <code>true</code> to enable netdev flow offload.
187 </p>
188 <p>
189 The default value is <code>false</code>. Changing this value requires
190 restarting the daemon
191 </p>
192 <p>
193 Currently Open vSwitch supports hardware offloading on
194 Linux systems. On other systems, this value is ignored.
2a85b7cc
JS
195 This functionality is considered 'experimental'. Depending
196 on which OpenFlow matches and actions are configured,
197 which kernel version is used, and what hardware is
198 available, Open vSwitch may not be able to offload
199 functionality to hardware.
53611f7b 200 </p>
06745dc3
JS
201 </column>
202
691d20cb
PB
203 <column name="other_config" key="tc-policy"
204 type='{"type": "string"}'>
205 <p>
206 Specified the policy used with HW offloading.
207 Options:
208 <code>none</code> - Add software rule and offload rule to HW.
209 <code>skip_sw</code> - Offload rule to HW only.
210 <code>skip_hw</code> - Add software rule without offloading rule to HW.
211 </p>
212 <p>
213 This is only relevant if HW offloading is enabled (hw-offload).
214 </p>
215 <p>
216 The default value is <code>none</code>.
217 </p>
218 </column>
219
bab69409 220 <column name="other_config" key="dpdk-init"
6d947d50
KT
221 type='{"type": "string"}'>
222 <p>
223 Set this value to <code>true</code> or <code>try</code> to enable
224 runtime support for DPDK ports. The vswitch must have compile-time
225 support for DPDK as well.
226 </p>
bab69409 227 <p>
6d947d50
KT
228 A value of <code>true</code> will cause the ovs-vswitchd process to
229 abort if DPDK cannot be initialized. A value of <code>try</code>
230 will allow the ovs-vswitchd process to continue running even if DPDK
231 cannot be initialized.
bab69409
AC
232 </p>
233 <p>
234 The default value is <code>false</code>. Changing this value requires
235 restarting the daemon
236 </p>
237 <p>
238 If this value is <code>false</code> at startup, any dpdk ports which
239 are configured in the bridge will fail due to memory errors.
240 </p>
241 </column>
242
243 <column name="other_config" key="dpdk-lcore-mask"
244 type='{"type": "integer", "minInteger": 1}'>
245 <p>
246 Specifies the CPU cores where dpdk lcore threads should be spawned.
247 The DPDK lcore threads are used for DPDK library tasks, such as
248 library internal message processing, logging, etc. Value should be in
249 the form of a hex string (so '0x123') similar to the 'taskset' mask
250 input.
251 </p>
252 <p>
253 The lowest order bit corresponds to the first CPU core. A set bit
254 means the corresponding core is available and an lcore thread will be
255 created and pinned to it. If the input does not cover all cores,
256 those uncovered cores are considered not set.
257 </p>
258 <p>
259 For performance reasons, it is best to set this to a single core on
260 the system, rather than allow lcore threads to float.
261 </p>
262 <p>
263 If not specified, the value will be determined by choosing the lowest
264 CPU core from initial cpu affinity list. Otherwise, the value will be
265 passed directly to the DPDK library.
266 </p>
267 </column>
268
f2eee189
AW
269 <column name="other_config" key="pmd-cpu-mask">
270 <p>
271 Specifies CPU mask for setting the cpu affinity of PMD (Poll
272 Mode Driver) threads. Value should be in the form of hex string,
273 similar to the dpdk EAL '-c COREMASK' option input or the 'taskset'
274 mask input.
275 </p>
276 <p>
277 The lowest order bit corresponds to the first CPU core. A set bit
ee8627fa
AW
278 means the corresponding core is available and a pmd thread will be
279 created and pinned to it. If the input does not cover all cores,
280 those uncovered cores are considered not set.
f2eee189
AW
281 </p>
282 <p>
283 If not specified, one pmd thread will be created for each numa node
284 and pinned to any available core on the numa node by default.
285 </p>
286 </column>
287
bab69409
AC
288 <column name="other_config" key="dpdk-alloc-mem"
289 type='{"type": "integer", "minInteger": 0}'>
290 <p>
291 Specifies the amount of memory to preallocate from the hugepage pool,
292 regardless of socket. It is recommended that dpdk-socket-mem is used
293 instead.
294 </p>
bab69409
AC
295 </column>
296
297 <column name="other_config" key="dpdk-socket-mem"
298 type='{"type": "string"}'>
299 <p>
300 Specifies the amount of memory to preallocate from the hugepage pool,
301 on a per-socket basis.
302 </p>
303 <p>
304 The specifier is a comma-separated string, in ascending order of CPU
cd6c5bc8
KT
305 socket. E.g. On a four socket system 1024,0,2048 would set socket 0
306 to preallocate 1024MB, socket 1 to preallocate 0MB, socket 2 to
307 preallocate 2048MB and socket 3 (no value given) to preallocate 0MB.
bab69409
AC
308 </p>
309 <p>
b838f879 310 If dpdk-socket-mem and dpdk-alloc-mem are not specified, dpdk-socket-mem
7189d54c
MR
311 will be used and the default value is 1024 for each numa node. If
312 dpdk-socket-mem and dpdk-alloc-mem are specified at same time,
313 dpdk-socket-mem will be used as default. Changing this value
314 requires restarting the daemon.
bab69409
AC
315 </p>
316 </column>
317
318 <column name="other_config" key="dpdk-hugepage-dir"
319 type='{"type": "string"}'>
320 <p>
321 Specifies the path to the hugetlbfs mount point.
322 </p>
323 <p>
324 If not specified, this will be guessed by the DPDK library (default
325 is /dev/hugepages). Changing this value requires restarting the
326 daemon.
327 </p>
328 </column>
329
eac84432
AC
330 <column name="other_config" key="dpdk-extra"
331 type='{"type": "string"}'>
332 <p>
333 Specifies additional eal command line arguments for DPDK.
334 </p>
335 <p>
336 The default is empty. Changing this value requires restarting the
337 daemon
338 </p>
339 </column>
340
bab69409
AC
341 <column name="other_config" key="vhost-sock-dir"
342 type='{"type": "string"}'>
343 <p>
34d4f74d
RW
344 Specifies a relative path from <ref column="external_ids"
345 key="rundir"/> to the vhost-user unix domain socket files. If this
346 value is unset, the sockets are put directly in <ref
347 column="external_ids" key="rundir"/>.
bab69409
AC
348 </p>
349 <p>
34d4f74d 350 Changing this value requires restarting the daemon.
bab69409
AC
351 </p>
352 </column>
353
a14d1cc8
MK
354 <column name="other_config" key="vhost-iommu-support"
355 type='{"type": "boolean"}'>
356 <p>
357 vHost IOMMU is a security feature, which restricts the vhost memory
358 that a virtio device may access. vHost IOMMU support is disabled by
359 default, due to a bug in QEMU implementations of the vhost REPLY_ACK
360 protocol, (on which vHost IOMMU relies) prior to v2.9.1. Setting this
361 value to <code>true</code> enables vHost IOMMU support for vHost User
362 Client ports in OvS-DPDK, starting from DPDK v17.11.
363 </p>
364 <p>
365 Changing this value requires restarting the daemon.
366 </p>
367 </column>
368
43307ad0
IS
369 <column name="other_config" key="per-port-memory"
370 type='{"type": "boolean"}'>
371 <p>
372 By default OVS DPDK uses a shared memory model wherein devices
373 that have the same MTU and socket values can share the same
374 mempool. Setting this value to <code>true</code> changes this
375 behaviour. Per port memory allow DPDK devices to use private
376 memory per device. This can provide greater transparency as
377 regards memory usage but potentially at the cost of greater memory
378 requirements.
379 </p>
380 <p>
381 Changing this value requires restarting the daemon if dpdk-init has
382 already been set to true.
383 </p>
384 </column>
385
c71ea3c4
IM
386 <column name="other_config" key="tx-flush-interval"
387 type='{"type": "integer",
388 "minInteger": 0, "maxInteger": 1000000}'>
389 <p>
390 Specifies the time in microseconds that a packet can wait in output
391 batch for sending i.e. amount of time that packet can spend in an
392 intermediate output queue before sending to netdev.
393 This option can be used to configure balance between throughput
394 and latency. Lower values decreases latency while higher values
395 may be useful to achieve higher performance.
396 </p>
397 <p>
398 Defaults to 0 i.e. instant packet sending (latency optimized).
399 </p>
400 </column>
401
79f36875
JS
402 <column name="other_config" key="pmd-perf-metrics"
403 type='{"type": "boolean"}'>
404 <p>
405 Enables recording of detailed PMD performance metrics for analysis
406 and trouble-shooting. This can have a performance impact in the
407 order of 1%.
408 </p>
409 <p>
410 Defaults to false but can be changed at any time.
411 </p>
412 </column>
413
60d8ccae
YW
414 <column name="other_config" key="smc-enable"
415 type='{"type": "boolean"}'>
416 <p>
417 Signature match cache or SMC is a cache between EMC and megaflow
418 cache. It does not store the full key of the flow, so it is more
419 memory efficient comparing to EMC cache. SMC is especially useful
420 when flow count is larger than EMC capacity.
421 </p>
422 <p>
423 Defaults to false but can be changed at any time.
424 </p>
425 </column>
426
448a4b2f
AW
427 <column name="other_config" key="n-handler-threads"
428 type='{"type": "integer", "minInteger": 1}'>
429 <p>
430 Specifies the number of threads for software datapaths to use for
e79a6c83
EJ
431 handling new flows. The default the number of online CPU cores minus
432 the number of revalidators.
433 </p>
434 <p>
435 This configuration is per datapath. If you have more than one
436 software datapath (e.g. some <code>system</code> bridges and some
437 <code>netdev</code> bridges), then the total number of threads is
438 <code>n-handler-threads</code> times the number of software
439 datapaths.
440 </p>
441 </column>
442
443 <column name="other_config" key="n-revalidator-threads"
444 type='{"type": "integer", "minInteger": 1}'>
445 <p>
446 Specifies the number of threads for software datapaths to use for
447 revalidating flows in the datapath. Typically, there is a direct
448 correlation between the number of revalidator threads, and the number
449 of flows allowed in the datapath. The default is the number of cpu
450 cores divided by four plus one. If <code>n-handler-threads</code> is
451 set, the default changes to the number of cpu cores minus the number
452 of handler threads.
448a4b2f
AW
453 </p>
454 <p>
455 This configuration is per datapath. If you have more than one
456 software datapath (e.g. some <code>system</code> bridges and some
457 <code>netdev</code> bridges), then the total number of threads is
458 <code>n-handler-threads</code> times the number of software
459 datapaths.
460 </p>
461 </column>
4c30b246
CL
462
463 <column name="other_config" key="emc-insert-inv-prob"
464 type='{"type": "integer", "minInteger": 0, "maxInteger": 4294967295}'>
465 <p>
466 Specifies the inverse probability (1/emc-insert-inv-prob) of a flow
467 being inserted into the Exact Match Cache (EMC). On average one in
468 every <code>emc-insert-inv-prob</code> packets that generate a unique
469 flow will cause an insertion into the EMC.
470
471 A value of 1 will result in an insertion for every flow (1/1 = 100%)
472 whereas a value of zero will result in no insertions and essentially
473 disable the EMC.
474 </p>
475 <p>
476 Defaults to 100 ie. there is (1/100 =) 1% chance of EMC insertion.
477 </p>
478 </column>
f0fb825a
EG
479
480 <column name="other_config" key="vlan-limit"
481 type='{"type": "integer", "minInteger": 0}'>
482 <p>
483 Limits the number of VLAN headers that can be matched to the
484 specified number. Further VLAN headers will be treated as payload,
485 e.g. a packet with more 802.1q headers will match Ethernet type
486 0x8100.
487 </p>
488 <p>
489 Value <code>0</code> means unlimited. The actual number of supported
490 VLAN headers is the smallest of <code>vlan-limit</code>, the number
491 of VLANs supported by Open vSwitch userspace (currently 2), and the
492 number supported by the datapath.
493 </p>
494
495 <p>
496 If this value is absent, the default is currently 1. This maintains
497 backward compatibility with controllers that were designed for use
498 with Open vSwitch versions earlier than 2.8, which only supported one
499 VLAN.
500 </p>
501 </column>
7fdd2082
FL
502 <column name="other_config" key="bundle-idle-timeout"
503 type='{"type": "integer", "minInteger": 1}'>
504 <p>
505 The maximum time (in seconds) that idle bundles will wait
506 to be expired since it was either opened, modified or closed.
507 </p>
508 <p>
509 OpenFlow specification mandates the timeout to be at least one
510 second. The default is 10 seconds.
511 </p>
512 </column>
513
89365653
BP
514 </group>
515
516 <group title="Status">
517 <column name="next_cfg">
518 Sequence number for client to increment. When a client modifies
519 any part of the database configuration and wishes to wait for
520 Open vSwitch to finish applying the changes, it may increment
521 this sequence number.
522 </column>
523
524 <column name="cur_cfg">
525 Sequence number that Open vSwitch sets to the current value of
2e57b537 526 <ref column="next_cfg"/> after it finishes applying a set of
89365653
BP
527 configuration changes.
528 </column>
c1c9c9c4 529
3e52fa56
AC
530 <column name="dpdk_initialized">
531 True if <ref column="other_config" key="dpdk-init"/> is set to
532 true and the DPDK library is successfully initialized.
533 </column>
534
3fd8d445 535 <group title="Statistics">
018f1525 536 <p>
3fd8d445
BP
537 The <code>statistics</code> column contains key-value pairs that
538 report statistics about a system running an Open vSwitch. These are
539 updated periodically (currently, every 5 seconds). Key-value pairs
540 that cannot be determined or that do not apply to a platform are
541 omitted.
ce887677
BP
542 </p>
543
f9e5e5b3
BP
544 <column name="other_config" key="enable-statistics"
545 type='{"type": "boolean"}'>
3fd8d445
BP
546 Statistics are disabled by default to avoid overhead in the common
547 case when statistics gathering is not useful. Set this value to
548 <code>true</code> to enable populating the <ref column="statistics"/>
549 column or to <code>false</code> to explicitly disable it.
550 </column>
3fe80505 551
f9e5e5b3
BP
552 <column name="statistics" key="cpu"
553 type='{"type": "integer", "minInteger": 1}'>
3fd8d445
BP
554 <p>
555 Number of CPU processors, threads, or cores currently online and
556 available to the operating system on which Open vSwitch is running,
557 as an integer. This may be less than the number installed, if some
558 are not online or if they are not available to the operating
559 system.
560 </p>
561 <p>
562 Open vSwitch userspace processes are not multithreaded, but the
563 Linux kernel-based datapath is.
564 </p>
565 </column>
ce887677 566
3fd8d445
BP
567 <column name="statistics" key="load_average">
568 A comma-separated list of three floating-point numbers,
569 representing the system load average over the last 1, 5, and 15
570 minutes, respectively.
571 </column>
ce887677 572
3fd8d445
BP
573 <column name="statistics" key="memory">
574 <p>
575 A comma-separated list of integers, each of which represents a
576 quantity of memory in kilobytes that describes the operating
577 system on which Open vSwitch is running. In respective order,
578 these values are:
579 </p>
ce887677 580
3fd8d445
BP
581 <ol>
582 <li>Total amount of RAM allocated to the OS.</li>
583 <li>RAM allocated to the OS that is in use.</li>
584 <li>RAM that can be flushed out to disk or otherwise discarded
585 if that space is needed for another purpose. This number is
586 necessarily less than or equal to the previous value.</li>
587 <li>Total disk space allocated for swap.</li>
588 <li>Swap space currently in use.</li>
589 </ol>
ce887677 590
3fd8d445
BP
591 <p>
592 On Linux, all five values can be determined and are included. On
593 other operating systems, only the first two values can be
594 determined, so the list will only have two values.
595 </p>
596 </column>
ce887677 597
3fd8d445
BP
598 <column name="statistics" key="process_NAME">
599 <p>
600 One such key-value pair, with <code>NAME</code> replaced by
601 a process name, will exist for each running Open vSwitch
602 daemon process, with <var>name</var> replaced by the
603 daemon's name (e.g. <code>process_ovs-vswitchd</code>). The
604 value is a comma-separated list of integers. The integers
605 represent the following, with memory measured in kilobytes
606 and durations in milliseconds:
607 </p>
ce887677 608
3fd8d445
BP
609 <ol>
610 <li>The process's virtual memory size.</li>
611 <li>The process's resident set size.</li>
612 <li>The amount of user and system CPU time consumed by the
613 process.</li>
614 <li>The number of times that the process has crashed and been
615 automatically restarted by the monitor.</li>
616 <li>The duration since the process was started.</li>
617 <li>The duration for which the process has been running.</li>
618 </ol>
ce887677 619
3fd8d445
BP
620 <p>
621 The interpretation of some of these values depends on whether the
622 process was started with the <option>--monitor</option>. If it
623 was not, then the crash count will always be 0 and the two
624 durations will always be the same. If <option>--monitor</option>
625 was given, then the crash count may be positive; if it is, the
626 latter duration is the amount of time since the most recent crash
627 and restart.
628 </p>
ce887677 629
3fd8d445
BP
630 <p>
631 There will be one key-value pair for each file in Open vSwitch's
632 ``run directory'' (usually <code>/var/run/openvswitch</code>)
633 whose name ends in <code>.pid</code>, whose contents are a
634 process ID, and which is locked by a running process. The
635 <var>name</var> is taken from the pidfile's name.
636 </p>
ce887677 637
3fd8d445
BP
638 <p>
639 Currently Open vSwitch is only able to obtain all of the above
640 detail on Linux systems. On other systems, the same key-value
641 pairs will be present but the values will always be the empty
642 string.
643 </p>
644 </column>
ce887677 645
3fd8d445
BP
646 <column name="statistics" key="file_systems">
647 <p>
648 A space-separated list of information on local, writable file
649 systems. Each item in the list describes one file system and
650 consists in turn of a comma-separated list of the following:
651 </p>
ce887677 652
3fd8d445
BP
653 <ol>
654 <li>Mount point, e.g. <code>/</code> or <code>/var/log</code>.
655 Any spaces or commas in the mount point are replaced by
656 underscores.</li>
657 <li>Total size, in kilobytes, as an integer.</li>
658 <li>Amount of storage in use, in kilobytes, as an integer.</li>
659 </ol>
ce887677 660
3fd8d445
BP
661 <p>
662 This key-value pair is omitted if there are no local, writable
663 file systems or if Open vSwitch cannot obtain the needed
664 information.
665 </p>
666 </column>
667 </group>
89365653 668 </group>
94db5407 669
538c6dfa
BP
670 <group title="Version Reporting">
671 <p>
6b4186af
EJ
672 These columns report the types and versions of the hardware and
673 software running Open vSwitch. We recommend in general that software
674 should test whether specific features are supported instead of relying
675 on version number checks. These values are primarily intended for
676 reporting to human administrators.
538c6dfa
BP
677 </p>
678
679 <column name="ovs_version">
d4da3acc 680 The Open vSwitch version number, e.g. <code>1.1.0</code>.
538c6dfa
BP
681 </column>
682
8159b984 683 <column name="db_version">
6b4186af 684 <p>
51738fe1
BP
685 The database schema version number, e.g. <code>1.2.3</code>. See
686 ovsdb-tool(1) for an explanation of the numbering scheme.
8159b984
BP
687 </p>
688
689 <p>
690 The schema version is part of the database schema, so it can also be
691 retrieved by fetching the schema using the Open vSwitch database
692 protocol.
693 </p>
694 </column>
695
538c6dfa
BP
696 <column name="system_type">
697 <p>
6b4186af
EJ
698 An identifier for the type of system on top of which Open vSwitch
699 runs, e.g. <code>XenServer</code> or <code>KVM</code>.
700 </p>
701 <p>
702 System integrators are responsible for choosing and setting an
703 appropriate value for this column.
704 </p>
538c6dfa
BP
705 </column>
706
707 <column name="system_version">
708 <p>
6b4186af 709 The version of the system identified by <ref column="system_type"/>,
404c1692 710 e.g. <code>5.6.100-39265p</code> on XenServer 5.6.100 build 39265.
6b4186af
EJ
711 </p>
712 <p>
713 System integrators are responsible for choosing and setting an
714 appropriate value for this column.
715 </p>
538c6dfa 716 </column>
6b4186af 717
3e52fa56
AC
718 <column name="dpdk_version">
719 <p>
720 The version of the linked DPDK library.
721 </p>
722 </column>
723
538c6dfa
BP
724 </group>
725
842733c3
MG
726 <group title="Capabilities">
727 <p>
728 These columns report capabilities of the Open vSwitch instance.
729 </p>
730 <column name="datapath_types">
731 <p>
732 This column reports the different dpifs registered with the system.
733 These are the values that this instance supports in the <ref
734 column="datapath_type" table="Bridge"/> column of the <ref
735 table="Bridge"/> table.
736 </p>
737 </column>
738 <column name="iface_types">
739 <p>
740 This column reports the different netdevs registered with the system.
741 These are the values that this instance supports in the <ref
742 column="type" table="Interface"/> column of the <ref
743 table="Interface"/> table.
744 </p>
745 </column>
746 </group>
747
94db5407
BP
748 <group title="Database Configuration">
749 <p>
750 These columns primarily configure the Open vSwitch database
751 (<code>ovsdb-server</code>), not the Open vSwitch switch
752 (<code>ovs-vswitchd</code>). The OVSDB database also uses the <ref
753 column="ssl"/> settings.
754 </p>
755
756 <p>
757 The Open vSwitch switch does read the database configuration to
758 determine remote IP addresses to which in-band control should apply.
759 </p>
760
761 <column name="manager_options">
58db70c7
DB
762 <p>
763 Database clients to which the Open vSwitch database server should
764 connect or to which it should listen, along with options for how
765 these connections should be configured. See the <ref
766 table="Manager"/> table for more information.
767 </p>
768
769 <p>
770 For this column to serve its purpose, <code>ovsdb-server</code> must
771 be configured to honor it. The easiest way to do this is to invoke
772 <code>ovsdb-server</code> with the option
773 <option>--remote=db:Open_vSwitch,Open_vSwitch,manager_options</option>
774 The startup scripts that accompany Open vSwitch do this by default.
775 </p>
94db5407 776 </column>
94db5407 777 </group>
3fd8d445
BP
778
779 <group title="Common Columns">
780 The overall purpose of these columns is described under <code>Common
781 Columns</code> at the beginning of this document.
782
783 <column name="other_config"/>
784 <column name="external_ids"/>
785 </group>
89365653
BP
786 </table>
787
788 <table name="Bridge">
789 <p>
790 Configuration for a bridge within an
791 <ref table="Open_vSwitch"/>.
792 </p>
793 <p>
794 A <ref table="Bridge"/> record represents an Ethernet switch with one or
795 more ``ports,'' which are the <ref table="Port"/> records pointed to by
796 the <ref table="Bridge"/>'s <ref column="ports"/> column.
797 </p>
798
799 <group title="Core Features">
800 <column name="name">
3cbe33df 801 <p>
c885f934
BP
802 Bridge identifier. Must be unique among the names of ports,
803 interfaces, and bridges on a host.
3cbe33df
BP
804 </p>
805
806 <p>
c885f934
BP
807 The name must be alphanumeric and must not contain forward or
808 backward slashes. The name of a bridge is also the name of an <ref
809 table="Interface"/> (and a <ref table="Port"/>) within the bridge, so
810 the restrictions on the <ref table="Interface" column="name"/> column
811 in the <ref table="Interface"/> table, particularly on length, also
812 apply to bridge names. Refer to the documentation for <ref
813 table="Interface"/> names for details.
3cbe33df 814 </p>
89365653
BP
815 </column>
816
817 <column name="ports">
818 Ports included in the bridge.
819 </column>
820
821 <column name="mirrors">
822 Port mirroring configuration.
823 </column>
824
825 <column name="netflow">
826 NetFlow configuration.
827 </column>
828
829 <column name="sflow">
29089a54
RL
830 sFlow(R) configuration.
831 </column>
832
833 <column name="ipfix">
834 IPFIX configuration.
89365653
BP
835 </column>
836
837 <column name="flood_vlans">
6c2d2a9f
BP
838 <p>
839 VLAN IDs of VLANs on which MAC address learning should be disabled,
840 so that packets are flooded instead of being sent to specific ports
841 that are believed to contain packets' destination MACs. This should
842 ordinarily be used to disable MAC learning on VLANs used for
843 mirroring (RSPAN VLANs). It may also be useful for debugging.
844 </p>
845 <p>
846 SLB bonding (see the <ref table="Port" column="bond_mode"/> column in
847 the <ref table="Port"/> table) is incompatible with
848 <code>flood_vlans</code>. Consider using another bonding mode or
849 a different type of mirror instead.
850 </p>
89365653 851 </column>
99eef98b
DF
852
853 <column name="auto_attach">
039a8ccd 854 Auto Attach configuration.
99eef98b 855 </column>
89365653
BP
856 </group>
857
858 <group title="OpenFlow Configuration">
859 <column name="controller">
88f69f88
BP
860 <p>
861 OpenFlow controller set. If unset, then no OpenFlow controllers
862 will be used.
863 </p>
864
865 <p>
866 If there are primary controllers, removing all of them clears the
d3b84833
BP
867 OpenFlow flow tables, group table, and meter table. If there are no
868 primary controllers, adding one also clears these tables. Other
869 changes to the set of controllers, such as adding or removing a
870 service controller, adding another primary controller to supplement
871 an existing primary controller, or removing only one of two primary
872 controllers, have no effect on these tables.
88f69f88 873 </p>
89365653
BP
874 </column>
875
254750ce
BP
876 <column name="flow_tables">
877 Configuration for OpenFlow tables. Each pair maps from an OpenFlow
878 table ID to configuration for that table.
879 </column>
880
31681a5d
JP
881 <column name="fail_mode">
882 <p>When a controller is configured, it is, ordinarily, responsible
3fd8d445
BP
883 for setting up all flows on the switch. Thus, if the connection to
884 the controller fails, no new network connections can be set up.
885 If the connection to the controller stays down long enough,
886 no packets can pass through the switch at all. This setting
887 determines the switch's response to such a situation. It may be set
888 to one of the following:
889 <dl>
890 <dt><code>standalone</code></dt>
891 <dd>If no message is received from the controller for three
892 times the inactivity probe interval
893 (see <ref column="inactivity_probe"/>), then Open vSwitch
894 will take over responsibility for setting up flows. In
895 this mode, Open vSwitch causes the bridge to act like an
896 ordinary MAC-learning switch. Open vSwitch will continue
897 to retry connecting to the controller in the background
898 and, when the connection succeeds, it will discontinue its
899 standalone behavior.</dd>
900 <dt><code>secure</code></dt>
901 <dd>Open vSwitch will not set up flows on its own when the
902 controller connection fails or when no controllers are
903 defined. The bridge will continue to retry connecting to
904 any defined controllers forever.</dd>
905 </dl>
31681a5d 906 </p>
aed2db18
BP
907 <p>
908 The default is <code>standalone</code> if the value is unset, but
909 future versions of Open vSwitch may change the default.
910 </p>
7dea6ace
BP
911 <p>
912 The <code>standalone</code> mode can create forwarding loops on a
913 bridge that has more than one uplink port unless STP is enabled. To
914 avoid loops on such a bridge, configure <code>secure</code> mode or
915 enable STP (see <ref column="stp_enable"/>).
916 </p>
299a244b 917 <p>When more than one controller is configured,
3fd8d445
BP
918 <ref column="fail_mode"/> is considered only when none of the
919 configured controllers can be contacted.</p>
88f69f88
BP
920 <p>
921 Changing <ref column="fail_mode"/> when no primary controllers are
d3b84833
BP
922 configured clears the OpenFlow flow tables, group table, and meter
923 table.
88f69f88 924 </p>
31681a5d
JP
925 </column>
926
89365653 927 <column name="datapath_id">
8de67146
BP
928 Reports the OpenFlow datapath ID in use. Exactly 16 hex digits.
929 (Setting this column has no useful effect. Set <ref
930 column="other-config" key="datapath-id"/> instead.)
89365653 931 </column>
3fd8d445 932
b5cbbcf6
AZ
933 <column name="datapath_version">
934 <p>
935 Reports the version number of the Open vSwitch datapath in use.
936 This allows management software to detect and report discrepancies
937 between Open vSwitch userspace and datapath versions. (The <ref
938 column="ovs_version" table="Open_vSwitch"/> column in the <ref
939 table="Open_vSwitch"/> reports the Open vSwitch userspace version.)
940 The version reported depends on the datapath in use:
941 </p>
942
943 <ul>
944 <li>
945 When the kernel module included in the Open vSwitch source tree is
946 used, this column reports the Open vSwitch version from which the
947 module was taken.
948 </li>
949
950 <li>
951 When the kernel module that is part of the upstream Linux kernel is
952 used, this column reports <code>&lt;unknown&gt;</code>.
953 </li>
954
955 <li>
956 When the datapath is built into the <code>ovs-vswitchd</code>
957 binary, this column reports <code>&lt;built-in&gt;</code>. A
958 built-in datapath is by definition the same version as the rest of
959 the Open VSwitch userspace.
960 </li>
961
962 <li>
963 Other datapaths (such as the Hyper-V kernel datapath) currently
964 report <code>&lt;unknown&gt;</code>.
965 </li>
966 </ul>
967
968 <p>
969 A version discrepancy between <code>ovs-vswitchd</code> and the
970 datapath in use is not normally cause for alarm. The Open vSwitch
971 kernel datapaths for Linux and Hyper-V, in particular, are designed
972 for maximum inter-version compatibility: any userspace version works
973 with with any kernel version. Some reasons do exist to insist on
974 particular user/kernel pairings. First, newer kernel versions add
975 new features, that can only be used by new-enough userspace, e.g.
976 VXLAN tunneling requires certain minimal userspace and kernel
977 versions. Second, as an extension to the first reason, some newer
978 kernel versions add new features for enhancing performance that only
979 new-enough userspace versions can take advantage of.
980 </p>
981 </column>
982
3fd8d445 983 <column name="other_config" key="datapath-id">
62705b81
BP
984 Overrides the default OpenFlow datapath ID, setting it to the specified
985 value specified in hex. The value must either have a <code>0x</code>
986 prefix or be exactly 16 hex digits long. May not be all-zero.
3fd8d445
BP
987 </column>
988
8b6ff729 989 <column name="other_config" key="dp-desc">
dbb51cd2 990 Human readable description of datapath. It is a maximum 256
8b6ff729
BP
991 byte-long free-form string to describe the datapath for
992 debugging purposes, e.g. <code>switch3 in room 3120</code>.
993 </column>
994
f9e5e5b3
BP
995 <column name="other_config" key="disable-in-band"
996 type='{"type": "boolean"}'>
3fd8d445
BP
997 If set to <code>true</code>, disable in-band control on the bridge
998 regardless of controller and manager settings.
999 </column>
1000
f9e5e5b3
BP
1001 <column name="other_config" key="in-band-queue"
1002 type='{"type": "integer", "minInteger": 0, "maxInteger": 4294967295}'>
3fd8d445
BP
1003 A queue ID as a nonnegative integer. This sets the OpenFlow queue ID
1004 that will be used by flows set up by in-band control on this bridge.
1005 If unset, or if the port used by an in-band control flow does not have
1006 QoS configured, or if the port does not have a queue with the specified
1007 ID, the default queue is used instead.
1008 </column>
7beaa082
SH
1009
1010 <column name="protocols">
039a8ccd
BP
1011 <p>
1012 List of OpenFlow protocols that may be used when negotiating
8d348579
BP
1013 a connection with a controller. OpenFlow 1.0, 1.1, 1.2, 1.3, and
1014 1.4 are enabled by default if this column is empty.
039a8ccd 1015 </p>
ecb229be 1016
039a8ccd 1017 <p>
8d348579 1018 OpenFlow 1.5 and 1.6 are not enabled by default because their
b79d45a1
BP
1019 implementations are missing features. In addition, the OpenFlow 1.6
1020 specification is still under development and thus subject to change.
42dccab5 1021 </p>
7beaa082 1022 </column>
89365653
BP
1023 </group>
1024
21f7563c 1025 <group title="Spanning Tree Configuration">
01f13d4f
BP
1026 <p>
1027 The IEEE 802.1D Spanning Tree Protocol (STP) is a network protocol
1028 that ensures loop-free topologies. It allows redundant links to
1029 be included in the network to provide automatic backup paths if
1030 the active links fails.
1031 </p>
9cc6bf75 1032
01f13d4f
BP
1033 <p>
1034 These settings configure the slower-to-converge but still widely
1035 supported version of Spanning Tree Protocol, sometimes known as
1036 802.1D-1998. Open vSwitch also supports the newer Rapid Spanning Tree
1037 Protocol (RSTP), documented later in the section titled <code>Rapid
1038 Spanning Tree Configuration</code>.
1039 </p>
21f7563c 1040
01f13d4f
BP
1041 <group title="STP Configuration">
1042 <column name="stp_enable" type='{"type": "boolean"}'>
1043 <p>
1044 Enable spanning tree on the bridge. By default, STP is disabled
1045 on bridges. Bond, internal, and mirror ports are not supported
1046 and will not participate in the spanning tree.
1047 </p>
21f7563c 1048
01f13d4f
BP
1049 <p>
1050 STP and RSTP are mutually exclusive. If both are enabled, RSTP
1051 will be used.
1052 </p>
1053 </column>
21f7563c 1054
01f13d4f
BP
1055 <column name="other_config" key="stp-system-id">
1056 The bridge's STP identifier (the lower 48 bits of the bridge-id)
1057 in the form
1058 <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>.
1059 By default, the identifier is the MAC address of the bridge.
1060 </column>
21f7563c 1061
01f13d4f
BP
1062 <column name="other_config" key="stp-priority"
1063 type='{"type": "integer", "minInteger": 0, "maxInteger": 65535}'>
1064 The bridge's relative priority value for determining the root
1065 bridge (the upper 16 bits of the bridge-id). A bridge with the
1066 lowest bridge-id is elected the root. By default, the priority
1067 is 0x8000.
1068 </column>
dc2b70ba 1069
01f13d4f
BP
1070 <column name="other_config" key="stp-hello-time"
1071 type='{"type": "integer", "minInteger": 1, "maxInteger": 10}'>
1072 The interval between transmissions of hello messages by
1073 designated ports, in seconds. By default the hello interval is
1074 2 seconds.
1075 </column>
dc2b70ba 1076
01f13d4f
BP
1077 <column name="other_config" key="stp-max-age"
1078 type='{"type": "integer", "minInteger": 6, "maxInteger": 40}'>
1079 The maximum age of the information transmitted by the bridge
1080 when it is the root bridge, in seconds. By default, the maximum
1081 age is 20 seconds.
1082 </column>
1083
1084 <column name="other_config" key="stp-forward-delay"
1085 type='{"type": "integer", "minInteger": 4, "maxInteger": 30}'>
1086 The delay to wait between transitioning root and designated
1087 ports to <code>forwarding</code>, in seconds. By default, the
1088 forwarding delay is 15 seconds.
1089 </column>
1090
1091 <column name="other_config" key="mcast-snooping-aging-time"
1092 type='{"type": "integer", "minInteger": 1}'>
1093 <p>
1094 The maximum number of seconds to retain a multicast snooping entry for
1095 which no packets have been seen. The default is currently 300
1096 seconds (5 minutes). The value, if specified, is forced into a
1097 reasonable range, currently 15 to 3600 seconds.
1098 </p>
1099 </column>
1100
1101 <column name="other_config" key="mcast-snooping-table-size"
1102 type='{"type": "integer", "minInteger": 1}'>
1103 <p>
1104 The maximum number of multicast snooping addresses to learn. The
1105 default is currently 2048. The value, if specified, is forced into
1106 a reasonable range, currently 10 to 1,000,000.
1107 </p>
1108 </column>
1109 <column name="other_config" key="mcast-snooping-disable-flood-unregistered"
1110 type='{"type": "boolean"}'>
1111 <p>
1112 If set to <code>false</code>, unregistered multicast packets are forwarded
1113 to all ports.
1114 If set to <code>true</code>, unregistered multicast packets are forwarded
1115 to ports connected to multicast routers.
1116 </p>
1117 </column>
1118 </group>
1119
1120 <group title="STP Status">
dc2b70ba 1121 <p>
01f13d4f
BP
1122 These key-value pairs report the status of 802.1D-1998. They are
1123 present only if STP is enabled (via the <ref column="stp_enable"/>
1124 column).
dc2b70ba 1125 </p>
01f13d4f
BP
1126 <column name="status" key="stp_bridge_id">
1127 The bridge ID used in spanning tree advertisements, in the form
1128 <var>xxxx</var>.<var>yyyyyyyyyyyy</var> where the <var>x</var>s are
1129 the STP priority, the <var>y</var>s are the STP system ID, and each
1130 <var>x</var> and <var>y</var> is a hex digit.
1131 </column>
1132 <column name="status" key="stp_designated_root">
1133 The designated root for this spanning tree, in the same form as <ref
1134 column="status" key="stp_bridge_id"/>. If this bridge is the root,
1135 this will have the same value as <ref column="status"
1136 key="stp_bridge_id"/>, otherwise it will differ.
1137 </column>
1138 <column name="status" key="stp_root_path_cost">
1139 The path cost of reaching the designated bridge. A lower number is
1140 better. The value is 0 if this bridge is the root, otherwise it is
1141 higher.
1142 </column>
1143 </group>
1144 </group>
1145
1146 <group title="Rapid Spanning Tree">
1147 <p>
1148 Rapid Spanning Tree Protocol (RSTP), like STP, is a network protocol
1149 that ensures loop-free topologies. RSTP superseded STP with the
1150 publication of 802.1D-2004. Compared to STP, RSTP converges more
1151 quickly and recovers more quickly from failures.
1152 </p>
1153
1154 <group title="RSTP Configuration">
1155 <column name="rstp_enable" type='{"type": "boolean"}'>
1156 <p>
1157 Enable Rapid Spanning Tree on the bridge. By default, RSTP is disabled
1158 on bridges. Bond, internal, and mirror ports are not supported
1159 and will not participate in the spanning tree.
1160 </p>
1161
1162 <p>
1163 STP and RSTP are mutually exclusive. If both are enabled, RSTP
1164 will be used.
1165 </p>
1166 </column>
1167
1168 <column name="other_config" key="rstp-address">
1169 The bridge's RSTP address (the lower 48 bits of the bridge-id)
1170 in the form
1171 <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>.
1172 By default, the address is the MAC address of the bridge.
1173 </column>
1174
1175 <column name="other_config" key="rstp-priority"
1176 type='{"type": "integer", "minInteger": 0, "maxInteger": 61440}'>
1177 The bridge's relative priority value for determining the root
1178 bridge (the upper 16 bits of the bridge-id). A bridge with the
1179 lowest bridge-id is elected the root. By default, the priority
1180 is 0x8000 (32768). This value needs to be a multiple of 4096,
1181 otherwise it's rounded to the nearest inferior one.
1182 </column>
1183
1184 <column name="other_config" key="rstp-ageing-time"
1185 type='{"type": "integer", "minInteger": 10, "maxInteger": 1000000}'>
1186 The Ageing Time parameter for the Bridge. The default value
1187 is 300 seconds.
1188 </column>
1189
1190 <column name="other_config" key="rstp-force-protocol-version"
1191 type='{"type": "integer"}'>
1192 The Force Protocol Version parameter for the Bridge. This
1193 can take the value 0 (STP Compatibility mode) or 2
1194 (the default, normal operation).
1195 </column>
1196
1197 <column name="other_config" key="rstp-max-age"
1198 type='{"type": "integer", "minInteger": 6, "maxInteger": 40}'>
1199 The maximum age of the information transmitted by the Bridge
1200 when it is the Root Bridge. The default value is 20.
1201 </column>
1202
1203 <column name="other_config" key="rstp-forward-delay"
1204 type='{"type": "integer", "minInteger": 4, "maxInteger": 30}'>
1205 The delay used by STP Bridges to transition Root and Designated
1206 Ports to Forwarding. The default value is 15.
1207 </column>
1208
1209 <column name="other_config" key="rstp-transmit-hold-count"
1210 type='{"type": "integer", "minInteger": 1, "maxInteger": 10}'>
1211 The Transmit Hold Count used by the Port Transmit state machine
1212 to limit transmission rate. The default value is 6.
1213 </column>
1214 </group>
1215
1216 <group title="RSTP Status">
dc2b70ba 1217 <p>
01f13d4f
BP
1218 These key-value pairs report the status of 802.1D-2004. They are
1219 present only if RSTP is enabled (via the <ref column="rstp_enable"/>
1220 column).
dc2b70ba 1221 </p>
01f13d4f
BP
1222 <column name="rstp_status" key="rstp_bridge_id">
1223 The bridge ID used in rapid spanning tree advertisements, in the form
1224 <var>x</var>.<var>yyy</var>.<var>zzzzzzzzzzzz</var> where
1225 <var>x</var> is the RSTP priority, the <var>y</var>s are a locally
1226 assigned system ID extension, the <var>z</var>s are the STP system
1227 ID, and each <var>x</var>, <var>y</var>, or <var>z</var> is a hex
1228 digit.
1229 </column>
1230 <column name="rstp_status" key="rstp_root_id">
1231 The root of this spanning tree, in the same form as <ref
1232 column="rstp_status" key="rstp_bridge_id"/>. If this bridge is the
1233 root, this will have the same value as <ref column="rstp_status"
1234 key="rstp_bridge_id"/>, otherwise it will differ.
1235 </column>
1236 <column name="rstp_status" key="rstp_root_path_cost"
1237 type='{"type": "integer", "minInteger": 0}'>
1238 The path cost of reaching the root. A lower number is better. The
1239 value is 0 if this bridge is the root, otherwise it is higher.
1240 </column>
1241 <column name="rstp_status" key="rstp_designated_id">
1242 The RSTP designated ID, in the same form as <ref column="rstp_status"
1243 key="rstp_bridge_id"/>.
1244 </column>
1245 <column name="rstp_status" key="rstp_designated_port_id">
1246 The RSTP designated port ID, as a 4-digit hex number.
1247 </column>
1248 <column name="rstp_status" key="rstp_bridge_port_id">
1249 The RSTP bridge port ID, as a 4-digit hex number.
1250 </column>
1251 </group>
dc2b70ba
FL
1252 </group>
1253
1254 <group title="Multicast Snooping Configuration">
1255 Multicast snooping (RFC 4541) monitors the Internet Group Management
06994f87
TLSC
1256 Protocol (IGMP) and Multicast Listener Discovery traffic between hosts
1257 and multicast routers. The switch uses what IGMP and MLD snooping
1258 learns to forward multicast traffic only to interfaces that are connected
1259 to interested receivers. Currently it supports IGMPv1, IGMPv2, IGMPv3,
1260 MLDv1 and MLDv2 protocols.
dc2b70ba
FL
1261
1262 <column name="mcast_snooping_enable">
1263 Enable multicast snooping on the bridge. For now, the default
1264 is disabled.
1265 </column>
21f7563c
JP
1266 </group>
1267
89365653
BP
1268 <group title="Other Features">
1269 <column name="datapath_type">
842733c3
MG
1270 Name of datapath provider. The kernel datapath has type
1271 <code>system</code>. The userspace datapath has type
1272 <code>netdev</code>. A manager may refer to the <ref
1273 table="Open_vSwitch" column="datapath_types"/> column of the <ref
1274 table="Open_vSwitch"/> table for a list of the types accepted by this
1275 Open vSwitch instance.
89365653
BP
1276 </column>
1277
3fd8d445
BP
1278 <column name="external_ids" key="bridge-id">
1279 A unique identifier of the bridge. On Citrix XenServer this will
1280 commonly be the same as
1281 <ref column="external_ids" key="xs-network-uuids"/>.
89365653
BP
1282 </column>
1283
3fd8d445
BP
1284 <column name="external_ids" key="xs-network-uuids">
1285 Semicolon-delimited set of universally unique identifier(s) for the
1286 network with which this bridge is associated on a Citrix XenServer
1287 host. The network identifiers are RFC 4122 UUIDs as displayed by,
1288 e.g., <code>xe network-list</code>.
1289 </column>
1290
1291 <column name="other_config" key="hwaddr">
1292 An Ethernet address in the form
1293 <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>
1294 to set the hardware address of the local port and influence the
1295 datapath ID.
1296 </column>
1297
f9e5e5b3
BP
1298 <column name="other_config" key="forward-bpdu"
1299 type='{"type": "boolean"}'>
da1e25d5 1300
039a8ccd 1301 <p>
da1e25d5
BP
1302 Controls forwarding of BPDUs and other network control frames when
1303 NORMAL action is invoked. When this option is <code>false</code> or
1304 unset, frames with reserved Ethernet addresses (see table below) will
1305 not be forwarded. When this option is <code>true</code>, such frames
1306 will not be treated specially.
039a8ccd
BP
1307 </p>
1308
1309 <p>
1310 The above general rule has the following exceptions:
1311 </p>
1312
1313 <ul>
1314 <li>
1315 If STP is enabled on the bridge (see the <ref column="stp_enable"
1316 table="Bridge"/> column in the <ref table="Bridge"/> table), the
1317 bridge processes all received STP packets and never passes them to
1318 OpenFlow or forwards them. This is true even if STP is disabled on
1319 an individual port.
1320 </li>
1321
1322 <li>
1323 If LLDP is enabled on an interface (see the <ref column="lldp"
1324 table="Interface"/> column in the <ref table="Interface"/> table),
1325 the interface processes received LLDP packets and never passes them
1326 to OpenFlow or forwards them.
1327 </li>
1328 </ul>
1329
1330 <p>
1331 Set this option to <code>true</code> if the Open vSwitch bridge
1332 connects different Ethernet networks and is not configured to
1333 participate in STP.
1334 </p>
1335
1336 <p>
1337 This option affects packets with the following destination MAC
1338 addresses:
1339 </p>
da1e25d5 1340
05be4e2c
EJ
1341 <dl>
1342 <dt><code>01:80:c2:00:00:00</code></dt>
1343 <dd>IEEE 802.1D Spanning Tree Protocol (STP).</dd>
1344
1345 <dt><code>01:80:c2:00:00:01</code></dt>
1346 <dd>IEEE Pause frame.</dd>
1347
1348 <dt><code>01:80:c2:00:00:0<var>x</var></code></dt>
1349 <dd>Other reserved protocols.</dd>
1350
7d48a4cc
BP
1351 <dt><code>00:e0:2b:00:00:00</code></dt>
1352 <dd>Extreme Discovery Protocol (EDP).</dd>
c93f9a78 1353
7d48a4cc 1354 <dt>
039a8ccd
BP
1355 <code>00:e0:2b:00:00:04</code> and <code>00:e0:2b:00:00:06</code>
1356 </dt>
7d48a4cc 1357 <dd>Ethernet Automatic Protection Switching (EAPS).</dd>
c93f9a78 1358
05be4e2c
EJ
1359 <dt><code>01:00:0c:cc:cc:cc</code></dt>
1360 <dd>
1361 Cisco Discovery Protocol (CDP), VLAN Trunking Protocol (VTP),
1362 Dynamic Trunking Protocol (DTP), Port Aggregation Protocol (PAgP),
1363 and others.
1364 </dd>
1365
1366 <dt><code>01:00:0c:cc:cc:cd</code></dt>
1367 <dd>Cisco Shared Spanning Tree Protocol PVSTP+.</dd>
1368
1369 <dt><code>01:00:0c:cd:cd:cd</code></dt>
1370 <dd>Cisco STP Uplink Fast.</dd>
1371
1372 <dt><code>01:00:0c:00:00:00</code></dt>
1373 <dd>Cisco Inter Switch Link.</dd>
7d48a4cc
BP
1374
1375 <dt><code>01:00:0c:cc:cc:c<var>x</var></code></dt>
1376 <dd>Cisco CFM.</dd>
05be4e2c 1377 </dl>
21f7563c 1378 </column>
e764773c
BP
1379
1380 <column name="other_config" key="mac-aging-time"
1381 type='{"type": "integer", "minInteger": 1}'>
1382 <p>
1383 The maximum number of seconds to retain a MAC learning entry for
1384 which no packets have been seen. The default is currently 300
1385 seconds (5 minutes). The value, if specified, is forced into a
1386 reasonable range, currently 15 to 3600 seconds.
1387 </p>
1388
1389 <p>
1390 A short MAC aging time allows a network to more quickly detect that a
1391 host is no longer connected to a switch port. However, it also makes
1392 it more likely that packets will be flooded unnecessarily, when they
1393 are addressed to a connected host that rarely transmits packets. To
1394 reduce the incidence of unnecessary flooding, use a MAC aging time
1395 longer than the maximum interval at which a host will ordinarily
1396 transmit packets.
1397 </p>
1398 </column>
c4069512
BP
1399
1400 <column name="other_config" key="mac-table-size"
1401 type='{"type": "integer", "minInteger": 1}'>
1402 <p>
1403 The maximum number of MAC addresses to learn. The default is
2468f675 1404 currently 8192. The value, if specified, is forced into a reasonable
c4069512
BP
1405 range, currently 10 to 1,000,000.
1406 </p>
1407 </column>
21f7563c
JP
1408 </group>
1409
3fd8d445
BP
1410 <group title="Common Columns">
1411 The overall purpose of these columns is described under <code>Common
1412 Columns</code> at the beginning of this document.
1413
1414 <column name="other_config"/>
1415 <column name="external_ids"/>
1416 </group>
89365653 1417 </table>
039a8ccd
BP
1418
1419 <table name="Port" table="Port or bond configuration.">
89365653
BP
1420 <p>A port within a <ref table="Bridge"/>.</p>
1421 <p>Most commonly, a port has exactly one ``interface,'' pointed to by its
3fd8d445
BP
1422 <ref column="interfaces"/> column. Such a port logically
1423 corresponds to a port on a physical Ethernet switch. A port
1424 with more than one interface is a ``bonded port'' (see
1425 <ref group="Bonding Configuration"/>).</p>
89365653 1426 <p>Some properties that one might think as belonging to a port are actually
3fd8d445 1427 part of the port's <ref table="Interface"/> members.</p>
89365653
BP
1428
1429 <column name="name">
c885f934
BP
1430 Port name. For a non-bonded port, this should be the same as its
1431 interface's name. Port names must otherwise be unique among the names of
1432 ports, interfaces, and bridges on a host. Because port and interfaces
1433 names are usually the same, the restrictions on the <ref
1434 table="Interface" column="name"/> column in the <ref table="Interface"/>
1435 table, particularly on length, also apply to port names. Refer to the
1436 documentation for <ref table="Interface"/> names for details.
89365653
BP
1437 </column>
1438
1439 <column name="interfaces">
1440 The port's interfaces. If there is more than one, this is a
1441 bonded Port.
1442 </column>
1443
1444 <group title="VLAN Configuration">
fed8962a
EG
1445 <p>
1446 In short, a VLAN (short for ``virtual LAN'') is a way to partition a
1447 single switch into multiple switches. VLANs can be confusing, so for
1448 an introduction, please refer to the question ``What's a VLAN?'' in the
1449 Open vSwitch FAQ.
1450 </p>
1451
1452 <p>
1453 A VLAN is sometimes encoded into a packet using a 802.1Q or 802.1ad
1454 VLAN header, but every packet is part of some VLAN whether or not it is
1455 encoded in the packet. (A packet that appears to have no VLAN is part
1456 of VLAN 0, by default.) As a result, it's useful to think of a VLAN as
1457 a metadata property of a packet, separate from how the VLAN is encoded.
1458 For a given port, this column determines how the encoding of a packet
1459 that ingresses or egresses the port maps to the packet's VLAN. When a
1460 packet enters the switch, its VLAN is determined based on its setting
1461 in this column and its VLAN headers, if any, and then, conceptually,
1462 the VLAN headers are then stripped off. Conversely, when a packet
1463 exits the switch, its VLAN and the settings in this column determine
1464 what VLAN headers, if any, are pushed onto the packet before it
1465 egresses the port.
1466 </p>
1467
1468 <p>
1469 The VLAN configuration in this column affects Open vSwitch only when it
1470 is doing ``normal switching.'' It does not affect flows set up by an
1471 OpenFlow controller, outside of the OpenFlow ``normal action.''
1472 </p>
1473
1474 <p>
1475 Bridge ports support the following types of VLAN configuration:
1476 </p>
1477
ecac4ebf
BP
1478 <dl>
1479 <dt>trunk</dt>
1480 <dd>
1481 <p>
1482 A trunk port carries packets on one or more specified VLANs
1483 specified in the <ref column="trunks"/> column (often, on every
1484 VLAN). A packet that ingresses on a trunk port is in the VLAN
1485 specified in its 802.1Q header, or VLAN 0 if the packet has no
1486 802.1Q header. A packet that egresses through a trunk port will
5e9ceccd 1487 have an 802.1Q header if it has a nonzero VLAN ID.
ecac4ebf
BP
1488 </p>
1489
1490 <p>
1491 Any packet that ingresses on a trunk port tagged with a VLAN that
1492 the port does not trunk is dropped.
1493 </p>
1494 </dd>
1495
1496 <dt>access</dt>
1497 <dd>
1498 <p>
1499 An access port carries packets on exactly one VLAN specified in the
5e9ceccd
BP
1500 <ref column="tag"/> column. Packets egressing on an access port
1501 have no 802.1Q header.
ecac4ebf
BP
1502 </p>
1503
1504 <p>
5e9ceccd
BP
1505 Any packet with an 802.1Q header with a nonzero VLAN ID that
1506 ingresses on an access port is dropped, regardless of whether the
1507 VLAN ID in the header is the access port's VLAN ID.
ecac4ebf
BP
1508 </p>
1509 </dd>
1510
1511 <dt>native-tagged</dt>
1512 <dd>
1513 A native-tagged port resembles a trunk port, with the exception that
1514 a packet without an 802.1Q header that ingresses on a native-tagged
1515 port is in the ``native VLAN'' (specified in the <ref column="tag"/>
1516 column).
1517 </dd>
1518
1519 <dt>native-untagged</dt>
1520 <dd>
1521 A native-untagged port resembles a native-tagged port, with the
1522 exception that a packet that egresses on a native-untagged port in
5e9ceccd 1523 the native VLAN will not have an 802.1Q header.
ecac4ebf 1524 </dd>
fed8962a
EG
1525
1526 <dt>dot1q-tunnel</dt>
1527 <dd>
1528 <p>
1529 A dot1q-tunnel port is somewhat like an access port. Like an
1530 access port, it carries packets on the single VLAN specified in the
1531 <ref column="tag"/> column and this VLAN, called the service VLAN,
1532 does not appear in an 802.1Q header for packets that ingress or
1533 egress on the port. The main difference lies in the behavior when
1534 packets that include a 802.1Q header ingress on the port. Whereas
1535 an access port drops such packets, a dot1q-tunnel port treats these
1536 as double-tagged with the outer service VLAN <ref column="tag"/>
1537 and the inner customer VLAN taken from the 802.1Q header.
1538 Correspondingly, to egress on the port, a packet outer VLAN (or
1539 only VLAN) must be <ref column="tag"/>, which is removed before
1540 egress, which exposes the inner (customer) VLAN if one is present.
1541 </p>
1542
1543 <p>
1544 If <ref column="cvlans"/> is set, only allows packets in the
1545 specified customer VLANs.
1546 </p>
1547 </dd>
ecac4ebf
BP
1548 </dl>
1549 <p>
1550 A packet will only egress through bridge ports that carry the VLAN of
1551 the packet, as described by the rules above.
89365653
BP
1552 </p>
1553
ecac4ebf 1554 <column name="vlan_mode">
7894d33b 1555 <p>
ecac4ebf
BP
1556 The VLAN mode of the port, as described above. When this column is
1557 empty, a default mode is selected as follows:
7894d33b 1558 </p>
ecac4ebf
BP
1559 <ul>
1560 <li>
1561 If <ref column="tag"/> contains a value, the port is an access
1562 port. The <ref column="trunks"/> column should be empty.
1563 </li>
1564 <li>
1565 Otherwise, the port is a trunk port. The <ref column="trunks"/>
1566 column value is honored if it is present.
1567 </li>
1568 </ul>
1569 </column>
1570
1571 <column name="tag">
7894d33b 1572 <p>
ecac4ebf
BP
1573 For an access port, the port's implicitly tagged VLAN. For a
1574 native-tagged or native-untagged port, the port's native VLAN. Must
1575 be empty if this is a trunk port.
7894d33b 1576 </p>
89365653
BP
1577 </column>
1578
1579 <column name="trunks">
7894d33b 1580 <p>
ecac4ebf
BP
1581 For a trunk, native-tagged, or native-untagged port, the 802.1Q VLAN
1582 or VLANs that this port trunks; if it is empty, then the port trunks
1583 all VLANs. Must be empty if this is an access port.
7894d33b
BP
1584 </p>
1585 <p>
ecac4ebf
BP
1586 A native-tagged or native-untagged port always trunks its native
1587 VLAN, regardless of whether <ref column="trunks"/> includes that
1588 VLAN.
7894d33b 1589 </p>
89365653 1590 </column>
5e9ceccd 1591
fed8962a
EG
1592 <column name="cvlans">
1593 <p>
1594 For a dot1q-tunnel port, the customer VLANs that this port includes.
1595 If this is empty, the port includes all customer VLANs.
1596 </p>
1597 <p>
1598 For other kinds of ports, this setting is ignored.
1599 </p>
1600 </column>
1601
1602 <column name="other_config" key="qinq-ethtype"
1603 type='{"type": "string", "enum": ["set", ["802.1ad", "802.1q"]]}'>
1604 <p>
1605 For a dot1q-tunnel port, this is the TPID for the service tag, that
1606 is, for the 802.1Q header that contains the service VLAN ID. Because
1607 packets that actually ingress and egress a dot1q-tunnel port do not
1608 include an 802.1Q header for the service VLAN, this does not affect
1609 packets on the dot1q-tunnel port itself. Rather, it determines the
1610 service VLAN for a packet that ingresses on a dot1q-tunnel port and
1611 egresses on a trunk port.
1612 </p>
1613 <p>
1614 The value <code>802.1ad</code> specifies TPID 0x88a8, which is also
1615 the default if the setting is omitted. The value <code>802.1q</code>
1616 specifies TPID 0x8100.
1617 </p>
1618 <p>
1619 For other kinds of ports, this setting is ignored.
1620 </p>
1621 </column>
1622
5e9ceccd
BP
1623 <column name="other_config" key="priority-tags"
1624 type='{"type": "boolean"}'>
1625 <p>
1626 An 802.1Q header contains two important pieces of information: a VLAN
1627 ID and a priority. A frame with a zero VLAN ID, called a
1628 ``priority-tagged'' frame, is supposed to be treated the same way as
1629 a frame without an 802.1Q header at all (except for the priority).
1630 </p>
1631
1632 <p>
1633 However, some network elements ignore any frame that has 802.1Q
1634 header at all, even when the VLAN ID is zero. Therefore, by default
1635 Open vSwitch does not output priority-tagged frames, instead omitting
1636 the 802.1Q header entirely if the VLAN ID is zero. Set this key to
1637 <code>true</code> to enable priority-tagged frames on a port.
1638 </p>
1639
1640 <p>
1641 Regardless of this setting, Open vSwitch omits the 802.1Q header on
1642 output if both the VLAN ID and priority would be zero.
1643 </p>
1644
1645 <p>
1646 All frames output to native-tagged ports have a nonzero VLAN ID, so
1647 this setting is not meaningful on native-tagged ports.
1648 </p>
1649 </column>
89365653
BP
1650 </group>
1651
1652 <group title="Bonding Configuration">
be02e7c3 1653 <p>A port that has more than one interface is a ``bonded port.'' Bonding
d64e1870
BP
1654 allows for load balancing and fail-over.</p>
1655
1656 <p>
1657 The following types of bonding will work with any kind of upstream
1658 switch. On the upstream switch, do not configure the interfaces as a
1659 bond:
1660 </p>
9f5073d8
EJ
1661
1662 <dl>
1663 <dt><code>balance-slb</code></dt>
1664 <dd>
1665 Balances flows among slaves based on source MAC address and output
1666 VLAN, with periodic rebalancing as traffic patterns change.
1667 </dd>
1668
1669 <dt><code>active-backup</code></dt>
1670 <dd>
1671 Assigns all flows to one slave, failing over to a backup slave when
629d868c
BP
1672 the active slave is disabled. This is the only bonding mode in which
1673 interfaces may be plugged into different upstream switches.
9f5073d8
EJ
1674 </dd>
1675 </dl>
1676
1677 <p>
fb0b29a3 1678 The following modes require the upstream switch to support 802.3ad with
9dd165e0
RK
1679 successful LACP negotiation. If LACP negotiation fails and
1680 other-config:lacp-fallback-ab is true, then <code>active-backup</code>
1681 mode is used:
9f5073d8
EJ
1682 </p>
1683
1684 <dl>
1685 <dt><code>balance-tcp</code></dt>
1686 <dd>
ecbca23d
IM
1687 Balances flows among slaves based on L3 and L4 protocol information
1688 such as IP addresses and TCP/UDP ports.
9f5073d8 1689 </dd>
fb0b29a3
EJ
1690 </dl>
1691
89365653 1692 <p>These columns apply only to bonded ports. Their values are
3fd8d445 1693 otherwise ignored.</p>
89365653 1694
27dcaa1a 1695 <column name="bond_mode">
9f5073d8 1696 <p>The type of bonding used for a bonded port. Defaults to
4df08875 1697 <code>active-backup</code> if unset.
9f5073d8 1698 </p>
be02e7c3
EJ
1699 </column>
1700
96ada1a4
EJ
1701 <column name="other_config" key="bond-hash-basis"
1702 type='{"type": "integer"}'>
1703 An integer hashed along with flows when choosing output slaves in load
1704 balanced bonds. When changed, all flows will be assigned different
1705 hash values possibly causing slave selection decisions to change. Does
1706 not affect bonding modes which do not employ load balancing such as
1707 <code>active-backup</code>.
1708 </column>
1709
3fd8d445
BP
1710 <group title="Link Failure Detection">
1711 <p>
1712 An important part of link bonding is detecting that links are down so
1713 that they may be disabled. These settings determine how Open vSwitch
1714 detects link failure.
1715 </p>
89365653 1716
f9e5e5b3
BP
1717 <column name="other_config" key="bond-detect-mode"
1718 type='{"type": "string", "enum": ["set", ["carrier", "miimon"]]}'>
1719 The means used to detect link failures. Defaults to
3fd8d445
BP
1720 <code>carrier</code> which uses each interface's carrier to detect
1721 failures. When set to <code>miimon</code>, will check for failures
1722 by polling each interface's MII.
1723 </column>
89365653 1724
f9e5e5b3
BP
1725 <column name="other_config" key="bond-miimon-interval"
1726 type='{"type": "integer"}'>
3fd8d445
BP
1727 The interval, in milliseconds, between successive attempts to poll
1728 each interface's MII. Relevant only when <ref column="other_config"
1729 key="bond-detect-mode"/> is <code>miimon</code>.
1730 </column>
1731
1732 <column name="bond_updelay">
1733 <p>
1c144051 1734 The number of milliseconds for which the link must stay up on an
3fd8d445
BP
1735 interface before the interface is considered to be up. Specify
1736 <code>0</code> to enable the interface immediately.
1737 </p>
1738
1739 <p>
1740 This setting is honored only when at least one bonded interface is
1741 already enabled. When no interfaces are enabled, then the first
1742 bond interface to come up is enabled immediately.
1743 </p>
1744 </column>
1745
1746 <column name="bond_downdelay">
1c144051 1747 The number of milliseconds for which the link must stay down on an
3fd8d445
BP
1748 interface before the interface is considered to be down. Specify
1749 <code>0</code> to disable the interface immediately.
1750 </column>
1751 </group>
c25c91fd 1752
3fd8d445
BP
1753 <group title="LACP Configuration">
1754 <p>
1755 LACP, the Link Aggregation Control Protocol, is an IEEE standard that
1756 allows switches to automatically detect that they are connected by
1757 multiple links and aggregate across those links. These settings
1758 control LACP behavior.
1759 </p>
1760
1761 <column name="lacp">
1762 Configures LACP on this port. LACP allows directly connected
76ea8efd
AE
1763 switches to negotiate which links may be bonded. LACP may be enabled
1764 on non-bonded ports for the benefit of any switches they may be
c25c91fd
EJ
1765 connected to. <code>active</code> ports are allowed to initiate LACP
1766 negotiations. <code>passive</code> ports are allowed to participate
1767 in LACP negotiations initiated by a remote switch, but not allowed to
bdebeece
EJ
1768 initiate such negotiations themselves. If LACP is enabled on a port
1769 whose partner switch does not support LACP, the bond will be
9dd165e0
RK
1770 disabled, unless other-config:lacp-fallback-ab is set to true.
1771 Defaults to <code>off</code> if unset.
3fd8d445
BP
1772 </column>
1773
1774 <column name="other_config" key="lacp-system-id">
1775 The LACP system ID of this <ref table="Port"/>. The system ID of a
1776 LACP bond is used to identify itself to its partners. Must be a
a9bf011b
EJ
1777 nonzero MAC address. Defaults to the bridge Ethernet address if
1778 unset.
3fd8d445
BP
1779 </column>
1780
f9e5e5b3
BP
1781 <column name="other_config" key="lacp-system-priority"
1782 type='{"type": "integer", "minInteger": 1, "maxInteger": 65535}'>
3fd8d445
BP
1783 The LACP system priority of this <ref table="Port"/>. In LACP
1784 negotiations, link status decisions are made by the system with the
f9e5e5b3 1785 numerically lower priority.
3fd8d445
BP
1786 </column>
1787
bf83f7c8 1788 <column name="other_config" key="lacp-time"
039a8ccd 1789 type='{"type": "string", "enum": ["set", ["fast", "slow"]]}'>
3fd8d445
BP
1790 <p>
1791 The LACP timing which should be used on this <ref table="Port"/>.
bf83f7c8
EJ
1792 By default <code>slow</code> is used. When configured to be
1793 <code>fast</code> LACP heartbeats are requested at a rate of once
1794 per second causing connectivity problems to be detected more
1795 quickly. In <code>slow</code> mode, heartbeats are requested at a
1796 rate of once every 30 seconds.
3fd8d445
BP
1797 </p>
1798 </column>
9dd165e0
RK
1799
1800 <column name="other_config" key="lacp-fallback-ab"
039a8ccd 1801 type='{"type": "boolean"}'>
9dd165e0
RK
1802 <p>
1803 Determines the behavior of openvswitch bond in LACP mode. If
1804 the partner switch does not support LACP, setting this option
1805 to <code>true</code> allows openvswitch to fallback to
1806 active-backup. If the option is set to <code>false</code>, the
1807 bond will be disabled. In both the cases, once the partner switch
1808 is configured to LACP mode, the bond will use LACP.
1809 </p>
1810 </column>
3fd8d445
BP
1811 </group>
1812
b62ee96f 1813 <group title="Rebalancing Configuration">
3fd8d445
BP
1814 <p>
1815 These settings control behavior when a bond is in
b62ee96f 1816 <code>balance-slb</code> or <code>balance-tcp</code> mode.
3fd8d445
BP
1817 </p>
1818
f9e5e5b3 1819 <column name="other_config" key="bond-rebalance-interval"
bc1b010c
EJ
1820 type='{"type": "integer", "minInteger": 0, "maxInteger": 10000}'>
1821 For a load balanced bonded port, the number of milliseconds between
1822 successive attempts to rebalance the bond, that is, to move flows
1823 from one interface on the bond to another in an attempt to keep usage
1824 of each interface roughly equal. If zero, load balancing is disabled
1c144051 1825 on the bond (link failure still cause flows to move). If
bc1b010c 1826 less than 1000ms, the rebalance interval will be 1000ms.
3fd8d445
BP
1827 </column>
1828 </group>
1829
1830 <column name="bond_fake_iface">
1831 For a bonded port, whether to create a fake internal interface with the
1832 name of the port. Use only for compatibility with legacy software that
1833 requires this.
1834 </column>
89365653
BP
1835 </group>
1836
01f13d4f
BP
1837 <group title="Spanning Tree Protocol">
1838 <p>
1839 The configuration here is only meaningful, and the status is only
1840 populated, when 802.1D-1998 Spanning Tree Protocol is enabled on the
1841 port's <ref column="Bridge"/> with its <ref column="stp_enable"/>
1842 column.
1843 </p>
21f7563c 1844
01f13d4f
BP
1845 <group title="STP Configuration">
1846 <column name="other_config" key="stp-enable"
1847 type='{"type": "boolean"}'>
1848 When STP is enabled on a bridge, it is enabled by default on all of
1849 the bridge's ports except bond, internal, and mirror ports (which do
1850 not work with STP). If this column's value is <code>false</code>,
1851 STP is disabled on the port.
1852 </column>
21f7563c 1853
01f13d4f
BP
1854 <column name="other_config" key="stp-port-num"
1855 type='{"type": "integer", "minInteger": 1, "maxInteger": 255}'>
1856 The port number used for the lower 8 bits of the port-id. By
1857 default, the numbers will be assigned automatically. If any
1858 port's number is manually configured on a bridge, then they
1859 must all be.
1860 </column>
21f7563c 1861
01f13d4f
BP
1862 <column name="other_config" key="stp-port-priority"
1863 type='{"type": "integer", "minInteger": 0, "maxInteger": 255}'>
1864 The port's relative priority value for determining the root
1865 port (the upper 8 bits of the port-id). A port with a lower
1866 port-id will be chosen as the root port. By default, the
1867 priority is 0x80.
1868 </column>
1869
1870 <column name="other_config" key="stp-path-cost"
1871 type='{"type": "integer", "minInteger": 0, "maxInteger": 65535}'>
1872 Spanning tree path cost for the port. A lower number indicates
1873 a faster link. By default, the cost is based on the maximum
1874 speed of the link.
1875 </column>
1876 </group>
1877
1878 <group title="STP Status">
1879 <column name="status" key="stp_port_id">
1880 The port ID used in spanning tree advertisements for this port, as 4
1881 hex digits. Configuring the port ID is described in the
1882 <code>stp-port-num</code> and <code>stp-port-priority</code> keys of
1883 the <code>other_config</code> section earlier.
1884 </column>
1885 <column name="status" key="stp_state"
1886 type='{"type": "string", "enum": ["set",
1887 ["disabled", "listening", "learning",
1888 "forwarding", "blocking"]]}'>
1889 STP state of the port.
1890 </column>
1891 <column name="status" key="stp_sec_in_state"
1892 type='{"type": "integer", "minInteger": 0}'>
1893 The amount of time this port has been in the current STP state, in
1894 seconds.
1895 </column>
1896 <column name="status" key="stp_role"
1897 type='{"type": "string", "enum": ["set",
1898 ["root", "designated", "alternate"]]}'>
1899 STP role of the port.
1900 </column>
1901 </group>
21f7563c 1902 </group>
d62d7cb1 1903
01f13d4f
BP
1904 <group title="Rapid Spanning Tree Protocol">
1905 <p>
1906 The configuration here is only meaningful, and the status and
1907 statistics are only populated, when 802.1D-1998 Spanning Tree Protocol
1908 is enabled on the port's <ref column="Bridge"/> with its <ref
1909 column="stp_enable"/> column.
1910 </p>
d62d7cb1 1911
01f13d4f
BP
1912 <group title="RSTP Configuration">
1913 <column name="other_config" key="rstp-enable"
1914 type='{"type": "boolean"}'>
1915 When RSTP is enabled on a bridge, it is enabled by default on all of
1916 the bridge's ports except bond, internal, and mirror ports (which do
1917 not work with RSTP). If this column's value is <code>false</code>,
1918 RSTP is disabled on the port.
1919 </column>
d62d7cb1 1920
01f13d4f
BP
1921 <column name="other_config" key="rstp-port-priority"
1922 type='{"type": "integer", "minInteger": 0, "maxInteger": 240}'>
1923 The port's relative priority value for determining the root port, in
1924 multiples of 16. By default, the port priority is 0x80 (128). Any
1925 value in the lower 4 bits is rounded off. The significant upper 4
1926 bits become the upper 4 bits of the port-id. A port with the lowest
1927 port-id is elected as the root.
1928 </column>
d62d7cb1 1929
01f13d4f
BP
1930 <column name="other_config" key="rstp-port-num"
1931 type='{"type": "integer", "minInteger": 1, "maxInteger": 4095}'>
1932 The local RSTP port number, used as the lower 12 bits of the port-id.
1933 By default the port numbers are assigned automatically, and typically
1934 may not correspond to the OpenFlow port numbers. A port with the
1935 lowest port-id is elected as the root.
1936 </column>
d62d7cb1 1937
01f13d4f
BP
1938 <column name="other_config" key="rstp-port-path-cost"
1939 type='{"type": "integer"}'>
1940 The port path cost. The Port's contribution, when it is
1941 the Root Port, to the Root Path Cost for the Bridge. By default the
1942 cost is automatically calculated from the port's speed.
1943 </column>
d62d7cb1 1944
01f13d4f
BP
1945 <column name="other_config" key="rstp-port-admin-edge"
1946 type='{"type": "boolean"}'>
1947 The admin edge port parameter for the Port. Default is
1948 <code>false</code>.
1949 </column>
d62d7cb1 1950
01f13d4f
BP
1951 <column name="other_config" key="rstp-port-auto-edge"
1952 type='{"type": "boolean"}'>
1953 The auto edge port parameter for the Port. Default is
d62d7cb1 1954 <code>true</code>.
01f13d4f
BP
1955 </column>
1956
1957 <column name="other_config" key="rstp-port-mcheck"
1958 type='{"type": "boolean"}'>
1959 <p>
1960 The mcheck port parameter for the Port. Default is
1961 <code>false</code>. May be set to force the Port Protocol
1962 Migration state machine to transmit RST BPDUs for a
1963 MigrateTime period, to test whether all STP Bridges on the
1964 attached LAN have been removed and the Port can continue to
1965 transmit RSTP BPDUs. Setting mcheck has no effect if the
1966 Bridge is operating in STP Compatibility mode.
1967 </p>
1968 <p>
1969 Changing the value from <code>true</code> to
1970 <code>false</code> has no effect, but needs to be done if
1971 this behavior is to be triggered again by subsequently
1972 changing the value from <code>false</code> to
1973 <code>true</code>.
1974 </p>
1975 </column>
1976 </group>
1977
1978 <group title="RSTP Status">
1979 <column name="rstp_status" key="rstp_port_id">
1980 The port ID used in spanning tree advertisements for this port, as 4
1981 hex digits. Configuring the port ID is described in the
1982 <code>rstp-port-num</code> and <code>rstp-port-priority</code> keys
1983 of the <code>other_config</code> section earlier.
1984 </column>
1985 <column name="rstp_status" key="rstp_port_role"
1986 type='{"type": "string", "enum": ["set",
1987 ["Root", "Designated", "Alternate", "Backup", "Disabled"]]}'>
1988 RSTP role of the port.
1989 </column>
1990 <column name="rstp_status" key="rstp_port_state"
1991 type='{"type": "string", "enum": ["set",
1992 ["Disabled", "Learning", "Forwarding", "Discarding"]]}'>
1993 RSTP state of the port.
1994 </column>
1995 <column name="rstp_status" key="rstp_designated_bridge_id">
1996 The port's RSTP designated bridge ID, in the same form as <ref
1997 column="rstp_status" key="rstp_bridge_id"/> in the <ref
1998 table="Bridge"/> table.
1999 </column>
2000 <column name="rstp_status" key="rstp_designated_port_id">
2001 The port's RSTP designated port ID, as 4 hex digits.
2002 </column>
2003 <column name="rstp_status" key="rstp_designated_path_cost"
2004 type='{"type": "integer"}'>
2005 The port's RSTP designated path cost. Lower is better.
2006 </column>
2007 </group>
2008
2009 <group title="RSTP Statistics">
2010 <column name="rstp_statistics" key="rstp_tx_count">
2011 Number of RSTP BPDUs transmitted through this port.
2012 </column>
2013 <column name="rstp_statistics" key="rstp_rx_count">
2014 Number of valid RSTP BPDUs received by this port.
2015 </column>
2016 <column name="rstp_statistics" key="rstp_error_count">
2017 Number of invalid RSTP BPDUs received by this port.
2018 </column>
2019 <column name="rstp_statistics" key="rstp_uptime">
2020 The duration covered by the other RSTP statistics, in seconds.
2021 </column>
2022 </group>
d62d7cb1
JR
2023 </group>
2024
dc2b70ba
FL
2025 <group title="Multicast Snooping">
2026 <column name="other_config" key="mcast-snooping-flood"
2027 type='{"type": "boolean"}'>
2028 <p>
8e04a33f
FL
2029 If set to <code>true</code>, multicast packets (except Reports) are
2030 unconditionally forwarded to the specific port.
2031 </p>
2032 </column>
2033 <column name="other_config" key="mcast-snooping-flood-reports"
2034 type='{"type": "boolean"}'>
2035 <p>
2036 If set to <code>true</code>, multicast Reports are unconditionally
dc2b70ba
FL
2037 forwarded to the specific port.
2038 </p>
2039 </column>
2040 </group>
21f7563c 2041
89365653 2042 <group title="Other Features">
c1c9c9c4
BP
2043 <column name="qos">
2044 Quality of Service configuration for this port.
2045 </column>
299a244b 2046
89365653
BP
2047 <column name="mac">
2048 The MAC address to use for this port for the purpose of choosing the
2049 bridge's MAC address. This column does not necessarily reflect the
2050 port's actual MAC address, nor will setting it change the port's actual
2051 MAC address.
2052 </column>
2053
2054 <column name="fake_bridge">
2055 Does this port represent a sub-bridge for its tagged VLAN within the
2056 Bridge? See ovs-vsctl(8) for more information.
2057 </column>
2058
ced947ae
BK
2059 <column name="protected" type='{"type": "boolean"}'>
2060 The protected ports feature allows certain ports to be designated as
2061 protected. Traffic between protected ports is blocked. Protected
2062 ports can send traffic to unprotected ports. Unprotected ports can
2063 send traffic to any port.
2064 Default is false.
2065 </column>
2066
3fd8d445
BP
2067 <column name="external_ids" key="fake-bridge-id-*">
2068 External IDs for a fake bridge (see the <ref column="fake_bridge"/>
2069 column) are defined by prefixing a <ref table="Bridge"/> <ref
2070 table="Bridge" column="external_ids"/> key with
2071 <code>fake-bridge-</code>,
2072 e.g. <code>fake-bridge-xs-network-uuids</code>.
89365653 2073 </column>
54b21db7
TLSC
2074
2075 <column name="other_config" key="transient"
2076 type='{"type": "boolean"}'>
2077 <p>
2078 If set to <code>true</code>, the port will be removed when
2079 <code>ovs-ctl start --delete-transient-ports</code> is used.
2080 </p>
2081 </column>
3fd8d445 2082 </group>
89365653 2083
01f13d4f
BP
2084 <column name="bond_active_slave">
2085 For a bonded port, record the mac address of the current active slave.
2086 </column>
21f7563c 2087
80740385
JP
2088 <group title="Port Statistics">
2089 <p>
12eb035b
AW
2090 Key-value pairs that report port statistics. The update period
2091 is controlled by <ref column="other_config"
2092 key="stats-update-interval"/> in the <code>Open_vSwitch</code> table.
80740385
JP
2093 </p>
2094 <group title="Statistics: STP transmit and receive counters">
2095 <column name="statistics" key="stp_tx_count">
2096 Number of STP BPDUs sent on this port by the spanning
2097 tree library.
2098 </column>
2099 <column name="statistics" key="stp_rx_count">
2100 Number of STP BPDUs received on this port and accepted by the
2101 spanning tree library.
2102 </column>
2103 <column name="statistics" key="stp_error_count">
2104 Number of bad STP BPDUs received on this port. Bad BPDUs
2105 include runt packets and those with an unexpected protocol ID.
2106 </column>
2107 </group>
2108 </group>
2109
3fd8d445
BP
2110 <group title="Common Columns">
2111 The overall purpose of these columns is described under <code>Common
2112 Columns</code> at the beginning of this document.
2113
2114 <column name="other_config"/>
2115 <column name="external_ids"/>
89365653
BP
2116 </group>
2117 </table>
2118
2119 <table name="Interface" title="One physical network device in a Port.">
2120 An interface within a <ref table="Port"/>.
2121
2122 <group title="Core Features">
2123 <column name="name">
c885f934
BP
2124 <p>
2125 Interface name. Should be alphanumeric. For non-bonded port, this
2126 should be the same as the port name. It must otherwise be unique
2127 among the names of ports, interfaces, and bridges on a host.
2128 </p>
2129
2130 <p>
2131 The maximum length of an interface name depends on the underlying
2132 datapath:
2133 </p>
2134
2135 <ul>
2136 <li>
2137 The names of interfaces implemented as Linux and BSD network
2138 devices, including interfaces with type <code>internal</code>,
59a0ef1d
JG
2139 <code>tap</code>, or <code>system</code> plus the different types
2140 of tunnel ports, are limited to 15 bytes. Windows limits these
2141 names to 255 bytes.
c885f934
BP
2142 </li>
2143
2144 <li>
59a0ef1d
JG
2145 The names of patch ports are not used in the underlying datapath,
2146 so operating system restrictions do not apply. Thus, they may have
2147 arbitrary length.
c885f934
BP
2148 </li>
2149 </ul>
2150
2151 <p>
2152 Regardless of other restrictions, OpenFlow only supports 15-byte
2153 names, which means that <code>ovs-ofctl</code> and OpenFlow
2154 controllers will show names truncated to 15 bytes.
2155 </p>
89365653
BP
2156 </column>
2157
ea401d9a
NM
2158 <column name="ifindex">
2159 A positive interface index as defined for SNMP MIB-II in RFCs 1213 and
2160 2863, if the interface has one, otherwise 0. The ifindex is useful for
2161 seamless integration with protocols such as SNMP and sFlow.
2162 </column>
2163
df867eda
JP
2164 <column name="mac_in_use">
2165 The MAC address in use by this interface.
2166 </column>
2167
89365653
BP
2168 <column name="mac">
2169 <p>Ethernet address to set for this interface. If unset then the
3fd8d445 2170 default MAC address is used:</p>
89365653
BP
2171 <ul>
2172 <li>For the local interface, the default is the lowest-numbered MAC
3fd8d445
BP
2173 address among the other bridge ports, either the value of the
2174 <ref table="Port" column="mac"/> in its <ref table="Port"/> record,
2175 if set, or its actual MAC (for bonded ports, the MAC of its slave
2176 whose name is first in alphabetical order). Internal ports and
2177 bridge ports that are used as port mirroring destinations (see the
2178 <ref table="Mirror"/> table) are ignored.</li>
2e57b537 2179 <li>For other internal interfaces, the default MAC is randomly
3fd8d445 2180 generated.</li>
89365653 2181 <li>External interfaces typically have a MAC address associated with
3fd8d445 2182 their hardware.</li>
89365653
BP
2183 </ul>
2184 <p>Some interfaces may not have a software-controllable MAC
1c300ffa 2185 address. This option only affects internal ports. For other type ports,
5a0e4aec 2186 you can change the MAC address outside Open vSwitch, using ip command.</p>
89365653
BP
2187 </column>
2188
bbe6109d
TG
2189 <column name="error">
2190 If the configuration of the port failed, as indicated by -1 in <ref
2191 column="ofport"/>, Open vSwitch sets this column to an error
2192 description in human readable form. Otherwise, Open vSwitch clears
2193 this column.
2194 </column>
2195
484c8355 2196 <group title="OpenFlow Port Number">
039a8ccd
BP
2197 <p>
2198 When a client adds a new interface, Open vSwitch chooses an OpenFlow
2199 port number for the new port. If the client that adds the port fills
2200 in <ref column="ofport_request"/>, then Open vSwitch tries to use its
2201 value as the OpenFlow port number. Otherwise, or if the requested
2202 port number is already in use or cannot be used for another reason,
2203 Open vSwitch automatically assigns a free port number. Regardless of
2204 how the port number was obtained, Open vSwitch then reports in <ref
2205 column="ofport"/> the port number actually assigned.
2206 </p>
2207
2208 <p>
2209 Open vSwitch limits the port numbers that it automatically assigns to
2210 the range 1 through 32,767, inclusive. Controllers therefore have
2211 free use of ports 32,768 and up.
2212 </p>
2213
2214 <column name="ofport">
2215 <p>
2216 OpenFlow port number for this interface. Open vSwitch sets this
2217 column's value, so other clients should treat it as read-only.
2218 </p>
2219 <p>
2220 The OpenFlow ``local'' port (<code>OFPP_LOCAL</code>) is 65,534.
2221 The other valid port numbers are in the range 1 to 65,279,
2222 inclusive. Value -1 indicates an error adding the interface.
2223 </p>
2224 </column>
2225
2226 <column name="ofport_request"
2227 type='{"type": "integer", "minInteger": 1, "maxInteger": 65279}'>
2228 <p>
2229 Requested OpenFlow port number for this interface.
2230 </p>
2231
2232 <p>
2233 A client should ideally set this column's value in the same
2234 database transaction that it uses to create the interface. Open
2235 vSwitch version 2.1 and later will honor a later request for a
2236 specific port number, althuogh it might confuse some controllers:
2237 OpenFlow does not have a way to announce a port number change, so
2238 Open vSwitch represents it over OpenFlow as a port deletion
2239 followed immediately by a port addition.
2240 </p>
2241
2242 <p>
2243 If <ref column="ofport_request"/> is set or changed to some other
2244 port's automatically assigned port number, Open vSwitch chooses a
2245 new port number for the latter port.
2246 </p>
2247 </column>
484c8355 2248 </group>
89365653
BP
2249 </group>
2250
2251 <group title="System-Specific Details">
2252 <column name="type">
3fd8d445 2253 <p>
842733c3
MG
2254 The interface type. The types supported by a particular instance of
2255 Open vSwitch are listed in the <ref table="Open_vSwitch"
2256 column="iface_types"/> column in the <ref table="Open_vSwitch"/>
2257 table. The following types are defined:
3fd8d445
BP
2258 </p>
2259
89365653
BP
2260 <dl>
2261 <dt><code>system</code></dt>
2262 <dd>An ordinary network device, e.g. <code>eth0</code> on Linux.
3fd8d445
BP
2263 Sometimes referred to as ``external interfaces'' since they are
2264 generally connected to hardware external to that on which the Open
2265 vSwitch is running. The empty string is a synonym for
2266 <code>system</code>.</dd>
2267
89365653 2268 <dt><code>internal</code></dt>
2e57b537 2269 <dd>A simulated network device that sends and receives traffic. An
3fd8d445
BP
2270 internal interface whose <ref column="name"/> is the same as its
2271 bridge's <ref table="Open_vSwitch" column="name"/> is called the
2272 ``local interface.'' It does not make sense to bond an internal
2273 interface, so the terms ``port'' and ``interface'' are often used
2274 imprecisely for internal interfaces.</dd>
2275
89365653 2276 <dt><code>tap</code></dt>
22dcb534
FL
2277 <dd>
2278 <p>
2279 A TUN/TAP device managed by Open vSwitch.
2280 </p>
2281 <p>
2282 Open vSwitch checks the interface state before send packets
2283 to the device. When it is <code>down</code>, the packets are
2284 dropped and the tx_dropped statistic is updated accordingly.
2285 Older versions of Open vSwitch did not check the interface state
2286 and then the tx_packets was incremented along with tx_dropped.
2287 </p>
2288 </dd>
3fd8d445 2289
c1fc1411
JG
2290 <dt><code>geneve</code></dt>
2291 <dd>
59a0ef1d 2292 An Ethernet over Geneve (<code>http://tools.ietf.org/html/draft-ietf-nvo3-geneve</code>)
80c4589a 2293 IPv4/IPv6 tunnel.
c1fc1411 2294
9558d2a5
JG
2295 A description of how to match and set Geneve options can be found
2296 in the <code>ovs-ofctl</code> manual page.
c1fc1411
JG
2297 </dd>
2298
89365653 2299 <dt><code>gre</code></dt>
3fd8d445 2300 <dd>
63171f04
JS
2301 Generic Routing Encapsulation (GRE) over IPv4/IPv6 tunnel,
2302 configurable to encapsulate layer 2 or layer 3 traffic.
e16a28b5 2303 </dd>
3fd8d445 2304
79f827fa
KM
2305 <dt><code>vxlan</code></dt>
2306 <dd>
039a8ccd
BP
2307 <p>
2308 An Ethernet tunnel over the UDP-based VXLAN protocol described in
2309 RFC 7348.
2310 </p>
2311 <p>
59a0ef1d
JG
2312 Open vSwitch uses IANA-assigned UDP destination port 4789. The
2313 source port used for VXLAN traffic varies on a per-flow basis
2314 and is in the ephemeral port range.
039a8ccd 2315 </p>
79f827fa
KM
2316 </dd>
2317
a6ae068b
LJ
2318 <dt><code>lisp</code></dt>
2319 <dd>
a6363cfd
LJ
2320 <p>
2321 A layer 3 tunnel over the experimental, UDP-based Locator/ID
2322 Separation Protocol (RFC 6830).
2323 </p>
2324 <p>
2325 Only IPv4 and IPv6 packets are supported by the protocol, and
2326 they are sent and received without an Ethernet header. Traffic
2327 to/from LISP ports is expected to be configured explicitly, and
2328 the ports are not intended to participate in learning based
2329 switching. As such, they are always excluded from packet
2330 flooding.
2331 </p>
a6ae068b
LJ
2332 </dd>
2333
4237026e
PS
2334 <dt><code>stt</code></dt>
2335 <dd>
039a8ccd
BP
2336 The Stateless TCP Tunnel (STT) is particularly useful when tunnel
2337 endpoints are in end-systems, as it utilizes the capabilities of
2338 standard network interface cards to improve performance. STT utilizes
2339 a TCP-like header inside the IP header. It is stateless, i.e., there is
2340 no TCP connection state of any kind associated with the tunnel. The
2341 TCP-like header is used to leverage the capabilities of existing
2342 network interface cards, but should not be interpreted as implying
2343 any sort of connection state between endpoints.
2344 Since the STT protocol does not engage in the usual TCP 3-way handshake,
2345 so it will have difficulty traversing stateful firewalls.
2346 The protocol is documented at
59a0ef1d 2347 https://tools.ietf.org/html/draft-davie-stt
039a8ccd 2348
59a0ef1d 2349 All traffic uses a default destination port of 7471.
4237026e
PS
2350 </dd>
2351
8aed4223 2352 <dt><code>patch</code></dt>
eca2df31 2353 <dd>
3fd8d445 2354 A pair of virtual devices that act as a patch cable.
eca2df31 2355 </dd>
89365653
BP
2356 </dl>
2357 </column>
3fd8d445
BP
2358 </group>
2359
2360 <group title="Tunnel Options">
2361 <p>
2362 These options apply to interfaces with <ref column="type"/> of
2b02d770
PS
2363 <code>geneve</code>, <code>gre</code>, <code>vxlan</code>,
2364 <code>lisp</code> and <code>stt</code>.
3fd8d445
BP
2365 </p>
2366
2367 <p>
2368 Each tunnel must be uniquely identified by the combination of <ref
2369 column="type"/>, <ref column="options" key="remote_ip"/>, <ref
2370 column="options" key="local_ip"/>, and <ref column="options"
2371 key="in_key"/>. If two ports are defined that are the same except one
2372 has an optional identifier and the other does not, the more specific
2373 one is matched first. <ref column="options" key="in_key"/> is
2374 considered more specific than <ref column="options" key="local_ip"/> if
2375 a port defines one and another port defines the other.
2376 </p>
2377
2378 <column name="options" key="remote_ip">
0ad90c84
JR
2379 <p>Required. The remote tunnel endpoint, one of:</p>
2380
2381 <ul>
2382 <li>
80c4589a 2383 An IPv4 or IPv6 address (not a DNS name), e.g. <code>192.168.0.123</code>.
0ad90c84
JR
2384 Only unicast endpoints are supported.
2385 </li>
2386 <li>
2387 The word <code>flow</code>. The tunnel accepts packets from any
2388 remote tunnel endpoint. To process only packets from a specific
2389 remote tunnel endpoint, the flow entries may match on the
80c4589a
PS
2390 <code>tun_src</code> or <code>tun_ipv6_src</code>field. When
2391 sending packets to a <code>remote_ip=flow</code> tunnel, the flow
2392 actions must explicitly set the <code>tun_dst</code> or
2393 <code>tun_ipv6_dst</code> field to the IP address of the desired
2394 remote tunnel endpoint, e.g. with a <code>set_field</code> action.
0ad90c84
JR
2395 </li>
2396 </ul>
2397
2398 <p>
039a8ccd
BP
2399 The remote tunnel endpoint for any packet received from a tunnel
2400 is available in the <code>tun_src</code> field for matching in the
2401 flow table.
0ad90c84 2402 </p>
3fd8d445
BP
2403 </column>
2404
2405 <column name="options" key="local_ip">
0ad90c84
JR
2406 <p>
2407 Optional. The tunnel destination IP that received packets must
2408 match. Default is to match all addresses. If specified, may be one
2409 of:
2410 </p>
2411
2412 <ul>
2413 <li>
80c4589a 2414 An IPv4/IPv6 address (not a DNS name), e.g. <code>192.168.12.3</code>.
0ad90c84
JR
2415 </li>
2416 <li>
2417 The word <code>flow</code>. The tunnel accepts packets sent to any
2418 of the local IP addresses of the system running OVS. To process
2419 only packets sent to a specific IP address, the flow entries may
80c4589a
PS
2420 match on the <code>tun_dst</code> or <code>tun_ipv6_dst</code> field.
2421 When sending packets to a <code>local_ip=flow</code> tunnel, the flow
2422 actions may explicitly set the <code>tun_src</code> or <code>tun_ipv6_src</code>
2423 field to the desired IP address, e.g. with a <code>set_field</code> action.
2424 However, while routing the tunneled packet out, the local system may
2425 override the specified address with the local IP address configured for the
0ad90c84
JR
2426 outgoing system interface.
2427
2428 <p>
2429 This option is valid only for tunnels also configured with the
2430 <code>remote_ip=flow</code> option.
2431 </p>
2432 </li>
2433 </ul>
2434
2435 <p>
2436 The tunnel destination IP address for any packet received from a
80c4589a
PS
2437 tunnel is available in the <code>tun_dst</code> or <code>tun_ipv6_dst</code>
2438 field for matching in the flow table.
0ad90c84 2439 </p>
3fd8d445
BP
2440 </column>
2441
2442 <column name="options" key="in_key">
2443 <p>Optional. The key that received packets must contain, one of:</p>
2444
2445 <ul>
2446 <li>
2447 <code>0</code>. The tunnel receives packets with no key or with a
2448 key of 0. This is equivalent to specifying no <ref column="options"
2449 key="in_key"/> at all.
2450 </li>
2451 <li>
271e6bc7 2452 A positive 24-bit (for Geneve, VXLAN, and LISP), 32-bit (for GRE)
99e7b077 2453 or 64-bit (for STT) number. The tunnel receives only
4237026e 2454 packets with the specified key.
3fd8d445
BP
2455 </li>
2456 <li>
2457 The word <code>flow</code>. The tunnel accepts packets with any
2458 key. The key will be placed in the <code>tun_id</code> field for
2459 matching in the flow table. The <code>ovs-ofctl</code> manual page
2460 contains additional information about matching fields in OpenFlow
2461 flows.
2462 </li>
2463 </ul>
2464
2465 <p>
2466 </p>
2467 </column>
2468
2469 <column name="options" key="out_key">
2470 <p>Optional. The key to be set on outgoing packets, one of:</p>
2471
2472 <ul>
2473 <li>
2474 <code>0</code>. Packets sent through the tunnel will have no key.
2475 This is equivalent to specifying no <ref column="options"
2476 key="out_key"/> at all.
2477 </li>
2478 <li>
271e6bc7 2479 A positive 24-bit (for Geneve, VXLAN and LISP), 32-bit (for GRE) or
99e7b077 2480 64-bit (for STT) number. Packets sent through the tunnel
4237026e 2481 will have the specified key.
3fd8d445
BP
2482 </li>
2483 <li>
2484 The word <code>flow</code>. Packets sent through the tunnel will
2485 have the key set using the <code>set_tunnel</code> Nicira OpenFlow
2486 vendor extension (0 is used in the absence of an action). The
2487 <code>ovs-ofctl</code> manual page contains additional information
2488 about the Nicira OpenFlow vendor extensions.
2489 </li>
2490 </ul>
2491 </column>
2492
fb9fdd72 2493 <column name="options" key="dst_port">
3220b8a8 2494 Optional. The tunnel transport layer destination port, for UDP and TCP
fb9fdd72 2495 based tunnel protocols (Geneve, VXLAN, LISP, and STT).
2496 </column>
2497
3fd8d445
BP
2498 <column name="options" key="key">
2499 Optional. Shorthand to set <code>in_key</code> and
2500 <code>out_key</code> at the same time.
2501 </column>
2502
2503 <column name="options" key="tos">
2504 Optional. The value of the ToS bits to be set on the encapsulating
749ae950
PS
2505 packet. ToS is interpreted as DSCP and ECN bits, ECN part must be
2506 zero. It may also be the word <code>inherit</code>, in which case
3fd8d445
BP
2507 the ToS will be copied from the inner packet if it is IPv4 or IPv6
2508 (otherwise it will be 0). The ECN fields are always inherited.
2509 Default is 0.
2510 </column>
2511
2512 <column name="options" key="ttl">
2513 Optional. The TTL to be set on the encapsulating packet. It may also
2514 be the word <code>inherit</code>, in which case the TTL will be copied
2515 from the inner packet if it is IPv4 or IPv6 (otherwise it will be the
2516 system default, typically 64). Default is the system default TTL.
2517 </column>
9cc6bf75 2518
f9e5e5b3
BP
2519 <column name="options" key="df_default"
2520 type='{"type": "boolean"}'>
9b9f4d60
EJ
2521 Optional. If enabled, the Don't Fragment bit will be set on tunnel
2522 outer headers to allow path MTU discovery. Default is enabled; set
2523 to <code>false</code> to disable.
3fd8d445
BP
2524 </column>
2525
bf4bbd0d
PS
2526 <column name="options" key="egress_pkt_mark">
2527 Optional. The pkt_mark to be set on the encapsulating packet. This
2528 option sets packet mark for the tunnel endpoint for all tunnel packets
2529 including tunnel monitoring.
2530 </column>
2531
875ab130
BP
2532 <group title="Tunnel Options: lisp only">
2533 <column name="options" key="packet_type"
2534 type='{"type": "string", "enum": ["set",
2535 ["legacy_l3", "ptap"]]}'>
2536 <p>
2537 A LISP tunnel sends and receives only IPv4 and IPv6 packets. This
2538 option controls what how the tunnel represents the packets that it
2539 sends and receives:
2540 </p>
2541
2542 <ul>
2543 <li>
2544 By default, or if this option is <code>legacy_l3</code>, the
2545 tunnel represents packets as Ethernet frames for compatibility
2546 with legacy OpenFlow controllers that expect this behavior.
2547 </li>
2548 <li>
2549 If this option is <code>ptap</code>, the tunnel represents
2550 packets using the <code>packet_type</code> mechanism introduced
2551 in OpenFlow 1.5.
2552 </li>
2553 </ul>
2554 </column>
2555 </group>
2556
526df7d8
TG
2557 <group title="Tunnel Options: vxlan only">
2558
039a8ccd
BP
2559 <column name="options" key="exts">
2560 <p>Optional. Comma separated list of optional VXLAN extensions to
2561 enable. The following extensions are supported:</p>
526df7d8 2562
039a8ccd
BP
2563 <ul>
2564 <li>
2565 <code>gbp</code>: VXLAN-GBP allows to transport the group policy
2566 context of a packet across the VXLAN tunnel to other network
96fee5e0
BP
2567 peers. See the description of <code>tun_gbp_id</code> and
2568 <code>tun_gbp_flags</code> in <code>ovs-fields</code>(7) for
2569 additional information.
039a8ccd
BP
2570 (<code>https://tools.ietf.org/html/draft-smith-vxlan-group-policy</code>)
2571 </li>
439f39cb
GS
2572 <li>
2573 <code>gpe</code>: Support for Generic Protocol Encapsulation in
2574 accordance with IETF draft
2575 <code>https://tools.ietf.org/html/draft-ietf-nvo3-vxlan-gpe</code>.
875ab130
BP
2576 Without this option, a VXLAN packet always encapsulates an
2577 Ethernet frame. With this option, an VXLAN packet may also
2578 encapsulate an IPv4, IPv6, NSH, or MPLS packet.
439f39cb 2579 </li>
039a8ccd
BP
2580 </ul>
2581 </column>
526df7d8 2582
875ab130
BP
2583 <column name="options" key="packet_type"
2584 type='{"type": "string", "enum": ["set",
2585 ["legacy_l2", "legacy_l3", "ptap"]]}'>
439f39cb 2586 <p>
875ab130
BP
2587 This option controls what types of packets the tunnel sends and
2588 receives and how it represents them:
439f39cb
GS
2589 </p>
2590
875ab130
BP
2591 <ul>
2592 <li>
2593 By default, or if this option is <code>legacy_l2</code>, the
2594 tunnel sends and receives only Ethernet frames.
2595 </li>
2596 <li>
2597 If this option is <code>legacy_l3</code>, the tunnel sends and
2598 receives only non-Ethernet (L3) packet, but the packets are
2599 represented as Ethernet frames for compatibility with legacy
2600 OpenFlow controllers that expect this behavior. This requires
2601 enabling <code>gpe</code> in <ref column="options" key="exts"/>.
2602 </li>
2603 <li>
2604 If this option is <code>ptap</code>, Open vSwitch represents
2605 packets in the tunnel using the <code>packet_type</code>
2606 mechanism introduced in OpenFlow 1.5. This mechanism supports
2607 any kind of packet, but actually sending and receiving
2608 non-Ethernet packets requires additionally enabling
2609 <code>gpe</code> in <ref column="options" key="exts"/>.
2610 </li>
2611 </ul>
439f39cb 2612 </column>
039a8ccd 2613 </group>
526df7d8 2614
63171f04
JS
2615 <group title="Tunnel Options: gre only">
2616 <p>
2617 <code>gre</code> interfaces support these options.
2618 </p>
2619
875ab130
BP
2620 <column name="options" key="packet_type"
2621 type='{"type": "string", "enum": ["set",
2622 ["legacy_l2", "legacy_l3", "ptap"]]}'>
63171f04 2623 <p>
875ab130
BP
2624 This option controls what types of packets the tunnel sends and
2625 receives and how it represents them:
63171f04
JS
2626 </p>
2627
875ab130
BP
2628 <ul>
2629 <li>
2630 By default, or if this option is <code>legacy_l2</code>, the
2631 tunnel sends and receives only Ethernet frames.
2632 </li>
2633 <li>
2634 If this option is <code>legacy_l3</code>, the tunnel sends and
2635 receives only non-Ethernet (L3) packet, but the packets are
2636 represented as Ethernet frames for compatibility with legacy
2637 OpenFlow controllers that expect this behavior.
2638 </li>
2639 <li>
2640 If this option is <code>ptap</code>, the tunnel sends and
2641 receives any kind of packet. Open vSwitch represents packets in
2642 the tunnel using the <code>packet_type</code> mechanism
2643 introduced in OpenFlow 1.5.
2644 </li>
2645 </ul>
63171f04 2646 </column>
0ffff497
WT
2647 <column name="options" key="seq" type='{"type": "boolean"}'>
2648 <p>
2649 Optional. A 4-byte sequence number field for GRE tunnel only.
2650 Default is disabled, set to <code>true</code> to enable.
2651 Sequence number is incremented by one on each outgoing packet.
2652 </p>
2653 </column>
63171f04
JS
2654 </group>
2655
2b02d770 2656 <group title="Tunnel Options: gre, geneve, and vxlan">
3fd8d445 2657 <p>
2b02d770 2658 <code>gre</code>, <code>geneve</code>, and
4752cc0c 2659 <code>vxlan</code> interfaces support these options.
3fd8d445
BP
2660 </p>
2661
f9e5e5b3 2662 <column name="options" key="csum" type='{"type": "boolean"}'>
3fd8d445 2663 <p>
4752cc0c
JG
2664 Optional. Compute encapsulation header (either GRE or UDP)
2665 checksums on outgoing packets. Default is disabled, set to
2666 <code>true</code> to enable. Checksums present on incoming
2667 packets will be validated regardless of this setting.
039a8ccd 2668 </p>
3fd8d445 2669
4752cc0c
JG
2670 <p>
2671 When using the upstream Linux kernel module, computation of
2672 checksums for <code>geneve</code> and <code>vxlan</code> requires
2673 Linux kernel version 4.0 or higher. <code>gre</code> supports
2674 checksums for all versions of Open vSwitch that support GRE.
2675 The out of tree kernel module distributed as part of OVS
2676 can compute all tunnel checksums on any kernel version that it
2677 is compatible with.
3fd8d445
BP
2678 </p>
2679
3fd8d445
BP
2680 </column>
2681 </group>
2682 </group>
2683
7dc18ae9
WT
2684 <group title="Tunnel Options: erspan only">
2685 <p>
2686 Only <code>erspan</code> interfaces support these options.
2687 </p>
2688 <column name="options" key="erspan_idx">
2689 <p>
2690 20 bit index/port number associated with the ERSPAN traffic's
2691 source port and direction (ingress/egress). This field is
2692 platform dependent.
2693 </p>
2694 </column>
2695
2696 <column name="options" key="erspan_ver">
2697 <p>
2698 ERSPAN version: 1 for version 1 (type II)
2699 or 2 for version 2 (type III).
2700 </p>
2701 </column>
2702
2703 <column name="options" key="erspan_dir">
2704 <p>
2705 Specifies the ERSPAN v2 mirrored traffic's direction.
2706 1 for egress traffic, and 0 for ingress traffic.
2707 </p>
2708 </column>
2709
2710 <column name="options" key="erspan_hwid">
2711 <p>
2712 ERSPAN hardware ID is a 6-bit unique identifier of an
2713 ERSPAN v2 engine within a system.
2714 </p>
2715 </column>
2716 </group>
2717
3fd8d445
BP
2718 <group title="Patch Options">
2719 <p>
52f7b2cf
BP
2720 These options apply only to <dfn>patch ports</dfn>, that is, interfaces
2721 whose <ref column="type"/> column is <code>patch</code>. Patch ports
2722 are mainly a way to connect otherwise independent bridges to one
2723 another, similar to how one might plug an Ethernet cable (a ``patch
2724 cable'') into two physical switches to connect those switches. The
2725 effect of plugging a patch port into two switches is conceptually
2726 similar to that of plugging the two ends of a Linux <code>veth</code>
2727 device into those switches, but the implementation of patch ports makes
2728 them much more efficient.
3fd8d445 2729 </p>
89365653 2730
52f7b2cf
BP
2731 <p>
2732 Patch ports may connect two different bridges (the usual case) or the
2733 same bridge. In the latter case, take special care to avoid loops,
2734 e.g. by programming appropriate flows with OpenFlow. Patch ports do
2735 not work if its ends are attached to bridges on different datapaths,
2736 e.g. to connect bridges in <code>system</code> and <code>netdev</code>
2737 datapaths.
2738 </p>
2739
2740 <p>
2741 The following command creates and connects patch ports <code>p0</code>
2742 and <code>p1</code> and adds them to bridges <code>br0</code> and
2743 <code>br1</code>, respectively:
2744 </p>
2745
2746 <pre>
2747ovs-vsctl add-port br0 p0 -- set Interface p0 type=patch options:peer=p1 \
2748 -- add-port br1 p1 -- set Interface p1 type=patch options:peer=p0
2749 </pre>
2750
3fd8d445
BP
2751 <column name="options" key="peer">
2752 The <ref column="name"/> of the <ref table="Interface"/> for the other
2753 side of the patch. The named <ref table="Interface"/>'s own
2754 <code>peer</code> option must specify this <ref table="Interface"/>'s
2755 name. That is, the two patch interfaces must have reversed <ref
2756 column="name"/> and <code>peer</code> values.
89365653 2757 </column>
e210037e
AE
2758 </group>
2759
a14b8947
IM
2760 <group title="PMD (Poll Mode Driver) Options">
2761 <p>
2762 Only PMD netdevs support these options.
2763 </p>
2764
81acebda 2765 <column name="options" key="n_rxq"
a14b8947
IM
2766 type='{"type": "integer", "minInteger": 1}'>
2767 <p>
2768 Specifies the maximum number of rx queues to be created for PMD
2769 netdev. If not specified or specified to 0, one rx queue will
2770 be created by default.
81acebda 2771 Not supported by DPDK vHost interfaces.
a14b8947
IM
2772 </p>
2773 </column>
3eb67853 2774
55e075e6
CL
2775 <column name="options" key="dpdk-devargs"
2776 type='{"type": "string"}'>
2777 <p>
69876ed7
CL
2778 Specifies the PCI address associated with the port for physical
2779 devices, or the virtual driver to be used for the port when a virtual
2780 PMD is intended to be used. For the latter, the argument string
b132189d
CL
2781 typically takes the form of
2782 <code>eth_<var>driver_name</var><var>x</var></code>, where
2783 <var>driver_name</var> is a valid virtual DPDK PMD driver name and
2784 <var>x</var> is a unique identifier of your choice for the given
2785 port. Only supported by the dpdk port type.
55e075e6
CL
2786 </p>
2787 </column>
2788
3eb67853
IM
2789 <column name="other_config" key="pmd-rxq-affinity">
2790 <p>Specifies mapping of RX queues of this interface to CPU cores.</p>
2791 <p>Value should be set in the following form:</p>
2792 <p>
2793 <code>other_config:pmd-rxq-affinity=&lt;rxq-affinity-list&gt;</code>
2794 </p>
2795 <p>where</p>
2796 <p>
2797 <ul>
2798 <li>
2799 &lt;rxq-affinity-list&gt; ::= NULL | &lt;non-empty-list&gt;
2800 </li>
2801 <li>
2802 &lt;non-empty-list&gt; ::= &lt;affinity-pair&gt; |
2803 &lt;affinity-pair&gt; , &lt;non-empty-list&gt;
2804 </li>
2805 <li>
2806 &lt;affinity-pair&gt; ::= &lt;queue-id&gt; : &lt;core-id&gt;
2807 </li>
2808 </ul>
2809 </p>
2810 </column>
c1ff66ac
CL
2811
2812 <column name="options" key="vhost-server-path"
2813 type='{"type": "string"}'>
2814 <p>
2d24d165
CL
2815 The value specifies the path to the socket associated with a vHost
2816 User client mode device that has been or will be created by QEMU.
2817 Only supported by dpdkvhostuserclient interfaces.
c1ff66ac
CL
2818 </p>
2819 </column>
b685696b 2820
10087cba
CL
2821 <column name="options" key="dq-zero-copy"
2822 type='{"type": "boolean"}'>
2823 <p>
2824 The value specifies whether or not to enable dequeue zero copy on
2825 the given interface.
2826 Must be set before vhost-server-path is specified.
2827 Only supported by dpdkvhostuserclient interfaces.
2828 The feature is considered experimental.
2829 </p>
2830 </column>
2831
b685696b
CL
2832 <column name="options" key="n_rxq_desc"
2833 type='{"type": "integer", "minInteger": 1, "maxInteger": 4096}'>
2834 <p>
2835 Specifies the rx queue size (number rx descriptors) for dpdk ports.
2836 The value must be a power of 2, less than 4096 and supported
2837 by the hardware of the device being configured.
2838 If not specified or an incorrect value is specified, 2048 rx
2839 descriptors will be used by default.
2840 </p>
2841 </column>
2842
2843 <column name="options" key="n_txq_desc"
2844 type='{"type": "integer", "minInteger": 1, "maxInteger": 4096}'>
2845 <p>
2846 Specifies the tx queue size (number tx descriptors) for dpdk ports.
2847 The value must be a power of 2, less than 4096 and supported
2848 by the hardware of the device being configured.
2849 If not specified or an incorrect value is specified, 2048 tx
2850 descriptors will be used by default.
2851 </p>
2852 </column>
a14b8947
IM
2853 </group>
2854
56abcf49
DDP
2855 <group title="MTU">
2856 <p>
2857 The MTU (maximum transmission unit) is the largest amount of data
2858 that can fit into a single Ethernet frame. The standard Ethernet
2859 MTU is 1500 bytes. Some physical media and many kinds of virtual
2860 interfaces can be configured with higher MTUs.
2861 </p>
2862
2863 <p>
3a414a0a
DDP
2864 A client may change an interface MTU by filling in
2865 <ref column="mtu_request"/>. Open vSwitch then reports in
2866 <ref column="mtu"/> the currently configured value.
56abcf49
DDP
2867 </p>
2868
2869 <column name="mtu">
3a414a0a
DDP
2870 <p>
2871 The currently configured MTU for the interface.
2872 </p>
2873
56abcf49
DDP
2874 <p>
2875 This column will be empty for an interface that does not
2876 have an MTU as, for example, some kinds of tunnels do not.
2877 </p>
2878
2879 <p>
2880 Open vSwitch sets this column's value, so other clients should treat
2881 it as read-only.
2882 </p>
2883 </column>
2884
2885 <column name="mtu_request"
2886 type='{"type": "integer", "minInteger": 1}'>
2887 <p>
2888 Requested MTU (Maximum Transmission Unit) for the interface. A client
3a414a0a
DDP
2889 can fill this column to change the MTU of an interface.
2890 </p>
2891
06ca9597 2892 <p>
2893 RFC 791 requires every internet module to be able to forward a
2894 datagram of 68 octets without further fragmentation. The maximum
2895 size of an IP packet is 65535 bytes.
2896 </p>
2897
3a414a0a
DDP
2898 <p>
2899 If this is not set and if the interface has <code>internal</code>
2900 type, Open vSwitch will change the MTU to match the minimum of the
2901 other interfaces in the bridge.
56abcf49
DDP
2902 </p>
2903 </column>
2904
2905 </group>
2906
e210037e
AE
2907 <group title="Interface Status">
2908 <p>
2909 Status information about interfaces attached to bridges, updated every
2910 5 seconds. Not all interfaces have all of these properties; virtual
2911 interfaces don't have a link speed, for example. Non-applicable
2912 columns will have empty values.
2913 </p>
2914 <column name="admin_state">
2915 <p>
2916 The administrative state of the physical network link.
2917 </p>
2918 </column>
2919
2920 <column name="link_state">
2921 <p>
0b8024eb
BP
2922 The observed state of the physical network link. This is ordinarily
2923 the link's carrier status. If the interface's <ref table="Port"/> is
2924 a bond configured for miimon monitoring, it is instead the network
2925 link's miimon status.
e210037e
AE
2926 </p>
2927 </column>
2928
65c3058c
EJ
2929 <column name="link_resets">
2930 <p>
2931 The number of times Open vSwitch has observed the
2932 <ref column="link_state"/> of this <ref table="Interface"/> change.
2933 </p>
2934 </column>
2935
e210037e
AE
2936 <column name="link_speed">
2937 <p>
2938 The negotiated speed of the physical network link.
2939 Valid values are positive integers greater than 0.
2940 </p>
2941 </column>
2942
2943 <column name="duplex">
2944 <p>
2945 The duplex mode of the physical network link.
2946 </p>
2947 </column>
2948
3fd8d445
BP
2949 <column name="lacp_current">
2950 Boolean value indicating LACP status for this interface. If true, this
2951 interface has current LACP information about its LACP partner. This
2952 information may be used to monitor the health of interfaces in a LACP
2953 enabled port. This column will be empty if LACP is not enabled.
2954 </column>
2955
573c1db9 2956 <column name="status">
3fd8d445
BP
2957 Key-value pairs that report port status. Supported status values are
2958 <ref column="type"/>-dependent; some interfaces may not have a valid
2959 <ref column="status" key="driver_name"/>, for example.
2960 </column>
2961
2962 <column name="status" key="driver_name">
2963 The name of the device driver controlling the network adapter.
2964 </column>
2965
2966 <column name="status" key="driver_version">
2967 The version string of the device driver controlling the network
2968 adapter.
2969 </column>
2970
2971 <column name="status" key="firmware_version">
2972 The version string of the network adapter's firmware, if available.
2973 </column>
2974
2975 <column name="status" key="source_ip">
80c4589a 2976 The source IP address used for an IPv4/IPv6 tunnel end-point, such as
09538fdc 2977 <code>gre</code>.
573c1db9 2978 </column>
3fd8d445
BP
2979
2980 <column name="status" key="tunnel_egress_iface">
271e6bc7
JG
2981 Egress interface for tunnels. Currently only relevant for tunnels
2982 on Linux systems, this column will show the name of the interface
09538fdc
PS
2983 which is responsible for routing traffic destined for the configured
2984 <ref column="options" key="remote_ip"/>. This could be an internal
2985 interface such as a bridge port.
3fd8d445
BP
2986 </column>
2987
f9e5e5b3
BP
2988 <column name="status" key="tunnel_egress_iface_carrier"
2989 type='{"type": "string", "enum": ["set", ["down", "up"]]}'>
2990 Whether carrier is detected on <ref column="status"
2991 key="tunnel_egress_iface"/>.
3fd8d445 2992 </column>
3eb8d4fa
MW
2993
2994 <group title="dpdk">
2995 <p>
2996 DPDK specific interface status options.
2997 </p>
2998
2999 <column name="status" key="port_no">
3000 DPDK port ID.
3001 </column>
3002
3003 <column name="status" key="numa_id">
3004 NUMA socket ID to which an Ethernet device is connected.
3005 </column>
3006
3007 <column name="status" key="min_rx_bufsize">
3008 Minimum size of RX buffer.
3009 </column>
3010
3011 <column name="status" key="max_rx_pktlen">
3012 Maximum configurable length of RX pkt.
3013 </column>
3014
3015 <column name="status" key="max_rx_queues">
3016 Maximum number of RX queues.
3017 </column>
3018
3019 <column name="status" key="max_tx_queues">
3020 Maximum number of TX queues.
3021 </column>
3022
3023 <column name="status" key="max_mac_addrs">
3024 Maximum number of MAC addresses.
3025 </column>
3026
3027 <column name="status" key="max_hash_mac_addrs">
3028 Maximum number of hash MAC addresses for MTA and UTA.
3029 </column>
3030
3031 <column name="status" key="max_vfs">
3032 Maximum number of hash MAC addresses for MTA and UTA.
3033 Maximum number of VFs.
3034 </column>
3035
3036 <column name="status" key="max_vmdq_pools">
3037 Maximum number of VMDq pools.
3038 </column>
3039
3040 <column name="status" key="if_type">
3041 Interface type ID according to IANA ifTYPE MIB definitions.
3042 </column>
3043
3044 <column name="status" key="if_descr">
3045 Interface description string.
3046 </column>
3047
3048 <column name="status" key="pci-vendor_id">
3049 Vendor ID of PCI device.
3050 </column>
3051
3052 <column name="status" key="pci-device_id">
3053 Device ID of PCI device.
3054 </column>
3055
3056 </group>
3fd8d445
BP
3057 </group>
3058
3059 <group title="Statistics">
3060 <p>
3061 Key-value pairs that report interface statistics. The current
12eb035b
AW
3062 implementation updates these counters periodically. The update period
3063 is controlled by <ref column="other_config"
3064 key="stats-update-interval"/> in the <code>Open_vSwitch</code> table.
3065 Future implementations may update them when an interface is created,
3066 when they are queried (e.g. using an OVSDB <code>select</code>
3067 operation), and just before an interface is deleted due to virtual
3068 interface hot-unplug or VM shutdown, and perhaps at other times, but
3069 not on any regular periodic basis.
3fd8d445
BP
3070 </p>
3071 <p>
3072 These are the same statistics reported by OpenFlow in its <code>struct
3073 ofp_port_stats</code> structure. If an interface does not support a
3074 given statistic, then that pair is omitted.
3075 </p>
3076 <group title="Statistics: Successful transmit and receive counters">
3077 <column name="statistics" key="rx_packets">
3078 Number of received packets.
3079 </column>
3080 <column name="statistics" key="rx_bytes">
3081 Number of received bytes.
3082 </column>
3083 <column name="statistics" key="tx_packets">
3084 Number of transmitted packets.
3085 </column>
3086 <column name="statistics" key="tx_bytes">
3087 Number of transmitted bytes.
3088 </column>
3089 </group>
3090 <group title="Statistics: Receive errors">
3091 <column name="statistics" key="rx_dropped">
3092 Number of packets dropped by RX.
3093 </column>
3094 <column name="statistics" key="rx_frame_err">
3095 Number of frame alignment errors.
3096 </column>
3097 <column name="statistics" key="rx_over_err">
3098 Number of packets with RX overrun.
3099 </column>
3100 <column name="statistics" key="rx_crc_err">
3101 Number of CRC errors.
3102 </column>
3103 <column name="statistics" key="rx_errors">
3104 Total number of receive errors, greater than or equal to the sum of
3105 the above.
3106 </column>
9cc6bf75 3107 </group>
3fd8d445
BP
3108 <group title="Statistics: Transmit errors">
3109 <column name="statistics" key="tx_dropped">
3110 Number of packets dropped by TX.
3111 </column>
3112 <column name="statistics" key="collisions">
3113 Number of collisions.
3114 </column>
3115 <column name="statistics" key="tx_errors">
3116 Total number of transmit errors, greater than or equal to the sum of
3117 the above.
3118 </column>
3119 </group>
89365653
BP
3120 </group>
3121
3122 <group title="Ingress Policing">
3f5d8c02
BP
3123 <p>
3124 These settings control ingress policing for packets received on this
3125 interface. On a physical interface, this limits the rate at which
3126 traffic is allowed into the system from the outside; on a virtual
3127 interface (one connected to a virtual machine), this limits the rate at
3128 which the VM is able to transmit.
3129 </p>
3130 <p>
3131 Policing is a simple form of quality-of-service that simply drops
3132 packets received in excess of the configured rate. Due to its
3133 simplicity, policing is usually less accurate and less effective than
3134 egress QoS (which is configured using the <ref table="QoS"/> and <ref
3135 table="Queue"/> tables).
3136 </p>
3137 <p>
9509913a
IS
3138 Policing is currently implemented on Linux and OVS with DPDK. Both
3139 implementations use a simple ``token bucket'' approach:
3f5d8c02
BP
3140 </p>
3141 <ul>
3142 <li>
3143 The size of the bucket corresponds to <ref
3144 column="ingress_policing_burst"/>. Initially the bucket is full.
3145 </li>
3146 <li>
3147 Whenever a packet is received, its size (converted to tokens) is
3148 compared to the number of tokens currently in the bucket. If the
3149 required number of tokens are available, they are removed and the
3150 packet is forwarded. Otherwise, the packet is dropped.
3151 </li>
3152 <li>
3153 Whenever it is not full, the bucket is refilled with tokens at the
3154 rate specified by <ref column="ingress_policing_rate"/>.
3155 </li>
3156 </ul>
3157 <p>
3158 Policing interacts badly with some network protocols, and especially
3159 with fragmented IP packets. Suppose that there is enough network
3160 activity to keep the bucket nearly empty all the time. Then this token
3161 bucket algorithm will forward a single packet every so often, with the
3162 period depending on packet size and on the configured rate. All of the
3163 fragments of an IP packets are normally transmitted back-to-back, as a
3164 group. In such a situation, therefore, only one of these fragments
3165 will be forwarded and the rest will be dropped. IP does not provide
3166 any way for the intended recipient to ask for only the remaining
3167 fragments. In such a case there are two likely possibilities for what
3168 will happen next: either all of the fragments will eventually be
3169 retransmitted (as TCP will do), in which case the same problem will
3170 recur, or the sender will not realize that its packet has been dropped
3171 and data will simply be lost (as some UDP-based protocols will do).
3172 Either way, it is possible that no forward progress will ever occur.
3173 </p>
3174 <column name="ingress_policing_rate">
3175 <p>
3176 Maximum rate for data received on this interface, in kbps. Data
3177 received faster than this rate is dropped. Set to <code>0</code>
3178 (the default) to disable policing.
3179 </p>
3180 </column>
3181
89365653
BP
3182 <column name="ingress_policing_burst">
3183 <p>Maximum burst size for data received on this interface, in kb. The
79abacc8 3184 default burst size if set to <code>0</code> is 8000 kbit. This value
3fd8d445
BP
3185 has no effect if <ref column="ingress_policing_rate"/>
3186 is <code>0</code>.</p>
3f5d8c02
BP
3187 <p>
3188 Specifying a larger burst size lets the algorithm be more forgiving,
3189 which is important for protocols like TCP that react severely to
3190 dropped packets. The burst size should be at least the size of the
3191 interface's MTU. Specifying a value that is numerically at least as
79abacc8 3192 large as 80% of <ref column="ingress_policing_rate"/> helps TCP come
3f5d8c02
BP
3193 closer to achieving the full rate.
3194 </p>
89365653
BP
3195 </column>
3196 </group>
3197
ccc09689 3198 <group title="Bidirectional Forwarding Detection (BFD)">
e58855ec 3199 <p>
039a8ccd
BP
3200 BFD, defined in RFC 5880 and RFC 5881, allows point-to-point
3201 detection of connectivity failures by occasional transmission of
3202 BFD control messages. Open vSwitch implements BFD to serve
3203 as a more popular and standards compliant alternative to CFM.
e58855ec 3204 </p>
ccc09689 3205
e58855ec 3206 <p>
039a8ccd
BP
3207 BFD operates by regularly transmitting BFD control messages at a rate
3208 negotiated independently in each direction. Each endpoint specifies
3209 the rate at which it expects to receive control messages, and the rate
4cefc3da
SG
3210 at which it is willing to transmit them. By default, Open vSwitch uses
3211 a detection multiplier of three, meaning that an endpoint signals a
3212 connectivity fault if three consecutive BFD control messages fail to
3213 arrive. In the case of a unidirectional connectivity issue, the system
3214 not receiving BFD control messages signals the problem to its peer in
3215 the messages it transmits.
e58855ec 3216 </p>
ccc09689 3217
e58855ec 3218 <p>
039a8ccd
BP
3219 The Open vSwitch implementation of BFD aims to comply faithfully
3220 with RFC 5880 requirements. Open vSwitch does not implement the
3221 optional Authentication or ``Echo Mode'' features.
e58855ec 3222 </p>
ccc09689 3223
e58855ec 3224 <group title="BFD Configuration">
039a8ccd
BP
3225 <p>
3226 A controller sets up key-value pairs in the <ref column="bfd"/>
3227 column to enable and configure BFD.
3228 </p>
e58855ec 3229
039a8ccd 3230 <column name="bfd" key="enable" type='{"type": "boolean"}'>
f7491dce
AW
3231 True to enable BFD on this <ref table="Interface"/>. If not
3232 specified, BFD will not be enabled by default.
039a8ccd 3233 </column>
e58855ec 3234
039a8ccd
BP
3235 <column name="bfd" key="min_rx"
3236 type='{"type": "integer", "minInteger": 1}'>
e58855ec
BP
3237 The shortest interval, in milliseconds, at which this BFD session
3238 offers to receive BFD control messages. The remote endpoint may
3239 choose to send messages at a slower rate. Defaults to
3240 <code>1000</code>.
039a8ccd 3241 </column>
e58855ec 3242
039a8ccd
BP
3243 <column name="bfd" key="min_tx"
3244 type='{"type": "integer", "minInteger": 1}'>
e58855ec
BP
3245 The shortest interval, in milliseconds, at which this BFD session is
3246 willing to transmit BFD control messages. Messages will actually be
3247 transmitted at a slower rate if the remote endpoint is not willing to
3248 receive as quickly as specified. Defaults to <code>100</code>.
039a8ccd
BP
3249 </column>
3250
3251 <column name="bfd" key="decay_min_rx" type='{"type": "integer"}'>
3252 An alternate receive interval, in milliseconds, that must be greater
3253 than or equal to <ref column="bfd" key="min_rx"/>. The
3254 implementation switches from <ref column="bfd" key="min_rx"/> to <ref
3255 column="bfd" key="decay_min_rx"/> when there is no obvious incoming
3256 data traffic at the interface, to reduce the CPU and bandwidth cost
3257 of monitoring an idle interface. This feature may be disabled by
3258 setting a value of 0. This feature is reset whenever <ref
3259 column="bfd" key="decay_min_rx"/> or <ref column="bfd" key="min_rx"/>
3260 changes.
3261 </column>
3262
3263 <column name="bfd" key="forwarding_if_rx" type='{"type": "boolean"}'>
34c88624
AW
3264 When <code>true</code>, traffic received on the
3265 <ref table="Interface"/> is used to indicate the capability of packet
3266 I/O. BFD control packets are still transmitted and received. At
3267 least one BFD control packet must be received every 100 * <ref
3268 column="bfd" key="min_rx"/> amount of time. Otherwise, even if
3269 traffic are received, the <ref column="bfd" key="forwarding"/>
3270 will be <code>false</code>.
039a8ccd 3271 </column>
e58855ec 3272
039a8ccd
BP
3273 <column name="bfd" key="cpath_down" type='{"type": "boolean"}'>
3274 Set to true to notify the remote endpoint that traffic should not be
3275 forwarded to this system for some reason other than a connectivty
3276 failure on the interface being monitored. The typical underlying
3277 reason is ``concatenated path down,'' that is, that connectivity
3278 beyond the local system is down. Defaults to false.
3279 </column>
e58855ec 3280
039a8ccd 3281 <column name="bfd" key="check_tnl_key" type='{"type": "boolean"}'>
e58855ec
BP
3282 Set to true to make BFD accept only control messages with a tunnel
3283 key of zero. By default, BFD accepts control messages with any
3284 tunnel key.
039a8ccd
BP
3285 </column>
3286
3287 <column name="bfd" key="bfd_local_src_mac">
3288 Set to an Ethernet address in the form
3289 <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>
3290 to set the MAC used as source for transmitted BFD packets. The
3291 default is the mac address of the BFD enabled interface.
3292 </column>
3293
3294 <column name="bfd" key="bfd_local_dst_mac">
3295 Set to an Ethernet address in the form
3296 <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>
3297 to set the MAC used as destination for transmitted BFD packets. The
3298 default is <code>00:23:20:00:00:01</code>.
3299 </column>
3300
3301 <column name="bfd" key="bfd_remote_dst_mac">
3302 Set to an Ethernet address in the form
3303 <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>
3304 to set the MAC used for checking the destination of received BFD packets.
3305 Packets with different destination MAC will not be considered as BFD packets.
3306 If not specified the destination MAC address of received BFD packets
3307 are not checked.
3308 </column>
3309
3310 <column name="bfd" key="bfd_src_ip">
dfe37e6a 3311 Set to an IPv4 address to set the IP address used as source for
1314739c 3312 transmitted BFD packets. The default is <code>169.254.1.1</code>.
039a8ccd 3313 </column>
dfe37e6a 3314
039a8ccd 3315 <column name="bfd" key="bfd_dst_ip">
dfe37e6a 3316 Set to an IPv4 address to set the IP address used as destination
1314739c 3317 for transmitted BFD packets. The default is <code>169.254.1.0</code>.
039a8ccd 3318 </column>
2eb79142
JG
3319
3320 <column name="bfd" key="oam">
3321 Some tunnel protocols (such as Geneve) include a bit in the header
3322 to indicate that the encapsulated packet is an OAM frame. By setting
3323 this to true, BFD packets will be marked as OAM if encapsulated in
3324 one of these tunnels.
3325 </column>
4cefc3da
SG
3326
3327 <column name="bfd" key="mult"
3328 type='{"type": "integer", "minInteger": 1, "maxInteger": 255}'>
3329 The BFD detection multiplier, which defaults to 3. An endpoint
3330 signals a connectivity fault if the given number of consecutive BFD
3331 control messages fail to arrive.
3332 </column>
e58855ec 3333 </group>
ccc09689 3334
e58855ec 3335 <group title="BFD Status">
039a8ccd
BP
3336 <p>
3337 The switch sets key-value pairs in the <ref column="bfd_status"/>
3338 column to report the status of BFD on this interface. When BFD is
3339 not enabled, with <ref column="bfd" key="enable"/>, the switch clears
3340 all key-value pairs from <ref column="bfd_status"/>.
3341 </p>
3342
3343 <column name="bfd_status" key="state"
3344 type='{"type": "string",
3345 "enum": ["set", ["admin_down", "down", "init", "up"]]}'>
3346 Reports the state of the BFD session. The BFD session is fully
3347 healthy and negotiated if <code>UP</code>.
3348 </column>
3349
3350 <column name="bfd_status" key="forwarding" type='{"type": "boolean"}'>
3351 Reports whether the BFD session believes this <ref
3352 table="Interface"/> may be used to forward traffic. Typically this
3353 means the local session is signaling <code>UP</code>, and the remote
3354 system isn't signaling a problem such as concatenated path down.
3355 </column>
3356
3357 <column name="bfd_status" key="diagnostic">
60a15922
AZ
3358 A diagnostic code specifying the local system's reason for the
3359 last change in session state. The error messages are defined in
3360 section 4.1 of [RFC 5880].
039a8ccd
BP
3361 </column>
3362
3363 <column name="bfd_status" key="remote_state"
3364 type='{"type": "string",
3365 "enum": ["set", ["admin_down", "down", "init", "up"]]}'>
3366 Reports the state of the remote endpoint's BFD session.
3367 </column>
3368
3369 <column name="bfd_status" key="remote_diagnostic">
60a15922
AZ
3370 A diagnostic code specifying the remote system's reason for the
3371 last change in session state. The error messages are defined in
3372 section 4.1 of [RFC 5880].
039a8ccd 3373 </column>
4905e2df
AW
3374
3375 <column name="bfd_status" key="flap_count"
039a8ccd 3376 type='{"type": "integer", "minInteger": 0}'>
4905e2df
AW
3377 Counts the number of <ref column="bfd_status" key="forwarding" />
3378 flaps since start. A flap is considered as a change of the
3379 <ref column="bfd_status" key="forwarding" /> value.
3380 </column>
e58855ec 3381 </group>
ccc09689
EJ
3382 </group>
3383
93b8df38
EJ
3384 <group title="Connectivity Fault Management">
3385 <p>
3386 802.1ag Connectivity Fault Management (CFM) allows a group of
3387 Maintenance Points (MPs) called a Maintenance Association (MA) to
3388 detect connectivity problems with each other. MPs within a MA should
3389 have complete and exclusive interconnectivity. This is verified by
3390 occasionally broadcasting Continuity Check Messages (CCMs) at a
3391 configurable transmission interval.
3392 </p>
3393
144216a3
EJ
3394 <p>
3395 According to the 802.1ag specification, each Maintenance Point should
3396 be configured out-of-band with a list of Remote Maintenance Points it
3397 should have connectivity to. Open vSwitch differs from the
3398 specification in this area. It simply assumes the link is faulted if
3399 no Remote Maintenance Points are reachable, and considers it not
3400 faulted otherwise.
3401 </p>
3402
b363bae4 3403 <p>
039a8ccd
BP
3404 When operating over tunnels which have no <code>in_key</code>, or an
3405 <code>in_key</code> of <code>flow</code>. CFM will only accept CCMs
3406 with a tunnel key of zero.
b363bae4
EJ
3407 </p>
3408
93b8df38 3409 <column name="cfm_mpid">
b1a6083a
AW
3410 <p>
3411 A Maintenance Point ID (MPID) uniquely identifies each endpoint
3412 within a Maintenance Association. The MPID is used to identify this
3413 endpoint to other Maintenance Points in the MA. Each end of a link
3414 being monitored should have a different MPID. Must be configured to
3415 enable CFM on this <ref table="Interface"/>.
3416 </p>
3417 <p>
3418 According to the 802.1ag specification, MPIDs can only range between
3419 [1, 8191]. However, extended mode (see <ref column="other_config"
3420 key="cfm_extended"/>) supports eight byte MPIDs.
3421 </p>
93b8df38 3422 </column>
b31bcf60 3423
76c4290d
AW
3424 <column name="cfm_flap_count">
3425 Counts the number of cfm fault flapps since boot. A flap is
3426 considered to be a change of the <ref column="cfm_fault"/> value.
3427 </column>
3428
93b8df38 3429 <column name="cfm_fault">
144216a3
EJ
3430 <p>
3431 Indicates a connectivity fault triggered by an inability to receive
3432 heartbeats from any remote endpoint. When a fault is triggered on
3433 <ref table="Interface"/>s participating in bonds, they will be
3434 disabled.
3435 </p>
3436 <p>
3437 Faults can be triggered for several reasons. Most importantly they
3438 are triggered when no CCMs are received for a period of 3.5 times the
3439 transmission interval. Faults are also triggered when any CCMs
3440 indicate that a Remote Maintenance Point is not receiving CCMs but
3441 able to send them. Finally, a fault is triggered if a CCM is
3442 received which indicates unexpected configuration. Notably, this
3443 case arises when a CCM is received which advertises the local MPID.
3444 </p>
93b8df38 3445 </column>
a5faa982 3446
b9380396
EJ
3447 <column name="cfm_fault_status" key="recv">
3448 Indicates a CFM fault was triggered due to a lack of CCMs received on
3449 the <ref table="Interface"/>.
3450 </column>
3451
3452 <column name="cfm_fault_status" key="rdi">
3453 Indicates a CFM fault was triggered due to the reception of a CCM with
3454 the RDI bit flagged. Endpoints set the RDI bit in their CCMs when they
3455 are not receiving CCMs themselves. This typically indicates a
3456 unidirectional connectivity failure.
3457 </column>
3458
3459 <column name="cfm_fault_status" key="maid">
3460 Indicates a CFM fault was triggered due to the reception of a CCM with
3461 a MAID other than the one Open vSwitch uses. CFM broadcasts are tagged
3462 with an identification number in addition to the MPID called the MAID.
3463 Open vSwitch only supports receiving CCM broadcasts tagged with the
3464 MAID it uses internally.
3465 </column>
3466
3467 <column name="cfm_fault_status" key="loopback">
3468 Indicates a CFM fault was triggered due to the reception of a CCM
3469 advertising the same MPID configured in the <ref column="cfm_mpid"/>
3470 column of this <ref table="Interface"/>. This may indicate a loop in
3471 the network.
3472 </column>
3473
3474 <column name="cfm_fault_status" key="overflow">
3475 Indicates a CFM fault was triggered because the CFM module received
3476 CCMs from more remote endpoints than it can keep track of.
3477 </column>
3478
3479 <column name="cfm_fault_status" key="override">
3480 Indicates a CFM fault was manually triggered by an administrator using
3481 an <code>ovs-appctl</code> command.
3482 </column>
3483
2b540ecb
MM
3484 <column name="cfm_fault_status" key="interval">
3485 Indicates a CFM fault was triggered due to the reception of a CCM
3486 frame having an invalid interval.
3487 </column>
3488
1c0333b6
EJ
3489 <column name="cfm_remote_opstate">
3490 <p>When in extended mode, indicates the operational state of the
039a8ccd
BP
3491 remote endpoint as either <code>up</code> or <code>down</code>. See
3492 <ref column="other_config" key="cfm_opstate"/>.
1c0333b6
EJ
3493 </p>
3494 </column>
3495
3967a833
MM
3496 <column name="cfm_health">
3497 <p>
3498 Indicates the health of the interface as a percentage of CCM frames
3499 received over 21 <ref column="other_config" key="cfm_interval"/>s.
3500 The health of an interface is undefined if it is communicating with
3501 more than one <ref column="cfm_remote_mpids"/>. It reduces if
3502 healthy heartbeats are not received at the expected rate, and
3503 gradually improves as healthy heartbeats are received at the desired
3504 rate. Every 21 <ref column="other_config" key="cfm_interval"/>s, the
3505 health of the interface is refreshed.
3506 </p>
3507 <p>
3508 As mentioned above, the faults can be triggered for several reasons.
3509 The link health will deteriorate even if heartbeats are received but
3510 they are reported to be unhealthy. An unhealthy heartbeat in this
3511 context is a heartbeat for which either some fault is set or is out
3512 of sequence. The interface health can be 100 only on receiving
3513 healthy heartbeats at the desired rate.
3514 </p>
3515 </column>
3516
a5faa982
EJ
3517 <column name="cfm_remote_mpids">
3518 When CFM is properly configured, Open vSwitch will occasionally
3519 receive CCM broadcasts. These broadcasts contain the MPID of the
3520 sending Maintenance Point. The list of MPIDs from which this
3521 <ref table="Interface"/> is receiving broadcasts from is regularly
3522 collected and written to this column.
3523 </column>
3fd8d445 3524
f9e5e5b3
BP
3525 <column name="other_config" key="cfm_interval"
3526 type='{"type": "integer"}'>
612ca9c5
BP
3527 <p>
3528 The interval, in milliseconds, between transmissions of CFM
3529 heartbeats. Three missed heartbeat receptions indicate a
3530 connectivity fault.
3531 </p>
3532
3533 <p>
3534 In standard operation only intervals of 3, 10, 100, 1,000, 10,000,
3535 60,000, or 600,000 ms are supported. Other values will be rounded
3536 down to the nearest value on the list. Extended mode (see <ref
3537 column="other_config" key="cfm_extended"/>) supports any interval up
3538 to 65,535 ms. In either mode, the default is 1000 ms.
3539 </p>
3540
3541 <p>We do not recommend using intervals less than 100 ms.</p>
3fd8d445
BP
3542 </column>
3543
f9e5e5b3
BP
3544 <column name="other_config" key="cfm_extended"
3545 type='{"type": "boolean"}'>
3fd8d445
BP
3546 When <code>true</code>, the CFM module operates in extended mode. This
3547 causes it to use a nonstandard destination address to avoid conflicting
3548 with compliant implementations which may be running concurrently on the
3549 network. Furthermore, extended mode increases the accuracy of the
3550 <code>cfm_interval</code> configuration parameter by breaking wire
b1a6083a
AW
3551 compatibility with 802.1ag compliant implementations. And extended
3552 mode allows eight byte MPIDs. Defaults to <code>false</code>.
3fd8d445 3553 </column>
90967e95
EJ
3554
3555 <column name="other_config" key="cfm_demand" type='{"type": "boolean"}'>
3556 <p>
3557 When <code>true</code>, and
3558 <ref column="other_config" key="cfm_extended"/> is true, the CFM
3559 module operates in demand mode. When in demand mode, traffic
3560 received on the <ref table="Interface"/> is used to indicate
5767a79a
AW
3561 liveness. CCMs are still transmitted and received. At least one
3562 CCM must be received every 100 * <ref column="other_config"
3563 key="cfm_interval"/> amount of time. Otherwise, even if traffic
3564 are received, the CFM module will raise the connectivity fault.
90967e95
EJ
3565 </p>
3566
3567 <p>
039a8ccd 3568 Demand mode has a couple of caveats:
90967e95
EJ
3569 <ul>
3570 <li>
3571 To ensure that ovs-vswitchd has enough time to pull statistics
03f209ba
AW
3572 from the datapath, the fault detection interval is set to
3573 3.5 * MAX(<ref column="other_config" key="cfm_interval"/>, 500)
3574 ms.
90967e95
EJ
3575 </li>
3576
3577 <li>
3578 To avoid ambiguity, demand mode disables itself when there are
3579 multiple remote maintenance points.
3580 </li>
3581
3582 <li>
3583 If the <ref table="Interface"/> is heavily congested, CCMs
3584 containing the <ref column="other_config" key="cfm_opstate"/>
3585 status may be dropped causing changes in the operational state to
3586 be delayed. Similarly, if CCMs containing the RDI bit are not
3587 received, unidirectional link failures may not be detected.
3588 </li>
3589 </ul>
3590 </p>
3591 </column>
3592
dae57238
BP
3593 <column name="other_config" key="cfm_opstate"
3594 type='{"type": "string", "enum": ["set", ["down", "up"]]}'>
86dc6501
EJ
3595 When <code>down</code>, the CFM module marks all CCMs it generates as
3596 operationally down without triggering a fault. This allows remote
3597 maintenance points to choose not to forward traffic to the
3598 <ref table="Interface"/> on which this CFM module is running.
3599 Currently, in Open vSwitch, the opdown bit of CCMs affects
3600 <ref table="Interface"/>s participating in bonds, and the bundle
3601 OpenFlow action. This setting is ignored when CFM is not in extended
3602 mode. Defaults to <code>up</code>.
3603 </column>
75a4ead1
EJ
3604
3605 <column name="other_config" key="cfm_ccm_vlan"
039a8ccd 3606 type='{"type": "integer", "minInteger": 1, "maxInteger": 4095}'>
75a4ead1 3607 When set, the CFM module will apply a VLAN tag to all CCMs it generates
189cb9e4
EJ
3608 with the given value. May be the string <code>random</code> in which
3609 case each CCM will be tagged with a different randomly generated VLAN.
75a4ead1
EJ
3610 </column>
3611
a7aa2d3c 3612 <column name="other_config" key="cfm_ccm_pcp"
039a8ccd 3613 type='{"type": "integer", "minInteger": 1, "maxInteger": 7}'>
a7aa2d3c 3614 When set, the CFM module will apply a VLAN tag to all CCMs it generates
b363bae4 3615 with the given PCP value, the VLAN ID of the tag is governed by the
a7aa2d3c
EJ
3616 value of <ref column="other_config" key="cfm_ccm_vlan"/>. If
3617 <ref column="other_config" key="cfm_ccm_vlan"/> is unset, a VLAN ID of
3618 zero is used.
3619 </column>
3620
93b8df38
EJ
3621 </group>
3622
3fd8d445 3623 <group title="Bonding Configuration">
f9e5e5b3
BP
3624 <column name="other_config" key="lacp-port-id"
3625 type='{"type": "integer", "minInteger": 1, "maxInteger": 65535}'>
3fd8d445
BP
3626 The LACP port ID of this <ref table="Interface"/>. Port IDs are
3627 used in LACP negotiations to identify individual ports
f9e5e5b3 3628 participating in a bond.
a8172aa3
EJ
3629 </column>
3630
f9e5e5b3
BP
3631 <column name="other_config" key="lacp-port-priority"
3632 type='{"type": "integer", "minInteger": 1, "maxInteger": 65535}'>
3fd8d445
BP
3633 The LACP port priority of this <ref table="Interface"/>. In LACP
3634 negotiations <ref table="Interface"/>s with numerically lower
f9e5e5b3 3635 priorities are preferred for aggregation.
89365653 3636 </column>
018f1525 3637
f9e5e5b3
BP
3638 <column name="other_config" key="lacp-aggregation-key"
3639 type='{"type": "integer", "minInteger": 1, "maxInteger": 65535}'>
3fd8d445
BP
3640 The LACP aggregation key of this <ref table="Interface"/>. <ref
3641 table="Interface"/>s with different aggregation keys may not be active
f9e5e5b3 3642 within a given <ref table="Port"/> at the same time.
a3acf0b0 3643 </column>
3fd8d445 3644 </group>
a3acf0b0 3645
3fd8d445
BP
3646 <group title="Virtual Machine Identifiers">
3647 <p>
3648 These key-value pairs specifically apply to an interface that
3649 represents a virtual Ethernet interface connected to a virtual
3650 machine. These key-value pairs should not be present for other types
3651 of interfaces. Keys whose names end in <code>-uuid</code> have
3652 values that uniquely identify the entity in question. For a Citrix
3653 XenServer hypervisor, these values are UUIDs in RFC 4122 format.
3654 Other hypervisors may use other formats.
3655 </p>
3656
3657 <column name="external_ids" key="attached-mac">
3658 The MAC address programmed into the ``virtual hardware'' for this
3659 interface, in the form
3660 <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>.
3661 For Citrix XenServer, this is the value of the <code>MAC</code> field
3662 in the VIF record for this interface.
3663 </column>
3664
3665 <column name="external_ids" key="iface-id">
3666 A system-unique identifier for the interface. On XenServer, this will
3667 commonly be the same as <ref column="external_ids" key="xs-vif-uuid"/>.
3668 </column>
3669
cf9deac5
BP
3670 <column name="external_ids" key="iface-status"
3671 type='{"type": "string",
3672 "enum": ["set", ["active", "inactive"]]}'>
3673 <p>
3674 Hypervisors may sometimes have more than one interface associated
3675 with a given <ref column="external_ids" key="iface-id"/>, only one of
3676 which is actually in use at a given time. For example, in some
3677 circumstances XenServer has both a ``tap'' and a ``vif'' interface
3678 for a single <ref column="external_ids" key="iface-id"/>, but only
3679 uses one of them at a time. A hypervisor that behaves this way must
3680 mark the currently in use interface <code>active</code> and the
3681 others <code>inactive</code>. A hypervisor that never has more than
3682 one interface for a given <ref column="external_ids" key="iface-id"/>
3683 may mark that interface <code>active</code> or omit <ref
3684 column="external_ids" key="iface-status"/> entirely.
3685 </p>
3686
3687 <p>
3688 During VM migration, a given <ref column="external_ids"
3689 key="iface-id"/> might transiently be marked <code>active</code> on
3690 two different hypervisors. That is, <code>active</code> means that
3691 this <ref column="external_ids" key="iface-id"/> is the active
3692 instance within a single hypervisor, not in a broader scope.
3634eb99
BP
3693 There is one exception: some hypervisors support ``migration'' from a
3694 given hypervisor to itself (most often for test purposes). During
3695 such a ``migration,'' two instances of a single <ref
3696 column="external_ids" key="iface-id"/> might both be briefly marked
3697 <code>active</code> on a single hypervisor.
cf9deac5
BP
3698 </p>
3699 </column>
3700
3fd8d445
BP
3701 <column name="external_ids" key="xs-vif-uuid">
3702 The virtual interface associated with this interface.
3703 </column>
3704
3705 <column name="external_ids" key="xs-network-uuid">
3706 The virtual network to which this interface is attached.
3707 </column>
3708
c473936b
GS
3709 <column name="external_ids" key="vm-id">
3710 The VM to which this interface belongs. On XenServer, this will be the
3711 same as <ref column="external_ids" key="xs-vm-uuid"/>.
3712 </column>
3713
3fd8d445
BP
3714 <column name="external_ids" key="xs-vm-uuid">
3715 The VM to which this interface belongs.
018f1525 3716 </column>
89365653 3717 </group>
3fd8d445 3718
99eef98b
DF
3719 <group title="Auto Attach Configuration">
3720 <p>
039a8ccd 3721 Auto Attach configuration for a particular interface.
99eef98b
DF
3722 </p>
3723
3724 <column name="lldp" key="enable" type='{"type": "boolean"}'>
039a8ccd
BP
3725 True to enable LLDP on this <ref table="Interface"/>. If not
3726 specified, LLDP will be disabled by default.
99eef98b
DF
3727 </column>
3728 </group>
3729
9fd39370
SC
3730 <group title="Flow control Configuration">
3731 <p>
3732 Ethernet flow control defined in IEEE 802.1Qbb provides link level flow
3733 control using MAC pause frames. Implemented only for interfaces with
3734 type <code>dpdk</code>.
3735 </p>
3736
3737 <column name="options" key="rx-flow-ctrl" type='{"type": "boolean"}'>
3738 Set to <code>true</code> to enable Rx flow control on physical ports.
3739 By default, Rx flow control is disabled.
3740 </column>
3741
3742 <column name="options" key="tx-flow-ctrl" type='{"type": "boolean"}'>
3743 Set to <code>true</code> to enable Tx flow control on physical ports.
3744 By default, Tx flow control is disabled.
3745 </column>
3746
3747 <column name="options" key="flow-ctrl-autoneg"
3748 type='{"type": "boolean"}'>
3749 Set to <code>true</code> to enable flow control auto negotiation on
3750 physical ports. By default, auto-neg is disabled.
3751 </column>
3752 </group>
3753
f8b64a61
RM
3754 <group title="Link State Change detection mode">
3755 <column name="options" key="dpdk-lsc-interrupt"
3756 type='{"type": "boolean"}'>
3757 <p>
3758 Set this value to <code>true</code> to configure interrupt mode for
3759 Link State Change (LSC) detection instead of poll mode for the DPDK
3760 interface.
3761 </p>
3762 <p>
3763 If this value is not set, poll mode is configured.
3764 </p>
3765 <p>
3766 This parameter has an effect only on netdev dpdk interfaces.
3767 </p>
3768 </column>
3769 </group>
3770
3fd8d445
BP
3771 <group title="Common Columns">
3772 The overall purpose of these columns is described under <code>Common
3773 Columns</code> at the beginning of this document.
3774
3775 <column name="other_config"/>
3776 <column name="external_ids"/>
3777 </group>
89365653
BP
3778 </table>
3779
254750ce
BP
3780 <table name="Flow_Table" title="OpenFlow table configuration">
3781 <p>Configuration for a particular OpenFlow table.</p>
3782
3783 <column name="name">
3784 The table's name. Set this column to change the name that controllers
3785 will receive when they request table statistics, e.g. <code>ovs-ofctl
3786 dump-tables</code>. The name does not affect switch behavior.
3787 </column>
3788
82c22d34 3789 <group title="Eviction Policy">
254750ce 3790 <p>
82c22d34
BP
3791 Open vSwitch supports limiting the number of flows that may be
3792 installed in a flow table, via the <ref column="flow_limit"/> column.
3793 When adding a flow would exceed this limit, by default Open vSwitch
3794 reports an error, but there are two ways to configure Open vSwitch to
3795 instead delete (``evict'') a flow to make room for the new one:
254750ce
BP
3796 </p>
3797
82c22d34
BP
3798 <ul>
3799 <li>
3800 Set the <ref column="overflow_policy"/> column to <code>evict</code>.
3801 </li>
254750ce 3802
82c22d34
BP
3803 <li>
3804 Send an OpenFlow 1.4+ ``table mod request'' to enable eviction for
3805 the flow table (e.g. <code>ovs-ofctl -O OpenFlow14 mod-table br0 0
3806 evict</code> to enable eviction on flow table 0 of bridge
3807 <code>br0</code>).
3808 </li>
3809 </ul>
254750ce
BP
3810
3811 <p>
3812 When a flow must be evicted due to overflow, the flow to evict is
f70b94de
BP
3813 chosen through an approximation of the following algorithm. This
3814 algorithm is used regardless of how eviction was enabled:
254750ce
BP
3815 </p>
3816
3817 <ol>
3818 <li>
3819 Divide the flows in the table into groups based on the values of the
f70b94de
BP
3820 fields or subfields specified in the <ref column="groups"/> column,
3821 so that all of the flows in a given group have the same values for
3822 those fields. If a flow does not specify a given field, that field's
3823 value is treated as 0. If <ref column="groups"/> is empty, then all
3824 of the flows in the flow table are treated as a single group.
254750ce
BP
3825 </li>
3826
3827 <li>
3828 Consider the flows in the largest group, that is, the group that
3829 contains the greatest number of flows. If two or more groups all
3830 have the same largest number of flows, consider the flows in all of
3831 those groups.
3832 </li>
3833
f70b94de
BP
3834 <li>
3835 If the flows under consideration have different importance values,
3836 eliminate from consideration any flows except those with the lowest
3837 importance. (``Importance,'' a 16-bit integer value attached to each
3838 flow, was introduced in OpenFlow 1.4. Flows inserted with older
3839 versions of OpenFlow always have an importance of 0.)
3840 </li>
3841
254750ce
BP
3842 <li>
3843 Among the flows under consideration, choose the flow that expires
3844 soonest for eviction.
3845 </li>
3846 </ol>
3847
3848 <p>
82c22d34
BP
3849 The eviction process only considers flows that have an idle timeout
3850 or a hard timeout. That is, eviction never deletes permanent flows.
7792bfe0 3851 (Permanent flows do count against <ref column="flow_limit"/>.)
254750ce
BP
3852 </p>
3853
82c22d34
BP
3854 <column name="flow_limit">
3855 If set, limits the number of flows that may be added to the table.
3856 Open vSwitch may limit the number of flows in a table for other
3857 reasons, e.g. due to hardware limitations or for resource availability
3858 or performance reasons.
3859 </column>
254750ce 3860
82c22d34
BP
3861 <column name="overflow_policy">
3862 <p>
3863 Controls the switch's behavior when an OpenFlow flow table
3864 modification request would add flows in excess of <ref
3865 column="flow_limit"/>. The supported values are:
3866 </p>
13751fd8 3867
82c22d34
BP
3868 <dl>
3869 <dt><code>refuse</code></dt>
3870 <dd>
3871 Refuse to add the flow or flows. This is also the default policy
3872 when <ref column="overflow_policy"/> is unset.
3873 </dd>
f017d986 3874
82c22d34
BP
3875 <dt><code>evict</code></dt>
3876 <dd>
3877 Delete a flow chosen according to the algorithm described above.
3878 </dd>
3879 </dl>
3880 </column>
f017d986 3881
82c22d34
BP
3882 <column name="groups">
3883 <p>
3884 When <ref column="overflow_policy"/> is <code>evict</code>, this
3885 controls how flows are chosen for eviction when the flow table would
3886 otherwise exceed <ref column="flow_limit"/> flows. Its value is a
3887 set of NXM fields or sub-fields, each of which takes one of the forms
3888 <code><var>field</var>[]</code> or
3889 <code><var>field</var>[<var>start</var>..<var>end</var>]</code>,
3890 e.g. <code>NXM_OF_IN_PORT[]</code>. Please see
0da61033 3891 <code>meta-flow.h</code> for a complete list of NXM field names.
82c22d34 3892 </p>
f017d986 3893
82c22d34
BP
3894 <p>
3895 Open vSwitch ignores any invalid or unknown field specifications.
3896 </p>
f017d986 3897
82c22d34
BP
3898 <p>
3899 When eviction is not enabled, via <ref column="overflow_policy"/> or
3900 an OpenFlow 1.4+ ``table mod,'' this column has no effect.
3901 </p>
3902 </column>
3903 </group>
13751fd8 3904
82c22d34
BP
3905 <group title="Classifier Optimization">
3906 <column name="prefixes">
3907 <p>
3908 This string set specifies which fields should be used for
3909 address prefix tracking. Prefix tracking allows the
3910 classifier to skip rules with longer than necessary prefixes,
3911 resulting in better wildcarding for datapath flows.
3912 </p>
3913 <p>
3914 Prefix tracking may be beneficial when a flow table contains
3915 matches on IP address fields with different prefix lengths.
3916 For example, when a flow table contains IP address matches on
3917 both full addresses and proper prefixes, the full address
3918 matches will typically cause the datapath flow to un-wildcard
3919 the whole address field (depending on flow entry priorities).
3920 In this case each packet with a different address gets handed
3921 to the userspace for flow processing and generates its own
3922 datapath flow. With prefix tracking enabled for the address
3923 field in question packets with addresses matching shorter
3924 prefixes would generate datapath flows where the irrelevant
3925 address bits are wildcarded, allowing the same datapath flow
3926 to handle all the packets within the prefix in question. In
3927 this case many userspace upcalls can be avoided and the
3928 overall performance can be better.
3929 </p>
3930 <p>
3931 This is a performance optimization only, so packets will
3932 receive the same treatment with or without prefix tracking.
3933 </p>
3934 <p>
3935 The supported fields are: <code>tun_id</code>,
3936 <code>tun_src</code>, <code>tun_dst</code>,
80c4589a 3937 <code>tun_ipv6_src</code>, <code>tun_ipv6_dst</code>,
82c22d34
BP
3938 <code>nw_src</code>, <code>nw_dst</code> (or aliases
3939 <code>ip_src</code> and <code>ip_dst</code>),
3940 <code>ipv6_src</code>, and <code>ipv6_dst</code>. (Using this
3941 feature for <code>tun_id</code> would only make sense if the
3942 tunnel IDs have prefix structure similar to IP addresses.)
3943 </p>
13751fd8 3944
82c22d34
BP
3945 <p>
3946 By default, the <code>prefixes=ip_dst,ip_src</code> are used
3947 on each flow table. This instructs the flow classifier to
3948 track the IP destination and source addresses used by the
3949 rules in this specific flow table.
3950 </p>
3951
3952 <p>
3953 The keyword <code>none</code> is recognized as an explicit
3954 override of the default values, causing no prefix fields to be
3955 tracked.
3956 </p>
3957
3958 <p>
3959 To set the prefix fields, the flow table record needs to
3960 exist:
3961 </p>
3962
3963 <dl>
3964 <dt><code>ovs-vsctl set Bridge br0 flow_tables:0=@N1 -- --id=@N1 create Flow_Table name=table0</code></dt>
3965 <dd>
3966 Creates a flow table record for the OpenFlow table number 0.
3967 </dd>
3968
3969 <dt><code>ovs-vsctl set Flow_Table table0 prefixes=ip_dst,ip_src</code></dt>
3970 <dd>
3971 Enables prefix tracking for IP source and destination
3972 address fields.
3973 </dd>
3974 </dl>
3975
3976 <p>
3977 There is a maximum number of fields that can be enabled for any
3978 one flow table. Currently this limit is 3.
3979 </p>
3980 </column>
3981 </group>
e3fbd9df
BP
3982
3983 <group title="Common Columns">
3984 The overall purpose of these columns is described under <code>Common
3985 Columns</code> at the beginning of this document.
3986
3987 <column name="external_ids"/>
3988 </group>
254750ce
BP
3989 </table>
3990
c1c9c9c4
BP
3991 <table name="QoS" title="Quality of Service configuration">
3992 <p>Quality of Service (QoS) configuration for each Port that
3fd8d445 3993 references it.</p>
c1c9c9c4
BP
3994
3995 <column name="type">
b850dc6d
BP
3996 <p>The type of QoS to implement. The currently defined types are
3997 listed below:</p>
c1c9c9c4
BP
3998 <dl>
3999 <dt><code>linux-htb</code></dt>
6784cb57
BP
4000 <dd>
4001 Linux ``hierarchy token bucket'' classifier. See tc-htb(8) (also at
4002 <code>http://linux.die.net/man/8/tc-htb</code>) and the HTB manual
4003 (<code>http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm</code>)
4004 for information on how this classifier works and how to configure it.
4005 </dd>
6cf888b8 4006
a339aa81
EJ
4007 <dt><code>linux-hfsc</code></dt>
4008 <dd>
4009 Linux "Hierarchical Fair Service Curve" classifier.
4010 See <code>http://linux-ip.net/articles/hfsc.en/</code> for
4011 information on how this classifier works.
4012 </dd>
6cf888b8 4013
677d9158
JV
4014 <dt><code>linux-sfq</code></dt>
4015 <dd>
4016 Linux ``Stochastic Fairness Queueing'' classifier. See
4017 <code>tc-sfq</code>(8) (also at
4018 <code>http://linux.die.net/man/8/tc-sfq</code>) for information on
4019 how this classifier works.
4020 </dd>
6cf888b8 4021
677d9158
JV
4022 <dt><code>linux-codel</code></dt>
4023 <dd>
4024 Linux ``Controlled Delay'' classifier. See <code>tc-codel</code>(8)
4025 (also at
4026 <code>http://man7.org/linux/man-pages/man8/tc-codel.8.html</code>)
4027 for information on how this classifier works.
4028 </dd>
6cf888b8 4029
677d9158
JV
4030 <dt><code>linux-fq_codel</code></dt>
4031 <dd>
4032 Linux ``Fair Queuing with Controlled Delay'' classifier. See
4033 <code>tc-fq_codel</code>(8) (also at
4034 <code>http://man7.org/linux/man-pages/man8/tc-fq_codel.8.html</code>)
4035 for information on how this classifier works.
4036 </dd>
6cf888b8
BS
4037
4038 <dt><code>linux-noop</code></dt>
4039 <dd>
4040 Linux ``No operation.'' By default, Open vSwitch manages quality of
4041 service on all of its configured ports. This can be helpful, but
4042 sometimes administrators prefer to use other software to manage QoS.
4043 This <ref column="type"/> prevents Open vSwitch from changing the QoS
4044 configuration for a port.
4045 </dd>
4046
0bf765f7
IS
4047 <dt><code>egress-policer</code></dt>
4048 <dd>
6cf888b8 4049 A DPDK egress policer algorithm using the DPDK
0bf765f7
IS
4050 rte_meter library. The rte_meter library provides an implementation
4051 which allows the metering and policing of traffic. The implementation
4052 in OVS essentially creates a single token bucket used to police
4053 traffic. It should be noted that when the rte_meter is configured as
4054 part of QoS there will be a performance overhead as the rte_meter
4055 itself will consume CPU cycles in order to police traffic. These CPU
4056 cycles ordinarily are used for packet proccessing. As such the drop
4057 in performance will be noticed in terms of overall aggregate traffic
4058 throughput.
4059 </dd>
4060 </dl>
c1c9c9c4
BP
4061 </column>
4062
4063 <column name="queues">
4064 <p>A map from queue numbers to <ref table="Queue"/> records. The
3fd8d445
BP
4065 supported range of queue numbers depend on <ref column="type"/>. The
4066 queue numbers are the same as the <code>queue_id</code> used in
4067 OpenFlow in <code>struct ofp_action_enqueue</code> and other
2c999774
BP
4068 structures.</p>
4069
4070 <p>
4071 Queue 0 is the ``default queue.'' It is used by OpenFlow output
8bddb894
BP
4072 actions when no specific queue has been set. When no configuration for
4073 queue 0 is present, it is automatically configured as if a <ref
4074 table="Queue"/> record with empty <ref table="Queue" column="dscp"/>
4075 and <ref table="Queue" column="other_config"/> columns had been
4076 specified.
2c999774
BP
4077 (Before version 1.6, Open vSwitch would leave queue 0 unconfigured in
4078 this case. With some queuing disciplines, this dropped all packets
4079 destined for the default queue.)
4080 </p>
c1c9c9c4
BP
4081 </column>
4082
3fd8d445
BP
4083 <group title="Configuration for linux-htb and linux-hfsc">
4084 <p>
4085 The <code>linux-htb</code> and <code>linux-hfsc</code> classes support
4086 the following key-value pair:
4087 </p>
9cc6bf75 4088
f9e5e5b3 4089 <column name="other_config" key="max-rate" type='{"type": "integer"}'>
3fd8d445
BP
4090 Maximum rate shared by all queued traffic, in bit/s. Optional. If not
4091 specified, for physical interfaces, the default is the link rate. For
4092 other interfaces or if the link rate cannot be determined, the default
4093 is currently 100 Mbps.
4094 </column>
4095 </group>
13008eb3 4096
0bf765f7
IS
4097 <group title="Configuration for egress-policer QoS">
4098 <p>
4099 <ref table="QoS"/> <ref table="QoS" column="type"/>
4100 <code>egress-policer</code> provides egress policing for userspace
4101 port types with DPDK.
4102
4103 It has the following key-value pairs defined.
4104 </p>
4105
4106 <column name="other_config" key="cir" type='{"type": "integer"}'>
4107 The Committed Information Rate (CIR) is measured in bytes of IP
4108 packets per second, i.e. it includes the IP header, but not link
4109 specific (e.g. Ethernet) headers. This represents the bytes per second
4110 rate at which the token bucket will be updated. The cir value is
4111 calculated by (pps x packet data size). For example assuming a user
4112 wishes to limit a stream consisting of 64 byte packets to 1 million
4113 packets per second the CIR would be set to to to 46000000. This value
4114 can be broken into '1,000,000 x 46'. Where 1,000,000 is the policing
4115 rate for the number of packets per second and 46 represents the size
4116 of the packet data for a 64 byte ip packet.
4117 </column>
4118 <column name="other_config" key="cbs" type='{"type": "integer"}'>
4119 The Committed Burst Size (CBS) is measured in bytes and represents a
4120 token bucket. At a minimum this value should be be set to the expected
4121 largest size packet in the traffic stream. In practice larger values
4122 may be used to increase the size of the token bucket. If a packet can
4123 be transmitted then the cbs will be decremented by the number of
4124 bytes/tokens of the packet. If there are not enough tokens in the cbs
4125 bucket the packet will be dropped.
4126 </column>
4127 </group>
4128
804c477b
LR
4129 <group title="Configuration for linux-sfq">
4130 <p>
4131 The <code>linux-sfq</code> QoS supports the following key-value pairs:
4132 </p>
4133
4134 <column name="other_config" key="perturb" type='{"type": "integer"}'>
4135 Number of seconds between consecutive perturbations in hashing algorithm.
4136 Different flows can end up in the same hash bucket causing unfairness.
4137 Perturbation's goal is to remove possible unfairness.
4138 The default and recommended value is 10. Too low a value is discouraged
4139 because each perturbation can cause packet reordering.
4140 </column>
4141 <column name="other_config" key="quantum" type='{"type": "integer"}'>
4142 Number of bytes <code>linux-sfq</code> QoS can dequeue in one turn in
4143 round-robin from one flow. The default and recommended value is equal
4144 to interface's MTU.
4145 </column>
4146 </group>
4147
3fd8d445
BP
4148 <group title="Common Columns">
4149 The overall purpose of these columns is described under <code>Common
4150 Columns</code> at the beginning of this document.
4151
4152 <column name="other_config"/>
4153 <column name="external_ids"/>
4154 </group>
c1c9c9c4
BP
4155 </table>
4156
4157 <table name="Queue" title="QoS output queue.">
4158 <p>A configuration for a port output queue, used in configuring Quality of
3fd8d445
BP
4159 Service (QoS) features. May be referenced by <ref column="queues"
4160 table="QoS"/> column in <ref table="QoS"/> table.</p>
13008eb3 4161
8b36f51e
EJ
4162 <column name="dscp">
4163 If set, Open vSwitch will mark all traffic egressing this
4164 <ref table="Queue"/> with the given DSCP bits. Traffic egressing the
4165 default <ref table="Queue"/> is only marked if it was explicitly selected
4166 as the <ref table="Queue"/> at the time the packet was output. If unset,
4167 the DSCP bits of traffic egressing this <ref table="Queue"/> will remain
4168 unchanged.
4169 </column>
4170
3fd8d445
BP
4171 <group title="Configuration for linux-htb QoS">
4172 <p>
69822b3c
EJ
4173 <ref table="QoS"/> <ref table="QoS" column="type"/>
4174 <code>linux-htb</code> may use <code>queue_id</code>s less than 61440.
4175 It has the following key-value pairs defined.
3fd8d445 4176 </p>
9cc6bf75 4177
f9e5e5b3
BP
4178 <column name="other_config" key="min-rate"
4179 type='{"type": "integer", "minInteger": 1}'>
3fd8d445
BP
4180 Minimum guaranteed bandwidth, in bit/s.
4181 </column>
4182
f9e5e5b3
BP
4183 <column name="other_config" key="max-rate"
4184 type='{"type": "integer", "minInteger": 1}'>
3fd8d445
BP
4185 Maximum allowed bandwidth, in bit/s. Optional. If specified, the
4186 queue's rate will not be allowed to exceed the specified value, even
4187 if excess bandwidth is available. If unspecified, defaults to no
4188 limit.
4189 </column>
4190
f9e5e5b3
BP
4191 <column name="other_config" key="burst"
4192 type='{"type": "integer", "minInteger": 1}'>
3fd8d445
BP
4193 Burst size, in bits. This is the maximum amount of ``credits'' that a
4194 queue can accumulate while it is idle. Optional. Details of the
4195 <code>linux-htb</code> implementation require a minimum burst size, so
4196 a too-small <code>burst</code> will be silently ignored.
4197 </column>
4198
f9e5e5b3
BP
4199 <column name="other_config" key="priority"
4200 type='{"type": "integer", "minInteger": 0, "maxInteger": 4294967295}'>
4201 A queue with a smaller <code>priority</code> will receive all the
4202 excess bandwidth that it can use before a queue with a larger value
4203 receives any. Specific priority values are unimportant; only relative
4204 ordering matters. Defaults to 0 if unspecified.
3fd8d445
BP
4205 </column>
4206 </group>
4207
4208 <group title="Configuration for linux-hfsc QoS">
4209 <p>
69822b3c
EJ
4210 <ref table="QoS"/> <ref table="QoS" column="type"/>
4211 <code>linux-hfsc</code> may use <code>queue_id</code>s less than 61440.
4212 It has the following key-value pairs defined.
3fd8d445 4213 </p>
9cc6bf75 4214
f9e5e5b3
BP
4215 <column name="other_config" key="min-rate"
4216 type='{"type": "integer", "minInteger": 1}'>
3fd8d445
BP
4217 Minimum guaranteed bandwidth, in bit/s.
4218 </column>
9cc6bf75 4219
f9e5e5b3
BP
4220 <column name="other_config" key="max-rate"
4221 type='{"type": "integer", "minInteger": 1}'>
3fd8d445
BP
4222 Maximum allowed bandwidth, in bit/s. Optional. If specified, the
4223 queue's rate will not be allowed to exceed the specified value, even if
4224 excess bandwidth is available. If unspecified, defaults to no
4225 limit.
4226 </column>
4227 </group>
4228
4229 <group title="Common Columns">
4230 The overall purpose of these columns is described under <code>Common
4231 Columns</code> at the beginning of this document.
4232
4233 <column name="other_config"/>
4234 <column name="external_ids"/>
4235 </group>
c1c9c9c4
BP
4236 </table>
4237
9ae7ddc0 4238 <table name="Mirror" title="Port mirroring.">
89365653
BP
4239 <p>A port mirror within a <ref table="Bridge"/>.</p>
4240 <p>A port mirror configures a bridge to send selected frames to special
92ada132 4241 ``mirrored'' ports, in addition to their normal destinations. Mirroring
9ae7ddc0 4242 traffic may also be referred to as SPAN or RSPAN, depending on how
92ada132 4243 the mirrored traffic is sent.</p>
89365653 4244
7efbc3b7
BP
4245 <p>
4246 When a packet enters an Open vSwitch bridge, it becomes eligible for
4247 mirroring based on its ingress port and VLAN. As the packet travels
4248 through the flow tables, each time it is output to a port, it becomes
4249 eligible for mirroring based on the egress port and VLAN. In Open
4250 vSwitch 2.5 and later, mirroring occurs just after a packet first becomes
4251 eligible, using the packet as it exists at that point; in Open vSwitch
4252 2.4 and earlier, mirroring occurs only after a packet has traversed all
4253 the flow tables, using the original packet as it entered the bridge.
4254 This makes a difference only when the flow table modifies the packet: in
4255 Open vSwitch 2.4, the modifications are never visible to mirrors, whereas
4256 in Open vSwitch 2.5 and later modifications made before the first output
4257 that makes it eligible for mirroring to a particular destination are
4258 visible.
4259 </p>
4260
4261 <p>
4262 A packet that enters an Open vSwitch bridge is mirrored to a particular
4263 destination only once, even if it is eligible for multiple reasons. For
4264 example, a packet would be mirrored to a particular <ref
4265 column="output_port"/> only once, even if it is selected for mirroring to
4266 that port by <ref column="select_dst_port"/> and <ref
4267 column="select_src_port"/> in the same or different <ref table="Mirror"/>
4268 records.
4269 </p>
4270
89365653
BP
4271 <column name="name">
4272 Arbitrary identifier for the <ref table="Mirror"/>.
4273 </column>
4274
4275 <group title="Selecting Packets for Mirroring">
3e519d8e
BP
4276 <p>
4277 To be selected for mirroring, a given packet must enter or leave the
4278 bridge through a selected port and it must also be in one of the
4279 selected VLANs.
4280 </p>
4281
939ff267
BP
4282 <column name="select_all">
4283 If true, every packet arriving or departing on any port is
4284 selected for mirroring.
4285 </column>
4286
89365653
BP
4287 <column name="select_dst_port">
4288 Ports on which departing packets are selected for mirroring.
4289 </column>
4290
4291 <column name="select_src_port">
939ff267 4292 Ports on which arriving packets are selected for mirroring.
89365653
BP
4293 </column>
4294
4295 <column name="select_vlan">
4296 VLANs on which packets are selected for mirroring. An empty set
4297 selects packets on all VLANs.
4298 </column>
4299 </group>
4300
4301 <group title="Mirroring Destination Configuration">
3e519d8e
BP
4302 <p>
4303 These columns are mutually exclusive. Exactly one of them must be
4304 nonempty.
4305 </p>
4306
89365653 4307 <column name="output_port">
3e519d8e 4308 <p>Output port for selected packets, if nonempty.</p>
89365653 4309 <p>Specifying a port for mirror output reserves that port exclusively
92ada132 4310 for mirroring. No frames other than those selected for mirroring
653fe3a3 4311 via this column
92ada132
BP
4312 will be forwarded to the port, and any frames received on the port
4313 will be discarded.</p>
4314 <p>
4315 The output port may be any kind of port supported by Open vSwitch.
9ae7ddc0
JP
4316 It may be, for example, a physical port (sometimes called SPAN) or a
4317 GRE tunnel.
92ada132 4318 </p>
89365653
BP
4319 </column>
4320
4321 <column name="output_vlan">
3e519d8e 4322 <p>Output VLAN for selected packets, if nonempty.</p>
89365653 4323 <p>The frames will be sent out all ports that trunk
3fd8d445
BP
4324 <ref column="output_vlan"/>, as well as any ports with implicit VLAN
4325 <ref column="output_vlan"/>. When a mirrored frame is sent out a
4326 trunk port, the frame's VLAN tag will be set to
4327 <ref column="output_vlan"/>, replacing any existing tag; when it is
4328 sent out an implicit VLAN port, the frame will not be tagged. This
4329 type of mirroring is sometimes called RSPAN.</p>
07817dfe 4330 <p>
05be4e2c
EJ
4331 See the documentation for
4332 <ref column="other_config" key="forward-bpdu"/> in the
4333 <ref table="Interface"/> table for a list of destination MAC
4334 addresses which will not be mirrored to a VLAN to avoid confusing
4335 switches that interpret the protocols that they represent.
07817dfe 4336 </p>
89365653 4337 <p><em>Please note:</em> Mirroring to a VLAN can disrupt a network that
3fd8d445
BP
4338 contains unmanaged switches. Consider an unmanaged physical switch
4339 with two ports: port 1, connected to an end host, and port 2,
4340 connected to an Open vSwitch configured to mirror received packets
4341 into VLAN 123 on port 2. Suppose that the end host sends a packet on
4342 port 1 that the physical switch forwards to port 2. The Open vSwitch
4343 forwards this packet to its destination and then reflects it back on
4344 port 2 in VLAN 123. This reflected packet causes the unmanaged
4345 physical switch to replace the MAC learning table entry, which
4346 correctly pointed to port 1, with one that incorrectly points to port
4347 2. Afterward, the physical switch will direct packets destined for
4348 the end host to the Open vSwitch on port 2, instead of to the end
4349 host on port 1, disrupting connectivity. If mirroring to a VLAN is
4350 desired in this scenario, then the physical switch must be replaced
4351 by one that learns Ethernet addresses on a per-VLAN basis. In
4352 addition, learning should be disabled on the VLAN containing mirrored
4353 traffic. If this is not done then intermediate switches will learn
4354 the MAC address of each end host from the mirrored traffic. If
4355 packets being sent to that end host are also mirrored, then they will
4356 be dropped since the switch will attempt to send them out the input
4357 port. Disabling learning for the VLAN will cause the switch to
4358 correctly send the packet out all ports configured for that VLAN. If
4359 Open vSwitch is being used as an intermediate switch, learning can be
4360 disabled by adding the mirrored VLAN to <ref column="flood_vlans"/>
4361 in the appropriate <ref table="Bridge"/> table or tables.</p>
4362 <p>
4363 Mirroring to a GRE tunnel has fewer caveats than mirroring to a
4364 VLAN and should generally be preferred.
4365 </p>
89365653 4366 </column>
1356dbd1
WT
4367
4368 <column name="snaplen">
4369 <p>Maximum per-packet number of bytes to mirror.</p>
4370 <p>A mirrored packet with size larger than <ref column="snaplen"/>
4371 will be truncated in datapath to <ref column="snaplen"/> bytes
4372 before sending to the mirror output port. If omitted, packets
4373 are not truncated.
4374 </p>
4375 </column>
89365653 4376 </group>
13008eb3 4377
9d24de3b
JP
4378 <group title="Statistics: Mirror counters">
4379 <p>
12eb035b
AW
4380 Key-value pairs that report mirror statistics. The update period
4381 is controlled by <ref column="other_config"
4382 key="stats-update-interval"/> in the <code>Open_vSwitch</code> table.
9d24de3b
JP
4383 </p>
4384 <column name="statistics" key="tx_packets">
4385 Number of packets transmitted through this mirror.
4386 </column>
4387 <column name="statistics" key="tx_bytes">
4388 Number of bytes transmitted through this mirror.
4389 </column>
4390 </group>
4391
3fd8d445
BP
4392 <group title="Common Columns">
4393 The overall purpose of these columns is described under <code>Common
4394 Columns</code> at the beginning of this document.
4395
4396 <column name="external_ids"/>
13008eb3 4397 </group>
89365653
BP
4398 </table>
4399
4400 <table name="Controller" title="OpenFlow controller configuration.">
76ce9432
BP
4401 <p>An OpenFlow controller.</p>
4402
7d674866
BP
4403 <p>
4404 Open vSwitch supports two kinds of OpenFlow controllers:
4405 </p>
299a244b 4406
7d674866
BP
4407 <dl>
4408 <dt>Primary controllers</dt>
4409 <dd>
4410 <p>
4411 This is the kind of controller envisioned by the OpenFlow 1.0
4412 specification. Usually, a primary controller implements a network
4413 policy by taking charge of the switch's flow table.
4414 </p>
4415
4416 <p>
4417 Open vSwitch initiates and maintains persistent connections to
4418 primary controllers, retrying the connection each time it fails or
4419 drops. The <ref table="Bridge" column="fail_mode"/> column in the
4420 <ref table="Bridge"/> table applies to primary controllers.
4421 </p>
4422
4423 <p>
4424 Open vSwitch permits a bridge to have any number of primary
4425 controllers. When multiple controllers are configured, Open
4426 vSwitch connects to all of them simultaneously. Because
4427 OpenFlow 1.0 does not specify how multiple controllers
4428 coordinate in interacting with a single switch, more than
4429 one primary controller should be specified only if the
4430 controllers are themselves designed to coordinate with each
4431 other. (The Nicira-defined <code>NXT_ROLE</code> OpenFlow
4432 vendor extension may be useful for this.)
4433 </p>
4434 </dd>
4435 <dt>Service controllers</dt>
4436 <dd>
4437 <p>
4438 These kinds of OpenFlow controller connections are intended for
4439 occasional support and maintenance use, e.g. with
4440 <code>ovs-ofctl</code>. Usually a service controller connects only
4441 briefly to inspect or modify some of a switch's state.
4442 </p>
4443
4444 <p>
4445 Open vSwitch listens for incoming connections from service
4446 controllers. The service controllers initiate and, if necessary,
4447 maintain the connections from their end. The <ref table="Bridge"
4448 column="fail_mode"/> column in the <ref table="Bridge"/> table does
4449 not apply to service controllers.
4450 </p>
4451
4452 <p>
4453 Open vSwitch supports configuring any number of service controllers.
4454 </p>
4455 </dd>
4456 </dl>
4457
4458 <p>
4459 The <ref column="target"/> determines the type of controller.
4460 </p>
89365653
BP
4461
4462 <group title="Core Features">
4463 <column name="target">
7d674866
BP
4464 <p>Connection method for controller.</p>
4465 <p>
4466 The following connection methods are currently supported for primary
4467 controllers:
4468 </p>
89365653 4469 <dl>
771680d9 4470 <dt><code>ssl:<var>host</var></code>[<code>:<var>port</var></code>]</dt>
89365653 4471 <dd>
125b0291 4472 <p>The specified SSL <var>port</var> on the host at the
771680d9
YS
4473 given <var>host</var>, which can either be a DNS name (if built
4474 with unbound library) or an IP address. The <ref table="Open_vSwitch"
4475 column="ssl"/> column in the <ref table="Open_vSwitch"/> table must
4476 point to a valid SSL configuration when this form is used.</p>
d4763d1d 4477 <p>If <var>port</var> is not specified, it defaults to 6653.</p>
89365653 4478 <p>SSL support is an optional feature that is not always built as
3fd8d445 4479 part of Open vSwitch.</p>
89365653 4480 </dd>
771680d9 4481 <dt><code>tcp:<var>host</var></code>[<code>:<var>port</var></code>]</dt>
125b0291 4482 <dd>
e731d71b
AS
4483 <p>
4484 The specified TCP <var>port</var> on the host at the given
771680d9
YS
4485 <var>host</var>, which can either be a DNS name (if built with
4486 unbound library) or an IP address (IPv4 or IPv6). If <var>host</var>
4487 is an IPv6 address, wrap it in square brackets, e.g.
4488 <code>tcp:[::1]:6653</code>.
e731d71b
AS
4489 </p>
4490 <p>
d4763d1d 4491 If <var>port</var> is not specified, it defaults to 6653.
e731d71b 4492 </p>
125b0291 4493 </dd>
7d674866
BP
4494 </dl>
4495 <p>
4496 The following connection methods are currently supported for service
4497 controllers:
4498 </p>
4499 <dl>
771680d9 4500 <dt><code>pssl:</code>[<var>port</var>][<code>:<var>host</var></code>]</dt>
7d674866 4501 <dd>
e731d71b
AS
4502 <p>
4503 Listens for SSL connections on the specified TCP <var>port</var>.
771680d9
YS
4504 If <var>host</var>, which can either be a DNS name (if built with
4505 unbound library) or an IP address, is specified, then connections
4506 are restricted to the resolved or specified local IP address
4507 (either IPv4 or IPv6). If <var>host</var> is an IPv6 address,
4508 wrap it in square brackets, e.g. <code>pssl:6653:[::1]</code>.
e731d71b
AS
4509 </p>
4510 <p>
d4763d1d 4511 If <var>port</var> is not specified, it defaults to
771680d9 4512 6653. If <var>host</var> is not specified then it listens only on
e731d71b
AS
4513 IPv4 (but not IPv6) addresses. The
4514 <ref table="Open_vSwitch" column="ssl"/>
4515 column in the <ref table="Open_vSwitch"/> table must point to a
4516 valid SSL configuration when this form is used.
4517 </p>
4518 <p>
d4763d1d 4519 If <var>port</var> is not specified, it currently to 6653.
e731d71b
AS
4520 </p>
4521 <p>
4522 SSL support is an optional feature that is not always built as
4523 part of Open vSwitch.
4524 </p>
7d674866 4525 </dd>
771680d9 4526 <dt><code>ptcp:</code>[<var>port</var>][<code>:<var>host</var></code>]</dt>
7d674866 4527 <dd>
e731d71b
AS
4528 <p>
4529 Listens for connections on the specified TCP <var>port</var>. If
771680d9
YS
4530 <var>host</var>, which can either be a DNS name (if built with
4531 unbound library) or an IP address, is specified, then connections
4532 are restricted to the resolved or specified local IP address
4533 (either IPv4 or IPv6). If <var>host</var> is an IPv6 address, wrap
4534 it in square brackets, e.g. <code>ptcp:6653:[::1]</code>. If
4535 <var>host</var> is not specified then it listens only on IPv4
4536 addresses.
e731d71b
AS
4537 </p>
4538 <p>
d4763d1d 4539 If <var>port</var> is not specified, it defaults to 6653.
e731d71b 4540 </p>
7d674866 4541 </dd>
89365653 4542 </dl>
9a3f4a49 4543 <p>When multiple controllers are configured for a single bridge, the
3fd8d445
BP
4544 <ref column="target"/> values must be unique. Duplicate
4545 <ref column="target"/> values yield unspecified results.</p>
89365653
BP
4546 </column>
4547
4548 <column name="connection_mode">
9a3f4a49
JP
4549 <p>If it is specified, this setting must be one of the following
4550 strings that describes how Open vSwitch contacts this OpenFlow
4551 controller over the network:</p>
4552
4553 <dl>
4554 <dt><code>in-band</code></dt>
4555 <dd>In this mode, this controller's OpenFlow traffic travels over the
3fd8d445
BP
4556 bridge associated with the controller. With this setting, Open
4557 vSwitch allows traffic to and from the controller regardless of the
4558 contents of the OpenFlow flow table. (Otherwise, Open vSwitch
4559 would never be able to connect to the controller, because it did
4560 not have a flow to enable it.) This is the most common connection
4561 mode because it is not necessary to maintain two independent
4562 networks.</dd>
9a3f4a49
JP
4563 <dt><code>out-of-band</code></dt>
4564 <dd>In this mode, OpenFlow traffic uses a control network separate
3fd8d445
BP
4565 from the bridge associated with this controller, that is, the
4566 bridge does not use any of its own network devices to communicate
4567 with the controller. The control network must be configured
4568 separately, before or after <code>ovs-vswitchd</code> is started.
9a3f4a49
JP
4569 </dd>
4570 </dl>
76ce9432 4571
195c8086 4572 <p>If not specified, the default is implementation-specific.</p>
89365653
BP
4573 </column>
4574 </group>
4575
4576 <group title="Controller Failure Detection and Handling">
4577 <column name="max_backoff">
4578 Maximum number of milliseconds to wait between connection attempts.
4579 Default is implementation-specific.
4580 </column>
4581
4582 <column name="inactivity_probe">
4583 Maximum number of milliseconds of idle time on connection to
4584 controller before sending an inactivity probe message. If Open
4585 vSwitch does not communicate with the controller for the specified
4586 number of seconds, it will send a probe. If a response is not
4587 received for the same additional amount of time, Open vSwitch
4588 assumes the connection has been broken and attempts to reconnect.
2bb82bf0
BP
4589 Default is implementation-specific. A value of 0 disables
4590 inactivity probes.
89365653 4591 </column>
89365653
BP
4592 </group>
4593
a413195e 4594 <group title="Asynchronous Messages">
9886b662
BP
4595 <p>
4596 OpenFlow switches send certain messages to controllers spontanenously,
4597 that is, not in response to any request from the controller. These
4598 messages are called ``asynchronous messages.'' These columns allow
4599 asynchronous messages to be limited or disabled to ensure the best use
4600 of network resources.
4601 </p>
4602
4603 <column name="enable_async_messages">
4604 The OpenFlow protocol enables asynchronous messages at time of
4605 connection establishment, which means that a controller can receive
4606 asynchronous messages, potentially many of them, even if it turns them
4607 off immediately after connecting. Set this column to
4608 <code>false</code> to change Open vSwitch behavior to disable, by
4609 default, all asynchronous messages. The controller can use the
4610 <code>NXT_SET_ASYNC_CONFIG</code> Nicira extension to OpenFlow to turn
4611 on any messages that it does want to receive, if any.
4612 </column>
4613
a413195e 4614 <group title="Controller Rate Limiting">
ebb65354 4615 <p>
a413195e
BP
4616 A switch can forward packets to a controller over the OpenFlow
4617 protocol. Forwarding packets this way at too high a rate can
4618 overwhelm a controller, frustrate use of the OpenFlow connection for
4619 other purposes, increase the latency of flow setup, and use an
4620 unreasonable amount of bandwidth. Therefore, Open vSwitch supports
4621 limiting the rate of packet forwarding to a controller.
ebb65354
BP
4622 </p>
4623
4624 <p>
a413195e
BP
4625 There are two main reasons in OpenFlow for a packet to be sent to a
4626 controller: either the packet ``misses'' in the flow table, that is,
4627 there is no matching flow, or a flow table action says to send the
4628 packet to the controller. Open vSwitch limits the rate of each kind
4629 of packet separately at the configured rate. Therefore, the actual
4630 rate that packets are sent to the controller can be up to twice the
4631 configured rate, when packets are sent for both reasons.
ebb65354
BP
4632 </p>
4633
4634 <p>
a413195e
BP
4635 This feature is specific to forwarding packets over an OpenFlow
4636 connection. It is not general-purpose QoS. See the <ref
4637 table="QoS"/> table for quality of service configuration, and <ref
4638 column="ingress_policing_rate" table="Interface"/> in the <ref
4639 table="Interface"/> table for ingress policing configuration.
ebb65354 4640 </p>
3fd8d445 4641
a413195e
BP
4642 <column name="controller_rate_limit">
4643 <p>
4644 The maximum rate at which the switch will forward packets to the
4645 OpenFlow controller, in packets per second. If no value is
4646 specified, rate limiting is disabled.
4647 </p>
4648 </column>
4649
4650 <column name="controller_burst_limit">
4651 <p>
4652 When a high rate triggers rate-limiting, Open vSwitch queues
4653 packets to the controller for each port and transmits them to the
4654 controller at the configured rate. This value limits the number of
4655 queued packets. Ports on a bridge share the packet queue fairly.
4656 </p>
4657
4658 <p>
4659 This value has no effect unless <ref
4660 column="controller_rate_limit"/> is configured. The current
4661 default when this value is not specified is one-quarter of <ref
4662 column="controller_rate_limit"/>, meaning that queuing can delay
4663 forwarding a packet to the controller by up to 250 ms.
4664 </p>
4665 </column>
4666
4667 <group title="Controller Rate Limiting Statistics">
4668 <p>
4669 These values report the effects of rate limiting. Their values are
4670 relative to establishment of the most recent OpenFlow connection,
4671 or since rate limiting was enabled, whichever happened more
4672 recently. Each consists of two values, one with <code>TYPE</code>
4673 replaced by <code>miss</code> for rate limiting flow table misses,
4674 and the other with <code>TYPE</code> replaced by
4675 <code>action</code> for rate limiting packets sent by OpenFlow
4676 actions.
4677 </p>
4678
4679 <p>
4680 These statistics are reported only when controller rate limiting is
4681 enabled.
4682 </p>
4683
4684 <column name="status" key="packet-in-TYPE-bypassed"
4685 type='{"type": "integer", "minInteger": 0}'>
4686 Number of packets sent directly to the controller, without queuing,
4687 because the rate did not exceed the configured maximum.
4688 </column>
4689
4690 <column name="status" key="packet-in-TYPE-queued"
4691 type='{"type": "integer", "minInteger": 0}'>
4692 Number of packets added to the queue to send later.
4693 </column>
4694
4695 <column name="status" key="packet-in-TYPE-dropped"
4696 type='{"type": "integer", "minInteger": 0}'>
4697 Number of packets added to the queue that were later dropped due to
4698 overflow. This value is less than or equal to <ref column="status"
4699 key="packet-in-TYPE-queued"/>.
4700 </column>
4701
4702 <column name="status" key="packet-in-TYPE-backlog"
4703 type='{"type": "integer", "minInteger": 0}'>
4704 Number of packets currently queued. The other statistics increase
4705 monotonically, but this one fluctuates between 0 and the <ref
4706 column="controller_burst_limit"/> as conditions change.
4707 </column>
4708 </group>
4709 </group>
89365653
BP
4710 </group>
4711
76ce9432
BP
4712 <group title="Additional In-Band Configuration">
4713 <p>These values are considered only in in-band control mode (see
3fd8d445 4714 <ref column="connection_mode"/>).</p>
76ce9432
BP
4715
4716 <p>When multiple controllers are configured on a single bridge, there
3fd8d445
BP
4717 should be only one set of unique values in these columns. If different
4718 values are set for these columns in different controllers, the effect
4719 is unspecified.</p>
89365653
BP
4720
4721 <column name="local_ip">
76ce9432
BP
4722 The IP address to configure on the local port,
4723 e.g. <code>192.168.0.123</code>. If this value is unset, then
4724 <ref column="local_netmask"/> and <ref column="local_gateway"/> are
4725 ignored.
89365653
BP
4726 </column>
4727
4728 <column name="local_netmask">
76ce9432
BP
4729 The IP netmask to configure on the local port,
4730 e.g. <code>255.255.255.0</code>. If <ref column="local_ip"/> is set
4731 but this value is unset, then the default is chosen based on whether
4732 the IP address is class A, B, or C.
4733 </column>
4734
4735 <column name="local_gateway">
4736 The IP address of the gateway to configure on the local port, as a
4737 string, e.g. <code>192.168.0.1</code>. Leave this column unset if
4738 this network has no gateway.
89365653
BP
4739 </column>
4740 </group>
13008eb3 4741
bffc0589
AE
4742 <group title="Controller Status">
4743 <column name="is_connected">
4744 <code>true</code> if currently connected to this controller,
4745 <code>false</code> otherwise.
4746 </column>
4747
f9e5e5b3
BP
4748 <column name="role"
4749 type='{"type": "string", "enum": ["set", ["other", "master", "slave"]]}'>
bffc0589 4750 <p>The level of authority this controller has on the associated
3fd8d445 4751 bridge. Possible values are:</p>
bffc0589
AE
4752 <dl>
4753 <dt><code>other</code></dt>
4754 <dd>Allows the controller access to all OpenFlow features.</dd>
bffc0589
AE
4755 <dt><code>master</code></dt>
4756 <dd>Equivalent to <code>other</code>, except that there may be at
3fd8d445
BP
4757 most one master controller at a time. When a controller configures
4758 itself as <code>master</code>, any existing master is demoted to
9f90ed90 4759 the <code>slave</code> role.</dd>
bffc0589
AE
4760 <dt><code>slave</code></dt>
4761 <dd>Allows the controller read-only access to OpenFlow features.
3fd8d445
BP
4762 Attempts to modify the flow table will be rejected with an
4763 error. Slave controllers do not receive OFPT_PACKET_IN or
4764 OFPT_FLOW_REMOVED messages, but they do receive OFPT_PORT_STATUS
4765 messages.</dd>
bffc0589
AE
4766 </dl>
4767 </column>
4768
3fd8d445
BP
4769 <column name="status" key="last_error">
4770 A human-readable description of the last error on the connection
4771 to the controller; i.e. <code>strerror(errno)</code>. This key
4772 will exist only if an error has occurred.
4773 </column>
4774
f9e5e5b3
BP
4775 <column name="status" key="state"
4776 type='{"type": "string", "enum": ["set", ["VOID", "BACKOFF", "CONNECTING", "ACTIVE", "IDLE"]]}'>
3fd8d445 4777 <p>
f9e5e5b3 4778 The state of the connection to the controller:
3fd8d445 4779 </p>
bffc0589 4780 <dl>
3fd8d445
BP
4781 <dt><code>VOID</code></dt>
4782 <dd>Connection is disabled.</dd>
4783
4784 <dt><code>BACKOFF</code></dt>
4785 <dd>Attempting to reconnect at an increasing period.</dd>
4786
4787 <dt><code>CONNECTING</code></dt>
4788 <dd>Attempting to connect.</dd>
4789
4790 <dt><code>ACTIVE</code></dt>
4791 <dd>Connected, remote host responsive.</dd>
4792
4793 <dt><code>IDLE</code></dt>
4794 <dd>Connection is idle. Waiting for response to keep-alive.</dd>
bffc0589 4795 </dl>
3fd8d445
BP
4796 <p>
4797 These values may change in the future. They are provided only for
4798 human consumption.
4799 </p>
4800 </column>
9cc6bf75 4801
f9e5e5b3
BP
4802 <column name="status" key="sec_since_connect"
4803 type='{"type": "integer", "minInteger": 0}'>
3fd8d445
BP
4804 The amount of time since this controller last successfully connected to
4805 the switch (in seconds). Value is empty if controller has never
4806 successfully connected.
bffc0589 4807 </column>
9cc6bf75 4808
f9e5e5b3
BP
4809 <column name="status" key="sec_since_disconnect"
4810 type='{"type": "integer", "minInteger": 1}'>
3fd8d445
BP
4811 The amount of time since this controller last disconnected from
4812 the switch (in seconds). Value is empty if controller has never
4813 disconnected.
4814 </column>
4815 </group>
4816
f125905c
MM
4817 <group title="Connection Parameters">
4818 <p>
4819 Additional configuration for a connection between the controller
4820 and the Open vSwitch.
4821 </p>
4822
4823 <column name="other_config" key="dscp"
039a8ccd 4824 type='{"type": "integer"}'>
cea15768
EJ
4825 The Differentiated Service Code Point (DSCP) is specified using 6 bits
4826 in the Type of Service (TOS) field in the IP header. DSCP provides a
4827 mechanism to classify the network traffic and provide Quality of
4828 Service (QoS) on IP networks.
4829
4830 The DSCP value specified here is used when establishing the connection
0442efd9
MM
4831 between the controller and the Open vSwitch. If no value is specified,
4832 a default value of 48 is chosen. Valid DSCP values must be in the
4833 range 0 to 63.
f125905c
MM
4834 </column>
4835 </group>
4836
4837
3fd8d445
BP
4838 <group title="Common Columns">
4839 The overall purpose of these columns is described under <code>Common
4840 Columns</code> at the beginning of this document.
4841
4842 <column name="external_ids"/>
f125905c 4843 <column name="other_config"/>
bffc0589 4844 </group>
89365653
BP
4845 </table>
4846
94db5407
BP
4847 <table name="Manager" title="OVSDB management connection.">
4848 <p>
4849 Configuration for a database connection to an Open vSwitch database
4850 (OVSDB) client.
4851 </p>
4852
4853 <p>
4854 This table primarily configures the Open vSwitch database
4855 (<code>ovsdb-server</code>), not the Open vSwitch switch
4856 (<code>ovs-vswitchd</code>). The switch does read the table to determine
4857 what connections should be treated as in-band.
4858 </p>
4859
4860 <p>
4861 The Open vSwitch database server can initiate and maintain active
4862 connections to remote clients. It can also listen for database
4863 connections.
4864 </p>
4865
4866 <group title="Core Features">
4867 <column name="target">
4868 <p>Connection method for managers.</p>
4869 <p>
4870 The following connection methods are currently supported:
4871 </p>
4872 <dl>
771680d9 4873 <dt><code>ssl:<var>host</var></code>[<code>:<var>port</var></code>]</dt>
94db5407
BP
4874 <dd>
4875 <p>
efc295d2 4876 The specified SSL <var>port</var> on the host at the given
771680d9
YS
4877 <var>host</var>, which can either be a DNS name (if built with
4878 unbound library) or an IP address. The <ref table="Open_vSwitch"
efc295d2
JP
4879 column="ssl"/> column in the <ref table="Open_vSwitch"/>
4880 table must point to a valid SSL configuration when this
4881 form is used.
94db5407
BP
4882 </p>
4883 <p>
d4763d1d 4884 If <var>port</var> is not specified, it defaults to 6640.
efc295d2
JP
4885 </p>
4886 <p>
4887 SSL support is an optional feature that is not always
4888 built as part of Open vSwitch.
94db5407
BP
4889 </p>
4890 </dd>
4891
771680d9 4892 <dt><code>tcp:<var>host</var></code>[<code>:<var>port</var></code>]</dt>
94db5407 4893 <dd>
efc295d2
JP
4894 <p>
4895 The specified TCP <var>port</var> on the host at the given
771680d9
YS
4896 <var>host</var>, which can either be a DNS name (if built with
4897 unbound library) or an IP address (IPv4 or IPv6). If <var>host</var>
4898 is an IPv6 address, wrap it in square brackets, e.g.
4899 <code>tcp:[::1]:6640</code>.
efc295d2
JP
4900 </p>
4901 <p>
d4763d1d 4902 If <var>port</var> is not specified, it defaults to 6640.
efc295d2 4903 </p>
94db5407 4904 </dd>
771680d9 4905 <dt><code>pssl:</code>[<var>port</var>][<code>:<var>host</var></code>]</dt>
94db5407
BP
4906 <dd>
4907 <p>
e731d71b
AS
4908 Listens for SSL connections on the specified TCP <var>port</var>.
4909 Specify 0 for <var>port</var> to have the kernel automatically
771680d9
YS
4910 choose an available port. If <var>host</var>, which can either
4911 be a DNS name (if built with unbound library) or an IP address,
4912 is specified, then connections are restricted to the resolved or
4913 specified local IP address (either IPv4 or IPv6 address). If
4914 <var>host</var> is an IPv6 address, wrap in square brackets,
4915 e.g. <code>pssl:6640:[::1]</code>. If <var>host</var> is not
e731d71b
AS
4916 specified then it listens only on IPv4 (but not IPv6) addresses.
4917 The <ref table="Open_vSwitch" column="ssl"/> column in the <ref
94db5407
BP
4918 table="Open_vSwitch"/> table must point to a valid SSL
4919 configuration when this form is used.
4920 </p>
efc295d2 4921 <p>
d4763d1d 4922 If <var>port</var> is not specified, it defaults to 6640.
efc295d2 4923 </p>
94db5407
BP
4924 <p>
4925 SSL support is an optional feature that is not always built as
4926 part of Open vSwitch.
4927 </p>
4928 </dd>
771680d9 4929 <dt><code>ptcp:</code>[<var>port</var>][<code>:<var>host</var></code>]</dt>
94db5407 4930 <dd>
efc295d2 4931 <p>
e731d71b
AS
4932 Listens for connections on the specified TCP <var>port</var>.
4933 Specify 0 for <var>port</var> to have the kernel automatically
771680d9
YS
4934 choose an available port. If <var>host</var>, which can either
4935 be a DNS name (if built with unbound library) or an IP address,
4936 is specified, then connections are restricted to the resolved or
4937 specified local IP address (either IPv4 or IPv6 address). If
4938 <var>host</var> is an IPv6 address, wrap it in square brackets,
4939 e.g. <code>ptcp:6640:[::1]</code>. If <var>host</var> is not
e731d71b 4940 specified then it listens only on IPv4 addresses.
efc295d2
JP
4941 </p>
4942 <p>
d4763d1d 4943 If <var>port</var> is not specified, it defaults to 6640.
efc295d2 4944 </p>
94db5407
BP
4945 </dd>
4946 </dl>
4947 <p>When multiple managers are configured, the <ref column="target"/>
4948 values must be unique. Duplicate <ref column="target"/> values yield
4949 unspecified results.</p>
4950 </column>
4951
4952 <column name="connection_mode">
4953 <p>
4954 If it is specified, this setting must be one of the following strings
4955 that describes how Open vSwitch contacts this OVSDB client over the
4956 network:
4957 </p>
299a244b 4958
94db5407
BP
4959 <dl>
4960 <dt><code>in-band</code></dt>
4961 <dd>
4962 In this mode, this connection's traffic travels over a bridge
4963 managed by Open vSwitch. With this setting, Open vSwitch allows
4964 traffic to and from the client regardless of the contents of the
4965 OpenFlow flow table. (Otherwise, Open vSwitch would never be able
4966 to connect to the client, because it did not have a flow to enable
4967 it.) This is the most common connection mode because it is not
4968 necessary to maintain two independent networks.
4969 </dd>
4970 <dt><code>out-of-band</code></dt>
4971 <dd>
4972 In this mode, the client's traffic uses a control network separate
4973 from that managed by Open vSwitch, that is, Open vSwitch does not
4974 use any of its own network devices to communicate with the client.
4975 The control network must be configured separately, before or after
4976 <code>ovs-vswitchd</code> is started.
4977 </dd>
4978 </dl>
4979
4980 <p>
4981 If not specified, the default is implementation-specific.
4982 </p>
4983 </column>
4984 </group>
4985
4986 <group title="Client Failure Detection and Handling">
4987 <column name="max_backoff">
4988 Maximum number of milliseconds to wait between connection attempts.
4989 Default is implementation-specific.
4990 </column>
4991
4992 <column name="inactivity_probe">
4993 Maximum number of milliseconds of idle time on connection to the client
4994 before sending an inactivity probe message. If Open vSwitch does not
4995 communicate with the client for the specified number of seconds, it
4996 will send a probe. If a response is not received for the same
4997 additional amount of time, Open vSwitch assumes the connection has been
4998 broken and attempts to reconnect. Default is implementation-specific.
2bb82bf0 4999 A value of 0 disables inactivity probes.
94db5407
BP
5000 </column>
5001 </group>
5002
0b3e7a8b 5003 <group title="Status">
600766e8
AZ
5004 <p>
5005 Key-value pair of <ref column="is_connected"/> is always updated.
5006 Other key-value pairs in the status columns may be updated depends
5007 on the <ref column="target"/> type.
5008 </p>
5009
5010 <p>
5011 When <ref column="target"/> specifies a connection method that
5012 listens for inbound connections (e.g. <code>ptcp:</code> or
5013 <code>punix:</code>), both <ref column="n_connections"/> and
5014 <ref column="is_connected"/> may also be updated while the
5015 remaining key-value pairs are omitted.
5016 </p>
5017
5018 <p>
5019 On the other hand, when <ref column="target"/> specifies an
5020 outbound connection, all key-value pairs may be updated, except
5021 the above-mentioned two key-value pairs associated with inbound
5022 connection targets. They are omitted.
5023 </p>
5024
5025 <column name="is_connected">
0b3e7a8b
AE
5026 <code>true</code> if currently connected to this manager,
5027 <code>false</code> otherwise.
5028 </column>
5029
3fd8d445
BP
5030 <column name="status" key="last_error">
5031 A human-readable description of the last error on the connection
5032 to the manager; i.e. <code>strerror(errno)</code>. This key
5033 will exist only if an error has occurred.
5034 </column>
5035
f9e5e5b3
BP
5036 <column name="status" key="state"
5037 type='{"type": "string", "enum": ["set", ["VOID", "BACKOFF", "CONNECTING", "ACTIVE", "IDLE"]]}'>
3fd8d445 5038 <p>
f9e5e5b3 5039 The state of the connection to the manager:
3fd8d445 5040 </p>
a11f6164 5041 <dl>
3fd8d445
BP
5042 <dt><code>VOID</code></dt>
5043 <dd>Connection is disabled.</dd>
5044
5045 <dt><code>BACKOFF</code></dt>
5046 <dd>Attempting to reconnect at an increasing period.</dd>
5047
5048 <dt><code>CONNECTING</code></dt>
5049 <dd>Attempting to connect.</dd>
5050
5051 <dt><code>ACTIVE</code></dt>
5052 <dd>Connected, remote host responsive.</dd>
5053
5054 <dt><code>IDLE</code></dt>
5055 <dd>Connection is idle. Waiting for response to keep-alive.</dd>
a11f6164 5056 </dl>
3fd8d445
BP
5057 <p>
5058 These values may change in the future. They are provided only for
5059 human consumption.
5060 </p>
5061 </column>
5062
f9e5e5b3
BP
5063 <column name="status" key="sec_since_connect"
5064 type='{"type": "integer", "minInteger": 0}'>
3fd8d445
BP
5065 The amount of time since this manager last successfully connected
5066 to the database (in seconds). Value is empty if manager has never
5067 successfully connected.
5068 </column>
5069
f9e5e5b3
BP
5070 <column name="status" key="sec_since_disconnect"
5071 type='{"type": "integer", "minInteger": 0}'>
3fd8d445
BP
5072 The amount of time since this manager last disconnected from the
5073 database (in seconds). Value is empty if manager has never
5074 disconnected.
5075 </column>
5076
5077 <column name="status" key="locks_held">
5078 Space-separated list of the names of OVSDB locks that the connection
5079 holds. Omitted if the connection does not hold any locks.
5080 </column>
5081
5082 <column name="status" key="locks_waiting">
5083 Space-separated list of the names of OVSDB locks that the connection is
5084 currently waiting to acquire. Omitted if the connection is not waiting
5085 for any locks.
5086 </column>
5087
5088 <column name="status" key="locks_lost">
5089 Space-separated list of the names of OVSDB locks that the connection
5090 has had stolen by another OVSDB client. Omitted if no locks have been
5091 stolen from this connection.
5092 </column>
5093
f9e5e5b3
BP
5094 <column name="status" key="n_connections"
5095 type='{"type": "integer", "minInteger": 2}'>
600766e8
AZ
5096 When <ref column="target"/> specifies a connection method that
5097 listens for inbound connections (e.g. <code>ptcp:</code> or
5098 <code>pssl:</code>) and more than one connection is actually active,
5099 the value is the number of active connections. Otherwise, this
5100 key-value pair is omitted.
0b3e7a8b 5101 </column>
798e1352
BP
5102
5103 <column name="status" key="bound_port" type='{"type": "integer"}'>
039a8ccd
BP
5104 When <ref column="target"/> is <code>ptcp:</code> or
5105 <code>pssl:</code>, this is the TCP port on which the OVSDB server is
6c75e208 5106 listening. (This is particularly useful when <ref
039a8ccd
BP
5107 column="target"/> specifies a port of 0, allowing the kernel to
5108 choose any available port.)
798e1352 5109 </column>
0b3e7a8b 5110 </group>
3fd8d445 5111
f125905c
MM
5112 <group title="Connection Parameters">
5113 <p>
5114 Additional configuration for a connection between the manager
5115 and the Open vSwitch Database.
5116 </p>
5117
5118 <column name="other_config" key="dscp"
039a8ccd 5119 type='{"type": "integer"}'>
cea15768
EJ
5120 The Differentiated Service Code Point (DSCP) is specified using 6 bits
5121 in the Type of Service (TOS) field in the IP header. DSCP provides a
5122 mechanism to classify the network traffic and provide Quality of
5123 Service (QoS) on IP networks.
5124
5125 The DSCP value specified here is used when establishing the connection
0442efd9
MM
5126 between the manager and the Open vSwitch. If no value is specified, a
5127 default value of 48 is chosen. Valid DSCP values must be in the range
5128 0 to 63.
f125905c
MM
5129 </column>
5130 </group>
5131
3fd8d445
BP
5132 <group title="Common Columns">
5133 The overall purpose of these columns is described under <code>Common
5134 Columns</code> at the beginning of this document.
5135
5136 <column name="external_ids"/>
f125905c 5137 <column name="other_config"/>
3fd8d445 5138 </group>
94db5407
BP
5139 </table>
5140
89365653
BP
5141 <table name="NetFlow">
5142 A NetFlow target. NetFlow is a protocol that exports a number of
5143 details about terminating IP flows, such as the principals involved
5144 and duration.
5145
5146 <column name="targets">
5147 NetFlow targets in the form
5148 <code><var>ip</var>:<var>port</var></code>. The <var>ip</var>
5149 must be specified numerically, not as a DNS name.
5150 </column>
5151
5152 <column name="engine_id">
5153 Engine ID to use in NetFlow messages. Defaults to datapath index
5154 if not specified.
5155 </column>
5156
5157 <column name="engine_type">
5158 Engine type to use in NetFlow messages. Defaults to datapath
5159 index if not specified.
5160 </column>
5161
5162 <column name="active_timeout">
a70f8b11 5163 <p>
039a8ccd
BP
5164 The interval at which NetFlow records are sent for flows that
5165 are still active, in seconds. A value of <code>0</code>
5166 requests the default timeout (currently 600 seconds); a value
5167 of <code>-1</code> disables active timeouts.
a70f8b11
BP
5168 </p>
5169
5170 <p>
039a8ccd
BP
5171 The NetFlow passive timeout, for flows that become inactive,
5172 is not configurable. It will vary depending on the Open
5173 vSwitch version, the forms and contents of the OpenFlow flow
5174 tables, CPU and memory usage, and network activity. A typical
5175 passive timeout is about a second.
a70f8b11 5176 </p>
89365653
BP
5177 </column>
5178
5179 <column name="add_id_to_interface">
5180 <p>If this column's value is <code>false</code>, the ingress and egress
3fd8d445
BP
5181 interface fields of NetFlow flow records are derived from OpenFlow port
5182 numbers. When it is <code>true</code>, the 7 most significant bits of
5183 these fields will be replaced by the least significant 7 bits of the
5184 engine id. This is useful because many NetFlow collectors do not
5185 expect multiple switches to be sending messages from the same host, so
5186 they do not store the engine information which could be used to
5187 disambiguate the traffic.</p>
89365653
BP
5188 <p>When this option is enabled, a maximum of 508 ports are supported.</p>
5189 </column>
13008eb3 5190
3fd8d445
BP
5191 <group title="Common Columns">
5192 The overall purpose of these columns is described under <code>Common
5193 Columns</code> at the beginning of this document.
5194
5195 <column name="external_ids"/>
5196 </group>
89365653
BP
5197 </table>
5198
5199 <table name="SSL">
5200 SSL configuration for an Open_vSwitch.
5201
5202 <column name="private_key">
5203 Name of a PEM file containing the private key used as the switch's
5204 identity for SSL connections to the controller.
5205 </column>
5206
5207 <column name="certificate">
5208 Name of a PEM file containing a certificate, signed by the
5209 certificate authority (CA) used by the controller and manager,
5210 that certifies the switch's private key, identifying a trustworthy
5211 switch.
5212 </column>
5213
5214 <column name="ca_cert">
5215 Name of a PEM file containing the CA certificate used to verify
5216 that the switch is connected to a trustworthy controller.
5217 </column>
5218
5219 <column name="bootstrap_ca_cert">
5220 If set to <code>true</code>, then Open vSwitch will attempt to
5221 obtain the CA certificate from the controller on its first SSL
5222 connection and save it to the named PEM file. If it is successful,
5223 it will immediately drop the connection and reconnect, and from then
5224 on all SSL connections must be authenticated by a certificate signed
5225 by the CA certificate thus obtained. <em>This option exposes the
3fd8d445
BP
5226 SSL connection to a man-in-the-middle attack obtaining the initial
5227 CA certificate.</em> It may still be useful for bootstrapping.
89365653 5228 </column>
13008eb3 5229
3fd8d445
BP
5230 <group title="Common Columns">
5231 The overall purpose of these columns is described under <code>Common
5232 Columns</code> at the beginning of this document.
5233
5234 <column name="external_ids"/>
5235 </group>
89365653
BP
5236 </table>
5237
5238 <table name="sFlow">
29089a54
RL
5239 <p>A set of sFlow(R) targets. sFlow is a protocol for remote
5240 monitoring of switches.</p>
89365653
BP
5241
5242 <column name="agent">
96657459
BP
5243 <p>
5244 Determines the agent address, that is, the IP address reported to
5245 collectors as the source of the sFlow data. It may be an IP address or
5246 the name of a network device. In the latter case, the network device's
5247 IP address is used,
5248 </p>
5249
5250 <p>
5251 If not specified, the agent device is figured from the first target
5252 address and the routing table. If the routing table does not contain a
5253 route to the target, the IP address defaults to the <ref
5254 table="Controller" column="local_ip"/> in the collector's <ref
5255 table="Controller"/>.
5256 </p>
5257
5258 <p>
5259 If an agent IP address cannot be determined, sFlow is disabled.
5260 </p>
89365653
BP
5261 </column>
5262
5263 <column name="header">
5264 Number of bytes of a sampled packet to send to the collector.
5265 If not specified, the default is 128 bytes.
5266 </column>
5267
5268 <column name="polling">
5269 Polling rate in seconds to send port statistics to the collector.
5270 If not specified, defaults to 30 seconds.
5271 </column>
5272
5273 <column name="sampling">
5274 Rate at which packets should be sampled and sent to the collector.
5275 If not specified, defaults to 400, which means one out of 400
5276 packets, on average, will be sent to the collector.
5277 </column>
5278
5279 <column name="targets">
5280 sFlow targets in the form
5281 <code><var>ip</var>:<var>port</var></code>.
5282 </column>
13008eb3 5283
3fd8d445
BP
5284 <group title="Common Columns">
5285 The overall purpose of these columns is described under <code>Common
5286 Columns</code> at the beginning of this document.
5287
5288 <column name="external_ids"/>
5289 </group>
89365653 5290 </table>
c1c9c9c4 5291
29089a54 5292 <table name="IPFIX">
99ec8f05 5293 <p>Configuration for sending packets to IPFIX collectors.</p>
29089a54 5294
99ec8f05
BP
5295 <p>
5296 IPFIX is a protocol that exports a number of details about flows. The
5297 IPFIX implementation in Open vSwitch samples packets at a configurable
5298 rate, extracts flow information from those packets, optionally caches and
5299 aggregates the flow information, and sends the result to one or more
5300 collectors.
5301 </p>
29089a54 5302
99ec8f05
BP
5303 <p>
5304 IPFIX in Open vSwitch can be configured two different ways:
5305 </p>
29089a54 5306
99ec8f05
BP
5307 <ul>
5308 <li>
5309 With <em>per-bridge sampling</em>, Open vSwitch performs IPFIX sampling
5310 automatically on all packets that pass through a bridge. To configure
5311 per-bridge sampling, create an <ref table="IPFIX"/> record and point a
5312 <ref table="Bridge"/> table's <ref table="Bridge" column="ipfix"/>
5313 column to it. The <ref table="Flow_Sample_Collector_Set"/> table is
5314 not used for per-bridge sampling.
5315 </li>
5316
5317 <li>
5318 <p>
5319 With <em>flow-based sampling</em>, <code>sample</code> actions in the
5320 OpenFlow flow table drive IPFIX sampling. See
5321 <code>ovs-ofctl</code>(8) for a description of the
5322 <code>sample</code> action.
5323 </p>
5324
5325 <p>
5326 Flow-based sampling also requires database configuration: create a
5327 <ref table="IPFIX"/> record that describes the IPFIX configuration
5328 and a <ref table="Flow_Sample_Collector_Set"/> record that points to
5329 the <ref table="Bridge"/> whose flow table holds the
5330 <code>sample</code> actions and to <ref table="IPFIX"/> record. The
5331 <ref table="Bridge" column="ipfix"/> in the <ref table="Bridge"/>
5332 table is not used for flow-based sampling.
5333 </p>
5334 </li>
5335 </ul>
29089a54 5336
99ec8f05
BP
5337 <column name="targets">
5338 IPFIX target collectors in the form
5339 <code><var>ip</var>:<var>port</var></code>.
29089a54
RL
5340 </column>
5341
978427a5
RL
5342 <column name="cache_active_timeout">
5343 The maximum period in seconds for which an IPFIX flow record is
5344 cached and aggregated before being sent. If not specified,
5345 defaults to 0. If 0, caching is disabled.
5346 </column>
5347
5348 <column name="cache_max_flows">
5349 The maximum number of IPFIX flow records that can be cached at a
5350 time. If not specified, defaults to 0. If 0, caching is
5351 disabled.
5352 </column>
5353
f69f713b
BY
5354 <column name="other_config" key="enable-tunnel-sampling"
5355 type='{"type": "boolean"}'>
5356 <p>
5357 Set to <code>true</code> to enable sampling and reporting tunnel
5358 header 7-tuples in IPFIX flow records. Tunnel sampling is enabled
5359 by default.
5360 </p>
5361
5362 <p>
5363 The following enterprise entities report the sampled tunnel info:
5364 </p>
5365
5366 <dl>
5367 <dt>tunnelType:</dt>
5368 <dd>
5369 <p>ID: 891, and enterprise ID 6876 (VMware).</p>
5370 <p>type: unsigned 8-bit integer.</p>
5371 <p>data type semantics: identifier.</p>
5372 <p>description: Identifier of the layer 2 network overlay network
2b02d770 5373 encapsulation type: 0x01 VxLAN, 0x02 GRE, 0x03 LISP, 0x07 GENEVE.</p>
f69f713b
BY
5374 </dd>
5375 <dt>tunnelKey:</dt>
5376 <dd>
5377 <p>ID: 892, and enterprise ID 6876 (VMware).</p>
5378 <p>type: variable-length octetarray.</p>
5379 <p>data type semantics: identifier.</p>
5380 <p>description: Key which is used for identifying an individual
5381 traffic flow within a VxLAN (24-bit VNI), GENEVE (24-bit VNI),
5382 GRE (32-bit key), or LISP (24-bit instance ID) tunnel. The
5383 key is encoded in this octetarray as a 3-, 4-, or 8-byte integer
5384 ID in network byte order.</p>
5385 </dd>
5386 <dt>tunnelSourceIPv4Address:</dt>
5387 <dd>
5388 <p>ID: 893, and enterprise ID 6876 (VMware).</p>
5389 <p>type: unsigned 32-bit integer.</p>
5390 <p>data type semantics: identifier.</p>
5391 <p>description: The IPv4 source address in the tunnel IP packet
5392 header.</p>
5393 </dd>
5394 <dt>tunnelDestinationIPv4Address:</dt>
5395 <dd>
5396 <p>ID: 894, and enterprise ID 6876 (VMware).</p>
5397 <p>type: unsigned 32-bit integer.</p>
5398 <p>data type semantics: identifier.</p>
5399 <p>description: The IPv4 destination address in the tunnel IP
5400 packet header.</p>
5401 </dd>
5402 <dt>tunnelProtocolIdentifier:</dt>
5403 <dd>
5404 <p>ID: 895, and enterprise ID 6876 (VMware).</p>
5405 <p>type: unsigned 8-bit integer.</p>
5406 <p>data type semantics: identifier.</p>
5407 <p>description: The value of the protocol number in the tunnel
5408 IP packet header. The protocol number identifies the tunnel IP
5409 packet payload type.</p>
5410 </dd>
5411 <dt>tunnelSourceTransportPort:</dt>
5412 <dd>
5413 <p>ID: 896, and enterprise ID 6876 (VMware).</p>
5414 <p>type: unsigned 16-bit integer.</p>
5415 <p>data type semantics: identifier.</p>
5416 <p>description: The source port identifier in the tunnel transport
5417 header. For the transport protocols UDP, TCP, and SCTP, this is
5418 the source port number given in the respective header.</p>
5419 </dd>
5420 <dt>tunnelDestinationTransportPort:</dt>
5421 <dd>
5422 <p>ID: 897, and enterprise ID 6876 (VMware).</p>
5423 <p>type: unsigned 16-bit integer.</p>
5424 <p>data type semantics: identifier.</p>
5425 <p>description: The destination port identifier in the tunnel
5426 transport header. For the transport protocols UDP, TCP, and SCTP,
5427 this is the destination port number given in the respective header.
5428 </p>
5429 </dd>
5430 </dl>
5431
5432 <p>
5433 Before Open vSwitch 2.5.90, <ref column="other_config"
5434 key="enable-tunnel-sampling"/> was only supported with per-bridge
5435 sampling, and ignored otherwise. Open vSwitch 2.5.90 and later support
5436 <ref column="other_config" key="enable-tunnel-sampling"/> for
5437 per-bridge and per-flow sampling.
5438 </p>
5439 </column>
5440
c97320eb
WZ
5441 <column name="other_config" key="virtual_obs_id"
5442 type='{"type": "string"}'>
5443 <p>
5444 A string that accompanies each IPFIX flow record. Its intended use is
5445 for the ``virtual observation ID,'' an identifier of a virtual
5446 observation point that is locally unique in a virtual network. It
5447 describes a location in the virtual network where IP packets can be
5448 observed. The maximum length is 254 bytes. If not specified, the
5449 field is omitted from the IPFIX flow record.
5450 </p>
5451
5452 <p>
5453 The following enterprise entity reports the specified virtual
5454 observation ID:
5455 </p>
5456
5457 <dl>
5458 <dt>virtualObsID:</dt>
5459 <dd>
5460 <p>ID: 898, and enterprise ID 6876 (VMware).</p>
5461 <p>type: variable-length string.</p>
5462 <p>data type semantics: identifier.</p>
5463 <p>description: A virtual observation domain ID that is locally
5464 unique in a virtual network.
5465 </p>
5466 </dd>
5467 </dl>
5468
5469 <p>
5470 This feature was introduced in Open vSwitch 2.5.90.
5471 </p>
5472 </column>
5473
99ec8f05
BP
5474 <group title="Per-Bridge Sampling">
5475 <p>
5476 These values affect only per-bridge sampling. See above for a
5477 description of the differences between per-bridge and flow-based
5478 sampling.
5479 </p>
8b7ea2d4 5480
99ec8f05
BP
5481 <column name="sampling">
5482 The rate at which packets should be sampled and sent to each target
5483 collector. If not specified, defaults to 400, which means one out of
5484 400 packets, on average, will be sent to each target collector.
5485 </column>
8b7ea2d4 5486
99ec8f05
BP
5487 <column name="obs_domain_id">
5488 The IPFIX Observation Domain ID sent in each IPFIX packet. If not
5489 specified, defaults to 0.
5490 </column>
5491
5492 <column name="obs_point_id">
5493 The IPFIX Observation Point ID sent in each IPFIX flow record. If not
5494 specified, defaults to 0.
5495 </column>
5496
99ec8f05
BP
5497 <column name="other_config" key="enable-input-sampling"
5498 type='{"type": "boolean"}'>
5499 By default, Open vSwitch samples and reports flows at bridge port input
5500 in IPFIX flow records. Set this column to <code>false</code> to
5501 disable input sampling.
5502 </column>
5503
5504 <column name="other_config" key="enable-output-sampling"
5505 type='{"type": "boolean"}'>
5506 By default, Open vSwitch samples and reports flows at bridge port
5507 output in IPFIX flow records. Set this column to <code>false</code> to
5508 disable output sampling.
5509 </column>
5510 </group>
8b7ea2d4 5511
29089a54
RL
5512 <group title="Common Columns">
5513 The overall purpose of these columns is described under <code>Common
5514 Columns</code> at the beginning of this document.
5515
5516 <column name="external_ids"/>
5517 </group>
5518 </table>
5519
5520 <table name="Flow_Sample_Collector_Set">
99ec8f05
BP
5521 <p>
5522 A set of IPFIX collectors of packet samples generated by OpenFlow
5523 <code>sample</code> actions. This table is used only for IPFIX
5524 flow-based sampling, not for per-bridge sampling (see the <ref
5525 table="IPFIX"/> table for a description of the two forms).
5526 </p>
29089a54
RL
5527
5528 <column name="id">
5529 The ID of this collector set, unique among the bridge's
5530 collector sets, to be used as the <code>collector_set_id</code>
5531 in OpenFlow <code>sample</code> actions.
5532 </column>
5533
5534 <column name="bridge">
5535 The bridge into which OpenFlow <code>sample</code> actions can
5536 be added to send packet samples to this set of IPFIX collectors.
5537 </column>
5538
5539 <column name="ipfix">
5540 Configuration of the set of IPFIX collectors to send one flow
5541 record per sampled packet to.
5542 </column>
5543
5544 <group title="Common Columns">
5545 The overall purpose of these columns is described under <code>Common
5546 Columns</code> at the beginning of this document.
5547
5548 <column name="external_ids"/>
5549 </group>
5550 </table>
5551
99eef98b 5552 <table name="AutoAttach">
039a8ccd
BP
5553 <p>
5554 Auto Attach configuration within a bridge. The IETF Auto-Attach SPBM
5555 draft standard describes a compact method of using IEEE 802.1AB Link
5556 Layer Discovery Protocol (LLDP) together with a IEEE 802.1aq Shortest
5557 Path Bridging (SPB) network to automatically attach network devices
5558 to individual services in a SPB network. The intent here is to allow
5559 network applications and devices using OVS to be able to easily take
5560 advantage of features offered by industry standard SPB networks.
5561 </p>
5562
5563 <p>
5564 Auto Attach (AA) uses LLDP to communicate between a directly connected
5565 Auto Attach Client (AAC) and Auto Attach Server (AAS). The LLDP protocol
5566 is extended to add two new Type-Length-Value tuples (TLVs). The first
5567 new TLV supports the ongoing discovery of directly connected AA
5568 correspondents. Auto Attach operates by regularly transmitting AA
5569 discovery TLVs between the AA client and AA server. By exchanging these
5570 discovery messages, both the AAC and AAS learn the system name and
5571 system description of their peer. In the OVS context, OVS operates as
5572 the AA client and the AA server resides on a switch at the edge of the
5573 SPB network.
5574 </p>
5575
5576 <p>
5577 Once AA discovery has been completed the AAC then uses the second new TLV
5578 to deliver identifier mappings from the AAC to the AAS. A primary feature
5579 of Auto Attach is to facilitate the mapping of VLANs defined outside the
5580 SPB network onto service ids (ISIDs) defined within the SPM network. By
5581 doing so individual external VLANs can be mapped onto specific SPB
5582 network services. These VLAN id to ISID mappings can be configured and
5583 managed locally using new options added to the ovs-vsctl command.
5584 </p>
5585
5586 <p>
5587 The Auto Attach OVS feature does not provide a full implementation of
5588 the LLDP protocol. Support for the mandatory TLVs as defined by the LLDP
5589 standard and support for the AA TLV extensions is provided. LLDP
5590 protocol support in OVS can be enabled or disabled on a port by port
5591 basis. LLDP support is disabled by default.
5592 </p>
99eef98b
DF
5593
5594 <column name="system_name">
5595 The system_name string is exported in LLDP messages. It should uniquely
5596 identify the bridge in the network.
5597 </column>
5598
5599 <column name="system_description">
5600 The system_description string is exported in LLDP messages. It should
5601 describe the type of software and hardware.
5602 </column>
5603
5604 <column name="mappings">
039a8ccd
BP
5605 A mapping from SPB network Individual Service Identifier (ISID) to VLAN
5606 id.
99eef98b
DF
5607 </column>
5608 </table>
89365653 5609</database>