A method for restoring an optical layer service, applied to nodes and a route computation element in a network, and the method comprising: determining wavelength resource occupancy information of an inner-link of each node in the network and an optical layer link where each node is located; wherein, the wavelength resource occupancy information comprises resource occupancy state information of a wavelength resource corresponding to a Hold Priority; flooding the wavelength resource occupancy information of an inner-link of each node and the optical layer link where each node is located in the network; determining a restoring Label Switched Path, LSP, of a service to be restored when the service requires to be restored; acquiring wavelength resource occupancy information of an inner-link of each node on the restoring LSP and wavelength resource occupancy information of each optical layer link on the restoring LSP; and preempting a wavelength resource on the restoring LSP according to the wavelength resource occupancy information of an inner-link of each node on the restoring LSP and wavelength resource occupancy information of each optical layer link on the restoring LSP; wherein the inner-link of the node is a link inside the node being part of an optical channel; wherein the determining wavelength resource occupancy information of an inner-link of each node in the network and an optical layer link where each node is located, comprises: for any one of the inner-links or any one of the optical layer links, determining wavelength resource occupancy information of the link, which comprises: grouping by the Hold Priority, and each priority group containing resource occupancy state information of all wavelength resources of the link corresponding to the Hold Priority of the priority group; or grouping by a wavelength, and each wavelength group containing resource occupancy state information of a wavelength resource of the wavelength corresponding to all Hold Priorities. determining wavelength resource occupancy information of an inner-link of each node in the network and an optical layer link where each node is located; wherein, the wavelength resource occupancy information comprises resource occupancy state information of a wavelength resource corresponding to a Hold Priority; flooding the wavelength resource occupancy information of an inner-link of each node and the optical layer link where each node is located in the network; determining a restoring Label Switched Path, LSP, of a service to be restored when the service requires to be restored; acquiring wavelength resource occupancy information of an inner-link of each node on the restoring LSP and wavelength resource occupancy information of each optical layer link on the restoring LSP; and preempting a wavelength resource on the restoring LSP according to the wavelength resource occupancy information of an inner-link of each node on the restoring LSP and wavelength resource occupancy information of each optical layer link on the restoring LSP; wherein the inner-link of the node is a link inside the node being part of an optical channel; wherein the determining wavelength resource occupancy information of an inner-link of each node in the network and an optical layer link where each node is located, comprises: for any one of the inner-links or any one of the optical layer links, determining wavelength resource occupancy information of the link, which comprises: grouping by the Hold Priority, and each priority group containing resource occupancy state information of all wavelength resources of the link corresponding to the Hold Priority of the priority group; or grouping by a wavelength, and each wavelength group containing resource occupancy state information of a wavelength resource of the wavelength corresponding to all Hold Priorities. grouping by the Hold Priority, and each priority group containing resource occupancy state information of all wavelength resources of the link corresponding to the Hold Priority of the priority group; or grouping by a wavelength, and each wavelength group containing resource occupancy state information of a wavelength resource of the wavelength corresponding to all Hold Priorities.