US 12,395,572 B2
Packet processing method
Yongkang Zhang, Nanjing (CN); and Zhongzhen Wang, Beijing (CN)
Assigned to Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed on Nov. 23, 2021, as Appl. No. 17/533,216.
Application 17/533,216 is a continuation of application No. PCT/CN2020/091935, filed on May 22, 2020.
Claims priority of application No. 201910441426.3 (CN), filed on May 24, 2019.
Prior Publication US 2022/0109745 A1, Apr. 7, 2022
Int. Cl. H04L 12/723 (2013.01); H04L 12/725 (2013.01); H04L 12/741 (2013.01); H04L 29/06 (2006.01); H04L 45/00 (2022.01); H04L 69/22 (2022.01); H04N 21/84 (2011.01)
CPC H04L 69/22 (2013.01) [H04L 45/34 (2013.01)] 14 Claims
OG exemplary drawing
 
1. A method, implemented by a service function forwarder (SFF) device, the method comprising:
receiving a first packet comprising a first packet header and a payload;
storing a mapping relationship between a first identifier and the first packet header locally in a Segment ID (SID) configuration table that indicates mapping relationships between SIDs of different fields and different SID types, wherein the first identifier uniquely identifies the first packet header and the payload;
replacing the first packet header of the first packet with a second packet header to obtain a second packet, wherein the second packet comprises the first identifier;
sending the second packet to a service function (SF) device, wherein the second packet header corresponds to a tunnel connected between the SFF device and the SF device;
receiving a third packet from the SF device, wherein the third packet comprises the first identifier and the payload;
determining, based on the stored mapping relationship between the first identifier and the first packet header, the first packet header;
replacing, a third packet header of the third packet with the first packet header to obtain a fourth packet, wherein the fourth packet comprises the payload and the first packet header; and
sending the fourth packet to a next-hop node.