Switch fault detection system, method and device and storage medium
By designing a switch fault detection system, the switch status is monitored in real time and bypass the faulty switch through Bypass control signals, the problem of high communication failure rate of industrial Ethernet switches in harsh environments is solved, and the reliability and operation and maintenance efficiency of network communication is improved.
Patent Information
- Application Number
- CN202411894187.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-11
AI Technical Summary
When industrial Ethernet switches operate in harsh environments, the communication failure rate is high and there is a lack of effective fault detection and prediction methods, resulting in low operation and maintenance efficiency and difficulty in network troubleshooting.
A switch fault detection system is designed, including a status acquisition module, a Bypass control module and a switch module, which monitors the switch optical module, interface and system resource status in real time, judges the fault and conducts the physical link through the Bypass control signal, bypass the faulty switch, and ensures normal network communication.
The switch optical port intelligent Bypass function is realized, which improves the reliability of network communication, accuracy of positioning fault points, improves operation and maintenance efficiency, and avoids large-scale network interruptions caused by faults.
Smart Images

Figure CN119814700A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of switches, and in particular to a switch fault detection system, method, device and storage medium. Background Art
[0002] Traditional industrial Ethernet switch equipment has been operating in unmanned harsh environments of high temperature, high humidity, and strong electromagnetic interference for a long time. The communication failure rate is often high due to differences in power supply systems or optical cable construction, which is often manifested in abnormal equipment power supply, abnormal equipment optical port status, abnormal equipment management status, etc. Although the southbound interface of most systems can monitor the status of industrial switches, there is no effective means to achieve "first protect data, then check the cause, and carry out targeted prediction and supply guarantee of on-site fault phenomena", and the forwarding mechanism of traditional industrial Ethernet switches is a "best effort, first in, first out" mechanism. Under this mechanism, the bandwidth control means of industrial switches are limited, and the accuracy of service control is basically "0". When abnormal data packets such as broadcast storms, UDP broadcast packets, and multicast packets in the ring network flood the bandwidth and impact the hosts and switches in the network, there is no reliable means to control them, resulting in network failures and very difficult operation and maintenance troubleshooting.
[0003] At present, the management of distribution network switches is still at the basic monitoring and basic control level. The switches can perform basic operation and maintenance functions such as remote software upgrades, configuration file distribution, and remote control (ssh, telnet, web). However, as key communication components of industrial Ethernet switches, optical modules lack effective monitoring and control of switch optical modules in existing operation and maintenance management technologies. When a communication link failure occurs, the fault point cannot be accurately located and remote fault recovery cannot be achieved. Operation and maintenance personnel are required to check each point on site, resulting in low operation and maintenance efficiency. Summary of the invention
[0004] The main purpose of the present invention is to solve the technical problems of poor switch network communication reliability and low operation and maintenance efficiency.
[0005] A first aspect of the present invention provides a switch fault detection system, the switch fault detection system comprising: a state acquisition module, a bypass control module and a switch module;
[0006] The Bypass control module is connected to the state acquisition module, and the switch module is connected to the Bypass control module;
[0007] The status acquisition module is used to monitor the switch optical module status, switch interface status and switch system resource status in real time, and determine whether the switch fails according to the switch optical module status, the switch interface status and the switch system resource status;
[0008] The bypass control module is used to output a bypass conduction control signal when the switch fails, and the bypass conduction control signal is used to conduct the physical link, so that when the switch fails, the network bypasses the failed switch to ensure normal communication of the non-faulty switch;
[0009] The switch module is used to output a port switching signal according to the bypass conduction control signal to switch the Bypass circuit.
[0010] Optionally, in a first implementation of the first aspect of the present invention, an MCU control module is further included, the MCU control module includes an MCU control pin, and the MCU control pin is connected to the Bypass control module;
[0011] The MCU control module is used to output a control level to the Bypass control module through the MCU control pin when the switch fails, so as to control the path conduction control signal.
[0012] Optionally, in a second implementation of the first aspect of the present invention, the switch module includes a bidirectional control pin, the bidirectional control pin is connected to the MCU control pin, and the switching control of the switch module is implemented through the bidirectional control pin.
[0013] Optionally, in a third implementation of the first aspect of the present invention, an MCU chip is also included, and the MCU chip has a built-in intelligent algorithm for link switching conduction and reversal functions.
[0014] A second aspect of the present invention provides a switch fault detection method, the switch fault detection method comprising:
[0015] Get the switch optical module status, switch interface status and switch system resource status;
[0016] Determine whether the switch fails according to the switch optical module status, the switch interface status and the switch system resource status;
[0017] If yes, an exception instruction is sent to the Bypass module to turn on the bypass mode and close the Bypass circuit. The Bypass module is used to physically connect the network directly without passing through the faulty network device through a specific trigger state, so as to avoid large-scale network interruption caused by the faulty device;
[0018] When it is detected that the switch fault is recovered, a fault recovery instruction is sent to the Bypass module within a preset time, the bypass mode is turned off, and the closed Bypass circuit is disconnected.
[0019] Optionally, in a first implementation manner of the second aspect of the present invention, judging whether a switch fails according to the switch optical module status, the switch interface status, and the switch system resource status includes:
[0020] Determine whether the switch optical module status, the switch interface status, and the switch system resource status are abnormal;
[0021] If at least one of the switch optical module status, the switch interface status, and the switch system resource status is abnormal, it is determined that the switch fails.
[0022] Optionally, in a second implementation of the second aspect of the present invention, the determining whether the switch optical module status, the switch interface status, and the switch system resource status are abnormal includes:
[0023] Obtain various indicator information corresponding to the switch optical module, and determine whether the state of the switch optical module is abnormal according to the various indicator information;
[0024] Obtaining the number of disconnections and the last state of the switch interface, and judging whether the state of the switch interface is abnormal according to the number of disconnections and the last state of the interface;
[0025] The CPU or memory utilization of the switch is obtained, and according to the CPU or memory utilization, it is determined whether the system resource status of the switch is abnormal.
[0026] Optionally, in a third implementation manner of the second aspect of the present invention, when it is detected that the switch fault is recovered, sending a fault recovery instruction to the Bypass module within a preset time to turn off the bypass mode and disconnect the closed Bypass circuit, it also includes:
[0027] The switch sends a heartbeat packet to the Bypass module, and detects whether the switch is in a normal working state through the heartbeat packet;
[0028] When the Bypass module does not receive the heartbeat packet within a preset time period, the Bypass module turns on the bypass mode and closes the Bypass circuit;
[0029] When the Bypass module can stably receive the heartbeat packet within a preset time period, the bypass mode is turned off and the link is switched back to the normal link.
[0030] A third aspect of the present invention provides a switch fault detection device, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via a line; and the at least one processor calls the instructions in the memory so that the switch fault detection device executes the above-mentioned switch fault detection method.
[0031] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned switch fault detection method.
[0032] In an embodiment of the present invention, the Bypass control module is connected to the status acquisition module, and the switch module is connected to the Bypass control module; the status acquisition module is used to monitor the switch optical module status, the switch interface status and the switch system resource status in real time, and judge whether the switch fails according to the switch optical module status, the switch interface status and the switch system resource status; the Bypass control module is used to output a bypass conduction control signal when the switch fails, and the bypass conduction control signal is used to conduct the physical link, so that when the switch fails, the network bypasses the failed switch to ensure normal communication of the non-faulty switch; the switch module is used to output a port switching signal according to the bypass conduction control signal to switch the Bypass circuit. In the present invention, the intelligent bypass function of the optical port of the switch is realized. When the switch fails, the bypass control module outputs a bypass conduction control signal, switches the bypass circuit, and allows the network to bypass the failed switch to ensure normal communication of the non-faulty switch, so as to ensure that the data of the non-faulty switch is not lost, thereby increasing the communication reliability of the switch network; at the same time, when a communication link failure occurs, the fault point can be located through the faulty network, thereby improving the operation and maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of an embodiment of a switch fault detection system in an embodiment of the present invention;
[0034] Figure 2 A schematic diagram of another embodiment of a switch fault detection system according to an embodiment of the present invention;
[0035] Figure 3 A schematic diagram of an embodiment of a switch fault detection method according to an embodiment of the present invention;
[0036] Figure 4 This is a schematic diagram of the switch's own optical module diagnosis fault switching processing logic in an embodiment of the present invention;
[0037] Figure 5 A schematic diagram of the switch interface failure switching process logic in an embodiment of the present invention;
[0038] Figure 6 A schematic diagram of the logic for handling a high switch occupancy failure in an embodiment of the present invention;
[0039] Figure 7 A schematic diagram of the processing logic of a switch crash or restart switching in an embodiment of the present invention;
[0040] Figure 8 The figure is a schematic diagram of an embodiment of a switch fault detection device in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The embodiments of the present invention provide a switch fault detection system, method, device and storage medium.
[0042] The embodiments disclosed in the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments disclosed in the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments disclosed in the present invention are only for exemplary purposes and are not intended to limit the scope of protection disclosed in the present invention.
[0043] In the description of the embodiments disclosed in the present invention, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0044] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the switch fault detection system in the embodiment of the present invention includes: a state acquisition module 10, a bypass control module 20 and a switch module 30;
[0045] The Bypass control module 20 is connected to the state acquisition module 10 , and the switch module 30 is connected to the Bypass control module 20 ;
[0046] The status acquisition module 10 is used to monitor the switch optical module status, switch interface status and switch system resource status in real time, and determine whether the switch fails according to the switch optical module status, switch interface status and switch system resource status;
[0047] The bypass control module 20 is used to output a bypass conduction control signal when a switch fails. The bypass conduction control signal is used to conduct the physical link, so that when a switch fails, the network bypasses the failed switch to ensure normal communication of the surviving switch;
[0048] The switch module 30 is used for outputting a port switching signal according to the bypass conduction control signal to switch the bypass circuit.
[0049] In this embodiment, the switch has a Bypass function to solve the problem that when the existing switch system, switch interface, switch optical module, or power supply fails, the entire network link is paralyzed because the Bypass function cannot be switched. The Bypass function has the following modules:
[0050] The status acquisition module 10 is used to monitor the power supply working status of the switch in real time, including the power ON and power OFF status; to monitor the status of the SFP optical module of the switch Bpass optical port in real time, including the transmission power and receiving sensitivity of the optical module, the working voltage and current status of the optical module; the UP and DOWN status of the Bypass optical port in the switch interface; to monitor and acquire the system resource status of the switch, including the monitoring of the process and process ratio of the switch CPU, the real-time temperature monitoring of the switch, and the real-time FLASH usage ratio monitoring of the switch. The switch provides a flexible page threshold setting function for the above various situations, and uses an integrated intelligent judgment algorithm to perform concurrent interactive monitoring and control of multiple processes, and uses a heartbeat packet mechanism to keep each state acquisition function module running normally.
[0051] The bypass control module 20 is connected to the status acquisition module 10 and is controlled by the intelligent algorithm of the MCU. It is used to output a bypass conduction control signal according to a power failure; when at least one Bpass optical port in the switch detects a failure in the optical module, it outputs a bypass conduction control signal; when at least one of the CPU or memory of the switch system is detected to be faulty, it outputs a bypass conduction control signal, wherein the bypass conduction control signal is used to conduct the physical link, so that when a switch fails, the network bypasses the faulty switch to ensure normal communication of the non-faulty switch.
[0052] The switch module 30 is connected to the Bypass control module 20 and is used to output a port switching signal according to the bypass conduction control signal, so as to switch the Bypass circuit according to the port switching signal.
[0053] In an optional implementation of the first aspect of the present invention, an MCU control module 40 is further included, and the MCU control module 40 includes an MCU control pin, and the MCU control pin is connected to the Bypass control module 20; the MCU control module 40 is used to output a control level to the Bypass control module 20 through the MCU control pin when a switch fails, so as to control the path conduction control signal.
[0054] In this embodiment, if Figure 2 As shown, the switch fault detection system also includes an MCU control module 40, which includes an MCU control pin, and the MCU control pin is connected to the Bypass control module 20. The state acquisition module 10 is an electronic control method, and an independent electronic control pin is used to control the bypass conduction control signal. The output of the independent electronic control pin is controlled by the algorithm mechanism of the MCU, and the GPIO pin gives a high and low level to control the output. When the switch interface abnormality, the optical module abnormality, and the switch system resource abnormality are detected, the control level is given by the MCU control pin to control the bypass conduction control signal. The state acquisition module 10 monitors the Bpass optical port, the SFP optical module of the Bpass optical port, and the switch system, and obtains the real-time values of the switch optical module status, the switch interface status, and the switch system resource status, compares and judges the real-time value with the built-in threshold, and transmits the comparison result to the MCU control module 40. When the comparison value shows a difference higher than the threshold setting, the MCU gives a control level to control the switching of the switch module 30. The MCU control module 40 also controls the switching of the Bypass circuit according to the heartbeat status sent by the switch.
[0055] In an optional implementation of the first aspect of the present invention, the switch module 30 includes a bidirectional control pin, which is connected to the MCU control pin, and the switching control of the switch module 30 is achieved through the bidirectional control pin.
[0056] In this embodiment, the switch module 30 includes a bidirectional control pin, and the bidirectional control pin of the switch module 30 is connected to the MCU control pin. When at least one of the switch optical module status, the switch interface status, and the switch system resource status is detected to be abnormal, the bidirectional control pin is used to drive the Bypass port to switch, thereby ensuring that the entire network link can continue to work and improving the reliability of the switch network.
[0057] In an optional implementation of the first aspect of the present invention, an MCU chip is also included, and the MCU chip has a built-in intelligent algorithm for link switching conduction and back-switching functions.
[0058] In this embodiment, the main components of the Bypass function are added, as well as an MCU chip with an intelligent algorithm for built-in intelligent switching conduction and reversal functions, and an MCU chip connection status acquisition module 10, which can realize the intelligent Bypass function of the optical port of the switch and increase the communication reliability of the switch network.
[0059] See also Figure 3 The second aspect of the present invention provides a switch fault detection method. An embodiment of the switch fault detection method in the embodiment of the present invention includes:
[0060] S100, obtaining the switch optical module status, switch interface status and switch system resource status.
[0061] S200, judging whether the switch fails according to the switch optical module status, the switch interface status and the switch system resource status.
[0062] S300: If yes, send an exception instruction to the Bypass module, turn on the bypass mode, and close the Bypass circuit.
[0063] S400, when it is detected that the switch fault is recovered, a fault recovery instruction is sent to the Bypass module within a preset time, the bypass mode is turned off, and the closed Bypass circuit is disconnected.
[0064] In this embodiment, the switch and the bypass module can be connected in two ways to exchange data. One is that the switch performs logical control processing, the switch and the bypass module are interconnected using alarm terminals, and the switch sends high and low level information to control the module; the other is that the bypass module performs logical control processing, the switch and the bypass module are interconnected using RS232 / RS485, the switch sends its own status information to the module through the serial port, and the module determines whether the information is abnormal. If it is abnormal, it executes closed control, and after returning to normal, it executes interruption control. Among them, the Bypass module can make the network directly physically connected without passing through the faulty network device through a specific trigger state, so as to avoid large-scale network interruption caused by faulty equipment. The Bypass module status information can be converted through the protocol and transmitted to the management platform through the SNMP protocol.
[0065] When the power supply of the intermediate switch device is interrupted, the Bypass module receives a low-level signal to turn on the bypass mode, so that the optical fiber link is physically connected, automatically bypassing the node with power failure, and ensuring normal communication between the previous node and the next node. When the power supply of the intermediate node device is restored, the Bypass module receives a high-level signal for a period of time and then turns off the bypass mode, and the traffic is forwarded and processed through the intermediate node device.
[0066] When the switch is powered normally, but the switch optical module status, switch interface status, and switch system resource status are abnormal, the switch outputs alarm information and sends an abnormal instruction to the external Bypass module to turn on the bypass mode and close the Bypass circuit. When the switch fault is detected to be restored, a fault recovery instruction is sent to the Bypass module within a certain period of time to automatically open the closed circuit.
[0067] In an optional implementation of the second aspect of the present invention, judging whether a switch fails according to a switch optical module status, a switch interface status, and a switch system resource status includes:
[0068] Determine whether the switch optical module status, switch interface status and switch system resource status are abnormal; if at least one of the switch optical module status, switch interface status and switch system resource status is abnormal, determine that the switch fails.
[0069] In this embodiment, it is detected whether the switch optical module status, switch interface status and switch system resource status are abnormal. Specifically, the switch optical module self-diagnoses whether there is a fault, detects the Link / Down status of the Bypass optical port, and detects the switch CPU / memory. If the switch is powered normally, the optical module self-diagnoses a fault, the interface is frequently Link / Down, the switch CPU / memory occupancy rate is high, the switch freezes / restarts, etc., then it is determined that the switch optical module status, switch interface status and switch system resource status are abnormal. If at least one of the switch optical module status, switch interface status and switch system resource status is abnormal, it is determined that the switch is faulty.
[0070] In an optional implementation of the second aspect of the present invention, determining whether the switch optical module status, the switch interface status, and the switch system resource status are abnormal includes:
[0071] Obtain the indicator information corresponding to the switch optical module, and determine whether the switch optical module status is abnormal based on the indicator information; obtain the number of disconnections and the last status of the switch interface, and determine whether the switch interface status is abnormal based on the number of disconnections and the last status of the interface; obtain the CPU or memory utilization of the switch, and determine whether the switch system resource status is abnormal based on the CPU or memory utilization.
[0072] In this embodiment, the switch's own optical module diagnosis fault switching processing logic is as follows Figure 4As shown in the figure, after the switch performs DDM information, i.e. digital diagnosis, on its own optical module, it determines that the switch optical module is in an abnormal state through the various indicator information of the optical module, such as abnormal power, optical module not in place, current too high, temperature too high, etc., then it sends an abnormal instruction to the external Bypass module to automatically close the Bypass circuit. When the DDM self-diagnosis data returns to normal, it sends a fault recovery instruction to the Bypass module within a certain period of time to automatically open the closed circuit.
[0073] The switch interface failure switching processing logic is as follows Figure 5 As shown, the switch CPU records the number of port Link / Down and the final state of the interface. When the number of Link / Down in the statistical period reaches the expected threshold or the final state of the interface is DOWN, an abnormal instruction is sent to the external Bypass module to automatically close the Bypass circuit. When the switch periodically self-checks that the port state is UP and has been stable for a period of time, a restore normal instruction is sent to the Bypass module to automatically disconnect the closed circuit.
[0074] The switch occupancy rate high fault handling logic is as follows Figure 6 As shown in the figure, when the CPU / memory utilization of the switch reaches the alarm threshold, the CPU / memory of the switch is in a high-load working state. The protocol data packets need to be processed by the switch CPU, which is in a queue processing state, causing serious link congestion and packet loss and network disconnection. For such situations, when the CPU utilization of the switch reaches the alarm threshold, it automatically sends an alarm to the superior platform, and sends an abnormal instruction to the external Bypass module to automatically close the Bypass circuit. When the self-test status of the switch returns to normal, the bypass module disconnects the closed circuit and restores the normal data transmission link.
[0075] In an optional implementation manner of the second aspect of the present invention, when it is detected that the switch fault is recovered, a fault recovery instruction is sent to the Bypass module within a preset time to turn off the bypass mode so that the closed Bypass circuit is disconnected, and the method further includes:
[0076] The switch sends a heartbeat packet to the Bypass module, and uses the heartbeat packet to detect whether the switch is in normal working condition; when the Bypass module does not receive the heartbeat packet within the preset time period, the Bypass module turns on the bypass mode and closes the Bypass circuit; when the Bypass module can stably receive the heartbeat packet within the preset time period, the bypass mode is turned off and the link is switched back to the normal state.
[0077] In this embodiment, the processing logic of the switch crash or restart switching is as follows Figure 7As shown in the figure, when the switch crashes due to abnormalities in the switch optical module status, switch interface status, and switch system resource status, the Bypass module does not receive normal heartbeat instructions for more than 3 time periods, and the Bypass module automatically closes the Bypass circuit. When the Bypass module is in the closed state, it can receive normal heartbeat instructions from the switch, then disconnect the closed circuit and restore the normal data transmission link. When the switch fault is restored, the factory default setting of the external Bypass module is not to perform the switching action within 10 minutes.
[0078] Figure 8 1 is a schematic diagram of the structure of a switch fault detection device provided by an embodiment of the present invention. The switch fault detection device 500 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage medium 530 may be temporary storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the switch fault detection device 500. Furthermore, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the switch fault detection device 500.
[0079] The switch-based fault detection device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 8 The switch fault detection device structure shown does not constitute a limitation on the switch fault detection device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0080] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the switch fault detection method.
[0081] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0082] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.
[0083] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A switch fault detection system, characterized in that: include: Status acquisition module, Bypass control module and switch module; The Bypass control module is connected to the state acquisition module, and the switch module is connected to the Bypass control module; The status acquisition module is used to monitor the switch optical module status, switch interface status and switch system resource status in real time, and determine whether the switch fails according to the switch optical module status, the switch interface status and the switch system resource status; The bypass control module is used to output a bypass conduction control signal when the switch fails, and the bypass conduction control signal is used to conduct the physical link, so that when the switch fails, the network bypasses the failed switch to ensure normal communication of the non-faulty switch; The switch module is used to output a port switching signal according to the bypass conduction control signal to switch the Bypass circuit.
2. The switch fault detection system according to claim 1, characterized in that: Also includes an MCU control module, the MCU control module includes an MCU control pin, and the MCU control pin is connected to the Bypass control module; The MCU control module is used to output a control level to the Bypass control module through the MCU control pin when the switch fails, so as to control the path conduction control signal.
3. The switch fault detection system according to claim 2, characterized in that: The switch module comprises a bidirectional control pin, and the bidirectional control pin is connected to the MCU control pin. The switching control of the switch module is realized through the bidirectional control pin.
4. The switch fault detection system according to claim 1, characterized in that: It also includes an MCU chip, which has a built-in intelligent algorithm for link switching conduction and back-cutting functions.
5. A switch fault detection method, characterized in that: The switch fault detection method comprises: Get the switch optical module status, switch interface status and switch system resource status; Determine whether the switch fails according to the switch optical module status, the switch interface status and the switch system resource status; If yes, an exception instruction is sent to the Bypass module to turn on the bypass mode and close the Bypass circuit. The Bypass module is used to physically connect the network directly without passing through the faulty network device through a specific trigger state, so as to avoid large-scale network interruption caused by the faulty device; When it is detected that the switch fault is recovered, a fault recovery instruction is sent to the Bypass module within a preset time, the bypass mode is turned off, and the closed Bypass circuit is disconnected.
6. The switch fault detection method according to claim 5, characterized in that: The determining whether a switch fails according to the switch optical module status, the switch interface status, and the switch system resource status includes: Determine whether the switch optical module status, the switch interface status, and the switch system resource status are abnormal; If at least one of the switch optical module status, the switch interface status, and the switch system resource status is abnormal, it is determined that the switch fails.
7. The switch fault detection method according to claim 6, characterized in that: The determining whether the switch optical module status, the switch interface status, and the switch system resource status are abnormal includes: Obtain various indicator information corresponding to the switch optical module, and determine whether the state of the switch optical module is abnormal according to the various indicator information; Obtaining the number of disconnections and the last state of the switch interface, and judging whether the state of the switch interface is abnormal according to the number of disconnections and the last state of the interface; The CPU or memory utilization of the switch is obtained, and according to the CPU or memory utilization, it is determined whether the system resource status of the switch is abnormal.
8. The switch fault detection method according to claim 5, characterized in that: When the switch failure is detected to be recovered, a failure recovery instruction is sent to the Bypass module within a preset time to turn off the bypass mode and disconnect the closed Bypass circuit, the method further includes: The switch sends a heartbeat packet to the Bypass module, and detects whether the switch is in a normal working state through the heartbeat packet; When the Bypass module does not receive the heartbeat packet within a preset time period, the Bypass module turns on the bypass mode and closes the Bypass circuit; When the Bypass module can stably receive the heartbeat packet within a preset time period, the bypass mode is turned off and the link is switched back to the normal link.
9. A switch fault detection device, characterized in that: The switch fault detection device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instruction in the memory to enable the switch fault detection device to execute the switch fault detection method according to any one of claims 5 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the switch fault detection method according to any one of claims 5 to 8 is implemented.
Citation Information
Cited By
Communication system and method of Ethernet switch with optical bypass function
CN120499135A
Dual-master control device, control method and electronic equipment
CN121239654A
Fusion type soft and hard Bypass intelligent management and control platform
CN122293485A