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