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

Claim 20:
21. 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:
receive a packet, wherein the packet comprises a compressed segment list, the compressed segment list corresponds to a forwarding path of the packet, and the compressed segment list comprises a compressed segment identifier, 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;
generate an original segment identifier based on the compressed segment identifier and a destination address of the packet, wherein the original segment identifier corresponds to a next-hop node of the network device on the forwarding path of the packet, and a length of the compressed segment identifier is less than a length of the original segment identifier; and
send the packet to the next-hop node based on the original segment identifier.