Method and system for identifying an outgoing interface using openflow protocol
View Patent ↗A method for using OpenFlow protocol to configure an OpenFlow-enabled switch is disclosed. In the embodiment, the method involves decoding an OpenFlow flow entry from a flow mod message, the flow entry including two or more actions, searching a Service Access Point (SAP) match table for an outgoing interface having attributes that match the two or more actions, and updating a flow table on the OpenFlow-enabled switch to include the decoded flow entry when an outgoing interface having attributes that match the two or more actions is found.
1. A method for using OpenFlow protocol to configure an OpenFlow-enabled switch, the method comprising:
decoding an OpenFlow flow entry from a standard flow mod message, the flow entry including two or more actions;
searching a Service Access Point (SAP) match table for an outgoing interface having attributes that match attributes extracted from the two or more actions; and
updating a flow table on the OpenFlow-enabled switch to include the decoded flow entry when an outgoing interface having attributes that match the two or more actions is found.
2. The method of claim 1 , wherein one or more of the attributes of an outgoing interface is a VLAN tag.
3. The method of claim 1 , wherein one or more of the attributes of an outgoing interface is a segment routing tunnel ID.
4. The method of claim 1 , wherein one or more of the attributes of an outgoing interface is a physical port ID.
5. A method for selecting an outgoing interface using a standard flow mod message, the method comprising:
extracting one or more attributes from two or more actions of a standard flow mod message;
comparing the one or more extracted attributes with attributes of interfaces in a SAP match table; and
updating a flow table to include an OpenFlow flow entry decoded from the standard flow mod message when all of the extracted attributes match with all of the attributes of an interface in the SAP match table.
6. The method of claim 5 , wherein one or more of the extracted attributes is a VLAN tag.
7. The method of claim 5 , wherein one or more of the extracted attributes is a segment routing tunnel ID.
8. The method of claim 5 , wherein one or more of the extracted attributes is a physical port ID.
9. The method of claim 5 , wherein the one or more attributes extracted from the standard flow mod message are extracted from actions in the standard flow mod message.
10. A non-transitory computer-readable storage medium comprising instructions that, when executed by a computer, implement a method for configuring an OpenFlow-enabled switch, the method comprising:
decoding an OpenFlow entry from a standard flow mod message, the flow entry including two or more actions;
searching a SAP match table for an outgoing interface having attributes that match attributes extracted from the two or more actions; and
updating a flow table on the OpenFlow-enabled switch to include the decoded flow entry when an outgoing interface having attributes that match the two or more actions is found.
11. The non-transitory computer-readable storage medium of claim 10 , wherein one or more of the attributes of an outgoing interface is a VLAN tag.
12. The non-transitory computer-readable storage medium of claim 10 , wherein one or more of the attributes of an outgoing interface is a segment routing tunnel ID.
13. The non-transitory computer-readable storage medium of claim 10 , wherein one or more of the attributes of an outgoing interface is a physical port ID.