Ports

An SDN switch makes all of its connected ports available as OpenFlow ports, which are used for transmitting packets between the OpenFlow-controlled SDN switches and other devices in a software-defined network. The ingress port on which the packet arrives is set as a property on each incoming packet and may be used for matching purposes.

The following port types are modeled.

  • Physical—A physical port is an OpenFlow port that corresponds to a hardware interface on the switch, that is, a one-to-one mapping.

    Note—The port number of each physical port reported to the controller is determined using the following approach:

    • Only connected ports are numbered, and the numbers are assigned consecutively starting with 1.
    • Assignment order follows the order of the ports under the "Port Configuration" attribute of the switch.
  • Reserved—A reserved port specifies a generic action, such as forwarding or flooding, similar to typical switch processing. The following reserved ports are modeled.

    • ALL – Represents all ports on the switch. When a packet is sent to ALL, a copy of the packet is sent to every port on the switch except the packet's ingress port.
    • CONTROLLER – (output only) Represents the control channel with the controller. When packets are sent to this port, the packets are encapsulated in a Packet-in message.
    • TABLE – Represents the beginning of the OpenFlow pipeline. This port is valid as an output action in the action list of a Packet-out message. The packet is submitted for processing to the first flow table.
    • IN_PORT – (output only) Represents the ingress port. Can only be used to specify sending the packet back out through its ingress port.
    • ANY – A special wildcard used in commands in which no port is specified.