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