A service path switching method, wherein the method comprises: determining a first internet protocol, IP, link associated with the service traffic when it is detected that service traffic needs to be switched from a first optical layer path to a second optical layer path, wherein both the first optical layer path and the second optical layer path are optical layer paths of the first IP link; adjusting, from the first IP link to a second IP link, an IP link used to transmit the service traffic, so that the service traffic is adjusted from the first optical layer path of the first IP link to a third optical layer path of the second IP link; switching an optical layer path of the first IP link from the first optical layer path to the second optical layer path; and adjusting, from the second IP link to the first IP link when it is detected that the optical layer path of the first IP link is switched from the first optical layer path to the second optical layer path, the IP link used to transmit the service traffic, so that the service traffic is adjusted from the third optical layer path of the second IP link to the second optical layer path of the first IP link; characterized in that the adjusting, from the second IP link to the first IP link when it is detected that the optical layer path of the first IP link is switched from the first optical layer path to the second optical layer path, the IP link used to transmit the service traffic comprises: obtaining a priority of the first IP link and a priority of the second IP link when it is detected that the optical layer path of the first IP link is switched from the first optical layer path to the second optical layer path; and adjusting, from the second IP link to the first IP link, the IP link used to transmit the service traffic when the priority of the first IP link is higher than the priority of the second IP link. determining a first internet protocol, IP, link associated with the service traffic when it is detected that service traffic needs to be switched from a first optical layer path to a second optical layer path, wherein both the first optical layer path and the second optical layer path are optical layer paths of the first IP link; adjusting, from the first IP link to a second IP link, an IP link used to transmit the service traffic, so that the service traffic is adjusted from the first optical layer path of the first IP link to a third optical layer path of the second IP link; switching an optical layer path of the first IP link from the first optical layer path to the second optical layer path; and adjusting, from the second IP link to the first IP link when it is detected that the optical layer path of the first IP link is switched from the first optical layer path to the second optical layer path, the IP link used to transmit the service traffic, so that the service traffic is adjusted from the third optical layer path of the second IP link to the second optical layer path of the first IP link; characterized in that the adjusting, from the second IP link to the first IP link when it is detected that the optical layer path of the first IP link is switched from the first optical layer path to the second optical layer path, the IP link used to transmit the service traffic comprises: obtaining a priority of the first IP link and a priority of the second IP link when it is detected that the optical layer path of the first IP link is switched from the first optical layer path to the second optical layer path; and adjusting, from the second IP link to the first IP link, the IP link used to transmit the service traffic when the priority of the first IP link is higher than the priority of the second IP link. obtaining a priority of the first IP link and a priority of the second IP link when it is detected that the optical layer path of the first IP link is switched from the first optical layer path to the second optical layer path; and adjusting, from the second IP link to the first IP link, the IP link used to transmit the service traffic when the priority of the first IP link is higher than the priority of the second IP link.