Patent attributes
A service processing method and a network device, where the network device includes a network processor (NP) and a central processing unit (CPU). The NP is configured to receive a first packet, obtain a packet feature of the first packet, obtain a processing rule corresponding to the packet feature, process the first packet based on the processing rule, to obtain a second packet, and send the second packet to the CPU. The CPU is configured to receive the second packet, and process the second packet. Before the CPU processes the first packet, the NP processes the first packet, and sends the second packet obtained after processing to the CPU.