WO2016015606A1 - Method for locating port connection error and related device - Google Patents

Method for locating port connection error and related device Download PDF

Info

Publication number
WO2016015606A1
WO2016015606A1 PCT/CN2015/085123 CN2015085123W WO2016015606A1 WO 2016015606 A1 WO2016015606 A1 WO 2016015606A1 CN 2015085123 W CN2015085123 W CN 2015085123W WO 2016015606 A1 WO2016015606 A1 WO 2016015606A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
identifier
tlv
mib
local system
Prior art date
Application number
PCT/CN2015/085123
Other languages
French (fr)
Chinese (zh)
Inventor
陈照宇
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016015606A1 publication Critical patent/WO2016015606A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and related device for locating port connection errors.
  • the A device includes port 1, port 2, and port 3.
  • the B device includes port 1 ', port 2', and port 3'.
  • the correct port connection is the RX connection of port 1's TX and port 1'.
  • the RX of port 1 is connected to the TX of port 1'.
  • a squall line appears. The presence of a squall line may cause communication to fail. As a result, business traffic cannot be forwarded.
  • the Link Layer Discovery Protocol provides a standard link layer discovery method.
  • Each port of the first device and the second device independently maintains a local system management information base (MIB) and a remote system MIB.
  • MIB system management information base
  • Each port of the first device can periodically organize information such as a primary capability, a management address, a device identifier, and a port identifier of the first device into different types/Length/Values (TLVs), and is encapsulated in In an LLDP packet.
  • the port of the first device may send the LLDP packet to the port of the second device directly connected to the port of the first device.
  • the second device is a neighbor device of the first device.
  • the second device performs validity check on the received LLDP packet and the TLV carried by the LLDP packet, and saves the received local system MIB of the first device as the remote system MIB of the port of the second device. If the LLDP local system MIB or the LLDP remote system MIB of the port of the second device changes, the port of the second device of the neighbor sends an LLDP alarm, indicating that there is a problem with the physical connection of the port of the second device.
  • the above method for determining whether a physical connection of a port is problematic through the LLDP protocol cannot efficiently locate whether a physical connection of a port is incorrect in some scenarios. For example, when a fiber connection is made, a twist line appears, and the TX of the port of the network device can transmit light. The signal, and the RX of the port can receive the optical signal, the problem of the port physical connection sending error cannot be found. Therefore, it is not possible to locate the physical connection of the port in time.
  • Embodiments of the present invention provide a method and related apparatus for locating port connection errors, which in some scenarios facilitates an error in physically connecting a port.
  • the first aspect provides a method for locating a port connection error, including:
  • the first port of the first device sends the local system management information base MIB of the first port to the second port of the second device;
  • the third port of the first device receives the local system MIB of the first port sent by the second port of the second device;
  • the third port of the first device receives the local system MIB of the first port that is sent by the second port of the second device
  • the determining, by the first device, that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device includes:
  • the first device compares the local system MIB of the third port with the local system MIB of the first port sent by the second device, according to the indication of the identifier information;
  • the first device determines that the local system MIB of the third port is different from the local system MIB of the first port based on the result of the comparison.
  • the third port of the first device receives the second The local system MIB of the first port sent by the port specifically includes:
  • the third port of the first device receives the link layer discovery protocol LLDP packet sent by the second port of the second device, where the LLDP packet carries the local system MIB of the first port and the identifier information.
  • the LLDP packet includes a first TLV and a second TLV, where the identifier information includes the first TLV.
  • the value of the type field and the value of the type field in the second TLV, the value of the type field in the first TLV indicates that the information string field in the first TLV carries the identifier of the device
  • the second TLV The value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port
  • the remote system MIB of the port of the second device includes the identifier of the first device and the first port
  • the identifier of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first one of the remote system MIBs of the port of the second device
  • the identifier of the device, the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the
  • the first device sends an error alarm to the management device,
  • the error alarm carries the identifier of the first port or the identifier of the third port, and the identifier of the first port in the error alarm is used to identify that the physical connection between the first port and the second device occurs.
  • the identifier of the third port in the error alarm is used to identify that the physical connection between the third port and the second device is incorrect.
  • a method for locating a port connection error including:
  • the second port of the second device receives the local system management information base MIB of the first port sent by the first port of the first device;
  • the second port of the second device sends the local system MIB of the first port to the third port of the first device.
  • the sending, by the second port of the second device, the local system MIB of the first port to the third port of the first device further includes :
  • the second port of the second device sends the identifier information to the third port of the first device, where the identifier information is used to identify that the local system MIB of the first port sent by the second device is the first The remote system MIB of the port of the second device.
  • the second port of the second device sends the first port to the third port of the first device
  • a port's local system MIB includes:
  • the second port of the second device sends a link layer discovery protocol LLDP packet to the third port of the first device, where the LLDP packet carries the local system MIB of the first port and the identifier information. .
  • the LLDP packet includes a first TLV and a second TLV, where the identifier information includes the first TLV.
  • the value of the type field and the value of the type field in the second TLV, the value of the type field in the first TLV indicates that the information string field in the first TLV carries the identifier of the device, the second TLV
  • the value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port
  • the remote system MIB of the port of the second device includes the identifier of the first device and the first port
  • the identifier of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first one of the remote system MIBs of the port of the second device
  • the identifier of the device, the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the
  • a first device in a third aspect, includes a first port and a third port, including:
  • a sending unit configured to send, by using the first port, a local system management information base MIB of the first port to a second port of the second device;
  • a receiving unit configured to receive, by using the third port, a local system MIB of the first port that is sent by the second port of the second device;
  • a determining unit configured to determine that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device by the receiving unit;
  • the determining unit is further configured to determine, according to the local system MIB of the third port, different from the local MIB system of the first port, that the first port and the second device are An error occurs in the physical connection or an error occurs in the physical connection of the third port to the second device.
  • the receiving unit is further configured to receive, by using the third port, identifier information that is sent by a second port of the second device, where The identifier information is used to identify that the local system MIB of the first port sent by the second device is a remote system MIB of the port of the second device;
  • the determining unit is specifically configured to:
  • the receiving unit is configured to: receive, by using the third port, a second port of the second device
  • the transmitted link layer discovery protocol LLDP packet carries the local system MIB of the first port and the identifier information.
  • the LLDP packet includes a first TLV and a second TLV
  • the identifier information includes the first TLV.
  • the value of the type field and the value of the type field in the second TLV, the value of the type field in the first TLV indicates that the information string field in the first TLV carries the identifier of the device
  • the second TLV The value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port
  • the remote system MIB of the port of the second device includes the identifier of the first device and the first port
  • the identifier of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first one of the remote system MIBs of the port of the second device
  • the identifier of the device, the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the
  • the sending unit is further configured to:
  • the error alarm carries the identifier of the first port or the identifier of the third port, and the identifier of the first port in the error alarm is used
  • An error is generated in the physical connection between the first port and the second device, and the identifier of the third port in the error alarm is used to identify that the physical connection between the third port and the second device occurs. error.
  • a second device where the second device includes a second port, including:
  • a receiving unit configured to receive, by using the second port, a local system management information base MIB of the first port that is sent by the first port of the first device;
  • a sending unit configured to send, by using the second port, a local system MIB of the first port that is received by the receiving unit to a third port of the first device.
  • the sending unit is further configured to: send, by using the second port, identifier information to a third port of the first device, where the identifier is The information is used to identify that the local system MIB of the first port sent by the second device is a remote system MIB of a port of the second device.
  • the sending unit is configured to: use the second port to the third port of the first device
  • the link layer discovery protocol LLDP packet is sent, where the LLDP packet carries the local system MIB of the first port and the identifier information.
  • the LLDP packet includes a first TLV and a second TLV, where the identifier information is included in the first TLV.
  • the value of the type field and the value of the type field in the second TLV, the value of the type field in the first TLV indicates that the information string field in the first TLV carries the identifier of the device
  • the second TLV The value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port
  • the remote system MIB of the port of the second device includes the identifier of the first device and the first port
  • the identifier of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first one of the remote system MIBs of the port of the second device
  • the identifier of the device, the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the
  • the embodiment of the invention provides a method for locating a port connection error and a related device, where the first port of the first device sends the local port of the first port to the second port of the second device
  • the system management information base MIB, and the third port of the first device receives the local system MIB of the first port sent by the second port of the second device, where the first device determines the local system MIB of the third port and the second device sends
  • the first device determines that the physical connection between the first port and the second device is incorrect or the physical connection between the third port and the second device is incorrect.
  • 1 is a schematic diagram of a physical connection error of a port of a network device
  • FIG. 2 is a schematic flowchart of a method for locating a port connection error according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another method for locating a port connection error according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of another method for locating a port connection error according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a first device frame according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a second device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a first device according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a second device according to an embodiment of the present invention.
  • the device referred to in this application may be a router.
  • the port mentioned in this application refers to a physical port.
  • the port can be an optical port.
  • the optical port can be an Ethernet interface.
  • the optical port can include an optical modem.
  • the optical port may include a transmitting end (TX) and a receiving end (RX).
  • the transmitting end may correspond to one optical fiber, and the receiving end may correspond to another optical fiber.
  • the MIB involved in this application may be an LLDP MIB.
  • the local system MIB (English: local system MIB) may be specifically an LLDP local system MIB.
  • the remote system MIB (English: remote system MIB) may be specifically an LLDP remote system MIB.
  • IEEE P802.1AB-REV/D6.0 For example, reference can be made to 11. LLDP MIB definitions in IEEE P802.1AB-REV/D6.0.
  • the local system MIB of the port involved in the present application is generated by the device to which the port belongs, and can be sent to the MIB of the neighbor device through the port.
  • the port of the neighboring device receives the local system MIB of the port, and the local system MIB of the port can be saved as the remote MIB of the port of the neighboring device.
  • the neighbor device may be an LLDP neighbor.
  • the remote system MIB of the port involved in the present application is that after the port receives the local system MIB of the neighbor device sent by the neighboring device, the device to which the port belongs saves the local system MIB of the neighbor device as the remote end of the port.
  • the neighbor device may be an LLDP neighbor.
  • the network device can be a forwarding device such as a router.
  • the A device and the B device are connected by an optical fiber.
  • the A device includes port 1, port 2, and port 3.
  • the B device includes port 1 ', port 2', and port 3'.
  • Port 1 corresponds to port 1 'one-to-one
  • port 2 corresponds to port 2'
  • port 3 and port 3' correspond one-to-one.
  • the fiber-receiving connection between the fiber of each port and the peer port that is, the port connection is correct, the TX of port 1 and the RX of port 1' should be connected, and the RX of port 1 and the TX of port 1'.
  • Figure 1 shows the situation of the squall line.
  • the RX of port 2 is connected to the TX of port 3', and the RX of port 3 is connected to the TX of port 2'. That is to say, in FIG. 1, port 1 is not implemented in one-to-one correspondence with port 2'. Port 1 does not have a one-to-one correspondence with port 3' in FIG.
  • the above situation may lead to business failure Normal forwarding.
  • An embodiment of the present invention provides a method for locating a port connection error. Referring to FIG. 2, the steps include:
  • the first port of the first device sends the local system management information base MIB of the first port to the second port of the second device.
  • each port of each device has a local system MIB and a remote system MIB, and each port independently maintains its own local system MIB and remote system MIB.
  • management information refers to a collection of managed objects in the network management framework of the Internet. Managed objects must maintain several control and status information that can be read and written by the hypervisor. These managed objects constitute a virtual information store, so it is called the management information base MIB.
  • a MIB is a database that represents a set of manageable objects for a device or service.
  • the local system MIB stores the local MIB of the port, which is the information of the port to be sent to the peer device
  • the remote MIB stores the port of the peer device connected to the port.
  • the MIB that is, the remote MIB stores information received from the port of the peer device.
  • the MIB may include a device ID, a port ID, a system name, a system description, a port description, a device capability, and a network management address.
  • the LLDP is applied, and the first port of the first device sends the local system MIB of the first port to the second port of the second device, where the first port of the first device is connected to the second port of the second device.
  • the first LLDP packet is sent, and the first LLDP packet carries the local system MIB of the first port.
  • the third port of the first device receives the local system MIB of the first port sent by the second port of the second device.
  • the second device After the second port of the second device receives the first LLDP packet sent by the first port of the first device, the second device establishes the remote MIB, that is, the second device carries the first port of the first LLDP packet.
  • the local system MIB is saved as the remote system MIB of the second port to store the local system MIB of the first port sent by the first port of the first device.
  • the second port of the second device returns the local system MIB of the first port to the first device by using the second LLDP packet, and the second LLDP packet carries the identifier information, where the identifier information is used to identify the second device.
  • the local system MIB of the first port is the port of the second device Remote system MIB.
  • the port of the second device may be the second port.
  • the second LLDP packet may include a first TLV and a second TLV, where the identifier information includes a value of a type field in the first TLV and a value of a type field in the second TLV, and a type field in the first TLV.
  • the value indicates that the information string field in the first TLV carries the identifier of the device
  • the value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the port of the second device is far.
  • the end system MIB includes an identifier of the first device and an identifier of the first port, where the value of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the remote system MIB of the port of the second device.
  • the first device identifier (Chassis ID)
  • the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the first port in the remote system MIB of the port of the second device Identification (Port ID).
  • the identifier of the device carried in the information string field in the first TLV may be an identifier of the first device.
  • the identifier of the port carried in the information string field in the second TLV may be an identifier of the first port.
  • the value of the TLV type field uses 0-8 to indicate the local system MIB sent by the sender, so that two types of TLVs can be extended.
  • the value of the TLV type field may be 9 and 10.
  • the value of the TLV type field is 9 indicates that the device sends the device identifier in the remote system MIB of the port, and the value of the TLV type field is 10 indicates that the port sent by the sender is the port. Port ID in the remote system MIB.
  • the third port of the first device can identify the remote system MIB of the received MIB from the peer device, that is, the port of the second device, according to the identification information.
  • the TLV with a value of 9 in the TLV type field may carry the identifier of the first device, and the TLV with the value of 10 in the TLV type field may carry the identifier of the first port.
  • the first device determines that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device.
  • the third port of the first device receives the local system MIB of the first port and the identifier information sent by the second device, according to the identifier information, the local system MIB of the first port is obtained from the remote system of the port of the second device.
  • the MIB the first device compares the local system MIB of the third port with the local system MIB of the first port sent by the second device based on the indication of the identification information, and determines the local system MIB of the third port and the first according to the comparison result. Port Whether the local system MIB is the same.
  • the local system MIB of the first port herein may include the identifier of the first device and the identifier of the first port
  • the local system MIB of the third port may include the identifier of the first device and the identifier of the third port. That is to say, in the comparison, the identification of the device and the identification of the port can be compared to confirm whether they are the same.
  • the first device determines that the physical connection between the first port and the second device is incorrect or the physical connection between the third port and the second device is incorrect according to the local system MIB of the third port is different from the local MIB system of the first port.
  • the RX connection of the TX of the first port of the first device and the second port of the second device is described, according to If the physical connection of the device is correct, the RX of the first port of the first device needs to connect to the TX of the second port of the second device, that is, the second port of the second device should be received from the first device.
  • the local system MIB of the first port is transmitted back to the first port of the first device, and if the TX physical connection of the second port of the second device is incorrect to the RX of the third port of the first device, when the third port receives
  • the third port compares the local system of the third port with the local system MIB of the received first port, and the third port confirms the first port and The physical connection of the second device is incorrect, or the physical connection of the third port to the second device is incorrect.
  • the physical connection error refers to a TX or RX connection error between a port of the device and a port of the peer device.
  • the first device may send an error alarm to the management device, where the error alarm carries the identifier of the first port or the identifier of the third port, and the error alarm is generated.
  • the identifier of the first port is used to identify that the physical connection between the first port and the second device is incorrect.
  • the identifier of the third port in the error alarm is used to identify that the physical connection between the third port and the second device is incorrect.
  • each port of each device receives and sends information independently, each port that has a physical connection error can independently send an error alarm, so that the four connections involved in the physical connection error occur. Each port can send an error alarm independently.
  • the embodiment of the present invention provides a method for locating a port connection error.
  • the first port of the first device sends the local system MIB of the first port to the second port of the second device, and the third port of the first device receives the second port.
  • the second port of the device sends the local system MIB of the first port, and then When the first device determines that the local system MIB of the third port is different from the local system MIB of the first port sent by the second device, the first device determines that the physical connection between the first port and the second device is incorrect or the third port and the third port The physical connection of the second device is incorrect. In this way, the physical connection of the port to the first port is transmitted back to the first device, which helps to locate the physical connection of the port efficiently.
  • the second device of the peer device of the first device in the first embodiment is the main body.
  • the embodiment of the present invention provides another method for locating the port connection error. Referring to Figure 3, the steps include:
  • the second port of the second device receives the local system MIB of the first port sent by the first port of the first device.
  • the second port of the second device may save the local system MIB of the first port as the remote system MIB of the second port.
  • the second port of the second device sends the local system MIB of the first port to the third port of the first device.
  • the second device may be the third device to the first device according to the local system MIB of the first port saved in the remote system MIB.
  • the port sends the local system MIB of the first port, so that after receiving the local system MIB of the first port, the third port of the first device may determine that the local system MIB of the third port is different from the local system MIB of the first port.
  • An error occurs in the physical connection of one port to the second device or the physical connection of the third port to the second device.
  • the second port of the second device sends the identifier information to the third port of the first device, where the second port of the second device sends the local system MIB of the first port to the third port of the first device.
  • the local system MIB for identifying the first port sent by the second device is the remote system MIB of the port of the second device.
  • the port of the second device may specifically be the second port. This may instruct the third port to compare the local system MIB that received the first port with the local system MIB of the third port to confirm whether it is the same to confirm whether the third port or the first port has a physical connection error.
  • An embodiment of the present invention provides a method for locating a port connection error, where a second port of the second device receives a local system MIB of the first port sent by the first port of the first device, and then The second port of the second device sends the local system MIB of the first port to the third port of the first device, so that the first device determines the first port and the first node based on the local system MIB of the third port different from the local system MIB of the first port.
  • the physical connection of the second device is incorrect or the physical connection between the third port and the second device is incorrect. In this way, the physical connection of the port is efficiently located by transmitting the local system MIB of the first port to the first device. error.
  • the embodiment of the present invention provides a method for locating a port connection error.
  • the first device in the first embodiment and the second embodiment is the A device in FIG.
  • the device is described in Figure 1 for the B device.
  • the first port is port 2 of the device A.
  • the third port is port 3 of the device B.
  • the steps include:
  • Port 2 of the A device sends the local system MIB of the port 2 of the A device to the port 2' of the B device through the first LLDP packet.
  • the format of the first LLDP packet can be as shown in Table 1 below:
  • the Link Layer Discovery Protocol Data Unit (LLDPDU) currently defines nine TLVs to carry the local system MIB sent by the port, and the value of the TLV type field uses 0-8.
  • the LLDP packet contains at least the following four types: Chassis ID TLV, Port ID TLV, Time to live TLV, and End of LLDPDU TLV.
  • the Time to live TLV type field has a value of 3, which is used to set the aging time of the remote MIB library.
  • port 2 of the A device periodically sends the local system MIB to the port 2' of the B device through the multicast packet, and the port 2 of the B device receives the port of the A device.
  • the local system MIB sent is stored in the remote system MIB of port 2' of the B device. If the port 2' of the B device exceeds the predetermined aging time, it is not received.
  • the port 2' of the B device clears the local system MIB that was last stored in port 2 of the remote system MIB.
  • the TLV type field has a value of 0 and is used to indicate the end of an LLDPDU. There are multiple TLVs in the LLDPDU data block. The value of the type field of the last TLV is 0, which means that the TLV is End of LLDPDU TLV, indicating the end of an LLDPDU.
  • Chassis ID TLV the value of the TLV type field is 1, indicating that the information string field of the TLV carries the device identifier.
  • the format of the Chassis ID TLV can be as shown in Table 2 below:
  • the value of the type field in the TLV is 1 to indicate that the LLDP packet carries the identifier of the device in the local system MIB of the port of the device, and may also be referred to as a frame identifier.
  • the Chassis ID subtype which is generally 4, indicates that the identifier of the device is identified by a Medium Access Control (MAC) address. Therefore, the Chassis ID in Table 2 can be a MAC address.
  • MAC Medium Access Control
  • Port ID TLV the value of the TLV type field can be 2, indicating that the TLV carries the port identifier.
  • the format of the TLV can be as shown in Table 3 below:
  • the value of the TLV type field is 2, indicating that the TLV information string field of the LLDP packet carries the identifier of the port in the local system MIB of the port.
  • Port ID subtype typically 5, Indicates that the identity of the port is identified by the name of the port.
  • the port 2' of the B device After receiving the local system MIB of the port 2 of the A device, the port 2' of the B device saves the local system MIB of the port 2 of the A device to the remote system MIB of the port 2'.
  • the TX of port 2 of the A device is connected to the RX of the port 2' of the B device, so the first LLDP packet sent by the A device is received by the port 2' of the B device, and the port 2 of the B device is The local system MIB of port 2 of the received A device is added to the remote system MIB of port 2'.
  • the port 2' of the B device sends the local system MIB of the port 2 to the A device by using the second LLDP packet.
  • the B device After the port 2' of the B device saves the local system MIB of the port 2 received from the A device, the B device acquires the local system MIB of the port 2 of the A device from the remote system MIB of the port 2' of the B device. And sent to the A device.
  • the local system MIB of the port 2 of the A device acquired by the B device may include the identifier of the device of the port 2 of the A device and the identifier of the port.
  • the B device While transmitting the local system MIB of the port 2 of the A device, the B device needs to simultaneously send an identification information in order to identify that it is obtained from the remote system MIB of the port 2' of the B device.
  • the second LLDP packet includes the first TLV and the second TLV, where the first TLV and the second TLV are extended TLVs, the first TLV may be an extended Chassis ID TLV, and the second TLV may be extended Port ID TLV, the identification information may include the value of the type field in the extended Chassis ID TLV and the value of the type field in the extended Port ID TLV, for example, the value of the type field in the extended Chassis ID TLV may be 9, extension The value of the Type field in the Port ID TLV can be 10.
  • the identity of port 2 is the identity of port 2 in the remote system MIB of the port of the B device.
  • an extended LLDP packet includes at least the following four types: an extended Chassis ID TLV, an extended Port ID TLV, a Time to live TLV, and an End of LLDPDU TLV.
  • the Time to live TLV and the End of LLD PDU TLV are the same as those in step 301.
  • the format and content of the extended Chassis ID TLV can be as shown in Table 4 below:
  • the format and content of the extended Port ID TLV can be as shown in Table 5 below:
  • the port 3 of the device A After receiving the second LLDP packet sent by the port 2' of the B device, the port 3 of the device A identifies the remote system MIB that is the port of the B device carried in the second LLDP packet.
  • the B device port 2' is sent to the port 3 of the A device when the second LLDP packet is returned to the A device.
  • Port 3 of the device A finds that the value of one of the TLVs is 9 according to the extended TLV in the second LLDP packet, and learns that the TLV carries the Chassis ID in the remote system MIB of the port of the B device, and passes another A type of the TLV is 10, and it is learned that the TLV carries the port ID in the remote system MIB of the port of the B device. Then, the port 3 of the device A learns the second LLDP received by the device A according to the extended TLV. The message is used to confirm that the port connection is correct, not the local system MIB of the port of the B device, and does not need to store the received MIB information.
  • the port 3 of the device A extracts the Chassis ID and Port ID in the local system MIB of the port 2 of the A device in the remote system MIB carried by the second LLDP packet, and the port 3 The Chassis ID and the Port ID in the local system MIB are compared. If the two are different, the port 3 determines that the physical connection of the port is incorrect, and sends an alarm to the network management device.
  • the second LLDP packet returned by the B device carries the remote system MIB of the port from the B device, and the remote system MIB includes the local system MIB of the port 2 of the A device to the port 2 of the port 2'.
  • Port 3 of the device A identifies the Chassis ID and Port ID of the remote system MIB of the port carried by the second LLDP packet, after the remote system MIB of the port of the B device is carried in the second LLDP packet.
  • the Chassis ID and Port ID in the remote system MIB are the Chassis ID and Port ID in the local system MIB of the port 2 of the A device, and the port 3 of the A device passes the local system MIB of the port 2 of the received A device.
  • the Chassis ID and the Port ID are compared with the Chassis ID and the Port ID in the local system MIB of the port 3, and the two are different.
  • the port 3 of the A device confirms that the physical connection of the port is incorrect, and sends the error to the network management device. Alarm.
  • the error alarm may carry the identifier of the port 2 or the identifier of the port 3, and the identifier of the port 2 in the error alarm is used to identify that the physical connection between the port 2 and the B device is incorrect, and the identifier of the port 3 in the error alarm is used to identify The physical connection between port 3 and device B has an error.
  • each port of each device receives and sends information independently, each port with a wrong physical connection can independently report an alarm.
  • the four ports involved in the connection error can be independently used. Report the police.
  • the local end After receiving the local system MIB information of the peer end, the local end adds the local system MIB information of the peer end to the remote system MIB of the local port, and then sends the remote system MIB to the peer end through the extended TLV.
  • the process of confirming whether the port connection is wrong by the peer end can accurately and accurately determine the location of the physical connection error of the port.
  • the embodiment of the present invention provides a method for locating a port connection error.
  • Port 2 of the A device sends the local system MIB of the port 2 of the A device to the port 2 of the B device through the first LLDP message, and the port 2 of the B device.
  • the device After receiving the second LLDP packet sent by the port 2' of the B device, the device identifies the remote system MIB that is the port of the B device carried by the second LLDP packet according to the identifier information, and the device port 3 of the device A
  • the Chassis ID and Port ID in the local system MIB of the port 2 of the A device in the remote system MIB carried in the second LLDP packet are compared with the Chassis ID and the Port ID in the local system MIB of the port 3, if If the two are different, port 3 determines that the physical connection of the port is incorrect, and sends an alarm to the network management device, which helps to locate the physical connection of the port efficiently.
  • An embodiment of the present invention provides a first device 04.
  • the first device 04 can be used to perform the method provided in Embodiment 1. As shown in Figure 5, it includes:
  • the sending unit 041 is configured to send, by using the first port, the local system management information base MIB of the first port to the second port of the second device;
  • the receiving unit 042 is configured to receive, by using the third port, a local system MIB of the first port that is sent by the second port of the second device;
  • a determining unit 043 configured to determine that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device received by the receiving unit 042;
  • the determining unit 043 is further configured to determine that the physical connection between the first port and the second device is incorrect or the physical connection between the third port and the second device is incorrect, based on the local system MIB of the third port being different from the local MIB system of the first port. .
  • the receiving unit 042 is further configured to receive the identifier information sent by the second port of the second device by using the third port, where the identifier information is used to identify that the local system MIB of the first port sent by the second device is the second device.
  • Remote system MIB of the port
  • the determining unit 043 is specifically configured to:
  • the port of the second device may specifically be the second port.
  • the receiving unit 042 is configured to: receive, by using the third port, a link layer discovery protocol LLDP packet sent by the second port of the second device, where the LLDP packet carries the local system MIB of the first port and the identifier information.
  • the LLDP packet includes a first TLV and a second TLV, where the identifier information includes a value of a type field in the first TLV and a value of a type field in the second TLV, where the value of the type field in the first TLV indicates
  • the information string field in a TLV carries the identifier of the device.
  • the value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the remote system MIB of the port of the second device includes The identifier of the first device and the identifier of the first port, the value of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first device in the remote system MIB of the port of the second device.
  • the identifier of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the identifier of the first port in the remote system MIB of the port of the second device.
  • the identifier of the device carried in the information string field in the first TLV may specifically be the identifier of the first device.
  • the identifier of the port carried in the information string field in the second TLV may specifically be the identifier of the first port.
  • the sending unit 041 is further configured to:
  • the error alarm carries the identifier of the first port or the identifier of the third port.
  • the identifier of the first port in the error alarm is used to identify that the physical connection between the first port and the second device is incorrect.
  • the identifier of the third port is used to identify that the physical connection of the third port to the second device is incorrect.
  • An embodiment of the present invention provides a first device, including: a sending unit, a receiving unit, and a determining unit.
  • the sending unit is configured to send, by using the first port, the local system management information base MIB of the first port to the second port of the second device, and the receiving unit, configured to receive, by using the third port, the second port sent by the second port of the second device a local system MIB of a port; a determining unit, configured to determine that the local system MIB of the third port is different from the local system MIB of the first port sent by the second device; the determining unit is further configured to use the local system MIB of the third port
  • the local MIB system of the first port differently determines that an error occurs in the physical connection between the first port and the second device or an error occurs in the physical connection between the third port and the second device. In this way, by sending the local system MIB information of the peer end back to the peer end for confirmation, the physical connection of the efficiently located port is mistaken.
  • An embodiment of the present invention provides a second device 05.
  • the second device 05 can be used to perform the method provided in the second embodiment. As shown in Figure 6, it includes:
  • the receiving unit 051 is configured to receive, by using the second port, a local system management information base MIB of the first port sent by the first port of the first device;
  • the sending unit 052 is configured to send, by using the second port, the local system MIB of the first port received by the receiving unit to the third port of the first device.
  • the first device may determine that an error occurs in the physical connection of the first port and the second device or an error occurs in the physical connection between the third port and the second device, based on the local system MIB of the third port being different from the local system MIB of the first port.
  • the second device 05 After receiving the local system management information base MIB of the first port, the second device 05 saves the local system management information base MIB of the first port as the remote system MIB of the second port.
  • the sending unit 052 is further configured to send the identifier information to the third port of the first device by using the second port, where the identifier information is used to identify that the local system MIB of the first port sent by the second device is a port of the second device.
  • Remote system MIB Remote system MIB.
  • the port of the second device may specifically be the second port.
  • the identifier of the device carried in the information string field in the first TLV may specifically be the identifier of the first device.
  • the identifier of the port carried in the information string field in the second TLV may specifically be the identifier of the first port.
  • the sending unit 052 is configured to: send, by using the second port, a link layer discovery protocol LLDP packet to the third port of the first device, where the LLDP packet carries the local system MIB of the first port and the identifier information.
  • the LLDP packet includes a first TLV and a second TLV, where the identifier information includes a value of a type field in the first TLV and a value of a type field in the second TLV, where the value of the type field in the first TLV indicates
  • the information string field in a TLV carries the identifier of the device.
  • the value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the remote system MIB of the port of the second device includes The identifier of the first device and the identifier of the first port, the value of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first device in the remote system MIB of the port of the second device. The identifier of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is in the remote system MIB of the port of the second device. The identity of the first port.
  • the port of the second device may specifically be the second port.
  • An embodiment of the present invention provides a second device, including: a receiving unit and a sending unit.
  • the receiving unit is configured to receive, by using the second port, a local system management information base MIB of the first port sent by the first port of the first device, and a sending unit, configured to send, by using the second port, the third port of the first device
  • the local system MIB of the first port, the first device based on the local system MIB of the third port is different from the local system MIB of the first port, determining that the physical connection between the first port and the second device is incorrect or that the third port and the second device are An error occurs in the physical connection. This helps to efficiently locate the physical connection of the port by sending the MIB information of the peer back to the peer for confirmation.
  • An embodiment of the present invention provides a first device 06.
  • the first device 06 can be used to perform the method provided in the first embodiment.
  • the receiver 064 is further configured to receive the identifier information sent by the second port of the second device by using the third port, where the identifier information is used to identify the first port that is sent by the second device.
  • the local system MIB is a remote system MIB of the port of the second device;
  • the processor 065 can be specifically configured to:
  • the receiver 064 may be configured to: receive, by using the third port, a link layer discovery protocol LLDP packet sent by the second port of the second device, where the LLDP packet carries the first port. Local system MIB and identification information.
  • the LLDP packet includes a first TLV and a second TLV
  • the identifier information includes a value of a type field in the first TLV and a value of a type field in the second TLV, where the first TLV is in the first TLV.
  • the value of the type field indicates that the information string field in the first TLV carries the identifier of the device
  • the value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port
  • the remote system MIB of the port includes the identifier of the first device and the identifier of the first port.
  • the value of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the remote end of the port of the second device.
  • the identifier of the first device in the system MIB, the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the identifier of the first port in the remote system MIB of the port of the second device. .
  • the transmitter 064 is further configured to:
  • the error alarm carries the identifier of the first port or the identifier of the third port.
  • the identifier of the first port in the error alarm is used to identify that the physical connection between the first port and the second device is incorrect.
  • the identifier of the third port is used to identify that the physical connection of the third port to the second device is incorrect.
  • An embodiment of the present invention provides a first device, including: a bus, a memory connected to the bus, a transmitter, a receiver, and a processor, wherein the memory is used to store instructions and data; and the transmitter is configured to pass the first port to the first
  • the second port of the second device sends the local system management information base MIB of the first port;
  • the receiver is configured to receive the local system MIB of the first port sent by the second port of the second device through the third port;
  • the processor is configured to determine the third port The local system MIB is different from the local system MIB of the first port sent by the second device;
  • the processor is further configured to determine the first port and the second device differently according to the third port-based local system MIB and the first port local MIB system Physical connection error or An error occurred in the physical connection between the three ports and the second device.
  • the MIB information of the peer end back to the peer end for confirmation, it is helpful to make an error in the physical connection of the efficiently located port.
  • the embodiment of the invention provides a second device 07.
  • the second device 07 can be used to perform the method provided by the second embodiment.
  • the local port management information base MIB of the first port sent by the first port of the device; the transmitter 074 is configured to send the local system MIB of the first port to the third port of the first device through the second port.
  • the first device may determine that an error occurs in the physical connection of the first port and the second device or an error occurs in the physical connection between the third port and the second device, based on the local system MIB of the third port being different from the local system MIB of the first port.
  • the second device may save the local system management information base MIB of the first port as the remote system MIB of the second port.
  • the transmitter 074 is further configured to: send, by using the second port, the identifier information to the third port of the first device, where the identifier information is used to identify the local system of the first port sent by the second device.
  • the MIB is the remote system MIB of the port of the second device.
  • the transmitter 074 is configured to: send, by using the second port, a link layer discovery protocol (LLDP) packet to the third port of the first device, where the LLDP packet carries the local system of the first port. MIB and identification information.
  • LLDP link layer discovery protocol
  • the LLDP packet includes a first TLV and a second TLV, where the identifier information includes a value of a type field in the first TLV and a value of a type field in the second TLV, in the first TLV.
  • the value of the type field indicates that the information string field in the first TLV carries the identifier of the device
  • the value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port
  • the port of the second device The remote system MIB includes an identifier of the first device and an identifier of the first port, where the value of the type field in the first TLV is used to identify the remote system of the port of the second device that is sent by the second device.
  • the identifier of the first device in the MIB, and the value of the type field in the second TLV is the identifier of the first port in the remote system MIB of the port of the second device.
  • An embodiment of the present invention provides a second device, including: a bus, a memory connected to the bus, a receiver, and a transmitter, wherein the memory is used to store instructions and data; and the receiver is configured to receive the first device through the second port.
  • the local system MIB is different from the local system MIB of the first port to determine that the physical connection between the first port and the second device is incorrect, or the physical connection between the third port and the second device is incorrect, so that the MIB information of the opposite end is sent back to the The method of confirming the peer end helps to make an error in the physical connection of the efficiently located port.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • each functional unit may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above units may be implemented in the form of hardware or in the form of hardware plus software functional units.
  • All or part of the steps of implementing the foregoing method embodiments may be performed by hardware related to the program instructions.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes the steps of the foregoing method embodiments;
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention relates to the field of communications. Provided in an embodiment of the present invention are a method for locating a port connection error and related device, facilitating efficient location of a physical connection error of a port in certain scenarios. The specific solution comprises: the first port of a first device sends a local system management information base (MIB) of the first port to the second port of a second device; the third port of the first device receives the local system MIB of the first port sent by the second port of the second device; when the first device determines that the local system MIB of the third port is different from the local system MIB of the first port sent by the second device, the first device determines that an error occurred in a physical connection between the first port and the second device or between the third port and the second device. The present invention is used to locate a physical connection error of ports.

Description

一种用于定位端口连接错误的方法和相关设备Method and related device for locating port connection error 技术领域Technical field
本发明涉及通信领域,尤其涉及一种用于定位端口连接错误的方法和相关设备。The present invention relates to the field of communications, and in particular, to a method and related device for locating port connection errors.
背景技术Background technique
对于现网的一些网络设备,在进行光纤连接施工时可能会出现端口的物理连接发生错误的情况。端口的物理连接发生错误的情况可以是出现鸳鸯线。如图1所示,A设备包括端口1、端口2和端口3,B设备包括端口1'、端口2'和端口3'。正确的端口连接情况是端口1的TX与端口1'的RX连接。端口1的RX与端口1'的TX连接。但是如果出现端口2的RX与端口3'的TX连接,端口3的RX与端口2'的TX连接的情况,就出现了鸳鸯线。鸳鸯线的存在可能导致通信出现故障。进而导致业务流量无法转发。For some network devices on the live network, there may be an error in the physical connection of the port during the fiber connection construction. A situation in which the physical connection of the port is incorrect may be a broken line. As shown in FIG. 1, the A device includes port 1, port 2, and port 3. The B device includes port 1 ', port 2', and port 3'. The correct port connection is the RX connection of port 1's TX and port 1'. The RX of port 1 is connected to the TX of port 1'. However, if the RX of port 2 is connected to the TX of port 3', and the RX of port 3 is connected to the TX of port 2', a squall line appears. The presence of a squall line may cause communication to fail. As a result, business traffic cannot be forwarded.
链路层发现协议(Link Layer Discovery Protocol,LLDP)提供了一种标准的链路层发现方式。第一设备和第二设备的每个端口独立维护本地系统管理信息库(management information base,MIB)和远端系统MIB。第一设备每个端口可以周期性地将第一设备的主要能力、管理地址、设备标识、端口标识等信息组织成不同的类型/长度/值(Type/Length/Value,TLV),并封装在LLDP报文中。第一设备的端口可以将LLDP报文发送至与第一设备的端口直连的第二设备的端口。第二设备是第一设备的邻居设备。第二设备会对收到的LLDP报文及其携带的TLV进行有效性检查,并将接收到的第一设备的本地系统MIB保存为第二设备的端口的远端系统MIB。一旦邻居第二设备的端口的LLDP本地系统MIB或LLDP远端系统MIB发生变化,该邻居第二设备的端口就会发送LLDP告警,指示该第二设备的端口的物理连接出现问题。The Link Layer Discovery Protocol (LLDP) provides a standard link layer discovery method. Each port of the first device and the second device independently maintains a local system management information base (MIB) and a remote system MIB. Each port of the first device can periodically organize information such as a primary capability, a management address, a device identifier, and a port identifier of the first device into different types/Length/Values (TLVs), and is encapsulated in In an LLDP packet. The port of the first device may send the LLDP packet to the port of the second device directly connected to the port of the first device. The second device is a neighbor device of the first device. The second device performs validity check on the received LLDP packet and the TLV carried by the LLDP packet, and saves the received local system MIB of the first device as the remote system MIB of the port of the second device. If the LLDP local system MIB or the LLDP remote system MIB of the port of the second device changes, the port of the second device of the neighbor sends an LLDP alarm, indicating that there is a problem with the physical connection of the port of the second device.
上述通过LLDP协议确定端口的物理连接是否出现问题的方法,在某些场景中不能够高效地定位端口的物理连接是否发生错误。譬如,进行光纤连接施工时出现了鸳鸯线,网络设备的端口的TX能够发送光 信号,并且端口的RX能够接收光信号,端口物理连接发送错误的问题不能被发现。因此,不能及时定位端口的物理连接是否发生错误。The above method for determining whether a physical connection of a port is problematic through the LLDP protocol cannot efficiently locate whether a physical connection of a port is incorrect in some scenarios. For example, when a fiber connection is made, a twist line appears, and the TX of the port of the network device can transmit light. The signal, and the RX of the port can receive the optical signal, the problem of the port physical connection sending error cannot be found. Therefore, it is not possible to locate the physical connection of the port in time.
发明内容Summary of the invention
本发明的实施例提供一种用于定位端口连接错误的方法和相关设备,在某些场景中有助于高效定位端口的物理连接发生错误。Embodiments of the present invention provide a method and related apparatus for locating port connection errors, which in some scenarios facilitates an error in physically connecting a port.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
第一方面提供了一种用于定位端口连接错误的方法,包括:The first aspect provides a method for locating a port connection error, including:
第一设备的第一端口向第二设备的第二端口发送所述第一端口的本地系统管理信息库MIB;The first port of the first device sends the local system management information base MIB of the first port to the second port of the second device;
所述第一设备的第三端口接收所述第二设备的第二端口发送的所述第一端口的本地系统MIB;The third port of the first device receives the local system MIB of the first port sent by the second port of the second device;
所述第一设备确定所述第三端口的本地系统MIB与所述第二设备发送的所述第一端口的本地系统MIB不同;Determining, by the first device, that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device;
所述第一设备基于所述第三端口的本地系统MIB与所述第一端口的本地MIB系统不同确定所述第一端口与所述第二设备的物理连接发生错误或者所述第三端口与所述第二设备的物理连接发生错误。Determining, by the first device, that the physical connection between the first port and the second device is incorrect or the third port is different, based on the local system MIB of the third port being different from the local MIB system of the first port The physical connection of the second device is incorrect.
结合第一方面,在第一方面的第一种可能的实现方式中,所述第一设备的第三端口接收所述第二设备的第二端口发送的所述第一端口的本地系统MIB还包括:所述第一设备的第三端口接收所述第二设备的第二端口发送的标识信息,所述标识信息用于标识所述第二设备发送的所述第一端口的本地系统MIB是所述第二设备的端口的远端系统MIB;With reference to the first aspect, in a first possible implementation manner of the first aspect, the third port of the first device receives the local system MIB of the first port that is sent by the second port of the second device The third port of the first device receives the identifier information sent by the second port of the second device, where the identifier information is used to identify that the local system MIB of the first port sent by the second device is a remote system MIB of the port of the second device;
所述第一设备确定所述第三端口的本地系统MIB与所述第二设备发送的所述第一端口的本地系统MIB不同具体包括:The determining, by the first device, that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device includes:
所述第一设备基于所述标识信息的指示比较所述第三端口的本地系统MIB与所述第二设备发送的所述第一端口的本地系统MIB;The first device compares the local system MIB of the third port with the local system MIB of the first port sent by the second device, according to the indication of the identifier information;
所述第一设备基于所述比较的结果确定所述第三端口的本地系统MIB与所述第一端口的本地系统MIB不同。The first device determines that the local system MIB of the third port is different from the local system MIB of the first port based on the result of the comparison.
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述第一设备的第三端口接收所述第二设备的第二 端口发送的所述第一端口的本地系统MIB具体包括:In conjunction with the first possible implementation of the first aspect, in a second possible implementation manner of the first aspect, the third port of the first device receives the second The local system MIB of the first port sent by the port specifically includes:
所述第一设备的第三端口接收所述第二设备的第二端口发送的链路层发现协议LLDP报文,所述LLDP报文中携带所述第一端口的本地系统MIB以及所述标识信息。The third port of the first device receives the link layer discovery protocol LLDP packet sent by the second port of the second device, where the LLDP packet carries the local system MIB of the first port and the identifier information.
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述LLDP报文包括第一TLV和第二TLV,所述标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,所述第一TLV中的类型字段的值指示所述第一TLV中的信息串字段携带的是设备的标识,所述第二TLV中的类型字段的值指示所述第二TLV中的信息串字段携带的是端口的标识,所述第二设备的端口的远端系统MIB包括所述第一设备的标识以及所述第一端口的标识,所述第一TLV中的类型字段的值用于标识所述第二设备发送的所述第一设备的标识是所述第二设备的端口的远端系统MIB中的所述第一设备的标识,所述第二TLV中的类型字段的值用于标识所述第二设备发送的所述第一端口的标识是所述第二设备的端口的远端系统MIB中的所述第一端口的标识。With reference to the second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the LLDP packet includes a first TLV and a second TLV, where the identifier information includes the first TLV. The value of the type field and the value of the type field in the second TLV, the value of the type field in the first TLV indicates that the information string field in the first TLV carries the identifier of the device, the second TLV The value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the remote system MIB of the port of the second device includes the identifier of the first device and the first port The identifier of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first one of the remote system MIBs of the port of the second device The identifier of the device, the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the first in the remote system MIB of the port of the second device The identity of a port.
结合第一方面至第一方面的第三种可能的实现方式中的任一种,在第一方面的第四种可能的实现方式中,所述第一设备向管理设备发送错误告警,所述错误告警携带所述第一端口的标识或所述第三端口的标识,所述错误告警中的所述第一端口的标识用于标识所述第一端口与所述第二设备的物理连接发生错误,所述错误告警中的所述第三端口的标识用于标识所述第三端口与所述第二设备的物理连接发生错误。In conjunction with the first aspect to any one of the third possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, the first device sends an error alarm to the management device, The error alarm carries the identifier of the first port or the identifier of the third port, and the identifier of the first port in the error alarm is used to identify that the physical connection between the first port and the second device occurs. The identifier of the third port in the error alarm is used to identify that the physical connection between the third port and the second device is incorrect.
第二方面,提供了一种用于定位端口连接错误的方法,包括:In a second aspect, a method for locating a port connection error is provided, including:
第二设备的第二端口接收第一设备的第一端口发送的所述第一端口的本地系统管理信息库MIB;The second port of the second device receives the local system management information base MIB of the first port sent by the first port of the first device;
所述第二设备的第二端口向所述第一设备的第三端口发送所述第一端口的本地系统MIB。The second port of the second device sends the local system MIB of the first port to the third port of the first device.
结合第二方面,在第二方面的第一种可能的实现方式中,所述第二设备的第二端口向所述第一设备的第三端口发送所述第一端口的本地系统MIB还包括: With reference to the second aspect, in a first possible implementation manner of the second aspect, the sending, by the second port of the second device, the local system MIB of the first port to the third port of the first device further includes :
所述第二设备的第二端口向所述第一设备的第三端口发送标识信息,所述标识信息用于标识所述第二设备发送的所述第一端口的本地系统MIB是所述第二设备的端口的远端系统MIB。The second port of the second device sends the identifier information to the third port of the first device, where the identifier information is used to identify that the local system MIB of the first port sent by the second device is the first The remote system MIB of the port of the second device.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述第二设备的第二端口向所述第一设备的第三端口发送所述第一端口的本地系统MIB包括:In conjunction with the first possible implementation of the second aspect, in a second possible implementation manner of the second aspect, the second port of the second device sends the first port to the third port of the first device A port's local system MIB includes:
所述第二设备的第二端口向所述第一设备的第三端口发送链路层发现协议LLDP报文,所述LLDP报文中携带所述第一端口的本地系统MIB以及所述标识信息。The second port of the second device sends a link layer discovery protocol LLDP packet to the third port of the first device, where the LLDP packet carries the local system MIB of the first port and the identifier information. .
结合第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,所述LLDP报文包括第一TLV和第二TLV,所述标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,所述第一TLV中的类型字段的值指示所述第一TLV中的信息串字段携带的是设备的标识,所述第二TLV中的类型字段的值指示所述第二TLV中的信息串字段携带的是端口的标识,所述第二设备的端口的远端系统MIB包括所述第一设备的标识以及所述第一端口的标识,所述第一TLV中的类型字段的值用于标识所述第二设备发送的所述第一设备的标识是所述第二设备的端口的远端系统MIB中的所述第一设备的标识,所述第二TLV中的类型字段的值用于标识所述第二设备发送的所述第一端口的标识是所述第二设备的端口的远端系统MIB中的所述第一端口的标识。With reference to the second possible implementation of the second aspect, in a third possible implementation manner of the second aspect, the LLDP packet includes a first TLV and a second TLV, where the identifier information includes the first TLV. The value of the type field and the value of the type field in the second TLV, the value of the type field in the first TLV indicates that the information string field in the first TLV carries the identifier of the device, the second TLV The value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the remote system MIB of the port of the second device includes the identifier of the first device and the first port The identifier of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first one of the remote system MIBs of the port of the second device The identifier of the device, the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the first in the remote system MIB of the port of the second device The identity of a port.
第三方面,提供了一种第一设备,所述第一设备包括第一端口和第三端口,包括:In a third aspect, a first device is provided, where the first device includes a first port and a third port, including:
发送单元,用于通过所述第一端口向第二设备的第二端口发送所述第一端口的本地系统管理信息库MIB;a sending unit, configured to send, by using the first port, a local system management information base MIB of the first port to a second port of the second device;
接收单元,用于通过所述第三端口接收所述第二设备的第二端口发送的所述第一端口的本地系统MIB;a receiving unit, configured to receive, by using the third port, a local system MIB of the first port that is sent by the second port of the second device;
确定单元,用于确定所述第三端口的本地系统MIB与所述接收单元接收的所述第二设备发送的所述第一端口的本地系统MIB不同;a determining unit, configured to determine that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device by the receiving unit;
所述确定单元,还用于基于所述第三端口的本地系统MIB与所述第一端口的本地MIB系统不同确定所述第一端口与所述第二设备的 物理连接发生错误或者所述第三端口与所述第二设备的物理连接发生错误。The determining unit is further configured to determine, according to the local system MIB of the third port, different from the local MIB system of the first port, that the first port and the second device are An error occurs in the physical connection or an error occurs in the physical connection of the third port to the second device.
结合第三方面,在第三方面的第一种可能的实现方式中,所述接收单元,还用于通过所述第三端口接收所述第二设备的第二端口发送的标识信息,所述标识信息用于标识所述第二设备发送的所述第一端口的本地系统MIB是所述第二设备的端口的远端系统MIB;With reference to the third aspect, in a first possible implementation manner of the third aspect, the receiving unit is further configured to receive, by using the third port, identifier information that is sent by a second port of the second device, where The identifier information is used to identify that the local system MIB of the first port sent by the second device is a remote system MIB of the port of the second device;
所述确定单元具体用于:The determining unit is specifically configured to:
基于所述标识信息的指示比较所述第三端口的本地系统MIB与所述第二设备发送的所述第一端口的本地系统MIB;Comparing the local system MIB of the third port with the local system MIB of the first port sent by the second device according to the indication of the identifier information;
基于所述比较的结果确定所述第三端口的本地系统MIB与所述第一端口的本地系统MIB不同。Based on the result of the comparison, it is determined that the local system MIB of the third port is different from the local system MIB of the first port.
结合第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述接收单元用于:通过所述第三端口接收所述第二设备的第二端口发送的链路层发现协议LLDP报文,所述LLDP报文中携带所述第一端口的本地系统MIB以及所述标识信息。With the first possible implementation of the third aspect, in a second possible implementation manner of the third aspect, the receiving unit is configured to: receive, by using the third port, a second port of the second device The transmitted link layer discovery protocol LLDP packet carries the local system MIB of the first port and the identifier information.
结合第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,所述LLDP报文包括第一TLV和第二TLV,所述标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,所述第一TLV中的类型字段的值指示所述第一TLV中的信息串字段携带的是设备的标识,所述第二TLV中的类型字段的值指示所述第二TLV中的信息串字段携带的是端口的标识,所述第二设备的端口的远端系统MIB包括所述第一设备的标识以及所述第一端口的标识,所述第一TLV中的类型字段的值用于标识所述第二设备发送的所述第一设备的标识是所述第二设备的端口的远端系统MIB中的所述第一设备的标识,所述第二TLV中的类型字段的值用于标识所述第二设备发送的所述第一端口的标识是所述第二设备的端口的远端系统MIB中的所述第一端口的标识。With reference to the second possible implementation of the third aspect, in a third possible implementation manner of the third aspect, the LLDP packet includes a first TLV and a second TLV, and the identifier information includes the first TLV. The value of the type field and the value of the type field in the second TLV, the value of the type field in the first TLV indicates that the information string field in the first TLV carries the identifier of the device, the second TLV The value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the remote system MIB of the port of the second device includes the identifier of the first device and the first port The identifier of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first one of the remote system MIBs of the port of the second device The identifier of the device, the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the first in the remote system MIB of the port of the second device The identity of a port.
结合第三方面至第三方面的第三种可能的实现方式中的任一种,在第三方面的第四种可能的实现方式中,所述发送单元还用于:With reference to any one of the third aspect to the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the sending unit is further configured to:
向管理设备发送错误告警,所述错误告警携带所述第一端口的标识或所述第三端口的标识,所述错误告警中的所述第一端口的标识用 于标识所述第一端口与所述第二设备的物理连接发生错误,所述错误告警中的所述第三端口的标识用于标识所述第三端口与所述第二设备的物理连接发生错误。Sending an error alarm to the management device, where the error alarm carries the identifier of the first port or the identifier of the third port, and the identifier of the first port in the error alarm is used An error is generated in the physical connection between the first port and the second device, and the identifier of the third port in the error alarm is used to identify that the physical connection between the third port and the second device occurs. error.
第四方面,提供了一种第二设备,所述第二设备包括第二端口,包括:In a fourth aspect, a second device is provided, where the second device includes a second port, including:
接收单元,用于通过所述第二端口接收第一设备的第一端口发送的所述第一端口的本地系统管理信息库MIB;a receiving unit, configured to receive, by using the second port, a local system management information base MIB of the first port that is sent by the first port of the first device;
发送单元,用于通过所述第二端口向所述第一设备的第三端口发送所述接收单元接收的所述第一端口的本地系统MIB。And a sending unit, configured to send, by using the second port, a local system MIB of the first port that is received by the receiving unit to a third port of the first device.
结合第四方面,在第四方面的第一种可能的实现方式中,所述发送单元还用于:通过所述第二端口向所述第一设备的第三端口发送标识信息,所述标识信息用于标识所述第二设备发送的所述第一端口的本地系统MIB是所述第二设备的端口的远端系统MIB。With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the sending unit is further configured to: send, by using the second port, identifier information to a third port of the first device, where the identifier is The information is used to identify that the local system MIB of the first port sent by the second device is a remote system MIB of a port of the second device.
结合第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述发送单元用于:通过所述第二端口向所述第一设备的第三端口发送链路层发现协议LLDP报文,所述LLDP报文中携带所述第一端口的本地系统MIB以及所述标识信息。In conjunction with the first possible implementation of the fourth aspect, in a second possible implementation manner of the fourth aspect, the sending unit is configured to: use the second port to the third port of the first device The link layer discovery protocol LLDP packet is sent, where the LLDP packet carries the local system MIB of the first port and the identifier information.
结合第四方面的第二种可能的实现方式,在第四方面的第三种可能的实现方式中,所述LLDP报文包括第一TLV和第二TLV,所述标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,所述第一TLV中的类型字段的值指示所述第一TLV中的信息串字段携带的是设备的标识,所述第二TLV中的类型字段的值指示所述第二TLV中的信息串字段携带的是端口的标识,所述第二设备的端口的远端系统MIB包括所述第一设备的标识以及所述第一端口的标识,所述第一TLV中的类型字段的值用于标识所述第二设备发送的所述第一设备的标识是所述第二设备的端口的远端系统MIB中的所述第一设备的标识,所述第二TLV中的类型字段的值用于标识所述第二设备发送的所述第一端口的标识是所述第二设备的端口的远端系统MIB中的所述第一端口的标识。With the second possible implementation of the fourth aspect, in a third possible implementation manner of the fourth aspect, the LLDP packet includes a first TLV and a second TLV, where the identifier information is included in the first TLV. The value of the type field and the value of the type field in the second TLV, the value of the type field in the first TLV indicates that the information string field in the first TLV carries the identifier of the device, the second TLV The value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the remote system MIB of the port of the second device includes the identifier of the first device and the first port The identifier of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first one of the remote system MIBs of the port of the second device The identifier of the device, the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the first in the remote system MIB of the port of the second device The identity of a port.
本发明实施例提供一种用于定位端口连接错误的方法和相关设备,第一设备的第一端口向第二设备的第二端口发送第一端口的本地 系统管理信息库MIB,而后第一设备的第三端口接收第二设备的第二端口发送的第一端口的本地系统MIB,第一设备在确定第三端口的本地系统MIB与第二设备发送的第一端口的本地系统MIB不同时,第一设备确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误。上述技术方案有助于高效定位端口的物理连接发生错误。The embodiment of the invention provides a method for locating a port connection error and a related device, where the first port of the first device sends the local port of the first port to the second port of the second device The system management information base MIB, and the third port of the first device receives the local system MIB of the first port sent by the second port of the second device, where the first device determines the local system MIB of the third port and the second device sends When the local system MIB of the first port is different, the first device determines that the physical connection between the first port and the second device is incorrect or the physical connection between the third port and the second device is incorrect. The above technical solution helps to make an error in the physical connection of the efficiently located port.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为一种网络设备的端口的物理连接发生错误示意图;1 is a schematic diagram of a physical connection error of a port of a network device;
图2为本发明实施例提供的一种用于定位端口连接错误的方法流程示意图;2 is a schematic flowchart of a method for locating a port connection error according to an embodiment of the present invention;
图3为本发明实施例提供的另一种用于定位端口连接错误的方法流程示意图;3 is a schematic flowchart of another method for locating a port connection error according to an embodiment of the present invention;
图4为本发明实施例提供的又一种用于定位端口连接错误的方法流程示意图;4 is a schematic flowchart of another method for locating a port connection error according to an embodiment of the present invention;
图5为本发明实施例提供的一种第一设备框架图;FIG. 5 is a schematic diagram of a first device frame according to an embodiment of the present disclosure;
图6为本发明实施例提供的一种第二设备框架图;FIG. 6 is a schematic diagram of a second device according to an embodiment of the present disclosure;
图7为本发明实施例提供的一种第一设备框架图;FIG. 7 is a schematic diagram of a first device according to an embodiment of the present disclosure;
图8为本发明实施例提供的一种第二设备框架图。FIG. 8 is a schematic diagram of a second device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不 是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly described below with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and It is the entire embodiment. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
如果没有相反的说明,本申请涉及的设备可以是路由器。本申请中提及的端口是指物理端口。所述端口可以是光口。所述光口可以是以太网接口。所述光口可以包括光调制解调器。所述光口可以包括发送端(TX)和接收端(RX)。所述发送端可以对应一个光纤,所述接收端可以对应另一个光纤。If not stated to the contrary, the device referred to in this application may be a router. The port mentioned in this application refers to a physical port. The port can be an optical port. The optical port can be an Ethernet interface. The optical port can include an optical modem. The optical port may include a transmitting end (TX) and a receiving end (RX). The transmitting end may correspond to one optical fiber, and the receiving end may correspond to another optical fiber.
本申请涉及的MIB可以是LLDP MIB。本申请涉及的本地系统MIB(英文:local system MIB)具体可以是LLDP local system MIB。本申请涉及的远端系统MIB(英文:remote system MIB)具体可以是LLDP remote system MIB。关于上述技术术语,可以参考IEEE P802.1AB-REV/D6.0。例如,可以参考IEEE P802.1AB-REV/D6.0中的11.LLDP MIB definitions。The MIB involved in this application may be an LLDP MIB. The local system MIB (English: local system MIB) may be specifically an LLDP local system MIB. The remote system MIB (English: remote system MIB) may be specifically an LLDP remote system MIB. For the above technical terms, reference can be made to IEEE P802.1AB-REV/D6.0. For example, reference can be made to 11. LLDP MIB definitions in IEEE P802.1AB-REV/D6.0.
本申请涉及的端口的本地系统MIB是端口所属的设备生成的,并且能够通过该端口发送至邻居设备的MIB。邻居设备的端口接收到所述端口的本地系统MIB,可以将所述端口的本地系统MIB保存为所述邻居设备的端口的远端MIB。所述邻居设备可以是LLDP邻居。The local system MIB of the port involved in the present application is generated by the device to which the port belongs, and can be sent to the MIB of the neighbor device through the port. The port of the neighboring device receives the local system MIB of the port, and the local system MIB of the port can be saved as the remote MIB of the port of the neighboring device. The neighbor device may be an LLDP neighbor.
本申请涉及的端口的远端系统MIB是端口接收邻居设备发送的所述邻居设备的本地系统MIB后,所述端口所属的设备将所述邻居设备的本地系统MIB保存为所述端口的远端系统MIB。所述邻居设备可以是LLDP邻居。The remote system MIB of the port involved in the present application is that after the port receives the local system MIB of the neighbor device sent by the neighboring device, the device to which the port belongs saves the local system MIB of the neighbor device as the remote end of the port. System MIB. The neighbor device may be an LLDP neighbor.
本发明实施例提供的技术方案可以应用在通过光纤连接的网络设备中,例如该网络设备可以为路由器等转发设备。例如,A设备与B设备之间通过光纤连接。A设备包括端口1、端口2和端口3,B设备包括端口1'、端口2'和端口3'。端口1与端口1'一一对应,端口2与端口2'一一对应,端口3和端口3'一一对应。每个端口的发纤与对端端口的收纤连接,也就是,端口连接无误的情况应该是端口1的TX与端口1'的RX连接,端口1的RX与端口1'的TX连接。以此类推。图1出现了鸳鸯线的情况。端口2的RX与端口3'的TX连接,端口3的RX与端口2'的TX连接。也就是说,图1中没有实现端口2与端口2'一一对应。图1中也没有实现端口3与端口3'一一对应。上述情况可能导致业务无法 正常转发。The technical solution provided by the embodiment of the present invention can be applied to a network device connected through an optical fiber. For example, the network device can be a forwarding device such as a router. For example, the A device and the B device are connected by an optical fiber. The A device includes port 1, port 2, and port 3. The B device includes port 1 ', port 2', and port 3'. Port 1 corresponds to port 1 'one-to-one, port 2 corresponds to port 2', and port 3 and port 3' correspond one-to-one. The fiber-receiving connection between the fiber of each port and the peer port, that is, the port connection is correct, the TX of port 1 and the RX of port 1' should be connected, and the RX of port 1 and the TX of port 1'. And so on. Figure 1 shows the situation of the squall line. The RX of port 2 is connected to the TX of port 3', and the RX of port 3 is connected to the TX of port 2'. That is to say, in FIG. 1, port 1 is not implemented in one-to-one correspondence with port 2'. Port 1 does not have a one-to-one correspondence with port 3' in FIG. The above situation may lead to business failure Normal forwarding.
实施例一Embodiment 1
本发明实施例提供一种用于定位端口连接错误的方法,参见图2,其步骤包括:An embodiment of the present invention provides a method for locating a port connection error. Referring to FIG. 2, the steps include:
101、第一设备的第一端口向第二设备的第二端口发送第一端口的本地系统管理信息库MIB。101. The first port of the first device sends the local system management information base MIB of the first port to the second port of the second device.
举例来说,在链路层发现协议LLDP中,每个设备的每个端口均有一个本地系统MIB和远端系统MIB,并且每个端口独立维护自己的本地系统MIB和远端系统MIB。其中,“管理信息”就是指在因特网的网管框架中被管对象的集合。被管对象必须维持可供管理程序读写的若干控制和状态信息。这些被管对象构成了一个虚拟的信息存储器,所以才称为管理信息库MIB。MIB是一个数据库,它代表了某个设备或服务的一套可管理对象。For example, in the link layer discovery protocol LLDP, each port of each device has a local system MIB and a remote system MIB, and each port independently maintains its own local system MIB and remote system MIB. Among them, "management information" refers to a collection of managed objects in the network management framework of the Internet. Managed objects must maintain several control and status information that can be read and written by the hypervisor. These managed objects constitute a virtual information store, so it is called the management information base MIB. A MIB is a database that represents a set of manageable objects for a device or service.
举例来说,对于一个端口来说,其本地系统MIB存储的是端口的本地MIB,为待发送给对端设备的端口的信息,远端MIB存储的是与该端口连接的对端设备的端口的MIB,也即远端MIB存储的是从对端设备的端口接收到的信息。MIB可以包括设备ID,端口ID、系统名称、系统描述、端口描述、设备能力和网络管理地址等。For example, for a port, the local system MIB stores the local MIB of the port, which is the information of the port to be sent to the peer device, and the remote MIB stores the port of the peer device connected to the port. The MIB, that is, the remote MIB stores information received from the port of the peer device. The MIB may include a device ID, a port ID, a system name, a system description, a port description, a device capability, and a network management address.
具体的,应用LLDP,第一设备的第一端口向第二设备的第二端口发送第一端口的本地系统MIB的实现方式可以为:第一设备的第一端口向第二设备的第二端口发送第一LLDP报文,该第一LLDP报文携带第一端口的本地系统MIB。Specifically, the LLDP is applied, and the first port of the first device sends the local system MIB of the first port to the second port of the second device, where the first port of the first device is connected to the second port of the second device. The first LLDP packet is sent, and the first LLDP packet carries the local system MIB of the first port.
102、第一设备的第三端口接收第二设备的第二端口发送的第一端口的本地系统MIB。102. The third port of the first device receives the local system MIB of the first port sent by the second port of the second device.
当第二设备的第二端口接收到第一设备的第一端口发送的第一LLDP报文以后,第二设备建立远端MIB,即第二设备将第一LLDP报文携带的第一端口的本地系统MIB保存为第二端口的远端系统MIB,以存储第一设备的第一端口发送过来的第一端口的本地系统MIB。After the second port of the second device receives the first LLDP packet sent by the first port of the first device, the second device establishes the remote MIB, that is, the second device carries the first port of the first LLDP packet. The local system MIB is saved as the remote system MIB of the second port to store the local system MIB of the first port sent by the first port of the first device.
而后,第二设备的第二端口通过第二LLDP报文向第一设备返回第一端口的本地系统MIB,同时,第二LLDP报文携带标识信息,该标识信息用于标识第二设备发送的第一端口的本地系统MIB是第二设备的端口的 远端系统MIB。Then, the second port of the second device returns the local system MIB of the first port to the first device by using the second LLDP packet, and the second LLDP packet carries the identifier information, where the identifier information is used to identify the second device. The local system MIB of the first port is the port of the second device Remote system MIB.
具体来说,所述第二设备的端口可以是所述第二端口。Specifically, the port of the second device may be the second port.
举例来说,该第二LLDP报文可以包括第一TLV和第二TLV,标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,第一TLV中的类型字段的值指示第一TLV中的信息串字段携带的是设备的标识,第二TLV中的类型字段的值指示第二TLV中的信息串字段携带的是端口的标识,第二设备的端口的远端系统MIB包括第一设备的标识以及第一端口的标识,第一TLV中的类型字段的值用于标识第二设备发送的第一设备的标识是第二设备的端口的远端系统MIB中的第一设备的标识(Chassis ID),第二TLV中的类型字段的值用于标识第二设备发送的第一端口的标识是第二设备的端口的远端系统MIB中的第一端口的标识(Port ID)。For example, the second LLDP packet may include a first TLV and a second TLV, where the identifier information includes a value of a type field in the first TLV and a value of a type field in the second TLV, and a type field in the first TLV. The value indicates that the information string field in the first TLV carries the identifier of the device, and the value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the port of the second device is far. The end system MIB includes an identifier of the first device and an identifier of the first port, where the value of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the remote system MIB of the port of the second device. The first device identifier (Chassis ID), the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the first port in the remote system MIB of the port of the second device Identification (Port ID).
具体来说,所述第一TLV中的信息串字段携带的设备的标识可以是所述第一设备的标识。所述第二TLV中的信息串字段携带的端口的标识可以是所述第一端口的标识。Specifically, the identifier of the device carried in the information string field in the first TLV may be an identifier of the first device. The identifier of the port carried in the information string field in the second TLV may be an identifier of the first port.
这是由于,在现有的LLDP报文中,定义了9种TLV,TLV类型字段的值使用了0-8,用以表示发送端发送的本地系统MIB,这样,可以通过扩展两种TLV,其TLV类型字段的值可以为9和10,TLV类型字段的值为9表示发送端发送的是端口的远端系统MIB中的设备标识,TLV类型字段的值为10表示发送端发送的是端口的远端系统MIB中的端口标识。这样,第一设备的第三端口就可以根据该标识信息识别出接收到的MIB来自于对端设备也即第二设备的端口的远端系统MIB。这里的TLV类型字段的值为9的TLV可以携带的是第一设备的标识,TLV类型字段的值为10的TLV可以携带的是第一端口的标识。This is because, in the existing LLDP packet, nine types of TLVs are defined. The value of the TLV type field uses 0-8 to indicate the local system MIB sent by the sender, so that two types of TLVs can be extended. The value of the TLV type field may be 9 and 10. The value of the TLV type field is 9 indicates that the device sends the device identifier in the remote system MIB of the port, and the value of the TLV type field is 10 indicates that the port sent by the sender is the port. Port ID in the remote system MIB. In this way, the third port of the first device can identify the remote system MIB of the received MIB from the peer device, that is, the port of the second device, according to the identification information. The TLV with a value of 9 in the TLV type field may carry the identifier of the first device, and the TLV with the value of 10 in the TLV type field may carry the identifier of the first port.
103、第一设备确定第三端口的本地系统MIB与第二设备发送的第一端口的本地系统MIB不同。103. The first device determines that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device.
如果第一设备的第三端口接收到第二设备发送的第一端口的本地系统MIB以及标识信息,根据该标识信息获知该第一端口的本地系统MIB来自于第二设备的端口的远端系统MIB,于是,第一设备就基于该标识信息的指示比较第三端口的本地系统MIB与第二设备发送的第一端口的本地系统MIB,根据比较结果确定第三端口的本地系统MIB与第一端口的 本地系统MIB是否相同。If the third port of the first device receives the local system MIB of the first port and the identifier information sent by the second device, according to the identifier information, the local system MIB of the first port is obtained from the remote system of the port of the second device. The MIB, the first device compares the local system MIB of the third port with the local system MIB of the first port sent by the second device based on the indication of the identification information, and determines the local system MIB of the third port and the first according to the comparison result. Port Whether the local system MIB is the same.
举例来说,这里的第一端口的本地系统MIB可以包括第一设备的标识和第一端口的标识,第三端口的本地系统MIB可以包括第一设备的标识和第三端口的标识。也就是说,在比较时可以将设备的标识和端口的标识进行比对,以确认是否相同。For example, the local system MIB of the first port herein may include the identifier of the first device and the identifier of the first port, and the local system MIB of the third port may include the identifier of the first device and the identifier of the third port. That is to say, in the comparison, the identification of the device and the identification of the port can be compared to confirm whether they are the same.
104、第一设备基于第三端口的本地系统MIB与第一端口的本地MIB系统不同确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误。104. The first device determines that the physical connection between the first port and the second device is incorrect or the physical connection between the third port and the second device is incorrect according to the local system MIB of the third port is different from the local MIB system of the first port.
当第一设备的第一端口向第二设备的第二端口发送了第一端口的本地系统MIB时,说明第一设备的第一端口的TX与第二设备的第二端口的RX连接,按照设备的物理连接无误的情况,第一设备的第一端口的RX需要连接第二设备的第二端口的TX,也就是说,应该是第二设备的第二端口将从第一设备接收到的第一端口的本地系统MIB回传至第一设备的第一端口,而如果第二设备的第二端口的TX物理连接错误至了第一设备的第三端口的RX,当第三端口接收到第二设备回传的第一端口的本地系统MIB时,第三端口将第三端口的本地系统与接收到的第一端口的本地系统MIB进行比较发现不同,第三端口就确认第一端口与第二设备的物理连接发生错误,或者是第三端口与第二设备的物理连接发生错误。When the first port of the first device sends the local system MIB of the first port to the second port of the second device, the RX connection of the TX of the first port of the first device and the second port of the second device is described, according to If the physical connection of the device is correct, the RX of the first port of the first device needs to connect to the TX of the second port of the second device, that is, the second port of the second device should be received from the first device. The local system MIB of the first port is transmitted back to the first port of the first device, and if the TX physical connection of the second port of the second device is incorrect to the RX of the third port of the first device, when the third port receives When the second device returns the local system MIB of the first port, the third port compares the local system of the third port with the local system MIB of the received first port, and the third port confirms the first port and The physical connection of the second device is incorrect, or the physical connection of the third port to the second device is incorrect.
其中,物理连接发生错误是指设备的某一端口与对端设备的某一端口的TX或RX连接错误。The physical connection error refers to a TX or RX connection error between a port of the device and a port of the peer device.
在第一设备确认第一端口或第三端口的物理连接发生错误的情况下,第一设备可以向管理设备发送错误告警,该错误告警携带第一端口的标识或第三端口的标识,错误告警中的第一端口的标识用于标识第一端口与第二设备的物理连接发生错误,错误告警中的第三端口的标识用于标识第三端口与第二设备的物理连接发生错误。When the first device confirms that the physical connection of the first port or the third port is incorrect, the first device may send an error alarm to the management device, where the error alarm carries the identifier of the first port or the identifier of the third port, and the error alarm is generated. The identifier of the first port is used to identify that the physical connection between the first port and the second device is incorrect. The identifier of the third port in the error alarm is used to identify that the physical connection between the third port and the second device is incorrect.
由于每个设备的每个端口都是独立的接收、发送信息的,所以每个发生物理连接错误的端口可以独立地发送一个错误告警,这样,出现鸳鸯线这种物理连接错误所涉及到的四个端口,均可以独立发送一个错误告警。Since each port of each device receives and sends information independently, each port that has a physical connection error can independently send an error alarm, so that the four connections involved in the physical connection error occur. Each port can send an error alarm independently.
本发明实施例提供一种用于定位端口连接错误的方法,第一设备的第一端口向第二设备的第二端口发送第一端口的本地系统MIB,第一设备的第三端口接收第二设备的第二端口发送的第一端口的本地系统MIB,而后 当第一设备确定第三端口的本地系统MIB与第二设备发送的第一端口的本地系统MIB不同时,第一设备确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误,这样通过将第一端口的本地系统MIB回传至第一设备的方式,有助于高效定位端口的物理连接发生错误。The embodiment of the present invention provides a method for locating a port connection error. The first port of the first device sends the local system MIB of the first port to the second port of the second device, and the third port of the first device receives the second port. The second port of the device sends the local system MIB of the first port, and then When the first device determines that the local system MIB of the third port is different from the local system MIB of the first port sent by the second device, the first device determines that the physical connection between the first port and the second device is incorrect or the third port and the third port The physical connection of the second device is incorrect. In this way, the physical connection of the port to the first port is transmitted back to the first device, which helps to locate the physical connection of the port efficiently.
实施例二Embodiment 2
以实施例一中第一设备的对端设备第二设备为执行主体,本发明实施例提供另一种用于定位端口连接错误的方法。参见图3,其步骤包括:The second device of the peer device of the first device in the first embodiment is the main body. The embodiment of the present invention provides another method for locating the port connection error. Referring to Figure 3, the steps include:
201、第二设备的第二端口接收第一设备的第一端口发送的第一端口的本地系统MIB。201. The second port of the second device receives the local system MIB of the first port sent by the first port of the first device.
第二设备的第二端口在接收到第一端口的本地系统MIB后,可以将第一端口的本地系统MIB保存为第二端口的远端系统MIB。After receiving the local system MIB of the first port, the second port of the second device may save the local system MIB of the first port as the remote system MIB of the second port.
202、第二设备的第二端口向第一设备的第三端口发送第一端口的本地系统MIB。202. The second port of the second device sends the local system MIB of the first port to the third port of the first device.
第二设备在将接收到的第一端口的本地系统MIB保存为第二端口的远端系统MIB后,可以依据远端系统MIB中保存的第一端口的本地系统MIB向第一设备的第三端口发送第一端口的本地系统MIB,使得第一设备的第三端口在接收到第一端口的本地系统MIB后,可以基于第三端口的本地系统MIB与第一端口的本地系统MIB不同确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误。After the second device saves the received local system MIB of the first port as the remote system MIB of the second port, the second device may be the third device to the first device according to the local system MIB of the first port saved in the remote system MIB. The port sends the local system MIB of the first port, so that after receiving the local system MIB of the first port, the third port of the first device may determine that the local system MIB of the third port is different from the local system MIB of the first port. An error occurs in the physical connection of one port to the second device or the physical connection of the third port to the second device.
其中,在第二设备的第二端口向第一设备的第三端口发送第一端口的本地系统MIB的同时,第二设备的第二端口向第一设备的第三端口发送标识信息,标识信息用于标识第二设备发送的第一端口的本地系统MIB是第二设备的端口的远端系统MIB。所述第二设备的端口具体可以是所述第二端口。这样可以指示第三端口根据接收到第一端口的本地系统MIB与第三端口的本地系统MIB进行比较,以确认是否相同来确认第三端口或第一端口是否发生物理连接错误。The second port of the second device sends the identifier information to the third port of the first device, where the second port of the second device sends the local system MIB of the first port to the third port of the first device. The local system MIB for identifying the first port sent by the second device is the remote system MIB of the port of the second device. The port of the second device may specifically be the second port. This may instruct the third port to compare the local system MIB that received the first port with the local system MIB of the third port to confirm whether it is the same to confirm whether the third port or the first port has a physical connection error.
本实施例中第一设备和第二设备的具体实现方式可以参见实施例一中的说明过程,这里不再赘述。For the specific implementation of the first device and the second device in this embodiment, refer to the description process in the first embodiment, and details are not described herein again.
本发明实施例提供一种用于定位端口连接错误的方法,第二设备的第二端口接收第一设备的第一端口发送的第一端口的本地系统MIB,然后第 二设备的第二端口向第一设备的第三端口发送第一端口的本地系统MIB,使得第一设备基于第三端口的本地系统MIB与第一端口的本地系统MIB不同确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误,这样通过将第一端口的本地系统MIB回传至第一设备的方式,有助于高效定位端口的物理连接发生错误。An embodiment of the present invention provides a method for locating a port connection error, where a second port of the second device receives a local system MIB of the first port sent by the first port of the first device, and then The second port of the second device sends the local system MIB of the first port to the third port of the first device, so that the first device determines the first port and the first node based on the local system MIB of the third port different from the local system MIB of the first port. The physical connection of the second device is incorrect or the physical connection between the third port and the second device is incorrect. In this way, the physical connection of the port is efficiently located by transmitting the local system MIB of the first port to the first device. error.
实施例三Embodiment 3
本发明实施例提供一种用于定位端口连接错误的方法,参见图1所示的鸳鸯线错误连接,以实施例一和实施例二中的第一设备为图1中的A设备,第二设备为图1中的B设备进行说明,第一端口以A设备的端口2为例,第三端口以A设备的端口3为例,第二端口以B设备的端口2'为例进行说明,参见图4,其步骤包括:The embodiment of the present invention provides a method for locating a port connection error. Referring to the splicing error connection shown in FIG. 1, the first device in the first embodiment and the second embodiment is the A device in FIG. The device is described in Figure 1 for the B device. The first port is port 2 of the device A. The third port is port 3 of the device B. Referring to Figure 4, the steps include:
301、A设备的端口2通过第一LLDP报文向B设备的端口2'发送A设备的端口2的本地系统MIB。301. Port 2 of the A device sends the local system MIB of the port 2 of the A device to the port 2' of the B device through the first LLDP packet.
其中,第一LLDP报文格式可以如下表1所示:The format of the first LLDP packet can be as shown in Table 1 below:
表1Table 1
Figure PCTCN2015085123-appb-000001
Figure PCTCN2015085123-appb-000001
其中,链路层发现协议数据单元(Link Layer Discovery Protocol Data Unit,LLDPDU)目前定义了9种TLV来携带端口发送的本地系统MIB,其TLV类型字段的值使用了0-8。而在发送一个LLDP报文时,一个LLDP报文中至少包含以下4种:Chassis ID TLV、Port ID TLV、Time to live TLV和End of LLDPDU TLV。The Link Layer Discovery Protocol Data Unit (LLDPDU) currently defines nine TLVs to carry the local system MIB sent by the port, and the value of the TLV type field uses 0-8. When an LLDP packet is sent, the LLDP packet contains at least the following four types: Chassis ID TLV, Port ID TLV, Time to live TLV, and End of LLDPDU TLV.
其中,Time to live TLV的类型字段的值为3,用来设置远端MIB库的老化时间。例如,光纤物理连接无误的情况下,A设备的端口2周期性的通过组播报文将本地系统MIB发送给B设备的端口2',B设备的端口2'将收到的A设备的端口2发送的本地系统MIB存入B设备的端口2'的远端系统MIB,如果B设备的端口2'超过预定的老化时间没有收 到A设备的端口2发来的端口2的本地系统MIB,则B设备的端口2'就清除掉上一次存入远端系统MIB中端口2的本地系统MIB。The Time to live TLV type field has a value of 3, which is used to set the aging time of the remote MIB library. For example, if the physical connection of the optical fiber is correct, port 2 of the A device periodically sends the local system MIB to the port 2' of the B device through the multicast packet, and the port 2 of the B device receives the port of the A device. 2 The local system MIB sent is stored in the remote system MIB of port 2' of the B device. If the port 2' of the B device exceeds the predetermined aging time, it is not received. To the local system MIB of port 2 sent from port 2 of the A device, the port 2' of the B device clears the local system MIB that was last stored in port 2 of the remote system MIB.
End of LLDPDU TLV的类型字段的值为0,用来表示一个LLDPDU的结束。LLDPDU数据块中有多个TLV,最后一个TLV的类型字段的值为0,代表该TLV为End of LLDPDU TLV,表示一个LLDPDU的结束。End of LLDPDU The TLV type field has a value of 0 and is used to indicate the end of an LLDPDU. There are multiple TLVs in the LLDPDU data block. The value of the type field of the last TLV is 0, which means that the TLV is End of LLDPDU TLV, indicating the end of an LLDPDU.
Chassis ID TLV,该TLV类型字段的值是1,表示该TLV的信息串字段携带的是设备标识。Chassis ID TLV的格式可以如下表2所示:Chassis ID TLV, the value of the TLV type field is 1, indicating that the information string field of the TLV carries the device identifier. The format of the Chassis ID TLV can be as shown in Table 2 below:
表2Table 2
Figure PCTCN2015085123-appb-000002
Figure PCTCN2015085123-appb-000002
目前,TLV中的类型字段的值是1表示LLDP报文携带的是设备的端口的本地系统MIB中的设备的标识,也可以称为框架标识。其中,Chassis ID subtype,一般为4,表示设备的标识是通过媒体访问控制(Medium Access Control,MAC)地址来标识的。因此,表2中的Chassis ID就可以为MAC地址。Currently, the value of the type field in the TLV is 1 to indicate that the LLDP packet carries the identifier of the device in the local system MIB of the port of the device, and may also be referred to as a frame identifier. The Chassis ID subtype, which is generally 4, indicates that the identifier of the device is identified by a Medium Access Control (MAC) address. Therefore, the Chassis ID in Table 2 can be a MAC address.
Port ID TLV,TLV类型字段的值可以为2,表示该TLV携带的是端口标识,该TLV的格式可以如下表3所示:Port ID TLV, the value of the TLV type field can be 2, indicating that the TLV carries the port identifier. The format of the TLV can be as shown in Table 3 below:
表3table 3
Figure PCTCN2015085123-appb-000003
Figure PCTCN2015085123-appb-000003
其中,TLV类型字段的值是2表示LLDP报文的TLV信息串字段携带的是端口的本地系统MIB中的端口的标识。Port ID subtype,一般为5, 表示端口的标识通过端口的名称来识别的。The value of the TLV type field is 2, indicating that the TLV information string field of the LLDP packet carries the identifier of the port in the local system MIB of the port. Port ID subtype, typically 5, Indicates that the identity of the port is identified by the name of the port.
302、B设备的端口2'在收到A设备的端口2的本地系统MIB后,将A设备的端口2的本地系统MIB保存到端口2'的远端系统MIB。302. After receiving the local system MIB of the port 2 of the A device, the port 2' of the B device saves the local system MIB of the port 2 of the A device to the remote system MIB of the port 2'.
在图1中,A设备的端口2的TX连接的是B设备的端口2'的RX,所以A设备发送的第一LLDP报文由B设备的端口2'接收到,B设备的端口2'就将接收到的A设备的端口2的本地系统MIB添加到端口2'的远端系统MIB。In FIG. 1, the TX of port 2 of the A device is connected to the RX of the port 2' of the B device, so the first LLDP packet sent by the A device is received by the port 2' of the B device, and the port 2 of the B device is The local system MIB of port 2 of the received A device is added to the remote system MIB of port 2'.
303、B设备的端口2'通过第二LLDP报文向A设备发送端口2的本地系统MIB。303. The port 2' of the B device sends the local system MIB of the port 2 to the A device by using the second LLDP packet.
B设备的端口2'在保存了从A设备接收到的端口2的本地系统MIB后,B设备从B设备的端口2'的远端系统MIB中再获取A设备的端口2的本地系统MIB,并发送至A设备。其中,B设备获取的A设备的端口2的本地系统MIB可以包括A设备的端口2的设备的标识和端口的标识。After the port 2' of the B device saves the local system MIB of the port 2 received from the A device, the B device acquires the local system MIB of the port 2 of the A device from the remote system MIB of the port 2' of the B device. And sent to the A device. The local system MIB of the port 2 of the A device acquired by the B device may include the identifier of the device of the port 2 of the A device and the identifier of the port.
B设备在发送A设备的端口2的本地系统MIB的同时,为了标识出是从B设备的端口2'的远端系统MIB中获取的,需要同时发送一标识信息。具体方式为:第二LLDP报文中包括第一TLV和第二TLV,第一TLV和第二TLV为扩展后的TLV,第一TLV可以为扩展的Chassis ID TLV,第二TLV可以为扩展的Port ID TLV,标识信息可以包括扩展的Chassis ID TLV中的类型字段的值以及扩展的Port ID TLV中的类型字段的值,例如,扩展的Chassis ID TLV中的类型字段的值可以为9,扩展的Port ID TLV中的类型字段的值可以为10。While transmitting the local system MIB of the port 2 of the A device, the B device needs to simultaneously send an identification information in order to identify that it is obtained from the remote system MIB of the port 2' of the B device. The specific manner is: the second LLDP packet includes the first TLV and the second TLV, where the first TLV and the second TLV are extended TLVs, the first TLV may be an extended Chassis ID TLV, and the second TLV may be extended Port ID TLV, the identification information may include the value of the type field in the extended Chassis ID TLV and the value of the type field in the extended Port ID TLV, for example, the value of the type field in the extended Chassis ID TLV may be 9, extension The value of the Type field in the Port ID TLV can be 10.
其中,扩展的Chassis ID TLV中的TLV type=9,可以指示该扩展的Chassis ID TLV中的信息串字段携带的是设备的标识,用于标识B设备发送的A设备的标识是B设备的端口的远端系统MIB中的A设备的标识,扩展的Port ID TLV中的TLV type=10,可以指示该扩展的Port ID TLV中的信息串字段携带的是端口的标识,用于标识B设备发送的端口2的标识是B设备的端口的远端系统MIB中的端口2的标识。The TLV type=9 in the extended Chassis ID TLV may indicate that the information string field in the extended Chassis ID TLV carries the identifier of the device, and is used to identify that the identifier of the A device sent by the B device is the port of the B device. The identifier of the A device in the remote system MIB, the TLV type=10 in the extended port ID TLV, may indicate that the information in the extended port ID TLV carries the identifier of the port, and is used to identify the B device to send. The identity of port 2 is the identity of port 2 in the remote system MIB of the port of the B device.
这样一来,一个扩展的LLDP报文中至少包含以下4种:扩展的Chassis ID TLV、扩展的Port ID TLV、Time to live TLV和End of LLDPDU TLV。其中Time to live TLV和End of LLDPDU TLV和步骤301中的相同。 In this way, an extended LLDP packet includes at least the following four types: an extended Chassis ID TLV, an extended Port ID TLV, a Time to live TLV, and an End of LLDPDU TLV. The Time to live TLV and the End of LLD PDU TLV are the same as those in step 301.
扩展的Chassis ID TLV的格式和内容可以如下表4所示:The format and content of the extended Chassis ID TLV can be as shown in Table 4 below:
表4Table 4
Figure PCTCN2015085123-appb-000004
Figure PCTCN2015085123-appb-000004
扩展的Port ID TLV的格式和内容可以如下表5所示:The format and content of the extended Port ID TLV can be as shown in Table 5 below:
表5table 5
Figure PCTCN2015085123-appb-000005
Figure PCTCN2015085123-appb-000005
304、A设备的端口3收到B设备的端口2'发送的第二LLDP报文后,根据标识信息识别出第二LLDP报文携带的为B设备的端口的远端系统MIB。After receiving the second LLDP packet sent by the port 2' of the B device, the port 3 of the device A identifies the remote system MIB that is the port of the B device carried in the second LLDP packet.
由于B设备的端口2'的TX错误连接到了A设备端口3的RX上,因此,B设备端口2'向A设备返回第二LLDP报文时就发送到了A设备的端口3上。A设备的端口3根据第二LLDP报文中扩展的TLV,发现其中一TLV的类型值为9,得知该TLV携带的是B设备的端口的远端系统MIB中的Chassis ID,并通过另一TLV的类型值为10,得知该TLV携带的是B设备的端口的远端系统MIB中的Port ID,于是,A设备的端口3根据扩展后的TLV获知A设备接收到的第二LLDP报文是用来确认端口连接是否正确的,而不是B设备的端口的本地系统MIB,不需要对接收到的MIB信息进行存储。Since the TX of the port 2' of the B device is incorrectly connected to the RX of the A device port 3, the B device port 2' is sent to the port 3 of the A device when the second LLDP packet is returned to the A device. Port 3 of the device A finds that the value of one of the TLVs is 9 according to the extended TLV in the second LLDP packet, and learns that the TLV carries the Chassis ID in the remote system MIB of the port of the B device, and passes another A type of the TLV is 10, and it is learned that the TLV carries the port ID in the remote system MIB of the port of the B device. Then, the port 3 of the device A learns the second LLDP received by the device A according to the extended TLV. The message is used to confirm that the port connection is correct, not the local system MIB of the port of the B device, and does not need to store the received MIB information.
305、A设备端口3提取通过第二LLDP报文携带的远端系统MIB中A设备的端口2的本地系统MIB中的Chassis ID和Port ID,与端口3 的本地系统MIB中的Chassis ID和Port ID进行比对,若两者不同,则端口3确定端口的物理连接发生错误,并向网络管理设备发送告警。305. The port 3 of the device A extracts the Chassis ID and Port ID in the local system MIB of the port 2 of the A device in the remote system MIB carried by the second LLDP packet, and the port 3 The Chassis ID and the Port ID in the local system MIB are compared. If the two are different, the port 3 determines that the physical connection of the port is incorrect, and sends an alarm to the network management device.
由于B设备返回的第二LLDP报文携带来自B设备的端口的远端系统MIB,该远端系统MIB包括A设备的端口2发给端口2'的端口2的本地系统MIB。A设备的端口3根据标识信息识别出第二LLDP报文携带的为B设备的端口的远端系统MIB后,提取第二LLDP报文携带的端口的远端系统MIB中的Chassis ID和Port ID,该远端系统MIB中的Chassis ID和Port ID是A设备的端口2的本地系统MIB中的Chassis ID和Port ID,A设备的端口3通过将接收到的A设备的端口2的本地系统MIB中的Chassis ID和Port ID与端口3的本地系统MIB中的Chassis ID和Port ID进行比对,发现两者不同,这样,A设备的端口3就确认端口物理连接有误,向网络管理设备发送告警。The second LLDP packet returned by the B device carries the remote system MIB of the port from the B device, and the remote system MIB includes the local system MIB of the port 2 of the A device to the port 2 of the port 2'. Port 3 of the device A identifies the Chassis ID and Port ID of the remote system MIB of the port carried by the second LLDP packet, after the remote system MIB of the port of the B device is carried in the second LLDP packet. The Chassis ID and Port ID in the remote system MIB are the Chassis ID and Port ID in the local system MIB of the port 2 of the A device, and the port 3 of the A device passes the local system MIB of the port 2 of the received A device. The Chassis ID and the Port ID are compared with the Chassis ID and the Port ID in the local system MIB of the port 3, and the two are different. Thus, the port 3 of the A device confirms that the physical connection of the port is incorrect, and sends the error to the network management device. Alarm.
其中,该错误告警可以携带端口2的标识或端口3的标识,错误告警中的端口2的标识用于标识端口2与B设备的物理连接发生错误,错误告警中的端口3的标识用于标识端口3与B设备的物理连接发生错误。The error alarm may carry the identifier of the port 2 or the identifier of the port 3, and the identifier of the port 2 in the error alarm is used to identify that the physical connection between the port 2 and the B device is incorrect, and the identifier of the port 3 in the error alarm is used to identify The physical connection between port 3 and device B has an error.
由于每个设备的每个端口都是独立的接收、发送信息的,所以每个物理连接错误的端口可以独立地上报一个告警,出现鸳鸯线连接错误所涉及到的四个端口,就可以独立上报告警。Since each port of each device receives and sends information independently, each port with a wrong physical connection can independently report an alarm. The four ports involved in the connection error can be independently used. Report the police.
这种通过本端接收到对端的本地系统MIB信息,本端将对端的本地系统MIB信息添加到本端的端口的远端系统MIB后,再将远端系统MIB通过扩展的TLV发送给对端,让对端确认端口连接是否错误的过程,可以及时准确地确定端口物理连接错误的位置。After receiving the local system MIB information of the peer end, the local end adds the local system MIB information of the peer end to the remote system MIB of the local port, and then sends the remote system MIB to the peer end through the extended TLV. The process of confirming whether the port connection is wrong by the peer end can accurately and accurately determine the location of the physical connection error of the port.
本发明实施例提供一种用于定位端口连接错误的方法,A设备的端口2通过第一LLDP报文向B设备的端口2'发送A设备的端口2的本地系统MIB,B设备的端口2'将A设备的端口2的本地系统MIB保存到端口2'的远端系统MIB,B设备的端口2'通过第二LLDP报文向A设备发送端口2的本地系统MIB,A设备的端口3收到B设备的端口2'发送的第二LLDP报文后,根据标识信息识别出第二LLDP报文携带的为B设备的端口的远端系统MIB,A设备端口3提 取通过第二LLDP报文携带的远端系统MIB中A设备的端口2的本地系统MIB中的Chassis ID和Port ID,与端口3的本地系统MIB中的Chassis ID和Port ID进行比对,若两者不同,则端口3确定端口的物理连接发生错误,并向网络管理设备发送告警,有助于高效定位端口的物理连接发生错误。The embodiment of the present invention provides a method for locating a port connection error. Port 2 of the A device sends the local system MIB of the port 2 of the A device to the port 2 of the B device through the first LLDP message, and the port 2 of the B device. 'Save the local system MIB of port 2 of the A device to the remote system MIB of port 2', and port 2' of the B device sends the local system MIB of port 2 to the A device through the second LLDP message, port 3 of the A device After receiving the second LLDP packet sent by the port 2' of the B device, the device identifies the remote system MIB that is the port of the B device carried by the second LLDP packet according to the identifier information, and the device port 3 of the device A The Chassis ID and Port ID in the local system MIB of the port 2 of the A device in the remote system MIB carried in the second LLDP packet are compared with the Chassis ID and the Port ID in the local system MIB of the port 3, if If the two are different, port 3 determines that the physical connection of the port is incorrect, and sends an alarm to the network management device, which helps to locate the physical connection of the port efficiently.
实施例四Embodiment 4
本发明实施例提供一种第一设备04。所述第一设备04可以用于执行实施例一提供的方法。如图5所示,包括:An embodiment of the present invention provides a first device 04. The first device 04 can be used to perform the method provided in Embodiment 1. As shown in Figure 5, it includes:
发送单元041,用于通过第一端口向第二设备的第二端口发送第一端口的本地系统管理信息库MIB;The sending unit 041 is configured to send, by using the first port, the local system management information base MIB of the first port to the second port of the second device;
接收单元042,用于通过第三端口接收第二设备的第二端口发送的第一端口的本地系统MIB;The receiving unit 042 is configured to receive, by using the third port, a local system MIB of the first port that is sent by the second port of the second device;
确定单元043,用于确定第三端口的本地系统MIB与所述接收单元042接收的第二设备发送的第一端口的本地系统MIB不同;a determining unit 043, configured to determine that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device received by the receiving unit 042;
确定单元043,还用于基于第三端口的本地系统MIB与第一端口的本地MIB系统不同确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误。The determining unit 043 is further configured to determine that the physical connection between the first port and the second device is incorrect or the physical connection between the third port and the second device is incorrect, based on the local system MIB of the third port being different from the local MIB system of the first port. .
可选的,接收单元042,还用于通过第三端口接收第二设备的第二端口发送的标识信息,标识信息用于标识第二设备发送的第一端口的本地系统MIB是第二设备的端口的远端系统MIB;Optionally, the receiving unit 042 is further configured to receive the identifier information sent by the second port of the second device by using the third port, where the identifier information is used to identify that the local system MIB of the first port sent by the second device is the second device. Remote system MIB of the port;
确定单元043具体用于:The determining unit 043 is specifically configured to:
基于标识信息的指示比较第三端口的本地系统MIB与第二设备发送的第一端口的本地系统MIB;Comparing the local system MIB of the third port with the local system MIB of the first port sent by the second device based on the indication of the identification information;
基于比较的结果确定第三端口的本地系统MIB与第一端口的本地系统MIB不同。Based on the result of the comparison, it is determined that the local system MIB of the third port is different from the local system MIB of the first port.
上述技术方案中,所述第二设备的端口具体可以是所述第二端口。In the above technical solution, the port of the second device may specifically be the second port.
可选的,接收单元042用于:通过第三端口接收第二设备的第二端口发送的链路层发现协议LLDP报文,LLDP报文中携带第一端口的本地系统MIB以及标识信息。 Optionally, the receiving unit 042 is configured to: receive, by using the third port, a link layer discovery protocol LLDP packet sent by the second port of the second device, where the LLDP packet carries the local system MIB of the first port and the identifier information.
可选的,LLDP报文包括第一TLV和第二TLV,标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,第一TLV中的类型字段的值指示第一TLV中的信息串字段携带的是设备的标识,第二TLV中的类型字段的值指示第二TLV中的信息串字段携带的是端口的标识,第二设备的端口的远端系统MIB包括第一设备的标识以及第一端口的标识,第一TLV中的类型字段的值用于标识第二设备发送的第一设备的标识是第二设备的端口的远端系统MIB中的第一设备的标识,第二TLV中的类型字段的值用于标识第二设备发送的第一端口的标识是第二设备的端口的远端系统MIB中的第一端口的标识。Optionally, the LLDP packet includes a first TLV and a second TLV, where the identifier information includes a value of a type field in the first TLV and a value of a type field in the second TLV, where the value of the type field in the first TLV indicates The information string field in a TLV carries the identifier of the device. The value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the remote system MIB of the port of the second device includes The identifier of the first device and the identifier of the first port, the value of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first device in the remote system MIB of the port of the second device The identifier of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the identifier of the first port in the remote system MIB of the port of the second device.
上述技术方案中,所述第一TLV中的信息串字段携带的设备的标识具体可以是所述第一设备的标识。所述第二TLV中的信息串字段携带的端口的标识具体可以是所述第一端口的标识。In the foregoing technical solution, the identifier of the device carried in the information string field in the first TLV may specifically be the identifier of the first device. The identifier of the port carried in the information string field in the second TLV may specifically be the identifier of the first port.
可选的,发送单元041还用于:Optionally, the sending unit 041 is further configured to:
向管理设备发送错误告警,错误告警携带第一端口的标识或第三端口的标识,错误告警中的第一端口的标识用于标识第一端口与第二设备的物理连接发生错误,错误告警中的第三端口的标识用于标识第三端口与第二设备的物理连接发生错误。Sending an error alarm to the management device. The error alarm carries the identifier of the first port or the identifier of the third port. The identifier of the first port in the error alarm is used to identify that the physical connection between the first port and the second device is incorrect. The identifier of the third port is used to identify that the physical connection of the third port to the second device is incorrect.
本发明实施例中各单元所涉及的设备的具体实现方式可以参见图1值图3所示的实施方式。For the specific implementation of the device involved in each unit in the embodiment of the present invention, reference may be made to the embodiment shown in FIG.
本发明实施例提供一种第一设备,包括:发送单元、接收单元和确定单元。其中发送单元,用于通过第一端口向第二设备的第二端口发送第一端口的本地系统管理信息库MIB;接收单元,用于通过第三端口接收第二设备的第二端口发送的第一端口的本地系统MIB;确定单元,用于确定第三端口的本地系统MIB与第二设备发送的第一端口的本地系统MIB不同;确定单元,还用于基于第三端口的本地系统MIB与第一端口的本地MIB系统不同确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误。这样通过将对端的本地系统MIB信息发回给对端进行确认的方式,有助于高效定位端口的物理连接发生错误。An embodiment of the present invention provides a first device, including: a sending unit, a receiving unit, and a determining unit. The sending unit is configured to send, by using the first port, the local system management information base MIB of the first port to the second port of the second device, and the receiving unit, configured to receive, by using the third port, the second port sent by the second port of the second device a local system MIB of a port; a determining unit, configured to determine that the local system MIB of the third port is different from the local system MIB of the first port sent by the second device; the determining unit is further configured to use the local system MIB of the third port The local MIB system of the first port differently determines that an error occurs in the physical connection between the first port and the second device or an error occurs in the physical connection between the third port and the second device. In this way, by sending the local system MIB information of the peer end back to the peer end for confirmation, the physical connection of the efficiently located port is mistaken.
实施例五 Embodiment 5
本发明实施例提供一种第二设备05。所述第二设备05可以用于执行实施例二提供的方法。如图6所示,包括:An embodiment of the present invention provides a second device 05. The second device 05 can be used to perform the method provided in the second embodiment. As shown in Figure 6, it includes:
接收单元051,用于通过第二端口接收第一设备的第一端口发送的第一端口的本地系统管理信息库MIB;The receiving unit 051 is configured to receive, by using the second port, a local system management information base MIB of the first port sent by the first port of the first device;
发送单元052,用于通过第二端口向第一设备的第三端口发送所述接收单元接收的第一端口的本地系统MIB。The sending unit 052 is configured to send, by using the second port, the local system MIB of the first port received by the receiving unit to the third port of the first device.
第一设备可以基于第三端口的本地系统MIB与第一端口的本地系统MIB不同确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误。The first device may determine that an error occurs in the physical connection of the first port and the second device or an error occurs in the physical connection between the third port and the second device, based on the local system MIB of the third port being different from the local system MIB of the first port.
其中,第二设备05接收到第一端口的本地系统管理信息库MIB后,将第一端口的本地系统管理信息库MIB保存为第二端口的远端系统MIB。After receiving the local system management information base MIB of the first port, the second device 05 saves the local system management information base MIB of the first port as the remote system MIB of the second port.
可选的,发送单元052还用于:通过第二端口向第一设备的第三端口发送标识信息,标识信息用于标识第二设备发送的第一端口的本地系统MIB是第二设备的端口的远端系统MIB。Optionally, the sending unit 052 is further configured to send the identifier information to the third port of the first device by using the second port, where the identifier information is used to identify that the local system MIB of the first port sent by the second device is a port of the second device. Remote system MIB.
上述技术方案中,所述第二设备的端口具体可以是所述第二端口。所述第一TLV中的信息串字段携带的设备的标识具体可以是所述第一设备的标识。所述第二TLV中的信息串字段携带的端口的标识具体可以是所述第一端口的标识。In the above technical solution, the port of the second device may specifically be the second port. The identifier of the device carried in the information string field in the first TLV may specifically be the identifier of the first device. The identifier of the port carried in the information string field in the second TLV may specifically be the identifier of the first port.
可选的,发送单元052用于:通过第二端口向第一设备的第三端口发送链路层发现协议LLDP报文,LLDP报文中携带第一端口的本地系统MIB以及标识信息。Optionally, the sending unit 052 is configured to: send, by using the second port, a link layer discovery protocol LLDP packet to the third port of the first device, where the LLDP packet carries the local system MIB of the first port and the identifier information.
可选的,LLDP报文包括第一TLV和第二TLV,标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,第一TLV中的类型字段的值指示第一TLV中的信息串字段携带的是设备的标识,第二TLV中的类型字段的值指示第二TLV中的信息串字段携带的是端口的标识,第二设备的端口的远端系统MIB包括第一设备的标识以及第一端口的标识,第一TLV中的类型字段的值用于标识第二设备发送的第一设备的标识是第二设备的端口的远端系统MIB中的第一设备的标识,第二TLV中的类型字段的值用于标识第二设备发送的第一端口的标识是第二设备的端口的远端系统MIB中 的第一端口的标识。Optionally, the LLDP packet includes a first TLV and a second TLV, where the identifier information includes a value of a type field in the first TLV and a value of a type field in the second TLV, where the value of the type field in the first TLV indicates The information string field in a TLV carries the identifier of the device. The value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the remote system MIB of the port of the second device includes The identifier of the first device and the identifier of the first port, the value of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the first device in the remote system MIB of the port of the second device The identifier of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is in the remote system MIB of the port of the second device. The identity of the first port.
上述技术方案中,所述第二设备的端口具体可以是所述第二端口。In the above technical solution, the port of the second device may specifically be the second port.
本发明实施例中各单元所涉及的设备的具体实现方式可以参见图1值图3所示的实施方式。For the specific implementation of the device involved in each unit in the embodiment of the present invention, reference may be made to the embodiment shown in FIG.
本发明实施例提供一种第二设备,包括:接收单元和发送单元。其中,接收单元,用于通过第二端口接收第一设备的第一端口发送的第一端口的本地系统管理信息库MIB;发送单元,用于通过第二端口向第一设备的第三端口发送第一端口的本地系统MIB,第一设备基于第三端口的本地系统MIB与第一端口的本地系统MIB不同确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误,这样通过将对端的MIB信息发回给对端进行确认的方式,有助于高效定位端口的物理连接发生错误。An embodiment of the present invention provides a second device, including: a receiving unit and a sending unit. The receiving unit is configured to receive, by using the second port, a local system management information base MIB of the first port sent by the first port of the first device, and a sending unit, configured to send, by using the second port, the third port of the first device The local system MIB of the first port, the first device based on the local system MIB of the third port is different from the local system MIB of the first port, determining that the physical connection between the first port and the second device is incorrect or that the third port and the second device are An error occurs in the physical connection. This helps to efficiently locate the physical connection of the port by sending the MIB information of the peer back to the peer for confirmation.
实施例六Embodiment 6
本发明实施例提供一种第一设备06。第一设备06可以用于执行实施例一提供的方法。参见图7,包括:总线061、连接到总线061的存储器062、发射器063、接收器064和处理器065,其中,该存储器062用于存储指令和数据;发射器063用于通过第一端口向第二设备的第二端口发送第一端口的本地系统管理信息库MIB;接收器064用于通过第三端口接收第二设备的第二端口发送的第一端口的本地系统MIB;处理器065用于确定第三端口的本地系统MIB与第二设备发送的第一端口的本地系统MIB不同;处理器065还用于基于第三端口的本地系统MIB与第一端口的本地MIB系统不同确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误。An embodiment of the present invention provides a first device 06. The first device 06 can be used to perform the method provided in the first embodiment. Referring to Figure 7, there is included a bus 061, a memory 062 coupled to bus 061, a transmitter 063, a receiver 064, and a processor 065, wherein the memory 062 is for storing instructions and data; the transmitter 063 is for passing the first port Transmitting, by the second port of the second device, the local system management information base MIB of the first port; the receiver 064 is configured to receive, by using the third port, the local system MIB of the first port sent by the second port of the second device; the processor 065 The local system MIB for determining the third port is different from the local system MIB of the first port sent by the second device; the processor 065 is further configured to determine that the local system MIB based on the third port is different from the local MIB system of the first port. An error occurs in the physical connection of one port to the second device or the physical connection of the third port to the second device.
在本发明实施例中,可选的,接收器064,还可以用于通过第三端口接收第二设备的第二端口发送的标识信息,标识信息用于标识第二设备发送的第一端口的本地系统MIB是第二设备的端口的远端系统MIB;In the embodiment of the present invention, optionally, the receiver 064 is further configured to receive the identifier information sent by the second port of the second device by using the third port, where the identifier information is used to identify the first port that is sent by the second device. The local system MIB is a remote system MIB of the port of the second device;
处理器065可以具体用于:The processor 065 can be specifically configured to:
基于标识信息的指示比较第三端口的本地系统MIB与第二设备 发送的第一端口的本地系统MIB;Comparing the local system MIB of the third port with the second device based on the indication of the identification information The local system MIB of the first port sent;
基于比较的结果确定第三端口的本地系统MIB与第一端口的本地系统MIB不同。Based on the result of the comparison, it is determined that the local system MIB of the third port is different from the local system MIB of the first port.
在本发明实施例中,可选的,接收器064可以用于:通过第三端口接收第二设备的第二端口发送的链路层发现协议LLDP报文,LLDP报文中携带第一端口的本地系统MIB以及标识信息。In the embodiment of the present invention, the receiver 064 may be configured to: receive, by using the third port, a link layer discovery protocol LLDP packet sent by the second port of the second device, where the LLDP packet carries the first port. Local system MIB and identification information.
在本发明实施例中,可选的,LLDP报文包括第一TLV和第二TLV,标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,第一TLV中的类型字段的值指示第一TLV中的信息串字段携带的是设备的标识,第二TLV中的类型字段的值指示第二TLV中的信息串字段携带的是端口的标识,第二设备的端口的远端系统MIB包括第一设备的标识以及第一端口的标识,第一TLV中的类型字段的值用于标识第二设备发送的第一设备的标识是第二设备的端口的远端系统MIB中的第一设备的标识,第二TLV中的类型字段的值用于标识第二设备发送的第一端口的标识是第二设备的端口的远端系统MIB中的第一端口的标识。In the embodiment of the present invention, optionally, the LLDP packet includes a first TLV and a second TLV, and the identifier information includes a value of a type field in the first TLV and a value of a type field in the second TLV, where the first TLV is in the first TLV. The value of the type field indicates that the information string field in the first TLV carries the identifier of the device, and the value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the second device The remote system MIB of the port includes the identifier of the first device and the identifier of the first port. The value of the type field in the first TLV is used to identify that the identifier of the first device sent by the second device is the remote end of the port of the second device. The identifier of the first device in the system MIB, the value of the type field in the second TLV is used to identify that the identifier of the first port sent by the second device is the identifier of the first port in the remote system MIB of the port of the second device. .
在本发明实施例中,可选的,发射器064还用于:In the embodiment of the present invention, optionally, the transmitter 064 is further configured to:
向管理设备发送错误告警,错误告警携带第一端口的标识或第三端口的标识,错误告警中的第一端口的标识用于标识第一端口与第二设备的物理连接发生错误,错误告警中的第三端口的标识用于标识第三端口与第二设备的物理连接发生错误。Sending an error alarm to the management device. The error alarm carries the identifier of the first port or the identifier of the third port. The identifier of the first port in the error alarm is used to identify that the physical connection between the first port and the second device is incorrect. The identifier of the third port is used to identify that the physical connection of the third port to the second device is incorrect.
本发明实施例中所涉及的设备的具体实现方式可以参见图1值图3所示的实施方式。For a specific implementation manner of the device involved in the embodiment of the present invention, refer to the embodiment shown in FIG. 1 and FIG.
本发明实施例提供一种第一设备,包括:总线、连接到总线的存储器、发射器、接收器和处理器,其中,该存储器用于存储指令和数据;发射器用于通过第一端口向第二设备的第二端口发送第一端口的本地系统管理信息库MIB;接收器用于通过第三端口接收第二设备的第二端口发送的第一端口的本地系统MIB;处理器用于确定第三端口的本地系统MIB与第二设备发送的第一端口的本地系统MIB不同;处理器还用于基于第三端口的本地系统MIB与第一端口的本地MIB系统不同确定第一端口与第二设备的物理连接发生错误或者第 三端口与第二设备的物理连接发生错误。这样通过将对端的MIB信息发回给对端进行确认的方式,有助于高效定位端口的物理连接发生错误。An embodiment of the present invention provides a first device, including: a bus, a memory connected to the bus, a transmitter, a receiver, and a processor, wherein the memory is used to store instructions and data; and the transmitter is configured to pass the first port to the first The second port of the second device sends the local system management information base MIB of the first port; the receiver is configured to receive the local system MIB of the first port sent by the second port of the second device through the third port; the processor is configured to determine the third port The local system MIB is different from the local system MIB of the first port sent by the second device; the processor is further configured to determine the first port and the second device differently according to the third port-based local system MIB and the first port local MIB system Physical connection error or An error occurred in the physical connection between the three ports and the second device. In this way, by sending the MIB information of the peer end back to the peer end for confirmation, it is helpful to make an error in the physical connection of the efficiently located port.
实施例七Example 7
本发明实施例提供一种第二设备07。第二设备07可以用于执行实施例二提供的方法。参见图8,包括:总线071、连接到总线071的存储器072、接收器073、和发射器074,其中,该存储器072用于存储指令和数据;接收器073用于通过第二端口接收第一设备的第一端口发送的第一端口的本地系统管理信息库MIB;发射器074用于通过第二端口向第一设备的第三端口发送第一端口的本地系统MIB。The embodiment of the invention provides a second device 07. The second device 07 can be used to perform the method provided by the second embodiment. Referring to FIG. 8, a bus 071, a memory 072 connected to the bus 071, a receiver 073, and a transmitter 074, wherein the memory 072 is used to store instructions and data, and the receiver 073 is configured to receive the first through the second port. The local port management information base MIB of the first port sent by the first port of the device; the transmitter 074 is configured to send the local system MIB of the first port to the third port of the first device through the second port.
而后,第一设备可以基于第三端口的本地系统MIB与第一端口的本地系统MIB不同确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误。Then, the first device may determine that an error occurs in the physical connection of the first port and the second device or an error occurs in the physical connection between the third port and the second device, based on the local system MIB of the third port being different from the local system MIB of the first port.
其中,第二设备接收到第一端口的本地系统管理信息库MIB后,可以将第一端口的本地系统管理信息库MIB保存为第二端口的远端系统MIB。After receiving the local system management information base MIB of the first port, the second device may save the local system management information base MIB of the first port as the remote system MIB of the second port.
在本发明实施例中,可选的,发射器074还用于:通过第二端口向第一设备的第三端口发送标识信息,标识信息用于标识第二设备发送的第一端口的本地系统MIB是第二设备的端口的远端系统MIB。In the embodiment of the present invention, the transmitter 074 is further configured to: send, by using the second port, the identifier information to the third port of the first device, where the identifier information is used to identify the local system of the first port sent by the second device. The MIB is the remote system MIB of the port of the second device.
在本发明实施例中,可选的,发射器074用于:通过第二端口向第一设备的第三端口发送链路层发现协议LLDP报文,LLDP报文中携带第一端口的本地系统MIB以及标识信息。In the embodiment of the present invention, the transmitter 074 is configured to: send, by using the second port, a link layer discovery protocol (LLDP) packet to the third port of the first device, where the LLDP packet carries the local system of the first port. MIB and identification information.
在本实施例中,可选的,LLDP报文包括第一TLV和第二TLV,标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,第一TLV中的类型字段的值指示第一TLV中的信息串字段携带的是设备的标识,第二TLV中的类型字段的值指示第二TLV中的信息串字段携带的是端口的标识,第二设备的端口的远端系统MIB包括第一设备的标识以及第一端口的标识,第一TLV中的类型字段的值用于标识第二设备发送的第一设备的标识是第二设备的端口的远端系统MIB中的第一设备的标识,第二TLV中的类型字段的值用 于标识第二设备发送的第一端口的标识是第二设备的端口的远端系统MIB中的第一端口的标识。In this embodiment, optionally, the LLDP packet includes a first TLV and a second TLV, where the identifier information includes a value of a type field in the first TLV and a value of a type field in the second TLV, in the first TLV. The value of the type field indicates that the information string field in the first TLV carries the identifier of the device, and the value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port, and the port of the second device The remote system MIB includes an identifier of the first device and an identifier of the first port, where the value of the type field in the first TLV is used to identify the remote system of the port of the second device that is sent by the second device The identifier of the first device in the MIB, and the value of the type field in the second TLV. The identifier of the first port sent by the second device is the identifier of the first port in the remote system MIB of the port of the second device.
本发明实施例中所涉及的设备的具体实现方式可以参见图1值图3所示的实施方式。For a specific implementation manner of the device involved in the embodiment of the present invention, refer to the embodiment shown in FIG. 1 and FIG.
本发明实施例提供一种第二设备,包括:总线、连接到总线的存储器、接收器、和发射器,其中,该存储器用于存储指令和数据;接收器用于通过第二端口接收第一设备的第一端口发送的第一端口的本地系统管理信息库MIB;发射器用于通过第二端口向第一设备的第三端口发送第一端口的本地系统MIB,使得第一设备可以基于第三端口的本地系统MIB与第一端口的本地系统MIB不同确定第一端口与第二设备的物理连接发生错误或者第三端口与第二设备的物理连接发生错误,这样通过将对端的MIB信息发回给对端进行确认的方式,有助于高效定位端口的物理连接发生错误。An embodiment of the present invention provides a second device, including: a bus, a memory connected to the bus, a receiver, and a transmitter, wherein the memory is used to store instructions and data; and the receiver is configured to receive the first device through the second port. The local port management information base MIB of the first port sent by the first port; the transmitter is configured to send the local system MIB of the first port to the third port of the first device through the second port, so that the first device can be based on the third port The local system MIB is different from the local system MIB of the first port to determine that the physical connection between the first port and the second device is incorrect, or the physical connection between the third port and the second device is incorrect, so that the MIB information of the opposite end is sent back to the The method of confirming the peer end helps to make an error in the physical connection of the efficiently located port.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
另外,在本发明各个实施例中的设备和系统中,各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。且上述的各单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, in the devices and systems in various embodiments of the present invention, each functional unit may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above units may be implemented in the form of hardware or in the form of hardware plus software functional units.
实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。 All or part of the steps of implementing the foregoing method embodiments may be performed by hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and when executed, the program includes the steps of the foregoing method embodiments; The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (18)

  1. 一种用于定位端口连接错误的方法,其特征在于,包括:A method for locating a port connection error, comprising:
    第一设备的第一端口向第二设备的第二端口发送所述第一端口的本地系统管理信息库MIB;The first port of the first device sends the local system management information base MIB of the first port to the second port of the second device;
    所述第一设备的第三端口接收所述第二设备的第二端口发送的所述第一端口的本地系统MIB;The third port of the first device receives the local system MIB of the first port sent by the second port of the second device;
    所述第一设备确定所述第三端口的本地系统MIB与所述第二设备发送的所述第一端口的本地系统MIB不同;Determining, by the first device, that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device;
    所述第一设备基于所述第三端口的本地系统MIB与所述第一端口的本地MIB系统不同确定所述第一端口与所述第二设备的物理连接发生错误或者所述第三端口与所述第二设备的物理连接发生错误。Determining, by the first device, that the physical connection between the first port and the second device is incorrect or the third port is different, based on the local system MIB of the third port being different from the local MIB system of the first port The physical connection of the second device is incorrect.
  2. 根据权利要求1所述的方法,其特征在于,所述第一设备的第三端口接收所述第二设备的第二端口发送的所述第一端口的本地系统MIB还包括:所述第一设备的第三端口接收所述第二设备的第二端口发送的标识信息,所述标识信息用于标识所述第二设备发送的所述第一端口的本地系统MIB是所述第二设备的端口的远端系统MIB;The method according to claim 1, wherein the receiving, by the third port of the first device, the local system MIB of the first port sent by the second port of the second device further comprises: the first The third port of the device receives the identifier information sent by the second port of the second device, where the identifier information is used to identify that the local system MIB of the first port sent by the second device is the second device Remote system MIB of the port;
    所述第一设备确定所述第三端口的本地系统MIB与所述第二设备发送的所述第一端口的本地系统MIB不同具体包括:The determining, by the first device, that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device includes:
    所述第一设备基于所述标识信息的指示比较所述第三端口的本地系统MIB与所述第二设备发送的所述第一端口的本地系统MIB;The first device compares the local system MIB of the third port with the local system MIB of the first port sent by the second device, according to the indication of the identifier information;
    所述第一设备基于所述比较的结果确定所述第三端口的本地系统MIB与所述第一端口的本地系统MIB不同。The first device determines that the local system MIB of the third port is different from the local system MIB of the first port based on the result of the comparison.
  3. 根据权利要求2所述的方法,其特征在于,所述第一设备的第三端口接收所述第二设备的第二端口发送的所述第一端口的本地系统MIB具体包括:The method according to claim 2, wherein the receiving, by the third port of the first device, the local system MIB of the first port sent by the second port of the second device comprises:
    所述第一设备的第三端口接收所述第二设备的第二端口发送的链路层发现协议LLDP报文,所述LLDP报文中携带所述第一端口的本地系统MIB以及所述标识信息。The third port of the first device receives the link layer discovery protocol LLDP packet sent by the second port of the second device, where the LLDP packet carries the local system MIB of the first port and the identifier information.
  4. 根据权利要求3所述的方法,其特征在于,所述LLDP报文包括第一TLV和第二TLV,所述标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,所述第一TLV中的类型字 段的值指示所述第一TLV中的信息串字段携带的是设备的标识,所述第二TLV中的类型字段的值指示所述第二TLV中的信息串字段携带的是端口的标识,所述第二设备的端口的远端系统MIB包括所述第一设备的标识以及所述第一端口的标识,所述第一TLV中的类型字段的值用于标识所述第二设备发送的所述第一设备的标识是所述第二设备的端口的远端系统MIB中的所述第一设备的标识,所述第二TLV中的类型字段的值用于标识所述第二设备发送的所述第一端口的标识是所述第二设备的端口的远端系统MIB中的所述第一端口的标识。The method according to claim 3, wherein the LLDP message includes a first TLV and a second TLV, and the identification information includes a value of a type field in the first TLV and a type field in the second TLV. Value, the type word in the first TLV The value of the segment indicates that the information string field in the first TLV carries the identifier of the device, and the value of the type field in the second TLV indicates that the information string field in the second TLV carries the identifier of the port. The remote system MIB of the port of the second device includes an identifier of the first device and an identifier of the first port, and a value of a type field in the first TLV is used to identify that the second device sends The identifier of the first device is an identifier of the first device in a remote system MIB of a port of the second device, and a value of a type field in the second TLV is used to identify that the second device sends The identifier of the first port is an identifier of the first port in a remote system MIB of a port of the second device.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    所述第一设备向管理设备发送错误告警,所述错误告警携带所述第一端口的标识或所述第三端口的标识,所述错误告警中的所述第一端口的标识用于标识所述第一端口与所述第二设备的物理连接发生错误,所述错误告警中的所述第三端口的标识用于标识所述第三端口与所述第二设备的物理连接发生错误。The first device sends an error alarm to the management device, where the error alarm carries the identifier of the first port or the identifier of the third port, and the identifier of the first port in the error alarm is used to identify the identifier An error occurs in the physical connection between the first port and the second device, and the identifier of the third port in the error alarm is used to identify that the physical connection between the third port and the second device is incorrect.
  6. 一种用于定位端口连接错误的方法,其特征在于,包括:A method for locating a port connection error, comprising:
    第二设备的第二端口接收第一设备的第一端口发送的所述第一端口的本地系统管理信息库MIB;The second port of the second device receives the local system management information base MIB of the first port sent by the first port of the first device;
    所述第二设备的第二端口向所述第一设备的第三端口发送所述第一端口的本地系统MIB。The second port of the second device sends the local system MIB of the first port to the third port of the first device.
  7. 根据权利要求6所述的方法,其特征在于,所述第二设备的第二端口向所述第一设备的第三端口发送所述第一端口的本地系统MIB还包括:The method according to claim 6, wherein the sending, by the second port of the second device, the local system MIB of the first port to the third port of the first device further comprises:
    所述第二设备的第二端口向所述第一设备的第三端口发送标识信息,所述标识信息用于标识所述第二设备发送的所述第一端口的本地系统MIB是所述第二设备的端口的远端系统MIB。The second port of the second device sends the identifier information to the third port of the first device, where the identifier information is used to identify that the local system MIB of the first port sent by the second device is the first The remote system MIB of the port of the second device.
  8. 根据权利要求7所述的方法,其特征在于,所述第二设备的第二端口向所述第一设备的第三端口发送所述第一端口的本地系统MIB包括:The method according to claim 7, wherein the sending, by the second port of the second device, the local system MIB of the first port to the third port of the first device comprises:
    所述第二设备的第二端口向所述第一设备的第三端口发送链路层发现协议LLDP报文,所述LLDP报文中携带所述第一端口的本地 系统MIB以及所述标识信息。The second port of the second device sends a link layer discovery protocol LLDP packet to the third port of the first device, where the LLDP packet carries the locality of the first port. System MIB and the identification information.
  9. 根据权利要求8所述的方法,其特征在于,所述LLDP报文包括第一TLV和第二TLV,所述标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,所述第一TLV中的类型字段的值指示所述第一TLV中的信息串字段携带的是设备的标识,所述第二TLV中的类型字段的值指示所述第二TLV中的信息串字段携带的是端口的标识,所述第二设备的端口的远端系统MIB包括所述第一设备的标识以及所述第一端口的标识,所述第一TLV中的类型字段的值用于标识所述第二设备发送的所述第一设备的标识是所述第二设备的端口的远端系统MIB中的所述第一设备的标识,所述第二TLV中的类型字段的值用于标识所述第二设备发送的所述第一端口的标识是所述第二设备的端口的远端系统MIB中的所述第一端口的标识。The method according to claim 8, wherein the LLDP message includes a first TLV and a second TLV, and the identification information includes a value of a type field in the first TLV and a type field in the second TLV. a value, the value of the type field in the first TLV indicates that the information string field in the first TLV carries an identifier of the device, and the value of the type field in the second TLV indicates in the second TLV. The information string field carries the identifier of the port, and the remote system MIB of the port of the second device includes the identifier of the first device and the identifier of the first port, and the value of the type field in the first TLV. The identifier of the first device that is used to identify the second device is the identifier of the first device in the remote system MIB of the port of the second device, and the type field in the second TLV The value is used to identify that the identifier of the first port sent by the second device is an identifier of the first port in a remote system MIB of a port of the second device.
  10. 一种第一设备,所述第一设备包括第一端口和第三端口,其特征在于,包括:A first device, where the first device includes a first port and a third port, and includes:
    发送单元,用于通过所述第一端口向第二设备的第二端口发送所述第一端口的本地系统管理信息库MIB;a sending unit, configured to send, by using the first port, a local system management information base MIB of the first port to a second port of the second device;
    接收单元,用于通过所述第三端口接收所述第二设备的第二端口发送的所述第一端口的本地系统MIB;a receiving unit, configured to receive, by using the third port, a local system MIB of the first port that is sent by the second port of the second device;
    确定单元,用于确定所述第三端口的本地系统MIB与所述接收单元接收的所述第二设备发送的所述第一端口的本地系统MIB不同;a determining unit, configured to determine that the local system MIB of the third port is different from the local system MIB of the first port that is sent by the second device by the receiving unit;
    所述确定单元,还用于基于所述第三端口的本地系统MIB与所述第一端口的本地MIB系统不同确定所述第一端口与所述第二设备的物理连接发生错误或者所述第三端口与所述第二设备的物理连接发生错误。The determining unit is further configured to determine, according to the local system MIB of the third port, that the physical connection between the first port and the second device is incorrect or the first one is different from the local MIB system of the first port An error occurs in the physical connection of the three ports to the second device.
  11. 根据权利要求10所述的第一设备,其特征在于,所述接收单元,还用于通过所述第三端口接收所述第二设备的第二端口发送的标识信息,所述标识信息用于标识所述第二设备发送的所述第一端口的本地系统MIB是所述第二设备的端口的远端系统MIB;The first device according to claim 10, wherein the receiving unit is further configured to receive, by using the third port, identifier information sent by a second port of the second device, where the identifier information is used by Determining, by the second device, that the local system MIB of the first port is a remote system MIB of a port of the second device;
    所述确定单元具体用于:The determining unit is specifically configured to:
    基于所述标识信息的指示比较所述第三端口的本地系统MIB与 所述第二设备发送的所述第一端口的本地系统MIB;Comparing the local system MIB of the third port with the indication of the identification information The local system MIB of the first port sent by the second device;
    基于所述比较的结果确定所述第三端口的本地系统MIB与所述第一端口的本地系统MIB不同。Based on the result of the comparison, it is determined that the local system MIB of the third port is different from the local system MIB of the first port.
  12. 根据权利要求11所述的第一设备,其特征在于,所述接收单元用于:通过所述第三端口接收所述第二设备的第二端口发送的链路层发现协议LLDP报文,所述LLDP报文中携带所述第一端口的本地系统MIB以及所述标识信息。The first device according to claim 11, wherein the receiving unit is configured to: receive, by using the third port, a link layer discovery protocol LLDP packet sent by a second port of the second device, where The local system MIB of the first port and the identifier information are carried in the LLDP packet.
  13. 根据权利要求12所述的第一设备,其特征在于,所述LLDP报文包括第一TLV和第二TLV,所述标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,所述第一TLV中的类型字段的值指示所述第一TLV中的信息串字段携带的是设备的标识,所述第二TLV中的类型字段的值指示所述第二TLV中的信息串字段携带的是端口的标识,所述第二设备的端口的远端系统MIB包括所述第一设备的标识以及所述第一端口的标识,所述第一TLV中的类型字段的值用于标识所述第二设备发送的所述第一设备的标识是所述第二设备的端口的远端系统MIB中的所述第一设备的标识,所述第二TLV中的类型字段的值用于标识所述第二设备发送的所述第一端口的标识是所述第二设备的端口的远端系统MIB中的所述第一端口的标识。The first device according to claim 12, wherein the LLDP message includes a first TLV and a second TLV, and the identification information includes a value of a type field in the first TLV and a type in the second TLV. a value of the field, the value of the type field in the first TLV indicates that the information string field in the first TLV carries an identifier of the device, and the value of the type field in the second TLV indicates the second TLV The information string field in the port carries the identifier of the port, and the remote system MIB of the port of the second device includes the identifier of the first device and the identifier of the first port, and the type field in the first TLV The value of the second device is used to identify that the identifier of the first device sent by the second device is the identifier of the first device in the remote system MIB of the port of the second device, and the type in the second TLV The value of the field is used to identify that the identifier of the first port sent by the second device is the identifier of the first port in the remote system MIB of the port of the second device.
  14. 根据权利要求10-13任一项所述的第一设备,其特征在于,所述发送单元还用于:The first device according to any one of claims 10 to 13, wherein the sending unit is further configured to:
    向管理设备发送错误告警,所述错误告警携带所述第一端口的标识或所述第三端口的标识,所述错误告警中的所述第一端口的标识用于标识所述第一端口与所述第二设备的物理连接发生错误,所述错误告警中的所述第三端口的标识用于标识所述第三端口与所述第二设备的物理连接发生错误。Sending an error alarm to the management device, where the error alarm carries the identifier of the first port or the identifier of the third port, where the identifier of the first port in the error alarm is used to identify the first port and The physical connection of the second device is incorrect, and the identifier of the third port in the error alarm is used to identify that the physical connection between the third port and the second device is incorrect.
  15. 一种第二设备,所述第二设备包括第二端口,其特征在于,包括:A second device, where the second device includes a second port, including:
    接收单元,用于通过所述第二端口接收第一设备的第一端口发送的所述第一端口的本地系统管理信息库MIB;a receiving unit, configured to receive, by using the second port, a local system management information base MIB of the first port that is sent by the first port of the first device;
    发送单元,用于通过所述第二端口向所述第一设备的第三端口发送所述接收单元接收的所述第一端口的本地系统MIB。 And a sending unit, configured to send, by using the second port, a local system MIB of the first port that is received by the receiving unit to a third port of the first device.
  16. 根据权利要求15所述的第二设备,其特征在于,所述发送单元还用于:通过所述第二端口向所述第一设备的第三端口发送标识信息,所述标识信息用于标识所述第二设备发送的所述第一端口的本地系统MIB是所述第二设备的端口的远端系统MIB。The second device according to claim 15, wherein the sending unit is further configured to: send, by using the second port, identifier information to a third port of the first device, where the identifier information is used to identify The local system MIB of the first port sent by the second device is a remote system MIB of a port of the second device.
  17. 根据权利要求16所述的第二设备,其特征在于,所述发送单元用于:通过所述第二端口向所述第一设备的第三端口发送链路层发现协议LLDP报文,所述LLDP报文中携带所述第一端口的本地系统MIB以及所述标识信息。The second device according to claim 16, wherein the sending unit is configured to: send, by using the second port, a link layer discovery protocol LLDP packet to a third port of the first device, where The LLDP packet carries the local system MIB of the first port and the identifier information.
  18. 根据权利要求17所述的第二设备,其特征在于,所述LLDP报文包括第一TLV和第二TLV,所述标识信息包括第一TLV中的类型字段的值以及第二TLV中的类型字段的值,所述第一TLV中的类型字段的值指示所述第一TLV中的信息串字段携带的是设备的标识,所述第二TLV中的类型字段的值指示所述第二TLV中的信息串字段携带的是端口的标识,所述第二设备的端口的远端系统MIB包括所述第一设备的标识以及所述第一端口的标识,所述第一TLV中的类型字段的值用于标识所述第二设备发送的所述第一设备的标识是所述第二设备的端口的远端系统MIB中的所述第一设备的标识,所述第二TLV中的类型字段的值用于标识所述第二设备发送的所述第一端口的标识是所述第二设备的端口的远端系统MIB中的所述第一端口的标识。 The second device according to claim 17, wherein the LLDP message includes a first TLV and a second TLV, and the identification information includes a value of a type field in the first TLV and a type in the second TLV. a value of the field, the value of the type field in the first TLV indicates that the information string field in the first TLV carries an identifier of the device, and the value of the type field in the second TLV indicates the second TLV The information string field in the port carries the identifier of the port, and the remote system MIB of the port of the second device includes the identifier of the first device and the identifier of the first port, and the type field in the first TLV The value of the second device is used to identify that the identifier of the first device sent by the second device is the identifier of the first device in the remote system MIB of the port of the second device, and the type in the second TLV The value of the field is used to identify that the identifier of the first port sent by the second device is the identifier of the first port in the remote system MIB of the port of the second device.
PCT/CN2015/085123 2014-07-31 2015-07-25 Method for locating port connection error and related device WO2016015606A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410375463.6 2014-07-31
CN201410375463.6A CN105450432A (en) 2014-07-31 2014-07-31 Method for positioning port connection error and associated equipment

Publications (1)

Publication Number Publication Date
WO2016015606A1 true WO2016015606A1 (en) 2016-02-04

Family

ID=55216765

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/085123 WO2016015606A1 (en) 2014-07-31 2015-07-25 Method for locating port connection error and related device

Country Status (2)

Country Link
CN (1) CN105450432A (en)
WO (1) WO2016015606A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3997088A4 (en) * 2019-07-10 2022-12-28 Aucentra Therapeutics Pty Ltd Derivatives of 4-(imidazo[l,2-a]pyridin-3-yl)-n-(pyridinyl)pyrimidin- 2-amine as therapeutic agents

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542834B (en) * 2017-09-22 2021-07-16 华为技术有限公司 Method for determining connection error of NC chip and NC chip
CN109951325B (en) * 2019-02-28 2020-11-27 华为技术有限公司 Network cable connection checking method and device
CN112866118B (en) * 2019-11-12 2022-09-02 北京华为数字技术有限公司 Method, device and storage medium for detecting port capability information of network equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050220036A1 (en) * 2004-03-31 2005-10-06 Kiichi Sugitani Layer 2 loop detection system
CN101834679A (en) * 2010-04-26 2010-09-15 福建星网锐捷网络有限公司 Port test method, device and system
CN103236941A (en) * 2013-04-03 2013-08-07 华为技术有限公司 Link discovery method and device
CN103354509A (en) * 2013-07-11 2013-10-16 杭州华三通信技术有限公司 Link connection information acquisition method and equipment thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101835186A (en) * 2010-03-01 2010-09-15 华为技术有限公司 Detection method and detection device of misconnection of Yuanyang lines and base station subsystem
CN102427410B (en) * 2011-12-02 2014-09-10 北京星网锐捷网络技术有限公司 Method, device and system for processing fiber channel identity, and network equipment
US9391842B2 (en) * 2012-06-15 2016-07-12 Telefonaktiebolaget L M Ericsson (Publ) Self-configuring transport network
WO2015051493A1 (en) * 2013-10-08 2015-04-16 华为技术有限公司 Loop detection method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050220036A1 (en) * 2004-03-31 2005-10-06 Kiichi Sugitani Layer 2 loop detection system
CN101834679A (en) * 2010-04-26 2010-09-15 福建星网锐捷网络有限公司 Port test method, device and system
CN103236941A (en) * 2013-04-03 2013-08-07 华为技术有限公司 Link discovery method and device
CN103354509A (en) * 2013-07-11 2013-10-16 杭州华三通信技术有限公司 Link connection information acquisition method and equipment thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3997088A4 (en) * 2019-07-10 2022-12-28 Aucentra Therapeutics Pty Ltd Derivatives of 4-(imidazo[l,2-a]pyridin-3-yl)-n-(pyridinyl)pyrimidin- 2-amine as therapeutic agents

Also Published As

Publication number Publication date
CN105450432A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
US11329881B2 (en) Method and system for network topology enforcement
US8576727B2 (en) System and method for unique identifier exchange during auto-negotiation
US8583780B2 (en) Discovery of duplicate address in a network by reviewing discovery frames received at a port
CN110224935B (en) Method and device for processing multicast data message
US11362935B2 (en) Automatic multi-chassis link aggregation configuration with link layer discovery
WO2019076047A1 (en) Traffic forwarding method and traffic forwarding apparatus
US9883010B2 (en) Method, apparatus, device and system for generating DHCP snooping binding table
WO2016015606A1 (en) Method for locating port connection error and related device
US10855576B2 (en) Information transmission method and device
CN102647312B (en) A kind of detection method of whole net multicast topology and device
CN110011941B (en) Message forwarding method and device
US20190335386A1 (en) Protocol to detect if uplink is connected to 802.1d noncompliant device
WO2014110707A1 (en) Method, device, and system for detecting interconnection error
US9893979B2 (en) Network topology discovery by resolving loops
US9985862B2 (en) MEP configuration method and network device
JP2011044955A (en) Setting change method by network manager equipment and program, control method and program of network equipment, network manager equipment, and network equipment
US20210377125A1 (en) Network Topology Discovery Method, Device, and System
US10148515B2 (en) Determining connections of non-external network facing ports
US9667439B2 (en) Determining connections between disconnected partial trees
CN115514719B (en) Message sending method, device, switch and readable storage medium
WO2023011047A1 (en) Processing method and apparatus
CN107547341B (en) Access method and device of virtual extensible local area network VXLAN
WO2011143938A1 (en) Method and system for managing user ports in aggregation links
CN108418709B (en) Port aggregation method and device
EP4094421A2 (en) Pce controlled network reliability

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15827745

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15827745

Country of ref document: EP

Kind code of ref document: A1