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