Patent ID: 7760621

Claim:
A method for protecting a label switched path, comprising: Receiving, by a downstream Resource ReSerVation Protocol, RSVP, node, a record_route object node list from an upstream RSVP node, wherein the record_route object node list records interface classification identifications in record_route object corresponding to interfaces of resource reservation protocol nodes, and the interface classification identifications are configured to indicate whether record_route object nodes correspond to incoming interfaces; Judging, by the downstream RSVP node, whether a protection identification of a nearest upstream outgoing interface upstream in the record_route object node list is set as a protection state; If the protection identification isn't set as a protection state, setting, by the downstream RSVP node, next hop protection for a corresponding label switched path; and If the protection identification isn't set as a protection state, traversing by the downstream RSVP node, to a last record_route object node of a record_route object node corresponding to the nearest upstream outgoing interface, and judging, by the downstream RSVP node, whether the last record_route object node is null; If the last record route object node is null, the process of the method for protecting a label switched path is terminated; if the last record_route object node isn't null, when the last record_route object node correspond to an Internet Protocol version 4, IPV4, address and does not correspond to a resource reservation protocol node identification and incoming interface, determining the last record_route object node is the record_route object node corresponding to the last outgoing interface of the nearest upstream outgoing interface; if the last record_route object node does not correspond to an IPV4 address or a resource reservation protocol node identification or an incoming interface, finding another last upstream record_route object node in upstream direction from the last record_route object node, and performing judgment for another last upstream record_route object node; and setting, by the downstream RSVP node, next next hop protection for the corresponding label switched path according to the protection identification of the record_route object node corresponding to the last outgoing interface of the nearest upstream outgoing interface.