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