Patent attributes
A network service processing method and apparatus are provided. The method includes: partitioning a field-programmable gate array (FPGA) or a network processor (NP) into multiple mutually isolated service processing resources; receiving a first configuration instruction, where the first configuration instruction includes a first service configuration execution file; performing service configuration on a service processing resource according to the first service configuration execution file, so that the service processing resource performs service processing on a to-be-processed service packet; receiving a forwarding rule used when service forwarding is to be performed on the to-be-processed service packet; and receiving the to-be-processed service packet sent by a user terminal, and distributing the to-be-processed service packet to the service processing resource by using the forwarding rule, so that the service processing resource performs service processing on the to-be-processed service packet.