The invention relates to the field of line protection, and discloses a zero
insertion loss OLP optical line protection switching method and device based on a 400G all-optical network, and the method comprises the following steps: carrying out the real-time monitoring through an
optical power monitoring module of OLP equipment, and obtaining an
optical power value and a
signal quality index; respectively comparing the
optical power value and the
signal quality index of the main
optical fiber with a corresponding optical power threshold value and a corresponding
signal quality threshold value, and if at least one optical power value or
signal quality index is greater than or equal to the corresponding threshold value, primarily judging that the main
optical fiber has a fault; obtaining a fault alarm index according to the optical power value and the
signal quality index, comparing the fault alarm index with a fault alarm threshold value, if the fault alarm index is greater than or equal to the fault alarm threshold value, re-judging a main
optical fiber fault, generating a switching instruction, judging a network interval according to a time point at which the switching instruction is generated so as to judge whether to send out the switching instruction, and if not, sending out the switching instruction. And after receiving the switching instruction, executing a switching action of switching the main optical
fiber to the standby optical
fiber, and when the main optical
fiber returns to normal, switching the standby optical fiber to the main optical fiber.