]> git.proxmox.com Git - ovs.git/blob - vswitchd/vswitch.xml
vswitch: Add other-config:in-band-queue to set queue for in-band control.
[ovs.git] / vswitchd / vswitch.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <database title="Open vSwitch Configuration Database">
3 <p>A database with this schema holds the configuration for one Open
4 vSwitch daemon. The root of the configuration for the daemon is
5 the <ref table="Open_vSwitch"/> table, which must have exactly one
6 record. Records in other tables are significant only when they
7 can be reached directly or indirectly from the
8 <ref table="Open_vSwitch"/> table.</p>
9
10 <table name="Open_vSwitch" title="Open vSwitch configuration.">
11 Configuration for an Open vSwitch daemon. There must be exactly one record
12 in the <ref table="Open_vSwitch"/> table.
13
14 <group title="Configuration">
15 <column name="bridges">
16 Set of bridges managed by the daemon.
17 </column>
18
19 <column name="ssl">
20 SSL used globally by the daemon.
21 </column>
22
23 <column name="external_ids">
24 Key-value pairs for use by external frameworks that integrate
25 with Open vSwitch, rather than by Open vSwitch itself. System
26 integrators should either use the Open vSwitch development
27 mailing list to coordinate on common key-value definitions, or
28 choose key names that are likely to be unique. The currently
29 defined common key-value pairs are:
30 <dl>
31 <dt><code>system-type</code></dt>
32 <dd>An identifier for the switch type, such as
33 <code>XenServer</code> or <code>KVM</code>.</dd>
34 <dt><code>system-version</code></dt>
35 <dd>The version of the switch software, such as
36 <code>5.6.0</code> on XenServer.</dd>
37 <dt><code>system-id</code></dt>
38 <dd>A unique identifier for the Open vSwitch's physical host.
39 The form of the identifier depends on the type of the host.
40 On a Citrix XenServer, this will likely be the same as
41 <code>xs-system-uuid</code>.</dd>
42 <dt><code>xs-system-uuid</code></dt>
43 <dd>The Citrix XenServer universally unique identifier for the
44 physical host as displayed by <code>xe host-list</code>.</dd>
45 </dl>
46 </column>
47 </group>
48
49 <group title="Status">
50 <column name="next_cfg">
51 Sequence number for client to increment. When a client modifies
52 any part of the database configuration and wishes to wait for
53 Open vSwitch to finish applying the changes, it may increment
54 this sequence number.
55 </column>
56
57 <column name="cur_cfg">
58 Sequence number that Open vSwitch sets to the current value of
59 <ref column="next_cfg"/> after it finishes applying a set of
60 configuration changes.
61 </column>
62
63 <column name="capabilities">
64 Describes functionality supported by the hardware and software platform
65 on which this Open vSwitch is based. Clients should not modify this
66 column. See the <ref table="Capability"/> description for defined
67 capability categories and the meaning of associated
68 <ref table="Capability"/> records.
69 </column>
70
71 <column name="statistics">
72 <p>
73 Key-value pairs that report statistics about a system running an Open
74 vSwitch. These are updated periodically (currently, every 5
75 seconds). Key-value pairs that cannot be determined or that do not
76 apply to a platform are omitted.
77 </p>
78
79 <dl>
80 <dt><code>cpu</code></dt>
81 <dd>
82 <p>
83 Number of CPU processors, threads, or cores currently online and
84 available to the operating system on which Open vSwitch is
85 running, as an integer. This may be less than the number
86 installed, if some are not online or if they are not available to
87 the operating system.
88 </p>
89 <p>
90 Open vSwitch userspace processes are not multithreaded, but the
91 Linux kernel-based datapath is.
92 </p>
93 </dd>
94
95 <dt><code>load_average</code></dt>
96 <dd>
97 <p>
98 A comma-separated list of three floating-point numbers,
99 representing the system load average over the last 1, 5, and 15
100 minutes, respectively.
101 </p>
102 </dd>
103
104 <dt><code>memory</code></dt>
105 <dd>
106 <p>
107 A comma-separated list of integers, each of which represents a
108 quantity of memory in kilobytes that describes the operating
109 system on which Open vSwitch is running. In respective order,
110 these values are:
111 </p>
112
113 <ol>
114 <li>Total amount of RAM allocated to the OS.</li>
115 <li>RAM allocated to the OS that is in use.</li>
116 <li>RAM that can be flushed out to disk or otherwise discarded
117 if that space is needed for another purpose. This number is
118 necessarily less than or equal to the previous value.</li>
119 <li>Total disk space allocated for swap.</li>
120 <li>Swap space currently in use.</li>
121 </ol>
122
123 <p>
124 On Linux, all five values can be determined and are included. On
125 other operating systems, only the first two values can be
126 determined, so the list will only have two values.
127 </p>
128 </dd>
129
130 <dt><code>process_</code><var>name</var></dt>
131 <dd>
132 <p>
133 One such key-value pair will exist for each running Open vSwitch
134 daemon process, with <var>name</var> replaced by the daemon's
135 name (e.g. <code>process_ovs-vswitchd</code>). The value is a
136 comma-separated list of integers. The integers represent the
137 following, with memory measured in kilobytes and durations in
138 milliseconds:
139 </p>
140
141 <ol>
142 <li>The process's virtual memory size.</li>
143 <li>The process's resident set size.</li>
144 <li>The amount of user and system CPU time consumed by the
145 process.</li>
146 <li>The number of times that the process has crashed and been
147 automatically restarted by the monitor.</li>
148 <li>The duration since the process was started.</li>
149 <li>The duration for which the process has been running.</li>
150 </ol>
151
152 <p>
153 The interpretation of some of these values depends on whether the
154 process was started with the <option>--monitor</option>. If it
155 was not, then the crash count will always be 0 and the two
156 durations will always be the same. If <option>--monitor</option>
157 was given, then the crash count may be positive; if it is, the
158 latter duration is the amount of time since the most recent crash
159 and restart.
160 </p>
161
162 <p>
163 There will be one key-value pair for each file in Open vSwitch's
164 ``run directory'' (usually <code>/var/run/openvswitch</code>)
165 whose name ends in <code>.pid</code>, whose contents are a
166 process ID, and which is locked by a running process. The
167 <var>name</var> is taken from the pidfile's name.
168 </p>
169
170 <p>
171 Currently Open vSwitch is only able to obtain all of the above
172 detail on Linux systems. On other systems, the same key-value
173 pairs will be present but the values will always be the empty
174 string.
175 </p>
176 </dd>
177
178 <dt><code>file_systems</code></dt>
179 <dd>
180 <p>
181 A space-separated list of information on local, writable file
182 systems. Each item in the list describes one file system and
183 consists in turn of a comma-separated list of the following:
184 </p>
185
186 <ol>
187 <li>Mount point, e.g. <code>/</code> or <code>/var/log</code>.
188 Any spaces or commas in the mount point are replaced by
189 underscores.</li>
190 <li>Total size, in kilobytes, as an integer.</li>
191 <li>Amount of storage in use, in kilobytes, as an integer.</li>
192 </ol>
193
194 <p>
195 This key-value pair is omitted if there are no local, writable
196 file systems or if Open vSwitch cannot obtain the needed
197 information.
198 </p>
199 </dd>
200 </dl>
201 </column>
202 </group>
203
204 <group title="Database Configuration">
205 <p>
206 These columns primarily configure the Open vSwitch database
207 (<code>ovsdb-server</code>), not the Open vSwitch switch
208 (<code>ovs-vswitchd</code>). The OVSDB database also uses the <ref
209 column="ssl"/> settings.
210 </p>
211
212 <p>
213 The Open vSwitch switch does read the database configuration to
214 determine remote IP addresses to which in-band control should apply.
215 </p>
216
217 <column name="manager_options">
218 Database clients to which the Open vSwitch database server should
219 connect or to which it should listen, along with options for how these
220 connection should be configured. See the <ref table="Manager"/> table
221 for more information.
222 </column>
223
224 <column name="managers">
225 <p>
226 Remote database clients to which the Open vSwitch's database server
227 should connect or to which it should listen. Adding an OVSDB target
228 to this set is equivalent to adding it to <ref
229 column="manager_options"/> with all of the default options.
230 </p>
231
232 <p>
233 Use of this column is deprecated and may be removed sometime in the
234 future. New applications should use and set <ref
235 column="manager_options"/> instead.
236 </p>
237 </column>
238 </group>
239 </table>
240
241 <table name="Bridge">
242 <p>
243 Configuration for a bridge within an
244 <ref table="Open_vSwitch"/>.
245 </p>
246 <p>
247 A <ref table="Bridge"/> record represents an Ethernet switch with one or
248 more ``ports,'' which are the <ref table="Port"/> records pointed to by
249 the <ref table="Bridge"/>'s <ref column="ports"/> column.
250 </p>
251
252 <group title="Core Features">
253 <column name="name">
254 Bridge identifier. Should be alphanumeric and no more than about 8
255 bytes long. Must be unique among the names of ports, interfaces, and
256 bridges on a host.
257 </column>
258
259 <column name="ports">
260 Ports included in the bridge.
261 </column>
262
263 <column name="mirrors">
264 Port mirroring configuration.
265 </column>
266
267 <column name="netflow">
268 NetFlow configuration.
269 </column>
270
271 <column name="sflow">
272 sFlow configuration.
273 </column>
274
275 <column name="flood_vlans">
276 VLAN IDs of VLANs on which MAC address learning should be disabled, so
277 that packets are flooded instead of being sent to specific ports that
278 are believed to contain packets' destination MACs. This should
279 ordinarily be used to disable MAC learning on VLANs used for mirroring
280 (RSPAN VLANs). It may also be useful for debugging.
281 </column>
282 </group>
283
284 <group title="OpenFlow Configuration">
285 <column name="controller">
286 OpenFlow controller set. If unset, then no OpenFlow controllers
287 will be used.
288 </column>
289
290 <column name="fail_mode">
291 <p>When a controller is configured, it is, ordinarily, responsible
292 for setting up all flows on the switch. Thus, if the connection to
293 the controller fails, no new network connections can be set up.
294 If the connection to the controller stays down long enough,
295 no packets can pass through the switch at all. This setting
296 determines the switch's response to such a situation. It may be set
297 to one of the following:
298 <dl>
299 <dt><code>standalone</code></dt>
300 <dd>If no message is received from the controller for three
301 times the inactivity probe interval
302 (see <ref column="inactivity_probe"/>), then Open vSwitch
303 will take over responsibility for setting up flows. In
304 this mode, Open vSwitch causes the bridge to act like an
305 ordinary MAC-learning switch. Open vSwitch will continue
306 to retry connecting to the controller in the background
307 and, when the connection succeeds, it will discontinue its
308 standalone behavior.</dd>
309 <dt><code>secure</code></dt>
310 <dd>Open vSwitch will not set up flows on its own when the
311 controller connection fails or when no controllers are
312 defined. The bridge will continue to retry connecting to
313 any defined controllers forever.</dd>
314 </dl>
315 </p>
316 <p>If this value is unset, the default is implementation-specific.</p>
317 <p>When more than one controller is configured,
318 <ref column="fail_mode"/> is considered only when none of the
319 configured controllers can be contacted.</p>
320 </column>
321
322 <column name="datapath_id">
323 Reports the OpenFlow datapath ID in use. Exactly 16 hex
324 digits. (Setting this column will have no useful effect. Set
325 <ref column="other_config"/>:<code>other-config</code>
326 instead.)
327 </column>
328 </group>
329
330 <group title="Other Features">
331 <column name="datapath_type">
332 Name of datapath provider. The kernel datapath has
333 type <code>system</code>. The userspace datapath has
334 type <code>netdev</code>.
335 </column>
336
337 <column name="external_ids">
338 Key-value pairs for use by external frameworks that integrate
339 with Open vSwitch, rather than by Open vSwitch itself. System
340 integrators should either use the Open vSwitch development
341 mailing list to coordinate on common key-value definitions, or
342 choose key names that are likely to be unique. The currently
343 defined key-value pairs are:
344 <dl>
345 <dt><code>bridge-id</code></dt>
346 <dd>A unique identifier of the bridge. On Citrix XenServer this
347 will commonly be the same as <code>xs-network-uuids</code>.</dd>
348 <dt><code>xs-network-uuids</code></dt>
349 <dd>Semicolon-delimited set of universally unique identifier(s) for
350 the network with which this bridge is associated on a Citrix
351 XenServer host. The network identifiers are RFC 4122 UUIDs as
352 displayed by, e.g., <code>xe network-list</code>.</dd>
353 </dl>
354 </column>
355
356 <column name="other_config">
357 Key-value pairs for configuring rarely used bridge
358 features. The currently defined key-value pairs are:
359 <dl>
360 <dt><code>datapath-id</code></dt>
361 <dd>Exactly 16 hex
362 digits to set the OpenFlow datapath ID to a specific
363 value. May not be all-zero.</dd>
364 <dt><code>disable-in-band</code></dt>
365 <dd>If set to <code>true</code>, disable in-band control on
366 the bridge regardless of controller and manager settings.</dd>
367 <dt><code>hwaddr</code></dt>
368 <dd>An Ethernet address in the form
369 <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>
370 to set the hardware address of the local port and influence the
371 datapath ID.</dd>
372 <dt><code>in-band-queue</code></dt>
373 <dd>
374 A queue ID as a nonnegative integer. This sets the OpenFlow queue
375 ID that will be used by flows set up by in-band control on this
376 bridge. If unset, or if the port used by an in-band control flow
377 does not have QoS configured, or if the port does not have a queue
378 with the specified ID, the default queue is used instead.
379 </dd>
380 </dl>
381 </column>
382 </group>
383 </table>
384
385 <table name="Port" table="Port or bond configuration.">
386 <p>A port within a <ref table="Bridge"/>.</p>
387 <p>Most commonly, a port has exactly one ``interface,'' pointed to by its
388 <ref column="interfaces"/> column. Such a port logically
389 corresponds to a port on a physical Ethernet switch. A port
390 with more than one interface is a ``bonded port'' (see
391 <ref group="Bonding Configuration"/>).</p>
392 <p>Some properties that one might think as belonging to a port are actually
393 part of the port's <ref table="Interface"/> members.</p>
394
395 <column name="name">
396 Port name. Should be alphanumeric and no more than about 8
397 bytes long. May be the same as the interface name, for
398 non-bonded ports. Must otherwise be unique among the names of
399 ports, interfaces, and bridges on a host.
400 </column>
401
402 <column name="interfaces">
403 The port's interfaces. If there is more than one, this is a
404 bonded Port.
405 </column>
406
407 <group title="VLAN Configuration">
408 <p>A bridge port must be configured for VLANs in one of two
409 mutually exclusive ways:
410 <ul>
411 <li>A ``trunk port'' has an empty value for <ref
412 column="tag"/>. Its <ref column="trunks"/> value may be
413 empty or non-empty.</li>
414 <li>An ``implicitly tagged VLAN port'' or ``access port''
415 has an nonempty value for <ref column="tag"/>. Its
416 <ref column="trunks"/> value must be empty.</li>
417 </ul>
418 If <ref column="trunks"/> and <ref column="tag"/> are both
419 nonempty, the configuration is ill-formed.
420 </p>
421
422 <column name="tag">
423 <p>
424 If this is an access port (see above), the port's implicitly
425 tagged VLAN. Must be empty if this is a trunk port.
426 </p>
427 <p>
428 Frames arriving on trunk ports will be forwarded to this
429 port only if they are tagged with the given VLAN (or, if
430 <ref column="tag"/> is 0, then if they lack a VLAN header).
431 Frames arriving on other access ports will be forwarded to
432 this port only if they have the same <ref column="tag"/>
433 value. Frames forwarded to this port will not have an
434 802.1Q header.
435 </p>
436 <p>
437 When a frame with a 802.1Q header that indicates a nonzero
438 VLAN is received on an access port, it is discarded.
439 </p>
440 </column>
441
442 <column name="trunks">
443 <p>
444 If this is a trunk port (see above), the 802.1Q VLAN(s) that
445 this port trunks; if it is empty, then the port trunks all
446 VLANs. Must be empty if this is an access port.
447 </p>
448 <p>
449 Frames arriving on trunk ports are dropped if they are not
450 in one of the specified VLANs. For this purpose, packets
451 that have no VLAN header are treated as part of VLAN 0.
452 </p>
453 </column>
454 </group>
455
456 <group title="Bonding Configuration">
457 <p>A port that has more than one interface is a ``bonded port.''
458 Bonding allows for load balancing and fail-over. Open vSwitch
459 supports ``source load balancing'' (SLB) bonding, which
460 assigns flows to slaves based on source MAC address, with
461 periodic rebalancing as traffic patterns change. This form of
462 bonding does not require 802.3ad or other special support from
463 the upstream switch to which the slave devices are
464 connected.</p>
465
466 <p>These columns apply only to bonded ports. Their values are
467 otherwise ignored.</p>
468
469 <column name="bond_updelay">
470 <p>For a bonded port, the number of milliseconds for which carrier must
471 stay up on an interface before the interface is considered to be up.
472 Specify <code>0</code> to enable the interface immediately.</p>
473 <p>This setting is honored only when at least one bonded interface is
474 already enabled. When no interfaces are enabled, then the first bond
475 interface to come up is enabled immediately.</p>
476 </column>
477
478 <column name="bond_downdelay">
479 For a bonded port, the number of milliseconds for which carrier must
480 stay down on an interface before the interface is considered to be
481 down. Specify <code>0</code> to disable the interface immediately.
482 </column>
483
484 <column name="bond_fake_iface">
485 For a bonded port, whether to create a fake internal interface with the
486 name of the port. Use only for compatibility with legacy software that
487 requires this.
488 </column>
489 </group>
490
491 <group title="Other Features">
492 <column name="qos">
493 Quality of Service configuration for this port.
494 </column>
495
496 <column name="mac">
497 The MAC address to use for this port for the purpose of choosing the
498 bridge's MAC address. This column does not necessarily reflect the
499 port's actual MAC address, nor will setting it change the port's actual
500 MAC address.
501 </column>
502
503 <column name="fake_bridge">
504 Does this port represent a sub-bridge for its tagged VLAN within the
505 Bridge? See ovs-vsctl(8) for more information.
506 </column>
507
508 <column name="external_ids">
509 <p>
510 Key-value pairs for use by external frameworks that integrate with
511 Open vSwitch, rather than by Open vSwitch itself. System integrators
512 should either use the Open vSwitch development mailing list to
513 coordinate on common key-value definitions, or choose key names that
514 are likely to be unique.
515 </p>
516 <p>
517 No key-value pairs native to <ref table="Port"/> are currently
518 defined. For fake bridges (see the <ref column="fake_bridge"/>
519 column), external IDs for the fake bridge are defined here by
520 prefixing a <ref table="Bridge"/> <ref table="Bridge"
521 column="external_ids"/> key with <code>fake-bridge-</code>,
522 e.g. <code>fake-bridge-xs-network-uuids</code>.
523 </p>
524 </column>
525
526 <column name="other_config">
527 Key-value pairs for configuring rarely used port features. The
528 currently defined key-value pairs are:
529 <dl>
530 <dt><code>hwaddr</code></dt>
531 <dd>An Ethernet address in the form
532 <code><var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var></code>.</dd>
533 <dt><code>bond-rebalance-interval</code></dt>
534 <dd>For a bonded port, the number of milliseconds between
535 successive attempts to rebalance the bond, that is, to
536 move source MACs and their flows from one interface on
537 the bond to another in an attempt to keep usage of each
538 interface roughly equal. The default is 10000 (10
539 seconds), and the minimum is 1000 (1 second).</dd>
540 </dl>
541 </column>
542 </group>
543 </table>
544
545 <table name="Interface" title="One physical network device in a Port.">
546 An interface within a <ref table="Port"/>.
547
548 <group title="Core Features">
549 <column name="name">
550 Interface name. Should be alphanumeric and no more than about 8 bytes
551 long. May be the same as the port name, for non-bonded ports. Must
552 otherwise be unique among the names of ports, interfaces, and bridges
553 on a host.
554 </column>
555
556 <column name="mac">
557 <p>Ethernet address to set for this interface. If unset then the
558 default MAC address is used:</p>
559 <ul>
560 <li>For the local interface, the default is the lowest-numbered MAC
561 address among the other bridge ports, either the value of the
562 <ref table="Port" column="mac"/> in its <ref table="Port"/> record,
563 if set, or its actual MAC (for bonded ports, the MAC of its slave
564 whose name is first in alphabetical order). Internal ports and
565 bridge ports that are used as port mirroring destinations (see the
566 <ref table="Mirror"/> table) are ignored.</li>
567 <li>For other internal interfaces, the default MAC is randomly
568 generated.</li>
569 <li>External interfaces typically have a MAC address associated with
570 their hardware.</li>
571 </ul>
572 <p>Some interfaces may not have a software-controllable MAC
573 address.</p>
574 </column>
575
576 <column name="ofport">
577 <p>OpenFlow port number for this interface. Unlike most columns, this
578 column's value should be set only by Open vSwitch itself. Other
579 clients should set this column to an empty set (the default) when
580 creating an <ref table="Interface"/>.</p>
581 <p>Open vSwitch populates this column when the port number becomes
582 known. If the interface is successfully added,
583 <ref column="ofport"/> will be set to a number between 1 and 65535
584 (generally either in the range 1 to 65279, inclusive, or 65534, the
585 port number for the OpenFlow ``local port''). If the interface
586 cannot be added then Open vSwitch sets this column
587 to -1.</p>
588 </column>
589 </group>
590
591 <group title="System-Specific Details">
592 <column name="type">
593 The interface type, one of:
594 <dl>
595 <dt><code>system</code></dt>
596 <dd>An ordinary network device, e.g. <code>eth0</code> on Linux.
597 Sometimes referred to as ``external interfaces'' since they are
598 generally connected to hardware external to that on which the Open
599 vSwitch is running. The empty string is a synonym for
600 <code>system</code>.</dd>
601 <dt><code>internal</code></dt>
602 <dd>A simulated network device that sends and receives traffic. An
603 internal interface whose <ref column="name"/> is the same as its
604 bridge's <ref table="Open_vSwitch" column="name"/> is called the
605 ``local interface.'' It does not make sense to bond an internal
606 interface, so the terms ``port'' and ``interface'' are often used
607 imprecisely for internal interfaces.</dd>
608 <dt><code>tap</code></dt>
609 <dd>A TUN/TAP device managed by Open vSwitch.</dd>
610 <dt><code>gre</code></dt>
611 <dd>An Ethernet over RFC 2890 Generic Routing Encapsulation over IPv4
612 tunnel. Each tunnel must be uniquely identified by the
613 combination of <code>remote_ip</code>, <code>local_ip</code>, and
614 <code>in_key</code>. Note that if two ports are defined that are
615 the same except one has an optional identifier and the other does
616 not, the more specific one is matched first. <code>in_key</code>
617 is considered more specific than <code>local_ip</code> if a port
618 defines one and another port defines the other. The following
619 options may be specified in the <ref column="options"/> column:
620 <dl>
621 <dt><code>remote_ip</code></dt>
622 <dd>Required. The tunnel endpoint.</dd>
623 </dl>
624 <dl>
625 <dt><code>local_ip</code></dt>
626 <dd>Optional. The destination IP that received packets must
627 match. Default is to match all addresses.</dd>
628 </dl>
629 <dl>
630 <dt><code>in_key</code></dt>
631 <dd>Optional. The GRE key that received packets must contain.
632 It may either be a 32-bit number (no key and a key of 0 are
633 treated as equivalent) or the word <code>flow</code>. If
634 <code>flow</code> is specified then any key will be accepted
635 and the key will be placed in the <code>tun_id</code> field
636 for matching in the flow table. The ovs-ofctl manual page
637 contains additional information about matching fields in
638 OpenFlow flows. Default is no key.</dd>
639 </dl>
640 <dl>
641 <dt><code>out_key</code></dt>
642 <dd>Optional. The GRE key to be set on outgoing packets. It may
643 either be a 32-bit number or the word <code>flow</code>. If
644 <code>flow</code> is specified then the key may be set using
645 the <code>set_tunnel</code> Nicira OpenFlow vendor extension (0
646 is used in the absence of an action). The ovs-ofctl manual
647 page contains additional information about the Nicira OpenFlow
648 vendor extensions. Default is no key.</dd>
649 </dl>
650 <dl>
651 <dt><code>key</code></dt>
652 <dd>Optional. Shorthand to set <code>in_key</code> and
653 <code>out_key</code> at the same time.</dd>
654 </dl>
655 <dl>
656 <dt><code>tos</code></dt>
657 <dd>Optional. The value of the ToS bits to be set on the
658 encapsulating packet. It may also be the word
659 <code>inherit</code>, in which case the ToS will be copied from
660 the inner packet if it is IPv4 or IPv6 (otherwise it will be
661 0). Note that the ECN fields are always inherited. Default is
662 0.</dd>
663 </dl>
664 <dl>
665 <dt><code>ttl</code></dt>
666 <dd>Optional. The TTL to be set on the encapsulating packet.
667 It may also be the word <code>inherit</code>, in which case the
668 TTL will be copied from the inner packet if it is IPv4 or IPv6
669 (otherwise it will be the system default, typically 64).
670 Default is the system default TTL.</dd>
671 </dl>
672 <dl>
673 <dt><code>csum</code></dt>
674 <dd>Optional. Compute GRE checksums on outgoing packets.
675 Checksums present on incoming packets will be validated
676 regardless of this setting. Note that GRE checksums
677 impose a significant performance penalty as they cover the
678 entire packet. As the contents of the packet is typically
679 covered by L3 and L4 checksums, this additional checksum only
680 adds value for the GRE and encapsulated Ethernet headers.
681 Default is disabled, set to <code>true</code> to enable.</dd>
682 </dl>
683 <dl>
684 <dt><code>pmtud</code></dt>
685 <dd>Optional. Enable tunnel path MTU discovery. If enabled
686 ``ICMP destination unreachable - fragmentation'' needed
687 messages will be generated for IPv4 packets with the DF bit set
688 and IPv6 packets above the minimum MTU if the packet size
689 exceeds the path MTU minus the size of the tunnel headers. It
690 also forces the encapsulating packet DF bit to be set (it is
691 always set if the inner packet implies path MTU discovery).
692 Note that this option causes behavior that is typically
693 reserved for routers and therefore is not entirely in
694 compliance with the IEEE 802.1D specification for bridges.
695 Default is enabled, set to <code>false</code> to disable.</dd>
696 </dl>
697 <dl>
698 <dt><code>header_cache</code></dt>
699 <dd>Optional. Enable caching of tunnel headers and the output
700 path. This can lead to a significant performance increase
701 without changing behavior. In general it should not be
702 necessary to adjust this setting. However, the caching can
703 bypass certain components of the IP stack (such as IP tables)
704 and it may be useful to disable it if these features are
705 required or as a debugging measure. Default is enabled, set to
706 <code>false</code> to disable. If IPsec is enabled through the
707 <ref column="other_config"/> parameters, header caching will be
708 automatically disabled.</dd>
709 </dl>
710 </dd>
711 <dt><code>capwap</code></dt>
712 <dd>Ethernet tunneling over the UDP transport portion of CAPWAP
713 (RFC 5415). This allows interoperability with certain switches
714 where GRE is not available. Note that only the tunneling component
715 of the protocol is implemented. Due to the non-standard use of
716 CAPWAP, UDP ports 58881 and 58882 are used as the source and
717 destinations ports respectivedly. Each tunnel must be uniquely
718 identified by the combination of <code>remote_ip</code> and
719 <code>local_ip</code>. If two ports are defined that are the same
720 except one includes <code>local_ip</code> and the other does not,
721 the more specific one is matched first. CAPWAP support is not
722 available on all platforms. Currently it is only supported in the
723 Linux kernel module with kernel versions >= 2.6.25. The following
724 options may be specified in the <ref column="options"/> column:
725 <dl>
726 <dt><code>remote_ip</code></dt>
727 <dd>Required. The tunnel endpoint.</dd>
728 </dl>
729 <dl>
730 <dt><code>local_ip</code></dt>
731 <dd>Optional. The destination IP that received packets must
732 match. Default is to match all addresses.</dd>
733 </dl>
734 <dl>
735 <dt><code>tos</code></dt>
736 <dd>Optional. The value of the ToS bits to be set on the
737 encapsulating packet. It may also be the word
738 <code>inherit</code>, in which case the ToS will be copied from
739 the inner packet if it is IPv4 or IPv6 (otherwise it will be
740 0). Note that the ECN fields are always inherited. Default is
741 0.</dd>
742 </dl>
743 <dl>
744 <dt><code>ttl</code></dt>
745 <dd>Optional. The TTL to be set on the encapsulating packet.
746 It may also be the word <code>inherit</code>, in which case the
747 TTL will be copied from the inner packet if it is IPv4 or IPv6
748 (otherwise it will be the system default, typically 64).
749 Default is the system default TTL.</dd>
750 </dl>
751 <dl>
752 <dt><code>pmtud</code></dt>
753 <dd>Optional. Enable tunnel path MTU discovery. If enabled
754 ``ICMP destination unreachable - fragmentation'' needed
755 messages will be generated for IPv4 packets with the DF bit set
756 and IPv6 packets above the minimum MTU if the packet size
757 exceeds the path MTU minus the size of the tunnel headers. It
758 also forces the encapsulating packet DF bit to be set (it is
759 always set if the inner packet implies path MTU discovery).
760 Note that this option causes behavior that is typically
761 reserved for routers and therefore is not entirely in
762 compliance with the IEEE 802.1D specification for bridges.
763 Default is enabled, set to <code>false</code> to disable.</dd>
764 </dl>
765 <dl>
766 <dt><code>header_cache</code></dt>
767 <dd>Optional. Enable caching of tunnel headers and the output
768 path. This can lead to a significant performance increase
769 without changing behavior. In general it should not be
770 necessary to adjust this setting. However, the caching can
771 bypass certain components of the IP stack (such as IP tables)
772 and it may be useful to disable it if these features are
773 required or as a debugging measure. Default is enabled, set to
774 <code>false</code> to disable.</dd>
775 </dl>
776 </dd>
777 <dt><code>patch</code></dt>
778 <dd>
779 <p>
780 A pair of virtual devices that act as a patch cable. The <ref
781 column="options"/> column must have the following key-value pair:
782 </p>
783 <dl>
784 <dt><code>peer</code></dt>
785 <dd>
786 The <ref column="name"/> of the <ref table="Interface"/> for
787 the other side of the patch. The named <ref
788 table="Interface"/>'s own <code>peer</code> option must specify
789 this <ref table="Interface"/>'s name. That is, the two patch
790 interfaces must have reversed <ref column="name"/> and
791 <code>peer</code> values.
792 </dd>
793 </dl>
794 </dd>
795 </dl>
796 </column>
797
798 <column name="options">
799 Configuration options whose interpretation varies based on
800 <ref column="type"/>.
801 </column>
802
803 <column name="status">
804 <p>
805 Key-value pairs that report port status. Supported status
806 values are <code>type</code>-dependent.
807 </p>
808 <p>The only currently defined key-value pair is:</p>
809 <dl>
810 <dt><code>source_ip</code></dt>
811 <dd>The source IP address used for an IPv4 tunnel end-point,
812 such as <code>gre</code> or <code>capwap</code>. Not
813 supported by all implementations.</dd>
814 </dl>
815 </column>
816 </group>
817
818 <group title="Ingress Policing">
819 <p>
820 These settings control ingress policing for packets received on this
821 interface. On a physical interface, this limits the rate at which
822 traffic is allowed into the system from the outside; on a virtual
823 interface (one connected to a virtual machine), this limits the rate at
824 which the VM is able to transmit.
825 </p>
826 <p>
827 Policing is a simple form of quality-of-service that simply drops
828 packets received in excess of the configured rate. Due to its
829 simplicity, policing is usually less accurate and less effective than
830 egress QoS (which is configured using the <ref table="QoS"/> and <ref
831 table="Queue"/> tables).
832 </p>
833 <p>
834 Policing is currently implemented only on Linux. The Linux
835 implementation uses a simple ``token bucket'' approach:
836 </p>
837 <ul>
838 <li>
839 The size of the bucket corresponds to <ref
840 column="ingress_policing_burst"/>. Initially the bucket is full.
841 </li>
842 <li>
843 Whenever a packet is received, its size (converted to tokens) is
844 compared to the number of tokens currently in the bucket. If the
845 required number of tokens are available, they are removed and the
846 packet is forwarded. Otherwise, the packet is dropped.
847 </li>
848 <li>
849 Whenever it is not full, the bucket is refilled with tokens at the
850 rate specified by <ref column="ingress_policing_rate"/>.
851 </li>
852 </ul>
853 <p>
854 Policing interacts badly with some network protocols, and especially
855 with fragmented IP packets. Suppose that there is enough network
856 activity to keep the bucket nearly empty all the time. Then this token
857 bucket algorithm will forward a single packet every so often, with the
858 period depending on packet size and on the configured rate. All of the
859 fragments of an IP packets are normally transmitted back-to-back, as a
860 group. In such a situation, therefore, only one of these fragments
861 will be forwarded and the rest will be dropped. IP does not provide
862 any way for the intended recipient to ask for only the remaining
863 fragments. In such a case there are two likely possibilities for what
864 will happen next: either all of the fragments will eventually be
865 retransmitted (as TCP will do), in which case the same problem will
866 recur, or the sender will not realize that its packet has been dropped
867 and data will simply be lost (as some UDP-based protocols will do).
868 Either way, it is possible that no forward progress will ever occur.
869 </p>
870 <column name="ingress_policing_rate">
871 <p>
872 Maximum rate for data received on this interface, in kbps. Data
873 received faster than this rate is dropped. Set to <code>0</code>
874 (the default) to disable policing.
875 </p>
876 </column>
877
878 <column name="ingress_policing_burst">
879 <p>Maximum burst size for data received on this interface, in kb. The
880 default burst size if set to <code>0</code> is 1000 kb. This value
881 has no effect if <ref column="ingress_policing_rate"/>
882 is <code>0</code>.</p>
883 <p>
884 Specifying a larger burst size lets the algorithm be more forgiving,
885 which is important for protocols like TCP that react severely to
886 dropped packets. The burst size should be at least the size of the
887 interface's MTU. Specifying a value that is numerically at least as
888 large as 10% of <ref column="ingress_policing_rate"/> helps TCP come
889 closer to achieving the full rate.
890 </p>
891 </column>
892 </group>
893
894 <group title="Other Features">
895 <column name="external_ids">
896 Key-value pairs for use by external frameworks that integrate
897 with Open vSwitch, rather than by Open vSwitch itself. System
898 integrators should either use the Open vSwitch development
899 mailing list to coordinate on common key-value definitions, or
900 choose key names that are likely to be unique. The currently
901 defined common key-value pairs are:
902 <dl>
903 <dt><code>attached-mac</code></dt>
904 <dd>
905 The MAC address programmed into the ``virtual hardware'' for this
906 interface, in the form
907 <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>.
908 For Citrix XenServer, this is the value of the <code>MAC</code>
909 field in the VIF record for this interface.</dd>
910 <dt><code>iface-id</code></dt>
911 <dd>A system-unique identifier for the interface. On XenServer,
912 this will commonly be the same as <code>xs-vif-uuid</code>.</dd>
913 </dl>
914 <p>
915 Additionally the following key-value pairs specifically
916 apply to an interface that represents a virtual Ethernet interface
917 connected to a virtual machine. These key-value pairs should not be
918 present for other types of interfaces. Keys whose names end
919 in <code>-uuid</code> have values that uniquely identify the entity
920 in question. For a Citrix XenServer hypervisor, these values are
921 UUIDs in RFC 4122 format. Other hypervisors may use other
922 formats.
923 </p>
924 <p>The currently defined key-value pairs for XenServer are:</p>
925 <dl>
926 <dt><code>xs-vif-uuid</code></dt>
927 <dd>The virtual interface associated with this interface.</dd>
928 <dt><code>xs-network-uuid</code></dt>
929 <dd>The virtual network to which this interface is attached.</dd>
930 <dt><code>xs-vm-uuid</code></dt>
931 <dd>The VM to which this interface belongs.</dd>
932 </dl>
933 </column>
934
935 <column name="other_config">
936 Key-value pairs for rarely used interface features. Currently,
937 the only keys are for configuring GRE-over-IPsec, which is only
938 available through the <code>openvswitch-ipsec</code> package for
939 Debian. The currently defined key-value pairs are:
940 <dl>
941 <dt><code>ipsec_local_ip</code></dt>
942 <dd>Required key for GRE-over-IPsec interfaces. Additionally,
943 the <ref column="type"/> must be <code>gre</code> and the
944 <code>ipsec_psk</code> <ref column="other_config"/> key must
945 be set. The <code>in_key</code>, <code>out_key</code>, and
946 <code>key</code> <ref column="options"/> must not be
947 set.</dd>
948 <dt><code>ipsec_psk</code></dt>
949 <dd>Required key for GRE-over-IPsec interfaces. Specifies a
950 pre-shared key for authentication that must be identical on
951 both sides of the tunnel. Additionally, the
952 <code>ipsec_local_ip</code> key must also be set.</dd>
953 </dl>
954 </column>
955
956 <column name="statistics">
957 <p>
958 Key-value pairs that report interface statistics. The current
959 implementation updates these counters periodically. In the future,
960 we plan to, instead, update them when an interface is created, when
961 they are queried (e.g. using an OVSDB <code>select</code> operation),
962 and just before an interface is deleted due to virtual interface
963 hot-unplug or VM shutdown, and perhaps at other times, but not on any
964 regular periodic basis.</p>
965 <p>
966 The currently defined key-value pairs are listed below. These are
967 the same statistics reported by OpenFlow in its <code>struct
968 ofp_port_stats</code> structure. If an interface does not support a
969 given statistic, then that pair is omitted.</p>
970 <ul>
971 <li>
972 Successful transmit and receive counters:
973 <dl>
974 <dt><code>rx_packets</code></dt>
975 <dd>Number of received packets.</dd>
976 <dt><code>rx_bytes</code></dt>
977 <dd>Number of received bytes.</dd>
978 <dt><code>tx_packets</code></dt>
979 <dd>Number of transmitted packets.</dd>
980 <dt><code>tx_bytes</code></dt>
981 <dd>Number of transmitted bytes.</dd>
982 </dl>
983 </li>
984 <li>
985 Receive errors:
986 <dl>
987 <dt><code>rx_dropped</code></dt>
988 <dd>Number of packets dropped by RX.</dd>
989 <dt><code>rx_frame_err</code></dt>
990 <dd>Number of frame alignment errors.</dd>
991 <dt><code>rx_over_err</code></dt>
992 <dd>Number of packets with RX overrun.</dd>
993 <dt><code>rx_crc_err</code></dt>
994 <dd>Number of CRC errors.</dd>
995 <dt><code>rx_errors</code></dt>
996 <dd>
997 Total number of receive errors, greater than or equal
998 to the sum of the above.
999 </dd>
1000 </dl>
1001 </li>
1002 <li>
1003 Transmit errors:
1004 <dl>
1005 <dt><code>tx_dropped</code></dt>
1006 <dd>Number of packets dropped by TX.</dd>
1007 <dt><code>collisions</code></dt>
1008 <dd>Number of collisions.</dd>
1009 <dt><code>tx_errors</code></dt>
1010 <dd>
1011 Total number of transmit errors, greater
1012 than or equal to the sum of the above.
1013 </dd>
1014 </dl>
1015 </li>
1016 </ul>
1017 </column>
1018 </group>
1019 </table>
1020
1021 <table name="QoS" title="Quality of Service configuration">
1022 <p>Quality of Service (QoS) configuration for each Port that
1023 references it.</p>
1024
1025 <column name="type">
1026 <p>The type of QoS to implement. The <ref table="Open_vSwitch"
1027 column="capabilities"/> column in the <ref table="Open_vSwitch"/> table
1028 identifies the types that a switch actually supports. The currently
1029 defined types are listed below:</p>
1030 <dl>
1031 <dt><code>linux-htb</code></dt>
1032 <dd>
1033 Linux ``hierarchy token bucket'' classifier. See tc-htb(8) (also at
1034 <code>http://linux.die.net/man/8/tc-htb</code>) and the HTB manual
1035 (<code>http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm</code>)
1036 for information on how this classifier works and how to configure it.
1037 </dd>
1038 </dl>
1039 <dl>
1040 <dt><code>linux-hfsc</code></dt>
1041 <dd>
1042 Linux "Hierarchical Fair Service Curve" classifier.
1043 See <code>http://linux-ip.net/articles/hfsc.en/</code> for
1044 information on how this classifier works.
1045 </dd>
1046 </dl>
1047 </column>
1048
1049 <column name="queues">
1050 <p>A map from queue numbers to <ref table="Queue"/> records. The
1051 supported range of queue numbers depend on <ref column="type"/>. The
1052 queue numbers are the same as the <code>queue_id</code> used in
1053 OpenFlow in <code>struct ofp_action_enqueue</code> and other
1054 structures. Queue 0 is used by OpenFlow output actions that do not
1055 specify a specific queue.</p>
1056 </column>
1057
1058 <column name="other_config">
1059 <p>Key-value pairs for configuring QoS features that depend on
1060 <ref column="type"/>.</p>
1061 <p>The <code>linux-htb</code> and <code>linux-hfsc</code> classes support
1062 the following key-value pairs:</p>
1063 <dl>
1064 <dt><code>max-rate</code></dt>
1065 <dd>Maximum rate shared by all queued traffic, in bit/s.
1066 Optional. If not specified, for physical interfaces, the
1067 default is the link rate. For other interfaces or if the
1068 link rate cannot be determined, the default is currently 100
1069 Mbps.</dd>
1070 </dl>
1071 </column>
1072
1073 <column name="external_ids">
1074 Key-value pairs for use by external frameworks that integrate with Open
1075 vSwitch, rather than by Open vSwitch itself. System integrators should
1076 either use the Open vSwitch development mailing list to coordinate on
1077 common key-value definitions, or choose key names that are likely to be
1078 unique. No common key-value pairs are currently defined.
1079 </column>
1080 </table>
1081
1082 <table name="Queue" title="QoS output queue.">
1083 <p>A configuration for a port output queue, used in configuring Quality of
1084 Service (QoS) features. May be referenced by <ref column="queues"
1085 table="QoS"/> column in <ref table="QoS"/> table.</p>
1086
1087 <column name="other_config">
1088 <p>Key-value pairs for configuring the output queue. The supported
1089 key-value pairs and their meanings depend on the <ref column="type"/>
1090 of the <ref column="QoS"/> records that reference this row.</p>
1091 <p>The key-value pairs defined for <ref table="QoS"/> <ref table="QoS"
1092 column="type"/> of <code>min-rate</code> are:</p>
1093 <dl>
1094 <dt><code>min-rate</code></dt>
1095 <dd>Minimum guaranteed bandwidth, in bit/s. Required. The
1096 floor value is 1500 bytes/s (12,000 bit/s).</dd>
1097 </dl>
1098 <p>The key-value pairs defined for <ref table="QoS"/> <ref table="QoS"
1099 column="type"/> of <code>linux-htb</code> are:</p>
1100 <dl>
1101 <dt><code>min-rate</code></dt>
1102 <dd>Minimum guaranteed bandwidth, in bit/s. Required.</dd>
1103 <dt><code>max-rate</code></dt>
1104 <dd>Maximum allowed bandwidth, in bit/s. Optional. If specified, the
1105 queue's rate will not be allowed to exceed the specified value, even
1106 if excess bandwidth is available. If unspecified, defaults to no
1107 limit.</dd>
1108 <dt><code>burst</code></dt>
1109 <dd>Burst size, in bits. This is the maximum amount of ``credits''
1110 that a queue can accumulate while it is idle. Optional. Details of
1111 the <code>linux-htb</code> implementation require a minimum burst
1112 size, so a too-small <code>burst</code> will be silently
1113 ignored.</dd>
1114 <dt><code>priority</code></dt>
1115 <dd>A nonnegative 32-bit integer. Defaults to 0 if
1116 unspecified. A queue with a smaller <code>priority</code>
1117 will receive all the excess bandwidth that it can use before
1118 a queue with a larger value receives any. Specific priority
1119 values are unimportant; only relative ordering matters.</dd>
1120 </dl>
1121 <p>The key-value pairs defined for <ref table="QoS"/> <ref table="QoS"
1122 column="type"/> of <code>linux-hfsc</code> are:</p>
1123 <dl>
1124 <dt><code>min-rate</code></dt>
1125 <dd>Minimum guaranteed bandwidth, in bit/s. Required.</dd>
1126 <dt><code>max-rate</code></dt>
1127 <dd>Maximum allowed bandwidth, in bit/s. Optional. If specified, the
1128 queue's rate will not be allowed to exceed the specified value, even
1129 if excess bandwidth is available. If unspecified, defaults to no
1130 limit.</dd>
1131 </dl>
1132 </column>
1133
1134 <column name="external_ids">
1135 Key-value pairs for use by external frameworks that integrate with Open
1136 vSwitch, rather than by Open vSwitch itself. System integrators should
1137 either use the Open vSwitch development mailing list to coordinate on
1138 common key-value definitions, or choose key names that are likely to be
1139 unique. No common key-value pairs are currently defined.
1140 </column>
1141 </table>
1142
1143 <table name="Mirror" title="Port mirroring (SPAN/RSPAN).">
1144 <p>A port mirror within a <ref table="Bridge"/>.</p>
1145 <p>A port mirror configures a bridge to send selected frames to special
1146 ``mirrored'' ports, in addition to their normal destinations. Mirroring
1147 traffic may also be referred to as SPAN or RSPAN, depending on the
1148 mechanism used for delivery.</p>
1149
1150 <column name="name">
1151 Arbitrary identifier for the <ref table="Mirror"/>.
1152 </column>
1153
1154 <group title="Selecting Packets for Mirroring">
1155 <column name="select_all">
1156 If true, every packet arriving or departing on any port is
1157 selected for mirroring.
1158 </column>
1159
1160 <column name="select_dst_port">
1161 Ports on which departing packets are selected for mirroring.
1162 </column>
1163
1164 <column name="select_src_port">
1165 Ports on which arriving packets are selected for mirroring.
1166 </column>
1167
1168 <column name="select_vlan">
1169 VLANs on which packets are selected for mirroring. An empty set
1170 selects packets on all VLANs.
1171 </column>
1172 </group>
1173
1174 <group title="Mirroring Destination Configuration">
1175 <column name="output_port">
1176 <p>Output port for selected packets, if nonempty. Mutually exclusive
1177 with <ref column="output_vlan"/>.</p>
1178 <p>Specifying a port for mirror output reserves that port exclusively
1179 for mirroring. No frames other than those selected for mirroring
1180 will be forwarded to the port, and any frames received on the port
1181 will be discarded.</p>
1182 <p>This type of mirroring is sometimes called SPAN.</p>
1183 </column>
1184
1185 <column name="output_vlan">
1186 <p>Output VLAN for selected packets, if nonempty. Mutually exclusive
1187 with <ref column="output_port"/>.</p>
1188 <p>The frames will be sent out all ports that trunk
1189 <ref column="output_vlan"/>, as well as any ports with implicit VLAN
1190 <ref column="output_vlan"/>. When a mirrored frame is sent out a
1191 trunk port, the frame's VLAN tag will be set to
1192 <ref column="output_vlan"/>, replacing any existing tag; when it is
1193 sent out an implicit VLAN port, the frame will not be tagged. This
1194 type of mirroring is sometimes called RSPAN.</p>
1195 <p><em>Please note:</em> Mirroring to a VLAN can disrupt a network that
1196 contains unmanaged switches. Consider an unmanaged physical switch
1197 with two ports: port 1, connected to an end host, and port 2,
1198 connected to an Open vSwitch configured to mirror received packets
1199 into VLAN 123 on port 2. Suppose that the end host sends a packet on
1200 port 1 that the physical switch forwards to port 2. The Open vSwitch
1201 forwards this packet to its destination and then reflects it back on
1202 port 2 in VLAN 123. This reflected packet causes the unmanaged
1203 physical switch to replace the MAC learning table entry, which
1204 correctly pointed to port 1, with one that incorrectly points to port
1205 2. Afterward, the physical switch will direct packets destined for
1206 the end host to the Open vSwitch on port 2, instead of to the end
1207 host on port 1, disrupting connectivity. If mirroring to a VLAN is
1208 desired in this scenario, then the physical switch must be replaced
1209 by one that learns Ethernet addresses on a per-VLAN basis. In
1210 addition, learning should be disabled on the VLAN containing mirrored
1211 traffic. If this is not done then intermediate switches will learn
1212 the MAC address of each end host from the mirrored traffic. If
1213 packets being sent to that end host are also mirrored, then they will
1214 be dropped since the switch will attempt to send them out the input
1215 port. Disabling learning for the VLAN will cause the switch to
1216 correctly send the packet out all ports configured for that VLAN. If
1217 Open vSwitch is being used as an intermediate switch, learning can be
1218 disabled by adding the mirrored VLAN to <ref column="flood_vlans"/>
1219 in the appropriate <ref table="Bridge"/> table or tables.</p>
1220 </column>
1221 </group>
1222
1223 <group title="Other Features">
1224 <column name="external_ids">
1225 Key-value pairs for use by external frameworks that integrate with Open
1226 vSwitch, rather than by Open vSwitch itself. System integrators should
1227 either use the Open vSwitch development mailing list to coordinate on
1228 common key-value definitions, or choose key names that are likely to be
1229 unique. No common key-value pairs are currently defined.
1230 </column>
1231 </group>
1232 </table>
1233
1234 <table name="Controller" title="OpenFlow controller configuration.">
1235 <p>An OpenFlow controller.</p>
1236
1237 <p>
1238 Open vSwitch supports two kinds of OpenFlow controllers:
1239 </p>
1240
1241 <dl>
1242 <dt>Primary controllers</dt>
1243 <dd>
1244 <p>
1245 This is the kind of controller envisioned by the OpenFlow 1.0
1246 specification. Usually, a primary controller implements a network
1247 policy by taking charge of the switch's flow table.
1248 </p>
1249
1250 <p>
1251 Open vSwitch initiates and maintains persistent connections to
1252 primary controllers, retrying the connection each time it fails or
1253 drops. The <ref table="Bridge" column="fail_mode"/> column in the
1254 <ref table="Bridge"/> table applies to primary controllers.
1255 </p>
1256
1257 <p>
1258 Open vSwitch permits a bridge to have any number of primary
1259 controllers. When multiple controllers are configured, Open
1260 vSwitch connects to all of them simultaneously. Because
1261 OpenFlow 1.0 does not specify how multiple controllers
1262 coordinate in interacting with a single switch, more than
1263 one primary controller should be specified only if the
1264 controllers are themselves designed to coordinate with each
1265 other. (The Nicira-defined <code>NXT_ROLE</code> OpenFlow
1266 vendor extension may be useful for this.)
1267 </p>
1268 </dd>
1269 <dt>Service controllers</dt>
1270 <dd>
1271 <p>
1272 These kinds of OpenFlow controller connections are intended for
1273 occasional support and maintenance use, e.g. with
1274 <code>ovs-ofctl</code>. Usually a service controller connects only
1275 briefly to inspect or modify some of a switch's state.
1276 </p>
1277
1278 <p>
1279 Open vSwitch listens for incoming connections from service
1280 controllers. The service controllers initiate and, if necessary,
1281 maintain the connections from their end. The <ref table="Bridge"
1282 column="fail_mode"/> column in the <ref table="Bridge"/> table does
1283 not apply to service controllers.
1284 </p>
1285
1286 <p>
1287 Open vSwitch supports configuring any number of service controllers.
1288 </p>
1289 </dd>
1290 </dl>
1291
1292 <p>
1293 The <ref column="target"/> determines the type of controller.
1294 </p>
1295
1296 <group title="Core Features">
1297 <column name="target">
1298 <p>Connection method for controller.</p>
1299 <p>
1300 The following connection methods are currently supported for primary
1301 controllers:
1302 </p>
1303 <dl>
1304 <dt><code>ssl:<var>ip</var></code>[<code>:<var>port</var></code>]</dt>
1305 <dd>
1306 <p>The specified SSL <var>port</var> (default: 6633) on the host at
1307 the given <var>ip</var>, which must be expressed as an IP address
1308 (not a DNS name). The <ref table="Open_vSwitch" column="ssl"/>
1309 column in the <ref table="Open_vSwitch"/> table must point to a
1310 valid SSL configuration when this form is used.</p>
1311 <p>SSL support is an optional feature that is not always built as
1312 part of Open vSwitch.</p>
1313 </dd>
1314 <dt><code>tcp:<var>ip</var></code>[<code>:<var>port</var></code>]</dt>
1315 <dd>The specified TCP <var>port</var> (default: 6633) on the host at
1316 the given <var>ip</var>, which must be expressed as an IP address
1317 (not a DNS name).</dd>
1318 <dt><code>discover</code></dt>
1319 <dd>
1320 <p>Enables controller discovery.</p>
1321 <p>In controller discovery mode, Open vSwitch broadcasts a DHCP
1322 request with vendor class identifier <code>OpenFlow</code> across
1323 all of the bridge's network devices. It will accept any valid
1324 DHCP reply that has the same vendor class identifier and includes
1325 a vendor-specific option with code 1 whose contents are a string
1326 specifying the location of the controller in the same format as
1327 <ref column="target"/>.</p>
1328 <p>The DHCP reply may also, optionally, include a vendor-specific
1329 option with code 2 whose contents are a string specifying the URI
1330 to the base of the OpenFlow PKI
1331 (e.g. <code>http://192.168.0.1/openflow/pki</code>). This URI is
1332 used only for bootstrapping the OpenFlow PKI at initial switch
1333 setup; <code>ovs-vswitchd</code> does not use it at all.</p>
1334 </dd>
1335 </dl>
1336 <p>
1337 The following connection methods are currently supported for service
1338 controllers:
1339 </p>
1340 <dl>
1341 <dt><code>pssl:</code>[<var>port</var>][<code>:<var>ip</var></code>]</dt>
1342 <dd>
1343 <p>
1344 Listens for SSL connections on the specified TCP <var>port</var>
1345 (default: 6633). If <var>ip</var>, which must be expressed as an
1346 IP address (not a DNS name), is specified, then connections are
1347 restricted to the specified local IP address.
1348 </p>
1349 <p>
1350 The <ref table="Open_vSwitch" column="ssl"/> column in the <ref
1351 table="Open_vSwitch"/> table must point to a valid SSL
1352 configuration when this form is used.
1353 </p>
1354 <p>SSL support is an optional feature that is not always built as
1355 part of Open vSwitch.</p>
1356 </dd>
1357 <dt><code>ptcp:</code>[<var>port</var>][<code>:<var>ip</var></code>]</dt>
1358 <dd>
1359 Listens for connections on the specified TCP <var>port</var>
1360 (default: 6633). If <var>ip</var>, which must be expressed as an
1361 IP address (not a DNS name), is specified, then connections are
1362 restricted to the specified local IP address.
1363 </dd>
1364 </dl>
1365 <p>When multiple controllers are configured for a single bridge, the
1366 <ref column="target"/> values must be unique. Duplicate
1367 <ref column="target"/> values yield unspecified results.</p>
1368 </column>
1369
1370 <column name="connection_mode">
1371 <p>If it is specified, this setting must be one of the following
1372 strings that describes how Open vSwitch contacts this OpenFlow
1373 controller over the network:</p>
1374
1375 <dl>
1376 <dt><code>in-band</code></dt>
1377 <dd>In this mode, this controller's OpenFlow traffic travels over the
1378 bridge associated with the controller. With this setting, Open
1379 vSwitch allows traffic to and from the controller regardless of the
1380 contents of the OpenFlow flow table. (Otherwise, Open vSwitch
1381 would never be able to connect to the controller, because it did
1382 not have a flow to enable it.) This is the most common connection
1383 mode because it is not necessary to maintain two independent
1384 networks.</dd>
1385 <dt><code>out-of-band</code></dt>
1386 <dd>In this mode, OpenFlow traffic uses a control network separate
1387 from the bridge associated with this controller, that is, the
1388 bridge does not use any of its own network devices to communicate
1389 with the controller. The control network must be configured
1390 separately, before or after <code>ovs-vswitchd</code> is started.
1391 </dd>
1392 </dl>
1393
1394 <p>If not specified, the default is implementation-specific. If
1395 <ref column="target"/> is <code>discover</code>, the connection mode
1396 is always treated as <code>in-band</code> regardless of the actual
1397 setting.</p>
1398 </column>
1399 </group>
1400
1401 <group title="Controller Failure Detection and Handling">
1402 <column name="max_backoff">
1403 Maximum number of milliseconds to wait between connection attempts.
1404 Default is implementation-specific.
1405 </column>
1406
1407 <column name="inactivity_probe">
1408 Maximum number of milliseconds of idle time on connection to
1409 controller before sending an inactivity probe message. If Open
1410 vSwitch does not communicate with the controller for the specified
1411 number of seconds, it will send a probe. If a response is not
1412 received for the same additional amount of time, Open vSwitch
1413 assumes the connection has been broken and attempts to reconnect.
1414 Default is implementation-specific.
1415 </column>
1416 </group>
1417
1418 <group title="OpenFlow Rate Limiting">
1419 <column name="controller_rate_limit">
1420 <p>The maximum rate at which packets in unknown flows will be
1421 forwarded to the OpenFlow controller, in packets per second. This
1422 feature prevents a single bridge from overwhelming the controller.
1423 If not specified, the default is implementation-specific.</p>
1424 <p>In addition, when a high rate triggers rate-limiting, Open
1425 vSwitch queues controller packets for each port and transmits
1426 them to the controller at the configured rate. The number of
1427 queued packets is limited by
1428 the <ref column="controller_burst_limit"/> value. The packet
1429 queue is shared fairly among the ports on a bridge.</p><p>Open
1430 vSwitch maintains two such packet rate-limiters per bridge.
1431 One of these applies to packets sent up to the controller
1432 because they do not correspond to any flow. The other applies
1433 to packets sent up to the controller by request through flow
1434 actions. When both rate-limiters are filled with packets, the
1435 actual rate that packets are sent to the controller is up to
1436 twice the specified rate.</p>
1437 </column>
1438
1439 <column name="controller_burst_limit">
1440 In conjunction with <ref column="controller_rate_limit"/>,
1441 the maximum number of unused packet credits that the bridge will
1442 allow to accumulate, in packets. If not specified, the default
1443 is implementation-specific.
1444 </column>
1445 </group>
1446
1447 <group title="Additional Discovery Configuration">
1448 <p>These values are considered only when <ref column="target"/>
1449 is <code>discover</code>.</p>
1450
1451 <column name="discover_accept_regex">
1452 A POSIX
1453 extended regular expression against which the discovered controller
1454 location is validated. The regular expression is implicitly
1455 anchored at the beginning of the controller location string, as
1456 if it begins with <code>^</code>. If not specified, the default
1457 is implementation-specific.
1458 </column>
1459
1460 <column name="discover_update_resolv_conf">
1461 Whether to update <code>/etc/resolv.conf</code> when the
1462 controller is discovered. If not specified, the default
1463 is implementation-specific. Open vSwitch will only modify
1464 <code>/etc/resolv.conf</code> if the DHCP response that it receives
1465 specifies one or more DNS servers.
1466 </column>
1467 </group>
1468
1469 <group title="Additional In-Band Configuration">
1470 <p>These values are considered only in in-band control mode (see
1471 <ref column="connection_mode"/>) and only when <ref column="target"/>
1472 is not <code>discover</code>. (For controller discovery, the network
1473 configuration obtained via DHCP is used instead.)</p>
1474
1475 <p>When multiple controllers are configured on a single bridge, there
1476 should be only one set of unique values in these columns. If different
1477 values are set for these columns in different controllers, the effect
1478 is unspecified.</p>
1479
1480 <column name="local_ip">
1481 The IP address to configure on the local port,
1482 e.g. <code>192.168.0.123</code>. If this value is unset, then
1483 <ref column="local_netmask"/> and <ref column="local_gateway"/> are
1484 ignored.
1485 </column>
1486
1487 <column name="local_netmask">
1488 The IP netmask to configure on the local port,
1489 e.g. <code>255.255.255.0</code>. If <ref column="local_ip"/> is set
1490 but this value is unset, then the default is chosen based on whether
1491 the IP address is class A, B, or C.
1492 </column>
1493
1494 <column name="local_gateway">
1495 The IP address of the gateway to configure on the local port, as a
1496 string, e.g. <code>192.168.0.1</code>. Leave this column unset if
1497 this network has no gateway.
1498 </column>
1499 </group>
1500
1501 <group title="Other Features">
1502 <column name="external_ids">
1503 Key-value pairs for use by external frameworks that integrate with Open
1504 vSwitch, rather than by Open vSwitch itself. System integrators should
1505 either use the Open vSwitch development mailing list to coordinate on
1506 common key-value definitions, or choose key names that are likely to be
1507 unique. No common key-value pairs are currently defined.
1508 </column>
1509 </group>
1510 </table>
1511
1512 <table name="Manager" title="OVSDB management connection.">
1513 <p>
1514 Configuration for a database connection to an Open vSwitch database
1515 (OVSDB) client.
1516 </p>
1517
1518 <p>
1519 This table primarily configures the Open vSwitch database
1520 (<code>ovsdb-server</code>), not the Open vSwitch switch
1521 (<code>ovs-vswitchd</code>). The switch does read the table to determine
1522 what connections should be treated as in-band.
1523 </p>
1524
1525 <p>
1526 The Open vSwitch database server can initiate and maintain active
1527 connections to remote clients. It can also listen for database
1528 connections.
1529 </p>
1530
1531 <group title="Core Features">
1532 <column name="target">
1533 <p>Connection method for managers.</p>
1534 <p>
1535 The following connection methods are currently supported:
1536 </p>
1537 <dl>
1538 <dt><code>ssl:<var>ip</var></code>[<code>:<var>port</var></code>]</dt>
1539 <dd>
1540 <p>
1541 The specified SSL <var>port</var> (default: 6632) on the host at
1542 the given <var>ip</var>, which must be expressed as an IP address
1543 (not a DNS name). The <ref table="Open_vSwitch" column="ssl"/>
1544 column in the <ref table="Open_vSwitch"/> table must point to a
1545 valid SSL configuration when this form is used.
1546 </p>
1547 <p>
1548 SSL support is an optional feature that is not always built as
1549 part of Open vSwitch.
1550 </p>
1551 </dd>
1552
1553 <dt><code>tcp:<var>ip</var></code>[<code>:<var>port</var></code>]</dt>
1554 <dd>
1555 The specified TCP <var>port</var> (default: 6632) on the host at
1556 the given <var>ip</var>, which must be expressed as an IP address
1557 (not a DNS name).
1558 </dd>
1559 <dt><code>pssl:</code>[<var>port</var>][<code>:<var>ip</var></code>]</dt>
1560 <dd>
1561 <p>
1562 Listens for SSL connections on the specified TCP <var>port</var>
1563 (default: 6632). If <var>ip</var>, which must be expressed as an
1564 IP address (not a DNS name), is specified, then connections are
1565 restricted to the specified local IP address.
1566 </p>
1567 <p>
1568 The <ref table="Open_vSwitch" column="ssl"/> column in the <ref
1569 table="Open_vSwitch"/> table must point to a valid SSL
1570 configuration when this form is used.
1571 </p>
1572 <p>
1573 SSL support is an optional feature that is not always built as
1574 part of Open vSwitch.
1575 </p>
1576 </dd>
1577 <dt><code>ptcp:</code>[<var>port</var>][<code>:<var>ip</var></code>]</dt>
1578 <dd>
1579 Listens for connections on the specified TCP <var>port</var>
1580 (default: 6632). If <var>ip</var>, which must be expressed as an
1581 IP address (not a DNS name), is specified, then connections are
1582 restricted to the specified local IP address.
1583 </dd>
1584 </dl>
1585 <p>When multiple managers are configured, the <ref column="target"/>
1586 values must be unique. Duplicate <ref column="target"/> values yield
1587 unspecified results.</p>
1588 </column>
1589
1590 <column name="connection_mode">
1591 <p>
1592 If it is specified, this setting must be one of the following strings
1593 that describes how Open vSwitch contacts this OVSDB client over the
1594 network:
1595 </p>
1596
1597 <dl>
1598 <dt><code>in-band</code></dt>
1599 <dd>
1600 In this mode, this connection's traffic travels over a bridge
1601 managed by Open vSwitch. With this setting, Open vSwitch allows
1602 traffic to and from the client regardless of the contents of the
1603 OpenFlow flow table. (Otherwise, Open vSwitch would never be able
1604 to connect to the client, because it did not have a flow to enable
1605 it.) This is the most common connection mode because it is not
1606 necessary to maintain two independent networks.
1607 </dd>
1608 <dt><code>out-of-band</code></dt>
1609 <dd>
1610 In this mode, the client's traffic uses a control network separate
1611 from that managed by Open vSwitch, that is, Open vSwitch does not
1612 use any of its own network devices to communicate with the client.
1613 The control network must be configured separately, before or after
1614 <code>ovs-vswitchd</code> is started.
1615 </dd>
1616 </dl>
1617
1618 <p>
1619 If not specified, the default is implementation-specific.
1620 </p>
1621 </column>
1622 </group>
1623
1624 <group title="Client Failure Detection and Handling">
1625 <column name="max_backoff">
1626 Maximum number of milliseconds to wait between connection attempts.
1627 Default is implementation-specific.
1628 </column>
1629
1630 <column name="inactivity_probe">
1631 Maximum number of milliseconds of idle time on connection to the client
1632 before sending an inactivity probe message. If Open vSwitch does not
1633 communicate with the client for the specified number of seconds, it
1634 will send a probe. If a response is not received for the same
1635 additional amount of time, Open vSwitch assumes the connection has been
1636 broken and attempts to reconnect. Default is implementation-specific.
1637 </column>
1638 </group>
1639
1640 <group title="Other Features">
1641 <column name="external_ids">
1642 Key-value pairs for use by external frameworks that integrate with Open
1643 vSwitch, rather than by Open vSwitch itself. System integrators should
1644 either use the Open vSwitch development mailing list to coordinate on
1645 common key-value definitions, or choose key names that are likely to be
1646 unique. No common key-value pairs are currently defined.
1647 </column>
1648 </group>
1649 </table>
1650
1651 <table name="NetFlow">
1652 A NetFlow target. NetFlow is a protocol that exports a number of
1653 details about terminating IP flows, such as the principals involved
1654 and duration.
1655
1656 <column name="targets">
1657 NetFlow targets in the form
1658 <code><var>ip</var>:<var>port</var></code>. The <var>ip</var>
1659 must be specified numerically, not as a DNS name.
1660 </column>
1661
1662 <column name="engine_id">
1663 Engine ID to use in NetFlow messages. Defaults to datapath index
1664 if not specified.
1665 </column>
1666
1667 <column name="engine_type">
1668 Engine type to use in NetFlow messages. Defaults to datapath
1669 index if not specified.
1670 </column>
1671
1672 <column name="active_timeout">
1673 The interval at which NetFlow records are sent for flows that are
1674 still active, in seconds. A value of <code>0</code> requests the
1675 default timeout (currently 600 seconds); a value of <code>-1</code>
1676 disables active timeouts.
1677 </column>
1678
1679 <column name="add_id_to_interface">
1680 <p>If this column's value is <code>false</code>, the ingress and egress
1681 interface fields of NetFlow flow records are derived from OpenFlow port
1682 numbers. When it is <code>true</code>, the 7 most significant bits of
1683 these fields will be replaced by the least significant 7 bits of the
1684 engine id. This is useful because many NetFlow collectors do not
1685 expect multiple switches to be sending messages from the same host, so
1686 they do not store the engine information which could be used to
1687 disambiguate the traffic.</p>
1688 <p>When this option is enabled, a maximum of 508 ports are supported.</p>
1689 </column>
1690
1691 <column name="external_ids">
1692 Key-value pairs for use by external frameworks that integrate with Open
1693 vSwitch, rather than by Open vSwitch itself. System integrators should
1694 either use the Open vSwitch development mailing list to coordinate on
1695 common key-value definitions, or choose key names that are likely to be
1696 unique. No common key-value pairs are currently defined.
1697 </column>
1698 </table>
1699
1700 <table name="SSL">
1701 SSL configuration for an Open_vSwitch.
1702
1703 <column name="private_key">
1704 Name of a PEM file containing the private key used as the switch's
1705 identity for SSL connections to the controller.
1706 </column>
1707
1708 <column name="certificate">
1709 Name of a PEM file containing a certificate, signed by the
1710 certificate authority (CA) used by the controller and manager,
1711 that certifies the switch's private key, identifying a trustworthy
1712 switch.
1713 </column>
1714
1715 <column name="ca_cert">
1716 Name of a PEM file containing the CA certificate used to verify
1717 that the switch is connected to a trustworthy controller.
1718 </column>
1719
1720 <column name="bootstrap_ca_cert">
1721 If set to <code>true</code>, then Open vSwitch will attempt to
1722 obtain the CA certificate from the controller on its first SSL
1723 connection and save it to the named PEM file. If it is successful,
1724 it will immediately drop the connection and reconnect, and from then
1725 on all SSL connections must be authenticated by a certificate signed
1726 by the CA certificate thus obtained. <em>This option exposes the
1727 SSL connection to a man-in-the-middle attack obtaining the initial
1728 CA certificate.</em> It may still be useful for bootstrapping.
1729 </column>
1730
1731 <column name="external_ids">
1732 Key-value pairs for use by external frameworks that integrate with Open
1733 vSwitch, rather than by Open vSwitch itself. System integrators should
1734 either use the Open vSwitch development mailing list to coordinate on
1735 common key-value definitions, or choose key names that are likely to be
1736 unique. No common key-value pairs are currently defined.
1737 </column>
1738 </table>
1739
1740 <table name="sFlow">
1741 <p>An sFlow(R) target. sFlow is a protocol for remote monitoring
1742 of switches.</p>
1743
1744 <column name="agent">
1745 Name of the network device whose IP address should be reported as the
1746 ``agent address'' to collectors. If not specified, the IP address
1747 defaults to the <ref table="Controller" column="local_ip"/> in the
1748 collector's <ref table="Controller"/>. If an agent IP address cannot be
1749 determined either way, sFlow is disabled.
1750 </column>
1751
1752 <column name="header">
1753 Number of bytes of a sampled packet to send to the collector.
1754 If not specified, the default is 128 bytes.
1755 </column>
1756
1757 <column name="polling">
1758 Polling rate in seconds to send port statistics to the collector.
1759 If not specified, defaults to 30 seconds.
1760 </column>
1761
1762 <column name="sampling">
1763 Rate at which packets should be sampled and sent to the collector.
1764 If not specified, defaults to 400, which means one out of 400
1765 packets, on average, will be sent to the collector.
1766 </column>
1767
1768 <column name="targets">
1769 sFlow targets in the form
1770 <code><var>ip</var>:<var>port</var></code>.
1771 </column>
1772
1773 <column name="external_ids">
1774 Key-value pairs for use by external frameworks that integrate with Open
1775 vSwitch, rather than by Open vSwitch itself. System integrators should
1776 either use the Open vSwitch development mailing list to coordinate on
1777 common key-value definitions, or choose key names that are likely to be
1778 unique. No common key-value pairs are currently defined.
1779 </column>
1780 </table>
1781
1782 <table name="Capability">
1783 <p>Records in this table describe functionality supported by the hardware
1784 and software platform on which this Open vSwitch is based. Clients
1785 should not modify this table.</p>
1786
1787 <p>A record in this table is meaningful only if it is referenced by the
1788 <ref table="Open_vSwitch" column="capabilities"/> column in the
1789 <ref table="Open_vSwitch"/> table. The key used to reference it, called
1790 the record's ``category,'' determines the meanings of the
1791 <ref column="details"/> column. The following general forms of
1792 categories are currently defined:</p>
1793
1794 <dl>
1795 <dt><code>qos-<var>type</var></code></dt>
1796 <dd><var>type</var> is supported as the value for
1797 <ref column="type" table="QoS"/> in the <ref table="QoS"/> table.
1798 </dd>
1799 </dl>
1800
1801 <column name="details">
1802 <p>Key-value pairs that describe capabilities. The meaning of the pairs
1803 depends on the category key that the <ref table="Open_vSwitch"
1804 column="capabilities"/> column in the <ref table="Open_vSwitch"/> table
1805 uses to reference this record, as described above.</p>
1806
1807 <p>The presence of a record for category <code>qos-<var>type</var></code>
1808 indicates that the switch supports <var>type</var> as the value of
1809 the <ref table="QoS" column="type"/> column in the <ref table="QoS"/>
1810 table. The following key-value pairs are defined to further describe
1811 QoS capabilities:</p>
1812
1813 <dl>
1814 <dt><code>n-queues</code></dt>
1815 <dd>Number of supported queues, as a positive integer. Keys in the
1816 <ref table="QoS" column="queues"/> column for <ref table="QoS"/>
1817 records whose <ref table="QoS" column="type"/> value
1818 equals <var>type</var> must range between 0 and this value minus one,
1819 inclusive.</dd>
1820 </dl>
1821 </column>
1822 </table>
1823 </database>