A DCS network communication status analysis method, storage medium, device and system
By analyzing the response time and packet loss rate of data packets in the DCS network system, the problem of insufficient DCS network communication status assessment is solved, early detection and processing of device status is achieved, and system reliability is improved.
Patent Information
- Application Number
- CN202310668106.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-06
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2043-06-06
AI Technical Summary
The existing DCS network communication status analysis method cannot effectively evaluate equipment performance degradation, leading to the occurrence of nuclear power unit tripping and reactor tripping events.
By capturing data packets based on the COTP protocol in the DCS network system, parsing the PDU type, calculating the response time and packet loss rate, the overall communication status of the DCS network system is analyzed.
Discover abnormal or deteriorating equipment working conditions in advance, improve the overall reliability of the DCS system, and avoid network failures.
Smart Images

Figure CN116614410B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of nuclear power plant communication networks, and in particular to a DCS network communication status analysis method, storage medium, device and system. Background Art
[0002] DCS platforms, such as the T2000-DCS, are widely used in thermal and nuclear power plant instrumentation and control systems. This platform uses industrial Ethernet technology to integrate multiple access point (AP) controllers, including host computers and CPUs, into a unified distributed control system. Multiple APs communicate with each other using protocols such as COTP. When device performance deteriorates on the communication network, overall network failure can occur, which has already resulted in nuclear power unit trips and reactor failures. Therefore, assessing the status of the DCS communication network is crucial. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a DCS network communication status analysis method, storage medium, device and system.
[0004] The technical solution adopted by the present invention to solve the technical problem is: a DCS network communication status analysis method, comprising the following steps:
[0005] S10, capturing multiple data packets based on the COTP protocol during communication transmission between the network devices under test in the DCS network system;
[0006] S20, respectively parsing the data packets and analyzing the transmission status of the data packets whose PDU types are preset types;
[0007] S30: Calculate the overall network communication status of the DCS network system based on the transmission status of all data packets that meet the preset type.
[0008] Furthermore, in the DCS network communication status analysis method of the present invention, step S20 further includes:
[0009] S201, respectively parse the data packets and store relevant information of all data packets into a list; wherein the relevant information includes the original acquisition time of the data packet, PDU type, and data packet number;
[0010] S202, traversing each data packet in the list, and for each data packet, if the PDU type of the data packet is the first type, searching whether the PDU type of the data packet with an adjacent number to the data packet number is the second type;
[0011] S203: If yes, calculate the difference between the original acquisition time of the two adjacent data packets and use the difference as the sub-response time;
[0012] The step S30 further includes:
[0013] S301 : When the list is traversed, all the sub-response times are added together as the overall network response time of the DCS network system.
[0014] Furthermore, in the DCS network communication status analysis method of the present invention, after step S202, the method further includes:
[0015] S204: If the PDU type of the data packet is the first type, and the PDU type of the data packet with the adjacent number is not the second type, the number of packet losses increases by 1;
[0016] The step S30 further includes:
[0017] S302: When the list is traversed, the packet loss rate of the entire DCS network system is calculated according to the accumulated number of lost packets.
[0018] Furthermore, in the DCS network communication status analysis method of the present invention, when the first type is a DT type, the second type is an AK type; when the first type is an AK type, the second type is a DT type.
[0019] Furthermore, in the DCS network communication status analysis method of the present invention, step S10 further includes:
[0020] According to the packet capture instruction input by the user, data packets based on the COTP protocol in the communication transmission between the tested network devices of the DCS network system within a preset time period and / or a preset number are captured.
[0021] Furthermore, in the DCS network communication status analysis method of the present invention, step S10 further includes:
[0022] Synchronously acquire real-time data packets transmitted between the tested network devices of the DCS network system, and capture data packets based on the COTP protocol in a preset time period and / or a preset number of the real-time data packets according to the packet capture instruction input by the user.
[0023] In addition, the present invention further provides a computer-readable storage medium storing a computer program. The computer program is suitable for being loaded by a processor to execute the steps of the above-mentioned DCS network communication status analysis method.
[0024] In addition, the present invention also provides a DCS network communication status analysis device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the above-mentioned DCS network communication status analysis method by calling the computer program stored in the memory.
[0025] Furthermore, in the DCS network communication status analysis device of the present invention, the memory is further used to store the overall network response time and / or packet loss rate of the DCS network system;
[0026] The device further comprises:
[0027] A physical unit, configured to perform analog-to-digital conversion on the acquired real-time data packets and send the converted real-time data packets to the processor;
[0028] The interface unit is used to provide at least one of an interactive interface between the user and the device, display the current network communication status of the DCS network system, and query the historical network communication status of the DCS network system.
[0029] In addition, the present invention also provides a DCS network system, comprising a plurality of network devices under test, wherein the network devices under test communicate with each other, and the system further comprises the DCS network communication status analysis device as described above.
[0030] The DCS network communication status analysis method, storage medium, device, and system implemented in the present invention have the following beneficial effects: by analyzing the transmission status of data packets transmitted between the tested network devices, the overall communication status of the system is reflected, abnormal or deteriorated working status of devices in the DCS network system is discovered in advance, and targeted processing is performed, thereby helping to improve the overall reliability of the DCS system. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0032] Figure 1 This is a flowchart of an embodiment of a DCS network communication status analysis method of the present invention;
[0033] Figure 2 is a program flow chart of some embodiments of the DCS network communication status analysis method of the present invention;
[0034] Figure 3 is a program flow chart of some embodiments of the DCS network communication status analysis method of the present invention;
[0035] Figure 4 It is a structural diagram of an embodiment of a DCS network communication status analysis device of the present invention;
[0036] Figure 5 It is a structural diagram of an embodiment of a DCS network system of the present invention. DETAILED DESCRIPTION
[0037] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.
[0038] In the following description, specific details such as particular system structures and techniques are provided for purposes of illustration, not limitation, to facilitate a thorough understanding of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
[0039] In a preferred embodiment, reference Figure 1 The DCS network communication status analysis method of this embodiment includes the following steps:
[0040] S10. Capturing multiple COTP-based data packets transmitted between network devices under test in the DCS network system. Alternatively, based on a packet capture instruction input by a user, the COTP-based data packets transmitted between network devices under test in the DCS network system during a preset time period and / or a preset number of data packets can be captured. Specifically, before capturing the packets, the method further includes synchronously acquiring real-time data packets transmitted between network devices under test in the DCS network system. Subsequently, based on the packet capture instruction input by the user, the COTP-based data packets within the preset time period and / or a preset number of real-time data packets are captured.
[0041] S20: Parse the data packets separately and analyze the transmission status of the data packets whose PDU type is a preset type. Specifically, parse the acquired data packets according to the communication rules of the COTP protocol to obtain various information carried by the data packets, including the original acquisition time of the data packets, the PDU type, the data packet number, etc.
[0042] S30. Calculate the overall network communication status of the DCS network system based on the transmission status of all data packets that meet the preset types. It should be noted that the overall network communication status of the DCS network system can be reflected by the response time and / or number of packet losses of data packets exchanged between the tested network devices. In other words, a faster response time for data packet transmission based on the COPT protocol and / or a lower number of packet losses indicate a better overall network communication status, and vice versa.
[0043] In this embodiment, the overall communication status of the system is reflected by analyzing the transmission status of data packets transmitted between the tested network devices, so that abnormal or deteriorated working status of devices in the DCS network system can be discovered in advance and targeted processing can be performed, thereby helping to improve the overall reliability of the DCS system.
[0044] In some embodiments of the DCS network communication status analysis method, reference is made to Figure 2 , step S20 further includes:
[0045] S201: parse the data packets respectively and store the relevant information of all data packets into a list, wherein the relevant information includes the original acquisition time of the data packet, the PDU (ie, transmission protocol data unit) type, and the data packet number.
[0046] S202. Traverse each data packet in the list. For each data packet, if the PDU type of the data packet is the first type, search to see if the PDU type of the data packet adjacent to the data packet number is the second type. Specifically, when the first type is the DT (Data) type, the second type is the AK (Acknowledge) type. When the first type is the AK type, the second type is the DT type.
[0047] S203: If yes, calculate the difference between the original acquisition times of the two adjacent data packets, and use the difference as the sub-response time.
[0048] Step S30 further includes:
[0049] S301 : When the traversal of the list is completed, all sub-response times are added together as the overall network response time of the DCS network system.
[0050] Based on the above embodiments, Figure 3 , after step S202, further comprising:
[0051] S204: If the PDU type of the data packet is the first type, and the PDU type of the data packet with the adjacent number is not the second type, the number of packet losses increases by 1.
[0052] Step S30 further includes:
[0053] S302: When the traversal of the list is completed, the packet loss rate of the entire DCS network system is calculated according to the accumulated number of lost packets.
[0054] For example, if the data packet is a DT packet, the AK packets before and after the DT packet are searched, that is, a packet that satisfies DT_TPDU_NUMBER±1=AK_TPDU_NUMBER is searched. If a packet is found, the sub-response time is calculated and the process continues with the next packet. If not, the cumulative number of lost packets is increased by 1, and the process continues with the next packet until the entire list is exhausted. The overall response time of the entire system is then calculated based on the sub-response times, and the overall packet loss rate of the entire system is calculated based on the cumulative number of lost packets.
[0055] In this embodiment, by analyzing the response time and number of packet losses of data packets transmitted between the tested network devices to reflect the overall response time and packet loss rate of the system, abnormal or deteriorated working conditions of devices in the DCS network system can be discovered in advance and targeted processing can be performed, thereby helping to improve the overall reliability of the DCS system.
[0056] Preferably, the recorded sub-response time, number of packet losses, and analyzed overall system response time and packet loss rate are stored long-term in the device. By observing their historical trends, when abnormal data or rising trends appear, appropriate technical measures can be taken to identify the cause and restore the system communication status to its original state.
[0057] In another preferred embodiment, the computer-readable storage medium of this embodiment stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps of the above-mentioned DCS network communication status analysis method.
[0058] The computer-readable storage medium of the present invention can be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.
[0059] In another preferred embodiment, reference Figure 4 The DCS network communication status analysis device of this embodiment includes a memory and a processor. The memory stores a computer program, and the processor executes the steps of the DCS network communication status analysis method described above by calling the computer program stored in the memory. It should be noted that the memory is also used to store the overall network response time and / or packet loss rate of the DCS network system.
[0060] The processor of the present invention is used to provide computing and control capabilities to support the operation of the entire DCS network communication status analysis device. It should be understood that in the embodiments of the present application, the processor can be a central processing unit (CPU). The processor can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0061] Specifically, the processor captures multiple COTP-based data packets transmitted between the network devices under test in the DCS network system. Alternatively, the processor can capture a preset time period and / or a preset number of COTP-based data packets transmitted between the network devices under test in the DCS network system based on a packet capture instruction input by the user. The network device under test can be an AP (wireless access point, which can be a host, CPU, etc.) or a switch.
[0062] Alternatively, this device uses a network splitter (i.e., a TAP module) to synchronously capture real-time data packets transmitted between the network devices under test in the DCS network system. Its basic operating principle is to make a real-time copy of the data transmitted between the network devices under test and send it to a physical unit (PHY). The TAP module is then connected to the original network. Using simple splitter hardware, the TAP module parallel-inputs the data packet signals from the original network into the PHY chip. The PHY chip parses the signals and transmits them to a processor. Based on user-entered packet capture commands, the processor captures a preset time period and / or number of COTP-based packets from these real-time packets.
[0063] Preferably, the processor parses the data packets separately and analyzes the transmission status of data packets with a preset PDU type. Specifically, the acquired data packets are parsed according to the communication rules of the COTP protocol to obtain various information carried by the data packets, including the original acquisition time of the data packets, the PDU type, the data packet number, etc. Next, the overall network communication status of the DCS network system is calculated based on the transmission status of all data packets that meet the preset types. It should be noted that the overall network communication status of the DCS network system can be reflected by the response time and / or the number of packet losses of the data packets exchanged and transmitted between the various network devices under test. In other words, when the response time of the data packet transmission based on the COTP protocol is faster and / or the number of packet losses is smaller, the overall network communication status is better, and vice versa.
[0064] Specifically, the processor parses the data packets separately and stores the relevant information of all data packets in a list. The relevant information includes the original acquisition time of the data packet, the PDU (i.e., transmission protocol data unit) type, and the data packet number. Each data packet in the list is traversed, and for each data packet, if the PDU type of the data packet is the first type, the PDU type of the data packet adjacent to the data packet number is searched to see if it is the second type. Specifically, when the first type is the DT (i.e., Data) type, the second type is the AK (i.e., Acknowledge, data confirmation, confirmation of the DT TPDU) type. When the first type is the AK type, the second type is the DT type. If so, the difference in the original acquisition time between the two adjacent data packets is calculated and the difference is used as the sub-response time. When the traversal of the list is completed, all sub-response times are added together to form the overall network response time of the DCS network system. Alternatively, if the PDU type of the data packet is the first type and the PDU type of the data packet adjacent to the data packet number is not the second type, the number of packet losses is increased by 1. When the list is traversed, the packet loss rate of the entire network of the DCS network system is calculated based on the accumulated number of lost packets.
[0065] For example, when the data packet is a DT packet, the AK packets before and after the DT packet are searched, that is, the data packet that satisfies DT_TPDU_NUMBER±1=AK_TPDU_NUMBER is searched. If it can be found, the sub-response time is calculated and the traversal of the next data packet is continued. If it cannot be found, the cumulative number of packet losses is increased by 1, and the traversal of the next data packet is continued until the entire list is traversed. The overall response time of the entire system is calculated based on the sub-response time, and the overall packet loss rate of the entire system is calculated based on the cumulative number of packet losses. Generally speaking, an AK packet is a feedback packet sent to the sender after receiving a DT packet. The position of the AK packet corresponding to all general DT packets is after the DT packet. However, due to abnormal conditions, the AK packet may be before the DT packet. Searching the positions before and after the DT packet can avoid missing statistics due to such abnormal conditions, resulting in inaccurate response time or packet loss rate statistics.
[0066] In this embodiment, the device reflects the overall communication status of the system by analyzing the transmission status of data packets transmitted between the network devices under test, detects abnormal or deteriorating working conditions of devices in the DCS network system in advance, and performs targeted processing to help improve the overall reliability of the DCS system.
[0067] Preferably, the device further comprises a physical unit and an interface unit, and the physical unit performs analog-to-digital conversion on the acquired real-time data packets and sends the converted real-time data packets to the processor.
[0068] The interface unit's functions include providing an interface for users to interact with the device, displaying the current DCS network system's network communication status, querying the DCS network system's historical network communication status, and displaying data packet analysis results. The interface unit, which can be a touch screen, serves as an interactive interface that allows users to input relevant control commands, including packet capture, data export, and printing commands.
[0069] In this embodiment, recorded sub-response times, number of packet losses, and analyzed overall system response time and packet loss rate are stored long-term in the device. By observing their historical trends, when abnormal data or rising trends appear, appropriate technical measures can be taken to identify the cause and restore the system communication status to its original state.
[0070] In another preferred embodiment, reference Figure 5 The DCS network system of this embodiment includes a plurality of network devices under test, and the network devices under test communicate with each other. The system also includes the DCS network communication status analysis device as described above.
[0071] In this embodiment, by analyzing the response time and number of packet losses of data packets transmitted between the tested network devices to reflect the overall response time and packet loss rate of the system, abnormal or deteriorated working conditions of devices in the DCS network system can be discovered in advance and targeted processing can be performed, thereby improving the overall reliability of the DCS system.
[0072] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0073] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0074] It is understandable that the above embodiments only express the preferred implementation modes of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the patent scope of the present invention. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present invention, the above technical features can be freely combined, and several deformations and improvements can be made, all of which fall within the scope of protection of the present invention. Therefore, all equivalent changes and modifications made to the scope of the claims of the present invention should fall within the scope of coverage of the claims of the present invention.
Claims
1. A DCS network communication status analysis method, characterized in that: The following steps are involved: S10, capturing multiple data packets based on the COTP protocol during communication transmission between the network devices under test in the DCS network system; S20, respectively parsing the data packets and analyzing the transmission status of the data packets whose PDU types are preset types; S30, calculating the overall network communication status of the DCS network system based on the transmission status of all data packets that meet the preset type; The step S20 further includes: S201, respectively parse the data packets and store relevant information of all data packets into a list; wherein the relevant information includes the original acquisition time of the data packet, PDU type, and data packet number; S202, traversing each data packet in the list, and for each data packet, if the PDU type of the data packet is the first type, searching whether the PDU type of the data packet with an adjacent number to the data packet number is the second type; S203: If yes, calculate the difference between the original acquisition time of the two adjacent data packets and use the difference as the sub-response time; The step S30 further includes: S301, when the list is traversed, all the sub-response times are added together as the overall network response time of the DCS network system; After step S202, the method further includes: S204: If the PDU type of the data packet is the first type, and the PDU type of the data packet with the adjacent number is not the second type, the number of packet losses increases by 1; The step S30 further includes: S302: When the list is traversed, the packet loss rate of the entire DCS network system is calculated according to the accumulated number of lost packets.
2. The DCS network communication status analysis method according to claim 1, characterized in that: When the first type is a DT type, the second type is an AK type; when the first type is an AK type, the second type is a DT type.
3. The DCS network communication status analysis method according to claim 1, characterized in that: The step S10 further includes: According to the packet capture instruction input by the user, data packets based on the COTP protocol in the communication transmission between the tested network devices of the DCS network system within a preset time period and / or a preset number are captured.
4. The DCS network communication status analysis method according to claim 1, characterized in that: The step S10 further includes: Synchronously acquire real-time data packets transmitted between the tested network devices of the DCS network system, and capture data packets based on the COTP protocol in a preset time period and / or a preset number of the real-time data packets according to the packet capture instruction input by the user.
5. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps of the DCS network communication status analysis method according to any one of claims 1 to 4.
6. A DCS network communication status analysis device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the DCS network communication status analysis method according to any one of claims 1 to 4 by calling the computer program stored in the memory.
7. The DCS network communication status analysis device according to claim 6, characterized in that: The memory is further used to store the overall network response time and / or packet loss rate of the DCS network system; The device further comprises: A physical unit, configured to perform analog-to-digital conversion on the acquired real-time data packets and send the converted real-time data packets to the processor; The interface unit is used to display at least one of the current network communication status of the DCS network system and query the historical network communication status of the DCS network system.
8. A DCS network system, comprising a plurality of network devices under test, wherein communication transmission is performed between the network devices under test, characterized in that: The system further comprises the DCS network communication status analysis device according to any one of claims 6 to 7.
Citation Information
Patent Citations
Network quality measurement method and device thereof
CN108156056A
Business feature extraction method, service quality scheduling method, equipment and medium
CN115915290A