Configuring controllers for an openflow switch, Configuring controllers and main connections, Setting the connection interruption mode – H3C Technologies H3C S12500 Series Switches User Manual
Page 18
11
Configuring controllers for an OpenFlow switch
Configuring controllers and main connections
An OpenFlow switch supports up to 64 controllers. The OpenFlow channel between the OpenFlow
switch and each controller can have only one main connection. The main connection processes control
messages to complete tasks such as deploying entries, obtaining data, and sending information. The
main connection must be a reliable connection using TCP or SSL.
To specify a controller for an OpenFlow switch and configure the main connection to the controller:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter OpenFlow instance
view.
openflow instance instance-id N/A
3.
Specify a controller and
configure the main connection
to the controller.
controller controller-id address { ip
ip-address | ipv6 ipv6-address }
[ port port-number ] [ ssl
ssl-policy-name ] [ vrf vrf-name ]
By default, an OpenFlow instance
is not configured with any main
connection.
Setting the connection interruption mode
When an OpenFlow switch is disconnected from all controllers, the OpenFlow switch is set to either of the
following modes:
•
Secure—The OpenFlow switch forwards traffic based on flow tables and does not delete unexpired
flow entries.
•
Standalone—The OpenFlow switch performs the following actions:
{
Immediately generates a flow entry with a priority of 65536 and an output port of Normal.
{
Uses the normal forwarding process to forward traffic that matches the flow entry.
{
Does not delete unexpired flow entries.
The OpenFlow switch forwards traffic based on flow tables when it reconnects to a controller
successfully.
To set the connection interruption mode for an OpenFlow switch:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter OpenFlow instance
view.
openflow instance instance-id N/A
3.
Set the connection
interruption mode.
fail-open mode { secure |
standalone }
By default, the secure mode is used
when a instance is established,
and the controller deploys the
table-miss flow entry (the action is
Drop) to the OpenFlow instance.