API Guide

Command Mode OPENFLOW SWITCH CONFIGURATION
Usage
Information
NOTE: Only use this command should be run when the logical switch instance is disabled. Use the
shutdown command to disable the logical switch instance. After you run this command, enter the
no shutdown command to enable the logical switch instance again.
When you specify, negotiate, the switch negotiates versions 1.0 and 1.3 and selects the highest of
the versions supported by the controller. The negotiation is based on the hello handshake described in
the OpenFlow Specification 1.3.
When you specify, 1.0, the switch establishes a connection with the controller that supports version
1.0 only.
When you specify, 1.3, the switch establishes a connection with the controller that supports version
1.3 only.
Example
The following example shows a logical switch instance, of-switch-1, configured to interact with controllers
that support the OpenFlow protocol version 1.3.
OS10 (config)# openflow
OS10 (config-openflow)# switch of-switch-1
OS10 (config-openflow-switch)# shutdown
OS10 (config-openflow-switch)# protocol-version 1.3
OS10 (config-openflow-switch)# no shutdown
OS10 (config-openflow-switch)#
Supported
Releases
10.4.1.0 or later
rate-limit packet_in
Configures the maximum packet rate for the controller connection, and the maximum packets permitted in a burst sent to the
controller in a second.
Syntax
rate-limit packet_in controller-packet-rate [burst maximum-packets-to-
controller]
Parameters
controller-packet-rateRate in packets per second for the controller OpenFlow channel
connection, from 100 to 268000000 seconds. The default is 0 seconds, disabled.
maximum-packets-to-controllerBurst in packets for the controller OpenFlow channel
connection, from 25 to 1073000. The default is 0 seconds, disabled. This parameter is optional. It is
set to 25% of the configured rate value, if not configured.
Default Disabled
Command Mode OPENFLOW SWITCH CONFIGURATION
Usage
Information
OpenFlow sets the specified rate and burst for the controller's connection with the logical switch
instance. The actual rate and burst on the controller has a maximum of two times the configured values.
For example, when you configure a rate of 1000 PPS and a burst of 300 packet bursts per second, the
packets can egress on the connection at rates of up to 2000 PPS and 600 packet bursts per second.
The no form of this command disables rate limiting on the controller connection.
NOTE: This command is a software rate limiting command and applies only to the OpenFlow channel
connection between the controller and the logical switch instance. This command is not related to
the switch's data-plane rate limits.
Example
The following example configures a logical switch instance, of-switch-1, with an OpenFlow controller at a
rate of 1000 PPS and packet bursts of 300 packets.
OS10 (config)# openflow
OS10 (config-openflow)# switch of-switch-1
OS10 (config-openflow-switch)# controller ipv4 10.11.63.56 port 6633
OpenFlow 1105