vconn: Implement Unix domain socket vconn.
[sliver-openvswitch.git] / controller / controller.8.in
1 .TH controller 8 "May 2008" "OpenFlow" "OpenFlow Manual"
2
3 .SH NAME
4 controller \- simple OpenFlow controller reference implementation
5
6 .SH SYNOPSIS
7 .B controller
8 [\fIoptions\fR] \fImethod\fR \fB[\fImethod\fR]\&...
9
10 .SH DESCRIPTION
11 A sample OpenFlow controller which functions as an L2 MAC-learning
12 switch or hub.  \fBcontroller\fR can manage a remote datapath through
13 a secure channel (see \fBsecchan(8)\fR).  It can also connect directly
14 to a local datapath via Netlink.
15
16 \fBcontroller\fR controls one or more OpenFlow switches, specified as
17 one or more of the following OpenFlow connection methods:
18
19 .TP
20 \fBpssl:\fR[\fIport\fR]
21 Listens for SSL connections from remote OpenFlow switches on
22 \fIport\fR (default: 976).  The \fB--private-key\fR,
23 \fB--certificate\fR, and \fB--ca-cert\fR options are mandatory when
24 this form is used.
25
26 .TP
27 \fBptcp:\fR[\fIport\fR]
28 Listens for TCP connections from remote OpenFlow switches on
29 \fIport\fR (default: 975).
30
31 .TP
32 \fBpunix:\fIfile\fR
33 Listens for connections from OpenFlow switches on the Unix domain
34 server socket named \fIfile\fR.
35
36 .TP
37 \fBnl:\fIdp_idx\fR
38 The local Netlink datapath numbered \fIdp_idx\fR, as configured with
39 .BR dpctl (8).
40 This form requires that the local host has the OpenFlow kernel
41 module for Linux loaded.
42
43 .TP
44 \fBssl:\fIhost\fR[\fB:\fIport\fR]
45 The specified SSL \fIport\fR (default: 976) on the given remote
46 \fIhost\fR.  The \fB--private-key\fR, \fB--certificate\fR, and
47 \fB--ca-cert\fR options are mandatory when this form is used.
48
49 .TP
50 \fBtcp:\fIhost\fR[\fB:\fIport\fR]
51 The specified TCP \fIport\fR (default: 975) on the given remote
52 \fIhost\fR.
53
54 .TP
55 \fBunix:\fIfile\fR
56 The Unix domain server socket named \fIfile\fR.
57
58 .SH OPTIONS
59 .TP
60 \fB-p\fR, \fB--private-key=\fIprivkey.pem\fR
61 Specifies a PEM file containing the private key used as the switch's
62 identity for SSL connections to the controller.
63
64 .TP
65 \fB-c\fR, \fB--certificate=\fIcert.pem\fR
66 Specifies a PEM file containing a certificate, signed by the
67 controller's certificate authority (CA), that certifies the switch's
68 private key to identify a trustworthy switch.
69
70 .TP
71 \fB-C\fR, \fB--ca-cert=\fIcacert.pem\fR
72 Specifies a PEM file containing the CA certificate used to verify that
73 the switch is connected to a trustworthy controller.
74
75 .TP
76 .BR \-n ", " \-\^\-noflow
77 By default, the controller sets up a flow in each OpenFlow switch
78 whenever it receives a packet whose destination is known due through
79 MAC learning.  This option disables flow setup, so that every packet
80 in the network passes through the controller.
81
82 This option is most useful for debugging.  It reduces switching
83 performance, so it should not be used in production.
84
85 .TP
86 \fB--max-idle=\fIsecs\fR|\fBpermanent\fR
87 Sets \fIsecs\fR as the number of seconds that a flow set up by the
88 controller will remain in the switch's flow table without any matching
89 packets being seen.  If \fBpermanent\fR is specified, which is not
90 recommended, flows will never expire.  The default is 60 seconds.
91
92 This option affects only flows set up by the OpenFlow controller.  In
93 some configurations, the OpenFlow secure channel can set up some flows
94 on its own.  To set the idle time for those flows, pass
95 \fB--max-idle\fR to \fBsecchan\fR(8).
96
97 This option has no effect when \fB-n\fR (or \fB--noflow\fR) is in use
98 (because the controller does not set up flows in that case).
99
100 .TP
101 .BR \-H ", " \-\^\-hub
102 By default, the controller acts as an L2 MAC-learning switch.  This
103 option changes its behavior to that of a hub that floods packets on
104 all but the incoming port.
105
106 If \fB-H\fR (or \fB--hub\fR) and \fB-n\fR (or \fB--noflow\fR) are used
107 together, then the cumulative effect is that every packet passes
108 through the controller and every packet is flooded.
109
110 This option is most useful for debugging.  It reduces switching
111 performance, so it should not be used in production.
112
113 .TP
114 \fB-P\fR[\fIpidfile\fR], \fB--pidfile\fR[\fB=\fIpidfile\fR]
115 Causes a file (by default, \fBcontroller.pid\fR) to be created indicating
116 the PID of the running process.  If \fIpidfile\fR is not specified, or
117 if it does not begin with \fB/\fR, then it is created in
118 \fB@rundir@\fR.
119
120 .TP
121 \fB-D\fR, \fB--detach\fR
122 Causes \fBcontroller\fR to detach itself from the foreground session and
123 run as a background process.
124
125 .TP
126 .BR \-h ", " \-\^\-help
127 Prints a brief help message to the console.
128
129 .TP
130 \fB-v\fImodule\fR[\fB:\fIfacility\fR[\fB:\fIlevel\fR]], \fB--verbose=\fImodule\fR[\fB:\fIfacility\fR[\fB:\fIlevel\fR]]
131 Sets the logging level for \fImodule\fR in \fIfacility\fR to
132 \fIlevel\fR.  The \fImodule\fR may be any valid module name (as
133 displayed by the \fB--list\fR action on \fBvlogconf\fR(8)), or the
134 special name \fBANY\fR to set the logging levels for all modules.  The
135 \fIfacility\fR may be \fBsyslog\fR or \fBconsole\fR to set the levels
136 for logging to the system log or to the console, respectively, or
137 \fBANY\fR to set the logging levels for both facilities.  If it is
138 omitted, \fIfacility\fR defaults to \fBANY\fR.  The \fIlevel\fR must
139 be one of \fBemer\fR, \fBerr\fR, \fBwarn\fR, or \fBdbg\fR, designating
140 the minimum severity of a message for it to be logged.  If it is
141 omitted, \fIlevel\fR defaults to \fBdbg\fR.
142
143 .TP
144 \fB-v\fR, \fB--verbose\fR
145 Sets the maximum logging verbosity level, equivalent to
146 \fB--verbose=ANY:ANY:dbg\fR.
147
148 .TP
149 .BR \-V ", " \-\^\-version
150 Prints version information to the console.
151
152 .SH EXAMPLES
153
154 .TP
155 To connect directly to local datapath 0 over netlink (Linux only):
156
157 .B % controller nl:0
158
159 .TP
160 To bind locally to port 975 (the default) and wait for incoming connections from OpenFlow switches:
161
162 .B % controller ptcp:
163
164 .SH "SEE ALSO"
165
166 .BR dpctl (8),
167 .BR switch (8),
168 .BR secchan (8),
169 .BR vlogconf (8)