Method and apparatus for compressing label stack, and method and apparatus for decompressing label stack

    公开(公告)号:US10419333B2

    公开(公告)日:2019-09-17

    申请号:US15449850

    申请日:2017-03-03

    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.

Patent Agency Ranking