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