Flow entry configuration method, apparatus, and system
First Claim
1. A method performed by a switch in a software defined networking (SDN) system, comprising:
- reporting information about a first data packet of a first service to a controller coupled to the switch in the SDN system;
receiving a first flow entry of the first service that is delivered by the controller based on the information about the first data packet and a flow table structure, wherein the flow table structure comprises a plurality of match fields being supported by multiple flow tables and a plurality of actions being supported by the multiple flow tables, and wherein the plurality of match fields comprise a match field of the first service, and the plurality of actions comprise an action for processing data packets of the first service;
configuring the first flow entry into a software flow table of the switch;
acquiring, from the configured software flow table, a plurality of target flow entries associated with the first data packet;
determining, from a plurality of preconfigured service paths, a first target service path corresponding to the plurality of target flow entries, wherein match fields of the first target service path comprise an ingress port match field and a packet header match field corresponding to the plurality of target flow entries, and wherein an action of the first target service path for processing the data packets of the first service is indicated by actions of the plurality of target flow entries;
determining a target hardware flow table corresponding to the first target service path from a plurality of hardware flow tables of the switch, wherein the target hardware flow table supports a service associated with the first target service path; and
configuring a flow entry of the target hardware flow table according to the plurality of target flow entries.
1 Assignment
0 Petitions
Accused Products
Abstract
A flow entry configuration method, apparatus, and system are disclosed. The method includes: reporting, by a switch, information about a data packet of a first service to a controller, receiving a flow entry delivered by the controller according to the information and a flow table structure, determining a first target service path matching the flow entry of the first service, determining a target hardware flow table according to a preconfigured correspondence between the service path and a hardware flow table of the switch, and configuring a flow entry of the target hardware flow table according to the flow entry of the first service. Therefore, no matter to which controller the switch is connected, the switch can successfully configure, in the hardware flow table, the flow entry used to implement the first service, so as to successfully process the first service, thereby reducing a probability of failure in service processing.
-
Citations
20 Claims
-
1. A method performed by a switch in a software defined networking (SDN) system, comprising:
-
reporting information about a first data packet of a first service to a controller coupled to the switch in the SDN system; receiving a first flow entry of the first service that is delivered by the controller based on the information about the first data packet and a flow table structure, wherein the flow table structure comprises a plurality of match fields being supported by multiple flow tables and a plurality of actions being supported by the multiple flow tables, and wherein the plurality of match fields comprise a match field of the first service, and the plurality of actions comprise an action for processing data packets of the first service; configuring the first flow entry into a software flow table of the switch; acquiring, from the configured software flow table, a plurality of target flow entries associated with the first data packet; determining, from a plurality of preconfigured service paths, a first target service path corresponding to the plurality of target flow entries, wherein match fields of the first target service path comprise an ingress port match field and a packet header match field corresponding to the plurality of target flow entries, and wherein an action of the first target service path for processing the data packets of the first service is indicated by actions of the plurality of target flow entries; determining a target hardware flow table corresponding to the first target service path from a plurality of hardware flow tables of the switch, wherein the target hardware flow table supports a service associated with the first target service path; and configuring a flow entry of the target hardware flow table according to the plurality of target flow entries. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A switch, comprising:
-
a hardware forwarding chip configured to forward a data packet a communications apparatus coupled to the hardware forwarding chip and configured to; report information about a first data packet of a first service to a controller coupled to the switch; receive a first flow entry of the first service that is delivered by the controller based on the information about the first data packet and a flow table structure, wherein the flow table structure comprises a plurality of match fields being supported by multiple flow tables and a plurality of actions being supported by the multiple flow tables, and wherein the plurality of match fields comprise a match field of the first service, and the plurality of actions comprise an action for processing data packets of the first service; configure the first flow entry into a software flow table of the switch; acquire, from the configured software flow table, a plurality of target flow entries associated with the first data packet; determine, from a plurality of preconfigured service paths, a first target service path corresponding to the plurality of target flow entries, wherein match fields of the first target service path comprise an ingress port match field and a packet header match field corresponding to the plurality of target flow entries, and wherein an action of the first target service path for processing data packets of the first service is indicated by actions of the plurality of target flow entries; determine a target hardware flow table corresponding to the first target service path from a plurality of hardware flow tables of the hardware forwarding chip, wherein the target hardware flow table supports a service associated with the first target service path; and configure a flow entry of the target hardware flow table according to the plurality of target flow entries. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A communications system, comprising:
-
a controller; and a switch coupled to the controller and configured to; report information about a first data packet of a first service to the controller; receive a first flow entry of the first service from the controller, wherein the first flow entry is generated by the controller based on the information about the first data packet and the flow table structure, wherein the flow table structure is used to generate, for different hardware flow tables corresponding to a plurality of switches, the first flow entry for processing data packets of the first service, wherein the flow table structure comprises a plurality of match fields and a plurality of actions, wherein the plurality of match fields comprise a match field of the first service, and wherein the plurality of actions comprise an action of the first service; determine, from a plurality of preconfigured service paths, a first target service path associated with the first flow entry, wherein a match field of the first target service path comprises the match field of the first service, and an action of the first target service path comprises the action of the first service; determine a target hardware flow table according to a preconfigured correspondence between the first target service path and the target hardware flow table of a hardware forwarding chip in the switch; and configure a flow entry of the target hardware flow table according to the first flow entry of the first service. - View Dependent Claims (17, 18, 19, 20)
-
Specification