This application discloses a low-latency
optical fiber time-frequency synchronization method, apparatus, and storage medium for reducing errors during long-distance
optical fiber transmission. The method involves: generating a PPS reference data packet and an
optical fiber delay data packet; inputting the PPS reference data packet and the initial optical
fiber delay data packet into a primary slave
station; performing site encoding on the PPS reference data packet and the initial optical
fiber delay data packet through the primary slave
station; transmitting the site-encoded PPS reference data packet and the initial optical
fiber delay data packet to the
master station after a
response delay; performing optical segment
delay encoding on the optical fiber delay data packet using the first optical port based on the total
loopback delay and the
response delay; transmitting the PPS reference data packet and the optical segment delay-encoded optical fiber delay data packet to the primary slave
station through the first optical port; using the PPS reference data packet to recover the original PPS from the
master station at the primary slave station, and performing phase shifting
processing on the primary slave station using the optical segment delay-encoded optical fiber delay data packet.