Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

38
Open_vSwitch(5) Open vSwitch Manual Open_vSwitch(5) Open_vSwitch DAT ABASE A database with this schema holds the configuration for one Open vSwitch daemon. The top-level configu- ration for the daemon is the Open_vSwitch table, which must have exactly one record. Records in other tables are significant only when they can be reached directly or indirectly from the Open_vSwitch table. Records that are not reachable from the Open_vSwitch table are automatically deleted from the database, except for records in a few distinguished ‘‘root set’’ tables. Common Columns Most tables contain two special columns, named other_config and external_ids. These columns have the same form and purpose each place that they appear, so we describe them here to save space later. other_config: map of string-string pairs Key-value pairs for configuring rarely used features. Supported keys, along with the forms taken by their values, are documented individually for each table. A few tables do not have other_config columns because no key-value pairs have yet been defined for them. external_ids: map of string-string pairs Key-value pairs for use by external frameworks that integrate with Open vSwitch, rather than by Open vSwitch itself. System integrators should either use the Open vSwitch development mailing list to coordinate on common key-value definitions, or choose key names that are likely to be unique. In some cases, where key-value pairs have been defined that are likely to be widely useful, they are documented individually for each ta- ble. TABLE SUMMARY The following list summarizes the purpose of each of the tables in the Open_vSwitch database. Each table is described in more detail on a later page. Table Purpose Open_vSwitch Open vSwitch configuration. Bridge Bridge configuration. Port Port configuration. Interface One physical network device in a Port. QoS Quality of Service configuration Queue QoS output queue. Mirror Port mirroring (SPAN/RSPAN/ERSPAN). Controller OpenFlow controller configuration. Manager OVSDB management connection. NetFlow NetFlow configuration. SSL SSL configuration. sFlow sFlow configuration. Capability Capability configuration. Open vSwitch September 2011 1

Transcript of Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Page 1: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Open_vSwitch DAT ABASEA database with this schema holds the configuration for one Open vSwitch daemon. The top-level configu-ration for the daemon is theOpen_vSwitch table, which must have exactly one record. Records in othertables are significant only when they can be reached directly or indirectly from theOpen_vSwitch table.Records that are not reachable from theOpen_vSwitch table are automatically deleted from the database,except for records in a few distinguished ‘‘root set’’ tables.

Common ColumnsMost tables contain two special columns, namedother_configandexternal_ids. These columns have thesame form and purpose each place that they appear, so we describe them here to save space later.

other_config: map of string-string pairsKe y-value pairs for configuring rarely used features. Supported keys, along with theforms taken by their values, are documented individually for each table.

A few tables do not have other_configcolumns because no key-value pairs have yet beendefined for them.

external_ids: map of string-string pairsKe y-value pairs for use by external frameworks that integrate with Open vSwitch, ratherthan by Open vSwitch itself. System integrators should either use the Open vSwitchdevelopment mailing list to coordinate on common key-value definitions, or choose keynames that are likely to be unique. In some cases, where key-value pairs have beendefined that are likely to be widely useful, they are documented individually for each ta-ble.

TABLE SUMMARYThe following list summarizes the purpose of each of the tables in theOpen_vSwitchdatabase. Eachtableis described in more detail on a later page.

Table PurposeOpen_vSwitch Open vSwitch configuration.Bridge Bridge configuration.Port Port configuration.Interface One physical network device in a Port.QoS Quality of Service configurationQueue QoS output queue.Mirror Port mirroring (SPAN/RSPAN/ERSPAN).Controller OpenFlow controller configuration.Manager OVSDB management connection.NetFlow NetFlow configuration.SSL SSL configuration.sFlow sFlow configuration.Capability Capability configuration.

Open vSwitch September 2011 1

Page 2: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

TABLE RELATIONSHIPSThe following diagram shows the relationship among tables in the database. Each node represents a table.Tables that are part of the ‘‘root set’’ are shown with double borders. Each edge leads from the table thatcontains it and points to the table that its value represents. Edges are labeled with their column names, fol-lowed by a constraint on the number of allowed values:? for zero or one,* for zero or more,+ for one ormore. Thicklines represent strong references; thin lines represent weak references.

Bridge

sFlow Mirror Port Controller NetFlow

QoS

Queue

Open_vSwitch

Capability SSL Manager

Interface

sflow? mirrors* ports* controller* netflow?

select_src_port*

output_port?

select_dst_port* qos? interfaces+

queues value*

bridges* capabilities value* ssl? manager_options*

Open vSwitch September 2011 2

Page 3: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Open_vSwitch TABLEConfiguration for an Open vSwitch daemon. There must be exactly one record in theOpen_vSwitchtable.

Summary:Configuration:

bridges set ofBridgesssl optionalSSLexternal_ids : system-id optional stringexternal_ids : xs-system-uuid optional string

Status:next_cfg integercur_cfg integercapabilities map of string-Capability pairsStatistics:

other_config : enable-statistics optional stringstatistics : cpu optional stringstatistics : load_average optional stringstatistics : memory optional stringstatistics : process_NAME optional stringstatistics : file_systems optional string

Version Reporting:ovs_version optional stringdb_version optional stringsystem_type optional stringsystem_version optional string

Database Configuration:manager_options set ofManagers

Common Columns:other_config map of string-string pairsexternal_ids map of string-string pairs

Details:Configuration:

bridges: set ofBridgesSet of bridges managed by the daemon.

ssl: optionalSSLSSL used globally by the daemon.

external_ids : system-id: optional stringA unique identifier for the Open vSwitch’s physical host. The form of the identifier depends onthe type of the host. On a Citrix XenServer, this will likely be the same asexternal_ids:xs-sys-tem-uuid.

external_ids : xs-system-uuid: optional stringThe Citrix XenServer universally unique identifier for the physical host as displayed byxehost−list.

Status:

next_cfg: integerSequence number for client to increment. When a client modifies any part of the database config-uration and wishes to wait for Open vSwitch to finish applying the changes, it may increment thissequence number.

cur_cfg: integerSequence number that Open vSwitch sets to the current value ofnext_cfgafter it finishes applyinga set of configuration changes.

Open vSwitch September 2011 3

Page 4: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

capabilities: map of string-Capability pairsDescribes functionality supported by the hardware and software platform on which this OpenvSwitch is based. Clients should not modify this column.See theCapability description fordefined capability categories and the meaning of associatedCapability records.

Statistics:The statistics column contains key-value pairs that report statistics about a system running an OpenvSwitch. Theseare updated periodically (currently, every 5 seconds).Ke y-value pairs that cannot be deter-mined or that do not apply to a platform are omitted.

other_config : enable-statistics: optional stringStatistics are disabled by default to avoid overhead in the common case when statistics gathering isnot useful. Set this value totrue to enable populating thestatisticscolumn or tofalse to explicitlydisable it.

statistics : cpu: optional stringNumber of CPU processors, threads, or cores currently online and available to the operating sys-tem on which Open vSwitch is running, as an integer. This may be less than the number installed,if some are not online or if they are not available to the operating system.

Open vSwitch userspace processes are not multithreaded, but the Linux kernel-based datapath is.

statistics : load_average: optional stringA comma-separated list of three floating-point numbers, representing the system load average overthe last 1, 5, and 15 minutes, respectively.

statistics : memory: optional stringA comma-separated list of integers, each of which represents a quantity of memory in kilobytesthat describes the operating system on which Open vSwitch is running. In respective order, thesevalues are:

1. Total amount of RAM allocated to the OS.

2. RAM allocated to the OS that is in use.

3. RAM that can be flushed out to disk or otherwise discarded if that space is needed for anotherpurpose. Thisnumber is necessarily less than or equal to the previous value.

4. Total disk space allocated for swap.

5. Swap space currently in use.

On Linux, all five values can be determined and are included. On other operating systems, onlythe first two values can be determined, so the list will only have two values.

statistics : process_NAME: optional stringOne such key-value pair, with NAME replaced by a process name, will exist for each runningOpen vSwitch daemon process, withname replaced by the daemon’s name (e.g.process_ovs−vswitchd). Thevalue is a comma-separated list of integers. Theintegers representthe following, with memory measured in kilobytes and durations in milliseconds:

1. The process’s virtual memory size.

2. The process’s resident set size.

3. The amount of user and system CPU time consumed by the process.

4. The number of times that the process has crashed and been automatically restarted by themonitor.

5. The duration since the process was started.

6. The duration for which the process has been running.

The interpretation of some of these values depends on whether the process was started with the−−monitor. If it was not, then the crash count will always be 0 and the two durations will always

Open vSwitch September 2011 4

Page 5: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

be the same.If −−monitor was giv en, then the crash count may be positive; if it i s, the latter dura-tion is the amount of time since the most recent crash and restart.

There will be one key-value pair for each file in Open vSwitch’s ‘‘run directory’’ (usually/var/run/openvswitch) whose name ends in.pid, whose contents are a process ID, and which islocked by a running process. Thenameis taken from the pidfile’s name.

Currently Open vSwitch is only able to obtain all of the above detail on Linux systems.On othersystems, the same key-value pairs will be present but the values will always be the empty string.

statistics : file_systems: optional stringA space-separated list of information on local, writable file systems. Each item in the listdescribes one file system and consists in turn of a comma-separated list of the following:

1. Mount point, e.g./ or /var/log. Any spaces or commas in the mount point are replaced byunderscores.

2. Total size, in kilobytes, as an integer.

3. Amount of storage in use, in kilobytes, as an integer.

This key-value pair is omitted if there are no local, writable file systems or if Open vSwitch cannotobtain the needed information.

Version Reporting:These columns report the types and versions of the hardware and software running Open vSwitch.We rec-ommend in general that software should test whether specific features are supported instead of relying onversion number checks. These values are primarily intended for reporting to human administrators.

ovs_version: optional stringThe Open vSwitch version number, e.g. 1.1.0. If Open vSwitch was configured with a build num-ber, then it is also included, e.g.1.1.0+build6579.

db_version: optional stringThe database schema version number in the formmajor.minor.tweak, e.g. 1.2.3. Whenever thedatabase schema is changed in a non-backward compatible way (e.g. deleting a column or a table),major is incremented. When the database schema is changed in a backward compatible way (e.g.adding a new column),minor is incremented. When the database schema is changed cosmetically(e.g. reindenting its syntax),tweakis incremented.

The schema version is part of the database schema, so it can also be retrieved by fetching theschema using the Open vSwitch database protocol.

system_type: optional stringAn identifier for the type of system on top of which Open vSwitch runs, e.g.XenServer or KVM .

System integrators are responsible for choosing and setting an appropriate value for this column.

system_version: optional stringThe version of the system identified bysystem_type, e.g. 5.6.100−39265pon XenServer 5.6.100build 39265.

System integrators are responsible for choosing and setting an appropriate value for this column.

Database Configuration:These columns primarily configure the Open vSwitch database (ovsdb−server ), not the Open vSwitchswitch (ovs−vswitchd). TheOVSDB database also uses thesslsettings.

The Open vSwitch switch does read the database configuration to determine remote IP addresses to whichin-band control should apply.

manager_options: set ofManagersDatabase clients to which the Open vSwitch database server should connect or to which it shouldlisten, along with options for how these connection should be configured. See theManager tablefor more information.

Open vSwitch September 2011 5

Page 6: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

other_config: map of string-string pairs

external_ids: map of string-string pairs

Open vSwitch September 2011 6

Page 7: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Bridge TABLEConfiguration for a bridge within anOpen_vSwitch.

A Bridge record represents an Ethernet switch with one or more ‘‘ports,’’ w hich are thePort recordspointed to by theBridge’s ports column.

Summary:Core Features:

name string (must be unique within table)ports set ofPort smirrors set ofMirror snetflow optionalNetFlowsflow optionalsFlowflood_vlans set of up to 4096 integers, in range 0 to 4,095

OpenFlow Configuration:controller set ofController sfail_mode optional string, eithersecureor standalonedatapath_id optional stringother_config : datapath-id optional stringother_config : disable-in-band optional stringother_config : in-band-queue optional string

Other Features:datapath_type stringexternal_ids : bridge-id optional stringexternal_ids : xs-network-uuids optional stringother_config : hwaddr optional stringother_config : flow-eviction-threshold optional stringother_config : forward-bpdu optional string

Common Columns:other_config map of string-string pairsexternal_ids map of string-string pairs

Details:Core Features:

name: string (must be unique within table)Bridge identifier. Should be alphanumeric and no more than about 8 bytes long. Must be uniqueamong the names of ports, interfaces, and bridges on a host.

ports: set ofPort sPorts included in the bridge.

mirrors : set ofMirror sPort mirroring configuration.

netflow: optionalNetFlowNetFlow configuration.

sflow: optionalsFlowsFlow configuration.

flood_vlans: set of up to 4096 integers, in range 0 to 4,095VLAN IDs of VLANs on which MAC address learning should be disabled, so that packets areflooded instead of being sent to specific ports that are believed to contain packets’ destinationMACs. Thisshould ordinarily be used to disable MAC learning on VLANs used for mirroring(RSPAN VLANs). It may also be useful for debugging.

SLB bonding (see thebond_modecolumn in thePort table) is incompatible withflood_vlans.Consider using another bonding mode or a different type of mirror instead.

OpenFlow Configuration:

Open vSwitch September 2011 7

Page 8: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

controller : set ofController sOpenFlow controller set. If unset, then no OpenFlow controllers will be used.

fail_mode: optional string, eithersecureor standaloneWhen a controller is configured, it is, ordinarily, responsible for setting up all flows on the switch.Thus, if the connection to the controller fails, no new network connections can be set up. If theconnection to the controller stays down long enough, no packets can pass through the switch at all.This setting determines the switch’s response to such a situation. It may be set to one of the fol-lowing:

standaloneIf no message is received from the controller for three times the inactivity probe interval(see inactivity_probe), then Open vSwitch will take over responsibility for setting upflows. In this mode, Open vSwitch causes the bridge to act like an ordinary MAC-learn-ing switch. Open vSwitch will continue to retry connecting to the controller in the back-ground and, when the connection succeeds, it will discontinue its standalone behavior.

secure Open vSwitch will not set up flows on its own when the controller connection fails orwhen no controllers are defined. The bridge will continue to retry connecting to anydefined controllers forever.

If this value is unset, the default is implementation-specific.

When more than one controller is configured,fail_mode is considered only when none of the con-figured controllers can be contacted.

datapath_id: optional stringReports the OpenFlow datapath ID in use. Exactly 16 hex digits. (Settingthis column has no use-ful effect. Setother-config:datapath-id instead.)

other_config : datapath-id: optional stringExactly 16 hex digits to set the OpenFlow datapath ID to a specific value. Maynot be all-zero.

other_config : disable-in-band: optional stringIf set totrue, disable in-band control on the bridge regardless of controller and manager settings.

other_config : in-band-queue: optional stringA queue ID as a nonnegative integer. This sets the OpenFlow queue ID that will be used by flowsset up by in-band control on this bridge.If unset, or if the port used by an in-band control flowdoes not have QoS configured, or if the port does not have a queue with the specified ID, thedefault queue is used instead.

Other Features:

datapath_type: stringName of datapath provider. The kernel datapath has typesystem. The userspace datapath hastypenetdev.

external_ids : bridge-id: optional stringA unique identifier of the bridge. On Citrix XenServer this will commonly be the same asexter-nal_ids:xs-network-uuids.

external_ids : xs-network-uuids: optional stringSemicolon-delimited set of universally unique identifier(s) for the network with which this bridgeis associated on a Citrix XenServer host. The network identifiers are RFC 4122 UUIDs as dis-played by, e.g.,xe network−list.

other_config : hwaddr: optional stringAn Ethernet address in the formxx:xx:xx:xx:xx:xx to set the hardware address of the local port andinfluence the datapath ID.

Open vSwitch September 2011 8

Page 9: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

other_config : flow-eviction-threshold: optional stringA number of flows as a nonnegative integer. This sets number of flows at which eviction from thekernel flow table will be triggered. If there are a large number of flows then increasing this valueto around the number of flows present can result in reduced CPU usage and packet loss.

The default is 1000.Values below 100 will be rounded up to 100.

other_config : forward-bpdu: optional stringOption to allow forwarding of BPDU frames when NORMAL action if invoked. Frames withreserved Ethernet addresses (e.g. STP BPDU) will be forwarded when this option is enabled.Ifthe Open vSwitch bridge is used to connect different Ethernet networks, and if Open vSwitch nodedoes not run STP, then this option should be enabled. Default is disabled, set totrue to enable.

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

other_config: map of string-string pairs

external_ids: map of string-string pairs

Open vSwitch September 2011 9

Page 10: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Port TABLEA port within aBridge.

Most commonly, a port has exactly one ‘‘interface,’’ pointed to by itsinterfacescolumn. Sucha port logi-cally corresponds to a port on a physical Ethernet switch.A port with more than one interface is a ‘‘bondedport’’ (seeBonding Configuration).

Some properties that one might think as belonging to a port are actually part of the port’s Interface mem-bers.

Summary:name string (must be unique within table)interfaces set of 1 or moreInterfacesVLAN Configuration:

tag optional integer, in range 0 to 4,095trunks set of up to 4096 integers, in range 0 to 4,095

Bonding Configuration:bond_mode optional string, one ofactive−backup, balance−tcp,

balance−slb, or stableLink Failure Detection:

other_config : bond-detect-mode optional stringother_config : bond-miimon-interval optional stringbond_updelay integerbond_downdelay integer

LACP Configuration:lacp optional string, one ofactive, passive, or offother_config : lacp-system-id optional stringother_config : lacp-system-priority optional stringother_config : lacp-time optional stringother_config : lacp-heartbeat optional stringother_config : bond-hash-basis optional string

SLB Configuration:other_config : bond-rebalance-interval optional string

bond_fake_iface booleanOther Features:

qos optionalQoSmac optional stringfake_bridge booleanexternal_ids : fake-bridge-id-* optional string

Common Columns:other_config map of string-string pairsexternal_ids map of string-string pairs

Details:name: string (must be unique within table)

Port name. Should be alphanumeric and no more than about 8 bytes long.May be the same as theinterface name, for non-bonded ports.Must otherwise be unique among the names of ports, inter-faces, and bridges on a host.

interfaces: set of 1 or moreInterfacesThe port’s interfaces. Ifthere is more than one, this is a bonded Port.

VLAN Configuration:A bridge port must be configured for VLANs in one of two mutually exclusive ways:

• A ‘ ‘trunk port’’ has an empty value fortag. Its trunks value may be empty or non-empty.

Open vSwitch September 2011 10

Page 11: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

• An ‘‘implicitly tagged VLAN port’’ or ‘ ‘access port’’ has an nonempty value fortag. Itstrunks value must be empty.

If trunks andtag are both nonempty, the configuration is ill-formed.

tag: optional integer, in range 0 to 4,095If this is an access port (see above), the port’s implicitly tagged VLAN. Must be empty if this is atrunk port.

Frames arriving on trunk ports will be forwarded to this port only if they are tagged with the givenVLAN (or, if tag is 0, then if they lack a VLAN header). Frames arriving on other access portswill be forwarded to this port only if they hav ethe sametag value. Framesforwarded to this portwill not have an 802.1Q header.

When a frame with a 802.1Q header that indicates a nonzero VLAN is received on an access port,it is discarded.

trunks : set of up to 4096 integers, in range 0 to 4,095If this is a trunk port (see above), the 802.1Q VLAN(s) that this port trunks; if it is empty, then theport trunks all VLANs. Must be empty if this is an access port.

Frames arriving on trunk ports are dropped if they are not in one of the specified VLANs.For thispurpose, packets that have no VLAN header are treated as part of VLAN 0.

Bonding Configuration:A port that has more than one interface is a ‘‘bonded port.’’ B onding allows for load balancing and fail-over. Some kinds of bonding will work with any kind of upstream switch:

balance−slbBalances flows among slaves based on source MAC address and output VLAN, with peri-odic rebalancing as traffic patterns change.

active−backupAssigns all flows to one slave, failing over to a backup slave when the active slave is dis-abled.

The following modes require the upstream switch to support 802.3ad with successful LACP negotiation. IfLACP negotiation fails thenbalance−slbstyle flow hashing is used as a fallback:

balance−tcpBalances flows among slaves based on L2, L3, and L4 protocol information such as desti-nation MAC address, IP address, and TCP port.

stable Attempts to always assign a given flow to the same slave consistently. In an effort tomaintain stability, no load balancing is done. Uses a similar hashing strategy tobal-ance−tcp, always taking into account L3 and L4 fields even if LACP negotiations areunsuccessful.

Slave selection decisions are made based onother_config:bond-stable-idif set. Other-wise, OpenFlow port number is used. Decisions are consistent across allovs−vswitchdinstances with equivalentother_config:bond-stable-idvalues.

These columns apply only to bonded ports. Their values are otherwise ignored.

bond_mode: optional string, one ofactive−backup, balance−tcp, balance−slb, or stableThe type of bonding used for a bonded port. Defaults tobalance−slbif unset.

Link Failure Detection:An important part of link bonding is detecting that links are down so that they may be disabled. These set-tings determine how Open vSwitch detects link failure.

other_config : bond-detect-mode: optional stringThe means used to detect link failures. Optionsare carrier and miimon. Defaults tocarrierwhich uses each interface’s carrier to detect failures. Whenset tomiimon, will check for failuresby polling each interface’s MII.

Open vSwitch September 2011 11

Page 12: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

other_config : bond-miimon-interval: optional stringThe interval, in milliseconds, between successive attempts to poll each interface’s MII. Relevantonly whenother_config:bond-detect-modeis miimon.

bond_updelay: integerThe number of milliseconds for which carrier must stay up on an interface before the interface isconsidered to be up. Specify0 to enable the interface immediately.

This setting is honored only when at least one bonded interface is already enabled.When no inter-faces are enabled, then the first bond interface to come up is enabled immediately.

bond_downdelay: integerThe number of milliseconds for which carrier must stay down on an interface before the interfaceis considered to be down. Specify0 to disable the interface immediately.

LACP Configuration:LACP, the Link Aggregation Control Protocol, is an IEEE standard that allows switches to automaticallydetect that they are connected by multiple links and aggregate across those links. These settings controlLACP behavior.

lacp: optional string, one ofactive, passive, or offConfigures LACP on this port.LACP allows directly connected switches to negotiate which linksmay be bonded.LACP may be enabled on non-bonded ports for the benefit of any switches theymay be connected to.active ports are allowed to initiate LACP negotiations. passive ports areallowed to participate in LACP negotiations initiated by a remote switch, but not allowed to initi-ate such negotiations themselves. Defaults tooff if unset.

other_config : lacp-system-id: optional stringThe LACP system ID of thisPort . The system ID of a LACP bond is used to identify itself to itspartners. Mustbe a nonzero MAC address.

other_config : lacp-system-priority: optional stringThe LACP system priority of thisPort . In LACP negotiations, link status decisions are made bythe system with the numerically lower priority. Must be a number between 1 and 65535.

other_config : lacp-time: optional stringThe LACP timing which should be used on thisPort . Possible values arefast, slow and a positivenumber of milliseconds. By default slow is used. When configured to befast LACP heartbeatsare requested at a rate of once per second causing connectivity problems to be detected morequickly. In slowmode, heartbeats are requested at a rate of once every 30 seconds.

Users may manually set a heartbeat transmission rate to increase the fault detection speed further.When manually set, OVS expects the partner switch to be configured with the same transmissionrate. Manuallysetting lacp−time to something other thanfast or slow is not supported by theLACP specification.

other_config : lacp-heartbeat: optional stringTreats LACP like a simple heartbeat protocol for link state monitoring. Most features of theLACP protocol are disabled when this mode is in use.

other_config : bond-hash-basis: optional stringAn integer hashed along with flows when choosing output slaves. Whenchanged, all flows will beassigned different hash values possibly causing slave selection decisions to change.

SLB Configuration:These settings control behavior when a bond is inbalance−slbmode, regardless of whether the bond wasintentionally configured in SLB mode or it fell back to SLB mode because LACP negotiation failed.

other_config : bond-rebalance-interval: optional stringFor an SLB bonded port, the number of milliseconds between successive attempts to rebalance thebond, that is, to move source MACs and their flows from one interface on the bond to another inan attempt to keep usage of each interface roughly equal. The default is 10000 (10 seconds), and

Open vSwitch September 2011 12

Page 13: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

the minimum is 1000 (1 second).

bond_fake_iface: booleanFor a bonded port, whether to create a fake internal interface with the name of the port. Use onlyfor compatibility with legacy software that requires this.

Other Features:

qos: optionalQoSQuality of Service configuration for this port.

mac: optional stringThe MAC address to use for this port for the purpose of choosing the bridge’s MAC address. Thiscolumn does not necessarily reflect the port’s actual MAC address, nor will setting it change theport’s actual MAC address.

fake_bridge: booleanDoes this port represent a sub-bridge for its tagged VLAN within the Bridge? See ovs-vsctl(8) formore information.

external_ids : fake-bridge-id-*: optional stringExternal IDs for a fake bridge (see thefake_bridge column) are defined by prefixing aBridgeexternal_idskey with fake−bridge−, e.g. fake−bridge−xs−network−uuids.

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

other_config: map of string-string pairs

external_ids: map of string-string pairs

Open vSwitch September 2011 13

Page 14: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Interface TABLEAn interface within aPort .

Summary:Core Features:

name string (must be unique within table)mac optional stringofport optional integer

System-Specific Details:type string

Tunnel Options:options : remote_ip optional stringoptions : local_ip optional stringoptions : in_key optional stringoptions : out_key optional stringoptions : key optional stringoptions : tos optional stringoptions : ttl optional stringoptions : csum optional stringoptions : df_inherit optional stringoptions : df_default optional stringoptions : pmtud optional stringoptions : header_cache optional stringTunnel Options: ipsec_gre only:

options : peer_cert optional stringoptions : certificate optional stringoptions : private_key optional stringoptions : psk optional string

Patch Port Options:options : peer optional string

Interface Status:admin_state optional string, eitherdown or uplink_state optional string, eitherdown or uplink_speed optional integerduplex optional string, eitherfull or halfmtu optional integerlacp_current optional booleanstatus map of string-string pairsstatus : driver_name optional stringstatus : driver_version optional stringstatus : firmware_version optional stringstatus : source_ip optional stringstatus : tunnel_egress_iface optional stringstatus : tunnel_egress_iface_carrier optional stringstatistics map of string-integer pairs

Ingress Policing:ingress_policing_rate integer, at least 0ingress_policing_burst integer, at least 0

Connectivity Fault Management:cfm_mpid optional integercfm_fault optional booleancfm_remote_mpids set of integersother_config : cfm_interval optional stringother_config : cfm_extended optional string

Open vSwitch September 2011 14

Page 15: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Bonding Configuration:other_config : bond-stable-id optional stringother_config : lacp-port-id optional stringother_config : lacp-port-priority optional stringother_config : lacp-aggregation-key optional string

Virtual Machine Identifiers:external_ids : attached-mac optional stringexternal_ids : iface-id optional stringexternal_ids : xs-vif-uuid optional stringexternal_ids : xs-network-uuid optional stringexternal_ids : xs-vm-uuid optional string

Common Columns:other_config map of string-string pairsexternal_ids map of string-string pairs

Details:Core Features:

name: string (must be unique within table)Interface name. Should be alphanumeric and no more than about 8 bytes long. May be the sameas the port name, for non-bonded ports. Must otherwise be unique among the names of ports,interfaces, and bridges on a host.

mac: optional stringEthernet address to set for this interface. Ifunset then the default MAC address is used:

• For the local interface, the default is the lowest-numbered MAC address among the otherbridge ports, either the value of themac in its Port record, if set, or its actual MAC (forbonded ports, the MAC of its slave whose name is first in alphabetical order).Internalports and bridge ports that are used as port mirroring destinations (see theMirror table)are ignored.

• For other internal interfaces, the default MAC is randomly generated.

• External interfaces typically have a MAC address associated with their hardware.

Some interfaces may not have a software-controllable MAC address.

ofport : optional integerOpenFlow port number for this interface. Unlike most columns, this column’s value should be setonly by Open vSwitch itself. Other clients should set this column to an empty set (the default)when creating anInterface.

Open vSwitch populates this column when the port number becomes known. If the interface issuccessfully added,ofport will be set to a number between 1 and 65535 (generally either in therange 1 to 65279, inclusive, or 65534, the port number for the OpenFlow ‘‘local port’’). If theinterface cannot be added then Open vSwitch sets this column to -1.

System-Specific Details:

type: stringThe interface type, one of:

system An ordinary network device, e.g.eth0 on Linux. Sometimes referred to as ‘‘externalinterfaces’’ since they are generally connected to hardware external to that on which theOpen vSwitch is running. The empty string is a synonym forsystem.

internalA simulated network device that sends and receives traffic. An internal interface whosename is the same as its bridge’s name is called the ‘‘local interface.’’ I t does not makesense to bond an internal interface, so the terms ‘‘port’’ and ‘‘interface’’ are often usedimprecisely for internal interfaces.

Open vSwitch September 2011 15

Page 16: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

tap A TUN/TAP device managed by Open vSwitch.

gre An Ethernet over RFC 2890 Generic Routing Encapsulation over IPv4 tunnel.SeeTun-nel Options for information on configuring GRE tunnels.

ipsec_greAn Ethernet over RFC 2890 Generic Routing Encapsulation over IPv4 IPsec tunnel.

capwapAn Ethernet tunnel over the UDP transport portion of CAPWAP (RFC 5415).Thisallows interoperability with certain switches that do not support GRE.Only the tunnelingcomponent of the protocol is implemented.UDP ports 58881 and 58882 are used as thesource and destination ports respectively. CAPWAP is currently supported only with theLinux kernel datapath with kernel version 2.6.25 or later.

patch A pair of virtual devices that act as a patch cable.

null An ignored interface.

SeeTunnel Options for information on configuring GRE, GRE-over-IPsec, and CAPWAP tun-nels. SeePatch Options for information on configured patch ports.

Tunnel Options:These options apply to interfaces withtype of gre, ipsec_gre, andcapwap.

Each tunnel must be uniquely identified by the combination oftype, options:remote_ip, options:local_ip,andoptions:in_key. If two ports are defined that are the same except one has an optional identifier and theother does not, the more specific one is matched first.options:in_key is considered more specific thanoptions:local_ip if a port defines one and another port defines the other.

options : remote_ip: optional stringRequired. Thetunnel endpoint.

options : local_ip: optional stringOptional. Thedestination IP that received packets must match. Default is to match all addresses.

options : in_key: optional stringOptional. Thekey that received packets must contain, one of:

• 0. The tunnel receives packets with no key or with a key of 0. This is equivalent to spec-ifying no options:in_keyat all.

• A positive 32-bit (for GRE) or 64-bit (for CAPWAP) number. The tunnel receives onlypackets with the specified key.

• The word flow. The tunnel accepts packets with any key. The key will be placed in thetun_id field for matching in the flow table. Theovs−ofctl manual page contains addi-tional information about matching fields in OpenFlow flows.

options : out_key: optional stringOptional. Thekey to be set on outgoing packets, one of:

• 0. Packets sent through the tunnel will have no key. This is equivalent to specifying nooptions:out_keyat all.

• A positive 32-bit (for GRE) or 64-bit (for CAPWAP) number. Packets sent through thetunnel will have the specified key.

• The word flow. Packets sent through the tunnel will have the key set using theset_tun-nel Nicira OpenFlow vendor extension (0 is used in the absence of an action).Theovs−ofctl manual page contains additional information about the Nicira OpenFlow ven-dor extensions.

options : key: optional stringOptional. Shorthandto setin_key andout_keyat the same time.

Open vSwitch September 2011 16

Page 17: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

options : tos: optional stringOptional. Thevalue of the ToS bits to be set on the encapsulating packet. It may also be the wordinherit , in which case the ToS will be copied from the inner packet if it is IPv4 or IPv6 (otherwiseit will be 0). The ECN fields are always inherited. Default is 0.

options : ttl: optional stringOptional. TheTTL to be set on the encapsulating packet. It may also be the word inherit , inwhich case the TTL will be copied from the inner packet if it is IPv4 or IPv6 (otherwise it will bethe system default, typically 64). Default is the system default TTL.

options : csum: optional stringOptional. ComputeGRE checksums on outgoing packets. Checksumspresent on incoming pack-ets will be validated regardless of this setting. Note that GRE checksums impose a significant per-formance penalty as they cover the entire packet. Asthe contents of the packet is typically cov-ered by L3 and L4 checksums, this additional checksum only adds value for the GRE and encap-sulated Ethernet headers. Default is disabled, set totrue to enable.

options : df_inherit: optional stringOptional. Ifenabled, the Don’t Fragment bit will be copied from the inner IP headers (those of theencapsulated traffic) to the outer (tunnel) headers. Default is disabled; set totrue to enable.

options : df_default: optional stringOptional. If enabled, the Don’t Fragment bit will be set by default on tunnel headers if thedf_inherit option is not set, or if the encapsulated packet is not IP. Default is enabled; set tofalseto disable.

options : pmtud: optional stringOptional. Enabletunnel path MTU discovery. If enabled ‘‘ICMP Destination Unreachable - Frag-mentation Needed’’ messages will be generated for IPv4 packets with the DF bit set and IPv6packets above the minimum MTU if the packet size exceeds the path MTU minus the size of thetunnel headers. Note that this option causes behavior that is typically reserved for routers andtherefore is not entirely in compliance with the IEEE 802.1D specification for bridges.Default isenabled; set tofalseto disable.

options : header_cache: optional stringOptional. Enablecaching of tunnel headers and the output path.This can lead to a significant per-formance increase without changing behavior. In general it should not be necessary to adjust thissetting. However, the caching can bypass certain components of the IP stack (such as IP tables)and it may be useful to disable it if these features are required or as a debugging measure.Defaultis enabled, set tofalseto disable.

Header caching is not supported foripsec_gretunnels.

Tunnel Options: ipsec_gre only:These options are supported only foripsec_gretunnels.

options : peer_cert: optional stringRequired for certificate authentication.A string containing the peer’s certificate in PEM format.Additionally the host’s certificate must be specified with thecertificate option.

options : certificate: optional stringRequired for certificate authentication. The name of a PEM file containing a certificate that willbe presented to the peer during authentication.

options : private_key: optional stringOptional for certificate authentication. The name of a PEM file containing the private key associ-ated withcertificate. If certificate contains the private key, this option may be omitted.

options : psk: optional stringRequired for pre-shared key authentication. Specifiesa pre-shared key for authentication thatmust be identical on both sides of the tunnel.

Open vSwitch September 2011 17

Page 18: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Patch Port Options:These options apply to interfaces withtype of patch.

options : peer: optional stringThe name of the Interface for the other side of the patch. The namedInterface’s own peeroption must specify thisInterface’s name. Thatis, the two patch interfaces must have rev ersednameandpeervalues.

Interface Status:Status information about interfaces attached to bridges, updated every 5 seconds.Not all interfaces have allof these properties; virtual interfaces don’t hav ea link speed, for example. Non-applicablecolumns willhave empty values.

admin_state: optional string, eitherdown or upThe administrative state of the physical network link.

link_state: optional string, eitherdown or upThe observed state of the physical network link. This is ordinarily the link’s carrier status. If theinterface’sPort is a bond configured for miimon monitoring, it is instead the network link’smiimon status.

link_speed: optional integerThe negotiated speed of the physical network link.Valid values are positive integers greater than0.

duplex: optional string, eitherfull or halfThe duplex mode of the physical network link.

mtu: optional integerThe MTU (maximum transmission unit); i.e. the largest amount of data that can fit into a singleEthernet frame. The standard Ethernet MTU is 1500 bytes. Some physical media and many kindsof virtual interfaces can be configured with higher MTUs.

This column will be empty for an interface that does not have an MTU as, for example, somekinds of tunnels do not.

lacp_current: optional booleanBoolean value indicating LACP status for this interface. If true, this interface has current LACPinformation about its LACP partner. This information may be used to monitor the health of inter-faces in a LACP enabled port. This column will be empty if LACP is not enabled.

status: map of string-string pairsKe y-value pairs that report port status.Supported status values aretype-dependent; some inter-faces may not have a valid status:driver_name, for example.

status : driver_name: optional stringThe name of the device driver controlling the network adapter.

status : driver_version: optional stringThe version string of the device driver controlling the network adapter.

status : firmware_version: optional stringThe version string of the network adapter’s firmware, if available.

status : source_ip: optional stringThe source IP address used for an IPv4 tunnel end-point, such asgre or capwap.

status : tunnel_egress_iface: optional stringEgress interface for tunnels. Currently only relevant for GRE and CAPWAP tunnels. On Linuxsystems, this column will show the name of the interface which is responsible for routing trafficdestined for the configuredoptions:remote_ip. This could be an internal interface such as abridge port.

Open vSwitch September 2011 18

Page 19: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

status : tunnel_egress_iface_carrier: optional stringWhether a carrier is detected onstatus:tunnel_egress_iface. Valid values aredown andup.

statistics: map of string-integer pairsKe y-value pairs that report interface statistics. The current implementation updates these countersperiodically. In the future, we plan to, instead, update them when an interface is created, whenthey are queried (e.g. using an OVSDB selectoperation), and just before an interface is deleteddue to virtual interface hot-unplug or VM shutdown, and perhaps at other times, but not on anyregular periodic basis.

The currently defined key-value pairs are listed below. These are the same statistics reported byOpenFlow in its struct ofp_port_statsstructure. Ifan interface does not support a given statistic,then that pair is omitted.

• Successful transmit and receive counters:

rx_packetsNumber of received packets.

rx_bytesNumber of received bytes.

tx_packetsNumber of transmitted packets.

tx_bytesNumber of transmitted bytes.

• Receive errors:

rx_droppedNumber of packets dropped by RX.

rx_frame_errNumber of frame alignment errors.

rx_over_errNumber of packets with RX overrun.

rx_crc_errNumber of CRC errors.

rx_errorsTotal number of receive errors, greater than or equal to the sum of the above.

• Transmit errors:

tx_droppedNumber of packets dropped by TX.

collisionsNumber of collisions.

tx_errorsTotal number of transmit errors, greater than or equal to the sum of the above.

Ingress Policing:These settings control ingress policing for packets received on this interface. Ona physical interface, thislimits the rate at which traffic is allowed into the system from the outside; on a virtual interface (one con-nected to a virtual machine), this limits the rate at which the VM is able to transmit.

Policing is a simple form of quality-of-service that simply drops packets received in excess of the config-ured rate. Due to its simplicity, policing is usually less accurate and less effective than egress QoS (whichis configured using theQoSandQueuetables).

Policing is currently implemented only on Linux.The Linux implementation uses a simple ‘‘token bucket’’

Open vSwitch September 2011 19

Page 20: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

approach:

• The size of the bucket corresponds toingress_policing_burst. Initially the bucket is full.

• Whenever a packet is received, its size (converted to tokens) is compared to the numberof tokens currently in the bucket. If the required number of tokens are available, they areremoved and the packet is forwarded. Otherwise,the packet is dropped.

• Whenever it is not full, the bucket is refilled with tokens at the rate specified byingress_policing_rate.

Policing interacts badly with some network protocols, and especially with fragmented IP packets. Supposethat there is enough network activity to keep the bucket nearly empty all the time. Then this token bucketalgorithm will forward a single packet every so often, with the period depending on packet size and on theconfigured rate. All of the fragments of an IP packets are normally transmitted back-to-back, as a group.In such a situation, therefore, only one of these fragments will be forwarded and the rest will be dropped.IP does not provide any way for the intended recipient to ask for only the remaining fragments. In such acase there are two likely possibilities for what will happen next: either all of the fragments will eventuallybe retransmitted (as TCP will do), in which case the same problem will recur, or the sender will not realizethat its packet has been dropped and data will simply be lost (as some UDP-based protocols will do).Either way, it is possible that no forward progress will ever occur.

ingress_policing_rate: integer, at least 0Maximum rate for data received on this interface, in kbps. Data received faster than this rate isdropped. Setto 0 (the default) to disable policing.

ingress_policing_burst: integer, at least 0Maximum burst size for data received on this interface, in kb. The default burst size if set to0 is1000 kb. This value has no effect ifingress_policing_rateis 0.

Specifying a larger burst size lets the algorithm be more forgiving, which is important for proto-cols like TCP that react severely to dropped packets. Theburst size should be at least the size ofthe interface’s MTU. Specifying a value that is numerically at least as large as 10% ofingress_policing_ratehelps TCP come closer to achieving the full rate.

Connectivity Fault Management:802.1ag Connectivity Fault Management (CFM) allows a group of Maintenance Points (MPs) called aMaintenance Association (MA) to detect connectivity problems with each other. MPs within a MA shouldhave complete and exclusive interconnectivity. This is verified by occasionally broadcasting ContinuityCheck Messages (CCMs) at a configurable transmission interval.

According to the 802.1ag specification, each Maintenance Point should be configured out-of-band with alist of Remote Maintenance Points it should have connectivity to. Open vSwitch differs from the specifica-tion in this area. It simply assumes the link is faulted if no Remote Maintenance Points are reachable, andconsiders it not faulted otherwise.

cfm_mpid: optional integerA Maintenance Point ID (MPID) uniquely identifies each endpoint within a Maintenance Associa-tion. TheMPID is used to identify this endpoint to other Maintenance Points in the MA.Eachend of a link being monitored should have a different MPID. Must be configured to enable CFMon thisInterface.

cfm_fault: optional booleanIndicates a connectivity fault triggered by an inability to receive heartbeats from any remote end-point. Whena fault is triggered onInterfaces participating in bonds, they will be disabled.

Faults can be triggered for several reasons. Most importantly they are triggered when no CCMsare received for a period of 3.5 times the transmission interval. Faults are also triggered when anyCCMs indicate that a Remote Maintenance Point is not receiving CCMs but able to send them.Finally, a fault is triggered if a CCM is received which indicates unexpected configuration.Notably, this case arises when a CCM is received which advertises the local MPID.

Open vSwitch September 2011 20

Page 21: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

cfm_remote_mpids: set of integersWhen CFM is properly configured, Open vSwitch will occasionally receive CCM broadcasts.These broadcasts contain the MPID of the sending Maintenance Point. The list of MPIDs fromwhich thisInterface is receiving broadcasts from is regularly collected and written to this column.

other_config : cfm_interval: optional stringThe interval, in milliseconds, between transmissions of CFM heartbeats. Three missed heartbeatreceptions indicate a connectivity fault. Defaults to 1000.

other_config : cfm_extended: optional stringWhentrue, the CFM module operates in extended mode. This causes it to use a nonstandard desti-nation address to avoid conflicting with compliant implementations which may be running concur-rently on the network. Furthermore, extended mode increases the accuracy of the cfm_intervalconfiguration parameter by breaking wire compatibility with 802.1ag compliant implementations.Defaults to false.

Bonding Configuration:

other_config : bond-stable-id: optional stringA positive integer using instable bond mode to make slave selection decisions.Allocatingother_config:bond-stable-id values consistently across interfaces participating in a bond willguarantee consistent slave selection decisions acrossovs−vswitchd instances when usingstablebonding mode.

other_config : lacp-port-id: optional stringThe LACP port ID of thisInterface. Port IDs are used in LACP negotiations to identify individ-ual ports participating in a bond. Must be a number between 1 and 65535.

other_config : lacp-port-priority : optional stringThe LACP port priority of thisInterface. In LACP negotiations Interfaces with numericallylower priorities are preferred for aggregation. Mustbe a number between 1 and 65535.

other_config : lacp-aggregation-key: optional stringThe LACP aggregation key of this Interface. Interfaces with different aggregation keys may notbe active within a given Port at the same time. Must be a number between 1 and 65535.

Virtual Machine Identifiers:These key-value pairs specifically apply to an interface that represents a virtual Ethernet interface con-nected to a virtual machine. These key-value pairs should not be present for other types of interfaces. Keyswhose names end in−uuid have values that uniquely identify the entity in question.For a Citrix XenServerhypervisor, these values are UUIDs in RFC 4122 format. Other hypervisors may use other formats.

external_ids : attached-mac: optional stringThe MAC address programmed into the ‘‘virtual hardware’’ f or this interface, in the formxx:xx:xx:xx:xx:xx. For Citrix XenServer, this is the value of theMAC field in the VIF record forthis interface.

external_ids : iface-id: optional stringA system-unique identifier for the interface. OnXenServer, this will commonly be the same asexternal_ids:xs-vif-uuid.

external_ids : xs-vif-uuid: optional stringThe virtual interface associated with this interface.

external_ids : xs-network-uuid: optional stringThe virtual network to which this interface is attached.

external_ids : xs-vm-uuid: optional stringThe VM to which this interface belongs.

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

Open vSwitch September 2011 21

Page 22: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

other_config: map of string-string pairs

external_ids: map of string-string pairs

Open vSwitch September 2011 22

Page 23: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

QoS TABLEQuality of Service (QoS) configuration for each Port that references it.

Summary:type stringqueues map of integer-Queue pairs, key in range 0 to

4,294,967,295Configuration for linux-htb and linux-hfsc:

other_config : max-rate optional stringCommon Columns:

other_config map of string-string pairsexternal_ids map of string-string pairs

Details:type: string

The type of QoS to implement.Thecapabilities column in theOpen_vSwitchtable identifies thetypes that a switch actually supports. The currently defined types are listed below:

linux−htbLinux ‘‘hierarchy token bucket’’ classifier. See tc-htb(8) (also athttp://linux.die.net/man/8/tc−htb) and the HTB manual(http://luxik.cdi.cz/˜devik/qos/htb/manual/userg.htm) for information on how thisclassifier works and how to configure it.

linux−hfscLinux "Hierarchical Fair Service Curve" classifier. See http://linux−ip.net/arti-cles/hfsc.en/for information on how this classifier works.

queues: map of integer-Queuepairs, key in range 0 to 4,294,967,295A map from queue numbers toQueuerecords. Thesupported range of queue numbers depend ontype. The queue numbers are the same as thequeue_id used in OpenFlow in structofp_action_enqueueand other structures.Queue 0 is used by OpenFlow output actions that donot specify a specific queue.

Configuration for linux-htb and linux-hfsc:The linux−htb andlinux−hfsc classes support the following key-value pair:

other_config : max-rate: optional stringMaximum rate shared by all queued traffic, in bit/s. Optional. Ifnot specified, for physical inter-faces, the default is the link rate.For other interfaces or if the link rate cannot be determined, thedefault is currently 100 Mbps.

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

other_config: map of string-string pairs

external_ids: map of string-string pairs

Open vSwitch September 2011 23

Page 24: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Queue TABLEA configuration for a port output queue, used in configuring Quality of Service (QoS) features. May be ref-erenced byqueuescolumn inQoStable.

Summary:Configuration for min-rate QoS:

other_config : min-rate optional stringConfiguration for linux-htb QoS:

other_config : min-rate optional stringother_config : max-rate optional stringother_config : burst optional stringother_config : priority optional string

Configuration for linux-hfsc QoS:other_config : min-rate optional stringother_config : max-rate optional string

Common Columns:other_config map of string-string pairsexternal_ids map of string-string pairs

Details:Configuration for min-rate QoS:

These key-value pairs are defined forQoS typeof min−rate.

other_config : min-rate: optional stringMinimum guaranteed bandwidth, in bit/s.Required. Thefloor value is 1500 bytes/s (12,000bit/s).

Configuration for linux-htb QoS:These key-value pairs are defined forQoS typeof linux−htb .

other_config : min-rate: optional stringMinimum guaranteed bandwidth, in bit/s.

other_config : max-rate: optional stringMaximum allowed bandwidth, in bit/s.Optional. Ifspecified, the queue’s rate will not be allowedto exceed the specified value, even if excess bandwidth is available. If unspecified, defaults to nolimit.

other_config : burst: optional stringBurst size, in bits.This is the maximum amount of ‘‘credits’’ that a queue can accumulate while itis idle. Optional. Detailsof the linux−htb implementation require a minimum burst size, so atoo-smallburst will be silently ignored.

other_config : priority : optional stringA nonnegative 32-bit integer. Defaults to 0 if unspecified.A queue with a smallerpriority willreceive all the excess bandwidth that it can use before a queue with a larger value receives any.Specific priority values are unimportant; only relative ordering matters.

Configuration for linux-hfsc QoS:These key-value pairs are defined forQoS typeof linux−hfsc.

other_config : min-rate: optional stringMinimum guaranteed bandwidth, in bit/s.

other_config : max-rate: optional stringMaximum allowed bandwidth, in bit/s.Optional. Ifspecified, the queue’s rate will not be allowedto exceed the specified value, even if excess bandwidth is available. If unspecified, defaults to nolimit.

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

Open vSwitch September 2011 24

Page 25: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

other_config: map of string-string pairs

external_ids: map of string-string pairs

Open vSwitch September 2011 25

Page 26: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Mirror TABLEA port mirror within aBridge.

A port mirror configures a bridge to send selected frames to special ‘‘mirrored’’ ports, in addition to theirnormal destinations. Mirroring traffic may also be referred to as SPAN, RSPAN, or ERSPAN, dependingon how the mirrored traffic is sent.

Summary:name stringSelecting Packets for Mirroring:

select_all booleanselect_dst_port set of weak reference toPort sselect_src_port set of weak reference toPort sselect_vlan set of up to 4096 integers, in range 0 to 4,095

Mirroring Destination Configuration:output_port optional weak reference toPortoutput_vlan optional integer, in range 1 to 4,095

Common Columns:external_ids map of string-string pairs

Details:name: string

Arbitrary identifier for theMirror .

Selecting Packets for Mirroring:To be selected for mirroring, a given packet must enter or leave the bridge through a selected port and itmust also be in one of the selected VLANs.

select_all: booleanIf true, every packet arriving or departing on any port is selected for mirroring.

select_dst_port: set of weak reference toPort sPorts on which departing packets are selected for mirroring.

select_src_port: set of weak reference toPort sPorts on which arriving packets are selected for mirroring.

select_vlan: set of up to 4096 integers, in range 0 to 4,095VLANs on which packets are selected for mirroring. An empty set selects packets on all VLANs.

Mirroring Destination Configuration:These columns are mutually exclusive. Exactly one of them must be nonempty.

output_port : optional weak reference toPortOutput port for selected packets, if nonempty.

Specifying a port for mirror output reserves that port exclusively for mirroring. No frames otherthan those selected for mirroring will be forwarded to the port, and any frames received on the portwill be discarded.

The output port may be any kind of port supported by Open vSwitch. It may be, for example, aphysical port (sometimes called SPAN), or a GRE tunnel (sometimes called ERSPAN).

output_vlan: optional integer, in range 1 to 4,095Output VLAN for selected packets, if nonempty.

The frames will be sent out all ports that trunkoutput_vlan, as well as any ports with implicitVLAN output_vlan. When a mirrored frame is sent out a trunk port, the frame’s VLAN tag willbe set tooutput_vlan, replacing any existing tag; when it is sent out an implicit VLAN port, theframe will not be tagged. This type of mirroring is sometimes called RSPAN.

The following destination MAC addresses will not be mirrored to a VLAN to avoid confusingswitches that interpret the protocols that they represent:

Open vSwitch September 2011 26

Page 27: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

01:80:c2:00:00:00IEEE 802.1D Spanning Tree Protocol (STP).

01:80:c2:00:00:01IEEE Pause frame.

01:80:c2:00:00:0xOther reserved protocols.

01:00:0c:cc:cc:ccCisco Discovery Protocol (CDP), VLAN Trunking Protocol (VTP), Dynamic TrunkingProtocol (DTP), Port Aggregation Protocol (PAgP), and others.

01:00:0c:cc:cc:cdCisco Shared Spanning Tree Protocol PVSTP+.

01:00:0c:cd:cd:cdCisco STP Uplink Fast.

01:00:0c:00:00:00Cisco Inter Switch Link.

Please note:Mirroring to a VLAN can disrupt a network that contains unmanaged switches.Con-sider an unmanaged physical switch with two ports: port 1, connected to an end host, and port 2,connected to an Open vSwitch configured to mirror received packets into VLAN 123 on port 2.Suppose that the end host sends a packet on port 1 that the physical switch forwards to port 2.TheOpen vSwitch forwards this packet to its destination and then reflects it back on port 2 in VLAN123. Thisreflected packet causes the unmanaged physical switch to replace the MAC learning ta-ble entry, which correctly pointed to port 1, with one that incorrectly points to port 2.Afterward,the physical switch will direct packets destined for the end host to the Open vSwitch on port 2,instead of to the end host on port 1, disrupting connectivity. If mirroring to a VLAN is desired inthis scenario, then the physical switch must be replaced by one that learns Ethernet addresses on aper-VLAN basis. In addition, learning should be disabled on the VLAN containing mirrored traf-fic. If this is not done then intermediate switches will learn the MAC address of each end hostfrom the mirrored traffic. If packets being sent to that end host are also mirrored, then they will bedropped since the switch will attempt to send them out the input port. Disabling learning for theVLAN will cause the switch to correctly send the packet out all ports configured for that VLAN.If Open vSwitch is being used as an intermediate switch, learning can be disabled by adding themirrored VLAN toflood_vlansin the appropriateBridge table or tables.

Mirroring to a GRE tunnel has fewer caveats than mirroring to a VLAN and should generally bepreferred.

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

external_ids: map of string-string pairs

Open vSwitch September 2011 27

Page 28: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Controller TABLEAn OpenFlow controller.

Open vSwitch supports two kinds of OpenFlow controllers:

Primary controllersThis is the kind of controller envisioned by the OpenFlow 1.0 specification.Usually, aprimary controller implements a network policy by taking charge of the switch’s flow ta-ble.

Open vSwitch initiates and maintains persistent connections to primary controllers, retry-ing the connection each time it fails or drops.The fail_mode column in theBridge tableapplies to primary controllers.

Open vSwitch permits a bridge to have any number of primary controllers. When multi-ple controllers are configured, Open vSwitch connects to all of them simultaneously.Because OpenFlow 1.0 does not specify how multiple controllers coordinate in interact-ing with a single switch, more than one primary controller should be specified only if thecontrollers are themselves designed to coordinate with each other. (The Nicira-definedNXT_ROLE OpenFlow vendor extension may be useful for this.)

Service controllersThese kinds of OpenFlow controller connections are intended for occasional support andmaintenance use, e.g. withovs−ofctl. Usually a service controller connects only brieflyto inspect or modify some of a switch’s state.

Open vSwitch listens for incoming connections from service controllers. The servicecontrollers initiate and, if necessary, maintain the connections from their end.Thefail_modecolumn in theBridge table does not apply to service controllers.

Open vSwitch supports configuring any number of service controllers.

Thetarget determines the type of controller.

Summary:Core Features:

target stringconnection_mode optional string, eitherin−band or out−of−band

Controller Failure Detection and Handling:max_backoff optional integer, at least 1,000inactivity_probe optional integer

OpenFlow Rate Limiting:controller_rate_limit optional integer, at least 100controller_burst_limit optional integer, at least 25

Additional In-Band Configuration:local_ip optional stringlocal_netmask optional stringlocal_gateway optional string

Controller Status:is_connected booleanrole optional string, one ofslave, other, or masterstatus : last_error optional stringstatus : state optional stringstatus : sec_since_connect optional stringstatus : sec_since_disconnect optional string

Common Columns:external_ids map of string-string pairs

Open vSwitch September 2011 28

Page 29: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Details:Core Features:

target: stringConnection method for controller.

The following connection methods are currently supported for primary controllers:

ssl:ip[:port]The specified SSLport (default: 6633) on the host at the given ip, which must beexpressed as an IP address (not a DNS name).Thesslcolumn in theOpen_vSwitchta-ble must point to a valid SSL configuration when this form is used.

SSL support is an optional feature that is not always built as part of Open vSwitch.

tcp:ip[:port]The specified TCPport (default: 6633) on the host at the given ip, which must beexpressed as an IP address (not a DNS name).

The following connection methods are currently supported for service controllers:

pssl:[port][ :ip]Listens for SSL connections on the specified TCPport (default: 6633). If ip, which mustbe expressed as an IP address (not a DNS name), is specified, then connections arerestricted to the specified local IP address.

Thesslcolumn in theOpen_vSwitchtable must point to a valid SSL configuration whenthis form is used.

SSL support is an optional feature that is not always built as part of Open vSwitch.

ptcp:[port][ :ip]Listens for connections on the specified TCPport (default: 6633). If ip, which must beexpressed as an IP address (not a DNS name), is specified, then connections are restrictedto the specified local IP address.

When multiple controllers are configured for a single bridge, thetarget values must be unique.Duplicatetarget values yield unspecified results.

connection_mode: optional string, eitherin−band or out−of−bandIf it is specified, this setting must be one of the following strings that describes how Open vSwitchcontacts this OpenFlow controller over the network:

in−bandIn this mode, this controller’s OpenFlow traffic travels over the bridge associated with thecontroller. With this setting, Open vSwitch allows traffic to and from the controllerregardless of the contents of the OpenFlow flow table. (Otherwise,Open vSwitch wouldnever be able to connect to the controller, because it did not have a flow to enable it.)This is the most common connection mode because it is not necessary to maintain twoindependent networks.

out−of−bandIn this mode, OpenFlow traffic uses a control network separate from the bridge associatedwith this controller, that is, the bridge does not use any of its own network devices tocommunicate with the controller. The control network must be configured separately,before or afterovs−vswitchd is started.

If not specified, the default is implementation-specific.

Controller Failure Detection and Handling:

max_backoff: optional integer, at least 1,000Maximum number of milliseconds to wait between connection attempts.Default is implementa-tion-specific.

Open vSwitch September 2011 29

Page 30: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

inactivity_probe: optional integerMaximum number of milliseconds of idle time on connection to controller before sending an inac-tivity probe message.If Open vSwitch does not communicate with the controller for the specifiednumber of seconds, it will send a probe.If a response is not received for the same additionalamount of time, Open vSwitch assumes the connection has been broken and attempts to reconnect.Default is implementation-specific.A value of 0 disables inactivity probes.

OpenFlow Rate Limiting:

controller_rate_limit : optional integer, at least 100The maximum rate at which packets in unknown flows will be forwarded to the OpenFlow con-troller, in packets per second. This feature prevents a single bridge from overwhelming the con-troller. If not specified, the default is implementation-specific.

In addition, when a high rate triggers rate-limiting, Open vSwitch queues controller packets foreach port and transmits them to the controller at the configured rate. The number of queued pack-ets is limited by thecontroller_burst_limit value. Thepacket queue is shared fairly among theports on a bridge.

Open vSwitch maintains two such packet rate-limiters per bridge.One of these applies to packetssent up to the controller because they do not correspond to any flow. The other applies to packetssent up to the controller by request through flow actions. When both rate-limiters are filled withpackets, the actual rate that packets are sent to the controller is up to twice the specified rate.

controller_burst_limit : optional integer, at least 25In conjunction withcontroller_rate_limit , the maximum number of unused packet credits that thebridge will allow to accumulate, in packets. If not specified, the default is implementation-spe-cific.

Additional In-Band Configuration:These values are considered only in in-band control mode (seeconnection_mode).

When multiple controllers are configured on a single bridge, there should be only one set of unique valuesin these columns. If different values are set for these columns in different controllers, the effect is unspeci-fied.

local_ip: optional stringThe IP address to configure on the local port, e.g.192.168.0.123. If this value is unset, thenlocal_netmaskandlocal_gatewayare ignored.

local_netmask: optional stringThe IP netmask to configure on the local port, e.g.255.255.255.0. If local_ip is set but this valueis unset, then the default is chosen based on whether the IP address is class A, B, or C.

local_gateway: optional stringThe IP address of the gateway to configure on the local port, as a string, e.g.192.168.0.1. Leavethis column unset if this network has no gateway.

Controller Status:

is_connected: booleantrue if currently connected to this controller,falseotherwise.

role: optional string, one ofslave, other, or masterThe level of authority this controller has on the associated bridge. Possible values are:

other Allows the controller access to all OpenFlow features.

master Equivalent to other, except that there may be at most one master controller at a time.When a controller configures itself asmaster, any existing master is demoted to theslaverole.

slave Allows the controller read-only access to OpenFlow features. Attemptsto modify theflow table will be rejected with an error. Slave controllers do not receive

Open vSwitch September 2011 30

Page 31: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

OFPT_PACKET_IN or OFPT_FLOW_REMOVED messages, but they do receiveOFPT_PORT_STATUS messages.

status : last_error: optional stringA human-readable description of the last error on the connection to the controller; i.e.str-error(errno) . This key will exist only if an error has occurred.

status : state: optional stringThe state of the connection to the controller. Possible values are:

VOID Connection is disabled.

BACKOFFAttempting to reconnect at an increasing period.

CONNECTINGAttempting to connect.

ACTIVEConnected, remote host responsive.

IDLE Connection is idle.Waiting for response to keep-alive.

These values may change in the future. They are provided only for human consumption.

status : sec_since_connect: optional stringThe amount of time since this controller last successfully connected to the switch (in seconds).Value is empty if controller has never successfully connected.

status : sec_since_disconnect: optional stringThe amount of time since this controller last disconnected from the switch (in seconds). Value isempty if controller has never disconnected.

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

external_ids: map of string-string pairs

Open vSwitch September 2011 31

Page 32: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Manager TABLEConfiguration for a database connection to an Open vSwitch database (OVSDB) client.

This table primarily configures the Open vSwitch database (ovsdb−server ), not the Open vSwitch switch(ovs−vswitchd). The switch does read the table to determine what connections should be treated as in-band.

The Open vSwitch database server can initiate and maintain active connections to remote clients. It canalso listen for database connections.

Summary:Core Features:

target string (must be unique within table)connection_mode optional string, eitherin−band or out−of−band

Client Failure Detection and Handling:max_backoff optional integer, at least 1,000inactivity_probe optional integer

Status:is_connected booleanstatus : last_error optional stringstatus : state optional stringstatus : sec_since_connect optional stringstatus : sec_since_disconnect optional stringstatus : locks_held optional stringstatus : locks_waiting optional stringstatus : locks_lost optional stringstatus : n_connections optional string

Common Columns:external_ids map of string-string pairs

Details:Core Features:

target: string (must be unique within table)Connection method for managers.

The following connection methods are currently supported:

ssl:ip[:port]The specified SSLport (default: 6632) on the host at the given ip, which must beexpressed as an IP address (not a DNS name).Thesslcolumn in theOpen_vSwitchta-ble must point to a valid SSL configuration when this form is used.

SSL support is an optional feature that is not always built as part of Open vSwitch.

tcp:ip[:port]The specified TCPport (default: 6632) on the host at the given ip, which must beexpressed as an IP address (not a DNS name).

pssl:[port][ :ip]Listens for SSL connections on the specified TCPport (default: 6632). If ip, which mustbe expressed as an IP address (not a DNS name), is specified, then connections arerestricted to the specified local IP address.

Thesslcolumn in theOpen_vSwitchtable must point to a valid SSL configuration whenthis form is used.

SSL support is an optional feature that is not always built as part of Open vSwitch.

ptcp:[port][ :ip]Listens for connections on the specified TCPport (default: 6632). If ip, which must beexpressed as an IP address (not a DNS name), is specified, then connections are restricted

Open vSwitch September 2011 32

Page 33: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

to the specified local IP address.

When multiple managers are configured, thetarget values must be unique.Duplicatetarget val-ues yield unspecified results.

connection_mode: optional string, eitherin−band or out−of−bandIf it is specified, this setting must be one of the following strings that describes how Open vSwitchcontacts this OVSDB client over the network:

in−bandIn this mode, this connection’s traffic travels over a bridge managed by Open vSwitch.With this setting, Open vSwitch allows traffic to and from the client regardless of the con-tents of the OpenFlow flow table. (Otherwise,Open vSwitch would never be able to con-nect to the client, because it did not have a flow to enable it.) This is the most commonconnection mode because it is not necessary to maintain two independent networks.

out−of−bandIn this mode, the client’s traffic uses a control network separate from that managed byOpen vSwitch, that is, Open vSwitch does not use any of i ts own network devices to com-municate with the client. The control network must be configured separately, before orafterovs−vswitchd is started.

If not specified, the default is implementation-specific.

Client Failure Detection and Handling:

max_backoff: optional integer, at least 1,000Maximum number of milliseconds to wait between connection attempts.Default is implementa-tion-specific.

inactivity_probe: optional integerMaximum number of milliseconds of idle time on connection to the client before sending an inac-tivity probe message.If Open vSwitch does not communicate with the client for the specifiednumber of seconds, it will send a probe. If a response is not received for the same additionalamount of time, Open vSwitch assumes the connection has been broken and attempts to reconnect.Default is implementation-specific.A value of 0 disables inactivity probes.

Status:

is_connected: booleantrue if currently connected to this manager,falseotherwise.

status : last_error: optional stringA human-readable description of the last error on the connection to the manager; i.e.str-error(errno) . This key will exist only if an error has occurred.

status : state: optional stringThe state of the connection to the manager. Possible values are:

VOID Connection is disabled.

BACKOFFAttempting to reconnect at an increasing period.

CONNECTINGAttempting to connect.

ACTIVEConnected, remote host responsive.

IDLE Connection is idle.Waiting for response to keep-alive.

These values may change in the future. They are provided only for human consumption.

Open vSwitch September 2011 33

Page 34: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

status : sec_since_connect: optional stringThe amount of time since this manager last successfully connected to the database (in seconds).Value is empty if manager has never successfully connected.

status : sec_since_disconnect: optional stringThe amount of time since this manager last disconnected from the database (in seconds). Value isempty if manager has never disconnected.

status : locks_held: optional stringSpace-separated list of the names of OVSDB locks that the connection holds.Omitted if the con-nection does not hold any locks.

status : locks_waiting: optional stringSpace-separated list of the names of OVSDB locks that the connection is currently waiting toacquire. Omittedif the connection is not waiting for any locks.

status : locks_lost: optional stringSpace-separated list of the names of OVSDB locks that the connection has had stolen by anotherOVSDB client. Omitted if no locks have been stolen from this connection.

status : n_connections: optional stringWhen target specifies a connection method that listens for inbound connections (e.g.ptcp: orpssl:) and more than one connection is actually active, the value is the number of active connec-tions. Otherwise,this key-value pair is omitted.

When multiple connections are active, status columns and key-value pairs (other than this one)report the status of one arbitrarily chosen connection.

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

external_ids: map of string-string pairs

Open vSwitch September 2011 34

Page 35: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

NetFlow TABLEA NetFlow target. NetFlow is a protocol that exports a number of details about terminating IP flows, suchas the principals involved and duration.

Summary:targets set of 1 or more stringsengine_id optional integer, in range 0 to 255engine_type optional integer, in range 0 to 255active_timeout integer, at least -1add_id_to_interface booleanCommon Columns:

external_ids map of string-string pairs

Details:targets: set of 1 or more strings

NetFlow targets in the formip:port. The ip must be specified numerically, not as a DNS name.

engine_id: optional integer, in range 0 to 255Engine ID to use in NetFlow messages. Defaults to datapath index if not specified.

engine_type: optional integer, in range 0 to 255Engine type to use in NetFlow messages. Defaults to datapath index if not specified.

active_timeout: integer, at least -1The interval at which NetFlow records are sent for flows that are still active, in seconds. Avalueof 0 requests the default timeout (currently 600 seconds); a value of−1 disables active timeouts.

add_id_to_interface: booleanIf this column’s value isfalse, the ingress and egress interface fields of NetFlow flow records arederived from OpenFlow port numbers. When it istrue, the 7 most significant bits of these fieldswill be replaced by the least significant 7 bits of the engine id.This is useful because many Net-Flow collectors do not expect multiple switches to be sending messages from the same host, sothey do not store the engine information which could be used to disambiguate the traffic.

When this option is enabled, a maximum of 508 ports are supported.

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

external_ids: map of string-string pairs

Open vSwitch September 2011 35

Page 36: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

SSL TABLESSL configuration for an Open_vSwitch.

Summary:pri vate_key stringcertificate stringca_cert stringbootstrap_ca_cert booleanCommon Columns:

external_ids map of string-string pairs

Details:pri vate_key: string

Name of a PEM file containing the private key used as the switch’s identity for SSL connections tothe controller.

certificate: stringName of a PEM file containing a certificate, signed by the certificate authority (CA) used by thecontroller and manager, that certifies the switch’s private key, identifying a trustworthy switch.

ca_cert: stringName of a PEM file containing the CA certificate used to verify that the switch is connected to atrustworthy controller.

bootstrap_ca_cert: booleanIf set to true, then Open vSwitch will attempt to obtain the CA certificate from the controller onits first SSL connection and save it to the named PEM file. If it is successful, it will immediatelydrop the connection and reconnect, and from then on all SSL connections must be authenticatedby a certificate signed by the CA certificate thus obtained.This option exposes the SSL connec-tion to a man−in−the−middle attack obtaining the initial CA certificate. It may still be usefulfor bootstrapping.

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

external_ids: map of string-string pairs

Open vSwitch September 2011 36

Page 37: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

sFlow TABLEAn sFlow(R) target. sFlow is a protocol for remote monitoring of switches.

Summary:agent optional stringheader optional integerpolling optional integersampling optional integertargets set of 1 or more stringsCommon Columns:

external_ids map of string-string pairs

Details:agent: optional string

Name of the network device whose IP address should be reported as the ‘‘agent address’’ to collec-tors. If not specified, the IP address defaults to thelocal_ip in the collector’s Controller . If anagent IP address cannot be determined either way, sFlow is disabled.

header: optional integerNumber of bytes of a sampled packet to send to the collector. If not specified, the default is 128bytes.

polling: optional integerPolling rate in seconds to send port statistics to the collector. If not specified, defaults to 30 sec-onds.

sampling: optional integerRate at which packets should be sampled and sent to the collector. If not specified, defaults to400, which means one out of 400 packets, on average, will be sent to the collector.

targets: set of 1 or more stringssFlow targets in the formip:port.

Common Columns:The overall purpose of these columns is described underCommon Columnsat the beginning of this docu-ment.

external_ids: map of string-string pairs

Open vSwitch September 2011 37

Page 38: Open_vSwitch DAT ABASE TABLE SUMMARY - Ben Pfaff

Open_vSwitch(5) OpenvSwitch Manual Open_vSwitch(5)

Capability TABLERecords in this table describe functionality supported by the hardware and software platform on which thisOpen vSwitch is based. Clients should not modify this table.

A record in this table is meaningful only if it is referenced by thecapabilities column in theOpen_vSwitch table. Thekey used to reference it, called the record’s ‘‘category,’’ determines the mean-ings of thedetailscolumn. Thefollowing general forms of categories are currently defined:

qos−typetypeis supported as the value fortype in theQoStable.

Summary:details map of string-string pairs

Details:details: map of string-string pairs

Ke y-value pairs that describe capabilities. The meaning of the pairs depends on the category keythat thecapabilities column in theOpen_vSwitchtable uses to reference this record, as describedabove.

The presence of a record for category qos−typeindicates that the switch supportstypeas the valueof thetype column in theQoS table. Thefollowing key-value pairs are defined to further describeQoS capabilities:

n−queuesNumber of supported queues, as a positive integer. Keys in the queuescolumn forQoSrecords whosetype value equalstype must range between 0 and this value minus one,inclusive.

Open vSwitch September 2011 38