CN113014466A - Network port loop detection method and system - Google Patents

Network port loop detection method and system Download PDF

Info

Publication number
CN113014466A
CN113014466A CN201911318599.2A CN201911318599A CN113014466A CN 113014466 A CN113014466 A CN 113014466A CN 201911318599 A CN201911318599 A CN 201911318599A CN 113014466 A CN113014466 A CN 113014466A
Authority
CN
China
Prior art keywords
module controller
interface
data interface
switching device
ethernet switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911318599.2A
Other languages
Chinese (zh)
Other versions
CN113014466B (en
Inventor
吕京梅
韦桂锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201911318599.2A priority Critical patent/CN113014466B/en
Publication of CN113014466A publication Critical patent/CN113014466A/en
Application granted granted Critical
Publication of CN113014466B publication Critical patent/CN113014466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration

Abstract

The embodiment of the invention relates to a method and a system for detecting a network port loop, wherein the method comprises the following steps: receiving and responding to a first data reading instruction to read at least one first module controller identification group from a first system controller; receiving and responding to a second data reading instruction to read at least one second module controller identification group from a second system controller; processing each first module controller identification group and second module controller identification group; determining that a loop exists between a first load interface of the first Ethernet switching equipment and a second load interface of the second Ethernet switching equipment in response to the first processed first module controller identification group being the same as the first processed second module controller identification group; and displaying the loop relation of the first loading interface and the second loading interface. The embodiment of the invention can realize the automatic detection of the network port loop relation between the Ethernet switching devices.

Description

Network port loop detection method and system
Technical Field
The invention relates to the technical field of display control, in particular to a network port loop detection method and a network port loop detection system.
Background
At present, the LED display screen is widely applied to various occasions in our daily life due to the characteristics of high visibility, low power consumption and the like. The LED display screen is applied to an LED display screen control system, which typically includes a system controller (e.g., a sending card) and a plurality of module controllers (e.g., a receiving card, a scanning card) electrically connected to the system controller, and each module controller is used for carrying one or more LED lamp panel modules in an LED display screen body.
In practical application, a plurality of system controllers are needed to be used for realizing the display of a large-scale LED display screen, and a backup mechanism needs to be implemented between the plurality of system controllers for ensuring the stability of the LED display screen control system. Therefore, in addition to the loops existing between the system controllers, loops also exist between the ethernet switching devices respectively connected to the system controllers, but at present, the network port loop relationship between the ethernet switching devices cannot be actively detected, which brings much inconvenience to field debugging personnel. Therefore, how to automatically detect the network port loop relationship between the ethernet switching devices is an urgent technical problem to be solved by the present invention.
Disclosure of Invention
Therefore, the embodiment of the present invention provides a method and a system for detecting a network port loop, which can implement automatic detection of a network port loop relationship between ethernet switching devices.
On one hand, the network port loop detection method provided by the embodiment of the invention comprises the following steps: receiving and responding to a first data reading instruction, and reading at least one first module controller identification group from a first system controller; wherein each of the first module controller identification sets includes an identification of at least one first module controller carried by a corresponding one of at least one on-load interface of a first ethernet switching device connected to a first data interface of the first system controller; receiving and responding to a second data reading instruction, and reading at least one second module controller identification group from a second system controller; wherein each of the second module controller identification sets includes an identification of at least one second module controller carried by a corresponding one of the at least one on-load interface of the second ethernet switching device connected to the second data interface of the second system controller; processing each first module controller identification group and each second module controller identification group to obtain at least one processed first module controller identification group and at least one processed second module controller identification group; matching the at least one post-processing first module controller identification group with the at least one post-processing second module controller identification group one by one, and determining that a loop exists in a first on-load interface of the at least one on-load interface of the first ethernet switching device corresponding to the first post-processing first module controller identification group and a second on-load interface of the at least one on-load interface of the second ethernet switching device corresponding to the second post-processing second module controller identification group in response to a first post-processing first module controller identification group in the at least one post-processing first module controller identification group being the same as a first post-processing second module controller identification group in the at least one post-processing second module controller identification group; and displaying a loop relationship between the first load interface of the first ethernet switching device and the second load interface of the second ethernet switching device.
In the prior art, the network port loop relationship between Ethernet switching devices cannot be actively detected, which brings much inconvenience to field debugging personnel. The method for detecting a network interface loop disclosed in this embodiment reads at least one first module controller identifier group from a first system controller and at least one second module controller identifier group from a second system controller, processes each read module controller identifier group, determines that a loop exists in a first load interface of a first ethernet switching device and a second load interface of a second ethernet switching device in response to that the first processed first module controller identifier group is the same as the first processed second module controller identifier group after the first processing, and displays a loop relationship, thereby automatically detecting a network interface loop relationship between ethernet switching devices, simplifying a debugging process of the system, saving debugging time, facilitating field debugging personnel, improving work efficiency, making the system more intelligent and flexible, and directly displaying a loop relationship more visually, the user experience is improved.
In one embodiment of the present invention, after said individually matching said at least one post-processing first group controller identification group with said at least one post-processing second group controller identification group, further comprising: determining that a loop exists between the first data interface of the first system controller and the second data interface of the second system controller in response to each of the at least one post-processing first module controller identification set corresponding one-to-one and being the same as each of the at least one post-processing second module controller identification set; and displaying a loop relationship of the first data interface of the first system controller and the second data interface of the second system controller.
In an embodiment of the present invention, the processing each first module controller identification group and each second module controller identification group to obtain at least one processed first module controller identification group and at least one processed second module controller identification group includes: adjusting the ranking of the identities of the at least one first module controller included in each of the first module controller identity groups and the ranking of the identities of the at least one second module controller included in each of the second module controller identity groups according to a specified rule to obtain the at least one processed first module controller identity group and the at least one processed second module controller identity group.
On the other hand, the network port loop detection system provided by the embodiment of the present invention includes: an upper computer; the first system controller is connected with the upper computer and comprises a first data interface; the second system controller is connected with the upper computer and comprises a second data interface; a first Ethernet switching device connected to the first data interface of the first system controller and including a first load interface; the second Ethernet switching equipment is connected with the second data interface of the second system controller and comprises a second loading interface; a plurality of module controllers, which are cascaded with each other, wherein a first-stage module controller of the plurality of module controllers is adjacently connected to the first load interface of the first ethernet switching device, and a last-stage module controller of the plurality of module controllers is adjacently connected to the second load interface of the second ethernet switching device; the upper computer is used for executing any one of the network port loop detection methods.
In one embodiment of the invention, each of said module controllers has a plurality of data interfaces and is adapted to: generating a plurality of first type broadcast packets corresponding to the initial identification information of each of the plurality of data interfaces, wherein each first type broadcast packet contains the initial identification information of the corresponding data interface, and the initial identification information of each data interface includes an identification of the module controller and an identification of the data interface; respectively transmitting the first type broadcast packets to the data interfaces for outputting; and generating a second type broadcast packet containing the current identification information of the plurality of data interfaces according to the current identification information of each of the plurality of data interfaces, specifically comprising: when a first type broadcast packet is input to a certain data interface of the plurality of data interfaces, updating the initial identification information of the data interface according to the input first type broadcast packet to obtain the current identification information of the data interface; when a first type broadcast packet is not input into a certain data interface of the plurality of data interfaces, taking the initial identification information of the data interface as the current identification information of the data interface; and transmitting the second type broadcast packet to each of the data interfaces for outbound output; wherein the first system controller is configured to receive the first type broadcast packet and the plurality of second type broadcast packets input from the first data interface via the first bearer interface of the first ethernet switching device, and identify the plurality of module controllers carried by the first bearer interface of the first ethernet switching device connected to the first data interface according to the received first type broadcast packet and the plurality of second type broadcast packets, so as to obtain the first module controller identification group; the second system controller is configured to receive the first type broadcast packet and a plurality of the second type broadcast packets input from the second data interface via the second piggyback interface of the second ethernet switching device, and identify the plurality of module controllers piggybacked on the second piggyback interface of the second ethernet switching device connected to the second data interface according to the first type broadcast packet and the plurality of the second type broadcast packets, so as to obtain the second module controller identification group.
In an embodiment of the present invention, the first system controller is specifically configured to: receiving the first type broadcast packet input from the first data interface via the first tape carrier interface of the first Ethernet switching device; parsing the first type broadcast packet input from the first data interface via the first tape carrier interface of the first ethernet switching device to obtain initial identification information of a first target data interface in a first target module controller; wherein the first target module controller is the first level module controller connected adjacent to the first on-board interface of the first ethernet switching device, and the first target data interface is one of a plurality of data interfaces of the first target module controller connected adjacent to the first on-board interface of the first ethernet switching device; receiving a plurality of the second type broadcast packets input from the first data interface via the first tape carrier interface of the first ethernet switching device; wherein a plurality of the second type broadcast packets input from the first data interface via the first on-board interface of the first Ethernet switching device include current identification information of a plurality of data interfaces of a corresponding one of the plurality of module controllers on-board the first on-board interface of the first Ethernet switching device; identifying the plurality of module controllers loaded on the first load interface of the first Ethernet switching device according to the initial identification information of the first target data interface and a plurality of second type broadcast packets input from the first data interface via the first load interface of the first Ethernet switching device to obtain the first module controller identification group; the first module controller identification group is saved and the first data reading instruction is sent to the upper computer; the second system controller is specifically configured to: receiving the first type broadcast packet input from the second data interface via the second on-load interface of the second ethernet switching device; parsing the first type broadcast packet input from the second data interface via the second on-load interface of the second ethernet switching device to obtain initial identification information of a second target data interface in a second target module controller; wherein the second target module controller is the last module controller connected adjacent to the second on-load interface of the second ethernet switching device, and the second target data interface is one of the plurality of data interfaces of the second target module controller connected adjacent to the second on-load interface of the second ethernet switching device; receiving a plurality of the second type broadcast packets input from the second data interface via the second load interface of the second ethernet switching device; wherein a plurality of the second type broadcast packets input from the second data interface via the second load interface of the second Ethernet switching device include current identification information of a plurality of data interfaces of a corresponding one of the plurality of module controllers loaded by the second load interface of the second Ethernet switching device; identifying the plurality of module controllers loaded by the second load interface of the second Ethernet switching device according to the initial identification information of the second target data interface and a plurality of second type broadcast packets input from the second data interface via the second load interface of the second Ethernet switching device to obtain a second module controller identification group; and saving the second module controller identification group and sending the second data reading instruction to the upper computer.
In one embodiment of the invention, the initial identification information of the first target data interface comprises an identification of the first target module controller and an identification of the first target data interface; the initial identification information of the second target data interface includes an identification of the second target module controller and an identification of the second target data interface.
In an embodiment of the present invention, the first system controller is configured to identify the plurality of module controllers loaded by the first load interface of the first ethernet switching device according to the initial identification information of the first target data interface and a plurality of broadcast packets of the second type input from the first data interface via the first load interface of the first ethernet switching device to obtain the first module controller identification group, and specifically includes: parsing each second-type broadcast packet input from the first data interface via the first on-board interface of the first ethernet switching device to obtain current identification information of each of a plurality of data interfaces of a module controller corresponding to the second-type broadcast packet; when the current identification information of a certain data interface is the same as the initial identification information of the first target data interface, determining that the identifier of a module controller contained in the current identification information of another data interface of the module controller where the data interface is located is the identifier of a module controller at the next stage of the first target module controller; when the identifier of the module controller included in the current identifier information of a certain data interface is the same as the identifier of the first target module controller included in the initial identifier information of the first target data interface, but the identifier of the included data interface is different from the identifier of the first target data interface included in the initial identifier information of the first target data interface, determining that the identifier of the module controller included in the current identifier information of another data interface of the module controller where the data interface is located is the identifier of a next-level module controller of the first target module controller.
In one embodiment of the present invention, the last three bytes of the destination MAC address field of the first type broadcast packet are 0xffffffff, and the six bytes of the destination MAC address field of the second type broadcast packet are 0 xffffffffffffff.
In one embodiment of the present invention, the plurality of data interfaces of the module controller are two network ports, and the identifier of the module controller is a MAC address of the module controller.
As can be seen from the above, the above technical features of the present invention may have one or more of the following advantages: the network port loop relation between the Ethernet switching devices can be automatically detected, the network port loop relation between the system controllers connected with the Ethernet switching devices is further automatically detected, the debugging process of the system is simplified, the debugging time is saved, convenience is brought to field debugging personnel, the working efficiency is improved, the system is more intelligent and flexible, the loop relation is directly displayed more visually, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an internet access loop detection system according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an initial state and a post-training state of a plurality of module controllers electrically connected between two on-load interfaces of two ethernet switching devices to which two system controllers are respectively and correspondingly connected according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a host computer displaying a loop relationship of a load interface between ethernet switching devices according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a system 10 for detecting a portal loop, including: the system comprises an upper computer 11, a first system controller 121, a second system controller 122, a plurality of module controllers 131 and 134, a first Ethernet switching device 141 and a second Ethernet switching device 142.
The first system controller 121 is connected to the upper computer 11 and includes a first data interface 1211. The second system controller 122 is connected to the upper computer 11, and includes a second data interface 1221. The first ethernet switching device 141 is connected to the first data interface 1211 of the first system controller 121 and includes at least one on-board interface, which includes, for example, the first on-board interface 1411. The second ethernet switching device 142 is connected to the second data interface 1221 of the second system controller 122 and includes at least one on-load interface, which includes, for example, the second on-load interface 1421. The plurality of module controllers 131 and 134 are cascaded with each other, and a first-level module controller, that is, the module controller 131, of the plurality of module controllers is adjacently connected to the first tape carrier interface 1411 of the first ethernet switching device 141, which can also be understood as that the module controller 131 is adjacently connected to the first data interface 1211 of the first system controller 121. The last stage module controller, i.e. the module controller 134, is connected adjacent to the second load interface 1421 of the second ethernet switching device 142, and it can also be understood that the module controller 134 is connected adjacent to the second data interface 1221 of the second system controller 122. Of course, the present invention is not limited to fig. 1, that is, the embodiments of the present invention do not limit the number of the system controller, the data interface included in the system controller, the ethernet switching device, the on-load interface included in the ethernet switching device, the module controller, and the data interface included in the module controller. The host computer 11 is, for example, a personal computer, hand-held or portable device, tablet device, multiprocessor system, microprocessor-based system, programmable consumer electronics, network PC, minicomputer, mainframe computer, distributed computing environment that includes any of the above systems or devices, and the like. The first system controller 121 and the second system controller 122 are, for example, sending cards in an LED display screen control system, the respective module controllers 131 and 134 are, for example, receiving cards (or scanning cards) in the LED display screen control system, and the first ethernet switching device 141 and the second ethernet switching device 142 are, for example, ethernet switches, but the embodiments of the present invention are not limited thereto.
As described above, the first system controller 121 of this embodiment is configured to recognize the broadcast of the module controller 131 and 134 and forward, for example, the transparent first type broadcast packet and the second type broadcast packet through the first ethernet switching device 141. The first ethernet switching device 141 functions to forward all broadcast packets (including the first type broadcast packet and the second type broadcast packet) input to the at least one load interface to the first system controller 121 in a summary manner. The load interfaces of the first ethernet switching device 141 cannot forward the broadcast packet to each other. Similarly, the second system controller 122 is configured to recognize the broadcast of the module controller 131 and 134 and forward the first type broadcast packet and the second type broadcast packet through the second ethernet switching device 142. The second ethernet switching device 142 functions the same as the first ethernet switching device 141. The first type broadcast packets and the second type broadcast packets may be mutually transmitted between the respective module controllers 131 and 134. To make the presentation more visual, the first type of broadcast packet is referred to as a node discovery packet and the second type of broadcast packet is referred to as a training packet. The module controllers respectively identify the connection relationship between the adjacent module controllers, the node broadcast packets are only transmitted between the adjacent module controllers, the adjacent topological relationship of the module controllers is recorded in the training packets, the training packets are sent to the first system controller 121 through the first data interface 1211 via the first ethernet switching device 141, and are sent to the second system controller 122 through the second data interface 1221 via the second ethernet switching device 142, so that the first system controller 121 and the second system controller 122 respectively receive the input node discovery packet and the training packet from the respective data interfaces to identify the module controllers carried by the carrying interfaces of the ethernet switching devices connected to the respective data interfaces, and learn the module controller identification groups corresponding to the carrying interfaces of the ethernet switching devices connected to the respective data interfaces, so as to upload the module controllers to the upper computer 11, the upper computer 11 processes and judges the received module controller identification group to determine and display a loop relationship between the load interface of the first ethernet switching device 141 and the load interface of the second ethernet switching device 142, and further, may determine and display a loop relationship between the data interface of the first system controller 121 and the data interface of the second system controller 122.
Specifically, each of the module controllers 131 and 134 has a plurality of data interfaces, each of which is used, for example, to: generating a plurality of first type broadcast packets corresponding to initial identification information of a plurality of data interfaces according to the initial identification information of the data interfaces, wherein each first type broadcast packet contains the initial identification information of the corresponding data interface, and the initial identification information of each data interface comprises an identification of the module controller and an identification of the data interface; respectively transmitting the first type broadcast packets to the data interfaces for outputting; and generating a second type broadcast packet containing the current identification information of the plurality of data interfaces according to the current identification information of each of the plurality of data interfaces, specifically comprising: when a first type broadcast packet is input to a certain data interface of the plurality of data interfaces, updating the initial identification information of the data interface according to the input first type broadcast packet to obtain the current identification information of the data interface; when a first type broadcast packet is not input into a certain data interface of the plurality of data interfaces, taking the initial identification information of the data interface as the current identification information of the data interface; and transmitting the second type broadcast packet to each of the data interfaces for output.
The plurality of data interfaces of the module controller are, for example, two network ports, and the identifier of the module controller is a MAC address or other unique identifier of the module controller. The last three bytes of the destination MAC address field of the first type broadcast packet are 0xffffffff, and the six bytes of the destination MAC address field of the second type broadcast packet are 0xFFFFFFFFFFFF, so that the first type broadcast packet can not be transmitted to the cascaded devices, and the second type broadcast packet can be transmitted to the cascaded devices.
The first system controller 121 is, for example, configured to receive the first type broadcast packet and the plurality of second type broadcast packets input from the first data interface 1211 via the first tape carrier interface 1411 of the first ethernet switching device 141, and identify the plurality of module controller groups 131 and 134 loaded by the first tape carrier interface 1411 of the first ethernet switching device 141 connected to the first data interface 1211 according to the received first type broadcast packet and the plurality of second type broadcast packets, so as to obtain the first module controller identification group.
The second system controller 122 is, for example, configured to receive the first type broadcast packet and the plurality of second type broadcast packets input from the second data interface 1221 via the second load interface 1421 of the second ethernet switching device 142, and identify the plurality of module controller groups 131 and 134 loaded by the second load interface 1421 of the second ethernet switching device 142 connected to the second data interface 1221 according to the first type broadcast packet and the plurality of second type broadcast packets, so as to obtain the second module controller identification group.
Further, the first system controller 121 is specifically configured to receive the first type broadcast packet input from the first data interface 1211 via the first tape carrier interface 1411 of the first ethernet switching device 141; parsing the first type broadcast packet input from the first data interface 1211 via the first tape carrier interface 1411 of the first ethernet switching device 141 to obtain initial identification information of the first target data interface in the first target module controller; wherein the first target module controller is the first-level module controller 131 connected adjacent to the first piggyback interface 1411 of the first ethernet switching device 141, and the first target data interface is one of the plurality of data interfaces of the first target module controller connected adjacent to the first piggyback interface 1411 of the first ethernet switching device 141; receiving a plurality of the second type broadcast packets input from the first data interface 1211 via the first tape carrier interface 1411 of the first ethernet switching device 141; wherein a plurality of the second type broadcast packets input from the first data interface 1211 via the first tape carrier interface 1411 of the first ethernet switching device 141 include current identification information of a plurality of data interfaces of a corresponding one of the plurality of module controllers 131 and 134 loaded by the first tape carrier interface 1411 of the first ethernet switching device 141; identifying the plurality of module controllers 131 and 134 loaded by the first load interface 1411 of the first ethernet switching device 141 according to the initial identification information of the first target data interface and the plurality of second type broadcast packets input from the first data interface 1211 via the first load interface 1411 of the first ethernet switching device 141 to obtain the first module controller identification group; and saving the first module controller identification group and sending the first data reading instruction to the upper computer 11.
The second system controller 122 is specifically configured to receive the first-type broadcast packet input from the second data interface 1221 via the second load interface 1421 of the second ethernet switching device 142; parsing the first type broadcast packet input from the second data interface 1221 via the second load interface 1421 of the second ethernet switching device 142 to obtain initial identification information of a second target data interface in the second target module controller; wherein the second target module controller is a last-stage module controller 134 connected adjacent to the second load interface 1421 of the second ethernet switching device 142, and the second target data interface is one of the plurality of data interfaces of the second target module controller connected adjacent to the second load interface 1421 of the second ethernet switching device 142; receiving a plurality of the second type broadcast packets input from the second data interface 1221 via the second tape carrier interface 1421 of the second ethernet switching device 142; wherein a plurality of the second type broadcast packets input from the second data interface 1221 via the second load interface 1421 of the second ethernet switching device 142 include current identification information of a plurality of data interfaces of a corresponding one of the plurality of module controllers 131 and 134 loaded by the second load interface 1421 of the second ethernet switching device 142; identifying the plurality of module controllers 131 and 134 loaded on the second load interface 1421 of the second ethernet switching device 142 according to the initial identification information of the second target data interface and the plurality of second type broadcast packets input from the second data interface 1221 via the second load interface 1421 of the second ethernet switching device 142 to obtain a second module controller identification group; and saving the second module controller identification group and sending the second data reading instruction to the upper computer 11.
Wherein said initial identification information of said first target data interface mentioned for example comprises an identification of said first target module controller and an identification of said first target data interface. Said initial identification information of the mentioned second target data interface comprises for example an identification of said second target module controller and an identification of said second target data interface. Wherein the identification of the first mentioned target group controller is for example the MAC address or other unique identification of said first target group controller and the identification of the second mentioned target group controller is for example the MAC address or other unique identification of said second target group controller.
Further, the aforementioned first system controller 121 is configured to identify the plurality of module controllers 131 and 134 loaded by the first bearer interface 1411 of the first ethernet switching device 141 according to the initial identification information of the first target data interface and the plurality of second type broadcast packets input from the first data interface 1211 via the first bearer interface 1411 of the first ethernet switching device 141 to obtain the first module controller identification group, and specifically includes: parsing each of the second type broadcast packets input from the first data interface 1211 via the first tape carrier interface 1411 of the first ethernet switching device 141 to obtain current identification information of each of a plurality of data interfaces of a module controller corresponding to the second type broadcast packet; when the current identification information of a certain data interface is the same as the initial identification information of the first target data interface, determining that the identifier of a module controller contained in the current identification information of another data interface of the module controller where the data interface is located is the identifier of a module controller at the next stage of the first target module controller; when the identifier of the module controller included in the current identifier information of a certain data interface is the same as the identifier of the first target module controller included in the initial identifier information of the first target data interface, but the identifier of the included data interface is different from the identifier of the first target data interface included in the initial identifier information of the first target data interface, determining that the identifier of the module controller included in the current identifier information of another data interface of the module controller where the data interface is located is the identifier of a next-level module controller of the first target module controller. In this way, the module controller carried by the loaded interface of the first ethernet switching device 141 connected to the first data interface 1211 of the first system controller 121 can be quickly identified. Similarly, the second system controller 122 performs the same operation to identify the plurality of module controllers carried by the on-load interface of the second ethernet switching device 142 connected to the second data interface 1221 to obtain the second module controller group identification.
Further, the first system controller 121 is configured to identify the plurality of module controllers loaded on the first tape carrier interface 1411 of the first ethernet switching device 141 according to the initial identification information of the first target data interface and the plurality of second type broadcast packets input from the first data interface 1211 via the first tape carrier interface 1411 of the first ethernet switching device 141 to obtain the first module controller identification group, for example, further comprising: learning the identification of the first target module controller, the identification of the next-level module controller, and the identification of the next-level module controller to obtain the first module controller identification group. The first system controller 121 can quickly acquire the first module controller identification group by learning the identifications of the plurality of module controllers loaded. Similarly, the second system controller 122 performs the same learning operation to obtain a second group controller identification group.
The aforementioned first data interface 1211, second data interface 1221, data interfaces on the respective module controllers, first on-board interface 1411, second on-board interface 1421, and other on-board interfaces of the ethernet switching device are, for example, network ports.
It should be noted that, in the embodiment, the first tape carrier interface 1411 and the second tape carrier interface 1421 are taken as an example for description, but not limited to, the number of the loaded interfaces of the first ethernet switching device 141 and the second ethernet switching device 142, the first ethernet switching device 141 and the second ethernet switching device 142 may also be respectively loaded with a plurality of different module controllers through a plurality of loaded interfaces, in this way, the first system controller 121 learns to store a plurality of first module controller id groups corresponding to a plurality of load ports of the first ethernet switching device 141, and the second system controller 122 will learn to store a plurality of second module controller identification sets in accordance with the foregoing method, corresponding to the plurality of loaded interfaces of the second ethernet switching device 142, and then respectively issues a first data reading instruction and a second data reading instruction.
Further, the upper computer 11 is, for example, configured to receive and respond to the first data reading instruction to read at least one first module controller identification group from the first system controller 121; wherein each of the first module controller identification sets includes an identification of at least one first module controller carried by a corresponding one of the at least one carrier interface of the first ethernet switching device 141 connected to the first data interface 1211 of the first system controller 121; receiving and reading at least one second group controller identification group from the second system controller 122 in response to a second data read instruction; wherein each of the second module controller identification sets includes an identification of at least one second module controller carried by a corresponding one of the at least one on-load interface of the second ethernet switching device 142 connected to the second data interface 1221 of the second system controller 122; processing each first module controller identification group and each second module controller identification group to obtain at least one processed first module controller identification group and at least one processed second module controller identification group; matching the at least one processed first module controller identification group with the at least one processed second module controller identification group one by one, and in response to that a first processed first module controller identification group in the at least one processed first module controller identification group is the same as a first processed second module controller identification group in the at least one processed second module controller identification group, determining that a loop exists in a first on-load interface 1411 of the at least one on-load interface of the first ethernet switching device 141 corresponding to the first processed first module controller identification group and in a second on-load interface 1421 of the at least one on-load interface of the second ethernet switching device 142 corresponding to the second processed second module controller identification group; and showing the loop relationship of the first tape carrier interface 1411 of the first ethernet switching device 141 and the second tape carrier interface 1421 of the second ethernet switching device 142. In short, the upper computer matches the processed first module controller identifier group with the processed second module controller identifier group, and if the matching is successful, that is, the same module controller identifier group exists, a loop exists between a load interface of the first ethernet switching device 141 and a load interface of the second ethernet switching device 142 corresponding to each module controller identifier group.
Further, the upper computer 11, after matching the at least one processed first module controller identification group with the at least one processed second module controller identification group one by one, is further configured to: determining that a loop exists between the first data interface 1211 of the first system controller 121 and the second data interface 1221 of the second system controller 122 in response to each of the at least one processed first module controller identification group corresponding to and being the same as each of the at least one processed second module controller identification group; and a loop relationship of the first data interface 1211 of the first system controller 121 and the second data interface 1221 of the second system controller 122 is displayed. In short, when it is determined that the number of the processed first module controller identification groups and the number of the processed second module controller identification groups are equal and respectively correspond to the same, it is determined that a loop exists in the first data interface 1211 of the first system controller 121 and the second data interface 1221 of the second system controller 122.
Further, the upper computer 11 is configured to process each first module controller identification group and each second module controller identification group to obtain at least one processed first module controller identification group and at least one processed second module controller identification group, and specifically includes: adjusting the ranking of the identities of the at least one first module controller included in each of the first module controller identity groups and the ranking of the identities of the at least one second module controller included in each of the second module controller identity groups according to a specified rule to obtain the at least one processed first module controller identity group and the at least one processed second module controller identity group. Therefore, the relationship between the module controller identification groups can be rapidly judged. The specified rules mentioned therein are, for example, sorted from small to large.
For ease of understanding, the portal loop detection method performed by the portal loop detection system 10 is described below with reference to fig. 2 and 3. The first load interface 1411 of the first ethernet switching device 141 is, for example, a load port M, and the second load interface 1421 of the second ethernet switching device 142 is, for example, a load port N. The plurality of data interfaces of the module controller comprises, for example, two network ports a and B. The description will be made by taking an example in which a plurality of, for example, four module controllers Rm1-Rm2 and Rn1-Rn2 are electrically connected between the load port M of the first ethernet switching device and the load port N of the second ethernet switching device.
As shown in fig. 2, the operation modes of the power-on initialization of the four module controllers are: each module controller sends a node discovery packet and a training packet from a network port a and a network port B respectively, three bytes after a destination MAC address field in the node discovery packet are, for example, 0xfffffff, the contents in the node discovery packet carry the identifier of the corresponding module controller and the identifier of the network port, the training packet sends current identification information after the network port a and the network port B are trained, and six bytes in the destination MAC address field in the training packet are, for example, 0 xfffffffff.
More specifically, the initial identification information of port a and port B of the module controller Rm1 is (Rm1, a) and (Rm1, B), respectively, and the current identification information after training is (Rm1, a) and (Rm2, a), respectively; the initial identification information of the network port A and the network port B of the module controller Rm2 are (Rm2, A) and (Rm2, B), respectively, and the current identification information after training is (Rm1, B) and (Rn2, B), respectively; the initial identification information of the network port a and the network port B of the module controller Rn2 are (Rn2, a) and (Rn2, B), respectively, and the current identification information after training is (Rn1, B) and (Rm2, B), respectively; the initial identification information of the network port a and the network port B of the module controller Rn1 are (Rn1, a) and (Rn1, B), respectively, and the current identification information after training is (Rn1, a) and (Rn2, a), respectively. Here, the module controller Rm1 is the aforementioned first-level module controller, that is, it is a target module controller connected adjacent to the on-load port M of the first ethernet switching device, and the port a of the module controller Rm1 is a target data interface connected adjacent to the on-load port M of the first ethernet switching device; similarly, the module controller Rn1 is the last-stage module controller mentioned above, that is, it is a target module controller connected adjacent to the ip port N of the second ethernet switching device, and the ip port a of the module controller Rn1 is a target data interface connected adjacent to the ip port N of the second ethernet switching device. An internet port a and an internet port B of the module controller Rm1 output a node discovery packet containing initial identification information (Rm1, a) and a node discovery packet containing initial identification information (Rm1, B), respectively, an internet port a and an internet port B of the module controller Rm2 output a node discovery packet containing initial identification information (Rm2, a) and a node discovery packet containing initial identification information (Rm2, B), respectively, an internet port a and an internet port B of the module controller Rn2 output a node discovery packet containing initial identification information (Rn2, a) and a node discovery packet containing initial identification information (Rn2, B), respectively, an internet port a and an internet port B of the module controller Rn1 output a node discovery packet containing initial identification information (Rn1, a) and a node discovery packet containing initial identification information (Rn1, B), respectively; network port a and network port B of module controller Rm1 each output a training packet containing current identification information (Rm1, a) and (Rm2, a), network port a and network port B of module controller Rm2 each output a training packet containing current identification information (Rm1, B) and (Rn2, B), network port a and network port B of module controller Rn2 each output a training packet containing current identification information (Rn1, B) and (Rm2, B), and network port a and network port B of module controller Rn1 each output a training packet containing current identification information (Rn1, a) and (Rn2, a).
As described above, a node discovery packet including initial identification information (Rm1, a) sent by the port a of the module controller Rm1 is input to the first system controller from the first data interface of the first system controller through the ip port M of the first ethernet switching device, and the initial identification information (Rm1, a) corresponding to the port a of the target module controller (i.e., the first level module controller under the ip port M of the first ethernet switching device) can be identified by the first system controller parsing the node discovery packet. Then, the first system controller receives four training packets from the first data interface of the first system controller via the load port M of the first ethernet switching device, that is, a training packet generated by the module controller Rm1 and containing the current identification information (Rm1, a) and (Rm2, a), a training packet generated by the module controller Rm2 and containing the current identification information (Rm1, B) and (Rn2, B), a training packet generated by the module controller Rn2 and containing the current identification information (Rn1, B) and (Rm2, B), and a training packet generated by the module controller Rn1 and containing the current identification information (Rn1, a) and (Rn2, a), and parses them respectively.
When the training packet including the current id information (Rm1, a) and (Rm2, a) is parsed, it is found that (Rm1, a) of the parsed current id information (Rm1, a) and (Rm2, a) is the same as the recognized initial id information (Rm1, a), and then the last level module controller Rm2 of the module Rm1 is determined according to the parsed current id information (Rm1, a) and (Rm2, a) of the (Rm2, a).
When parsing the training packet including the current identification information (Rm1, B) and (Rn2, B), it is found that the identification (Rm1) of one module controller in the parsed current identification information (Rm1, B) and (Rn2, B) is the same as the identification (Rm1) of the previously recognized initial identification information (Rm1, A), but the identification (B) of the gateway corresponding to the identification (Rm1) is different from the identification (A) of the gateway in the previously recognized initial identification information (Rm1, A), and also finds that the identity (Rn2) of the other one of the parsed current identity information (Rm1, B) and (Rn2, B) is different from the identity of the previously determined module controller Rm2, then the next-level module controller Rn2 of the module controller Rm1 can be determined according to the analyzed current identification information (Rm1, B) and (Rn2, B) in (Rn2, B).
When the training packet including the current id information (Rn1, B) and (Rm2, B) is parsed, it is found that the identifier (Rm2) of one of the parsed current id information (Rn1, B) and (Rm2, B) is the same as the identifier of the determined module controller Rm2, but the identifier (Rn1) of the other module controller is different from the identifier of the determined module controller Rn2, and then the last module controller Rn1 of the module controller Rm1 is determined according to the parsed current id information (Rn1, B) and (Rn1, B) of the (Rm2, B).
When parsing the training packet including the current id information (Rn1, a) and (Rn2, a), it is found that the ids (Rn1) and (Rn2) of the two module controllers in the parsed current id information (Rn1, a) and (Rn2, a) are the same as the determined ids of the module controller Rn1 and the module controller Rn2, respectively, and it is determined that the module controller Rn1 is the last stage module controller. Therefore, each of the module controllers Rm1-Rm2 and Rn1-Rn2 under the carrier network port M of the first ethernet switching device connected to the first data interface of the first system controller can be identified, so that the identifier groups { Rm1, Rm2, Rn2 and Rn1} of the corresponding module controllers Rm1-Rm2 and Rn1-Rn2 are learned, and the first system controller stores the learned identifier groups { Rm1, Rm2, Rn2 and Rn1} of the first module controllers in the local RAM and then sends a first data reading instruction to the host computer. In short, the first system controller of this embodiment receives and recognizes the node discovery broadcast packet from the first data interface through the load port M of the first ethernet switching device to synchronously recognize the first-stage module controller Rm1 and the identifier a of the port connected to the load port M, and then recognizes the following module controllers Rm2 and Rn1-Rn2 through four training packets, so that the first module identifiers corresponding to the module controllers Rm1-Rm2 and Rn1-Rn2 are learned to be { Rm1, Rm2, Rn2, and Rn1}, and then stores the first module controller identifiers, and sends a first data reading instruction to the upper computer to inform the upper computer that the learning of the identifiers is completed, so that data reading can be performed.
Similarly, the second system controller of this embodiment recognizes each of the module controllers Rm1-Rm2 and Rn1-Rn2 under the on-load network port N of the second ethernet switching device connected to the second data interface of the second system controller, so as to learn to obtain the second module controller identification groups { Rn1, Rn2, Rm2, Rm1} corresponding to the module controllers Rm1-Rm2 and Rn1-Rn2, and the second system controller stores the learned second module controller identification groups { Rn1, Rn2, Rm2, and Rm1} in the local RAM, and then sends a second data reading instruction to the upper computer to notify the upper computer that the upper computer has completed the identification learning, so that the data can be read.
The host computer may read the first group of module controller identifiers { Rm1, Rm2, Rn2, Rn1} from the RAM of the first system controller in response to the received first data read instruction, read the second group of module controller identifiers { Rn1, Rn2, Rm2, Rm1} from the RAM of the second system controller in response to the received second data read instruction, and then adjust the ordering of the identifiers in the first group of module controller identifiers { Rm1, Rm2, Rn2, Rn1} and the ordering of the identifiers in the second group of module controller identifiers { Rn1, Rn2, Rm2, Rm1} according to a specified rule, for example, in a small to large order. For example, the identities Rm1 of the module controllers are smaller than Rm2 is smaller than Rn2 is smaller than Rn1, so the two resulting post-processing module controller identity groups are: { Rm1, Rm2, Rn2, Rn1} and { Rm1, Rm2, Rn2, Rn1}, when the host computer detects that the identification groups of the post-processing module controllers respectively corresponding to the load port M of the first ethernet switching device connected to the first data interface of the first system controller and the load port N of the second ethernet switching device connected to the second data interface of the second system controller are the same, it can be determined that loops exist between the load port M of the first ethernet switching device and the load port N of the second ethernet switching device, and then the host computer displays the loop relationship between the load port M of the first ethernet switching device and the load port N of the second ethernet switching device. Therefore, currently, the first ethernet switching device only works with the load port M, and the second ethernet switching device only works with the load port N, it can be further determined that a loop exists between the first data interface of the first system controller and the second data interface of the second system controller, and the loop is displayed.
It should be noted that, the foregoing description only exemplifies one load interface of the first ethernet switching device and one load interface of the second ethernet switching device, but the invention is not limited thereto. In practical application, the first ethernet switching device has a situation that the plurality of on-load interfaces respectively carry at least one module controller, and the plurality of on-load interfaces of the second ethernet switching device respectively carry at least one module controller, in this situation, the first system controller can respectively identify the first module controller identification group corresponding to the at least one module controller carried by the plurality of on-load interfaces of the first ethernet switching device according to the above-mentioned description process, and store the first module controller identification group in the local RAM, and then send the first data reading instruction to the upper computer. The second system controller can respectively identify a second module controller identification group corresponding to at least one module controller which is respectively loaded by a plurality of loading interfaces of the second Ethernet switching equipment according to the above description process, store the second module controller identification group in the local RAM and send a second data reading instruction to the upper computer.
Further, when the plurality of load ports of the first ethernet switching device and the second ethernet switching device operate simultaneously, that is, the aforementioned first system controller stores a plurality of first module controller identification groups, the second system controller stores a plurality of second system controller identification groups, the upper computer will read the plurality of first module controller identification groups from the RAM of the first system controller in response to the received first data reading instruction, read the plurality of second module controller identification groups from the RAM of the second system controller in response to the received second data reading instruction, and then adjust the ordering of the identifications in each of the first module controller identification groups and the second module controller identification groups according to the specified rule of the upper computer, for example, the aforementioned ordering is from small to large. And then the upper computer matches each first module controller identification group with each second module controller identification group, and can determine that a loop exists between the load network ports of the Ethernet switching equipment corresponding to the two successfully matched module controller identification groups and display the loop relationship. When the plurality of first module controller identification groups read from the first system controller and the plurality of second module controller identification groups read from the second system controller are in one-to-one correspondence and are the same, that is, the number of the read first module controller identification groups is equal to that of the read second module controller identification groups, and the number of the read first module controller identification groups is respectively corresponding to that of the read second module controller identification groups, so that the first data interface of the first system controller and the second data interface of the second system controller can be determined to have loops and be displayed. As shown in fig. 3, the data interfaces of two system controllers having a loop relationship and the on-load network ports of two ethernet switching devices (switches) having loops are displayed by wire connection.
In summary, the foregoing embodiments of the present invention can achieve automatic detection of the network interface loop relationship between ethernet switching devices, and further can detect the network interface loop relationship between system controllers respectively connected to the ethernet switches, thereby simplifying the debugging process of the system, saving the debugging time, bringing convenience to field debugging personnel, improving the work efficiency, making the system more intelligent and flexible, directly displaying the loop relationship more intuitively, and improving the user experience.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and/or method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units/modules is only one logical division, and there may be other divisions in actual implementation, for example, multiple units or modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units/modules described as separate parts may or may not be physically separate, and parts displayed as units/modules may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units/modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated into one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated into one unit/module. The integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units/modules.
The integrated units/modules, which are implemented in the form of software functional units/modules, may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing one or more processors of a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A network port loop detection method is characterized by comprising the following steps:
receiving and responding to a first data reading instruction, and reading at least one first module controller identification group from a first system controller; wherein each of the first module controller identification sets includes an identification of at least one first module controller carried by a corresponding one of at least one on-load interface of a first ethernet switching device connected to a first data interface of the first system controller;
receiving and responding to a second data reading instruction, and reading at least one second module controller identification group from a second system controller; wherein each of the second module controller identification sets includes an identification of at least one second module controller carried by a corresponding one of the at least one on-load interface of the second ethernet switching device connected to the second data interface of the second system controller;
processing each first module controller identification group and each second module controller identification group to obtain at least one processed first module controller identification group and at least one processed second module controller identification group;
matching the at least one post-processing first module controller identification group with the at least one post-processing second module controller identification group one by one, and determining that a loop exists in a first on-load interface of the at least one on-load interface of the first ethernet switching device corresponding to the first post-processing first module controller identification group and a second on-load interface of the at least one on-load interface of the second ethernet switching device corresponding to the second post-processing second module controller identification group in response to a first post-processing first module controller identification group in the at least one post-processing first module controller identification group being the same as a first post-processing second module controller identification group in the at least one post-processing second module controller identification group; and
displaying a loop relationship between the first load interface of the first Ethernet switching device and the second load interface of the second Ethernet switching device.
2. The method according to claim 1, further comprising, after said individually matching said at least one processed first group controller identification group with said at least one processed second group controller identification group:
determining that a loop exists between the first data interface of the first system controller and the second data interface of the second system controller in response to each of the at least one post-processing first module controller identification set corresponding one-to-one and being the same as each of the at least one post-processing second module controller identification set; and
displaying a loop relationship of the first data interface of the first system controller and the second data interface of the second system controller.
3. The method according to claim 1, wherein the processing each of the first group controller identifier groups and each of the second group controller identifier groups to obtain at least one processed first group controller identifier group and at least one processed second group controller identifier group comprises:
adjusting the ranking of the identities of the at least one first module controller included in each of the first module controller identity groups and the ranking of the identities of the at least one second module controller included in each of the second module controller identity groups according to a specified rule to obtain the at least one processed first module controller identity group and the at least one processed second module controller identity group.
4. An internet access loop detection system, comprising:
an upper computer;
the first system controller is connected with the upper computer and comprises a first data interface;
the second system controller is connected with the upper computer and comprises a second data interface;
a first Ethernet switching device connected to the first data interface of the first system controller and including a first load interface;
the second Ethernet switching equipment is connected with the second data interface of the second system controller and comprises a second loading interface;
a plurality of module controllers, which are cascaded with each other, wherein a first-stage module controller of the plurality of module controllers is adjacently connected to the first load interface of the first ethernet switching device, and a last-stage module controller of the plurality of module controllers is adjacently connected to the second load interface of the second ethernet switching device;
the upper computer is used for executing the network port loop detection method according to any one of claims 1 to 3.
5. The portal loop detection system of claim 4, wherein each of said module controllers has a plurality of data interfaces and is configured to:
generating a plurality of first type broadcast packets corresponding to the initial identification information of each of the plurality of data interfaces, wherein each first type broadcast packet contains the initial identification information of the corresponding data interface, and the initial identification information of each data interface includes an identification of the module controller and an identification of the data interface;
respectively transmitting the first type broadcast packets to the data interfaces for outputting; and
generating a second type broadcast packet containing the current identification information of the multiple data interfaces according to the current identification information of the multiple data interfaces, specifically comprising:
when a first type broadcast packet is input to a certain data interface of the plurality of data interfaces, updating the initial identification information of the data interface according to the input first type broadcast packet to obtain the current identification information of the data interface;
when a first type broadcast packet is not input into a certain data interface of the plurality of data interfaces, taking the initial identification information of the data interface as the current identification information of the data interface; and
transmitting the second type broadcast packet to each of the data interfaces for outbound output;
wherein the first system controller is configured to receive the first type broadcast packet and the plurality of second type broadcast packets input from the first data interface via the first bearer interface of the first ethernet switching device, and identify the plurality of module controllers carried by the first bearer interface of the first ethernet switching device connected to the first data interface according to the received first type broadcast packet and the plurality of second type broadcast packets, so as to obtain the first module controller identification group;
the second system controller is configured to receive the first type broadcast packet and a plurality of the second type broadcast packets input from the second data interface via the second piggyback interface of the second ethernet switching device, and identify the plurality of module controllers piggybacked on the second piggyback interface of the second ethernet switching device connected to the second data interface according to the first type broadcast packet and the plurality of the second type broadcast packets, so as to obtain the second module controller identification group.
6. The portal loop detection system of claim 5,
the first system controller is specifically configured to:
receiving the first type broadcast packet input from the first data interface via the first tape carrier interface of the first Ethernet switching device;
parsing the first type broadcast packet input from the first data interface via the first tape carrier interface of the first ethernet switching device to obtain initial identification information of a first target data interface in a first target module controller; wherein the first target module controller is the first level module controller connected adjacent to the first on-board interface of the first ethernet switching device, and the first target data interface is one of a plurality of data interfaces of the first target module controller connected adjacent to the first on-board interface of the first ethernet switching device;
receiving a plurality of the second type broadcast packets input from the first data interface via the first tape carrier interface of the first ethernet switching device; wherein a plurality of the second type broadcast packets input from the first data interface via the first on-board interface of the first Ethernet switching device include current identification information of a plurality of data interfaces of a corresponding one of the plurality of module controllers on-board the first on-board interface of the first Ethernet switching device;
identifying the plurality of module controllers loaded on the first load interface of the first Ethernet switching device according to the initial identification information of the first target data interface and a plurality of second type broadcast packets input from the first data interface via the first load interface of the first Ethernet switching device to obtain the first module controller identification group; and
saving the first module controller identification group and sending the first data reading instruction to the upper computer; the second system controller is specifically configured to:
receiving the first type broadcast packet input from the second data interface via the second on-load interface of the second ethernet switching device;
parsing the first type broadcast packet input from the second data interface via the second on-load interface of the second ethernet switching device to obtain initial identification information of a second target data interface in a second target module controller; wherein the second target module controller is the last module controller connected adjacent to the second on-load interface of the second ethernet switching device, and the second target data interface is one of the plurality of data interfaces of the second target module controller connected adjacent to the second on-load interface of the second ethernet switching device;
receiving a plurality of the second type broadcast packets input from the second data interface via the second load interface of the second ethernet switching device; wherein a plurality of the second type broadcast packets input from the second data interface via the second load interface of the second Ethernet switching device include current identification information of a plurality of data interfaces of a corresponding one of the plurality of module controllers loaded by the second load interface of the second Ethernet switching device;
identifying the plurality of module controllers loaded by the second load interface of the second Ethernet switching device according to the initial identification information of the second target data interface and a plurality of second type broadcast packets input from the second data interface via the second load interface of the second Ethernet switching device to obtain a second module controller identification group; and
and storing the second module controller identification group and sending the second data reading instruction to the upper computer.
7. The portal loop detection system of claim 6, wherein the initial identification information of the first target data interface comprises an identification of the first target module controller and an identification of the first target data interface; the initial identification information of the second target data interface includes an identification of the second target module controller and an identification of the second target data interface.
8. The system according to claim 6, wherein the first system controller is configured to identify the plurality of module controllers loaded by the first load interface of the first ethernet switching device according to the initial identification information of the first target data interface and a plurality of broadcast packets of the second type input from the first data interface via the first load interface of the first ethernet switching device to obtain the first module controller identification group, and specifically comprises:
parsing each second-type broadcast packet input from the first data interface via the first on-board interface of the first ethernet switching device to obtain current identification information of each of a plurality of data interfaces of a module controller corresponding to the second-type broadcast packet;
when the current identification information of a certain data interface is the same as the initial identification information of the first target data interface, determining that the identifier of a module controller contained in the current identification information of another data interface of the module controller where the data interface is located is the identifier of a module controller at the next stage of the first target module controller;
when the identifier of the module controller included in the current identifier information of a certain data interface is the same as the identifier of the first target module controller included in the initial identifier information of the first target data interface, but the identifier of the included data interface is different from the identifier of the first target data interface included in the initial identifier information of the first target data interface, determining that the identifier of the module controller included in the current identifier information of another data interface of the module controller where the data interface is located is the identifier of a next-level module controller of the first target module controller.
9. The system of claim 5, wherein the last three bytes of the destination MAC address field of the first type broadcast packet are 0xFFFFFFFF, and the six bytes of the destination MAC address field of the second type broadcast packet are 0 xFFFFFFFFFFFFFFFF.
10. The system according to claim 5, wherein the plurality of data interfaces of the module controller are two gateways, and the identifier of the module controller is a MAC address of the module controller.
CN201911318599.2A 2019-12-19 2019-12-19 Network port loop detection method and system Active CN113014466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911318599.2A CN113014466B (en) 2019-12-19 2019-12-19 Network port loop detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911318599.2A CN113014466B (en) 2019-12-19 2019-12-19 Network port loop detection method and system

Publications (2)

Publication Number Publication Date
CN113014466A true CN113014466A (en) 2021-06-22
CN113014466B CN113014466B (en) 2022-08-16

Family

ID=76381189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911318599.2A Active CN113014466B (en) 2019-12-19 2019-12-19 Network port loop detection method and system

Country Status (1)

Country Link
CN (1) CN113014466B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707538A (en) * 2009-11-25 2010-05-12 烽火通信科技股份有限公司 Method for detecting and automatically recovering Ethernet loopback
CN102232279A (en) * 2011-06-17 2011-11-02 华为技术有限公司 Method for detecting loop position in Ethernet, and Ethernet switching device
US20130003601A1 (en) * 2011-06-29 2013-01-03 Brocade Communications Systems, Inc. External loop detection for an ethernet fabric switch
US20140050099A1 (en) * 2012-08-20 2014-02-20 Chi-Feng Lin Network Device and Method for Loop Detection
CN105704020A (en) * 2014-11-25 2016-06-22 华为技术有限公司 Loop avoidance methods, device and system
CN107689628A (en) * 2017-09-06 2018-02-13 全球能源互联网研究院有限公司 A kind of power network loop detecting method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707538A (en) * 2009-11-25 2010-05-12 烽火通信科技股份有限公司 Method for detecting and automatically recovering Ethernet loopback
CN102232279A (en) * 2011-06-17 2011-11-02 华为技术有限公司 Method for detecting loop position in Ethernet, and Ethernet switching device
US20130003601A1 (en) * 2011-06-29 2013-01-03 Brocade Communications Systems, Inc. External loop detection for an ethernet fabric switch
US20140050099A1 (en) * 2012-08-20 2014-02-20 Chi-Feng Lin Network Device and Method for Loop Detection
CN105704020A (en) * 2014-11-25 2016-06-22 华为技术有限公司 Loop avoidance methods, device and system
CN107689628A (en) * 2017-09-06 2018-02-13 全球能源互联网研究院有限公司 A kind of power network loop detecting method

Also Published As

Publication number Publication date
CN113014466B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CN108833237B (en) Intelligent home gateway and control method thereof
CN105911451B (en) Chip testing method and device
US20140059257A1 (en) Keyboard-video-mouse system and method of providing and using the same
US20150006700A1 (en) Establishing connectivity of modular nodes in a pre-boot environment
CN113014466B (en) Network port loop detection method and system
CN105302759A (en) Automatic switching circuit device and method of 485 communication chip transmitting and receiving data
CN113014442B (en) Network port loop detection method and network port loop detection system
CN107517204B (en) Data configuration reading system, method and device
CN112929282B (en) Display control card topological relation identification method and LED display control system
CN103593239B (en) The method and device of application process command process in LINUX system
CN113014441A (en) Network port loop detection method and system
CN106708701B (en) Central maintenance device and method based on ARINC659 bus
CN111178373B (en) Operation method, device and related product
CN113129810B (en) Interface matching detection method and system
CN106598210A (en) Pattern display method and device for unmanned aerial vehicle
CN112698606A (en) Processing method for collected message
CN113377583A (en) Display screen controller backup method, device and system
CN108075910B (en) Configuration method of communication equipment and communication equipment
CN112437461A (en) Application communication test system and method
CN106412657B (en) A kind of method and system of set-top box programming sequence code
CN109522219A (en) A kind of method, commissioning device and the storage medium of debugging operations system
CN112929192A (en) Broadcasting method of module controller, topological relation identification method and display control system
CN113141603B (en) Data communication method, system, master terminal device and slave terminal device
CN109413171A (en) A kind of intelligent terminal management-control method and system under scene of imparting knowledge to students
CN110489439B (en) Parameter processing method and power terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant