摘要 |
Disclosed are a method and a device for restoring a network. The method comprises: acquiring a network status and available resources of the network when a failure occurs in the optical layer of the network, wherein the available resources include free resources in the optical layer and IP layer, intact resources in an LSP of the failed optical layer and intact resources in the IP link corresponding to the LSP; using the available resources to calculate the path information about a new optical layer LSP, a corresponding IP link and configuration information corresponding to the first and last node of the IP link, according to the network status; notifying the first node of the new optical layer LSP to establish an optical layer LSP according to the path information about the new optical layer LSP; once the optical layer LSP has been successfully established, notifying the first and last node of the IP link corresponding to the optical layer LSP to establish an IP link, and distributing to the first and last node the configuration information corresponding thereto. |