摘要 |
Disclosed are a method and device for identifying a connection relationship between ports. The method can comprise: acquiring distance information about an optical fibre in a port group, and sending the distance information to a network management device, the distance information being used for enabling the network management device to identify a far end, the far end being an optical fibre distribution device, and a distance of the optical fibre in the port group, reported to the network management device by the optical fibre distribution device being equal to that represented by the distance information; receiving a notification message which is sent by the network management device and is used for notifying that the far end exists; sending a detection signal to a source port in the port group, such that the far end receives the detection signal at a destination port; and sending a detection message carrying a port identifier of the source port to the network management device, such that the network management device confirms a connection relationship between the source port and the destination port according to the port identifier. The embodiments of the present invention can improve the efficiency of identification of the connection relationship between the ports and improve the accuracy of identification. |