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 from the controller, wherein the first flow entry is generated by the controller based on the information about the first data packet and a 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 for processing data packets of the first service;
determining, 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 for processing data packets of the first service; and
configuring, according to the first flow entry of the first service, a flow entry of a target hardware flow table corresponding to the first target service path, wherein the target hardware flow table is a hardware flow table of a hardware forwarding chip in the switch.
0 Assignments
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 from the controller, wherein the first flow entry is generated by the controller based on the information about the first data packet and a 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 for processing data packets of the first service; determining, 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 for processing data packets of the first service; and configuring, according to the first flow entry of the first service, a flow entry of a target hardware flow table corresponding to the first target service path, wherein the target hardware flow table is a hardware flow table of a hardware forwarding chip in the switch. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A switch, comprising:
-
a hardware forwarding chip configured to forward a data packet; and 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 in the SDN system; 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 a 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 for processing data packets 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 for processing data packets of the first service; and configure, according to the first flow entry of the first service, a flow entry of a target hardware flow table corresponding to the first target service path, wherein the target hardware flow table is a hardware flow table of a hardware forwarding chip in the switch. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A non-transitory computer readable storage medium comprising one or more computer-executable instructions, wherein the one or more computer-executable instructions, when executed by one or more processors of a switch, cause the switch to:
-
report information about a first data packet of a first service to a controller coupled to the switch in a software defined networking (SDN) system; 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 a 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 for processing data packets 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 for processing data packets of the first service; and configure, according to the first flow entry of the first service, a flow entry of a target hardware flow table corresponding to the first target service path, wherein the target hardware flow table is a hardware flow table of a hardware forwarding chip in the switch. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification