Data audit method, industrial control audit system, electronic equipment and storage medium

By monitoring the CPU temperature in real time and adjusting the audit level, the problem of reduced processing capacity and data loss caused by rising CPU temperature in the industrial control audit system is solved, achieving the effect of reducing the CPU temperature and maintaining data integrity without reducing the CPU frequency.

CN114116408BActive Publication Date: 2024-10-29ZHEJIANG GUOLI SECURITY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111458069.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-01
Publication Date
2024-10-29
Estimated Expiration
2041-12-01

AI Technical Summary

Technical Problem

Due to the fanless design of the industrial control audit system, the CPU temperature increases. When the CPU frequency is reduced to cool down, the processing capacity decreases, resulting in packet loss and key data loss.

Method used

By monitoring the CPU temperature in real time, when the temperature reaches the preset threshold, the audit level is adjusted to reduce the audit granularity of non-critical operations, reduce CPU consumption, avoid reducing the CPU frequency, and ensure data integrity.

Benefits of technology

Effectively reduce CPU temperature, avoid packet loss and key data loss, maintain system processing capabilities, and avoid performance degradation caused by frequency reduction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114116408B_ABST
    Figure CN114116408B_ABST
Patent Text Reader

Abstract

The present application provides a data audit method, an industrial control audit system, an electronic device and a storage medium. When it is monitored that the operating temperature of the current CPU rises to any temperature threshold among various temperature thresholds, and is not the minimum temperature threshold, a target audit level is determined from various audit levels, the current audit level is switched to the target audit level, and data audit is performed on each key operation and each non-key operation based on the audit information corresponding to the target audit level; when it is monitored that the operating temperature of the current CPU drops to any temperature threshold among various temperature thresholds set in advance, and is not the maximum temperature threshold, a target audit level is determined from various audit levels, and after the current audit level is switched to the target audit level, data audit is performed on each key operation and each non-key operation based on the audit information corresponding to the target audit level. The present invention can reduce the temperature of the CPU, avoid packet loss, and lose key audit data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial auditing, and more specifically, to a data auditing method, an industrial control auditing system, an electronic device and a storage medium. Background Art

[0002] Industrial control audit systems have high requirements for system stability and equipment protection level, that is, dust and moisture resistance, so industrial control audit systems generally adopt fanless design. However, fanless design will cause CPU cooling problems in industrial control audit systems, resulting in frequency reduction.

[0003] In the prior art, since the performance, power consumption and temperature rise of the CPU are related, the higher the performance, the greater the power consumption and temperature rise, and vice versa. Therefore, when the temperature of the CPU of the industrial control audit system rises, the power consumption of the CPU can be reduced by reducing the maximum frequency of the CPU, thereby achieving the effect of reducing the temperature. However, reducing the maximum frequency of the CPU will lead to a reduction in the rated processing capacity of the industrial control audit system, and the processing capacity of the CPU cannot meet the large traffic on site, resulting in packet loss, that is, loss of audit data. If the industrial control audit system loses the data of key instructions such as starting and stopping the controller, it will make the key data untraceable. Summary of the invention

[0004] In view of this, the present invention provides a data audit method, an industrial control audit system, an electronic device and a storage medium, so as to reduce the temperature of the CPU, avoid packet loss, and lose key audit data.

[0005] A first aspect of the present invention discloses a data audit method, which is applied to an industrial control audit system. The method comprises:

[0006] When it is monitored that the current operating temperature of the CPU rises to any of the preset temperature thresholds, it is determined whether the current operating temperature of the CPU is the minimum temperature threshold among the temperature thresholds;

[0007] If the current operating temperature of the CPU is not the minimum temperature threshold, a target audit level is determined from various pre-set audit levels, and after the current audit level is switched to the target audit level, data audit is performed on various pre-set key operations and non-key operations based on the audit information corresponding to the target audit level; wherein the target audit level is the audit level corresponding to the temperature threshold corresponding to the operating temperature of the CPU; the audit information includes the audit granularity of each of the key operations and each of the non-key operations; the higher the temperature threshold, the higher the corresponding target audit level; the higher the audit level, the coarser the audit granularity of non-key operations in the corresponding audit information;

[0008] When it is monitored that the current operating temperature of the CPU drops to any of the preset temperature thresholds, determining whether the current operating temperature of the CPU is the maximum temperature threshold;

[0009] If the current operating temperature of the CPU is not the maximum temperature threshold, the target audit level is determined from the pre-set audit levels, and after the current audit level is switched to the target audit level, data audits are performed on the pre-set key operations and non-key operations based on the audit information corresponding to the target audit level.

[0010] Optionally, the method further includes:

[0011] Real-time monitoring of the operating temperature of the CPU;

[0012] Determine whether the current operating temperature of the CPU is continuously rising;

[0013] If the current operating temperature of the CPU continues to rise, real-time monitoring is performed to determine whether the current operating temperature of the CPU rises to any of the preset temperature thresholds;

[0014] If it is monitored that the current operating temperature of the CPU rises to any of the preset temperature thresholds, determining whether the current operating temperature of the CPU is the minimum temperature threshold among the temperature thresholds;

[0015] If the current operating temperature of the CPU does not continue to rise, real-time monitoring is performed to determine whether the current operating temperature of the CPU drops to any of the preset temperature thresholds;

[0016] If it is monitored that the current operating temperature of the CPU drops to any of the preset temperature thresholds, it is determined whether the current operating temperature of the CPU is the maximum temperature threshold.

[0017] Optionally, the method further includes:

[0018] If the current operating temperature of the CPU is the minimum temperature threshold, the current audit level is maintained as the initial audit level, and data audit is performed on each pre-set key operation and each non-key operation based on the audit information corresponding to the initial audit level;

[0019] The initial audit level is the audit level corresponding to the minimum temperature threshold.

[0020] Optionally, the preset audit levels include a first audit level, a second audit level, a third audit level and a fourth audit level;

[0021] The audit information of the first audit level indicates that each of the critical operations is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each of the non-critical operations is audited to the industrial control operation, the operation address, the operation value type and the operation value;

[0022] The audit information of the second audit level indicates that each of the critical operations is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each of the non-critical operations is audited to the industrial control operation;

[0023] The audit information of the third audit level indicates that each key operation is audited to the industrial control operation, the operation address, the operation value type and the operation value, each non-key operation is audited to the industrial control operation, and the audit data of each non-key operation with an industrial control operation is filtered and merged according to a first preset time;

[0024] The audit information of the fourth audit level indicates that each critical operation is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each non-critical operation is audited to the industrial control operation, and the audit data of each non-critical operation with an industrial control operation is filtered and merged according to a second preset time; wherein the first preset time is less than the second preset time.

[0025] A second aspect of the present invention discloses an industrial control audit system, the system comprising:

[0026] A first judgment unit is used to judge whether the current operating temperature of the CPU is the minimum temperature threshold among the temperature thresholds when it is monitored that the current operating temperature of the CPU rises to any of the preset temperature thresholds;

[0027] A first switching unit is used for determining a target audit level from various pre-set audit levels if the current operating temperature of the CPU is not the minimum temperature threshold, and after switching the current audit level to the target audit level, performing data audit on various pre-set key operations and various non-key operations based on the audit information corresponding to the target audit level; wherein the target audit level is the audit level corresponding to the temperature threshold corresponding to the operating temperature of the CPU; the audit information includes the audit granularity of each of the key operations and each of the non-key operations; the higher the temperature threshold, the higher the corresponding target audit level; the higher the audit level, the coarser the audit granularity of the non-key operations in the corresponding audit information;

[0028] A second judgment unit is used to judge whether the current operating temperature of the CPU is the maximum temperature threshold when it is monitored that the current operating temperature of the CPU drops to any of the preset temperature thresholds;

[0029] The second switching unit is used to determine the target audit level from the pre-set audit levels if the current operating temperature of the CPU is not the maximum temperature threshold, and after switching the current audit level to the target audit level, perform data audit on the pre-set key operations and non-key operations based on the audit information corresponding to the target audit level.

[0030] Optionally, the system further includes:

[0031] A first real-time monitoring unit, used for monitoring the operating temperature of the CPU in real time;

[0032] A third judging unit, used to judge whether the current operating temperature of the CPU is continuously rising;

[0033] A second real-time monitoring unit is used to monitor in real time whether the current operating temperature of the CPU rises to any of the preset temperature thresholds if the current operating temperature of the CPU continues to rise;

[0034] If it is monitored that the current operating temperature of the CPU rises to any of the preset temperature thresholds, the first judgment unit performs the judgment whether the current operating temperature of the CPU is the minimum temperature threshold among the temperature thresholds;

[0035] A third real-time monitoring unit is used to monitor in real time whether the current operating temperature of the CPU drops to any of the preset temperature thresholds if the current operating temperature of the CPU does not continue to rise;

[0036] If it is monitored that the current operating temperature of the CPU drops to any of the preset temperature thresholds, the second judgment unit determines whether the current operating temperature of the CPU is the maximum temperature threshold.

[0037] Optionally, the system further includes:

[0038] A maintaining unit, configured to maintain the current audit level as the initial audit level if the current operating temperature of the CPU is the minimum temperature threshold, and perform data audit on each preset key operation and each non-key operation based on the audit information corresponding to the initial audit level;

[0039] The initial audit level is the audit level corresponding to the minimum temperature threshold.

[0040] Optionally, the preset audit levels include a first audit level, a second audit level, a third audit level and a fourth audit level;

[0041] The audit information of the first audit level indicates that each of the critical operations is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each of the non-critical operations is audited to the industrial control operation, the operation address, the operation value type and the operation value;

[0042] The audit information of the second audit level indicates that each of the critical operations is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each of the non-critical operations is audited to the industrial control operation;

[0043] The audit information of the third audit level indicates that each key operation is audited to the industrial control operation, the operation address, the operation value type and the operation value, each non-key operation is audited to the industrial control operation, and the audit data of each non-key operation with an industrial control operation is filtered and merged according to a first preset time;

[0044] The audit information of the fourth audit level indicates that each critical operation is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each non-critical operation is audited to the industrial control operation, and the audit data of each non-critical operation with an industrial control operation is filtered and merged according to a second preset time; wherein the first preset time is less than the second preset time.

[0045] The third aspect of the present invention discloses an electronic device, which includes a processor and a memory, wherein the memory is used to store program code and data for data auditing, and the processor is used to call the program instructions in the memory to execute a data auditing method disclosed in the first aspect of the present invention.

[0046] A fourth aspect of the present invention discloses a storage medium, which includes a storage program, wherein when the program is running, the device where the storage medium is located is controlled to execute a data audit method disclosed in the first aspect of the present invention.

[0047] The present invention provides a data audit method, an industrial control audit system, an electronic device and a storage medium. The method monitors the operating temperature of a CPU in real time. When it is monitored that the operating temperature of the current CPU rises to any temperature threshold value among various temperature threshold values ​​that are preset, it is judged whether the operating temperature of the current CPU is the minimum temperature threshold value among various temperature threshold values. If the operating temperature of the current CPU is not the minimum temperature threshold value, a target audit level is determined from various audit levels that are preset, and after the current audit level is switched to the target audit level, data audit is performed on various key operations and various non-key operations that are preset based on the audit information corresponding to the target audit level. When it is monitored that the operating temperature of the current CPU drops to various temperature threshold values ​​that are preset, it is judged whether the operating temperature of the current CPU is the minimum temperature threshold value among various temperature threshold values. If the operating temperature of the current CPU is not the minimum temperature threshold value, a target audit level is determined from various audit levels that are preset, and after the current audit level is switched to the target audit level, data audit is performed on various key operations and various non-key operations that are preset based on the audit information corresponding to the target audit level. Any temperature threshold in the value is used to determine whether the current CPU operating temperature is the maximum temperature threshold; if the current CPU operating temperature is not the maximum temperature threshold, the target audit level is determined from the pre-set audit levels, and after the current audit level is switched to the target audit level, data audit is performed on the pre-set key operations and non-key operations based on the audit information corresponding to the target audit level, wherein the target audit level is the audit level corresponding to the temperature threshold corresponding to the CPU operating temperature; the audit information includes the audit granularity of each key operation and each non-key operation; the higher the temperature threshold, the higher the corresponding target audit level; the higher the audit level, the coarser the audit granularity of the non-key operations in the corresponding audit information. The technical solution provided by the present invention can reduce the audit granularity of non-key operations, reduce CPU consumption, and reduce CPU temperature by adjusting the audit level of the system when the temperature of the CPU rises, without reducing the frequency of the CPU, thereby avoiding the loss of key audit data. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0049] Figure 1 A flowchart of a data audit method provided by an embodiment of the present invention;

[0050] Figure 2 A schematic diagram of the structure of an industrial control audit system provided by an embodiment of the present invention;

[0051] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0054] It should be noted that the concepts such as "first" and "second" mentioned in the disclosure of the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0055] It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of the present invention are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0056] See also Figure 1 , shows a flow chart of a data audit method provided by an embodiment of the present invention, the data audit method is applied to an industrial control audit system, the structure of the industrial control audit system is as follows Figure 2 As shown, the data audit method specifically includes the following steps:

[0057] S101: monitor the operating temperature of the CPU in real time.

[0058] S102: Determine whether the current CPU operating temperature is continuously rising; if the current CPU operating temperature is continuously rising, execute step S103; if the current CPU operating temperature is not continuously rising, execute step S107.

[0059] During the specific execution of step S102, the operating temperature of the CPU is monitored in real time through the industrial control system, and it is determined whether the current operating temperature of the CPU is continuously rising. If the current operating temperature of the CPU is continuously rising, step S103 is executed; if the current operating temperature of the CPU is not continuously rising, it can be considered that the current operating temperature of the CPU is continuously decreasing, and step S107 is executed.

[0060] S103: monitor in real time whether the operating temperature of the current CPU rises to any of the preset temperature thresholds; if it is monitored that the operating temperature of the current CPU rises to any of the preset temperature thresholds, execute step S104.

[0061] In the embodiments of the present application, industrial control operations (function codes) can be exhaustively listed. Taking modbus as an example, there are about 30 types of industrial control operations (function codes). Industrial control operations (function codes) are not random. For an industrial control site, it is generally necessary to program the controller with programming software first (the industrial control operations involved are downloading, writing, etc.). After programming, it is generally not programmed again (or it will be reprogrammed after a period of time); after programming, the industrial control site generally monitors the controller status through the host computer software (the industrial control operations involved are reading operations) or intermittently writes some values ​​(the industrial control operations involved are writing operations), that is, the traffic at the industrial control site, and the distribution of the collected function codes is not uniform, and generally read operations account for more than 90%.

[0062] In summary, the operations of industrial control traffic can be exhausted, and 90% of the operations in general traffic are read operations. This feature can facilitate the adjustment of the granularity of data, such as high-granularity auditing of all operations; or high-granularity auditing of less than 10% of critical operations and low-granularity auditing of more than 90% of non-critical operations. Since the audit data of non-critical operations is not very critical, but accounts for a large proportion, reducing the audit granularity of non-critical operations can significantly reduce the power consumption of the CPU without losing critical information, thereby reducing the temperature of the CPU.

[0063] Therefore, in the implementation of this application, multiple audit levels with different audit granularities can be set according to whether it is a critical operation, whether the industrial control operation is audited from shallow to deep, the operation address, operation value type and operation value, and by time merging.

[0064] Optionally, the multiple audit levels include four, namely the first audit level, the second audit level, the third audit level and the fourth audit level.

[0065] In an embodiment of the present application, the audit information of the first audit level indicates that each key operation is audited to the industrial control operation, operation address, operation value type and operation value, and each non-key operation is audited to the industrial control operation, operation address, operation value type and operation value; the audit information of the second audit level indicates that each key operation is audited to the industrial control operation, operation address, operation value type and operation value, and each non-key operation is audited to the industrial control operation; the audit information of the third audit level indicates that each key operation is audited to the industrial control operation, operation address, operation value type and operation value, and each non-key operation is audited to the industrial control operation, and the audit data of each non-key operation with an industrial control operation is filtered and merged according to the first preset time; the audit information of the fourth audit level indicates that each key operation is audited to the industrial control operation, operation address, operation value type and operation value, and each non-key operation is audited to the industrial control operation, and the audit data of each non-key operation with an industrial control operation is filtered and merged according to the second preset time; wherein the first preset time is less than the second preset time.

[0066] It should be noted that, from the audit information corresponding to each audit level, it can be seen that for critical operations, no modifications are made from the first audit level to the fourth audit level, and complete audit data will be recorded, which also provides records for subsequent tracing; for non-critical operations, deletion and merging of content have little impact on subsequent tracing. At the same time, since the audit data corresponding to non-critical operations accounts for a large proportion, deletion and merging will effectively reduce the CPU load, thereby reducing the CPU temperature.

[0067] It should be noted that the larger the time threshold for time merging is set, the less CPU consumption is and the lower the CPU temperature is. For example, merging the audit data of industrial control operations every 5 minutes is equivalent to storing only one audit data in 5 minutes. Compared with storing one audit data in 1 minute and five audit data in 5 minutes, the smaller the CPU consumption is and the lower the CPU temperature is.

[0068] According to the auditing method of starting from the shallow to the deep, the shallower the audit granularity, that is, the coarser the audit granularity, the less CPU consumption and the lower the corresponding CPU temperature. For example, if only the industrial control operation (function code) and operation address of a data packet are audited, compared with auditing the industrial control operation (function code), operation address, operation value type, and operation value of the data packet, the CPU consumption is smaller and the corresponding CPU temperature is also lower.

[0069] According to the method of critical operations and non-critical operations, the essence of auditing is also a method of auditing from shallow to deep. It is just through the distinction between critical operations and non-critical operations. The shallow and fine-grained audit of non-critical operations can reduce the CPU temperature while not causing loss of critical information and key data packets of the industrial control system.

[0070] In the embodiment of the present application, the data audited in the industrial control audit system includes industrial control operations (function codes), operation addresses, operation value types, and operation values ​​from coarse to fine. Among them, the operations can be divided into key operations and non-key operations according to the industrial control operations (function codes), and the importance of audit data for different operations is different. Among them, the industrial control operations of the industrial control system are shown in Table 1, and the operations can be divided into key operations and non-key operations according to the industrial control operations (function codes) as shown in Table 2.

[0071] Table 1:

[0072]

[0073] Table 2:

[0074]

[0075] In the embodiment of the present application, a corresponding temperature threshold is set for each audit level. The higher the audit level, the larger the corresponding temperature threshold.

[0076] For example, the temperature threshold corresponding to the first audit level may be 45 degrees, the temperature threshold corresponding to the second audit level may be 50 degrees, the temperature threshold corresponding to the third audit level may be 55 degrees, and the temperature threshold corresponding to the fourth audit level may be 60 degrees.

[0077] In the specific process of executing step S103, multiple temperature thresholds are preset. If it is monitored that the operating temperature of the current CPU is continuously rising, it is further monitored in real time whether the operating temperature of the current CPU rises to any of the preset temperature thresholds. If it is monitored that the operating temperature of the current CPU rises to any of the preset temperature thresholds, step S104 is executed.

[0078] In an embodiment of the present application, at the initial stage of operation of the industrial control system, the system temperature is low and the system operates at the maximum rated maximum processing capacity, that is, the system pre-sets each key operation and each non-key operation with the audit information corresponding to the initial audit level for data auditing.

[0079] It should be noted that the initial audit level of the system may be the first audit level.

[0080] In an embodiment of the present application, before the current CPU operating temperature rises to any of the pre-set temperature thresholds, the audit information corresponding to the current audit level is maintained to perform data audits on the pre-set key operations and non-key operations.

[0081] For example, the temperature threshold corresponding to the first audit level may be 45 degrees, the temperature threshold corresponding to the second audit level may be 50 degrees, the temperature threshold corresponding to the third audit level may be 55 degrees, and the temperature threshold corresponding to the fourth audit level may be 60 degrees. In the early stage of the operation of the industrial control system, the system pre-sets each key operation and each non-key operation for data audit with the audit information corresponding to the initial audit level. After the system runs at the rated maximum processing power for a period of time, the temperature of the CPU will gradually rise. Before the temperature of the CPU rises to the next temperature threshold, the system maintains the audit information corresponding to the current audit level to perform data audit on each pre-set key operation and each non-key operation.

[0082] It should be noted that the rated maximum processing capacity is the total amount of data packets that can be processed per second, such as 100Mbps. The rated maximum processing capacity is obtained after the device is tested at a fixed ambient temperature without losing data packets.

[0083] S104: Determine whether the current CPU operating temperature is the minimum temperature threshold among the temperature thresholds; if the current CPU operating temperature is the minimum temperature threshold, execute step S105; if the current CPU operating temperature is not the minimum temperature threshold, execute step S106.

[0084] In the specific process of executing step S104, when it is monitored that the operating temperature of the current CPU rises to any one of the pre-set temperature thresholds, it can be further determined whether the temperature threshold corresponding to the operating temperature of the current CPU is the minimum temperature threshold among the temperature thresholds, if yes, execute step S105; if no, execute step S106.

[0085] S105: Maintain the current audit level as the initial audit level, and perform data audit on each preset key operation and each non-key operation based on the audit information corresponding to the initial audit level.

[0086] During the specific execution of step S105, if it is monitored that the temperature threshold corresponding to the current CPU operating temperature is the minimum temperature threshold among the pre-set temperature thresholds, the current audit level will be maintained as the initial audit level, and data audits will be performed on the pre-set key operations and non-key operations based on the audit information corresponding to the initial audit level.

[0087] In the embodiment of the present application, the initial audit level can be the first audit level, and the audit information corresponding to the first audit level indicates that each key operation is audited to the industrial control operation, operation address, operation value type and operation value, and each non-key operation is audited to the industrial control operation, operation address, operation value type and operation value. That is to say, for each key operation, the operation address, operation value type and operation value corresponding to the key operation are recorded; for each non-key operation, the operation address, operation value type and operation value corresponding to the non-key operation are recorded.

[0088] It should be noted that, taking the key operation as a write operation as an example, it is necessary to audit the write address (operation address) M10 of the key operation, the write value type (operation value type) is floating point type, and the write value (operation value) is 1.0.

[0089] S106: Determine a target audit level from various pre-set audit levels, switch the current audit level to the target audit level, and then perform data audit on various pre-set key operations and non-key operations based on the audit information corresponding to the target audit level.

[0090] Among them, the target audit level is the audit level corresponding to the temperature threshold corresponding to the operating temperature of the CPU; the audit information includes the audit granularity of each critical operation and each non-critical operation; the higher the temperature threshold, the higher the corresponding target audit level; the higher the audit level, the coarser the audit granularity of non-critical operations in the corresponding audit information.

[0091] During the specific execution of step S106, if it is monitored that the temperature threshold corresponding to the current CPU operating temperature is not the minimum temperature threshold among the pre-set temperature thresholds, the target audit level is determined from the pre-set audit levels, and after the current audit level is switched to the target audit level, data audits are performed on the pre-set key operations and non-key operations based on the audit information corresponding to the target audit level.

[0092] For example, the temperature threshold corresponding to the first audit level may be 45 degrees, the temperature threshold corresponding to the second audit level may be 50 degrees, the temperature threshold corresponding to the third audit level may be 55 degrees, and the temperature threshold corresponding to the fourth audit level may be 60 degrees. In the initial stage of the operation of the industrial control system, the system pre-sets various key operations and various non-key operations for data auditing with the audit information corresponding to the initial audit level. After the system runs at the rated maximum processing power for a period of time, the temperature of the CPU will gradually rise. When the temperature of the CPU rises to the next temperature threshold, the target audit level is determined to be the second audit level from the pre-set audit levels, and after the current audit level is switched to the second audit level, the pre-set various key operations and various non-key operations are audited based on the audit information corresponding to the second audit level.

[0093] It should be noted that the audit information of the second audit level indicates that each key operation is audited to the industrial control operation, operation address, operation value type and operation value, and each non-key operation is audited to the industrial control operation.

[0094] It should be noted that, taking the critical operation as a write operation as an example, it is necessary to audit the write address (operation address) M10 of the critical operation, the write value type (operation value type) is a floating point type, and the write value (operation value) is 1.0. Taking the non-critical operation as a read operation as an example, it is only necessary to audit the read address M10.

[0095] It should be noted that when the temperature is low, the system can audit all critical operations and non-critical operations. When the temperature rises, for non-critical operations, taking the read operation as an example, only the read operation is audited, and the read address M10 and the read type are not audited. In this way, the CPU consumption can be reduced for a read data packet, thereby reducing the CPU temperature.

[0096] The applicant has found that in the prior art, when the ambient temperature is 30 degrees, when processing 200Mbps traffic, the system requires the CPU to work at a frequency of 900Mhz to ensure no packet loss. When the CPU rises to 50 degrees, the CPU frequency will be reduced to 800Mhz. At this time, the CPU cannot achieve the required performance and packet loss will occur. After using the technical solution provided by the embodiment of the present application, when the temperature of the CPU rises to 50 degrees, the CPU frequency will be reduced to 800Mhz, and the current audit level will be switched to the second audit level, so that the audit information corresponding to the second audit level will be used to perform data audit on each key operation and each non-key operation pre-set, and the consumption of the CPU will be reduced by reducing the audit intensity of each non-key operation, thereby reducing the temperature of the CPU. When the temperature of the CPU drops to the temperature threshold corresponding to the first audit level, the current audit level will be switched from the second audit level to the first audit level, so that the audit information corresponding to the first audit level will be used to perform data audit on each key operation and each non-key operation pre-set.

[0097] S107: monitor in real time whether the operating temperature of the current CPU drops to any of the preset temperature thresholds; if it is monitored that the operating temperature of the current CPU drops to any of the preset temperature thresholds, execute step S108.

[0098] In the specific process of executing step S107, if it is detected that the operating temperature of the current CPU is not continuously rising, it can be considered that the operating temperature of the current CPU is continuously decreasing, and further real-time monitoring is performed to determine whether the operating temperature of the current CPU has dropped to any of the pre-set temperature thresholds. If it is monitored that the operating temperature of the current CPU has dropped to any of the pre-set temperature thresholds, step S108 is executed.

[0099] In an embodiment of the present application, before the current CPU operating temperature drops to any of the pre-set temperature thresholds, the audit information corresponding to the current audit level is maintained to perform data audits on the pre-set key operations and non-key operations.

[0100] For example, the temperature threshold corresponding to the first audit level may be 45 degrees, the temperature threshold corresponding to the second audit level may be 50 degrees, the temperature threshold corresponding to the third audit level may be 55 degrees, and the temperature threshold corresponding to the fourth audit level may be 60 degrees. After the industrial control system performs data audits on various key operations and non-key operations that are preset for a period of time using the audit information corresponding to the third audit level, the temperature of the CPU will gradually decrease. Before the temperature of the CPU drops to the next temperature threshold, the system maintains the current audit level, that is, maintains the audit information corresponding to the third audit level to perform data audits on various key operations and non-key operations that are preset.

[0101] S108: Determine whether the current operating temperature of the CPU is the maximum temperature threshold; if the current operating temperature of the CPU is not the maximum temperature threshold, return to step S106.

[0102] In the specific process of executing step S108, when it is monitored that the operating temperature of the current CPU drops to any one of the pre-set temperature thresholds, it can be further determined whether the temperature threshold corresponding to the operating temperature of the current CPU is the maximum temperature threshold among the temperature thresholds, and if not, step S106 is executed.

[0103] If the temperature threshold corresponding to the current CPU operating temperature is monitored to be the maximum temperature threshold among the pre-set temperature thresholds, the current audit level will be maintained at the audit level corresponding to the maximum temperature threshold, i.e., the fourth audit level, and data audit will be performed on the pre-set key operations and non-key operations based on the audit information corresponding to the fourth audit level.

[0104] The present invention provides a data audit method, which is applied to an industrial control system. By real-time monitoring of the CPU's operating temperature, when it is monitored that the current CPU's operating temperature rises to any temperature threshold value among various temperature threshold values ​​that are preset, it is determined whether the current CPU's operating temperature is the minimum temperature threshold value among various temperature threshold values; if the current CPU's operating temperature is not the minimum temperature threshold value, a target audit level is determined from various audit levels that are preset, and after the current audit level is switched to the target audit level, data audits are performed on various key operations and various non-key operations that are preset based on the audit information corresponding to the target audit level; when it is monitored that the current CPU's operating temperature drops to any temperature threshold value among various temperature threshold values ​​that are preset Temperature threshold, judge whether the current CPU operating temperature is the maximum temperature threshold; if the current CPU operating temperature is not the maximum temperature threshold, determine the target audit level from the pre-set audit levels, and after switching the current audit level to the target audit level, perform data audit on the pre-set key operations and non-key operations based on the audit information corresponding to the target audit level, wherein the target audit level is the audit level corresponding to the temperature threshold corresponding to the CPU operating temperature; the audit information includes the audit granularity of each key operation and each non-key operation; the higher the temperature threshold, the higher the corresponding target audit level; the higher the audit level, the coarser the audit granularity of non-key operations in the corresponding audit information. The technical solution provided by the present invention can reduce the audit granularity of non-key operations, reduce CPU consumption, reduce CPU temperature, and avoid losing key audit data by adjusting the audit level of the system when the temperature of the CPU rises.

[0105] Based on the data audit method disclosed in the embodiment of the present invention, the embodiment of the present invention also discloses an industrial control audit system, such as Figure 2 As shown, the industrial control audit system includes:

[0106] The first judgment unit 21 is used to judge whether the current CPU operating temperature is the minimum temperature threshold among various temperature thresholds when the operating temperature of the current CPU is monitored to rise to any temperature threshold among various temperature thresholds set in advance;

[0107] The first switching unit 22 is used to determine the target audit level from the pre-set audit levels if the current CPU operating temperature is not the minimum temperature threshold, and after switching the current audit level to the target audit level, perform data audit on the pre-set key operations and non-key operations based on the audit information corresponding to the target audit level; wherein the target audit level is the audit level corresponding to the temperature threshold corresponding to the CPU operating temperature; the audit information includes the audit granularity of each key operation and each non-key operation; the higher the temperature threshold, the higher the corresponding target audit level; the higher the audit level, the coarser the audit granularity of the non-key operations in the corresponding audit information;

[0108] The second judgment unit 23 is used to judge whether the current CPU operating temperature is the maximum temperature threshold when it is monitored that the current CPU operating temperature drops to any temperature threshold among various preset temperature thresholds;

[0109] The second switching unit 24 is used to determine the target audit level from the pre-set audit levels if the current CPU operating temperature is not the maximum temperature threshold, and after switching the current audit level to the target audit level, perform data audit on the pre-set key operations and non-key operations based on the audit information corresponding to the target audit level.

[0110] The specific principles and execution processes of each unit in the industrial control audit system disclosed in the above embodiment of the present invention are similar to those disclosed in the above embodiment of the present invention. Figure 1 The data auditing method shown is the same as that shown in the figure. Please refer to the corresponding part of the data auditing method disclosed in the above embodiment of the present invention, and will not be described in detail here.

[0111] The present invention provides an industrial control system, which monitors the operating temperature of a CPU in real time. When it is monitored that the operating temperature of the current CPU rises to any temperature threshold among various temperature thresholds that are preset, it is determined whether the operating temperature of the current CPU is the minimum temperature threshold among various temperature thresholds; if the operating temperature of the current CPU is not the minimum temperature threshold, a target audit level is determined from various audit levels that are preset, and after the current audit level is switched to the target audit level, data audit is performed on various key operations and various non-key operations that are preset based on audit information corresponding to the target audit level; when it is monitored that the operating temperature of the current CPU drops to any temperature threshold among various temperature thresholds that are preset, Determine whether the current CPU operating temperature is the maximum temperature threshold; if the current CPU operating temperature is not the maximum temperature threshold, determine the target audit level from the pre-set audit levels, and after switching the current audit level to the target audit level, perform data audit on the pre-set key operations and non-key operations based on the audit information corresponding to the target audit level, wherein the target audit level is the audit level corresponding to the temperature threshold corresponding to the CPU operating temperature; the audit information includes the audit granularity of each key operation and each non-key operation; the higher the temperature threshold, the higher the corresponding target audit level; the higher the audit level, the coarser the audit granularity of the non-key operations in the corresponding audit information. The technical solution provided by the present invention can reduce the audit granularity of non-key operations, reduce CPU consumption, reduce CPU temperature, and avoid losing key audit data by adjusting the audit level of the system when the temperature of the CPU rises.

[0112] Furthermore, the industrial control audit system provided by this application also includes:

[0113] A first real-time monitoring unit is used to monitor the operating temperature of the CPU in real time;

[0114] The third judgment unit is used to judge whether the current CPU operating temperature continues to rise;

[0115] The second real-time monitoring unit is used to monitor in real time whether the operating temperature of the current CPU rises to any temperature threshold among various preset temperature thresholds if the operating temperature of the current CPU continues to rise;

[0116] If it is monitored that the operating temperature of the current CPU rises to any temperature threshold among various pre-set temperature thresholds, the first judgment unit performs judgment on whether the operating temperature of the current CPU is the minimum temperature threshold among various temperature thresholds;

[0117] A third real-time monitoring unit is used to monitor in real time whether the operating temperature of the current CPU drops to any of the preset temperature thresholds if the operating temperature of the current CPU does not continue to rise;

[0118] If it is monitored that the current operating temperature of the CPU drops to any temperature threshold among the preset temperature thresholds, the second judgment unit determines whether the current operating temperature of the CPU is the maximum temperature threshold.

[0119] Furthermore, the industrial control audit system provided by this application also includes:

[0120] A holding unit, used for keeping the current audit level as the initial audit level if the current operating temperature of the CPU is the minimum temperature threshold, and performing data audit on each pre-set key operation and each non-key operation based on the audit information corresponding to the initial audit level;

[0121] Among them, the initial audit level is the audit level corresponding to the minimum temperature threshold.

[0122] Optionally, the preset audit levels include a first audit level, a second audit level, a third audit level, and a fourth audit level;

[0123] The audit information of the first audit level indicates that each key operation is audited to the industrial control operation, operation address, operation value type and operation value, and each non-key operation is audited to the industrial control operation, operation address, operation value type and operation value;

[0124] The audit information of the second audit level indicates that each key operation is audited to the industrial control operation, operation address, operation value type and operation value, and each non-key operation is audited to the industrial control operation;

[0125] The audit information of the third audit level indicates that each key operation is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each non-key operation is audited to the industrial control operation, and the audit data of each non-key operation with the industrial control operation is filtered and merged according to the first preset time;

[0126] The audit information of the fourth audit level indicates that each key operation is audited to the industrial control operation, operation address, operation value type and operation value, and each non-key operation is audited to the industrial control operation, and the audit data of each non-key operation with industrial control operation is filtered and merged according to the second preset time; wherein the first preset time is less than the second preset time.

[0127] The present application embodiment provides an electronic device, such as Figure 3 As shown, the electronic device includes a processor 301 and a memory 302, the memory 302 is used to store program codes and data for data auditing, and the processor 301 is used to call program instructions in the memory to execute the steps shown in the data auditing method in the above embodiment.

[0128] An embodiment of the present application provides a storage medium, which includes a storage program, wherein when the program is running, the device where the storage medium is located is controlled to execute the data audit method shown in the above embodiment.

[0129] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0130] 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 composition and steps of each example have been generally described in the above description according to function. 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 to be beyond the scope of the present invention.

[0131] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0132] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data audit method, characterized in that: Applied to an industrial control audit system, the method includes: When it is monitored that the current operating temperature of the CPU rises to any of the preset temperature thresholds, it is determined whether the current operating temperature of the CPU is the minimum temperature threshold among the temperature thresholds; If the current operating temperature of the CPU is not the minimum temperature threshold, a target audit level is determined from the pre-set audit levels, and after the current audit level is switched to the target audit level, data audit is performed on the pre-set key operations and non-key operations based on the audit information corresponding to the target audit level; wherein the target audit level is the audit level corresponding to the temperature threshold corresponding to the operating temperature of the CPU; the audit information includes the audit granularity of each key operation and each non-key operation; the higher the temperature threshold, the higher the corresponding target audit level; the higher the audit level, the coarser the audit granularity of the non-key operations in the corresponding audit information; wherein the pre-set audit levels include a first audit level, a second audit level, a third audit level and a fourth audit level; the audit information of the first audit level indicates that each key operation is audited to the industrial control operation, operation address, operation value type and operation value, and each non-key operation is audited to the industrial control operation The audit information of the second audit level indicates that each of the key operations is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each of the non-key operations is audited to the industrial control operation; the audit information of the third audit level indicates that each of the key operations is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each of the non-key operations is audited to the industrial control operation, and the audit data of each of the non-key operations with industrial control operations is filtered and merged according to the first preset time; the audit information of the fourth audit level indicates that each of the key operations is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each of the non-key operations is audited to the industrial control operation, and the audit data of each of the non-key operations with industrial control operations is filtered and merged according to the second preset time; wherein the first preset time is less than the second preset time; When it is monitored that the current operating temperature of the CPU drops to any of the preset temperature thresholds, determining whether the current operating temperature of the CPU is the maximum temperature threshold; If the current operating temperature of the CPU is not the maximum temperature threshold, the target audit level is determined from the pre-set audit levels, and after the current audit level is switched to the target audit level, data audits are performed on the pre-set key operations and non-key operations based on the audit information corresponding to the target audit level.

2. The method according to claim 1, characterized in that The method further comprises: Real-time monitoring of the operating temperature of the CPU; Determine whether the current operating temperature of the CPU is continuously rising; If the current operating temperature of the CPU continues to rise, real-time monitoring is performed to determine whether the current operating temperature of the CPU rises to any of the preset temperature thresholds; If it is monitored that the current operating temperature of the CPU rises to any of the preset temperature thresholds, determining whether the current operating temperature of the CPU is the minimum temperature threshold among the temperature thresholds; If the current operating temperature of the CPU does not continue to rise, real-time monitoring is performed to determine whether the current operating temperature of the CPU drops to any of the preset temperature thresholds; If it is monitored that the current operating temperature of the CPU drops to any of the preset temperature thresholds, it is determined whether the current operating temperature of the CPU is the maximum temperature threshold.

3. The method according to claim 1, characterized in that: The method further comprises: If the current operating temperature of the CPU is the minimum temperature threshold, the current audit level is maintained as the initial audit level, and data audit is performed on each pre-set key operation and each non-key operation based on the audit information corresponding to the initial audit level; The initial audit level is the audit level corresponding to the minimum temperature threshold.

4. An industrial control audit system, characterized in that: The system comprises: A first judgment unit is used to judge whether the current operating temperature of the CPU is the minimum temperature threshold among the temperature thresholds when it is monitored that the current operating temperature of the CPU rises to any of the preset temperature thresholds; A first switching unit is used to determine a target audit level from various pre-set audit levels if the current operating temperature of the CPU is not the minimum temperature threshold, and after switching the current audit level to the target audit level, perform data audit on various pre-set key operations and various non-key operations based on the audit information corresponding to the target audit level; wherein, the target audit level is the audit level corresponding to the temperature threshold corresponding to the operating temperature of the CPU; the audit information includes the audit granularity of each of the key operations and each of the non-key operations; the higher the temperature threshold, the higher the corresponding target audit level; the higher the audit level, the coarser the audit granularity of the non-key operations in the corresponding audit information; wherein, the pre-set audit levels include a first audit level, a second audit level, a third audit level and a fourth audit level; the audit information of the first audit level indicates that each of the key operations is audited to industrial control operations, operation addresses, operation value types and operation values, and each of the non-key operations is audited to The industrial control operation, the operation address, the operation value type and the operation value; the audit information of the second audit level indicates that each of the key operations is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each of the non-key operations is audited to the industrial control operation; the audit information of the third audit level indicates that each of the key operations is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each of the non-key operations is audited to the industrial control operation, and the audit data of each of the non-key operations with industrial control operations is filtered and merged according to a first preset time; the audit information of the fourth audit level indicates that each of the key operations is audited to the industrial control operation, the operation address, the operation value type and the operation value, and each of the non-key operations is audited to the industrial control operation, and the audit data of each of the non-key operations with industrial control operations is filtered and merged according to a second preset time; wherein the first preset time is less than the second preset time; A second judgment unit is used to judge whether the current operating temperature of the CPU is the maximum temperature threshold when it is monitored that the current operating temperature of the CPU drops to any of the preset temperature thresholds; The second switching unit is used to determine the target audit level from the pre-set audit levels if the current operating temperature of the CPU is not the maximum temperature threshold, and after switching the current audit level to the target audit level, perform data audit on the pre-set key operations and non-key operations based on the audit information corresponding to the target audit level.

5. The system according to claim 4, characterized in that The system further comprises: A first real-time monitoring unit, used for monitoring the operating temperature of the CPU in real time; A third judging unit, used to judge whether the current operating temperature of the CPU is continuously rising; A second real-time monitoring unit is used to monitor in real time whether the current operating temperature of the CPU rises to any of the preset temperature thresholds if the current operating temperature of the CPU continues to rise; If it is monitored that the current operating temperature of the CPU rises to any of the preset temperature thresholds, the first judgment unit performs the judgment whether the current operating temperature of the CPU is the minimum temperature threshold among the temperature thresholds; A third real-time monitoring unit is used to monitor in real time whether the current operating temperature of the CPU drops to any of the preset temperature thresholds if the current operating temperature of the CPU does not continue to rise; If it is monitored that the current operating temperature of the CPU drops to any of the preset temperature thresholds, the second judgment unit determines whether the current operating temperature of the CPU is the maximum temperature threshold.

6. The system according to claim 4, characterized in that The system further comprises: A maintaining unit, configured to maintain the current audit level as the initial audit level if the current operating temperature of the CPU is the minimum temperature threshold, and perform data audit on each preset key operation and each non-key operation based on the audit information corresponding to the initial audit level; The initial audit level is the audit level corresponding to the minimum temperature threshold.

7. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory is used to store program codes and data for data auditing, and the processor is used to call the program code in the memory to execute a data auditing method as described in any one of claims 1-3.

8. A storage medium, characterized in that: The storage medium includes a storage program, wherein when the program is running, the device where the storage medium is located is controlled to execute a data audit method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Auditing method and apparatus for auditing object, storage medium and processor

    CN107146150A

  • Techniques for auditing and controlling network services

    US20120271936A1