The invention relates to the technical field of
optical communication, and provides a protection switching threshold setting method and device of an optical
transmission system and a medium, and the optical
transmission system comprises a sending end, a working path, a protection path and a receiving end. Signals of the transmitting end are combined by the
wavelength division
multiplexer and then are divided into two paths through the optical splitter, and the two paths are transmitted to the protection switch of the receiving end through the working path and the protection path respectively; the method comprises the following steps: acquiring data of an optical
transmission system in real time through a
physical layer, and constructing a digital twinborn model of the optical transmission
system; respectively carrying out degradation
simulation on the working path and the protection path at a
fiber entrance point by utilizing a digital twinborn model, presetting a degradation initial value and a degradation step length, and calculating optical
signal-to-
noise ratios of all wave channels of the working path and the protection path according to the digital twinborn model in the
simulation process; and obtaining a working path degradation value and a protection path degradation value which enable any wave channel to reach an optical
signal-to-
noise ratio threshold value, so as to obtain a protection switching threshold value, and deploying the protection switching threshold value to a protection switch for path selection.