Patent ID: 11902156
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC H

Claim 17:
18. A network device, comprising:
at least one processor;
one or more memories coupled to the at least one processor and storing programming instructions, wherein the at least one processor is configured to execute the programming instructions to cause the network device to:
obtain a compressed segment list comprising a compressed segment identifier, wherein each compressed segment identifier in the compressed segment list corresponds to one node or link on a packet forwarding path, wherein the compressed segment list comprises C successively adjacent compressed segment identifiers, the C compressed segment identifiers are in a one-to-one correspondence with C original segment identifiers, first N bytes in each of the C original segment identifiers are the same, a length of each of the C compressed segment identifiers is X bytes, each of the C compressed segment identifiers comprises X bytes following the first N bytes in a corresponding original segment identifier, a sequence of the C compressed segment identifiers is same as a sequence of the C original segment identifiers, and a length of each of the C compressed segment identifiers is less than a length of a corresponding original segment identifier, and wherein N is a positive integer, X is a positive integer, and C is a positive integer;
receive a first packet, wherein the first packet is forwarded along the packet forwarding path;
encapsulate the compressed segment list into the first packet, to generate a second packet; and
send the second packet along the packet forwarding path.