A fault alarm method and device for a ring network redundant switch

By receiving and analyzing the status message data of the ring network redundant switches, fault alarm information in the form of text and topology diagrams is generated, which solves the problem of untimely and accurate fault prompts of traditional ring network redundant switches and improves the efficiency of troubleshooting and operation. Dimensional efficiency.

CN114584456BActive Publication Date: 2024-10-01SIBOTECH AUTOMATION SHANGHAI
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202210258755.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-16
Publication Date
2024-10-01
Estimated Expiration
2042-03-16

AI Technical Summary

Technical Problem

When a fault occurs on a traditional ring network redundant switch, the fault prompt is not timely and accurate enough. Operation and maintenance personnel need to spend a lot of time troubleshooting the fault, resulting in low work efficiency and high operation and maintenance costs.

Method used

Provide a fault alarm method and device for a ring network redundant switch. By receiving the status message data of the switch, the fault type and cause are judged, and alarm information in the form of text and topology diagram is generated and output to the human-computer interaction interface to ensure operation. Maintenance personnel understand the details of the fault in a timely manner.

Benefits of technology

It achieves timely and accurate alarms for faults, reduces false positives and false negatives, improves operation and maintenance efficiency, helps operation and maintenance personnel quickly resolve faults, and reduces operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114584456B_ABST
    Figure CN114584456B_ABST
Patent Text Reader

Abstract

The present invention provides a fault alarm method and device for a ring network redundant switch. The above-mentioned fault alarm method includes: receiving status message data of each switch, determining the ring network type of the ring network where each switch is located and the specific switch of each ring network according to the status message data of each switch; judging whether each ring network has a fault and the fault type according to the status message data of each specific switch; for each faulty ring network, determining fault information according to the ring network type, fault type and the status message data of at least one switch in the faulty ring network, the fault information includes the faulty switch and the cause of the fault; generating alarm information according to the fault information, the alarm information includes fault information in text form and in topology form; and outputting the alarm information to the corresponding human-computer interaction interface. According to the present invention, fault alarms can be performed in a timely and accurate manner, and the alarm information is in various forms and clear at a glance, so that users can quickly understand the details of the fault.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of fault alarm, and in particular to a fault alarm method and device for a ring network redundant switch. Background Art

[0002] With the widespread application of industrial Ethernet technology, in order to improve the reliability of industrial Ethernet and meet the requirements of Ethernet reliability in the field of industrial control, ring network redundancy technology has received more and more attention. Ring network redundancy is a high-speed Ethernet redundancy technology. This technology can ensure that when the network encounters a fault, the communication can be restored in a very short time.

[0003] When a traditional ring network redundant switch fails, it will issue an alarm through an error relay, indicator light or SNMP, which requires on-duty personnel to be on duty 24 hours a day. If the operation and maintenance personnel are not on site, it is not easy to know that the ring network has failed. Even if they are on site, it takes a lot of time to troubleshoot the fault, which has low work efficiency and high operation and maintenance costs.

[0004] There is a ring network redundant switch with SMS monitoring function in the prior art, which solves the disadvantage that the traditional ring network redundant switch requires operation and maintenance personnel to be present at all times. However, this type of ring network redundant switch with SMS monitoring function only reminds the operation and maintenance personnel through text messages that the current ring network redundant switch may have a fault. The operation and maintenance personnel still need to spend a lot of time to troubleshoot the fault after arriving at the site, which does not completely improve the operation and maintenance efficiency and reduce the operation and maintenance cost.

[0005] In view of this, it is hoped to provide a fault alarm method and device for a ring network redundant switch, which can promptly notify the operation and maintenance personnel after a fault is discovered, and can provide sufficient fault information to reduce false alarms or missed alarms, thereby helping the operation and maintenance personnel to quickly troubleshoot the fault and improve work efficiency and information accuracy. Summary of the invention

[0006] A brief summary of one or more aspects is given below to provide a basic understanding of these aspects. This summary is not an exhaustive overview of all conceived aspects, and is neither intended to identify the key or critical elements of all aspects nor to define the scope of any or all aspects. Its only purpose is to give some concepts of one or more aspects in a simplified form as a prelude to a more detailed description that will be given later.

[0007] In order to solve the problem in the prior art that the fault prompt of the ring network redundant switch is not timely and accurate enough, and the operation and maintenance personnel still need to spend energy to troubleshoot the fault after learning that the fault has occurred, the present invention provides a fault alarm method and device for a ring network redundant switch.

[0008] One aspect of the present invention provides a fault alarm method for a ring network redundant switch, which is applied to a cloud server, and the fault alarm method includes: receiving status message data of each switch, and determining the ring network type of the ring network where each switch is located and the specific switch of each ring network according to the status message data of each switch; judging whether each ring network has a fault and the type of fault according to the status message data of each specific switch; for each faulty ring network, determining fault information according to the ring network type, the fault type and the status message data of at least one switch in the faulty ring network, the fault information including the faulty switch and the cause of the fault; generating alarm information according to the fault information, the alarm information including the fault information in text form and in the form of a topology diagram; and outputting the alarm information to a corresponding human-computer interaction interface.

[0009] In an embodiment of the above fault alarm method, optionally, status message data output by each of the switches based on a first preset frequency is received; or status message data output by each of the switches in response to a switch having a breakpoint is received.

[0010] In an embodiment of the above fault alarm method, optionally, in response to the presence of multiple types of faults in the faulty ring network, alarm information corresponding to the fault with the highest priority is outputted preferentially according to the priority of the fault types of the faulty ring network.

[0011] In one embodiment of the above-mentioned fault alarm method, optionally, outputting the alarm information to the corresponding human-computer interaction interface further includes: repeatedly outputting the alarm information to the corresponding human-computer interaction interface based on a second preset frequency corresponding to the priority of the fault type until a user confirmation instruction is received or the faulty ring network repairs the fault.

[0012] In an embodiment of the above fault alarm method, optionally, the fault types include, in descending order of priority: conflict fault, direct fault, indirect fault, offline fault, and unknown fault.

[0013] In one embodiment of the above-mentioned fault alarm method, optionally, the ring network types include: single ring network, double-cut ring network, dual-return ring network, and ring-coupled ring network; wherein, in response to the ring network being the single ring network or the double-cut ring network, the specific switches of the single ring network or the double-cut ring network are the master stations of each independent loop; in response to the ring network being the dual-return ring network, the specific switches of the dual-return ring network are the dual-return ring control terminals; in response to the ring network being the ring-coupled ring network, the specific switches of the ring-coupled ring network are the ring-coupled master and backup nodes.

[0014] Another aspect of the present invention also provides a fault alarm device for a ring network redundant switch, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following are achieved: receiving status message data of each switch, and determining the ring network type of the ring network in which each switch is located and the specific switch of each ring network according to the status message data of each switch; judging whether each ring network has a fault and the type of fault according to the status message data of each specific switch; for each faulty ring network, determining fault information according to the ring network type, the fault type and the status message data of at least one switch in the faulty ring network, the fault information including the faulty switch and the cause of the fault; generating alarm information according to the fault information, the alarm information including the fault information in text form and in the form of a topology diagram; and outputting the alarm information to the corresponding human-computer interaction interface.

[0015] In an embodiment of the above-mentioned fault alarm device, optionally, the fault alarm device receives status message data output by each of the switches based on a first preset frequency; or the fault alarm device receives status message data output by each of the switches in response to a switch having a breakpoint.

[0016] In an embodiment of the above fault alarm device, optionally, in response to the presence of multiple types of faults in the faulty ring network, the fault alarm device preferentially outputs alarm information corresponding to the fault with the highest priority according to the priority of the fault types of the faulty ring network.

[0017] In one embodiment of the above-mentioned fault alarm device, optionally, the fault alarm device outputs the alarm information to the corresponding human-computer interaction interface further comprising: repeatedly outputting the alarm information to the corresponding human-computer interaction interface based on a second preset frequency corresponding to the priority of the fault type until a user confirmation instruction is received or the fault ring network repairs the fault.

[0018] In an embodiment of the above fault alarm device, optionally, the fault types include, in descending order of priority: conflict fault, direct fault, indirect fault, offline fault, and unknown fault.

[0019] In one embodiment of the above-mentioned fault alarm device, optionally, the ring network types include: single ring network, double-cut ring network, dual-return ring network, and ring-coupled ring network; wherein, in response to the ring network being the single ring network or the double-cut ring network, the specific switches of the single ring network or the double-cut ring network are the master stations of each independent loop; in response to the ring network being the dual-return ring network, the specific switches of the dual-return ring network are the dual-return ring control terminals; in response to the ring network being the ring-coupled ring network, the specific switches of the ring-coupled ring network are the ring-coupled master and backup nodes.

[0020] Another aspect of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the ring network redundant switch failure method described in any one of the above embodiments is implemented.

[0021] According to the fault alarm method and device of the ring network redundant switch provided by the present invention, fault alarm can be performed timely and accurately, and the alarm information is in various forms and clear at a glance, which is convenient for operation and maintenance personnel to quickly understand the fault details, thereby resolving the fault in time and restoring the normal operation of the ring network redundant switch. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The above features and advantages of the present invention can be better understood after reading the detailed description of the embodiments of the present disclosure in conjunction with the following drawings. In the drawings, the components are not necessarily drawn to scale, and components with similar related properties or features may have the same or similar reference numerals.

[0023] Figure 1 The application scenario of the fault alarm method of the ring network redundant switch provided by one aspect of the present invention is shown.

[0024] Figure 2 A schematic flow chart of a fault alarm method for a ring network redundant switch provided in one aspect of the present invention is shown.

[0025] Figures 3A-3D The forms of the ring network formed by the ring network redundant switches in the present invention are respectively shown.

[0026] Figure 4 A schematic diagram of the fault analysis process for a single-ring network and a double-cut-ring network is shown.

[0027] Figure 5 The figure shows the fault analysis process of the dual-homing ring network.

[0028] Figure 6 A schematic diagram of the fault analysis process of a ring-coupled ring network is shown.

[0029] Figure 7 A schematic structural diagram of a fault alarm device provided in another aspect of the present invention is shown.

[0030] Reference numerals

[0031] 100-108 switches;

[0032] 200 cloud servers;

[0033] 300 user end;

[0034] 400 Fault alarm device;

[0035] 401 Memory;

[0036] 402 Processor;

[0037] 403 bus;

[0038] 404 RAM;

[0039] 405 Cache Memory;

[0040] 406 Storage System;

[0041] 407 Program Module;

[0042] 408 External Device;

[0043] 409 display;

[0044] 410 Input / output (I / O) interface;

[0045] 411 Network Adapter;. DETAILED DESCRIPTION

[0046] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. Note that the aspects described below in conjunction with the accompanying drawings and specific embodiments are only exemplary and should not be construed as limiting the scope of protection of the present invention in any way.

[0047] The following description is given to enable those skilled in the art to implement and use the invention and incorporate it into a specific application context. Various modifications, as well as various uses in different applications will be readily apparent to those skilled in the art, and the general principles defined herein are applicable to a wide range of embodiments. Thus, the present invention is not limited to the embodiments given herein, but should be granted the broadest scope consistent with the principles and novel features disclosed herein.

[0048] In the following detailed description, many specific details are set forth to provide a more thorough understanding of the present invention. However, it will be apparent to those skilled in the art that the practice of the present invention need not be limited to these specific details. In other words, known structures and devices are shown in block diagram form without detailed display to avoid obscuring the present invention.

[0049] The reader is reminded of all documents and literature filed simultaneously with this specification and open to public inspection, and the contents of all such documents and literature are incorporated herein by reference. Unless otherwise directly stated, all features disclosed in this specification (including any attached claims, abstracts and drawings) can be replaced by alternative features for achieving the same, equivalent or similar purposes. Therefore, unless otherwise explicitly stated, each feature disclosed is only an example of a group of equivalent or similar features.

[0050] Note that, where used, the symbols left, right, front, back, top, bottom, forward, reverse, clockwise and counterclockwise are used only for convenience and do not imply any specific fixed direction. In fact, they are used to reflect the relative position and / or direction between the various parts of the object. In addition, the terms "first" and "second" are used only for descriptive purposes and should not be understood as indicating or implying relative importance.

[0051] Note that, in the case of use, further, preferably, further and more preferably are simple beginnings for explaining another embodiment based on the previous embodiment, and the content of further, preferably, further or more preferably followed by the above embodiment is combined with the previous embodiment as a complete composition of another embodiment. Several further, preferably, further or more preferably settings followed by the same embodiment can be arbitrarily combined to form another embodiment.

[0052] As described above, in order to solve the problem in the prior art that the fault prompt of the ring network redundant switch is not timely and accurate enough, and the operation and maintenance personnel still need to spend energy to troubleshoot the fault after learning that the fault has occurred, the present invention provides a fault alarm method and device for the ring network redundant switch. By taking advantage of the large network database of the cloud platform, the original data of each industrial ring network redundant switch can be saved, and the real-time monitoring and alarm function of the ring network redundant switch can be realized. The alarm information not only contains text information, but also contains the fault topology diagram of the ring network redundant switch.

[0053] First, please combine Figure 1 To understand the application scenario of the fault alarm method provided by the present invention. Figure 1 As shown, the fault alarm method provided by one aspect of the present invention is applied to a cloud server 200 (or simply referred to as a cloud, cloud platform) to analyze the fault condition of a ring network redundant switch (referred to as switch 100), so that when a fault occurs in the switch 100, an alarm message can be sent to the user terminal 300, so that the operation and maintenance personnel can understand the fault condition in a timely, accurate and detailed manner based on the user terminal 300, thereby facilitating users to quickly troubleshoot the fault.

[0054] In other words, it can be considered that the switch 100 belongs to the device layer and is the data source basis of the fault alarm method. Its data needs to be uploaded to the cloud server in real time through industrial Ethernet. The cloud server 200 belongs to the data processing layer and the system application layer, and mainly performs data processing, data exchange and data storage. In the data processing layer, the cloud server is used to manage the storage and analysis of the switch data, and send the analyzed alarm results to the user. In the system application layer, the cloud server can implement user authentication management, historical data management, real-time data query and alarm information release, so as to enable users to query data and obtain alarm information. The user end 300 belongs to the user layer, and users can obtain current alarm information and view real-time switch data through the human-computer interaction interface of computers, mobile phones and other smart devices.

[0055] Further, such as Figure 2 As shown, the fault alarm method provided by one aspect of the present invention comprises the steps of:

[0056] S100: receiving status message data of each switch, and determining the ring network type of the ring network where each switch is located and the specific switch of each ring network according to the status message data of each switch;

[0057] S200: judging whether each ring network has a fault and the type of fault according to the status message data of each specific switch;

[0058] For each faulty ring network, the following steps are also included:

[0059] S310: Determine fault information according to the ring network type, the fault type, and status message data of at least one switch in the faulty ring network, wherein the fault information includes the faulty switch and the fault cause;

[0060] S320: generating alarm information according to the fault information, wherein the alarm information includes fault information in text form and in topology form; and

[0061] S332: Output the alarm information to the corresponding human-computer interaction interface.

[0062] In step S100, first, the cloud server 200 receives the status message data output by each switch. For the switch, each switch includes at least a data detection module and a data sending module. The data sending module can adopt an existing or future communication module capable of sending data, including but not limited to a wifi module or a 2G, 3G, 4G, or 5G mobile network module.

[0063] After the ring network is formed, each switch detects whether there is a breakpoint in the ring network through the data detection module. That is, after the ring network is formed, the switch will detect the devices connected to the port. If no device is detected, it is considered that a breakpoint has occurred. If there is a breakpoint, the switch immediately sends the status message data to the cloud through the data sending module and switches to the backup path. When the ring network returns to normal, the switch switches back to the main path. By enabling the switch to send the status message data to the cloud immediately after a breakpoint occurs, the cloud can detect the switch failure in time, so that the failure can be reported in time.

[0064] If there is no breakpoint, in one embodiment, the switch is set to send status message data once at a certain preset frequency, for example, the time for sending status message data can be set within 100ms to 5s. It can be understood that by periodically reporting data, the working status of the switch can be periodically and constantly monitored, so that the cloud server can promptly notice faults such as device offline, thereby reducing the phenomenon of fault omission.

[0065] The status message data sent by the data sending module includes network parameters, device configuration information, ring network status, port status information, etc. Network parameters include IP address, MAC address and subnet mask, etc. Device configuration information includes product model and serial number, etc. Ring network status includes ring network connection status, whether enabled, etc. Port status information includes the first port number, the second port number, the main port number, the backup port number, which port of which ring network switch is connected together, etc.

[0066] The ring network type of each ring network redundant switch 100 can be configured. Users can configure the ring network redundant switch to four types of ring network structures, such as single ring network, double cut ring network, double return ring network and ring coupling ring network, according to usage requirements. The cloud server 200 can determine the ring network type of each switch and the specific switch of each ring network based on the status message data sent by each switch, especially the ring network status and port status information.

[0067] Please further understand the four types of ring network structures and the specific switches therein applicable to the present invention in conjunction with FIG. 3. First, Figure 3A The ring network structure of a single ring network is shown in Figure 1. A single ring network refers to multiple switches ( Figure 3A 101-104 are shown in FIG. 104. In other embodiments, the number of switches constituting the ring network is not limited to 4. Each of the switches 101-104 forms a separate loop, and each separate loop has an independent master station, such as Figure 3A The switch 101 in the network is the master station, and the other switches 102-104 are all slave stations. In a single ring network, a specific switch is the master station of each independent loop, that is, switch 101.

[0068] Figure 3B The diagram shows the structure of a double-ring network. A double-ring network consists of two independent ring networks, in which a switch acts as a slave station for both independent ring networks. Figure 3B As shown, switches 101-104 form a loop (loop 1), and switches 104-107 form a loop (loop 2), wherein switch 101 is the master of loop 1, and switch 105 is the master of loop 2. Switch 104 is also a slave of both loops. In a dual-ring network, a specific switch is the master of each independent loop, i.e., switches 101 and 105.

[0069] Figure 3C The ring network structure of the dual-homing ring network is illustrated. The dual-homing ring network consists of two ring networks, switches 101-104 form an independent loop (ring 1, switch 101 is the master station), switches 105-108 form an independent loop (ring 2, switch 105 is the master station), a switch slave station (switch 104) on one of the rings (for example, ring 1) serves as the dual-homing ring control end, and the dual-homing ring control end (switch 104) is connected to the master station (switch 105) of ring 2 and a slave station (switch 107) of ring 2. The specific switch of the dual-homing ring network is the dual-homing ring control end, that is, switch 104.

[0070] Figure 3D The ring network structure of the ring coupling ring network is illustrated. The ring coupling ring network is composed of two ring networks, switches 101-104 form an independent loop (ring 1, switch 101 is the master station), and switches 105-108 form an independent loop (ring 2, switch 105 is the master station). One of the rings (for example, ring 1) is provided with a ring coupling master and standby node, the master station of the ring, i.e., switch 101, is the ring coupling master node, and a slave station of the ring, i.e., switch 103, is the ring coupling standby node. The ring coupling master node switch 101 of the ring with the ring coupling master and standby nodes is connected to the master station switch 105 of ring 2, and the ring coupling standby node switch 103 is connected to the slave station switch 107 of ring 2. The specific switches of the ring coupling ring network are the ring coupling master and standby nodes, i.e., switches 101 and 103.

[0071] In step S200, the cloud server 200 determines whether each ring network has a fault and the type of fault based on the status message data of each specific switch, especially the ring network status and port status therein.

[0072] In the present invention, based on four types of ring network structures, the following five fault types are defined. When a fault occurs, the cloud server can determine the fault type according to the ring network status and port status in the status message data of the switch.

[0073] Fault type A: Conflict fault, there are two or more master stations on a ring network, there are two or more master node switches in the ring coupling, there is no backup node switch, and there are two or more backup node switches.

[0074] Fault type B: Direct fault, the port link connected to the current switch fails.

[0075] Fault type C: Indirect fault, the ring network or ring coupling fails, and the fault point is not on the port link connected to the current switch.

[0076] Fault type D: Offline fault. When the server cannot detect data from a device for a preset number of times (for example, five times), the device is considered offline.

[0077] Fault type E: unknown fault. If a fault occurs that does not match any of the above faults, it is considered an unknown fault.

[0078] Furthermore, in the present invention, the alarm priorities for the above five fault types are respectively defined when a fault occurs, wherein the alarm priority of fault type A is the highest, followed by fault types B, C, D, and E in order.

[0079] In one embodiment, if a faulty ring network has multiple faults at the same time, when outputting alarm information to the corresponding human-computer interaction interface in step S330, the alarm information with a high priority is sent first. For example, fault B and fault C of the ring coupling ring occur at the same time. Since fault B has a higher priority, when outputting alarm information, the alarm information corresponding to fault B is output first. When the user views the fault alarm information on the human-computer interaction interface, the first thing he sees is the alarm information of fault B, followed by the alarm information of fault C. In other words, when the alarm information of fault B and fault C can be displayed on the same interactive interface at the same time, the alarm information of fault B is displayed in the front section. This is to facilitate users to prioritize high-priority faults.

[0080] In another embodiment, in response to a fault occurring, in step S330, an alarm message is repeatedly output to the human-computer interaction interface multiple times according to a second preset frequency corresponding to the priority of the fault type, until a confirmation instruction is received from the user confirming that the fault is known or the faulty ring network repairs the fault, and then the fault message is stopped to prevent the user from missing the relevant alarm information.

[0081] The second preset frequency corresponding to the priority level can be preset according to the needs of the user. For example, in one embodiment, the user sets the sending frequency of the fault alarm information of fault types A, B, and C to be once every 30 seconds, the sending frequency of the fault alarm information of fault D to be once every 60 seconds, and the sending frequency of the fault alarm information of fault E to be once every 120 seconds. Thus, the frequency of the fault alarm can be adjusted according to the urgency of the fault.

[0082] Please combine Figure 4-6 To further understand the specific implementation of step S310 and step S320 of the present invention. Figure 4 A schematic diagram of the fault analysis process for a single-ring network and a double-cut-ring network is shown. Figure 5 The figure shows the fault analysis process of the dual-homing ring network. Figure 6 A schematic diagram of the fault analysis process of a ring-coupled ring network is shown.

[0083] Single ring network and double cut ring network have the same fault types. The fault analysis process is as follows: Figure 4 As shown, first, the ring 1 / ring 2 master station that uploaded the fault is analyzed, that is, the ring network status and port status of the master station in the ring network are analyzed. When fault A occurs, since the master station information reporting the fault is analyzed at this time, the fault information determined in step S310 and described in text in step S320 is "there are multiple master stations (switches X and Y) in a single ring, and a conflict occurs".

[0084] When the master station has a fault B, it indicates that a ring network function port is disconnected. First, check whether the first port and the second port of the master station are all disconnected. If all are disconnected, the fault information determined in step S310 and described in step S320 is "the connection between the first and second ports of the master station is disconnected". If only one port of the master station is disconnected, further analyze the slave station switch (slave station X) reporting fault B in the ring network, and detect the disconnected ring network function port, so that the fault information determined in step S310 and described in step S320 is "the connection between which port of which switch and which port of which switch is disconnected". When the master station has a fault C, it indicates that the connection between two slave stations (slave station Y and slave station Z) is disconnected. Check the slave station switch reporting fault B in the ring network, and detect the disconnected ring network function port, so that the fault information determined in step S310 and described in step S320 is "the connection between which port of which switch and which port of which switch is disconnected".

[0085] In the above step S320, further, since the form of the ring network is already very clear, the topology diagram (such as Figure 3A The fault information is represented by a schematic diagram (as shown in the figure), that is, the faulty switch and the fault cause are shown in the topology diagram. This can help users quickly identify the faulty switch and the fault cause.

[0086] The fault that is unique to the dual-homing ring network is fault B. Its fault analysis process is as follows: Figure 5 As shown, when a dual-homing ring network failure occurs, first detect the special node (i.e., the specific switch, the dual-homing ring control end, Figure 3CThe fault reporting status of the switch 104) and the port configured with the dual ring function ( Figure 3C If the specific switch reports fault B and detects that the port configured with the dual-homing ring function is disconnected, the fault information determined in step S310 and described in text in step S320 is "which / all ports of the special node of the dual-homing ring are disconnected". If the above situation does not occur, the fault is analyzed according to the fault analysis idea of ​​the single ring network.

[0087] In the above step S320, further, since the form of the ring network is already very clear, the topology diagram (such as Figure 3C The fault information is represented by a schematic diagram (as shown in the figure), that is, the faulty switch and the fault cause are shown in the topology diagram. This can help users quickly identify the faulty switch and the fault cause.

[0088] Please refer to Figure 6 To understand the ring coupling ring network fault analysis process, the master node and the backup node in a single ring of the ring coupling ring network must appear in pairs (one master node and one backup node are a pair), and there is at most one pair of master and backup nodes.

[0089] First, decouple the ring coupling ring, that is, analyze whether it is fault A in the single ring network. If so, make the same treatment as the single ring network; analyze whether it is fault B or C in the single ring network. If so, make the same treatment as the single ring network. Faults B and C in the ring coupling ring network always appear at the same time. If fault B appears in the master node, fault C will appear in the standby node; if fault C appears in the master node, fault B will appear in the standby node. Since faults B and C always appear at the same time, a two-step judgment can be used to better analyze the faults, that is, if fault B appears, further analyze fault C, and if fault C appears, further analyze fault B.

[0090] Since faults B and C occur in the ring coupling ring, it is necessary to further analyze whether the switch with fault B is the master or backup node, and then analyze whether the ring coupling function port connection of the switch is disconnected. Finally, analyze whether the switch with fault C is the backup or master node, and whether the ring coupling function port connection is intact.

[0091] If the ring coupling function ports of the master and backup nodes reporting fault B are disconnected, and the ring coupling function ports of the backup and master nodes reporting fault C are intact, the fault information determined in step S310 and described in words in step S320 should be "the ring coupling function port of the master node is disconnected" or "the ring coupling function port of the backup node is disconnected" according to the situation.

[0092] If the master and backup nodes report fault B at the same time, and the ring coupling function port connections of the master and backup nodes are all disconnected, the fault information determined in step S310 and described in text in step S320 is "the ring coupling function port connections between the master node and the backup node are all disconnected".

[0093] In the above step S320, further, since the form of the ring network is already very clear, the topology diagram (such as Figure 3D The fault information is represented by a schematic diagram (as shown in the figure), that is, the faulty switch and the fault cause are shown in the topology diagram. This can help users quickly identify the faulty switch and the fault cause.

[0094] When the cloud server 200 fails to detect the timing message of a device for a preset number of times (i.e., the status message data sent by the switch to the cloud server at the first preset frequency as described above), the device is considered offline, and the fault information determined in step S310 and described in step S320 is "device (switch X) offline". In step S320, a topology diagram can be used to intuitively represent the offline device. This can help users quickly identify the faulty switch and the cause of the fault.

[0095] If a fault that does not match any of the above faults occurs, it is deemed to be an unknown fault, and the fault information determined in step S310 and described in text in step S320 is "an unknown fault occurs."

[0096] The fault alarm method provided by one aspect of the present invention has been described so far. According to the fault alarm method of the ring network redundant switch provided by the present invention, the fault alarm can be performed timely and accurately, and the alarm information is in various forms and clear at a glance, which is convenient for operation and maintenance personnel to quickly understand the fault details, thereby promptly resolving the fault and restoring the normal operation of the ring network redundant switch.

[0097] Another aspect of the present invention further provides a fault alarm device 400 for a ring network redundant switch, namely the cloud server 200 mentioned above. The cloud server adopts a SaaS service model, including a data processing layer and a system application layer.

[0098] The system application layer of the cloud server includes user authentication management, historical data management, real-time data query and alarm information publishing functions. The user authentication management module mainly manages the user's account, password and other identity authentication information. The historical data management module is used to call and manage the switch device configuration information, ring network status and port status and other historical data uploaded to the cloud platform; the real-time data query module allows users to monitor the switch status in real time. The alarm information publishing module sends alarm information to users according to different fault types and alarm levels. When the user confirms the alarm information, the cloud platform will no longer send the alarm information. After the fault is repaired, the fault recovery information will be sent to the user, and the recovery information will only be sent once.

[0099] The data processing layer includes a shared database and ring network fault analysis. When data is stored in the shared database, corresponding IDs are assigned to different enterprises and users. User data is classified by the ID to ensure the security of data between different enterprises and users.

[0100] The cloud server 200 is located between the switch 100 and the user end 300 , and sends relevant status data of the switch 100 to the user end 300 .

[0101] The user terminal 300 may include a mobile phone and other smart devices. The user can monitor and view the ring network redundant switch information in real time through the human-computer interaction interface of the user terminal 300. When a fault occurs, the user can receive a fault alarm message, which contains a text description of the fault, a "fault topology map" button and a "confirm alarm message" button. Clicking the "fault topology map" button can display the complete ring network topology map. The device showing the fault turns red and flashes. After clicking the "confirm alarm message" button, the cloud platform will no longer send an alarm. The description of the fault in the alarm message and the ring network topology map in the fault topology map can determine the location and cause of the fault. After the fault is restored, the user can promptly learn about the ring network fault recovery information.

[0102] Further, such as Figure 7 As shown, in this embodiment, the fault alarm device 400 is in the form of a general computer device, which is used to implement the steps of the fault alarm method of the ring network redundant switch described in any of the above embodiments. For details, please refer to the description of the fault alarm method of the ring network redundant switch above, which will not be repeated here.

[0103] The components of the fault alarm device 400 may include one or more memories 401, one or more processors 402, and a bus 403 connecting different system components (including the memories 401 and the processors 402).

[0104] The bus 403 includes a data bus, an address bus, and a control bus. The product of the number of bits of the data bus and the operating frequency is proportional to the data transmission rate, the number of bits of the address bus determines the maximum addressable memory space, and the control bus (read / write) indicates the type of bus cycle and the time when the input / output operation is completed. The processor 402 is connected to the memory 401 through the bus 403, and is configured to implement the fault alarm method of the ring network redundant switch provided by any of the above embodiments.

[0105] The processor 402 is the computing and control core of the fault alarm device 400 and is the final execution unit for information processing and program operation. All software layer operations in the computer system will eventually be mapped to the operations of the processor 402 through the instruction set. The functions of the processor 402 are mainly to process instructions, execute operations, control time, and process data.

[0106] The memory 401 refers to various storage devices in a computer for storing programs and data. The memory 401 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) 404 and / or a cache memory 405 .

[0107] Random access memory (RAM) 404 is an internal memory that directly exchanges data with processor 402. It can be read and written at any time (except when refreshing) and is very fast. It is usually used as a temporary data storage medium for operating systems or other running programs. Once the power is off, the data stored in it will be lost. Cache memory (Cache) 405 is a primary memory between main memory and processor 402. Its capacity is relatively small but its speed is much higher than that of main memory, close to the speed of processor 402.

[0108] It should be noted that, in the case where the fault alarm device 400 includes multiple memories 401 and multiple processors 402, the multiple memories 401 and the multiple processors 402 can have a distributed structure, for example, multiple terminals of memories and processors located at different physical locations, and the multiple terminals jointly implement the fault alarm method of the ring network redundant switch. Furthermore, in the embodiment adopting the distributed structure, the specific execution terminal of each step can be adjusted according to the actual situation, and the specific scheme of each step implemented in a specific terminal should not unduly limit the protection scope of the present invention.

[0109] The fault alarm device 400 may further include other removable / immovable, volatile / non-volatile computer system storage media. In this embodiment, the storage system 406 may be used to read and write immovable, non-volatile magnetic media.

[0110] The memory 401 may also include at least one set of program modules 407. The program modules 407 may be stored in the memory 401. The program modules 407 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 407 generally perform the functions and / or methods of the embodiments described herein.

[0111] The fault alarm device 400 may also communicate with one or more external devices 408. The external device 408 in this embodiment includes the switch 100 and the user terminal 300. The external device 408 also includes a display 409. When implementing the fault alarm method of the ring network redundant switch, the fault alarm device 400 may display the working status of the cloud server through the display 409.

[0112] The fault alarm device 400 may also communicate with one or more devices that enable a user to interact with the fault alarm device 400, and / or with any device that enables the fault alarm device 400 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 410.

[0113] The fault alarm device 400 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through the network adapter 411. Figure 2 As shown, the network adapter 411 communicates with other modules of the fault alarm device 400 via the bus 403. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the fault alarm device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0114] So far, the fault alarm method and device of the ring network redundant switch provided by the present invention have been described. According to the present invention, fault alarm can be performed timely and accurately, and the alarm information is in various forms and clear at a glance, which is convenient for operation and maintenance personnel to quickly understand the fault details, thereby promptly resolving the fault and restoring the ring network redundant switch to normal operation.

[0115] Another aspect of the present invention further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the steps of the fault alarm method of the ring network redundant switch as described in any one of the embodiments above are implemented. Please refer to the above description for details, which will not be repeated here.

[0116] The various illustrative logic modules and circuits described in conjunction with the embodiments disclosed herein may be implemented or executed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in cooperation with a DSP core, or any other such configuration.

[0117] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software module may reside in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read and write information from / to the storage medium. In an alternative, a storage medium may be integrated into a processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.

[0118] In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented as a computer program product in software, each function may be stored on or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include both computer storage media and communication media, including any medium that facilitates the transfer of a computer program from one place to another. Storage media may be any available medium that can be accessed by a computer. As an example and not limitation, such a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer. Any connection is also properly referred to as a computer-readable medium. For example, if the software is transmitted from a website, a server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. As used herein, disk and disc include compressed discs.

[0119] Computer-readable media may include CDs, laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0120] The foregoing description is provided to enable any person skilled in the art to practice the various aspects described herein. However, it should be understood that the scope of protection of the present invention shall be subject to the appended claims and shall not be limited to the specific structures and components of the above-described embodiments. Those skilled in the art may make various changes and modifications to the embodiments within the spirit and scope of the present invention, and these changes and modifications also fall within the scope of protection of the present invention.

Claims

1. A fault alarm method for a ring network redundant switch, applied to a cloud server, characterized in that: The fault alarm method comprises: Receive status message data of each switch, and determine the ring network type of the ring network where each switch is located and the specific switch of each ring network according to the status message data of each switch; Determine whether each ring network has a fault and the type of fault based on the status message data of each specific switch; For each faulty ring network, Determine fault information according to the ring network type, the fault type and the status message data of at least one switch in the faulty ring network, wherein the fault information includes the faulty switch where the fault occurs and the cause of the fault; generating alarm information according to the fault information, wherein the alarm information includes fault information in text form and in topological form; and Outputting the alarm information to a corresponding human-computer interaction interface; The fault types include: conflict fault, direct fault, indirect fault, offline fault, and unknown fault; The ring network types include: single ring network, double cut ring network, double return ring network, and ring coupling ring network; In response to the ring network being the single ring network or the double-cut ring network, a specific switch of the single ring network or the double-cut ring network is a master station of each independent loop; In response to the ring network being the dual-homing ring network, the specific switch of the dual-homing ring network is a dual-homing ring control terminal; In response to the ring network being the ring-coupled ring network, specific switches of the ring-coupled ring network are ring-coupled master and backup nodes.

2. The fault alarm method according to claim 1, characterized in that: Receiving status message data output by each of the switches based on a first preset frequency; or The status message data outputted by each of the switches in response to a switch having a breakpoint is received.

3. The fault alarm method according to claim 1, characterized in that: In response to the presence of multiple types of faults in the faulty ring network, alarm information corresponding to the fault with the highest priority is outputted preferentially according to the priorities of the fault types of the faulty ring network.

4. The fault alarm method according to claim 1, characterized in that: Outputting the alarm information to the corresponding human-computer interaction interface further includes: The alarm information is repeatedly output to the corresponding human-computer interaction interface based on a second preset frequency corresponding to the priority of the fault type until a confirmation instruction from the user is received or the faulty ring network is repaired.

5. The fault alarm method according to claim 3 or 4, characterized in that: The fault types include, in descending order of priority: conflict fault, direct fault, indirect fault, offline fault, and unknown fault.

6. A fault alarm device for a ring network redundant switch, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following is achieved: Receive status message data of each switch, and determine the ring network type of the ring network where each switch is located and the specific switch of each ring network according to the status message data of each switch; Determine whether each ring network has a fault and the type of fault based on the status message data of each specific switch; For each faulty ring network, Determine fault information according to the ring network type, the fault type and the status message data of at least one switch in the faulty ring network, wherein the fault information includes the faulty switch where the fault occurs and the cause of the fault; Generate alarm information according to the fault information, wherein the alarm information includes fault information in text form and in topological form; as well as Outputting the alarm information to a corresponding human-computer interaction interface; The fault types include: conflict fault, direct fault, indirect fault, offline fault, and unknown fault; The ring network types include: single ring network, double cut ring network, double return ring network, and ring coupling ring network; In response to the ring network being the single ring network or the double-cut ring network, a specific switch of the single ring network or the double-cut ring network is a master station of each independent loop; In response to the ring network being the dual-homing ring network, the specific switch of the dual-homing ring network is a dual-homing ring control terminal; In response to the ring network being the ring-coupled ring network, specific switches of the ring-coupled ring network are ring-coupled master and backup nodes.

7. The fault alarm device according to claim 6, characterized in that: The fault alarm device receives status message data output by each of the switches based on a first preset frequency; or The fault alarm device receives status message data output by each of the switches in response to a switch having a breakpoint.

8. The fault alarm device according to claim 6, characterized in that: In response to the presence of multiple types of faults in the faulty ring network, the fault alarm device preferentially outputs alarm information corresponding to the fault with the highest priority according to the priorities of the fault types of the faulty ring network.

9. The fault alarm device according to claim 6, characterized in that: The fault alarm device outputs the alarm information to the corresponding human-computer interaction interface further comprising: The alarm information is repeatedly output to the corresponding human-computer interaction interface based on a second preset frequency corresponding to the priority of the fault type until a confirmation instruction from the user is received or the faulty ring network is repaired.

10. The fault alarm device according to claim 8 or 9, characterized in that: The fault types include, in descending order of priority: conflict fault, direct fault, indirect fault, offline fault, and unknown fault.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the failure method of a ring network redundant switch according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method, system and device for preventing looped network temporary loop circuit of relaying link

    CN101483570A

  • Design scheme for inter-station communication network of passenger dedicated railway

    CN102223277A

  • Device, system and method for monitoring looped network fault detecting, positioning and alarmings

    CN102891771A

  • Wind farm single-ring network multi-point fault rapid positioning method

    CN105353272A

  • Ethernet looped network module supporting fast fault point positioning

    CN106161114A