Distributed control system, switch ring network monitoring method, device and storage medium
Through the exchange of data packets between the monitoring node and the monitored node in the distributed control system, communication link abnormalities are determined, which solves the problem in the existing technology that it is difficult to detect abnormality in the switch cascade link in time, and improves system security and analysis. efficiency.
Patent Information
- Application Number
- CN202410946564.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-15
AI Technical Summary
The existing distributed control system is difficult to detect and handle in time when packet loss or communication abnormalities occur in the switch cascade link, resulting in network hidden dangers that cannot be discovered and handled in a timely manner, and due to the dual-network redundant architecture, the abnormal situation may disappear. Recurrence increases the difficulty of subsequent analysis.
By sending data packets according to a preset cycle between the monitoring node and the monitored node, the response time and the standard communication time are judged to determine whether the communication link is abnormal, and when the number of exceptions exceeds the threshold, the link abnormality is confirmed and abnormal information is sent to the diagnosis module, combined with its own monitoring records for processing.
It realizes the timely discovery of communication link abnormalities in the distributed control system, improves system security, ensures accurate assessment and analysis of network status, and reduces the difficulty of reproducing abnormal situations.
Smart Images

Figure CN118483976B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of instrumentation and control systems, and in particular to a distributed control system, a switch ring network monitoring method, a device and a storage medium. Background Art
[0002] At present, the Distributed Control System (DCS) has become the main means of operation and management of nuclear power plant units. The system can ensure the safe and reliable operation of nuclear power units. As an important component of the DCS system, the communication network realizes the real-time data transmission and equipment control functions in the DCS system. Therefore, a stable and reliable communication network is one of the key factors to ensure the safe, stable and efficient operation of nuclear power plants. The DCS system communication network of nuclear power plants mostly adopts a dual-network redundant architecture design, and realizes the network connection of field controllers, servers, operator stations and other nodes in the DCS system through industrial Ethernet and industrial switches. The distributed control system diagnostic service module (that is, the DCS system diagnostic server module) collects the status information of field controllers, servers and other nodes to determine whether their network status is normal or faulty, and reports it to the server to generate corresponding network alarm information. A DCS system with a two-layer network communication architecture is shown in the attached figure. Figure 1 As shown in the figure. Since there are many communication nodes in the DCS system, multiple industrial switches need to be cascaded. Therefore, the switch adopts a ring network topology and relies on the spanning tree protocol to achieve the logical disconnection of the ring network. When a fault point appears in the switch ring network cascade port, the spanning tree protocol reconnects the logical breakpoint to ensure the availability of the communication network. The switch ring network structure and the spanning tree protocol working mechanism are shown in the attached figure. Figure 2A , 2B shown.
[0003] In view of the above switch ring network structure and spanning tree protocol mechanism, if the switch cascade link has communication anomalies such as packet loss and communication interruption, the spanning tree protocol can still maintain the communication status of the ring network, and the DCS system diagnostic module can still receive status information from nodes such as the field controller. It is difficult to report the corresponding diagnostic alarm information for the abnormal communication of the switch cascade link, resulting in the failure to timely discover and deal with the hidden dangers of the field network. Secondly, for a certain port or node network card on site, there may be abnormal situations such as packet loss and packet content errors. Since the DCS system adopts a dual-network redundant architecture, it will avoid affecting the normal data communication of the DCS system through the network switching mechanism. However, after the field controller and server are restarted, the abnormal situation may disappear and cannot be reproduced, which increases the difficulty of subsequent analysis of the corresponding problems. Furthermore, the DCS system of the nuclear power plant determines the on-off status of its node link by sending and receiving data packets through the application program. However, due to the cycle or timing of the application program processing tasks, it is impossible to accurately estimate the time spent on data packet transmission in the network, and it is impossible to effectively quantify and evaluate the communication network status. Summary of the invention
[0004] The embodiments of the present application provide a distributed control system, a switch ring network monitoring method, a device and a storage medium, which can promptly detect communication link anomalies of monitored nodes in the distributed control system, thereby improving the security of the distributed control system.
[0005] The embodiment of the present application provides a distributed control system, the distributed control system comprising a plurality of nodes and a switch ring network connecting the plurality of nodes, the nodes comprising a monitoring node and a monitored node, the monitoring node being configured to send a data packet to each monitored node respectively according to a preset period, and determining whether a communication link between each monitored node and a directly connected switch in the current period may be abnormal according to the response time of each monitored node to the data packet in the current period and the standard communication time of each monitored node in the current period; for each monitored node whose communication link may be abnormal, when it is determined that the number of times the communication link may be abnormal exceeds a first preset threshold and the communication links between other monitored nodes directly connected to the switch and the switch are not abnormal, determining that the communication link between the monitored node and the switch is abnormal;
[0006] The standard communication duration of each monitored node in the current cycle is determined according to the preset standard communication duration of each controlled monitoring node and the response duration of each monitored node in at least one cycle before the current cycle.
[0007] In an exemplary embodiment, the monitoring node is further configured to determine that the cascade link between the switch and the monitoring node may be abnormal when the number of times the communication link between the monitored node and the directly connected switch may be abnormal exceeds a first preset threshold and the communication links between other monitored nodes directly connected to the switch and the switch are all abnormal;
[0008] When the cascade link between the switch and the monitoring node may be abnormal and the number of times that the standard communication duration of the switch downstream of the switch is outside the preset normal range exceeds a second preset threshold, it is determined that the cascade link between the switch and the monitoring node is abnormal; wherein the standard communication duration of each switch is determined according to the standard communication duration of the current cycle of all monitored nodes directly connected to each switch.
[0009] In an exemplary embodiment, the monitoring node is further configured to redetermine the preset standard communication duration of each monitored node after determining that the cascade link between the switch and the monitoring node is abnormal; and use the redetermined preset standard communication duration of each monitored node to update the preset standard communication duration of each monitored node.
[0010] In an exemplary embodiment, the distributed control system further comprises a distributed control system diagnostic module;
[0011] The monitoring node is further configured to send information about abnormalities in the communication link of the monitored node and abnormalities in the cascade link between the switch and the monitoring node to a diagnosis module of the distributed control system;
[0012] Among them, the distributed control system diagnostic module is configured to determine the network status of the switch ring network between end-to-end; the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch is used for the distributed control system diagnostic module to process the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch in combination with its own monitoring records.
[0013] The present application embodiment provides a switch ring network monitoring method, which is applied to a monitoring node of a distributed control system in any of the above embodiments, and the method includes:
[0014] Sending data packets to each monitored node according to a preset period, determining whether the communication link between each monitored node and the directly connected switch in the current period may be abnormal according to the response time of each monitored node to the data packet in the current period and the standard communication time of each monitored node in the current period; for each monitored node whose communication link may be abnormal, determining that the communication link between the monitored node and the switch is abnormal when the number of times the communication link may be abnormal exceeds a first preset threshold and the communication links between other monitored nodes directly connected to the switch and the switch are not abnormal;
[0015] The standard communication duration of each monitored node in the current cycle is determined according to the preset standard communication duration of each controlled monitoring node and the response duration of each monitored node in at least one cycle before the current cycle.
[0016] In an exemplary embodiment, the method further includes:
[0017] Determining that the cascade link between the switch and the monitoring node may be abnormal when the number of times that the communication link between the monitored node and the directly connected switch may be abnormal exceeds a first preset threshold and the communication links between other monitored nodes directly connected to the switch and the switch are all abnormal;
[0018] When the cascade link between the switch and the monitoring node may be abnormal and the number of times that the standard communication duration of the switch downstream of the switch is outside the preset normal range exceeds a second preset threshold, it is determined that the cascade link between the switch and the monitoring node is abnormal; wherein the standard communication duration of each switch is determined according to the standard communication duration of the current cycle of all monitored nodes directly connected to each switch.
[0019] In an exemplary embodiment, the method further includes:
[0020] After determining that the cascade link between the switch and the monitoring node is abnormal, re-determine the preset standard communication duration of each monitored node; and use the re-determined preset standard communication duration of each monitored node to update the preset standard communication duration of each monitored node.
[0021] In an exemplary embodiment, the distributed control system further comprises a distributed control system diagnostic module;
[0022] The method further comprises: sending information about abnormality of the communication link of the monitored node and abnormality of the cascade link between the switch and the monitoring node to a diagnosis module of the distributed control system;
[0023] Among them, the distributed control system diagnostic module is configured to determine the network status of the switch ring network between end-to-end; the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch is used for the distributed control system diagnostic module to process the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch in combination with its own monitoring records.
[0024] In an exemplary embodiment, the method further includes:
[0025] The downstream switch of the switch is determined as follows:
[0026] Determine the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle;
[0027] The switch downstream of the switch is determined according to the data flow direction of the current cycle.
[0028] In an exemplary embodiment, determining the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle includes:
[0029] Determine the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle, the switch where the monitoring node is located, the position of the switch where the monitoring node is located in the switch ring network and the data flow direction, and the relationship between the position of the switch where the monitoring node is located in the switch ring network and the standard communication duration;
[0030] The switch where the monitoring node is located and the position of the switch where the monitoring node is located in the switch ring network are determined according to the topological structure information of the switch ring network and the connection relationship between the multiple nodes and the switch ring network.
[0031] In an exemplary embodiment, the preset standard communication duration of each monitored node is determined as follows:
[0032] Before sending a data packet to each monitored node according to a preset period, a data packet is sent to each monitored node at least once, and a preset standard communication duration of each monitored node is determined according to the response duration of each monitored node to the data packet each time.
[0033] The embodiment of the present application also provides a switch ring network monitoring device, including a memory and a processor.
[0034] The memory is used to store a program for monitoring a switch ring network;
[0035] The processor is used to read the program for executing the switch ring network monitoring and execute the method described in any one of the above embodiments.
[0036] An embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to enable the computer to execute the method described in any of the above embodiments.
[0037] The distributed control system, switch ring network monitoring method, device and storage medium of the embodiments of the present application can timely detect abnormalities in the communication link between the monitored node in the distributed control system and the directly connected switch, thereby improving the security of the distributed control system. In some other embodiments, abnormalities in the cascade link between the monitoring node and the switch in the distributed control system can also be timely detected.
[0038] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0040] Figure 1 It is a structural schematic diagram of a distributed control system of the prior art;
[0041] Figure 2A One of the schematic diagrams of the switch ring network structure and spanning tree protocol working mechanism in the prior art;
[0042] Figure 2B The second schematic diagram of the switch ring network structure and spanning tree protocol working mechanism in the prior art;
[0043] Figure 3 A schematic diagram of a distributed control system according to an embodiment of the present application;
[0044] Figure 4 A schematic diagram of a switch ring network monitoring method according to an embodiment of the present application;
[0045] Figure 5A This is one of the schematic diagrams of the switch ring network structure and the spanning tree protocol working mechanism of the embodiment of the present application;
[0046] Figure 5B This is the second schematic diagram of the switch ring network structure and spanning tree protocol working mechanism of the embodiment of the present application. DETAILED DESCRIPTION
[0047] The present disclosure describes multiple embodiments, but the description is exemplary rather than restrictive, and it is apparent to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present disclosure. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.
[0048] The present disclosure includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features, and elements disclosed in the present disclosure may also be combined with any conventional features or elements to form a unique invention scheme defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in the present disclosure may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other limitations. In addition, various modifications and changes may be made within the scope of protection of the attached claims.
[0049] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps in the specific order described. As will be appreciated by those of ordinary skill in the art, other orders of steps are also possible. Therefore, the specific order of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps performed in the order written, and those skilled in the art can easily understand that these orders can be changed and still remain within the spirit and scope of the disclosed embodiments.
[0050] The ordinal numbers such as "first", "second", and "third" in this specification are provided to avoid confusion of constituent elements, and are not intended to limit the quantity. The "plurality" in this disclosure means two or more.
[0051] At present, the diagnosis module of the distributed control system (i.e., the diagnosis module of the DCS system) collects the status information of nodes such as field controllers and servers to determine whether the network status is normal or faulty, and reports it to the server to generate corresponding network alarm information. The diagnosis module of the distributed control system can diagnose the abnormalities including whether the node program is normal, whether the node network is normal, whether the CPU load is normal, whether the memory load is normal, whether the network load is normal, etc. For example, for machine A of the 10# control station, the diagnosis module of the distributed control system can diagnose: whether the program of machine A of the 10# control station is working normally, whether machine A is in the master state or the slave state, whether the CPU load is normal, whether the memory load is normal, whether the network load is normal, whether the SNET A network and / or SNETB network between the data communication server and the 10# control station are normal, etc. The SNET A network and / or SNETB network between the data communication server (equivalent to the monitoring node) and the 10# control station (node) here belong to the end-to-end communication link. When there is an abnormality in the end-to-end communication link, the current diagnosis module of the distributed control system cannot further determine which part of the end-to-end communication link has an abnormality.
[0052] To this end, the present application proposes a distributed control system, a switch ring network monitoring method, a device and a storage medium, which can determine whether the communication link of the monitored node in the end-to-end communication link is abnormal, thereby improving the security of the distributed control system.
[0053] Figure 3 A schematic diagram of a distributed control system according to an embodiment of the present application is shown in FIG. Figure 3 As shown, the distributed control system includes nodes 1 to n and a switch ring network connecting multiple nodes, wherein the nodes 1 to n include monitoring nodes and monitored nodes.
[0054] The monitoring node is configured to send data packets to each monitored node according to a preset period, and determine whether the communication link between each monitored node and the directly connected switch in the current period may be abnormal according to the response time of each monitored node to the data packet in the current period and the standard communication time of each monitored node in the current period; for each monitored node whose communication link may be abnormal, when it is determined that the number of times the communication link may be abnormal exceeds a first preset threshold and the communication links between other monitored nodes directly connected to the switch and the switch are not abnormal, it is determined that the communication link between the monitored node and the switch is abnormal;
[0055] The standard communication duration of each monitored node in the current cycle is determined according to the preset standard communication duration of each controlled monitoring node and the response duration of each monitored node in at least one cycle before the current cycle.
[0056] The distributed control system described in the embodiment of the present application sends a data packet to each monitored node according to a preset period, and determines whether the communication link of each monitored node in the current period may be abnormal according to the response time of each monitored node to the data packet in the current period and the standard communication time of each monitored node in the current period; when it is determined that the number of times that the communication link of a monitored node directly connected to a switch in the switch ring network may be abnormal exceeds a first preset threshold and the communication links of other monitored nodes directly connected to the switch are not abnormal, it is determined that the communication link of the monitored node is abnormal; thereby, the abnormality of the communication link between the monitored node in the distributed control system and the directly connected switch can be discovered in time, thereby improving the security of the distributed control system.
[0057] Exemplarily, determining whether the communication link of each monitored node in the current period may be abnormal according to the response duration of each monitored node in the current period to the data packet and the standard communication duration of each monitored node in the current period may include:
[0058] When the response time of each monitored node to the data packet in the current cycle is longer than the standard communication time of each monitored node in the current cycle, it is determined that the communication link between each monitored node in the current cycle and the directly connected switch may be abnormal.
[0059] Exemplarily, the monitoring node may be a data communication server, and the monitored nodes may include a field control station, a computing server, an engineer station, an operator station, etc. In some other embodiments, the monitoring node may also be other nodes besides the data communication server, such as a field control station, or a computing server.
[0060] In an exemplary embodiment, the monitoring node can monitor the communication status of the monitored node communication link and the switch cascade link through the Internet Control Message Protocol (ICMP protocol for short). That is, the monitoring node can send a data packet to the monitored node through the ICMP protocol, and the monitored node automatically sends a response to the data packet back to the monitoring node.
[0061] Exemplarily, the preset standard communication duration of each monitored node is determined as follows:
[0062] Before sending a data packet to each monitored node according to a preset period, a data packet is sent to each monitored node at least once, and a preset standard communication duration of each monitored node is determined according to the response duration of each monitored node to the data packet each time.
[0063] Exemplarily, determining the preset standard communication duration of each monitored node based on the response duration of each monitored node to the data packet each time may include: taking the average of the response durations of each monitored node to the corresponding data packet for multiple consecutive times as the preset standard communication duration of each monitored node. For example, before sending a data packet to each monitored node according to a preset period, three data packets are sent to each monitored node respectively, and for any monitored node, the response duration to each sent data packet can be recorded, and the average of the three response durations is taken as the preset standard communication duration of the monitoring node.
[0064] In an exemplary embodiment, the monitoring node is further configured to determine that the cascade link between the switch and the monitoring node may be abnormal when it is determined that the number of times that a communication link of a monitored node directly connected to a switch in the switch ring network may be abnormal exceeds a first preset threshold and the communication links of other monitored nodes directly connected to the switch are all abnormal;
[0065] When the cascade link between the switch and the monitoring node may be abnormal and the number of times that the standard communication duration of the switch downstream of the switch is outside the preset normal range exceeds a second preset threshold, it is determined that the cascade link between the switch and the monitoring node is abnormal; wherein the standard communication duration of each switch is determined according to the standard communication duration of the current cycle of all monitored nodes directly connected to the switch.
[0066] For example, Figure 2A As shown, the switches upstream of the switch SWC may include the switch SWA, the switch SWB, and the switch SWC, and the switches downstream of the switch SWC may include the switch SWD.
[0067] Exemplarily, the first preset threshold value may be determined according to actual needs. The second preset threshold value may be determined according to actual needs.
[0068] In an exemplary embodiment, the downstream switch of the switch is determined as follows:
[0069] Determine the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle;
[0070] The switch downstream of the switch is determined according to the data flow direction of the current cycle.
[0071] In an exemplary embodiment, determining the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle includes:
[0072] Determine the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle, the switch where the monitoring node is located, the position of the switch where the monitoring node is located in the switch ring network and the data flow direction, and the relationship between the position of the switch where the monitoring node is located in the switch ring network and the standard communication duration;
[0073] The switch where the monitoring node is located and the position of the switch where the monitoring node is located in the switch ring network are determined according to the topological structure information of the switch ring network and the connection relationship between the multiple nodes and the switch ring network.
[0074] Exemplarily, the topology information of the switch ring network and the connection relationship between the multiple nodes and the switch ring network can be sent from the engineer station in the distributed control system to the required nodes, for example, to the monitoring node, and for example, to the node where the distributed control system diagnostic module is located.
[0075] Exemplarily, the relationship between the data flow direction, the position of the switch where the monitoring node is located in the switch ring network and the standard communication duration can be reflected in that the closer the switches cascaded along the data flow direction are to the switch where the monitoring node is located, the shorter the standard communication duration.
[0076] In an exemplary embodiment, the monitoring node is further configured to redetermine the preset standard communication duration of each monitored node after determining that the cascade link between the switch and the monitoring node is abnormal; and use the redetermined preset standard communication duration of each monitored node to update the preset standard communication duration of each monitored node.
[0077] Exemplarily, the preset standard communication duration of each monitored node can be re-determined by referring to the aforementioned method for determining the preset standard communication duration, for example, by sending a data packet to each monitored node at least once, and re-determining the duration according to the response duration of each monitored node to the data packet each time.
[0078] Generally, when the cascade link between the switch and the monitoring node is abnormal, the data flow direction will change, and the logical breakpoint of the switch ring network will also change. Therefore, the standard communication duration of each switch can be re-determined by re-determining the preset standard communication duration, and the data flow direction and logical breakpoint can be re-determined according to the standard communication duration of each switch. For example, the logical breakpoint (for example, Figure 2A There is a logical breakpoint between switch SWA and switch SWD. ) can be determined by the data flow direction and the network topology of the switch ring network.
[0079] In an exemplary embodiment, the distributed control system further comprises a distributed control system diagnostic module;
[0080] The monitoring node is further configured to send information about abnormalities in the communication link of the monitored node and abnormalities in the cascade link between the switch and the monitoring node to a diagnosis module of the distributed control system;
[0081] Among them, the distributed control system diagnostic module is configured to determine the network status of the switch ring network between end-to-end; the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch is used for the distributed control system diagnostic module to process the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch in combination with its own monitoring records.
[0082] Exemplarily, the distributed control system diagnostic module combines its own monitoring records to process the information of abnormal communication links of monitored nodes and abnormal cascade links of switches, which may include: no longer issuing alarms for abnormalities that have already been alarmed, only recording, and issuing alarms for abnormalities that have not been alarmed.
[0083] Figure 4 Schematic diagram of a switch ring network monitoring method according to an embodiment of the present application. The method is applied to a monitoring node and includes steps 41 to 43:
[0084] Step 41, sending data packets to each monitored node according to a preset period;
[0085] Step 42, sending data packets to each monitored node according to a preset period, and determining whether the communication link between each monitored node and the directly connected switch in the current period may be abnormal according to the response time of each monitored node to the data packet in the current period and the standard communication time of each monitored node in the current period;
[0086] Step 43, for each monitored node whose communication link may be abnormal, when the number of times the communication link is determined to be abnormal exceeds a first preset threshold and the communication links between other monitored nodes directly connected to the switch and the switch are not abnormal, determine that the communication link between the monitored node and the switch is abnormal.
[0087] The standard communication duration of each monitored node in the current cycle is determined according to the preset standard communication duration of each controlled monitoring node and the response duration of each monitored node in at least one cycle before the current cycle.
[0088] The switch ring network monitoring method based on a distributed control system in the embodiment of the present application sends a data packet to each monitored node according to a preset period, and determines whether the communication link of each monitored node in the current period may be abnormal according to the response time of each monitored node to the data packet in the current period and the standard communication time of each monitored node in the current period; when it is determined that the number of times that the communication link of a monitored node directly connected to a switch in the switch ring network may be abnormal exceeds a first preset threshold and the communication links of other monitored nodes directly connected to the switch are not abnormal, it is determined that the communication link of the monitored node is abnormal, and the abnormality of the communication link between the monitored node in the distributed control system and the directly connected switch can be discovered in time, thereby improving the security of the distributed control system.
[0089] For example, the structure of the distributed control system can be as follows: Figure 1 As shown, it includes a first-layer subsystem and a second-layer subsystem. The first-layer subsystem may include at least a field control station; the second-layer subsystem may include at least an engineer station, a first computing server and a second computing server that are mutually active and standby, a first operator station, and a second operator station; the first-layer subsystem and the second-layer subsystem are connected through a first data communication server and a second data communication server, respectively. The first-layer subsystem is connected through a control network, and the second subsystem is connected through a management network. The control network may be a SNET (SNET: System Network) A ring network and / or a SNET B ring network, and the management network may be a MNET (MNET: Management Network) A ring network and / or a MNET B ring network.
[0090] Exemplarily, the first data communication server or the second data communication server can be used as a monitoring node, and the field control station, the engineer station, the first computing server, the second computing server, the first operator station, the second operator station, etc. can all be used as monitored nodes. The switch ring network can be a SNET A ring network, a MNET A ring network, a SNET B ring network, or a MNET B ring network.
[0091] In an exemplary embodiment, the monitoring node can monitor the communication status of the monitored node communication link and the switch cascade link through the Internet Control Message Protocol (ICMP protocol for short). That is, the monitoring node can send a data packet to the monitored node through the ICMP protocol, and the monitored node automatically sends a response to the data packet back to the monitoring node.
[0092] Exemplarily, the preset standard communication duration of each monitored node is determined as follows:
[0093] Before sending a data packet to each monitored node according to a preset period, a data packet is sent to each monitored node at least once, and a preset standard communication duration of each monitored node is determined according to the response duration of each monitored node to the data packet each time.
[0094] In an exemplary embodiment, the method may further include: determining that a cascade link between the switch and the monitoring node may be abnormal if it is determined that the number of times a communication link of a monitored node directly connected to a switch in the switch ring network may be abnormal exceeds a first preset threshold and communication links of other monitored nodes directly connected to the switch are all abnormal;
[0095] When the cascade link between the switch and the monitoring node may be abnormal and the number of times that the standard communication duration of the switch downstream of the switch is outside the preset normal range exceeds a second preset threshold, it is determined that the cascade link between the switch and the monitoring node is abnormal; wherein the standard communication duration of each switch is determined according to the standard communication duration of the current cycle of all monitored nodes directly connected to the switch.
[0096] For example, Figure 2A As shown, the switches upstream of the switch SWC may include the switch SWA, the switch SWB, and the switch SWC, and the switches downstream of the switch SWC may include the switch SWD.
[0097] Exemplarily, the first preset threshold value may be determined according to actual needs. The second preset threshold value may be determined according to actual needs.
[0098] In an exemplary embodiment, the downstream switch of the switch is determined as follows:
[0099] Determine the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle;
[0100] The switch downstream of the switch is determined according to the data flow direction of the current cycle.
[0101] In an exemplary embodiment, determining the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle includes:
[0102] Determine the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle, the switch where the monitoring node is located, the position of the switch where the monitoring node is located in the switch ring network and the data flow direction, and the relationship between the position of the switch where the monitoring node is located in the switch ring network and the standard communication duration;
[0103] The switch where the monitoring node is located and the position of the switch where the monitoring node is located in the switch ring network are determined according to the topological structure information of the switch ring network and the connection relationship between the multiple nodes and the switch ring network.
[0104] Exemplarily, the topology information of the switch ring network and the connection relationship between the multiple nodes and the switch ring network can be sent from the engineer station in the distributed control system to the required nodes, for example, to the monitoring node, and for example, to the node where the distributed control system diagnostic module is located.
[0105] Exemplarily, the relationship between the data flow direction, the position of the switch where the monitoring node is located in the switch ring network and the standard communication duration can be reflected in that the closer the switches cascaded along the data flow direction are to the switch where the monitoring node is located, the shorter the standard communication duration.
[0106] In an exemplary embodiment, the method further includes: after determining that the cascade link between the switch and the monitoring node is abnormal, redetermining the preset standard communication duration of each monitored node; and using the redetermined preset standard communication duration of each monitored node to update the preset standard communication duration of each monitored node.
[0107] Exemplarily, the preset standard communication duration of each monitored node can be re-determined by referring to the aforementioned method for determining the preset standard communication duration, for example, by sending a data packet to each monitored node at least once, and re-determining the duration according to the response duration of each monitored node to the data packet each time.
[0108] Generally, when the cascade link between the switch and the monitoring node is abnormal, the data flow direction will change, and the logical breakpoint of the switch ring network will also change. Therefore, the standard communication duration of each switch can be re-determined by re-determining the preset standard communication duration, and the data flow direction and logical breakpoint can be re-determined according to the standard communication duration of each switch. For example, the logical breakpoint (for example, Figure 2A There is a logical breakpoint between switch SWA and switch SWD. ) can be determined by the data flow direction and the network topology of the switch ring network.
[0109] In an exemplary embodiment, the distributed control system further comprises a distributed control system diagnostic module;
[0110] The method further comprises: sending information about abnormality of the communication link of the monitored node and abnormality of the cascade link between the switch and the monitoring node to a diagnosis module of the distributed control system;
[0111] Among them, the distributed control system diagnostic module is configured to determine the network status of the switch ring network between end-to-end; the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch is used for the distributed control system diagnostic module to process the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch in combination with its own monitoring records.
[0112] Exemplarily, the distributed control system diagnostic module combines its own monitoring records to process the information of abnormal communication links of monitored nodes and abnormal cascade links of switches, which may include: no longer issuing alarms for abnormalities that have already been alarmed, only recording, and issuing alarms for abnormalities that have not been alarmed.
[0113] Exemplarily, the distributed control system diagnostic module may be located on the first computing server or on other servers.
[0114] Exemplarily, after receiving the node link abnormality information and switch ring network cascade link information sent by the monitoring node, the distributed control system diagnostic module determines whether a corresponding fault alarm has been generated. If a corresponding fault alarm has been generated, the node link abnormality or the switch ring network cascade link information is recorded. If no corresponding fault alarm has been generated, a fault alarm can be generated and sent to the operator station.
[0115] In some exemplary embodiments, the above method may further include calculating a communication success rate.
[0116] The switch ring network monitoring method of the embodiment of the present application can be implemented using the ICMP protocol, which is independent of the DCS system application and communication protocol, and is combined with the DCS system diagnostic mechanism, and does not affect the normal operation of the DCS system. The ICMP protocol can use MTU (Maximum Transmission Unit) length data packets to test the network communication status, which is closer to the DCS system data packet communication status. The embodiment of the present application records the on-site network communication status in real time through a quantitative analysis mechanism, which is convenient for subsequent problem discovery and can accumulate data for future DCS system predictive maintenance. The switch ring network monitoring method of the embodiment of the present application can also autonomously determine the direction of ring network data flow based on the spanning tree protocol and monitor the status of the switch cascade link. Without the need for switch log information, the switch port and the switch cascade port communication link can be warned, which is convenient for timely discovery of network risks on site.
[0117] The switch ring network monitoring method described in the embodiment of the present application is not only applicable to distributed control systems, but can also be applied to other systems including similar switch ring networks.
[0118] Exemplarily, a distributed control system provided by an embodiment of the present application may include a first layer subsystem and a second layer subsystem, wherein the first layer subsystem at least includes a field control station connected through a first switch ring network, and the second layer subsystem at least includes an engineer station, a first computing server and a second computing server that are mutually primary and standby, a first operator station, and a second operator station connected through a second switch ring network, and the first layer subsystem and the second layer subsystem are connected through a first data communication server and a second data communication server, respectively;
[0119] The first data communication server and the second data communication server may serve as monitoring nodes, and the other nodes may serve as monitored nodes.
[0120] For example, the switch ring network in the above distributed control system can be as follows: Figure 5A As shown, Figure 5A The switch ring network includes switch SWA to switch SWF, node 1 to node 11, and ports P1 to P17. The topology of the switch ring network includes port P1 of switch SWA connected to port P2 of switch SWB, port P3 of switch SWB connected to port P4 of switch SWC, port P5 of switch SWC connected to port P6 of switch SWD, port P7 of switch SWD connected to port P8 of switch SWE, port P9 of switch SWE connected to port P10 of switch SWF, and there is a "logical" breakpoint between port P11 of switch SWF and port P12 of switch SWA. The connection relationship between the switch and the node includes: the switch SWA is connected to the first data communication server through the port P13, and the switch SWA is connected to the node 11 through a port; the switch SWB is connected to the node 1, the node 2, and the second data communication server through different ports; the switch SWC is connected to the node 3 and the node 4 through different ports; the switch SWD is connected to the node 5 through the port P14, and the switch SWD is connected to the node 6 through the port P15; the switch SWE is connected to the node 7 through the port P16, and the switch SWE is connected to the node 8 through the port P17; the switch SWF is connected to the node 9 through a port, and the switch SWF is connected to the node 10 through another port. Figure 5AIn the example, the first data communication server on the switch SWA is used as a monitoring node, and the other monitored nodes from node 1 to node 11 can be field control stations, or one or more of an engineer station, a first operator station, a second operator station, a first computing server, and a second computing server. The monitoring node obtains the switch ring network topology information according to the engineering configuration information sent by the engineer station, and sends messages to nodes 5 and 6 on the switch SWD and nodes 7 and 8 on the switch SWE using the ICMP protocol, respectively, so as to obtain the communication time T5 with node 5 and the communication time T6 with node 6; the communication time T7 with node 7 and the communication time T8 with node 8. According to the changes in the communication time of other nodes on the switch SWD, such as T5 and T6, it can be judged whether the communication link between each node on the switch SWD and the first data communication service is abnormal. If T5 changes abnormally, while the time of other nodes on the switch SWD remains unchanged, it means that the communication link between port P14 of the switch SWD and node 5 is abnormal.
[0121] In case of network failure, Figure 5A The switch ring network can be Figure 5B As shown. Figure 5B In the example, if the cascade link between switch SWD and switch SWE is abnormally interrupted and the spanning tree protocol causes the ring network communication path to change, the communication time of other nodes on switch SWD, such as node 5 (communication time T5) and node 6, will not change. However, the communication time of other nodes on switch SWE, such as node 7 (communication time T7) and node 8, will change. It can be determined whether the communication link between port P7 of switch SWD and port P8 of switch SWE is abnormal.
[0122] The embodiment of the present application also provides a switch ring network monitoring device, including a memory and a processor, characterized in that:
[0123] The memory is used to store a program for monitoring a switch ring network;
[0124] The processor is used to read the program for executing the switch ring network monitoring and execute the method described in any one of the above embodiments.
[0125] An embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to enable the computer to execute the method described in any of the above embodiments.
[0126] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.
[0127] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.
[0128] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.
[0129] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As is known to those skilled in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0130] In addition, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include at least one of the features.
[0131] In the description of the present application, “plurality” means at least two, for example, two, three, etc., unless otherwise clearly and specifically defined.
[0132] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0133] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A distributed control system, characterized in that: The distributed control system includes a plurality of nodes and a switch ring network connecting the plurality of nodes, wherein the plurality of nodes include monitoring nodes and monitored nodes. The monitoring node is configured to send data packets to each monitored node according to a preset period, and determine whether the communication link between each monitored node and the directly connected switch in the current period may be abnormal according to the response time of each monitored node to the data packet in the current period and the standard communication time of each monitored node in the current period; for each monitored node whose communication link may be abnormal, when it is determined that the number of times the communication link may be abnormal exceeds a first preset threshold and the communication links between other monitored nodes directly connected to the switch and the switch are not abnormal, it is determined that the communication link between the monitored node and the switch is abnormal; The standard communication duration of each monitored node in the current cycle is determined according to the preset standard communication duration of each controlled monitoring node and the response duration of each monitored node in at least one cycle before the current cycle; The monitoring node is further configured to determine that the cascade link between the switch and the monitoring node may be abnormal when the number of times the communication link between the monitored node and the directly connected switch may be abnormal exceeds a first preset threshold and the communication links between other monitored nodes directly connected to the switch and the switch are all abnormal; When the cascade link between the switch and the monitoring node may be abnormal and the number of times that the standard communication duration of the switch downstream of the switch is outside the preset normal range exceeds a second preset threshold, it is determined that the cascade link between the switch and the monitoring node is abnormal; wherein the standard communication duration of each switch is determined according to the standard communication duration of the current cycle of all monitored nodes directly connected to each switch.
2. The distributed control system according to claim 1, characterized in that: The monitoring node is further configured to re-determine the preset standard communication duration of each monitored node after determining that the cascade link between the switch and the monitoring node is abnormal; The preset standard communication duration of each monitored node is updated using the re-determined preset standard communication duration of each monitored node.
3. The distributed control system according to claim 1, characterized in that: The distributed control system also includes a distributed control system diagnostic module; The monitoring node is further configured to send information about abnormalities in the communication link of the monitored node and abnormalities in the cascade link between the switch and the monitoring node to a diagnosis module of the distributed control system; Among them, the distributed control system diagnostic module is configured to determine the network status of the switch ring network between end-to-end; the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch is used for the distributed control system diagnostic module to process the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch in combination with its own monitoring records.
4. A switch ring network monitoring method, applied to a monitoring node of a distributed control system according to any one of claims 1 to 3, characterized in that: Sending data packets to each monitored node according to a preset period, determining whether the communication link between each monitored node and the directly connected switch in the current period may be abnormal according to the response time of each monitored node to the data packet in the current period and the standard communication time of each monitored node in the current period; for each monitored node whose communication link may be abnormal, determining that the communication link between the monitored node and the switch is abnormal when the number of times the communication link may be abnormal exceeds a first preset threshold and the communication links between other monitored nodes directly connected to the switch and the switch are not abnormal; The standard communication duration of each monitored node in the current cycle is determined according to the preset standard communication duration of each controlled monitoring node and the response duration of each monitored node in at least one cycle before the current cycle; Determining that the cascade link between the switch and the monitoring node may be abnormal when the number of times that the communication link between the monitored node and the directly connected switch may be abnormal exceeds a first preset threshold and the communication links between other monitored nodes directly connected to the switch and the switch are all abnormal; When the cascade link between the switch and the monitoring node may be abnormal and the number of times that the standard communication duration of the switch downstream of the switch is outside the preset normal range exceeds a second preset threshold, it is determined that the cascade link between the switch and the monitoring node is abnormal; wherein the standard communication duration of each switch is determined according to the standard communication duration of the current cycle of all monitored nodes directly connected to each switch.
5. The switch ring network monitoring method according to claim 4, characterized in that: Also includes: After determining that the cascade link between the switch and the monitoring node is abnormal, re-determining the preset standard communication duration of each monitored node; The preset standard communication duration of each monitored node is updated using the re-determined preset standard communication duration of each monitored node.
6. The switch ring network monitoring method according to claim 4, characterized in that: The distributed control system also includes a distributed control system diagnostic module; The method further comprises: sending information about abnormality of the communication link of the monitored node and abnormality of the cascade link between the switch and the monitoring node to a diagnosis module of the distributed control system; Among them, the distributed control system diagnostic module is configured to determine the network status of the switch ring network between end-to-end; the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch is used for the distributed control system diagnostic module to process the information on the abnormal communication link of the monitored node and the abnormal cascade link of the switch in combination with its own monitoring records.
7. The switch ring network monitoring method according to claim 5, characterized in that: The downstream switch of the switch is determined as follows: Determine the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle; The switch downstream of the switch is determined according to the data flow direction of the current cycle.
8. The switch ring network monitoring method according to claim 7, characterized in that: Determining the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle includes: Determine the data flow direction of the current cycle according to the standard communication duration of each switch in the current cycle, the switch where the monitoring node is located, the position of the switch where the monitoring node is located in the switch ring network and the data flow direction, and the relationship between the position of the switch where the monitoring node is located in the switch ring network and the standard communication duration; The switch where the monitoring node is located and the position of the switch where the monitoring node is located in the switch ring network are determined according to the topological structure information of the switch ring network and the connection relationship between the multiple nodes and the switch ring network.
9. The switch ring network monitoring method according to claim 4, characterized in that: The preset standard communication duration of each monitored node is determined as follows: Before sending a data packet to each monitored node according to a preset period, a data packet is sent to each monitored node at least once, and a preset standard communication duration of each monitored node is determined according to the response duration of each monitored node to the data packet each time.
10. A switch ring network monitoring device, comprising a memory and a processor, characterized in that: The memory is used to store a program for monitoring a switch ring network; The processor is used to read the program for executing the switch ring network monitoring and execute the method according to any one of claims 4 to 9.
11. A computer-readable storage medium storing computer-executable instructions, wherein: The computer executable instructions are used to cause the computer to execute the method according to any one of claims 4 to 9.
