Patent ID: 8462805

Claim:
A router, comprising: a label information storage module, configured to store label information generated by a control plane of the router; a communication module, configured to receive label switched path (LSP) packets sent by a neighbor router when the control plane enters a graceful restart (GR) state; a control module, configured to recover the label information in the label information storage module according to the LSP packets; a determining module, configured to determine whether the label information of the control plane is completely recovered, and if the label information of the control plane is completely recovered, notify the control module to enable the control plane to exit the GR state, and forward the label information stored in the label information storage module to a label forwarding information storage module; and further comprising: a timer module, wherein the control module is further configured to start the determining module and the timer module when the control plane enters the GR state, and the determining module is further configured to determine whether the timer module expires when determining that the label information of the control plane is not completely recovered, and if the timer module expires, the control plane exits the GR state.