2014-08-15 10:32:50 -07:00
|
|
|
.\" -*- nroff -*-
|
2018-10-29 17:46:33 +03:00
|
|
|
.so lib/ovs.tmac
|
2014-08-15 10:32:50 -07:00
|
|
|
.TH ovs\-testcontroller 8 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
|
|
|
|
.ds PN ovs\-testcontroller
|
2010-02-24 13:42:43 -08:00
|
|
|
.
|
2009-07-08 13:19:16 -07:00
|
|
|
.SH NAME
|
2014-08-15 10:32:50 -07:00
|
|
|
ovs\-testcontroller \- simple OpenFlow controller for testing
|
2010-02-24 13:42:43 -08:00
|
|
|
.
|
2009-07-08 13:19:16 -07:00
|
|
|
.SH SYNOPSIS
|
2014-08-15 10:32:50 -07:00
|
|
|
.B ovs\-testcontroller
|
2009-07-08 13:19:16 -07:00
|
|
|
[\fIoptions\fR] \fImethod\fR \fB[\fImethod\fR]\&...
|
2010-02-24 13:42:43 -08:00
|
|
|
.
|
2009-07-08 13:19:16 -07:00
|
|
|
.SH DESCRIPTION
|
2014-08-15 10:32:50 -07:00
|
|
|
\fBovs\-testcontroller\fR is a simple OpenFlow controller that manages
|
|
|
|
any number of switches over the OpenFlow protocol, causing them to
|
|
|
|
function as L2 MAC-learning switches or hubs. It is suitable for
|
|
|
|
initial testing of OpenFlow networks. It is not a necessary or
|
|
|
|
desirable part of a production OpenFlow deployment.
|
2010-02-24 13:42:43 -08:00
|
|
|
.PP
|
2014-08-15 10:32:50 -07:00
|
|
|
\fBovs\-testcontroller\fR controls one or more OpenFlow switches, specified as
|
|
|
|
one or more of the following OpenFlow connection methods:
|
2010-02-24 13:42:43 -08:00
|
|
|
.
|
2009-12-21 13:10:55 -08:00
|
|
|
.RS
|
|
|
|
.so lib/vconn-passive.man
|
|
|
|
.so lib/vconn-active.man
|
|
|
|
.RE
|
2010-02-24 13:42:43 -08:00
|
|
|
.
|
2009-07-08 13:19:16 -07:00
|
|
|
.SH OPTIONS
|
2010-07-15 17:08:17 -07:00
|
|
|
.IP "\fB\-n\fR"
|
|
|
|
.IQ "\fB\-\-noflow\fR"
|
2014-08-15 10:32:50 -07:00
|
|
|
By default, \fBovs\-testcontroller\fR sets up a flow in each OpenFlow switch
|
2009-07-08 13:19:16 -07:00
|
|
|
whenever it receives a packet whose destination is known due through
|
|
|
|
MAC learning. This option disables flow setup, so that every packet
|
|
|
|
in the network passes through the controller.
|
2010-02-24 13:42:43 -08:00
|
|
|
.IP
|
2009-07-08 13:19:16 -07:00
|
|
|
This option is most useful for debugging. It reduces switching
|
|
|
|
performance, so it should not be used in production.
|
2010-02-24 13:42:43 -08:00
|
|
|
.
|
2009-07-08 13:19:16 -07:00
|
|
|
.TP
|
2010-06-29 14:29:40 -07:00
|
|
|
\fB\-\-max\-idle=\fIsecs\fR|\fBpermanent\fR
|
2009-07-08 13:19:16 -07:00
|
|
|
Sets \fIsecs\fR as the number of seconds that a flow set up by the
|
|
|
|
controller will remain in the switch's flow table without any matching
|
|
|
|
packets being seen. If \fBpermanent\fR is specified, which is not
|
|
|
|
recommended, flows will never expire. The default is 60 seconds.
|
2010-02-24 13:42:43 -08:00
|
|
|
.IP
|
2010-06-29 14:29:40 -07:00
|
|
|
This option has no effect when \fB\-n\fR (or \fB\-\-noflow\fR) is in use
|
2009-07-08 13:19:16 -07:00
|
|
|
(because the controller does not set up flows in that case).
|
2010-02-24 13:42:43 -08:00
|
|
|
.
|
2010-07-15 17:08:17 -07:00
|
|
|
.IP "\fB\-H\fR"
|
|
|
|
.IQ "\fB\-\-hub\fR"
|
2009-07-08 13:19:16 -07:00
|
|
|
By default, the controller acts as an L2 MAC-learning switch. This
|
|
|
|
option changes its behavior to that of a hub that floods packets on
|
|
|
|
all but the incoming port.
|
2010-02-24 13:42:43 -08:00
|
|
|
.IP
|
2010-06-29 14:29:40 -07:00
|
|
|
If \fB\-H\fR (or \fB\-\-hub\fR) and \fB\-n\fR (or \fB\-\-noflow\fR) are used
|
2009-07-08 13:19:16 -07:00
|
|
|
together, then the cumulative effect is that every packet passes
|
|
|
|
through the controller and every packet is flooded.
|
2010-02-24 13:42:43 -08:00
|
|
|
.IP
|
2009-07-08 13:19:16 -07:00
|
|
|
This option is most useful for debugging. It reduces switching
|
|
|
|
performance, so it should not be used in production.
|
2009-11-19 12:48:32 -08:00
|
|
|
.
|
2011-06-01 09:09:20 -07:00
|
|
|
.IP "\fB\-w\fR[\fIwildcard_mask\fR]"
|
|
|
|
.IQ "\fB\-\-wildcards\fR[\fB=\fIwildcard_mask\fR]\fR"
|
2014-08-15 10:32:50 -07:00
|
|
|
By default, \fBovs\-testcontroller\fR sets up exact-match flows. This
|
2009-11-19 12:48:32 -08:00
|
|
|
option allows it to set up wildcarded flows, which may reduce
|
2011-06-01 09:09:20 -07:00
|
|
|
flow setup latency by causing less traffic to be sent up to the
|
2009-11-19 12:48:32 -08:00
|
|
|
controller.
|
|
|
|
.IP
|
2011-06-01 09:09:20 -07:00
|
|
|
The optional \fIwildcard_mask\fR is an OpenFlow wildcard bitmask in
|
|
|
|
hexadecimal that specifies the fields to wildcard. If no
|
|
|
|
\fIwildcard_mask\fR is specified, the default value 0x2820F0 is used
|
|
|
|
which specifies L2-only switching and wildcards L3 and L4 fields.
|
|
|
|
Another interesting value is 0x2000EC, which specifies L3-only
|
|
|
|
switching and wildcards L2 and L4 fields.
|
|
|
|
.IP
|
2010-06-29 14:29:40 -07:00
|
|
|
This option has no effect when \fB\-n\fR (or \fB\-\-noflow\fR) is in use
|
2009-11-19 12:48:32 -08:00
|
|
|
(because the controller does not set up flows in that case).
|
|
|
|
.
|
2010-07-15 17:08:17 -07:00
|
|
|
.IP "\fB\-N\fR"
|
|
|
|
.IQ "\fB\-\-normal\fR"
|
2014-08-15 10:32:50 -07:00
|
|
|
By default, \fBovs\-testcontroller\fR directs packets to a particular port
|
2009-11-19 12:48:32 -08:00
|
|
|
or floods them. This option causes it to direct non-flooded packets
|
|
|
|
to the OpenFlow \fBOFPP_NORMAL\fR port. This allows the switch itself
|
|
|
|
to make decisions about packet destinations. Support for
|
|
|
|
\fBOFPP_NORMAL\fR is optional in OpenFlow, so this option may not well
|
|
|
|
with some non-Open vSwitch switches.
|
|
|
|
.
|
2010-06-29 14:29:40 -07:00
|
|
|
.IP "\fB\-\-mute\fR"
|
2014-08-15 10:32:50 -07:00
|
|
|
Prevents ovs\-testcontroller from replying to any OpenFlow messages sent
|
2009-09-16 15:12:19 -07:00
|
|
|
to it by switches.
|
|
|
|
.IP
|
|
|
|
This option is only for debugging the Open vSwitch implementation of
|
|
|
|
``fail open'' mode. It must not be used in production.
|
2010-02-24 13:42:43 -08:00
|
|
|
.
|
2010-07-15 17:08:17 -07:00
|
|
|
.IP "\fB\-q \fIid\fR"
|
|
|
|
.IQ "\fB\-\-queue=\fIid\fR"
|
2014-08-15 10:32:50 -07:00
|
|
|
By default, \fBovs\-testcontroller\fR uses the default OpenFlow queue for
|
2010-07-15 17:08:17 -07:00
|
|
|
sending packets and setting up flows. Use one of these options,
|
|
|
|
supplying \fIid\fR as an OpenFlow queue ID as a decimal number, to
|
|
|
|
instead use that specific queue.
|
|
|
|
.IP
|
2010-10-01 13:41:40 -07:00
|
|
|
This option is incompatible with \fB\-N\fR or \fB\-\-normal\fR and
|
|
|
|
with \fB\-H\fR or \fB\-\-hub\fR. If more than one is specified then
|
|
|
|
this option takes precedence.
|
|
|
|
.IP
|
|
|
|
This option may be useful for testing or debugging quality of service
|
|
|
|
setups.
|
|
|
|
.
|
|
|
|
.IP "\fB\-Q \fIport-name\fB:\fIqueue-id\fR"
|
|
|
|
.IP "\fB\-\-port\-queue \fIport-name\fB:\fIqueue-id\fR"
|
|
|
|
Configures packets received on the port named \fIport-name\fR
|
|
|
|
(e.g. \fBeth0\fR) to be output on OpenFlow queue ID \fIqueue-id\fR
|
|
|
|
(specified as a decimal number). For the specified port, this option
|
|
|
|
overrides the default specified on \fB\-q\fR or \fB\-\-queue\fR.
|
|
|
|
.IP
|
|
|
|
This option may be specified any number of times with different
|
2011-08-24 10:43:41 -07:00
|
|
|
\fIport-name\fR arguments.
|
2010-10-01 13:41:40 -07:00
|
|
|
.IP
|
|
|
|
This option is incompatible with \fB\-N\fR or \fB\-\-normal\fR and
|
|
|
|
with \fB\-H\fR or \fB\-\-hub\fR. If more than one is specified then
|
|
|
|
this option takes precedence.
|
|
|
|
.IP
|
|
|
|
This option may be useful for testing or debugging quality of service
|
|
|
|
setups.
|
2010-07-15 17:08:17 -07:00
|
|
|
.
|
2010-07-28 15:18:25 -07:00
|
|
|
.IP "\fB\-\-with\-flows \fIfile\fR"
|
|
|
|
When a switch connects, push the flow entries as described in
|
|
|
|
\fIfile\fR. Each line in \fIfile\fR is a flow entry in the format
|
|
|
|
described for the \fBadd\-flows\fR command in the \fBFlow Syntax\fR
|
|
|
|
section of the \fBovs\-ofctl\fR(8) man page.
|
2010-09-23 14:08:13 -07:00
|
|
|
.IP
|
|
|
|
Use this option more than once to add flows from multiple files.
|
2010-07-28 15:18:25 -07:00
|
|
|
.
|
2010-03-18 16:59:04 -07:00
|
|
|
.SS "Public Key Infrastructure Options"
|
2009-12-21 13:10:55 -08:00
|
|
|
.so lib/ssl.man
|
|
|
|
.so lib/ssl-peer-ca-cert.man
|
2011-05-02 17:15:21 -07:00
|
|
|
.ds DD
|
2017-05-08 10:43:17 -04:00
|
|
|
.SS "Daemon Options"
|
2009-07-08 13:19:16 -07:00
|
|
|
.so lib/daemon.man
|
|
|
|
.so lib/vlog.man
|
2010-03-23 11:24:38 -07:00
|
|
|
.so lib/unixctl.man
|
2009-07-08 13:19:16 -07:00
|
|
|
.so lib/common.man
|
2014-11-27 10:22:13 -08:00
|
|
|
.so lib/ofp-version.man
|
2010-02-24 13:42:43 -08:00
|
|
|
.
|
2009-07-08 13:19:16 -07:00
|
|
|
.SH EXAMPLES
|
2010-02-24 13:42:43 -08:00
|
|
|
.PP
|
2015-03-11 13:32:01 -07:00
|
|
|
To bind locally to port 6653 (the default) and wait for incoming
|
2010-03-24 10:42:17 -07:00
|
|
|
connections from OpenFlow switches:
|
|
|
|
.IP
|
2014-08-15 10:32:50 -07:00
|
|
|
\fB% ovs\-testcontroller ptcp:\fR
|
2009-07-08 13:19:16 -07:00
|
|
|
.SH "SEE ALSO"
|
2010-02-24 13:42:43 -08:00
|
|
|
.
|
2009-07-08 13:19:16 -07:00
|
|
|
.BR ovs\-appctl (8),
|
2010-07-28 15:18:25 -07:00
|
|
|
.BR ovs\-ofctl (8),
|
2009-07-08 13:19:16 -07:00
|
|
|
.BR ovs\-dpctl (8)
|