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