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