Abstract:
The present invention provides an apparatus including: a macrobending injected-light modulation and control module, configured to modulate an injected optical signal according to a port identifier of each first port and inject the injected optical signal to an optical fiber connected to the first port; a macrobending signal detection module, configured to receive a received optical signal at a second port of an optical transmission path; a phase-locked detection module, electrically connected to the macrobending injected-light modulation and control module and the macrobending signal detection module, and configured to: when an injected optical signal that is injected by the macrobending injected-light modulation and control module to an optical fiber is consistent with a received optical signal that is acquired by the macrobending signal detection module, acquire and output port identifiers of a first port and a second port.