Service Process Control Method and Network Device
First Claim
1. A service process control method in a network device, wherein the network device comprises N data processing modules, and wherein each data processing module is configured to collect information of one dimension of a packet received by the network device, the method comprising:
- selecting, according to an execution policy of at least one service deployed on the network device, M data processing modules for processing a packet received by the network device;
determining a processing sequence for the selected M data processing modules to process the packet, wherein N is greater than or equal to M, wherein M and N are both positive integers, wherein an execution policy of each service comprises at least one service rule, wherein each service rule comprises a condition and an action, and wherein matching of each service rule at least depends on information of one dimension of the packet;
invoking the selected M data processing modules to process the packet according to the processing sequence;
performing, according to all information of the packet that is collected by the M data processing modules, matching for all service rules that are part of the execution policy of the at least one service, so as to determine a successfully matched service rule; and
executing an action corresponding to the successfully matched service rule.
1 Assignment
0 Petitions
Accused Products
Abstract
A service process control method and a network device. The method includes: selecting, according to an execution policy of at least one service deployed on a network device, M data processing modules for processing a packet received by the network device, and determining a processing sequence for the selected M data processing modules to process the packet; and invoking the selected M data processing modules to sequentially process, according to the processing sequence, the packet. In the foregoing technical solutions of embodiments of the present invention, an execution sequence for a data processing module to process the packet is dynamically generated according to a policy set corresponding to the service, thereby reducing an unnecessary processing process and redundant information collection in a service execution procedure, improving service processing flexibility, and enhancing overall performance of the device.
12 Citations
13 Claims
-
1. A service process control method in a network device, wherein the network device comprises N data processing modules, and wherein each data processing module is configured to collect information of one dimension of a packet received by the network device, the method comprising:
-
selecting, according to an execution policy of at least one service deployed on the network device, M data processing modules for processing a packet received by the network device; determining a processing sequence for the selected M data processing modules to process the packet, wherein N is greater than or equal to M, wherein M and N are both positive integers, wherein an execution policy of each service comprises at least one service rule, wherein each service rule comprises a condition and an action, and wherein matching of each service rule at least depends on information of one dimension of the packet; invoking the selected M data processing modules to process the packet according to the processing sequence; performing, according to all information of the packet that is collected by the M data processing modules, matching for all service rules that are part of the execution policy of the at least one service, so as to determine a successfully matched service rule; and executing an action corresponding to the successfully matched service rule. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A network device, comprising:
-
a processor; and a non-transitory processor-readable medium having processor-executable instructions stored thereon, the processor-executable instructions including a plurality of units, the units including;
a transceiver module, a list generating module, a scheduling module, and N data processing modules, wherein N is a positive integer, wherein each data processing module is configured to collect information of one dimension of a packet, wherein the transceiver module is configured to receive a packet, and wherein the list generating module is configured to;select, according to an execution policy of at least one service deployed on the network device, M data processing modules for processing the packet received by the transceiver module; and determine a processing sequence for the selected M data processing modules to process the packet, wherein M is a positive integer, M is less than or equal to N, an execution policy of each service comprises at least one service rule, each service rule comprises a condition and an action, wherein matching of each service rule at least depends on information of one dimension of the packet, and wherein the scheduling module is configured to; invoke the M data processing modules selected by the list generating module to sequentially process, according to the processing sequence, the packet, so as to obtain information of at least one dimension of the packet; perform, according to the information of the at least one dimension of the packet, matching for all service rules that are part of the execution policy of the at least one service, so as to determine a successfully matched service rule; and execute an action corresponding to the successfully matched service rule. - View Dependent Claims (9, 10, 11, 12, 13)
-
Specification