CPC H04L 45/507 (2013.01) [H04L 12/4641 (2013.01); H04L 41/00 (2013.01); H04L 47/825 (2013.01)] | 20 Claims |
1. A method for processing packets, comprising:
allocating, by a controller, a service label corresponding to a service processing manner of a forwarding equivalence class (FEC) and a path, wherein the controller also establishes a mapping relationship between the service label and the service processing manner;
sending, by the controller, the service label to a source node of the path to enable the source node to insert the service label to a first packet to obtain a second packet to be forwarded along the path to a destination node, wherein the service label is used to instruct a network node on the path to perform service processing on the second packet according to the service processing manner; and
sending, by the controller, the mapping relationship to the destination node to enable the destination node to pop the service label from the second packet to obtain the first packet.
|