Patent attributes
A service process control method and a network device, where the method includes selecting, according to an execution policy of at least one service deployed on a network device, M data processors for processing a packet received by the network device, determining a processing sequence for the selected M data processors to process the packet, and invoking the selected M data processors to sequentially process, according to the processing sequence, the packet. An execution sequence for a data processor 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.