Setting OpenFlow timers
An OpenFlow switch supports the following timers:
Connection detection interval—Interval at which the OpenFlow switch sends an Echo Request message to a controller. When the OpenFlow switch receives no Echo Reply message within three connection detection intervals, the OpenFlow switch is disconnected from the controller.
Reconnection interval—Interval for the OpenFlow switch to wait before it attempts to reconnect to a controller.
To set OpenFlow timers 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 detection interval. | controller echo-request interval interval-value | By default, the connection detection interval is 5 seconds. As a best practice to reduce the CPU load, set the connection detection interval to a large value. |
4. Set the reconnection interval. | controller connect interval interval-value | By default, the reconnection interval is 60 seconds. |