摘要 |
Disclosed are a packet processing method and device, which solve the problem that an SF node is unable to process a packet comprising a service header. The method comprises: receiving, by a packet processing device, a first packet from a service forwarding entity (SFE), wherein the first packet comprises a second packet and a service header encapsulated in the second packet, and the service header in the first packet comprises a path identifier (ID) of a service chain; acquiring, by the packet processing device, the second packet and the path ID; processing, by the packet processing device, the second packet according to the path ID to acquire a third packet, wherein processing the second packet comprises: adding a first parameter into the second packet, the first parameter being a parameter determined according to the path ID; and sending, by the packet processing device, the third packet to a service function (SF) node. |