CPC H04L 45/42 (2013.01) [H04L 45/122 (2013.01); H04L 45/127 (2013.01); H04L 45/566 (2013.01)] | 29 Claims |
1. A packet processing method, wherein the method is applied to a segment routing over Internet protocol version 6 (SRv6) network, and the method comprises:
receiving a packet, wherein the packet comprises a first pointer, a second pointer, and a segment list, the segment list comprises a plurality of compressed segment identifiers (C-SIDs), and wherein the segment list comprises at least one element, wherein the at least one element comprises a first element, the first element comprises at least two C-SIDs in the plurality of C-SIDs, the at least two C-SIDs include a first C-SID;
determining the first C-SID in the plurality of C-SIDs in the segment list based on the value of the first pointer and the value of the second pointer, wherein the value of the second pointer indicates the first element in the segment list, and the value of the first pointer indicates the first C-SID in the first element; and
adding the first C-SID to a destination address field of the packet.
|