摘要 |
A method for allocating a label is used for a network system, where the network system includes a first Egress PE, a second Egress PE, and an Ingress PE, the first Egress PE and the second Egress PE separately communicate with a CE, and the first Egress PE and the second Egress PE are located in a same redundancy protection group, and are separately used as primary and backup devices; the first Egress PE and the second Egress PE separately generate a virtual node, where the virtual node has a global unique Router ID in the network system, and the virtual node is used as a next hop node of the first Egress PE and the second Egress PE; and the first Egress PE and the second Egress PE send link state information to the Ingress PE, so that the Ingress PE obtains Router IDs of the first Egress PE and the second Egress PE, a Router ID of the virtual node, and the link state information of the first Egress PE and the second Egress PE, and the first Egress PE and the second Egress PE separately allocate a first label to a first forwarding equivalence class of a first virtual private network VPN, and send the first label and the Router ID of the virtual node to the Ingress PE. |