| CPC H04Q 11/0062 (2013.01) [H04B 10/25 (2013.01); H04B 10/516 (2013.01); H04B 10/564 (2013.01); H04Q 2011/0077 (2013.01)] | 20 Claims |

|
1. An method comprising:
obtaining, by a first network device, first label information, wherein the first label information indicates a target optical output interface, the first network device has at least one optical output interface, and the target optical output interface is one of the at least one optical output interface;
generating, by the first network device, an optical signal, wherein a wavelength of the optical signal is within a wavelength range corresponding to the target optical output interface;
modulating, by the first network device, the first label information onto the optical signal, to generate a modulated optical signal; and
sending, by the first network device, the modulated optical signal from the target optical output interface to a target optical input interface of a second network device, to detect an optical fiber connection relationship between the target optical output interface and the target optical input interface.
|