-
1.
公开(公告)号:US20170180247A1
公开(公告)日:2017-06-22
申请号:US15449850
申请日:2017-03-03
Applicant: Huawei Technologies Co., Ltd.
Inventor: Xuefeng LIN , Enhui LIU , Guoyi CHEN
IPC: H04L12/723 , H04L12/741 , H04L12/721 , H04L29/06
CPC classification number: H04L45/50 , H04L45/127 , H04L45/74 , H04L69/04 , H04L2212/00
Abstract: Embodiments of the present application provide a method and an apparatus for compressing a label stack. The method includes: obtaining a first label stack corresponding to a forwarding path, where the first label stack comprises node labels corresponding to each node on the forwarding path; selecting a first node label from the first label stack, where when forwarding a packet, a node corresponding to the first node label is capable of encapsulating at least two layers of labels in the packet; replacing at least two adjacent labels located after the first node label in the first label stack with a first compression label, to generate a second label stack; and instructing a source node on the forwarding path to perform packet processing according to the second label stack. In this way, a length of a label stack pushed into the packet can be shortened.