Network topology identification methods, devices, computer equipment, and storage media

By using the LLDP protocol to identify neighboring nodes in the LED display control system, and by leveraging the collaborative work of the sending card, switch, and receiving card string, the problems of automatic node identification and improved network topology identification efficiency are solved, and dynamic topology generation is realized.

CN116248511BActive Publication Date: 2026-01-30UNILUMIN GRP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211684249.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2026-01-30
Estimated Expiration
2042-12-27

AI Technical Summary

Technical Problem

Existing LED display control systems cannot automatically identify nodes, and network topology identification is inefficient.

Method used

The LLDP protocol is used to identify neighboring nodes. Through the collaborative work of the sending card, switch and receiving card string, a network topology map is generated, including sending synchronization frame packets, updating location identifiers and return packets, so as to realize the automatic identification and dynamic updating of each node.

Benefits of technology

It improves the network topology recognition efficiency of LED display control system and realizes automatic and dynamic connection information update and topology generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116248511B_ABST
    Figure CN116248511B_ABST
Patent Text Reader

Abstract

This application relates to a network topology identification method, apparatus, computer equipment, storage medium, and computer program product. By enabling each node of an LED display screen control system to identify neighboring nodes based on the LLDP protocol, mutual identification of different types of devices at both ends of each node is achieved. The identification and connection information is updated dynamically in real time. Furthermore, the receiving card string can determine its starting and ending positions based on LLDP information. By sequentially sending its own position identifier downwards, each receiving card in the receiving card string determines its own position identifier based on LLDP neighbor information and the position identifier of the previous receiving card. By transmitting its position identifier back from the last receiving card upwards, the host computer obtains the link information of the receiving card string, as well as the link information between the receiving card string, the switch, and the sending card. This allows for automatic parsing and generation of the network topology, improving the network topology identification efficiency of the LED display screen control system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of display screen control systems, and in particular to a network topology identification method and apparatus, a method, apparatus, computer equipment, storage medium, and computer program product. Background Technology

[0002] An LED display control system is a system that controls the correct display of an LED large screen according to user requirements. An LED display control system generally includes sending cards, receiving cards, and switching equipment. Sending cards typically have multiple network ports, each capable of supporting multiple receiving cards. To ensure correct display on the LED large screen, it is necessary to understand the connection status of each device, i.e., to know the topology of the entire display control system. However, currently, the internal interconnection of most general LED display control systems is semi-automatic. Furthermore, the system requires multiple stages of network topology identification, resulting in low efficiency for the identification nodes in the LED display control system.

[0003] Therefore, current LED display control systems suffer from the problem of being unable to automatically identify nodes and having low efficiency in identifying the network topology of the LED display control system. Summary of the Invention

[0004] Therefore, it is necessary to provide a network topology identification method, apparatus, computer equipment, and computer-readable storage medium that can improve identification efficiency in response to the above-mentioned technical problems.

[0005] Firstly, this application provides a network topology identification method. The method includes:

[0006] Each node of the LED display control system is based on the LLDP protocol, identifies neighboring nodes, and stores LLDP neighbor information;

[0007] The first synchronization frame packet is sent to the switch connected to the sending card via the sending card;

[0008] The first field synchronization frame packet is sent to the receiving card string connected to the switch via the switch;

[0009] The first receiving card in the receiving card string determines its starting position in the receiving card string based on the LLDP information and LLDP neighbor information. Each receiving card determines its own position identifier based on the LLDP information, LLDP neighbor information and the position identifier of the previous receiving card, updates the position identifier to the first field synchronization frame packet, and sequentially transmits back receiving card return packets recording the position identifiers of each receiving card from the last receiving card forward.

[0010] The switch sends the return packet received by the first receiving card in the receiving card string to the sending card.

[0011] The sending card obtains the information of the switch based on LLDP information and LLDP neighbor information, and sends the information of the switch and the return packet of the receiving card to the host computer.

[0012] The host computer parses the return packets from the receiving card and the information from the switch to generate a network topology diagram.

[0013] In one embodiment, the first receiving card in the receiving card string determines its starting position in the receiving card string based on the LLDP information and LLDP neighbor information. Each receiving card sequentially determines its own position identifier based on the LLDP information, LLDP neighbor information, and the position identifier of the previous receiving card, and updates the position identifier to the first field synchronization frame packet. The last receiving card sequentially transmits back receiving card return packets recording the position identifiers of each receiving card, including:

[0014] The first receiving card in the receiving card string determines its starting position in the receiving card string based on the LLDP information and LLDP neighbor information, and generates a first field synchronization frame packet related to the position identifier. The first field synchronization frame packet is forwarded sequentially to the next cascaded receiving card through each receiving card. After receiving the first field synchronization frame packet, each receiving card determines its own position identifier based on the position identifier of the previous receiving card and updates the first field synchronization frame packet. The last receiving card determines its ending position in the receiving card string based on the LLDP neighbor information.

[0015] The last receiving card in the receiving card string sends a synchronization packet query information to the sending card through the switch. The sending card sends a second synchronization frame packet to the last receiving card in the receiving card string through the switch. In response to the second synchronization frame packet, the last receiving card fills its position identifier into the receiving card return packet and sends the receiving card return packet back to the cascaded previous receiving card. After receiving the receiving card return packet, each receiving card fills its own position identifier into the receiving card return packet.

[0016] In one embodiment, the switch includes a main switch and a backup switch;

[0017] The primary transmitting card and the backup transmitting card each include at least one port pair, the port pair including a primary port and a backup port, the primary port being connected to the primary switch and the backup port being connected to the backup switch; the first receiving card in the receiving card string is connected to the primary switch and the last receiving card in the receiving card string is connected to the backup switch.

[0018] In one embodiment, each node of the LED display control system identifies neighboring nodes and stores LLDP information based on the LLDP protocol. LLDP neighbor information includes:

[0019] When the transmission conditions are met, each node of the LED display control system sends an LLDP packet to its connected neighbor node.

[0020] Each node of the LED display control system receives LLDP packets from neighboring nodes, parses the LLDP packets, and stores the LLDP information of the neighboring nodes.

[0021] In one embodiment, the transmission conditions include: each node of the LED display control system is powered on, or a new transmission cycle is determined according to a timer, or a network port reconnection event occurs within the current transmission cycle, wherein the timer is started when the node is powered on.

[0022] In one embodiment, the LLDP packet is reset when a new reception period is determined according to the timer.

[0023] In one embodiment, each node of the LED display control system receives LLDP packets from neighboring nodes, parses the LLDP packets, and stores the LLDP information of the neighboring nodes. LLDP neighbor information includes:

[0024] The LED display control system's sending card receives LLDP packets from neighboring nodes, parses the LLDP packets, identifies the connected switches, and stores the MAC address, port information, master / slave information, identification information, and LLDP information of the switches, as well as the lifecycle of the LLDP neighbor information.

[0025] The switch of the LED display control system receives LLDP packets from neighboring nodes, parses the LLDP packets, identifies the connected sending card, and stores the MAC address, port information, master-slave information, identification information, LLDP information, LLDP neighbor information lifecycle, and sending card information of the sending card.

[0026] The switch of the LED display control system receives LLDP packets from neighboring nodes, parses the LLDP packets, identifies the connected receiving card, and stores the MAC address, port information, master-slave information, identification information, and LLDP information of the receiving card, as well as the lifecycle of the LLDP neighbor information and the receiving card information.

[0027] The receiving card of the LED display control system receives LLDP packets from neighboring nodes, parses the LLDP packets, identifies the connected switches, and stores the MAC address, port information, master-slave information, identification information, and LLDP information of the switches, as well as the lifecycle of the LLDP neighbor information.

[0028] The receiving card of the LED display control system receives LLDP packets from neighboring nodes, parses the LLDP packets, identifies the connected receiving card, and stores the receiving card's MAC address, port information, master / slave information, identification information, LLDP information, LLDP neighbor information lifecycle, and receiving card information.

[0029] Secondly, this application also provides a network topology identification and adjustment device. The device includes:

[0030] The LLDP neighbor information storage module is used by each node of the LED display control system to identify neighbor nodes and store LLDP neighbor information based on the LLDP protocol.

[0031] The switch acquires the first synchronization frame packet module, which is used to send the first synchronization frame packet to the switch connected to the sending card through the sending card;

[0032] The receiving card string acquisition first field synchronization frame packet module is used to send the first field synchronization frame packet to the receiving card string connected to the switch through the switch;

[0033] The return packet acquisition module is used to determine the starting position of the first receiving card in the receiving card string based on the LLDP neighbor information, and each receiving card determines its own position identifier based on 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. The last receiving card sequentially transmits the receiving card return packets that record the position identifiers of each receiving card forward.

[0034] The return packet sending module is used to send the return packet received by the first receiving card of the receiving card string to the sending card through the switch;

[0035] The host computer receiving module is used to obtain the information of the switch based on the LLDP neighbor information through the sending card, and send the information of the switch and the return packet of the receiving card to the host computer.

[0036] The network topology generation module is used to generate a network topology map by parsing the return packets from the receiving card and the information from the switch through the host computer.

[0037] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0038] Each node of the LED display control system is based on the LLDP protocol, identifies neighboring nodes, and stores LLDP neighbor information;

[0039] The first synchronization frame packet is sent to the switch connected to the sending card via the sending card;

[0040] The first field synchronization frame packet is sent to the receiving card string connected to the switch via the switch;

[0041] The first receiving card in the receiving card string determines its starting position in the receiving card string based on the LLDP information and LLDP neighbor information. Each receiving card determines its own position identifier based on the LLDP information, LLDP neighbor information and the position identifier of the previous receiving card, updates the position identifier to the first field synchronization frame packet, and sequentially transmits back receiving card return packets recording the position identifiers of each receiving card from the last receiving card forward.

[0042] The switch sends the return packet received by the first receiving card in the receiving card string to the sending card.

[0043] The sending card obtains the information of the switch based on LLDP information and LLDP neighbor information, and sends the information of the switch and the return packet of the receiving card to the host computer.

[0044] The host computer parses the return packets from the receiving card and the information from the switch to generate a network topology diagram.

[0045] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0046] Each node of the LED display control system is based on the LLDP protocol, identifies neighboring nodes, and stores LLDP neighbor information;

[0047] The first synchronization frame packet is sent to the switch connected to the sending card via the sending card;

[0048] The first field synchronization frame packet is sent to the receiving card string connected to the switch via the switch;

[0049] The first receiving card in the receiving card string determines its starting position in the receiving card string based on the LLDP information and LLDP neighbor information. Each receiving card determines its own position identifier based on the LLDP information, LLDP neighbor information and the position identifier of the previous receiving card, updates the position identifier to the first field synchronization frame packet, and sequentially transmits back receiving card return packets recording the position identifiers of each receiving card from the last receiving card forward.

[0050] The switch sends the return packet received by the first receiving card in the receiving card string to the sending card.

[0051] The sending card obtains the information of the switch based on LLDP information and LLDP neighbor information, and sends the information of the switch and the return packet of the receiving card to the host computer.

[0052] The host computer parses the return packets from the receiving card and the information from the switch to generate a network topology diagram.

[0053] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0054] Each node of the LED display control system is based on the LLDP protocol, identifies neighboring nodes, and stores LLDP neighbor information;

[0055] The first synchronization frame packet is sent to the switch connected to the sending card via the sending card;

[0056] The first field synchronization frame packet is sent to the receiving card string connected to the switch via the switch;

[0057] The first receiving card in the receiving card string determines its starting position in the receiving card string based on the LLDP information and LLDP neighbor information. Each receiving card determines its own position identifier based on the LLDP information, LLDP neighbor information and the position identifier of the previous receiving card, updates the position identifier to the first field synchronization frame packet, and sequentially transmits back receiving card return packets recording the position identifiers of each receiving card from the last receiving card forward.

[0058] The switch sends the return packet received by the first receiving card in the receiving card string to the sending card.

[0059] The sending card obtains the information of the switch based on LLDP information and LLDP neighbor information, and sends the information of the switch and the return packet of the receiving card to the host computer.

[0060] The host computer parses the return packets from the receiving card and the information from the switch to generate a network topology diagram.

[0061] The aforementioned network topology identification method, device, computer equipment, storage medium, and computer program product, through each node of the LED display control system based on the LLDP protocol, identify neighboring nodes, thereby enabling mutual identification of different types of devices at both ends of each node, and dynamically updating identification connection information in real time. Furthermore, the receiving card string can determine its starting and ending positions based on LLDP information, and by sequentially sending its own position identifier downwards, each receiving card in the receiving card string determines its own position identifier based on LLDP neighbor information and the position identifier of the previous receiving card. By transmitting its position identifier back from the last receiving card upwards, the host computer obtains the link information of the receiving card string, as well as the link information between the receiving card string, the switch, and the sending card, and then automatically parses and generates the network topology, improving the network topology identification efficiency of the LED display control system. Attached Figure Description

[0062] Figure 1 This is a schematic diagram of an LED display screen control system in one embodiment;

[0063] Figure 2 This is a flowchart illustrating a network topology identification method in one embodiment;

[0064] Figure 3 This is a schematic diagram illustrating the functional components of the LLDP protocol of a receiving card in one embodiment.

[0065] Figure 4 This is a schematic diagram illustrating the functional components of the LLDP protocol of a receiving card in one embodiment.

[0066] Figure 5 This is a schematic diagram of the relevant functional components of the LLDP protocol of a switch in one embodiment;

[0067] Figure 6 A schematic diagram illustrating the LLDP setting selection in one embodiment;

[0068] Figure 7 This is a schematic diagram of an LLDP packet sending mechanism in one embodiment;

[0069] Figure 8 This is a schematic diagram of an LLDP packet receiving mechanism in one embodiment;

[0070] Figure 9 This is a schematic diagram of the LED display screen control system in another embodiment;

[0071] Figure 10 A flowchart illustrating the network topology identification method in another embodiment;

[0072] Figure 11 This is a structural block diagram of a network topology identification device in one embodiment;

[0073] Figure 12 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0074] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0075] The network topology identification method of this application can be applied to, for example... Figure 1 The LED display screen control system shown is comprised of a host computer, sending cards, a switch, and receiving cards. The host computer is connected to the sending cards, the sending cards are connected to the switch, multiple receiving cards are connected sequentially to form a receiving card string, the switch is connected to the first receiving card in the receiving card string, and the most recent receiving card in the receiving card string is connected to the switch. The network topology identification method includes: each node of the LED display control system identifies neighboring nodes and stores LLDP information based on the LLDP protocol; a first synchronization frame packet is sent to the switch connected to the sending card via a sending card; the first synchronization frame packet is sent to the receiving card string connected to the switch via the switch; the first receiving card in the receiving card string determines its starting position based on the LLDP information, each receiving card determines its own position identifier based on the LLDP information and the position identifier of the previous receiving card, and updates its position identifier to the first synchronization frame packet; the last receiving card sequentially sends back receiving card return packets containing the position identifiers of each receiving card; the receiving card return packets received by the first receiving card in the receiving card string are sent to the sending card via the switch; the sending card obtains the switch information based on the LLDP information and sends the switch information and the receiving card return packets to the host computer; the host computer parses the receiving card return packets and the switch information to generate a network topology diagram.

[0076] In one embodiment, such as Figure 2 As shown, a network topology identification method is provided, which is applied to Figure 1 The LED display control system shown includes the following steps:

[0077] Step 202: Each node of the LED display control system identifies neighboring nodes and stores LLDP neighbor information based on the LLDP protocol.

[0078] The LED display control system includes components such as a host computer, sending cards, a switch, and receiving cards. The host computer initiates data transmission, the sending cards distribute and packetize data, the receiving cards collect and summarize feedback information, the switch handles data exchange between multiple sets of receiving cards and sending cards, and the receiving cards receive data and drive the LED display screen. Figure 1 As shown, the sending card has 1-8 10 Gigabit Ethernet ports, each supporting 40G / 25G / 10G fiber optic or Ethernet ports. The receiving card has two Gigabit Ethernet ports. The switch has 1-4 40G / 25G / 10G fiber optic or Ethernet ports for connection to the sending card, and 1-n Gigabit Ethernet ports for the downlink.

[0079] Figure 1 The node connections are as follows: the main transmitting card is connected to the switch, the switch is connected to the receiving card, and the receiving cards are connected to each other. Specifically, the main transmitting card (backup port) is connected to the switch, the backup transmitting card (main port) is connected to the main switch, and the backup transmitting card (backup port) is connected to the backup switch. The connections between receiving cards constitute the majority of the network, as the switch, acting as the connection hub, is connected to almost every component. The switches are standard, 10 Gigabit Ethernet switches, with uplink ports at 10 Gigabit speeds and downlink ports at gigabit speeds. All the above connections are based on the LLDP protocol, which is a universal network protocol supported by the switches. By making the transmitting and receiving cards support LLDP, the entire network has a common language, enabling the identification of devices at both ends of the network nodes.

[0080] Based on the node connections described above, the primary transmitting card and the switch are neighbors; the switch and the receiving card are neighbors; the receiving card connections are neighbors; the primary transmitting card (backup port) and the switch are neighbors; the backup transmitting card (primary port) and the primary switch are neighbors; and the backup transmitting card (backup port) and the backup switch are neighbors. The transmitting card, switch, and receiving card each send LLDP frame packets to their respective neighbors. Upon receiving the LLDP frame packets, each neighbor generates LLDP neighbor information and updates the LLDP neighbor information in its LLDP storage list.

[0081] Specifically, the sending card sends LLDP frame packets to the switch. Upon receiving the LLDP frame packets, the switch generates LLDP neighbor information and updates the LLDP neighbor information in its stored LLDP information list. Similarly, the receiving card sends LLDP frame packets to the switch. The switch connected to the receiving card receives the LLDP frame packets, generates LLDP neighbor information, and updates the LLDP neighbor information in its stored LLDP information list. The switch also sends LLDP frame packets to either the sending or receiving card, allowing the connected sending or receiving card to retrieve the LLDP neighbor information. In other words, based on the LLDP protocol, devices at both ends of each node complete mutual identification, generate LLDP neighbor information from each other's information, and continuously update it.

[0082] Step 204: Send the first synchronization frame packet to the switch connected to the sending card via the sending card.

[0083] The first synchronization frame packet is an Ethernet Type II network data packet.

[0084] Specifically, the sending card sends the first field synchronization frame packet through its built-in field synchronization signal generator, whether there is a video source field synchronization signal input or not. The switch connected to the sending card receives the first field synchronization frame packet.

[0085] Step 206: Send the first synchronization frame packet to the receiving card string connected to the switch via the switch.

[0086] After receiving the first synchronization frame packet, the switch connected to the sending card sends the first synchronization frame packet to the receiving card string connected to the switch. The first receiving card in the receiving card string receives the first synchronization frame packet first and forwards the first synchronization frame packet to the next receiving card.

[0087] Step 208: The first receiving card in the receiving card string determines its starting position in the receiving card string based on the LLDP neighbor information. Each receiving card determines its own position identifier based on 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. The last receiving card sequentially transmits back the receiving card return packet containing the position identifiers of each receiving card.

[0088] The receiver card return packet includes the receiver card location identifier, receiver card serial number, version number, and information on the devices connected to the two ports.

[0089] Specifically, the first receiving card in the receiving card string determines its starting position based on LLDP neighbor information. After receiving the first synchronization frame packet, the first receiving card updates its own position identifier in the receiving card string to the first synchronization frame packet and forwards the first synchronization frame packet to the second receiving card in the receiving card string. After receiving the first synchronization frame packet, the second receiving card determines its own position identifier based on LLDP neighbor information and the position identifier of the previous receiving card, updates its own position identifier to the first synchronization frame packet, and forwards the first synchronization frame packet to the third receiving card, and so on, until it is forwarded to the last receiving card in the receiving card string. After receiving the first synchronization frame packet, the last receiving card also updates its own position identifier in the receiving card string to the first synchronization frame packet, and the last receiving card determines its ending position in the receiving card string based on LLDP neighbor information.

[0090] Specifically, the last receiving card fills its location identifier into the receiving card return packet and sends the receiving card return packet back to the previous receiving card in the receiving card string. After receiving the receiving card return packet, the previous receiving card fills its own location identifier into the receiving card return packet, and so on, until the packet is filled and sent back to the first receiving card in the receiving card string. After receiving the receiving card return packet, the first receiving card fills its own location identifier into the receiving card return packet.

[0091] Step 210: The receiver card return packet received by the first receiver card in the receiver card string is sent to the sender card via the switch.

[0092] After the first receiving card fills its own location identifier into the receiving card return packet, the first receiving card sends the receiving card return packet to the sending card connected to the switch through the switch.

[0093] Step 212: Obtain the switch information based on the LLDP information using the sending card, and send the switch information and the receiving card's return packet to the host computer.

[0094] Specifically, after receiving the return packet from the switch, the sending card obtains the port information of the switch connected to it based on the LLDP neighbor information, and then sends the return packet and the port information of the switch to the host computer.

[0095] Step 214: The host computer parses the return packets from the receiving card and the information from the switch to generate a network topology diagram.

[0096] Specifically, after receiving the return packets from the receiving card and the port information from the switch, the host computer parses the return packets from the receiving card to obtain the node information of each component. It then summarizes the node information to obtain the link information of each receiving card, as well as the link information between the receiving card, the switch, and the transmitting card. Based on the link information of the receiving card, the switch, and the transmitting card, it obtains the connection topology diagram of the LED display control system.

[0097] In this embodiment, the universal LLDP protocol is used to automatically and dynamically update information related to the identified connected devices, particularly the port numbers of the sending card, receiving card, and switch, as well as device backup information and port backup information. The host computer processes the node information received by the sending card to obtain the connection topology diagram of the LED display control system.

[0098] In this embodiment, each node of the LED display control system identifies neighboring nodes based on the LLDP protocol, thereby enabling mutual identification of different types of devices at both ends of each node and real-time dynamic updating of identification connection information. The receiving card string can then determine its starting and ending positions based on LLDP information. By sequentially sending its own position identifier downwards, each receiving card in the receiving card string determines its own position identifier based on LLDP neighbor information and the position identifier of the previous receiving card. Furthermore, by sending its position identifier back from the last receiving card upwards, the host computer obtains the link information of the receiving card string, as well as the link information between the receiving card string, the switch, and the sending card. This allows for automatic parsing and generation of the network topology, improving the network topology identification efficiency of the LED display control system.

[0099] In another embodiment, the first receiving card in the receiving card string determines its starting position based on LLDP neighbor information. Each receiving card sequentially determines its own position identifier based on LLDP neighbor information and the position identifier of the previous receiving card, and updates its position identifier to the first synchronization frame packet. The last receiving card sequentially transmits back receiving card return packets containing the position identifiers of each receiving card, including:

[0100] The first receiving card in the receiving card string determines its starting position based on the LLDP neighbor information and generates a first synchronization frame packet related to its position identifier. The first synchronization frame packet is forwarded sequentially to the next cascaded receiving card through each receiving card. After receiving the first synchronization frame packet, each receiving card determines its own position identifier based on the position identifier of the previous receiving card and updates the first synchronization frame packet. The last receiving card determines its ending position in the receiving card string based on the LLDP neighbor information.

[0101] The last receiving card in the receiving card string sends a synchronization packet query information to the sending card through the switch connected to it. The sending card sends a second synchronization frame packet to the last receiving card in the receiving card string through the switch. The last receiving card responds to the second synchronization frame packet by filling its position identifier into the receiving card return packet and sending the receiving card return packet back to the cascaded previous receiving card. After receiving the receiving card return packet, each receiving card fills its own position identifier into the receiving card return packet.

[0102] Specifically, each receiving card in the receiving card string updates its own position identifier in the first synchronization frame packet based on LLDP neighbor information and / or the position identifier of the previous receiving card. The last receiving card determines its position at the end of the receiving card string based on LLDP neighbor information. The last receiving card sends a synchronization packet query to the sending card through its connected switch. After receiving the synchronization packet query, the sending card sends a second synchronization frame packet to the last receiving card through the switch. The last receiving card responds to the second synchronization frame packet by filling its position identifier into the receiving card return packet, starting from the last receiving card, and then sequentially returning the identifier to the previous cascaded receiving card until the first receiving card in the receiving card string. At this time, the receiving card return packet contains the position information of each receiving card in the receiving card string.

[0103] In this embodiment, the location identifier of each receiving card is determined based on LLDP neighbor information, and the location identifier of each receiving card is collected by sending back receiving card return packets. This allows for real-time dynamic updating of the identification and connection information, providing conditions for establishing the topology structure of the entire LED display control system.

[0104] In another embodiment, each node of the LED display control system identifies neighboring nodes and stores LLDP neighbor information based on the LLDP protocol, including: each node of the LED display control system sending LLDP packets to connected neighboring nodes when the sending conditions are met; each node of the LED display control system receiving LLDP packets from neighboring nodes, parsing the LLDP packets, and storing the LLDP neighbor information of the neighboring nodes.

[0105] Figure 3 It is a functional component of the LLDP protocol for sending cards. Figure 4 It is a functional component of the LLDP protocol for receiving cards. Figure 5 It is a functional component of the LLDP protocol for switches.

[0106] Specifically, first, check if the network interface is connected. If not, it means the interface is not connected to the device, so continue waiting until the interface is connected. Once the network interface is connected, immediately send LLDP packets to the connected device.

[0107] After receiving the LLDP packet, the device parses the received LLDP packet, performs the following identification, and updates the LLDP neighbor information in the LLDP storage information list.

[0108] Identification includes the following methods: Identifying the sending card primarily involves parsing the identification characters it sends (the ASCII code for the letter 'T'); identifying the receiving card primarily involves parsing the identification characters it sends (the ASCII code for the letter 'R'); identifying the switch primarily involves parsing the identification characters it sends (the ASCII code for the letter 'B'). Identifying the port number of the currently connected sending card, switch, and receiving card is also done through parsing.

[0109] In this embodiment, the switch, sending card, and receiving card send LLDP packets to the connected devices. The connected devices receive and parse the LLDP packets to obtain relevant information about the connected devices, providing the conditions for the subsequent transmission of the receiving card's return packets to the host computer.

[0110] In another embodiment, the transmission conditions include: each node of the LED display control system is powered on, or a new transmission cycle is determined according to a timer, or a network port reconnection event occurs within the current transmission cycle, wherein the timer is started when the node is powered on.

[0111] The device's LLDP packet sending mechanism is as follows: Figure 6 As shown, LLDP initialization is first performed on the device. After each node of the LED display control system is powered on, it checks whether the network interface is connected. If it is connected, it sends LLDP packets to the connected device. Therefore, the first sending condition can be that each node of the LED display control system is powered on.

[0112] If the network interface is already connected, an LLDP packet is sent to the connected device. After sending the LLDP packet, a waiting period is performed, which can be 30 seconds. During this waiting period, if a network interface reconnection event occurs, an LLDP packet is immediately sent to the connected device. Therefore, the second sending condition can be that a network interface reconnection event occurs within the current sending period.

[0113] If no network interface reconnection event occurs during the waiting process, an LLDP packet is immediately sent to the connected device when the timer determines that a new transmission cycle has begun, i.e., when the waiting time reaches a fixed period. Therefore, transmission condition three can determine the start of a new transmission cycle based on the timer's determination.

[0114] After sending an LLDP packet, a transmission period is waited for 30 seconds. The input clock is a 250MHz clock (for both the sending and receiving cards), and the period is about 4ns. The countdown timer is 30 / 4ns = 7.5*10e9. However, to account for time conflicts with the field synchronization signal, the LLDP transmission time can be advanced by one LLDP transmission time (the receiving card has an 8-bit data width, so the LLDP transmission time is 800ns; the sending card has a 64-bit data width, so the LLDP transmission time is 100ns). In this way, the field synchronization packet will be sent after the LLDP transmission.

[0115] In this embodiment, if a reconnection event occurs during the 30-second wait period, an LLDP packet is sent immediately; otherwise, the LLDP packet is sent again after 30 seconds. This method enables dynamic, real-time updates to the node connection status.

[0116] In another embodiment, the LLDP neighbor information is reset when a new reception cycle is determined based on a timer.

[0117] The device's LLDP packet receiving mechanism is as follows: Figure 7 As shown, LLDP initialization is first performed on the device to determine if the device has received an LLDP packet. If the device has not received an LLDP packet, it waits for the device to complete LLDP initialization. If the device receives an LLDP packet, it immediately parses the LLDP packet and generates LLDP neighbor information. It then enters a waiting period for receiving data, which can be 120 seconds. During this waiting period, if an LLDP packet is received, it is immediately parsed. If no LLDP packet is received during this waiting period, the waiting time reaches the end of the receiving period, and the LLDP neighbor information in the LLDP storage information list is reset.

[0118] In this embodiment, when an LLDP packet is received and LLDP neighbor information is generated, if no LLDP packet is received after a 120-second wait, the connection is considered invalid, and the LLDP neighbor information is reset. This method enables dynamic, real-time updates to node connection states and the stored LLDP neighbor information.

[0119] In another embodiment, each node of the LED display control system receives LLDP packets from neighboring nodes, parses the LLDP packets, and stores the LLDP neighbor information of the neighboring nodes, including:

[0120] The LED display control system's sending card receives LLDP packets from neighboring nodes, parses the LLDP packets, identifies the connected switches, and stores the lifecycle of the switch's MAC address, port information, identification information, and LLDP neighbor information.

[0121] The switch in the LED display control system receives LLDP packets from neighboring nodes, parses the LLDP packets, identifies the connected sending card, and stores the sending card's MAC address, port information, master / slave information, identification information, LLDP neighbor information lifecycle, and sending card information.

[0122] The switch in the LED display control system receives LLDP packets from neighboring nodes, parses the LLDP packets, identifies the connected receiving card, and stores the receiving card's MAC address, port information, master / slave information, identification information, LLDP neighbor information lifecycle, and receiving card information.

[0123] The receiving card of the LED display control system receives LLDP packets from neighboring nodes, parses the LLDP packets, identifies the connected switches, and stores the lifecycle of the switch's MAC address, port information, identification information, and LLDP neighbor information.

[0124] The receiving card of the LED display control system receives LLDP packets from neighboring nodes, parses the LLDP packets, identifies the connected receiving card, and stores the receiving card's MAC address, port information, master / slave information, identification information, LLDP neighbor information lifecycle, and receiving card information.

[0125] Specifically, the contents of the LLDP packets sent by the sending card are shown in Table 1:

[0126]

[0127]

[0128] The information received by the switch connected to the sending card includes the following:

[0129] 1. MAC address of the sending card

[0130] 2. Port number of the sending card (ASCII code, two bytes)

[0131] 3. Is the sending card a master or slave device?

[0132] 4. Is this sending card port a master port or a slave port? What is the port speed?

[0133] 5. Identification character of the sending card (ASCII code for T)

[0134] 6. Sending card system name, version, serial number, etc.

[0135] 7. Lifecycle of the sending card transmitting LLDP information

[0136] After the sending card sends LLDP packets, the switch connected to the sending card can generate LLDP neighbor information and update the LLDP neighbor information to its LLDP storage information list.

[0137] The contents of the LLDP packets sent by the receiving card are shown in Table 2:

[0138]

[0139]

[0140] The information received by the switch or receiving card connected to the receiving card includes the following:

[0141] 1. MAC address of the receiving card

[0142] 2. Receiver card port number (ASCII code, two bytes)

[0143] 3. Is the receiving card the master or slave device?

[0144] 4. Is this receiver card port a master port or a slave port? What is the port speed?

[0145] 5. Identification character of the receiving card (ASCII code for R)

[0146] 6. Receiver card system name, version, serial number, etc.

[0147] 7. Lifecycle of the receiving card sending LLDP information

[0148] When the sending card sends LLDP packets, the switch receives the LLDP packets, generates LLDP neighbor information, and updates the LLDP neighbor information to its LLDP storage list. Similarly, when the receiving card receives an LLDP packet, it also generates LLDP neighbor information and updates the LLDP neighbor information to its LLDP storage list.

[0149] The contents of the LLDP frame packets sent by the switch are shown in Table 3:

[0150]

[0151]

[0152] The information received by the transmitting and receiving cards connected to the switch includes the following:

[0153] 1. MAC address of the connected switch

[0154] 2. MAC address of the connected switch port

[0155] 3. Switch port number (ASCII code, two bytes)

[0156] 4. Identification character of the receiving card (ASCII code for B)

[0157] 5. Switch system name

[0158] 6. Lifecycle of a switch sending LLDP information

[0159] The switch sends LLDP packets to the sending or receiving card. The sending or receiving card connected to the switch can then receive the LLDP packets, generate LLDP neighbor information (i.e., obtain the information in Table 3), and update the LLDP neighbor information in its LLDP storage list. It should be noted that the information on a general-purpose switch is not limited to that in Table 3; it can be selected through LLDP settings, such as... Figure 8 As shown. Since LLDP is a Layer 2 network protocol, this function can even be disabled, but it must be used in this application.

[0160] In this embodiment, the transmitter, switch, and receiver card respectively send LLDP packets to the connected devices. After receiving the LLDP packets, the connected devices parse them to generate LLDP neighbor information and update the LLDP neighbor information in their LLDP storage information list.

[0161] In another embodiment, the switch includes a primary switch and a backup switch;

[0162] The system includes a primary transmitting card and a backup transmitting card, each with at least one port pair, consisting of a primary port and a backup port. The primary port is connected to the primary switch, and the backup port is connected to the backup switch. The first receiving card in the receiving card string is connected to the primary switch, and the last receiving card in the receiving card string is connected to the backup switch.

[0163] Specifically, such as Figure 5 As shown, the transmitting card has four 10G ports, with port numbers ranging from 1 to 4. Ports 1 and 2 are a pair, where 1 is the primary port and 2 is the backup port. Ports 3 and 4 are also a pair, where 3 is the primary port and 4 is the secondary port. The receiving card has ports 1-2. The switch ports are divided into uplink and downlink ports, with two uplink ports and a variable number of downlink ports.

[0164] In this embodiment, an LED display control system with primary and backup devices and multiple ports is provided. Utilizing the LLDP protocol, the devices at both ends of the nodes of the LED display control system (switches, sending cards, and receiving cards) can automatically and dynamically update relevant information of the connected devices based on the general LLDP protocol, especially the port number identification of the sending card, receiving card, and switch, the backup information of the devices, and the backup information of the device ports.

[0165] Below, in conjunction with Figure 5 and Figure 6 The network topology identification method of this application is described. Figure 5 The 4K LED display control system shown has one transmitting card with four 10G ports. Ports 1 and 2 are a pair, with 1 being the primary port and 2 the backup port. Ports 3 and 4 are also a pair, with 3 being the primary port and 4 the slave port. There are four switches, each containing two uplink 10G ports (1 and 2) and ten Gigabit Ethernet ports (3-12). The receiving card has two ports (1 and 2). The four ports on the transmitting card share a single MAC address, as do the two ports on the receiving card. The switches also share the same MAC address, but each interface typically requires re-encoding, limited to the last byte. After power-on, the LED control system nodes complete LLDP packet transmission and reception according to the LLDP packet transmission and reception mechanism. Devices at both ends of each node receive LLDP packets, identify each other, and generate LLDP neighbor information by storing the other party's interface information (device type, port number, system name, port attributes, etc.). This LLDP neighbor information is continuously updated to the LLDP storage information list. After these actions are completed, the main port and backup port of the main transmitting card send the first main field synchronization frame packet and the backup field synchronization frame packet respectively through the built-in field synchronization signal generator, with or without video source field synchronization signal input. The main field synchronization frame packet can be sent to all receiving cards through the switch and to the backup transmitting card. After the first receiving card connected to the switch receives the first field synchronization frame packet, it updates its position identifier 1 in the receiving card string to the packet and forwards the first field synchronization frame packet to the cascaded receiving card 2. After receiving the first field synchronization frame packet, receiving card 2 performs the same processing, ... until it is forwarded to the last receiving card N in the receiving card string. Receiver card N updates its position identifier in the receiving card string to the first field synchronization frame packet. Receiver N identifies itself as the last receiving card through LLDP neighbor information. Therefore, Receiver N sends the synchronization packet query information to the sending card via the connected switch. The sending card sends the second synchronization frame packet to Receiver N. After receiving the second synchronization frame packet, Receiver N begins assembling and transmitting the return packet. The return packet information includes Receiver N's ​​location information, Receiver N's ​​serial number, version number, and the connected devices on the two ports. The return packet is transmitted back to the (N-1)th card. The (N-1)th card fills its own return packet information into the received return packet, and so on, until the first Receiver N fills its own return packet information. The return packet information of the entire Receiver N / N string is then transmitted back to the sending card via the switch. After collecting the node information, the sending card can plot the connection topology information of its primary port on the host computer. Similarly, the backup port of the sending card can also collect the synchronization packet query information initiated by Receiver 1.

[0166] After the host computer parses the node information received by the transmitting card, it summarizes the node information and can then draw the graph. Figure 5 The connection topology diagram shown can identify the primary topology and backup topology.

[0167] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages does not have to be sequential, but can be performed alternately or in turn with other steps or at least a portion of the steps or stages of other steps.

[0168] Based on the same inventive concept, this application also provides a network topology identification device. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations in the network topology identification device embodiments provided below can be found in the limitations of the network topology identification method above, and will not be repeated here.

[0169] In one embodiment, as shown in the figure, a network topology identification device is provided, including: an LLDP neighbor information storage module 1102, a switch acquisition first synchronization frame packet module 1104, a receiver card string acquisition first synchronization frame packet module 11011, a return packet acquisition module 1108, a return packet sending module 1110, a host computer receiving module 1112, and a network topology map generation module 1114, wherein:

[0170] The LLDP neighbor information storage module 1102 is used by each node of the LED display control system to identify neighbor nodes and store LLDP neighbor information based on the LLDP protocol.

[0171] The switch acquisition first synchronization frame packet module 1104 is used to send the first synchronization frame packet to the switch connected to the sending card through the sending card.

[0172] The receiving card string acquisition first field synchronization frame packet module 11011 is used to send the first field synchronization frame packet to the receiving card string connected to the switch via the switch.

[0173] The return packet acquisition module 1108 is used to determine the starting position of the receiving card string based on the LLDP neighbor information of the first receiving card in the receiving card string. Each receiving card determines its own position identifier based on 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. The last receiving card sequentially transmits the receiving card return packets that record the position identifiers of each receiving card.

[0174] The return packet sending module 1110 is used to send the return packet received by the first receiving card in the receiving card string to the sending card through the switch.

[0175] The host computer receiving module 1112 is used to obtain the switch information based on the LLDP neighbor information through the sending card, and send the switch information and the receiving card return packet to the host computer.

[0176] The network topology generation module 1114 is used to generate a network topology map by parsing the return packets from the receiving card and the information from the switch through the host computer.

[0177] In this embodiment, each node of the LED display control system identifies neighboring nodes based on the LLDP protocol, thereby enabling mutual identification of different types of devices at both ends of each node. By having the last receiving card in the receiving card string send back its position identifier, the host computer obtains the link information of the receiving card string, as well as the link information of the receiving card string, the switch, and the sending card. This allows for automatic parsing and generation of the network topology, improving the network topology identification efficiency of the LED display control system.

[0178] In another embodiment, the backhaul packet acquisition module is used to determine the starting position of the receiving card string based on the LLDP neighbor information of the first receiving card in the receiving card string, and generate a first field synchronization frame packet related to the position identifier. The first field synchronization frame packet is forwarded to the next cascaded receiving card through each receiving card in sequence. After receiving the first field synchronization frame packet, each receiving card determines its own position identifier based on the position identifier of the previous receiving card and updates the first field synchronization frame packet. The last receiving card determines the ending position of the receiving card string based on the LLDP neighbor information.

[0179] The last receiving card in the receiving card string sends a synchronization packet query information to the sending card through the switch. The sending card sends a second synchronization frame packet to the last receiving card in the receiving card string through the switch. The last receiving card responds to the second synchronization frame packet by filling its position identifier into the receiving card return packet and sending the receiving card return packet back to the cascaded previous receiving card. After receiving the receiving card return packet, each receiving card fills its own position identifier into the receiving card return packet.

[0180] In another embodiment, there are a primary transmitting card and a backup transmitting card, each including at least one port pair, the port pair including a primary port and a backup port, the primary port being connected to the primary switch and the backup port being connected to the backup switch; the first receiving card in the receiving card string is connected to the primary switch and the last receiving card in the receiving card string is connected to the backup switch.

[0181] In another embodiment, the LLDP neighbor information storage module is used for each node of the LED display control system to send LLDP packets to connected neighbor nodes when the sending conditions are met; each node of the LED display control system receives the LLDP packets from the neighbor nodes, parses the LLDP packets, and stores the LLDP information of the neighbor nodes.

[0182] In another embodiment, the LLDP neighbor information storage module is also used to power on each node of the LED display control system, or to determine the start of a new transmission cycle based on a timer, or to detect a network port reconnection event during the current transmission cycle, wherein the timer is started when the node is powered on.

[0183] In another embodiment, the LLDP neighbor information storage module is also configured to reset the LLDP packet when a new reception cycle is determined according to a timer.

[0184] In another embodiment, the LLDP neighbor information storage module is further used for the LED display control system's sending card to receive LLDP packets from neighboring nodes, parse the LLDP packets, identify the connected switches, and store the MAC address, port information, identification information, and lifecycle of the LLDP neighbor information of the switches; the LED display control system's switches to receive LLDP packets from neighboring nodes, parse the LLDP packets, identify the connected sending cards, and store the MAC address, port information, master / slave information, identification information, and lifecycle of the LLDP neighbor information of the sending cards, as well as sending card information; the LED display control system's switches to receive LLDP packets from neighboring nodes, parse the LLDP packets, identify the connected receiving cards, and store the MAC address, port information, master / slave information, identification information, and lifecycle of the LLDP neighbor information of the receiving cards, as well as receiving card information; the LED display control system's receiving cards to receive LLDP packets from neighboring nodes, parse the LLDP packets, identify the connected switches, and store the MAC address, port information, identification information, and lifecycle of the LLDP neighbor information of the switches; the LED display control system's receiving cards to receive LLDP packets from neighboring nodes, parse the LLDP packets, identify the connected receiving cards, and store the MAC address, port information, master / slave information, identification information, and lifecycle of the LLDP neighbor information of the receiving cards, as well as receiving card information.

[0185] Each module in the aforementioned network topology identification device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0186] In one embodiment, a computer device is provided, which may be a controller, and its internal structure diagram may be as follows: Figure 12 As shown, the computer device includes a processor, memory, communication interface, and display screen 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 and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a network topology identification method. The display screen can be an LCD screen or an e-ink screen.

[0187] Those skilled in the art will understand that Figure 12 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.

[0188] 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 network topology identification method of the above embodiments.

[0189] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the network topology identification method described in the above embodiments.

[0190] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the network topology identification methods described in the above embodiments.

[0191] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0192] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0193] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A network topology identification method, characterized by, The application is applied to an LED display screen control system including a host computer, a sending card, a switch and a receiving card, the host computer is connected with the sending card, the sending card is connected with the switch, a plurality of receiving cards are connected in sequence to form a receiving card string, the switch is connected with the first receiving card of the receiving card string, the nearest receiving card of the receiving card string is connected with the switch, the switch includes a main switch and a backup switch, a main sending card and a backup sending card, the main sending card and the backup sending card each include at least one port pair, the port pair includes a main port and a backup port, the main port is connected with the main switch, and the backup port is connected with the backup switch; the first receiving card of the receiving card string is connected with the main switch, the last receiving card of the receiving card string is connected with the backup switch, and the network topology identification method includes: Each node of the LED display screen control system identifies a neighbor node based on an LLDP protocol and stores LLDP neighbor information; A first field synchronization frame packet is sent to the switch connected with the sending card through the sending card; The first field synchronization frame packet is sent to the receiving card string connected with the switch through the switch; The first receiving card of the receiving card string determines a starting point position in the receiving card string according to the LLDP neighbor information, generates a first field synchronization frame packet related to a position identifier, and forwards the first field synchronization frame packet to the next receiving card in the cascade through each receiving card; after each receiving card receives the first field synchronization frame packet, the position identifier of the last receiving card is determined according to the position identifier of the previous receiving card, the first field synchronization frame packet is updated, the last receiving card determines a terminal position in the receiving card string according to the LLDP neighbor information, the last receiving card of the receiving card string sends a synchronization packet query information to the sending card through the switch, the sending card sends a second field synchronization frame packet to the last receiving card of the receiving card string through the switch, the last receiving card fills the position identifier into a receiving card return packet in response to the second field synchronization frame packet, and returns the receiving card return packet to the previous receiving card in the cascade; after each receiving card receives the receiving card return packet, the position identifier of each receiving card is filled into the receiving card return packet; The receiving card return packet received by the first receiving card of the receiving card string is sent to the sending card through the switch; The information of the switch is obtained according to the LLDP neighbor information through the sending card, and the information of the switch and the receiving card return packet are sent to the host computer; The receiving card return packet and the information of the switch are analyzed through the host computer, and a network topology diagram is generated.

2. The method of claim 1, wherein, Each node of the LED display screen control system identifies a neighbor node based on an LLDP protocol and stores LLDP neighbor information, including: Each node of the LED display screen control system sends an LLDP packet to a connected neighbor node when a sending condition is met; Each node of the LED display screen control system receives an LLDP packet of a neighbor node, analyzes the LLDP packet, and stores LLDP neighbor information of the neighbor node.

3. The method of claim 2, wherein, The sending condition comprises: each node of the LED display screen control system is powered on, or a new sending period is determined according to a timer, or a network port reconnection event occurs in a current sending period, wherein the timer is started when the node is powered on.

4. The method of claim 2, wherein, When a new receiving period is determined according to the timer, the LLDP packet is reset.

5. The method of claim 2, wherein, Each node of the LED display screen control system receives the LLDP packet of the neighbor node, analyzes the LLDP packet, and stores the LLDP neighbor information of the neighbor node, comprising: The sending card of the LED display screen control system receives the LLDP packet of the neighbor node, analyzes the LLDP packet, identifies the connected switch, and stores the MAC address, port information, identification information, and life cycle of the LLDP neighbor information of the switch; The switch of the LED display screen control system receives the LLDP packet of the neighbor node, analyzes the LLDP packet, identifies the connected sending card, and stores the MAC address, port information, master-slave information, identification information, life cycle of the LLDP neighbor information, and sending card information of the sending card; The switch of the LED display screen control system receives the LLDP packet of the neighbor node, analyzes the LLDP packet, identifies the connected receiving card, and stores the MAC address, port information, master-slave information, identification information, life cycle of the LLDP neighbor information, and receiving card information of the receiving card; The receiving card of the LED display screen control system receives the LLDP packet of the neighbor node, analyzes the LLDP packet, identifies the connected switch, and stores the MAC address, port information, identification information, and life cycle of the LLDP neighbor information of the switch; The receiving card of the LED display screen control system receives the LLDP packet of the neighbor node, analyzes the LLDP packet, identifies the connected receiving card, and stores the MAC address, port information, master-slave information, identification information, life cycle of the LLDP neighbor information, and receiving card information of the receiving card.

6. A network topology identification apparatus, characterized by comprising: The LED display screen control system comprises a host computer, a sending card, a switch, and a receiving card, the host computer is connected to the sending card, the sending card is connected to the switch, a plurality of receiving cards are connected in sequence to form a receiving card string, the switch is connected to the first receiving card of the receiving card string, the nearest receiving card of the receiving card string is connected to the switch, the switch comprises a master switch and a backup switch, a master sending card and a backup sending card, the master sending card and the backup sending card each comprise at least one port pair, the port pair comprises a master port and a backup port, the master port is connected to the master switch, and the backup port is connected to the backup switch; the first receiving card of the receiving card string is connected to the master switch, the last receiving card of the receiving card string is connected to the backup switch, and the device comprises: An LLDP neighbor information storage module is configured to identify a neighbor node and store LLDP neighbor information based on an LLDP protocol for each node of the LED display screen control system. The switch obtains a first field synchronization frame packet module, configured to send a first field synchronization frame packet to a switch connected with the sending card through the sending card; The receiving card string obtains a first field synchronization frame packet module, configured to send the first field synchronization frame packet to a receiving card string connected with the switch through the switch; A backhaul packet obtaining module is configured to determine a starting position of the receiving card string according to the LLDP neighbor information, and generate a first field synchronization frame packet related to the position identifier, the first field synchronization frame packet is forwarded to the next receiving card in the cascade through each receiving card, 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, the last receiving card determines a terminal position of the receiving card string according to the LLDP neighbor information, the last receiving card of the receiving card string sends a synchronization packet query information to the sending card through the switch, the sending card sends a second field synchronization frame packet to the last receiving card of the receiving card string through the switch, the last receiving card fills the position identifier into a receiving card backhaul packet in response to the second field synchronization frame packet, and the receiving card backhaul packet is transmitted to the next receiving card in the cascade, after each receiving card receives the receiving card backhaul packet, the position identifier of itself is filled into the receiving card backhaul packet; A backhaul packet sending module is configured to send the receiving card backhaul packet received by the first receiving card of the receiving card string to the sending card through the switch; An upper computer receiving module is configured to obtain information of the switch according to the LLDP neighbor information through the sending card, and send the information of the switch and the receiving card backhaul packet to the upper computer; A network topology graph generating module is configured to parse the receiving card backhaul packet and the information of the switch through the upper computer, and generate a network topology graph.

7. The apparatus of claim 6, wherein, The LLDP neighbor information storage module is further configured to send an LLDP packet to a connected neighbor node when a sending condition is met, and receive and parse the LLDP packet of the neighbor node, and store the LLDP neighbor information of the neighbor node.

8. The apparatus of claim 7, wherein, The LLDP neighbor information storage module is further configured to reset the LLDP packet when it is determined that a new receiving period is entered according to a timer. 9.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-8 when the computer program is executed by the processor. The processor executes the computer program to realize the steps of the method in any one of claims 1 to 5.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Dynamic detection system and method of process layer network topology of smart substation

    CN108429637A

  • Receiving card network transmission path determination method and device, terminal and storage medium

    CN113364690A

  • Network topology identification method and LED display screen control system

    CN114519970A