OpenFlow Protocol
Messages between the controller and switch are formatted according to the OpenFlow protocol. Three types of messages are sent over the communication channel: controller-to-switch, asynchronous, and symmetric. The table below lists the supported message types.
Table 196: OpenFlow Message Types
| Message | Description |
|---|---|
| Controller-to-Switch | This type of message is initiated by the controller and may required a response from the switch. |
| Features | Sent when the channel is established between the controller and switch. This message type is used to request a listing of the switch capabilities. The switch must respond with this list. Supported Features messages: • OFPT_FEATURES_REQUEST • OFPT_FEATURES_REPLY • OFPT_GET_CONFIG_REQUEST • OFPT_GET_CONFIG_REPLY • OFPT_SET_CONFIG |
| Modify-State | Used to add, delete, and modify flow, group, or meter entries in the tables, and to set switch port properties. Supported Modify-State messages: • OFPT_FLOW_MOD • OFPT_GROUP_MOD • OFPT_METER_MOD |
| Packet-out | Used by the controller to send packets out of a specified port on the switch. Supported Packet-out message: • OFPT_PACKET_OUT |
| Multi-part Messages | Used by the controller to request state information (e.g., statistics, supported features) from the switch. The switch responds with multi-part replies. Supported Mult-Part messages: • OFPT_MULTIPART_REQUEST • OFPT_MULTIPART_REPLY |
| Asynchronous | An asynchronous message is sent from the switch to the controller, unsolicited, to denote a packet arrival. |
| Packet-in | Forwards a received packet to the controller. Supported Packet-in message: • OFPT_PACKET_IN |
| Flow-Removed | Informs the controller about the removal of a flow entry from a flow table, only when the SEND_FLOW_REM flag is set for that entry.Supported Flow-Removed message: • OFPT_FLOW_REMOVED |
| Port_Status | Notifies the controller if there has been any addition/removal of a port on the switch. • OFPT_PORT_STATUS |
| Error | Notifies the controller of a problem. Supported Error message: • OFPT_ERROR |
| Symmetric | A symmetric message is an unsolicited message sent from the switch to the controller or from the controller to switch. |
| Hello | Exchanged between the switch and controller during the connection startup. Supported Hello message: • OFPT_HELLO |
| Echo | An echo request is sent to verify that the controller-switch connection is up. When the switch or controller receives an echo request message, it must respond with an echo reply. Supported Echo messages: • OFPT_ECHO_REQUEST • OFPT_ECHO_REPLY |