Skip to content
doubtly

1 answer

OpenFlow messages are exchanged between an SDN controller and an OpenFlow switch over a (usually TLS-secured) TCP channel, and fall into three types: controller-to-switch, asynchronous, and symmetric.

1. Controller-to-switch messages (started by the controller; some need a reply):

  • Features request/reply: controller asks for the switch's identity (datapath ID) and capabilities, usually right after the connection is set up.
  • Configuration: set and query switch configuration parameters.
  • Modify-State (Flow-Mod, Group-Mod, Port-Mod): add, modify or delete flow-table entries and set port properties. This is how the controller programs forwarding.
  • Read-State (statistics / multipart): collect counters and statistics about flows, tables and ports.
  • Packet-Out: tells the switch to send a specific packet out of a given port (often the reply to a Packet-In).
  • Barrier request/reply: ensures earlier messages are completed before later ones are processed.
  • Role request and asynchronous-configuration messages (when several controllers are used).

2. Asynchronous messages (sent by the switch without being asked):

  • Packet-In: sends a packet (or its header) to the controller, typically when there is no matching flow entry (table miss) or an action says "send to controller".
  • Flow-Removed: informs that a flow entry was removed due to idle/hard timeout or deletion.
  • Port-Status: reports that a port was added, removed or changed state (e.g. link down).
  • Error: reports a problem with a request.

3. Symmetric messages (can be sent by either side without solicitation):

  • Hello: exchanged when the connection starts, to agree on the protocol version.
  • Echo request/reply: keep-alive and to measure latency/bandwidth of the connection.
  • Experimenter (Vendor): a standard way to carry extra, vendor-specific features.

Typical flow: Hello → Features → a new packet arrives with no matching rule → Packet-In → controller decides → Flow-Mod (installs rule) and Packet-Out → later packets are forwarded by the switch directly.

Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.