Network topology anomaly identification method, device and computer equipment
By using the main port and backup port of the sending card to send field synchronization frame signals in the LED display control system, combined with the LLDP protocol to identify neighboring nodes, generate the main link and backup link and compare information consistency, the problem of low network topology identification efficiency in the prior art is solved, and fast and accurate topology identification and anomaly monitoring are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2026-04-10
AI Technical Summary
Existing LED display control systems suffer from low efficiency in network topology identification and are unable to detect anomalies in a timely manner, resulting in low node identification efficiency.
By using the main port and backup port of the sending card to send field synchronization frame signals in the LED display control system, the LLDP protocol is used to identify neighboring nodes and generate main and backup links. The consistency of the information between the two is compared to determine topology anomalies and form the network topology.
It enables rapid and accurate identification of the network topology of the LED display control system, timely detection of link anomalies, and improves node identification efficiency and system stability.
Smart Images

Figure CN116232952B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of display screen control, and in particular to a network topology abnormality identification method and device, a method and device, a computer device, a storage medium, and a computer program product. BACKGROUND
[0002] An LED display control system is a system for controlling an LED large screen to correctly display according to user requirements. The LED display control system generally includes a sending card, a receiving card, and a switch device. The sending card generally has multiple load-bearing network ports, and each network port can carry multiple receiving cards. In order to correctly display the LED large screen, it is necessary to timely understand the connection of each device and obtain the abnormality of the LED display control system, that is, to know the topology structure and abnormality of the entire display control system. However, the internal interconnection of the general LED display control system is mostly in a semi-automatic form, and the system needs to identify the network topology multiple times in stages, which makes the node identification efficiency of the LED display control system low.
[0003] Therefore, the current LED display control system has the problems of low identification efficiency of the network topology and inability to monitor the abnormality of the LED display control system. SUMMARY
[0004] Therefore, it is necessary to provide a network topology abnormality identification method, device, computer device, computer readable storage medium, and computer program product in view of the above technical problems.
[0005] In a first aspect, the present application provides a network topology abnormality identification method applied to an LED display control system including a host computer, a sending card, a first switch, a second switch, and a receiving card. The sending card includes a port pair, and the port pair includes a main port and a backup port.
[0006] The host computer is connected to the sending card, the main port of the sending card is connected to the first switch, N receiving cards are connected in sequence to form a receiving card string, the first receiving card of the receiving card string is connected to the first switch, the Nth receiving card of the receiving card string is connected to the second switch, and the backup port of the sending card is connected to the second switch. The method includes the following steps.
[0007] Field synchronization frame signals are sent from the main port and the backup port of the sending card respectively, each device of the LED display control system processes the received field synchronization frame signals and forwards the field synchronization frame signals to the next device in the cascade respectively, a main link responding to the feedback of the field synchronization frame signal of the main port is obtained, and a backup link responding to the feedback of the field synchronization frame signal of the backup port is obtained.
[0008] If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal;
[0009] If the information of the receiving card string on the main link is consistent with the information of the receiving card string on the backup link, the network topology of the LED display screen control system is formed based on the main link and the backup link.
[0010] In one of the embodiments, the field synchronization frame signal is sent from the main port of the sending card, and each device of the LED display screen control system forwards the received field synchronization frame signal to the next device in the cascade after processing the field synchronization frame signal, and a main link responding to the feedback of the field synchronization frame signal of the main port is obtained, including:
[0011] Each node of the LED display screen control system identifies neighbor nodes based on the LLDP protocol and stores the LLDP neighbor information;
[0012] The first field synchronization frame signal is sent to the first switch through the main port of the sending card, the first field synchronization frame signal is sent to the receiving card string connected to the first switch by the first switch, the first receiving card of the receiving card string determines the starting position of the receiving card string in the current first signal sending direction according to the LLDP neighbor information, each receiving card determines its position identifier according to the LLDP neighbor information and the position identifier of the previous receiving card in turn, and updates the position identifier to the first field synchronization frame packet, and the first receiving card feedback packet recording the position identifier of each receiving card is fed back from the Nth receiving card in turn;
[0013] The first receiving card feedback packet is sent to the sending card through the first switch;
[0014] The first receiving card feedback packet is sent to the upper computer;
[0015] The first receiving card feedback packet is analyzed by the upper computer to generate the main link.
[0016] In one of the embodiments, the field synchronization frame signal is sent from the backup port of the sending card, and each device of the LED display screen control system forwards the received field synchronization frame signal to the next device in the cascade after processing the field synchronization frame signal, and a backup link responding to the feedback of the field synchronization frame signal of the backup port is obtained, including:
[0017] Each node of the LED display screen control system identifies neighbor nodes based on the LLDP protocol and stores the LLDP neighbor information;
[0018] The second field synchronization frame signal is sent to the second switch through the backup port of the sending card, the second switch sends the second field synchronization frame signal to a receiving card string connected to the second switch, the Nth receiving card of the receiving card string determines a starting point position of the receiving card string in a current second signal sending direction according to LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and a position identifier of a previous receiving card in turn, and updates the position identifier to the second field synchronization frame packet, and the first receiving card transmits a second receiving card return packet recording the position identifiers of the receiving cards in turn to the front.
[0019] The second receiving card return packet is sent to the sending card through the second switch.
[0020] The second receiving card return packet is sent to the upper computer.
[0021] The second receiving card return packet is analyzed by the upper computer to generate a backup link.
[0022] In one of the embodiments, the first field synchronization frame signal is sent to the first switch through the main port of the sending card, the first switch sends the first field synchronization frame signal to a receiving card string connected to the first switch, the first receiving card of the receiving card string determines a starting point position of the receiving card string in a current first signal sending direction according to LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and a position identifier of a previous receiving card in turn, and updates the position identifier to the first field synchronization frame packet, and the Nth receiving card transmits a first receiving card return packet recording the position identifiers of the receiving cards in turn to the front, comprising:
[0023] The first receiving card of the receiving card string determines a starting point position of the receiving card string in a current first signal sending direction according to LLDP neighbor information, and generates a first field synchronization frame packet related to the position identifier, the first field synchronization frame packet is forwarded to a next receiving card in cascade through each receiving card in turn, each receiving card determines its own position identifier according to a position identifier of a previous receiving card after receiving the first field synchronization frame packet, and updates the first field synchronization frame packet, and the Nth receiving card determines a terminal position of the receiving card string in the current first signal sending direction according to the LLDP neighbor information.
[0024] The Nth receiving card of the receiving card string sends a synchronization packet query information to the sending card through the second switch, the sending card sends a third field synchronization frame packet to the Nth receiving card of the receiving card string through the second switch, the Nth receiving card fills the position identifier into the first receiving card return packet in response to the third field synchronization frame packet, and returns the first receiving card return packet to a previous receiving card in cascade, and each receiving card fills its own position identifier into the first receiving card return packet after receiving the first receiving card return packet.
[0025] In one of the embodiments, if the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal, including:
[0026] If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, and the sum of the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link is the same as the actual number of receiving cards of the receiving card string, it is determined that the last receiving card on the main link and the last receiving card on the backup link are adjacent receiving cards on the receiving card string, and there is a fault between the last receiving card on the main link and the last receiving card on the backup link.
[0027] In one of the embodiments, if the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal, including:
[0028] If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, and the sum of the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link is less than the actual number of receiving cards of the receiving card string, it is determined that there are other receiving cards between the last receiving card on the main link and the last receiving card on the backup link, a fault between the last receiving card on the main link and the next adjacent receiving card in the first signal transmission direction, and a fault between the last receiving card on the backup link and the next adjacent receiving card in the second signal transmission direction.
[0029] In one of the embodiments, the method further includes: if the sum of the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link is the same as the actual number of receiving cards of the receiving card string, forming a loop topology structure of the LED display screen control system based on the main link and the backup link.
[0030] In one of the embodiments, the method further includes:
[0031] If it is determined that the network topology is abnormal, the control signal is sent to each node on the main link through the main port of the sending card, and the control signal is sent to each node on the backup link through the backup port of the sending card.
[0032] In a second aspect, the application further provides an abnormality identification device of a network topology, which is applied to an LED display screen control system including a host computer, a sending card, a first switch, a second switch and a receiving card, the sending card includes a port pair, the port pair includes a main port and a backup port;
[0033] The host computer is connected to a sending card, a main port of the sending card is connected to a first switch, N receiving cards are connected in sequence to form a receiving card string, the first switch is connected to a first receiving card of the receiving card string, an Nth receiving card of the receiving card string is connected to a second switch, and a backup port of the sending card is connected to the second switch; the device comprises:
[0034] The main link and the backup link acquisition module is configured to send a field synchronization frame signal from the main port and the backup port of the sending card respectively, and each device of the LED display screen control system forwards the received field synchronization frame signal to the next device in the cascade after processing the field synchronization frame signal, and obtains a main link in response to the feedback of the field synchronization frame signal of the main port, and a backup link in response to the feedback of the field synchronization frame signal of the backup port.
[0035] The network topology abnormality determination module is configured to determine that the network topology of the LED display screen control system is abnormal if the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link.
[0036] The network topology formation module is configured to form the network topology of the LED display screen control system based on the main link and the backup link if the information of the receiving card string on the main link is consistent with the information of the receiving card string on the backup link.
[0037] In a third aspect, the present application further provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0038] The main link and the backup link acquisition module is configured to send a field synchronization frame signal from the main port and the backup port of the sending card respectively, and each device of the LED display screen control system forwards the received field synchronization frame signal to the next device in the cascade after processing the field synchronization frame signal, and obtains a main link in response to the feedback of the field synchronization frame signal of the main port, and a backup link in response to the feedback of the field synchronization frame signal of the backup port.
[0039] The network topology abnormality determination module is configured to determine that the network topology of the LED display screen control system is abnormal if the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link.
[0040] The network topology formation module is configured to form the network topology of the LED display screen control system based on the main link and the backup link if the information of the receiving card string on the main link is consistent with the information of the receiving card string on the backup link.
[0041] In a fourth aspect, the present application further provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:
[0042] The field synchronization frame signals are respectively sent from the main port and the backup port of the sending card, and each device of the LED display screen control system processes the received field synchronization frame signals and then forwards the field synchronization frame signals to the next device in cascade to obtain a main link responding to the feedback of the field synchronization frame signals of the main port and a backup link responding to the feedback of the field synchronization frame signals of the backup port;
[0043] If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal.
[0044] If the information of the receiving card string on the main link is consistent with the information of the receiving card string on the backup link, the network topology of the LED display screen control system is formed based on the main link and the backup link.
[0045] In a fifth aspect, the present application further provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the following steps:
[0046] The field synchronization frame signals are respectively sent from the main port and the backup port of the sending card, and each device of the LED display screen control system processes the received field synchronization frame signals and then forwards the field synchronization frame signals to the next device in cascade to obtain a main link responding to the feedback of the field synchronization frame signals of the main port and a backup link responding to the feedback of the field synchronization frame signals of the backup port;
[0047] If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal.
[0048] If the information of the receiving card string on the main link is consistent with the information of the receiving card string on the backup link, the network topology of the LED display screen control system is formed based on the main link and the backup link.
[0049] The abnormality identification method, device, computer device, storage medium and computer program product of the network topology, by using the main port and the backup port of the transmitter, the main port being connected with the first switch, the first switch being connected with the first receiving card of the receiving card string, the backup port being connected with the second switch, the second switch being connected with the Nth receiving card of the receiving card string, based on the structure of the LED display screen control system, by respectively sending the field synchronization frame signal from the main port and the backup port of the transmitter, each device of the LED display screen control system processes the received field synchronization frame signal and respectively forwards the field synchronization frame signal to the next device in cascade, a main link responding to the feedback of the field synchronization frame signal of the main port is obtained, and a backup link responding to the feedback of the field synchronization frame signal of the backup port is obtained. If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal; if the information of the receiving card string on the main link is consistent with the information of the receiving card string on the backup link, the network topology of the LED display screen control system is formed based on the main link and the backup link. The method sends the synchronization frame signal from two directions respectively to obtain the comparison main link and the backup link, and determines whether the state of the LED display screen control system is abnormal by comparing the information of the receiving card string of the comparison main link and the backup link, so that the connection of the link can be monitored, and the link abnormality can be found in time. BRIEF DESCRIPTION OF DRAWINGS
[0050] Figure 1 An application environment diagram of the LED display screen control system in an embodiment;
[0051] Figure 2 An application environment diagram of the LED display screen control system in an embodiment;
[0052] Figure 3 An application environment diagram of the LED display screen control system in an embodiment;
[0053] Figure 4 An application environment diagram of the LED display screen control system in an embodiment;
[0054] Figure 5 A flowchart of the abnormality identification method of the network topology in an embodiment;
[0055] Figure 6 A flowchart of the field synchronization frame signal sending in an embodiment;
[0056] Figure 7 A schematic diagram of the LED display screen control system in another embodiment;
[0057] Figure 8 A flowchart of the receiving card feedback package acquisition of the transmitter in an embodiment;
[0058] Figure 9 Flowchart for generating topology structure in an embodiment;
[0059] Figure 10 Flowchart for network topology identification method in an embodiment;
[0060] Figure 11 Complete topology diagram of LED display screen control system in an embodiment;
[0061] Figure 12 Flowchart for network topology anomaly identification method in another embodiment;
[0062] Figure 13 Structural block diagram of network topology anomaly identification device in an embodiment;
[0063] Figure 14 Internal structure diagram of computer device in an embodiment. DETAILED DESCRIPTION
[0064] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0065] The network topology anomaly identification method provided by the embodiments of the present application can be applied to an LED display screen control system. The system is connected by a host computer, a sending card, a gigabit uplink switch, a receiving card and other devices, but different application scenarios are formed due to different connection relationships of the host computer, the sending card, the gigabit uplink switch and the receiving card. The application scenarios can be as shown in Figures 1 to 4 In these application scenarios, the host computer is connected to the sending card, the sending card is connected to multiple switches through multiple ports, and the switches are connected to multiple receiving card strings. As shown in Figure 1As shown, the LED display screen control system includes an upper computer, a sending card, a first switch, a second switch and a receiving card. The sending card includes a port pair, and the port pair includes a main port and a backup port; the upper computer is connected to the sending card, the main port of the sending card is connected to the first switch, N receiving cards are connected in sequence to form a receiving card string, the first receiving card of the receiving card string is connected to the first switch, the Nth receiving card of the receiving card string is connected to the second switch, and the backup port of the sending card is connected to the second switch; a field synchronization frame signal is sent from the main port and the backup port of the sending card respectively, each device of the LED display screen control system processes the received field synchronization frame signal and forwards the field synchronization frame signal to the next device in cascade, a main link responding to the feedback of the field synchronization frame signal of the main port is obtained, and a backup link responding to the feedback of the field synchronization frame signal of the backup port is obtained; if the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal; if the information of the receiving card string on the main link is consistent with the information of the receiving card string on the backup link, the network topology of the LED display screen control system is formed based on the main link and the backup link.
[0066] In one embodiment, as shown in Figure 5 , a network topology anomaly identification method is provided, which is applied to Figures 1 to 4 the LED display screen control system shown, and includes the following steps:
[0067] Step 502, a field synchronization frame signal is sent from the main port and the backup port of the sending card respectively, each device of the LED display screen control system processes the received field synchronization frame signal and forwards the field synchronization frame signal to the next device in cascade, a main link responding to the feedback of the field synchronization frame signal of the main port is obtained, and a backup link responding to the feedback of the field synchronization frame signal of the backup port is obtained.
[0068] Among them, the sending card is responsible for collecting and summarizing the node connection information in real time and submitting it to the upper computer software; the upper computer is responsible for the automatic collection and generation of the topology structure, and finally displays it on the software interface in the form of UI. The switch only forwards data and does not participate in data processing. The two-layer switch marked by the MAC address is responsible for the driving of the LED display screen. Figure 5 In the LED display screen control system shown, the switch is a market general uplink 10G downlink 1G switch or a customized uplink 20G, 40G or 100G downlink 5G, 10G switch.
[0069] After the whole link is physically connected, the adjacent devices are identified and information is exchanged first, and then the host computer starts to collect and combine the topology information according to the situation. When the host computer receives the feedback of the video source input from the sending card, it directly commands the sending card to use the synchronization signal of the video source to synchronize the cyclic sending of the field synchronization frame signal. When there is no video source, the sending card timer is enabled to cyclically send the field synchronization frame signal. The flow of the field synchronization frame signal is as follows Figure 6 In the whole system, the ports of the sending card simultaneously send the field synchronization frame signal. Each receiving card receives the field synchronization frame signal from the main port and the backup port in turn. The receiving card receives the field synchronization frame signal at a time plus a dynamic time delay (a single receiving card parsing synchronization frame delay time multiplied by (the number of receiving cards minus the current receiving card position number) to obtain a time point. The time difference between the receiving card receiving the field synchronization frame signal sent by the main port and the receiving card receiving the field synchronization frame signal sent by the backup port can be within 10CLK error. The time synchronization between the receiving cards is accurately achieved. The backup link normally only sends the field synchronization frame signal. The field synchronization frame signal contains a backup identification. The receiving card returns a receiving card back transmission packet with the main backup identification.
[0070] Specifically, the field synchronization frame signal is sent by the main port of the sending card to the switch connected with the main port. The switch connected with the main port forwards the field synchronization frame signal to the receiving card string. Each receiving card processes the received field synchronization frame signal and forwards the field synchronization frame signal to the next connected receiving card. The host computer obtains the main link in response to the field synchronization frame signal. The field synchronization frame signal is sent by the backup port of the sending card to the switch connected with the backup port. The switch connected with the backup port forwards the field synchronization frame signal to the receiving card string. Each receiving card processes the received field synchronization frame signal and forwards the field synchronization frame signal to the next connected receiving card. The host computer obtains the backup link in response to the field synchronization frame signal. The sending card uploads the receiving card back transmission packet once for each time the field synchronization frame signal is sent, realizing real-time acquisition of the link connection state.
[0071] Step 504, if the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal.
[0072] In the case that the card string is normal, the order of the receiving cards in the card string on the main link is opposite to the order of the receiving cards in the card string on the backup link, that is, the first receiving card in the card string on the main link is the last receiving card in the card string on the backup link, so the information of the first receiving card in the card string on the main link should be compared with the information of the last receiving card in the card string on the backup link, that is, the information of each receiving card in the card string on the main link is compared with the information of each corresponding receiving card in the card string on the backup link, and if the information of each receiving card in the card string on the main link is inconsistent with the information of each corresponding receiving card in the card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal.
[0073] In step 506, if the information of the card string on the main link is consistent with the information of the card string on the backup link, the network topology of the LED display screen control system is formed based on the main link and the backup link.
[0074] Specifically, the information of each receiving card in the card string on the main link is compared with the information of each corresponding receiving card in the card string on the backup link, and if the information of each receiving card in the card string on the main link is consistent with the information of each corresponding receiving card in the card string on the backup link, it is determined that the network topology of the LED display screen control system is normal, and the network topology of the LED display screen control system is formed based on the main link and the backup link.
[0075] In the embodiment, the field synchronization frame signal is sent to the device connected to the main port and the backup port, the devices of the LED display screen control system process the received field synchronization frame signal and respectively forward the field synchronization frame signal to the next device in the cascade, the main link fed back by the main port and the backup link fed back by the backup port are obtained, and the information of the card string on the main link is compared with the information of the card string on the backup link to determine the abnormal condition of the LED display screen control system. In the case that the LED display screen control system is normal, the network topology of the LED display screen control system is formed based on the main link and the backup link.
[0076] In one embodiment, the field synchronization frame signal is sent from the main port of the sending card, the devices of the LED display screen control system process the received field synchronization frame signal and respectively forward the field synchronization frame signal to the next device in the cascade, and the main link responding to the feedback of the field synchronization frame signal of the main port is obtained, which includes:
[0077] Each node of the LED display screen control system identifies the neighbor node based on the LLDP protocol and stores the LLDP neighbor information.
[0078] The first field synchronization frame signal is sent to the first switch through the main port of the sending card, the first switch sends the first field synchronization frame signal to a receiving card string connected to the first switch, a first receiving card of the receiving card string determines a starting position of the receiving card string in a current first signal sending direction according to LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and a position identifier of a previous receiving card in turn, and updates the position identifier to the first field synchronization frame packet, and the first receiving card feedback packet with the position identifiers of the receiving cards is fed back from the Nth receiving card in turn to the front;
[0079] The first receiving card feedback packet is sent to the sending card through the first switch;
[0080] The first receiving card feedback packet is sent to the upper computer;
[0081] The first receiving card feedback packet and the information of the switch are parsed through the upper computer, and a main link is generated.
[0082] In Table 1, the field synchronization frame signal is a two-layer Ethernet frame, the destination MAC is 0XFFFFFFFFFFFF, the switch can recognize the MAC address for broadcasting, the local MAC is a fixed MAC of the port of the sending card for sending the synchronization frame signal, and the MAC is also a MAC of the sending card device recognized by the switch through an LLDP frame packet, the frame type is defined as 0X00 in the system, and other data can also be defined, and there is no excessive requirement, and only the identification of the receiving card for the synchronization packet is used, the sending card port number is a port number of the next stage to which the synchronization frame signal is transmitted through the sending card, the switch port number, the main and standby link identifiers and other information, and the minimum frame is 64.
[0083]
[0084]
[0085] Table 2 is a receiving card feedback packet, the local MAC is a MAC of the first receiving card in the link, the destination MAC is the local MAC information in the synchronization frame, the frame type is 0x01, the [31:24] of Table content position 6 and the [7:0] and [31:16] of position 7 are filled by the receiving card, and other information is carried by the synchronization frame. The receiving card 1 information from Table position 12 to the last receiving card N information is filled by the corresponding receiving card.
[0086]
[0087]
[0088] Specifically, the sending card sends the LLDP frame packet to the switch, the switch generates the LLDP neighbor information after receiving the LLDP frame packet, and updates the LLDP neighbor information in the LLDP storage information list. The receiving card sends the LLDP frame packet to the switch, the switch connected with the receiving card generates the LLDP neighbor information after receiving the LLDP frame packet, and updates the LLDP neighbor information in the LLDP storage information list. The LLDP frame packet sent by the switch to the sending card or the receiving card is acquired by the sending card or the receiving card connected therewith. That is, based on the LLDP protocol, the devices at both ends of each node complete mutual recognition, and the information of the opposite party is generated as the LLDP neighbor information and is constantly refreshed.
[0089] As shown in Figure 7 and Figure 8 , the solid arrow under the port 1 of the sending card is the transmission route of the first field synchronization frame signal, and the dashed arrow under the port 1 of the sending card is the transmission route of the backhaul packet. The main port of the sending card sends the first field synchronization frame signal to the first switch, the first switch forwards the first field synchronization frame signal to the first receiving card of the receiving card string, the first receiving card determines the starting position of the receiving card string in the current first signal sending direction according to the LLDP neighbor information, the receiving card parses the receiving card position number 1, and at the same time the receiving card identifies that the next device is the receiving card, adds 1 to the receiving card position number as the local number, replaces the receiving card number in the synchronization frame with the local number, and forwards it to the next receiving card,..., until it is forwarded to the receiving card N. The receiving card N automatically identifies through the node that the other port connected therewith is the second switch or is not connected, at this time the receiving card N confirms that it is located at the terminal position of the receiving card string, that is, the tail card. As the tail card, only the receiving card position number is added by 1 as the local number, and the synchronization frame is not transmitted to the next level.
[0090] The receiving card N fills the position identifier into the first receiving card backhaul packet, and returns the first receiving card backhaul packet to the previous receiving card N-1 of the receiving card string. The previous receiving card fills its own position identifier into the first receiving card backhaul packet after receiving the first receiving card backhaul packet,..., until the backhaul packet is filled to the first receiving card of the receiving card string, that is, the receiving card 1. The receiving card 1 fills its own position identifier into the first receiving card backhaul packet after receiving the first receiving card backhaul packet. The receiving card 1 sends the first receiving card backhaul packet to the sending card connected with the first switch through the first switch.
[0091] As shown in Figure 9As shown, the sending card receives the first receiving card back transmission package sent by the first switch in real time, the sending card stores all the first receiving card back transmission packages to the host computer, and sends an interrupt signal to the host computer. After receiving the interrupt signal, the host computer reads the first receiving card back transmission package, parses the first receiving card back transmission package, and marks the corresponding sending card port according to the sending card port number in the first receiving card back transmission package. According to whether there is a switch behind the sending card, the switch is constructed, the uplink port is lit according to the sending card port number connected by the switch, the downlink port number is lit according to the port number of the sending card connected by the switch, and the receiving card number is marked to the corresponding connected switch port. The information of the corresponding receiving card can be opened by clicking the number icon. In this way, it can be avoided that the receiving card number is too large to be displayed on the user interface. According to the information of the receiving card, the switch and the sending card in the first receiving card back transmission package, a main link is obtained, and all the main links of the LED display screen control system are obtained according to all the first receiving card back transmission packages received by the sending card.
[0092] In the embodiment, the general LLDP protocol is used to realize automatic and dynamic update of identification of connection device related information, especially identification of port numbers of the sending card, the receiving card and the switch, backup information of the device, and backup information of the device port.
[0093] In another embodiment, as shown in Figure 10 The field synchronization frame signal is sent from the backup port of the sending card, and each device of the LED display screen control system processes the received field synchronization frame signal and forwards the field synchronization frame signal to the next device in the cascade to obtain a backup link of the field synchronization frame signal feedback of the response backup port, including:
[0094] Each node of the LED display screen control system identifies the neighbor node based on the LLDP protocol and stores the LLDP neighbor information;
[0095] The second field synchronization frame signal is sent to the second switch through the backup port of the sending card, the second switch sends the second field synchronization frame signal to the receiving card string connected with the second switch, the Nth receiving card of the receiving card string determines the starting position of the receiving card string in the current second signal sending direction according to the LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and the position identifier of the previous receiving card, and updates the position identifier to the second field synchronization frame package. The first receiving card returns the second receiving card back transmission package recording the position identifier of each receiving card in turn;
[0096] The second receiving card back transmission package is sent to the sending card through the second switch;
[0097] Send the second receiving card back-to-back package to the host computer;
[0098] Generate backup link by analyzing the second receiving card back-to-back package by the host computer.
[0099] Specifically, the sending card sends the LLDP frame package to the switch, and the switch generates the LLDP neighbor information after receiving the LLDP frame package, and updates the LLDP neighbor information in the LLDP storage information list. The receiving card sends the LLDP frame package to the switch, and the switch connected to the receiving card generates the LLDP neighbor information after receiving the LLDP frame package, and updates the LLDP neighbor information in the LLDP storage information list. The LLDP frame package sent by the switch to the sending card or the receiving card obtains the LLDP neighbor information from the sending card or the receiving card connected thereto. That is, based on the LLDP protocol, the devices at both ends of each node complete mutual recognition, and generate the LLDP neighbor information of the opposite party and constantly refresh it.
[0100] Specifically, all devices identify the neighbor information of the port connection based on the link layer discovery protocol LLDP data package. For example, the sending card and the switch can send the LLDP data package with their own information to each other to identify themselves and their working status. The receiving card and the switch, as well as the receiving card and the receiving card, also identify each other. The information carried in the LLDP includes the MAC address of the device, the port number of the device communication (the port number of the sending card is 1-12, the downlink port number of the switch is 1-12, and the two uplink port numbers are 13 and 14), the type of the device (the type of the sending card is X54, the type of the switch is X42, and the type of the receiving card is X52), and other information.
[0101] As shown in Figure 7 The solid arrow under the port 1 of the sending card is the transmission route of the first field synchronization frame signal, and the dashed arrow under the port 1 of the sending card is the transmission route of the back-to-back package. The backup port of the sending card sends the second field synchronization frame signal to the second switch, which forwards the second field synchronization frame signal to the Nth receiving card in the receiving card string, i.e., receiving card N. The receiving card N determines the starting position of the receiving card string in the current second signal sending direction according to the LLDP neighbor information, and the receiving card analyzes the receiving card position number 1. At the same time, the receiving card identifies that the next device is a receiving card, adds 1 to the receiving card position number as a local number, replaces the receiving card number in the synchronization frame with the local number, and forwards it to the next receiving card, and so on until it is forwarded to the first receiving card, i.e., receiving card 1. The receiving card 1 automatically identifies the node and discovers that the other port connected thereto is the first switch or is not connected. At this time, the receiving card 1 confirms that it is located at the terminal position of the receiving card string, i.e., the tail card. As the tail card, only the receiving card position number is added by 1 as the local number, and the synchronization frame is not transmitted to the next level.
[0102] The receiving card 1 fills the position identifier into the second receiving card return packet, and returns the second receiving card return packet to the next receiving card 2 of the receiving card string. After the next receiving card receives the first receiving card return packet, the next receiving card fills its own position identifier into the second receiving card return packet, and so on, until the second receiving card return packet is filled to the Nth receiving card of the receiving card string, i.e., the receiving card N. After the receiving card N receives the second receiving card return packet, the receiving card N fills its own position identifier into the second receiving card return packet. The receiving card N sends the second receiving card return packet to the sending card connected to the second switch through the second switch. After the sending card receives the second receiving card return packet sent by the second switch, the sending card stores all the second receiving card return packets to the host computer, and sends an interrupt signal to the host computer.
[0103] After the host computer receives the interrupt signal, reads the second receiving card return packet, and analyzes the second receiving card return packet, the node information of each component is obtained, the link information of each receiving card is obtained by summarizing the node information, and the link information of the receiving card, the switch and the sending card is obtained, i.e., a backup link is obtained according to the second receiving card return packet. The sending card receives all the second receiving card return packets to obtain all the backup links of the LED display screen control system.
[0104] In the embodiment, the general LLDP protocol is used to automatically and dynamically update the identification of the connection device related information, especially the port number identification of the sending card, the receiving card and the switch, the backup information of the device, and the device port backup information. The host computer analyzes and processes all the stored first receiving card return packets to obtain all the backup links of the LED display screen control system.
[0105] In another embodiment, the first field synchronization frame signal is sent to the first switch through the main port of the sending card, the first switch sends the first field synchronization frame signal to the receiving card string connected to the first switch, the first receiving card of the receiving card string determines the starting point position of the receiving card string in the current first signal sending direction according to the LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and the position identifier of the previous receiving card, and updates the position identifier to the first field synchronization frame packet, and the first receiving card return packet recording the position identifier of each receiving card is returned from the Nth receiving card to the front in turn, including:
[0106] The first receiving card of the receiving card string determines the starting point position of the receiving card string in the current first signal sending direction according to the LLDP neighbor information, and generates the first field synchronization frame packet related to the position identifier. The first field synchronization frame packet is forwarded to the next receiving card in turn through each receiving card. After each receiving card receives the first field synchronization frame packet, the position identifier of each receiving card is determined according to the position identifier of the previous receiving card, and the first field synchronization frame packet is updated. The Nth receiving card determines the end point position of the receiving card string in the current first signal sending direction according to the LLDP neighbor information.
[0107] As Figure 7 shown, the Nth receiving card of the receiving card string sends a synchronous packet query information to the sending card through the second switch, the sending card sends a third field synchronous frame packet to the Nth receiving card of the receiving card string through the second switch, the Nth receiving card fills a position identifier into a first receiving card return packet in response to the third field synchronous frame packet, and returns the first receiving card return packet to the previous receiving card in the cascade, and each receiving card fills its own position identifier into the first receiving card return packet after receiving the first receiving card return packet.
[0108] Specifically, the Nth receiving card of the receiving card string, i.e., receiving card N, sends a synchronous packet query information to the sending card through the second switch, the sending card sends a third field synchronous frame packet to the receiving card N through the second switch after receiving the synchronous packet query information, the receiving card N fills a position identifier into a first receiving card return packet in response to the third field synchronous frame packet, and returns the first receiving card return packet to the previous receiving card in the cascade, and so on until the receiving card 1 fills its own position identifier into the first receiving card return packet.
[0109] In the embodiment, the link last receiving card device reply field synchronous packet mechanism guarantees that the receiving card link can still send a return packet when a fault occurs in the middle of the link, and the whole link will not be paralyzed. The position identifiers of the receiving cards are collected by returning the first receiving card return packet, and the connection information can be dynamically updated in real time, which provides conditions for the establishment of the main link of the LED display screen control system.
[0110] In another embodiment, a second field synchronous frame signal is sent to the second switch through the main port of the sending card, the second switch sends the second field synchronous frame signal to a receiving card string connected to the second switch, the Nth receiving card of the receiving card string determines a starting point position of the receiving card string in a current second signal sending direction according to LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and the position identifier of the previous receiving card, and updates the position identifier to the second field synchronous frame packet, and the first receiving card returns a second receiving card return packet recording the position identifiers of the receiving cards in sequence to the front, including:
[0111] The Nth receiving card of the receiving card string, i.e., receiving card N, determines a starting point position of the receiving card string in a current second signal sending direction according to LLDP neighbor information, and generates a second field synchronous frame packet related to the position identifier, the second field synchronous frame packet is forwarded to the next receiving card in the cascade through each receiving card, each receiving card determines its own position identifier according to the position identifier of the previous receiving card after receiving the second field synchronous frame packet, and updates the second field synchronous frame packet, and the first receiving card determines a terminal position of the receiving card string in the current second signal sending direction according to the LLDP neighbor information.
[0112] The first receiving card in the receiving card string, i.e., receiving card 1, sends a synchronous packet query to the sending card through the first switch, the sending card sends a third field synchronous frame packet to the first receiving card in the receiving card string, i.e., receiving card 1, through the first switch, and receiving card 1 fills in the position identifier into the second receiving card return packet and returns the second receiving card return packet to the previous receiving card in the cascade, until receiving card N receives the second receiving card return packet and fills in its own position identifier into the second receiving card return packet.
[0113] In this embodiment, the position identifiers of the receiving cards are collected by returning the second receiving card return packet, and the connection information is dynamically updated in real time, thereby providing conditions for establishing the backup link of the LED display screen control system.
[0114] In another embodiment, if the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal, which includes:
[0115] If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, and the sum of the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link is the same as the actual number of receiving cards of the receiving card string, it is determined that the last receiving card on the main link and the last receiving card on the backup link are adjacent receiving cards on the receiving card string, and there is a fault between the last receiving card on the main link and the last receiving card on the backup link.
[0116] Specifically, the software combines multiple link topologies formed by the receiving card return packets with the same destination MAC into a topology structure of a sending card port, as shown in the left part. Figure 11 If the information of each receiving card in the receiving card string on the main link is inconsistent with the information of each receiving card in the receiving card string on the corresponding backup link, there is a fault between the receiving cards. When the sum of the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link is equal to the actual number of receiving cards of the receiving card string, there is a fault between the last receiving card on the main link and the last receiving card on the backup link.
[0117] In this embodiment, by comparing the information of each receiving card on the main link with the information of each receiving card on the corresponding backup link, it is determined whether there is a fault. When the sum of the number of receiving cards on the main link and the number of receiving cards on the backup link is equal to the actual number of receiving cards of the receiving card string, it is determined that the fault is between the last receiving card on the main link and the last receiving card on the backup link.
[0118] In another embodiment, if the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal, comprising:
[0119] If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, and the sum of the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link is less than the actual number of receiving cards of the receiving card string, it is determined that there are other receiving cards between the last receiving card on the main link and the last receiving card on the backup link, and the fault is between the last receiving card on the main link and the next adjacent receiving card in the first signal transmission direction, and between the last receiving card on the backup link and the next adjacent receiving card in the second signal transmission direction.
[0120] Specifically, if the information of each receiving card in the receiving card string on the main link is inconsistent with the information of each receiving card in the receiving card string on the corresponding backup link, there is a fault between the receiving cards. When the sum of the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link is less than the actual number of receiving cards of the receiving card string, there are other receiving cards between the last receiving card on the main link and the last receiving card on the backup link, and it is determined that the fault is between the last receiving card on the main link and the next adjacent receiving card in the signal transmission direction, and between the last receiving card on the backup link and the next adjacent receiving card in the signal transmission direction. At this time, the main link and the backup link cannot be integrated, the LED display control system alarms, and the alarm mode can be highlighted, identified by color. In this embodiment, gray underlines are used to identify the last receiving card on the main link and the last receiving card on the backup link.
[0121] In this embodiment, when there is a fault between the receiving cards, according to the sum of the number of receiving cards on the main link and the number of receiving cards on the backup link being less than the actual number of receiving cards of the receiving card string, it is determined that the fault is between the last receiving card on the main link and the next adjacent receiving card in the signal transmission direction, and between the last receiving card and the next adjacent receiving card in the signal transmission direction.
[0122] In another embodiment, if the sum of the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link is the same as the actual number of receiving cards of the receiving card string, the loop topology structure of the LED display screen control system is formed based on the main link and the backup link.
[0123] Specifically, as Figure 11As shown, the multiple link topologies formed by the return of the packet by the receiving card of the MAC of the same purpose are combined into a topology of a sending card port, the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link are the same as the actual number of receiving cards of the receiving card string, the last receiving card of the main link and the last receiving card of the backup link are determined as adjacent receiving cards on the receiving card string, and then it is determined that the last receiving card of the main link and the last receiving card of the backup link have a fault, and the loop topology structure is obtained according to the main link and the backup link.
[0124] In the embodiment, the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link are the same as the actual number of receiving cards of the receiving card string, it is determined that there is a fault between the last receiving card of the main link and the last receiving card of the backup link, and the loop topology structure is obtained according to the main link and the backup link.
[0125] In another embodiment, if it is determined that the network topology is abnormal, a control signal is sent to each node on the main link through the main port of the sending card, and a control signal is sent to each node on the backup link through the backup port of the sending card.
[0126] When there is an abnormality between the receiving cards, the receiving card after the fault receiving card cannot receive the synchronization frame signal sent by the main sending card, at this time, the backup port can be enabled to send data other than the synchronization frame to control the receiving card after the fault receiving card through the backup port.
[0127] Specifically, as shown in the figure Figure 7 After the host computer identifies that the switch port 2 connected to the sending card port 1 (main) is faulty, the host computer sends an instruction to the sending card to enable the sending card port 2 (backup) to connect the switch port 2 link, and sends a directional control packet other than the synchronization frame to the receiving card on the backup link, so that the fault link is recovered in time.
[0128] In the embodiment, the sending card port redundancy function is formed based on the second switch, the link is formed into a simple backup function, and the data to the receiving card after the fault receiving card can be sent by enabling the backup port, so that the receiving card after the fault receiving card is controlled. The same number of sending cards and switches can be added to form the entire link redundancy, and the system stability and security are increased.
[0129] In another embodiment, as shown in the figure Figure 12 An abnormality identification method of a network topology is provided, and the method comprises the following steps:
[0130] In step 1202, each node of the LED display screen control system identifies the neighbor nodes based on the LLDP protocol, and stores the LLDP neighbor information.
[0131] Step 1204, selecting the synchronization frame signal, the sending card sends the synchronization frame signal to the connected switch;
[0132] Step 1206, the main link and the backup link of the LED display screen control system perform time synchronization according to the synchronization frame signal;
[0133] Step 1208, in response to the third field synchronization frame signal, the receiving card fills the first receiving card backhaul package in turn and uploads the first receiving card backhaul package, and in response to the fourth field synchronization frame signal, the receiving card fills the second receiving card backhaul package in turn and uploads the second receiving card backhaul package;
[0134] Step 1210, the sending card receives the first receiving card backhaul package and the second receiving card backhaul package, stores the first receiving card backhaul package and the second receiving card backhaul package to the host computer, and after storage is completed, sends an interrupt signal to the LED display screen control system;
[0135] Step 1212, in response to the interrupt signal, the host computer receives the interrupt, reads and parses the receiving card backhaul package;
[0136] Step 1214, based on the main link and the backup link, the network topology of the LED display screen control system is constructed, and the abnormal state of the LED display screen control system is displayed.
[0137] In the embodiment, based on the LLDP protocol, the adjacent devices identify each other, send the field synchronization frame signal to the devices connected through the main port and the backup port, the devices of the LED display screen control system process the received field synchronization frame signal and respectively forward the field synchronization frame signal to the next device in cascade, the main link fed back by the main port and the backup link fed back by the backup port are obtained, the information of the receiving card string on the main link and the information of the receiving card string on the backup link are compared, and the abnormal situation of the LED display screen control system is determined. In the case that the LED display screen control system is normal, the network topology of the LED display screen control system is formed based on the main link and the backup link.
[0138] It should be understood that although each step in the flowchart involved in each of the above embodiments is shown in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each of the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be alternately executed with at least part of other steps or steps or stages in other steps.
[0139] Based on the same inventive concept, the embodiments of the present application also provide a network topology anomaly identification device for implementing the network topology anomaly identification method described above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more network topology anomaly identification device embodiments provided below can refer to the limitations of the network topology anomaly identification method in the above text, which will not be repeated here.
[0140] In one embodiment, as shown in Figure 13 A network topology anomaly identification device is provided, comprising: a main link and backup link acquisition module 1302, a network topology anomaly determination module 1304, and a network topology formation module 1306, wherein:
[0141] The main link and backup link acquisition module 1302 is configured to start transmitting field synchronization frame signals from the main port and the backup port of the sending card respectively, and each device of the LED display screen control system forwards the received field synchronization frame signals to the next device in the cascade after processing, obtains the main link responding to the field synchronization frame signal feedback of the main port, and the backup link responding to the field synchronization frame signal feedback of the backup port.
[0142] The network topology anomaly determination module 1304 is configured to determine that the network topology of the LED display screen control system is abnormal if the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link.
[0143] The network topology formation module 1306 is configured to form the network topology of the LED display screen control system based on the main link and the backup link if the information of the receiving card string on the main link is consistent with the information of the receiving card string on the backup link.
[0144] In another embodiment, the main link and backup link acquisition module is configured to identify neighbor nodes based on the LLDP protocol, and store LLDP neighbor information for each node of the LED display screen control system.
[0145] The first field synchronization frame signal is sent to the first switch through the main port of the sending card, the first switch sends the first field synchronization frame signal to a receiving card string connected with the first switch, a first receiving card of the receiving card string determines a starting point position of the receiving card string in a current first signal sending direction according to LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and a position identifier of a previous receiving card in turn, and updates the position identifier to the first field synchronization frame packet, the first receiving card feedback packet recording the position identifier of each receiving card is fed back from the Nth receiving card in turn; the first receiving card feedback packet is sent to the sending card through the first switch; the first receiving card feedback packet is sent to the upper computer; the main link is generated by analyzing the first receiving card feedback packet and the information of the switch through the upper computer.
[0146] In another embodiment, the main link and backup link acquisition module is further configured to identify neighbor nodes and store LLDP neighbor information based on the LLDP protocol for each node of the LED display screen control system.
[0147] The second field synchronization frame signal is sent to the second switch through the backup port of the sending card, the second switch sends the second field synchronization frame signal to a receiving card string connected with the second switch, an Nth receiving card of the receiving card string determines a starting point position of the receiving card string in a current second signal sending direction according to LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and a position identifier of a previous receiving card in turn, and updates the position identifier to the second field synchronization frame packet, the second receiving card feedback packet recording the position identifier of each receiving card is fed back from the first receiving card in turn; the second receiving card feedback packet is sent to the sending card through the second switch; the second receiving card feedback packet is sent to the upper computer; the backup link is generated by analyzing the second receiving card feedback packet through the upper computer.
[0148] In another embodiment, the main link and backup link acquisition module is further configured to determine a starting point position of the receiving card string in a current first signal sending direction according to LLDP neighbor information for a first receiving card of the receiving card string, and generate a first field synchronization frame packet related to a position identifier, the first field synchronization frame packet is forwarded to a next receiving card in cascade through each receiving card in turn, each receiving card determines its own position identifier according to a position identifier of a previous receiving card after receiving the first field synchronization frame packet, and updates the first field synchronization frame packet, and an Nth receiving card determines a terminal point position of the receiving card string in the current first signal sending direction according to the LLDP neighbor information.
[0149] The Nth receiving card of the receiving card string sends a synchronous packet query information to the sending card through the second switch, the sending card sends a third field synchronous frame packet to the Nth receiving card of the receiving card string through the second switch, and the Nth receiving card fills the position identifier into the first receiving card return packet in response to the third field synchronous frame packet and returns the first receiving card return packet to the previous receiving card in the cascade, and each receiving card fills its own position identifier into the first receiving card return packet after receiving the first receiving card return packet.
[0150] In another embodiment, the network topology anomaly determination module is further configured to determine that the last receiving card on the primary link and the last receiving card on the backup link are adjacent receiving cards on the receiving card string and that a fault exists between the last receiving card on the primary link and the last receiving card on the backup link if the information of the receiving card string on the primary link is inconsistent with the information of the receiving card string on the backup link and if the sum of the number of receiving cards of the receiving card string on the primary link and the number of receiving cards of the receiving card string on the backup link is equal to the actual number of receiving cards of the receiving card string.
[0151] In another embodiment, the network topology anomaly determination module is further configured to determine that there are other receiving cards between the last receiving card on the primary link and the last receiving card on the backup link, that a fault exists between the last receiving card on the primary link and the next adjacent receiving card in the first signal sending direction, and that a fault exists between the last receiving card on the backup link and the next adjacent receiving card in the second signal sending direction if the information of the receiving card string on the primary link is inconsistent with the information of the receiving card string on the backup link and if the sum of the number of receiving cards of the receiving card string on the primary link and the number of receiving cards of the receiving card string on the backup link is less than the actual number of receiving cards of the receiving card string.
[0152] In another embodiment, the network topology formation module is configured to form a loop topology structure of the LED display screen control system based on the primary link and the backup link if the sum of the number of receiving cards of the receiving card string on the primary link and the number of receiving cards of the receiving card string on the backup link is equal to the actual number of receiving cards of the receiving card string.
[0153] In another embodiment, the network topology anomaly determination module is further configured to send control signals to each node on the primary link through the primary port of the sending card and to send control signals to each node on the backup link through the backup port of the sending card if it is determined that there is a network topology anomaly.
[0154] Each module in the network topology anomaly identification device described above can be implemented in whole or in part by software, hardware, or a combination thereof. Each module described above can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in a computer device in software form so as to be called and executed by a processor to perform operations corresponding to each module.
[0155] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 14 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data returned from the receiving card. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a method for identifying network topology anomalies.
[0156] Those skilled in the art will understand that Figure 14 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0157] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0158] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0159] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0160] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0161] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.
[0162] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A method of anomaly identification of a network topology, characterized in that, The application is applied to an LED display screen control system comprising a host computer, a sending card, a first switch, a second switch and a receiving card, wherein the sending card comprises a port pair, and the port pair comprises a main port and a backup port; The host computer is connected to the sending card, the main port of the sending card is connected to the first switch, N receiving cards are connected in sequence to form a receiving card string, the first receiving card of the receiving card string is connected to the first switch, the Nth receiving card of the receiving card string is connected to the second switch, and the backup port of the sending card is connected to the second switch; the method comprises the following steps: Field synchronization frame signals are respectively sent from the main port and the backup port of the sending card, each device of the LED display screen control system processes the received field synchronization frame signals and forwards the field synchronization frame signals to the next device in the cascade, a main link responding to the feedback of the field synchronization frame signals of the main port is obtained, and a backup link responding to the feedback of the field synchronization frame signals of the backup port is obtained; in the case that the receiving card string is normal, the order of the receiving cards of the receiving card string on the main link is opposite to the order of the receiving cards of the receiving card string on the backup link; If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal; If the information of the receiving card string on the main link is consistent with the information of the receiving card string on the backup link, the network topology of the LED display screen control system is formed based on the main link and the backup link; If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, and the sum of the number of the receiving cards of the receiving card string on the main link and the number of the receiving cards of the receiving card string on the backup link is the same as the actual number of the receiving cards of the receiving card string, it is determined that the last receiving card of the main link and the last receiving card of the backup link are adjacent receiving cards on the receiving card string, and a fault exists between the last receiving card of the main link and the last receiving card of the backup link. Field synchronization frame signals are sent from the main port of the sending card, each device of the LED display screen control system processes the received field synchronization frame signals and forwards the field synchronization frame signals to the next device in the cascade, a main link responding to the feedback of the field synchronization frame signals of the main port is obtained, and a backup link responding to the feedback of the field synchronization frame signals of the backup port is obtained, comprising the following steps:
2. The method of claim 1, wherein, Each node of the LED display screen control system identifies neighbor nodes based on the LLDP protocol and stores LLDP neighbor information. The first field synchronization frame signal is sent to the first switch through the main port of the sending card, the first switch sends the first field synchronization frame signal to a receiving card string connected with the first switch, a first receiving card of the receiving card string determines a starting point position of the receiving card string in a current first signal sending direction according to the LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and a position identifier of a previous receiving card in turn, and the position identifier is updated to the first field synchronization frame packet, and a first receiving card return packet recording position identifiers of each receiving card is returned from the Nth receiving card to the front in turn; The first receiving card return packet is sent to the sending card through the first switch; The first receiving card return packet is sent to the upper computer; The first receiving card return packet is analyzed by the upper computer to generate a main link.
3. The method of claim 1, wherein, The field synchronization frame signal is sent from a backup port of the sending card, each device of the LED display screen control system forwards the field synchronization frame signal to a next device in cascade after processing the received field synchronization frame signal, and a backup link responding to feedback of the backup port is obtained, including: Each node of the LED display screen control system identifies a neighbor node based on an LLDP protocol and stores LLDP neighbor information; The second field synchronization frame signal is sent to the second switch through the backup port of the sending card, the second switch sends the second field synchronization frame signal to a receiving card string connected with the second switch, an Nth receiving card of the receiving card string determines a starting point position of the receiving card string in a current second signal sending direction according to the LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and a position identifier of a previous receiving card in turn, and the position identifier is updated to the second field synchronization frame packet, and a second receiving card return packet recording position identifiers of each receiving card is returned from a first receiving card to the front in turn; The second receiving card return packet is sent to the sending card through the second switch; The second receiving card return packet is sent to the upper computer; The second receiving card return packet is analyzed by the upper computer to generate a backup link.
4. The method of claim 2, wherein, The first field synchronization frame signal is sent to the first switch through the main port of the sending card, the first switch sends the first field synchronization frame signal to a receiving card string connected with the first switch, a first receiving card of the receiving card string determines a starting point position of the receiving card string in a current first signal sending direction according to the LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and a position identifier of a previous receiving card in turn, and the position identifier is updated to the first field synchronization frame packet, and a first receiving card return packet recording position identifiers of each receiving card is returned from the Nth receiving card to the front in turn, including: The first receiving card of the receiving card string determines a start position of the receiving card string in a current first signal transmission direction according to the LLDP neighbor information, and generates a first field synchronization frame packet related to a position identifier, the first field synchronization frame packet is forwarded to a next receiving card in cascade by each receiving card in turn, after each receiving card receives the first field synchronization frame packet, the position identifier of itself is determined according to the position identifier of the last receiving card, and the first field synchronization frame packet is updated, and the Nth receiving card determines a terminal position of the receiving card string in the current first signal transmission direction according to the LLDP neighbor information; The Nth receiving card of the receiving card string sends a synchronization packet query information to the sending card through the second switch, the sending card sends a third field synchronization frame packet to the Nth receiving card of the receiving card string through the second switch, and the Nth receiving card fills the position identifier into a first receiving card return packet in response to the third field synchronization frame packet, and returns the first receiving card return packet to the last receiving card in cascade, and each receiving card fills the position identifier of itself into the first receiving card return packet after receiving the first receiving card return packet.
5. The method of claim 1, wherein, If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, it is determined that the network topology of the LED display screen control system is abnormal, comprising: If the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, and the sum of the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link is less than the actual number of receiving cards of the receiving card string, it is determined that there are other receiving cards between the last receiving card of the main link and the last receiving card of the backup link, the last receiving card of the main link and the next adjacent receiving card in the first signal transmission direction are faulty, and the last receiving card of the backup link and the next adjacent receiving card in the second signal transmission direction are faulty.
6. The method of claim 5, wherein, The method further comprises: if the sum of the number of receiving cards of the receiving card string on the main link and the number of receiving cards of the receiving card string on the backup link is the same as the actual number of receiving cards of the receiving card string, forming a loop topology structure of the LED display screen control system based on the main link and the backup link.
7. The method according to any one of claims 1 to 6, characterized in that, The method further comprises: If it is determined that the network topology is abnormal, sending a control signal to each node on the main link through the main port of the sending card, and sending a control signal to each node on the backup link through the backup port of the sending card.
8. An abnormality identification device of a network topology, applied to an LED display screen control system comprising a host computer, a sending card, a first switch, a second switch and a receiving card, the sending card comprising a port pair, the port pair comprising a main port and a backup port; The host computer is connected with the sending card, the main port of the sending card is connected with the first switch, N receiving cards are connected in sequence to form a receiving card string, the first switch is connected with the first receiving card of the receiving card string, the Nth receiving card of the receiving card string is connected with the second switch, and the backup port of the sending card is connected with the second switch; the device comprises: A main link and a backup link acquisition module are used for sending field synchronization frame signals from the main port and the backup port of the sending card respectively, each device of the LED display screen control system processes the received field synchronization frame signals and forwards the field synchronization frame signals to the next device in the cascade respectively, a main link responding to the feedback of the field synchronization frame signals of the main port is obtained, and a backup link responding to the feedback of the field synchronization frame signals of the backup port is obtained; A network topology abnormality determination module is used for determining that the network topology of the LED display screen control system is abnormal if the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link; A network topology forming module is used for forming the network topology of the LED display screen control system based on the main link and the backup link if the information of the receiving card string on the main link is consistent with the information of the receiving card string on the backup link. The network topology abnormality determination module is used for determining that the last receiving card on the main link and the last receiving card on the backup link are adjacent receiving cards on the receiving card string, and a fault exists between the last receiving card on the main link and the last receiving card on the backup link if the information of the receiving card string on the main link is inconsistent with the information of the receiving card string on the backup link, and the sum of the number of receiving cards on the receiving card string on the main link and the number of receiving cards on the receiving card string on the backup link is the same as the actual number of receiving cards on the receiving card string.
9. The apparatus of claim 8, wherein, The main link and the backup link acquisition module are used for: Each node of the LED display screen control system identifies neighbor nodes and stores LLDP neighbor information based on the LLDP protocol; A first field synchronization frame signal is sent to the first switch through the main port of the sending card, the first switch sends the first field synchronization frame signal to the receiving card string connected with the first switch, the first receiving card of the receiving card string determines the starting position of the receiving card string in the current first signal sending direction according to the LLDP neighbor information, each receiving card determines its own position identifier according to the LLDP neighbor information and the position identifier of the previous receiving card in turn, and updates the position identifier to the first field synchronization frame packet, and the first receiving card feedback packet recording the position identifier of each receiving card is fed back from the Nth receiving card to the front in turn; The first receiving card feedback packet is sent to the sending card through the first switch; The first receiving card feedback packet is sent to the host computer; The first receiving card feedback packet is analyzed through the host computer to generate a main link.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to realize the steps of the method in any one of claims 1 to 7.
Citation Information
Patent Citations
Switch control method and device, control equipment and storage medium
CN114500354A
Network topology identification method and LED display screen control system
CN114519970A