Switch diagnosis method based on DCS system, DCS system and equipment

By deploying redundant network topology and dynamic diagnostic task allocation in the DCS system, comprehensive monitoring of the switch status is achieved, solving the problem of unreliable real-time diagnosis of switches in the existing technology and improving the security and stability of the system.

CN120602445APending Publication Date: 2025-09-05STATE ENERGY CHANGZHOU NO 2 POWER GENERATION CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510862468.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

The existing DCS system is not reliable enough in diagnosing the real-time operating status of network switches and cannot guarantee the security and stability of the system.

Method used

By deploying a redundant network topology in the DCS system, setting the diagnostic priority and link status information of the computing server station, dynamically allocating diagnostic tasks, and collecting system resource data of the switch, a comprehensive and autonomous diagnosis of the switch status can be achieved.

Benefits of technology

It improves the operational safety and reliability of the DCS system, ensures that the system can still operate stably in the event of a single point failure, and avoids omissions and repeated outputs of diagnostic tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120602445A_ABST
    Figure CN120602445A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent control, and discloses a switch diagnosis method based on a DCS system, the DCS system and equipment. Comprising the following steps: acquiring link state information between computing server stations and between the computing server stations and switches; determining a diagnosis task of each computing server station based on a preset diagnosis distribution rule and the link state information; the preset diagnosis allocation rule represents a rule for allocating a diagnosis task based on the synchronization condition of diagnosis priority and link state information between the computing server stations; and each computing server station respectively obtains the system resource data of the real-time operation of the switch included in the corresponding diagnosis task so as to determine the diagnosis result of each switch. According to the method, the link state of the server station and the switch is monitored and calculated in real time, redundant logic and priority rules are set, diagnosis tasks are dynamically allocated, the switch is diagnosed by collecting system resource data of the switch, and the safety and reliability of the whole system can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent control technology, and in particular to a switch diagnosis method based on a DCS system, and a DCS system. Background Art

[0002] A distributed control system (DCS), also known as a distributed control system, is a computer-based control system that provides centralized management and decentralized control of production processes. In large and medium-sized power plant generators, DCS systems are the core control system, playing a crucial role in ensuring the safety and reliability of the generators.

[0003] As the scale of power plant generators expands, higher requirements are placed on the control security and real-time performance of DCS systems. In particular, DCS systems need to be able to diagnose the operating status of switches in the system in real time, providing engineers with the device status and related information of switches throughout the system, thus supporting engineers' control decisions. However, existing DCS systems are not reliable enough in diagnosing the real-time operating status of networked switches, and are unable to ensure the safe and stable operation of the entire system. Summary of the Invention

[0004] The purpose of the present invention is to overcome the problem in the prior art that the switch diagnosis method based on the DCS system is not reliable in diagnosing the real-time operating status of the networked switch, and to provide a switch diagnosis method based on the DCS system, a DCS system and a device.

[0005] In order to achieve the above objectives, the present invention provides a switch diagnosis method based on a DCS system, which mainly includes: The DCS system includes a local area network subsystem and a computing server subsystem. The local area network subsystem includes several local area networks each equipped with a switch. The computing server subsystem includes several computing server stations each equipped with a switch. The method is executed by the computing server subsystem and mainly includes: Collect link status information between each computing server station and between each computing server station and each switch; Determining the diagnostic tasks of each computing server station based on a preset diagnostic allocation rule and the link status information; the preset diagnostic allocation rule represents a rule for allocating diagnostic tasks based on diagnostic priorities and synchronization of link status information between computing server stations; In response to the system resource data of the switches in real time operation included in the diagnostic tasks of the computing server stations, a diagnostic result of each switch is determined.

[0006] Optionally, collecting link status information between computing server stations and between computing server stations and switches includes: Collect the connection status information between each computing server station and each switch, as well as the synchronization status information between computing server stations; Based on the connection status information and synchronization status information corresponding to each computing server station, link status information between each computing server station and each switch is determined.

[0007] Optionally, determining the diagnostic task of each computing server station based on a preset diagnostic allocation rule and the link status information includes: Determining a target computing server station that is normally connected to at least one switch based on link status information of each computing server station; The station number of each target computing server station is collected, and the diagnostic task of each target computing server station is determined based on the preset diagnostic allocation rule and the station number.

[0008] Optionally, determining the diagnostic task of each computing server station based on a preset diagnostic allocation rule and a station number includes: Determine the diagnostic priority of each target computing server station based on the preset diagnostic allocation rules and station number; If there is at least one target computing server station that is properly connected to all switches, the diagnostic tasks of all switches are assigned to the target computing server station with the highest diagnostic priority; If each target computing server station is only properly connected to some switches, and each switch is properly connected to at least one target computing server station, then the diagnostic task of each switch will be assigned only to the target computing server station with the highest diagnostic priority in descending order of diagnostic priority.

[0009] Optionally, determining the diagnostic task of each computing server station based on a preset diagnostic allocation rule and a station number includes: If there is a switch that cannot be properly connected to any computing server station, and the link status information between the computing server stations is synchronized normally, the connection failure information of the corresponding switch is output through the computing server station with the highest diagnostic priority.

[0010] Optionally, determining the diagnosis result of each switch in response to collecting the real-time runtime system resource data of the switch included in the diagnosis task of each computing server station includes: Determining an alarm type in response to system resource data of the switch in real-time operation included in the diagnostic tasks collected from each computing server station; Based on the preset alarm thresholds of several alarm levels corresponding to each alarm type and the system resource data, the diagnosis result of each switch is determined.

[0011] Optionally, in response to collecting link status information between each computing server station and each switch, the method further includes: Based on the link status information, a computing server station that cannot be normally connected to any switch is determined, corresponding offline fault information is collected, and the offline fault information is pushed to the DCS system.

[0012] Optionally, the DCS system further includes an operator station and a history station; and the switch diagnostic method further includes: Utilizing the operator station to receive diagnostic result information of each switch, and regulating the local area network subsystem and the computing server station according to the diagnostic result of each switch; The history station is used to store all diagnostic result information received by the operator station within a preset time period.

[0013] A second aspect of the present invention provides another switch diagnostic method based on a DCS system. The DCS system includes a local area network subsystem, a computing server subsystem, and a diagnostic data aggregation service module. Each of the multiple local area networks included in the local area network subsystem is equipped with a switch. The computing server subsystem includes multiple computing server stations that are respectively deployed in all the local area networks. The method is performed by the diagnostic data aggregation service module and mainly includes: Collect link status information between each computing server station and each switch; Determining a diagnostic task for each computing server station based on a preset diagnostic priority between the computing server stations and the link status information; In response to the system resource data of the switches in real time operation included in the diagnostic tasks of the computing server stations, a diagnostic result of each switch is determined.

[0014] A third aspect of the present invention provides a DCS system, the DCS system comprising a local area network subsystem and a computing server subsystem; The local area network subsystem includes several local area networks, each of which is equipped with a switch; The computing server subsystem includes several computing server stations, each of which is deployed in all local area networks and collects link status information between each computing server station and each switch; based on preset diagnostic allocation rules and the link status information, the diagnostic task of each computing server station is determined; the preset diagnostic allocation rule represents a rule for allocating diagnostic tasks based on the diagnostic priority between computing server stations; in response to the system resource data of the switch during real-time operation included in the diagnostic tasks collected from each computing server station, the diagnostic result of each switch is determined.

[0015] A fourth aspect of the present invention provides another DCS system, the DCS system comprising a local area network subsystem, a computing server subsystem, and a diagnostic data aggregation service module; The local area network subsystem includes several local area networks, each of which is equipped with a switch; The computing server subsystem includes several computing server stations, each of which is deployed in all local area networks; The diagnostic data aggregation service module responds to the link status information collected between each computing server station and each switch; determines the diagnostic task of each computing server station based on the preset diagnostic priority between the computing server stations and the link status information; and determines the diagnostic result of each switch in response to the system resource data of the switch during real-time operation included in the diagnostic tasks collected from each computing server station.

[0016] A third aspect of the present invention provides an electronic device, comprising a memory for storing executable instructions; and a processor for calling and running the executable instructions in the memory to execute the steps of the above-mentioned DCS system-based switch diagnosis method.

[0017] A fourth aspect of the present invention provides a computer-readable storage medium having program instructions stored therein. When the program instructions are executed by a processor, the steps of the above-mentioned switch diagnosis method based on the DCS system are implemented.

[0018] Compared with the existing technology, the beneficial effects of this solution are as follows: The present invention monitors the link status between the computing server station and the switch in real time, sets redundant logic and priority rules to dynamically allocate diagnostic tasks, and collects system resource data from the switch to achieve comprehensive and autonomous diagnosis of the switch status within the DCS system, which can greatly improve the safety and reliability of the entire system operation.

[0019] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following detailed description, they are used to explain the embodiments of the present invention, but do not constitute a limitation of the embodiments of the present invention. In the accompanying drawings: Figure 1 A schematic diagram of the DCS system structure of the present invention; Figure 2 This is a flow chart of a switch diagnostic method based on a DCS system of the present invention; Figure 3A detailed schematic diagram of another DCS system structure of the present invention; Figure 4 A schematic diagram of another DCS system structure of the present invention; Figure 5 This is a flow chart of another switch diagnostic method based on a DCS system of the present invention; Figure 6 It is a schematic diagram of the structure of the electronic device of the present invention. DETAILED DESCRIPTION

[0021] The following is a clear and complete description of the technical solutions in the embodiments of the present invention, in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0022] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0023] In view of the problem that the existing DCS system is not reliable enough in diagnosing the real-time operating status of the network switches and cannot ensure the safe and stable operation of the entire system, the first embodiment of the present invention constructs a DCS system for diagnosing the status of the switches, such as Figure 1 As shown, the DCS system includes at least a LAN subsystem 101 and a computing server subsystem 102. The LAN subsystem 101 includes at least two LANs, and each LAN is equipped with a switch. The computing server subsystem 102 includes at least two computing server stations, and each computing server station is deployed in all LANs, that is, each computing server station is connected to each LAN, so that the operating status of the switch in each LAN can be redundantly monitored and diagnosed through multiple computing server stations.

[0024] Furthermore, the DCS system includes at least one set of operator stations and history stations, each of which is connected to a respective local area network. This allows the operator stations and history stations to control and diagnose the connected individual local area networks, as well as store real-time diagnostic information and alarm information from the connected individual local area networks. Specifically, an operator station connected to one of the local area networks receives diagnostic results from switches within that network and controls the local area network subsystem 101 and computing server subsystem 102 based on the diagnostic results of the switches within that network. Simultaneously, the history stations connected to that network store all diagnostic results received by the operator stations within the group within a preset time period. Thus, all devices in the DCS system are connected to at least two independent switches via physical links, forming a redundant network topology. This layout ensures that if any switch or computing server station fails, the remaining switches or computing server stations will continue to operate, ensuring stable system operation even in the event of a single point of failure. Furthermore, through distributed deployment, physical isolation between monitoring functions and data storage is achieved, thereby meeting the design requirements for reliability, security, and availability of industrial DCS systems.

[0025] Based on the DCS system, the second embodiment of the present invention proposes a switch diagnosis method applied to the DCS system, such as Figure 2 As shown, the method includes: Step 100: Collect link status information between computing server stations and between computing server stations and switches.

[0026] Specifically, each computing server station in the computing server subsystem 102 of the DCS system collects link status information between each computing server station and between each computing server station and each switch in the local area network subsystem 101. The link status information is used to reflect whether each computing server station and each computing server station and each switch are communicating normally.

[0027] In a preferred embodiment, collecting link status information between computing server stations and between computing server stations and switches in step 100 includes: Step 110: Collecting connection status information between each computing server station and each switch, as well as synchronization status information between computing server stations; Step 120: Based on the connection status information and synchronization status information corresponding to each computing server station, determine the link status information between each computing server station and each switch.

[0028] Specifically, the connection status information between each computing server station and each switch is collected, including physical link status information and network communication status information. Physical link status information is used to detect whether the computing server station's physical network card is properly connected to the corresponding switch (e.g., whether the network cable is properly plugged in and whether the port is activated). For example, this information can be used to verify whether the switch is reachable through the SNMP protocol. If it fails to respond, the link is marked as disconnected. Network communication status information is used to reflect whether the computing server station can successfully collect system resource data (e.g., CPU and memory data) from the switch through the SNMP protocol. If the SNMP request times out or fails, the link communication is considered abnormal. Synchronization status information between computing server stations is used to reflect whether the computing server stations can synchronize their physical link status information and network communication status information with each switch. For example, this can be verified by the computing server stations sending heartbeats or diagnostic data packets to each other to synchronize information.

[0029] Based on the physical link status information, network communication status information, and synchronization status information corresponding to each computing server station, the link status information between each computing server station and each switch is determined. If a computing server station can normally collect system resource data from a switch in a local area network (LAN), the SNMP request response is successful, indicating that the communication link between the computing server station and the LAN is normal. If only the physical link is connected but the SNMP request fails, the communication link between the computing server station and the LAN is abnormal. If the physical link is disconnected (for example, the network card is inactive), the communication link between the computing server station and the LAN is faulty.

[0030] Step 200: Determine the diagnostic tasks of each computing server station based on a preset diagnostic allocation rule and the link status information; the preset diagnostic allocation rule represents a rule for allocating diagnostic tasks based on the diagnostic priority between computing server stations and the synchronization of link status information.

[0031] Specifically, a preset diagnostic allocation rule is pre-set to represent the rules for allocating diagnostic tasks based on the diagnostic priority and link status information synchronization between computing server stations. The diagnostic priority between computing server stations represents the pre-set diagnostic priority of each computing server station for each switch, and the link status information synchronization status reflects whether the physical link status information, network communication status information, and synchronization status information between computing server stations can be properly shared. The computing server subsystem 102 then sets redundant diagnostic logic rules based on the preset diagnostic allocation rules and allocates diagnostic tasks to each computing server station according to these redundant diagnostic logic rules. In actual application, the redundant diagnostic logic is implemented by executing a uniquely designed switch diagnostic program (DiagSwitch, DSW). During implementation, only the internal configuration information of the DCS system (such as computing server station description information and station configuration information) needs to be sent to the computer, and the DSW program can be directly launched to perform diagnostics. This simple and efficient configuration can greatly improve the efficiency of switch diagnostics.

[0032] In a preferred embodiment, determining the target switch to be diagnosed by each computing server station based on the preset diagnosis allocation rule and the link status information in step 200 includes: Step 210: Determine a target computing server station that is normally connected to at least one switch based on the link status information of each computing server station; Step 220: Collect the station number of each target computing server station, and determine the diagnostic task of each target computing server station based on the preset diagnosis allocation rule and the station number.

[0033] Specifically, the computing server subsystem 102 determines target computing server stations that are properly connected to at least one switch based on the link status information of each computing server station, so as to target some or all of the target computing server stations as targets for executing diagnostic tasks. The system then collects the station ID of each target computing server station, such as a unique string consisting of a numerical serial number and a model number, and sets redundant diagnostic logic rules for each target computing server station to perform real-time diagnostics on each switch based on the station ID of each target computing server station. Specifically, the system includes: determining a diagnostic priority for each target computing server station based on a preset diagnostic allocation rule and the station ID; if at least one target computing server station is properly connected to all switches, assigning diagnostic tasks for all switches to the target computing server station with the highest diagnostic priority; if each target computing server station is properly connected to only some switches, and each switch is properly connected to at least one target computing server station, assigning diagnostic tasks for each switch only to the target computing server station with the highest diagnostic priority, in descending order of diagnostic priority.

[0034] Furthermore, in a preferred embodiment, if the station numbers of the target computing server stations include model numbers and the models are different, diagnostic tasks are assigned in descending order of data processing performance corresponding to the target computing server station models. If the target computing server stations have the same model numbers but different numerical serial numbers, diagnostic tasks are assigned in descending order of numerical serial numbers, thereby determining the diagnostic priority of each target computing server station based on a prioritization principle that prioritizes the model number over the numerical serial number. If at least one target computing server station is properly connected to each switch, the task of diagnosing all switches is assigned to the target computing server station with the highest diagnostic priority. In other words, if only one target computing server station is properly connected to each switch, all diagnostic tasks are assigned to that target computing server station, regardless of its diagnostic priority. If each target computing server station can only connect normally with some switches, but has abnormal connections with other switches, and link status information can be normally synchronized between the target computing server stations, the target computing server station with the highest diagnostic priority is assigned to perform diagnostic tasks for the switches it is normally connected to. The target computing server stations that can normally connect to the remaining switches are then assigned diagnostic tasks in order of processing performance or numerical sequence size until all switches have been assigned. If each target computing server station can only connect normally with some switches, but has abnormal connections with other switches, and link status information cannot be normally synchronized between the target computing server stations, the diagnostic tasks are split according to link status. Each target computing server station performs diagnostic tasks for all switches it is normally connected to. This means that the diagnostic tasks of each target computing server station are independent of each other, and it is possible that multiple target computing server stations may diagnose the same switch simultaneously. If multiple target computing server stations diagnose the same switch simultaneously, all diagnostic information for the same switch is combined to determine the operating status of the switch.

[0035] It can be seen that this embodiment sets the above-mentioned redundant diagnostic logic rules. If there is only one target computing server station that can normally connect to all switches, then this target computing server station is preferably responsible for the diagnostic tasks of all switches; if there are multiple target computing server stations that can normally connect to all switches, then the target computing server station with the highest diagnostic priority is preferably responsible for the diagnostic tasks of all switches. If each target computing server station can only normally connect to some switches, but has abnormal connections with other switches, if the link status information can be normally synchronized between the target computing server stations, then the target computing server station with the best performance or the smallest numerical sequence is preferably responsible for leading the output of diagnostic information for all switches, and other target computing server stations are selected in order of diagnostic priority to assist in performing diagnostic tasks for the other switches; if the link status information cannot be normally synchronized between the target computing server stations, then the diagnostic tasks that can be performed are independently assigned to each target computing server station, ensuring that all normally connected switches can be diagnosed, ensuring that diagnostic tasks are not missed and avoiding repeated output, thereby improving the comprehensiveness of switch diagnosis in each local area network.

[0036] As an illustrative example, Figure 3 In the DCS system shown, each host computer or controller in the DCS system can be collectively referred to as a station, divided into host computer stations and controller stations. Host computer stations are functionally divided into operator stations, computing server stations, and historical stations. The computing server subsystem 102 in this DCS system consists of computing server stations A and B, serving as the real-time data processing hub, responsible for some logical operations and system diagnostics. Each computing server station is equipped with two physical network cards, connected to switches A and B via network cables. The local area network formed by the connection with switches A is called Network A, and the local area network formed by the connection with switches B is called Network B. Operator stations A and B, deployed as part of the monitoring level, are responsible for processing the human-machine interface, displaying real-time data and alarm information, and allowing operators to perform control and adjustments. Historical stations A and B provide backup operating interfaces and historical data storage. All devices in this DCS system are connected to two independent switches via physical links, forming a redundant network topology.

[0037] It should be noted that if Figure 3Calculation server station A and calculation server station B are shown as identical models and are on par with each other in the DCS system. They are responsible for diagnosing both switches in network A and network B. However, switch diagnostic information is output to the DCS system by a single calculation server station, and the two calculation servers do not send duplicate switch diagnostic information. Assume that calculation server station A's station number is 180, abbreviated as CS180; and calculation server station B's station number is 181, abbreviated as CS181, where CS stands for calculate server. This example constructs redundant diagnostic logic that uses calculation server stations A and B to perform real-time diagnosis of switches in network A and network B. The details are as follows: 1) For the case where CS180 and CS181 can synchronize data with each other: If the synchronization data shows that the CS180 and CS181 are connected to the switches in network A and network B normally, the CS180 with the smaller station number will perform real-time diagnosis on the switches in network A and network B and output real-time diagnostic information. If the CS180 connection to network A fails, indicating that the diagnostic information of network A switch cannot be obtained, but the CS181 connection to network A and network B switches are both normal, and the CS180 can obtain the synchronization data of CS181 through network B, then the CS180 with the smaller station number will perform real-time diagnosis on the network B switch, and the CS181 will perform real-time diagnosis on the network A switch. CS180 will obtain the diagnostic synchronization data of CS181 on network A switch through network B, and the CS180 will output the real-time diagnostic information of the network A switch and network B switch. Similarly, if the CS180 connection to network B fails, but the CS181 connection to network A and network B switches are both normal, and the CS180 can obtain the synchronization data of CS181 through network A, the CS180 with the smaller station number will perform real-time diagnosis on network A switch, and the CS181 will perform real-time diagnosis on network B switch. CS180 will obtain the diagnostic synchronization data of CS181 on network B switch through network A, and the CS180 will output the real-time diagnostic information of the network A switch and network B switch. If the CS180 and CS181 fail simultaneously when connected to network A (the switch on network A is considered offline), but the connection to network B is normal, and the CS180 can obtain the synchronization data of the CS181 through network B and integrate the synchronization data, then the CS180 with the smaller station number will output real-time diagnostic information for the switches on networks A and B, and simultaneously output a fault signal for the switch on network A. Similarly, if the CS180 and CS181 fail simultaneously when connected to network B (the switch on network B is considered offline), but the connection to network A is normal, and the CS180 can obtain the synchronization data of the CS181 through network A and integrate the synchronization data, then the CS180 with the smaller station number will output real-time diagnostic information for the switches on networks A and B, and simultaneously output a fault signal for the switch on network B.

[0038] 2) If CS180 and CS181 cannot synchronize data with each other: If the CS180 is shut down or the CS180 connected to network A and network B fails at the same time, and the CS181 connected to network A and network B are both normal, the CS181 will perform real-time diagnosis on the switches in network A and network B and output real-time diagnostic information for both switches; If CS180 fails to connect to network A but is normal when connected to network B, while CS181 is normal when connected to network A but fails to connect to network B, CS180 will perform real-time diagnosis on the switch in network B and output real-time diagnostic information for the switch in network B, while CS181 will perform real-time diagnosis on the switch in network A and output real-time diagnostic information for the switch in network A, without outputting a switch fault signal. Similarly, if CS180 fails to connect to network B but is normal when connected to network A, while CS181 is normal when connected to network B but fails to connect to network A, CS180 will perform real-time diagnosis on the switch in network A and output real-time diagnostic information, while CS181 will perform real-time diagnosis on the switch in network B and output real-time diagnostic information, without outputting a switch fault signal. If the CS180 fails to connect to network A but is operating normally with network B (or vice versa), and the CS181 is operating normally with both network A and network B, the CS180 will output real-time diagnostic information about the switch on network B (or network A), while the CS181 will output real-time diagnostic information about the switches on network A and network B. No switch fault signals will be output. If CS180 is shut down or both the connections to network A and network B fail, and CS181 connections to network A and network B also fail, CS180 will output a switch failure.

[0039] As can be seen, the DCS system in this example deploys two identical computing server stations, with all devices connected to two independent switches via physical link lines, forming a redundant network topology. A complete set of redundant diagnostic logic is designed based on the principle of prioritizing smaller station numbers, dynamically allocating diagnostic tasks based on actual link conditions. This allows the remaining switches or computing server stations to continue operating to ensure stable system operation when any switch or computing server station fails. Furthermore, the distributed deployment allows for physical isolation of monitoring functions from data storage, ensuring that no diagnostic tasks are missed and avoiding duplicate output. It is easy to understand that the DCS in this example deploys two independent switches and computing server stations. As other illustrative examples, more than two independent switches and computing server stations can be deployed based on requirements such as computing volume and the timeliness of data processing. Any switch diagnostic solution implemented based on the deployment and redundant diagnostic logic of this example falls within the scope of protection of the present invention.

[0040] Step 300: In response to the collected system resource data of the switches in real time included in the diagnostic tasks of the computing server stations, a diagnosis result of each switch is determined.

[0041] Specifically, the computing server subsystem 102 responds to the system resource data, such as CPU load and memory utilization, collected from diagnostic tasks of each computing server station via the SNMP protocol. Based on these data, the system resource data determines the operational diagnostic results for each switch and issues an alarm signal if the system resource utilization threshold is exceeded. Simultaneously, the diagnostic results and alarm information are written to the DCS real-time database in the form of point values ​​and synchronously pushed to the operator station for display. Data such as the normal / abnormal status of the switch and resource values ​​are stored in the history station for subsequent query and analysis, forming a complete diagnostic closed loop. The point value-based diagnostic results and alarm information represent the DCS system's abstract representation of real-time monitoring data. For example, each switch's CPU load or memory utilization diagnosis is mapped to a data point structure containing a data type identifier, real-time value, timestamp, and data quality status. This allows for rapid recording of various types of system resource data, improving the real-time nature of switch diagnosis.

[0042] In this embodiment, by real-time monitoring of the link status between the computing server station and the switch, setting redundancy logic and priority rules to dynamically allocate diagnostic tasks, and collecting system resource data of the switch, a comprehensive and autonomous diagnosis of the switch status within the DCS system can be achieved, which can greatly improve the safety and reliability of the entire system operation.

[0043] In a preferred embodiment, the step 220 of determining the diagnostic task of each computing server station based on the preset diagnostic allocation rule and the station number further includes a step 230, specifically: If there is a switch that cannot be properly connected to any computing server station, and the link status information between the computing server stations is synchronized normally, the connection failure information of the corresponding switch is output through the computing server station with the highest diagnostic priority.

[0044] Specifically, when a switch in the DCS system is unable to connect properly with all computing server stations (i.e., both the physical link and network communication are abnormal), and the computing server stations are able to synchronize link status information normally, the computing server subsystem 102 will perform fault determination and information output according to preset priority rules. Specifically, each computing server station confirms that the switch is unresponsive on all links based on local detection data and synchronization data, eliminating the possibility of a single point of failure. Then, based on the priority set in the redundant diagnostic logic (e.g., computing server stations with lower station numbers have higher priority), the higher-priority computing server station uniformly determines that the switch is offline and generates connection failure information for the corresponding local area network (e.g., "Network A switch is offline: all links are unresponsive"). Finally, this fault information is transmitted to the operator station via the diagnostic output channel of the higher-priority computing server station to ensure that alarm information is not reported repeatedly. The fault status is also recorded in the database of the historical station for subsequent analysis. This embodiment ensures consistency in diagnostic results through the status synchronization mechanism between computing server stations, avoiding misjudgments due to network partitions.

[0045] In a preferred embodiment, determining the diagnosis result of each switch according to the system resource data in step 300 includes: Step 310: Determine the alarm type based on the system resource data of each switch during operation; Step 320: Determine the diagnosis result of each switch based on the preset alarm thresholds of the alarm levels corresponding to each alarm type and the system resource data.

[0046] Specifically, by analyzing the switch's real-time system resource data (such as CPU usage and memory utilization), it identifies possible anomaly patterns and matches them to pre-defined alarm types. This includes comparing collected system resource data (e.g., a CPU load of 85%) with pre-defined fault signatures, such as sustained high load, memory leaks, or resource exhaustion. The system then matches the anomaly signature to the corresponding alarm type (e.g., CPU overload or insufficient memory) to ensure that different types of system resource anomalies trigger alarms of corresponding severity.

[0047] Then, alarm thresholds for each alarm type are pre-set at each alarm level. Real-time resource data is compared against the thresholds for each alarm type and level. Furthermore, multi-dimensional data, such as CPU, memory, and historical trends, is integrated to determine whether the alarm level needs to be upgraded (increasing the severity if the threshold is continuously exceeded). Ultimately, diagnostic results are generated, including the specific alarm level (emergency / warning / prompt) and a detailed description, enabling a hierarchical assessment of the switch status. Simultaneously, the alarm signals and diagnostic results are pushed to the operator station for display and control, and recorded in the historical station's database for subsequent analysis.

[0048] This implementation method can effectively improve the operation and maintenance efficiency of the system by monitoring the operating status of the switch in real time and setting alarm information when the operation is abnormal. Automated diagnosis can reduce manual intervention and avoid repeated operations, making the switch status controllable, traceable, and able to provide early warning, thereby ensuring the high availability of the DCS system.

[0049] In a preferred embodiment, in response to collecting the link status information between each computing server station and each switch, the method further includes step 400: Based on the link status information, a computing server station that cannot be normally connected to any switch is determined, corresponding offline fault information is collected, and the offline fault information is pushed to the operator station.

[0050] Specifically, when a computing server station in the DCS system cannot establish a normal connection with all switches (i.e., the physical link is disconnected or network communication has completely failed), and other computing server stations can monitor these switches normally, the DCS system performs the following diagnostic process: First, the state synchronization mechanism between computing server stations verifies that the anomaly is not caused by a network partition and confirms that the computing server station is indeed offline; then, the offline fault details of the computing server station are collected, including the fault time, the affected network, and possible fault causes (such as network card failure or power outage); finally, the currently active computing server station pushes the offline fault information to the alarm system and records it in the database of the history station to ensure that the operator can receive the alarm in a timely manner and view the fault history. It can be seen that this implementation method avoids misjudgment caused by single point failures through redundant design and ensures the uniqueness and traceability of fault information.

[0051] The third embodiment of the present invention proposes another DCS system for diagnosing the status of a switch, such as Figure 4As shown, the DCS system includes at least a local area network (LAN) subsystem 201, a computing server subsystem 202, and a diagnostic data aggregation service module (DDASD) 203. The LAN subsystem 201 includes at least two LANs, each of which is equipped with a switch. The computing server subsystem 202 includes at least two computing server stations, each of which is deployed in all LANs. In other words, each computing server station is connected to each LAN. Based on the diagnostic tasks assigned by the diagnostic data aggregation service module 203, each computing server station collects real-time system resource data from the switches during operation, including the corresponding diagnostic tasks, to determine the diagnostic results for each switch. The diagnostic data aggregation service module 203 is configured to determine the diagnostic tasks for each computing server station by collecting link status information between each computing server station and each switch in the computing server subsystem 202 and combining it with the preset diagnostic priorities between the computing server stations.

[0052] Furthermore, the DCS system also includes at least one group of operator stations and history stations, each group of operator stations and history stations is connected to each local area network respectively, so as to realize the control and diagnosis of the single local area network connected by a group of operator stations and history stations, and the storage of real-time diagnostic information and alarm information of the single local area network connected. Specifically: the operator station connected to one of the local area networks receives the diagnostic result information of the switch in the local area network, and controls the local area network subsystem 201 and the computing server subsystem 202 according to the diagnostic result of the switch in the local area network. At the same time, all diagnostic result information received by the operator stations in the group within a preset time period is stored through the history station connected to the local area network.

[0053] It can be seen that each computing server in the DCS system is connected to at least two independent switches through physical link lines, forming a redundant network topology. This layout can ensure that the diagnostic data aggregation service module 203 can ensure the normal operation of the entire DCS system as long as it can collect diagnostic information of each local area network from any same or different computing server station, that is, it can still ensure the stable operation of the system in the event of a single point of failure. It can also achieve physical isolation of monitoring functions and data storage through distributed deployment, thereby meeting the design requirements of the industrial DCS system for reliability, security and availability.

[0054] The fourth embodiment of the present invention proposes another switch diagnosis method based on the DCS system, such as Figure 5As shown, the DCS system (i.e., the DCS system proposed in Example 3) includes a local area network subsystem 201, a computing server subsystem 202, and a diagnostic data aggregation service module 203. Each of the multiple local area networks included in the local area network subsystem 201 is equipped with a switch, and the multiple computing server stations included in the computing server subsystem 202 are respectively deployed in all the local area networks. The method is executed by the diagnostic data aggregation service module 203 and mainly includes: Step 500: Collect link status information between each computing server station and each switch; Step 600: Determine the diagnostic task of each computing server station based on the preset diagnostic priority between the computing server stations and the link status information; Step 700: In response to collecting the system resource data of the switches in real time during operation included in the diagnostic tasks of the computing server stations, determine the diagnostic results of each switch.

[0055] Specifically, the implementation steps of the DCS-based switch diagnostic method proposed in the fourth embodiment differ from the implementation steps of the DCS-based switch diagnostic method proposed in the second embodiment only in that the method in the fourth embodiment does not need to collect link status information between each computing server, nor does it need to synchronize link status information between each computing server. Instead, the link status information between each computing server and each switch is aggregated through a diagnostic data aggregation service module 203 newly established in the DCS system, and switch diagnostic tasks are assigned to each computing server based on the aggregated information and the preset diagnostic priority between computing server stations.

[0056] It is easy to understand that because the method in Example 4 can rely on the newly established diagnostic data aggregation service module 203 to monitor and aggregate the link status information of each computing server, there is no need to establish communication links between computing servers, and there is no need to synchronize any information between computing servers, thereby achieving dynamic allocation of switch diagnostic tasks. Compared with the method in Example 2, the implementation logic is simpler and can effectively reduce the amount of computation, helping to further improve diagnostic efficiency and real-time performance, thereby further enhancing system reliability. Based on this, those skilled in the art can implement the various steps of the method in Example 4 based on the implementation principles of the method in Example 2, and therefore will not be repeated here.

[0057] Based on the above embodiment, the present invention further provides an electronic device, whose principle block diagram can be as follows: Figure 6As shown. This electronic device can be used to execute the switch diagnostic method based on the DCS system provided in the above embodiments. For the sake of brevity, it will not be described in detail here. The electronic device includes: a processor, the processor is coupled to a memory, the memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions stored in the memory, so that the method in the above method embodiment is executed.

[0058] The present invention also provides a computer-readable storage medium storing computer instructions for implementing the method in the above method embodiment.

[0059] For example, when the computer program is executed by a computer, the computer can implement the method in the above method embodiment.

[0060] An embodiment of the present application further provides a computer program product comprising instructions, which, when executed by a computer, enables the computer to implement the method in the above method embodiment.

[0061] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0062] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0063] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0064] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0065] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0066] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

Claims

1. A switch diagnosis method based on a DCS system, characterized in that: The DCS system includes a local area network subsystem and a computing server subsystem. The local area network subsystem includes several local area networks each equipped with a switch. The computing server subsystem includes several computing server stations each equipped with a switch. The method is executed by the computing server subsystem and mainly includes: Collect link status information between each computing server station and between each computing server station and each switch; Determining the diagnostic tasks of each computing server station based on a preset diagnostic allocation rule and the link status information; the preset diagnostic allocation rule represents a rule for allocating diagnostic tasks based on diagnostic priorities and synchronization of link status information between computing server stations; In response to the system resource data of the switches in real time operation included in the diagnostic tasks of the computing server stations, a diagnostic result of each switch is determined.

2. The switch diagnosis method based on the DCS system according to claim 1, characterized in that: The collecting of link status information between computing servers and between computing servers and switches includes: Collect the connection status information between each computing server and each switch, as well as the synchronization status information between computing servers; Based on the connection status information and synchronization status information corresponding to each computing server, the link status information between each computing server and each switch is determined.

3. The switch diagnosis method based on the DCS system according to claim 1, characterized in that: The step of determining the diagnostic task of each computing server station based on the preset diagnostic allocation rule and the link status information includes: Determining a target computing server station that is normally connected to at least one switch based on link status information of each computing server station; The station number of each target computing server station is collected, and the diagnostic task of each target computing server station is determined based on the preset diagnostic allocation rule and the station number.

4. The switch diagnosis method based on the DCS system according to claim 3, characterized in that: The step of determining the diagnostic task of each computing server station based on the preset diagnostic allocation rule and the station number includes: Determine the diagnostic priority of each target computing server station based on the preset diagnostic allocation rules and station number; If there is at least one target computing server station that is properly connected to all switches, the diagnostic tasks of all switches are assigned to the target computing server station with the highest diagnostic priority; If each target computing server station is only properly connected to some switches, and each switch is properly connected to at least one target computing server station, then the diagnostic task of each switch will be assigned only to the target computing server station with the highest diagnostic priority in descending order of diagnostic priority.

5. The switch diagnosis method based on the DCS system according to claim 3, characterized in that: The step of determining the diagnostic task of each computing server station based on the preset diagnostic allocation rule and the station number includes: If there is a switch that cannot be properly connected to any computing server station, and the link status information between the computing servers is synchronized normally, the connection failure information of the corresponding switch is output through the computing server station with the highest diagnosis priority.

6. The switch diagnosis method based on the DCS system according to claim 1, characterized in that: The step of determining the diagnosis result of each switch in response to the system resource data of the switch in real time operation included in the diagnosis task of each computing server station is collected, including: Determining an alarm type in response to system resource data of the switch in real-time operation included in the diagnostic tasks collected from each computing server station; Based on the preset alarm thresholds of several alarm levels corresponding to each alarm type and the system resource data, the diagnosis result of each switch is determined.

7. The switch diagnosis method based on the DCS system according to claim 1, characterized in that: In response to collecting the link status information between each computing server station and each switch, the method further includes: Based on the link status information, a computing server station that cannot be normally connected to any switch is determined, corresponding offline fault information is collected, and the offline fault information is pushed to the DCS system.

8. The switch diagnosis method based on the DCS system according to claim 1, characterized in that: The DCS system further includes an operator station and a history station; the switch diagnostic method further includes: Utilizing the operator station to receive diagnostic result information of each switch, and regulating the local area network subsystem and the computing server subsystem according to the diagnostic result of each switch; The history station is used to store all diagnostic result information received by the operator station within a preset time period.

9. A switch diagnosis method based on a DCS system, characterized in that: The DCS system includes a local area network subsystem, a computing server subsystem, and a diagnostic data aggregation service module. The local area network subsystem includes several local area networks each equipped with a switch. The computing server subsystem includes several computing server stations respectively deployed in all local area networks. The method is executed by the diagnostic data aggregation service module and mainly includes: Collect link status information between each computing server station and between each computing server station and each switch; Determining a diagnostic task for each computing server station based on a preset diagnostic priority between the computing server stations and the link status information; In response to the system resource data of the switches in real time operation included in the diagnostic tasks of the computing server stations, a diagnostic result of each switch is determined.

10. A DCS system, characterized in that: The DCS system includes a local area network subsystem and a computing server subsystem; The local area network subsystem includes several local area networks, each of which is equipped with a switch; The computing server subsystem includes several computing server stations, each of which is deployed in all local area networks and collects link status information between each computing server station and each switch; Based on preset diagnostic allocation rules and the link status information, the diagnostic tasks of each computing server station are determined; the preset diagnostic allocation rules represent rules for allocating diagnostic tasks based on diagnostic priorities between computing server stations; and in response to the real-time system resource data of the switches included in the diagnostic tasks collected from each computing server station, the diagnostic results of each switch are determined.

11. A DCS system, characterized in that: The DCS system includes a local area network subsystem, a computing server subsystem and a diagnostic data aggregation service module; The local area network subsystem includes several local area networks, each of which is equipped with a switch; The computing server subsystem includes several computing server stations, each of which is deployed in all local area networks; The diagnostic data aggregation service module responds to the collected link status information between each computing server station and each switch; Based on the preset diagnostic priority between the computing server stations and the link status information, the diagnostic task of each computing server station is determined; in response to the system resource data of the switch during real-time operation included in the diagnostic task of each computing server station, the diagnostic result of each switch is determined.

12. An electronic device, characterized in that: include: a memory for storing executable instructions; A processor is configured to call and run the executable instructions in the memory to execute the steps of the DCS system-based switch diagnosis method according to any one of claims 1 to 9.

13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores program instructions, and when the program instructions are executed by a processor, the steps of the switch diagnosis method based on the DCS system according to any one of claims 1 to 9 are implemented.