Computing power and resource consumption balance method
Through joint encryption of asymmetric and symmetric cryptographic algorithms and dynamic programming optimization algorithms, the problem of information leakage and scheduling disorder caused by limited resources in unit-level systems is solved, and the balance of encryption and scheduling under limited resources is achieved to ensure information security and real-time equipment run.
Patent Information
- Application Number
- CN202111177574.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-09
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-10-09
AI Technical Summary
Due to limited computing resources in unit-level systems, existing security defense mechanisms are difficult to effectively encrypt and schedule sensitive information, leading to an increased risk of information leakage and system scheduling disorder.
A joint encryption method of asymmetric cryptographic algorithms (such as NTRU) and symmetric cryptographic algorithms (such as RC5) is adopted, and through a unit-level information flow security reinforcement optimization algorithm based on dynamic programming, the encryption task is decomposed into a Markov process of multiple decision-making stages. Achieve a balance between computing power and resources.
It achieves a balance between encryption and efficient scheduling under limited resources, and provides the most optimized security information flow reinforcement and scheduling method, so that information can be effectively reinforced and unit equipment can maintain real-time operation, improving the overall utilization of the equipment.
Smart Images

Figure CN113992361B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of unit-level security defense technology, and in particular to a method for balancing computing power and resource consumption. Background Art
[0002] As the industrial Internet gradually moves towards integration and openness, the dynamic intelligence of unit equipment means that unit equipment does not need to rely entirely on superior facilities in the process of providing services, which allows attackers to launch attacks on any unit facility that carries computing services. At the same time, the complexity, real-time nature, heterogeneity of data, location awareness, and limited resources of unit equipment make the security defense mechanism based on the server system no longer applicable to the unit computing environment. In the unit-level system, a large amount of sensitive information is transmitted in plain text in the existing environment, conditions, and protocols, and the computing power of unit-level equipment to encrypt a large amount of security information is unbalanced with limited computing resources, which greatly increases the risk of information leakage and internal system scheduling disorder caused by the unit-level system. Summary of the invention
[0003] The purpose of the present invention is to provide a method for balancing computing power and resource consumption, which can achieve encryption and efficient scheduling under limited resources, and balance encryption and limited resources.
[0004] The technical solution adopted by the present invention is: a method for balancing computing power and resource consumption, comprising the following steps:
[0005] The plain text is encrypted by a combination of an asymmetric encryption algorithm and a symmetric encryption algorithm;
[0006] A unit-level information flow security reinforcement optimization algorithm based on dynamic programming is used to achieve a balance between computing power and resource consumption.
[0007] Furthermore, the asymmetric encryption algorithm adopts the NTRU algorithm, and the symmetric encryption algorithm adopts the RC5 encryption algorithm.
[0008] Furthermore, the encryption method combining the asymmetric encryption algorithm with the symmetric encryption algorithm comprises the following steps:
[0009] The NTRU session key encrypts the data plaintext using the RC5 encryption algorithm to obtain the data ciphertext;
[0010] The NTUR public key symmetrically encrypts the NTRU session key, encapsulates it with the above data ciphertext, and transmits it through the channel.
[0011] Furthermore, the unit-level system security defense architecture has the ability to make self-decision-making, which decomposes the optimization problem into a Markov process with multiple decision-making stages, including the following steps:
[0012] Set n encryption tasks in the system and abstract the optimization problem into a decision-making process of n stages. Each stage includes multiple states, representing different decisions corresponding to this stage. Except for the first stage, each decision is generated by the decision of the previous stage, ensuring that each decision is optimal for the past decisions.
[0013] Define a four-tuple and calculate the CPU utilization μ based on the encryption round, minimum vulnerability, CPU utilization, and remaining available CPU resources. i ;
[0014] Implement unit-level information flow security reinforcement optimization based on dynamic programming to achieve a balance between computing power and resource consumption for unit-level information flow security reinforcement optimization based on dynamic programming;
[0015] Generate an n-stage decision diagram to show the process of decision generation and the relationship between decisions;
[0016] Search the decision graph forward from the decision endpoint to obtain an optimal decision path.
[0017] Furthermore, a decision graph includes all decision stages and all possible states; in an n-stage decision graph of a unit-level information flow security reinforcement optimization algorithm based on dynamic programming, a state is generated based on the state of the previous stage, a state generates multiple different states according to multiple different decisions, and different states generate the same state by different decisions; different stages have different numbers of states.
[0018] Furthermore, there is only one state in stage n, namely the initial state, and the order of decision graph generation is from stage n to stage 1; according to the previous definition, each stage has its own utilization upper limit, and the decision graph is generated while generating the processor utilization upper limit of each state.
[0019] Furthermore, after the decision graph is generated, the optimal decision of all states is calculated from stage 1 onwards; according to each state, the optimal decision can be obtained, thereby obtaining the optimal result, and the vector of encryption round allocation obtained by backtracking is the optimal decision sequence.
[0020] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for balancing computing power and resource consumption when executing the computer program.
[0021] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for balancing computing power and resource consumption.
[0022] Compared with the prior art, the significant advantages of the present invention are: the present invention combines the relationship between the complexity of the security data encryption algorithm and resource utilization, and provides a computing power and resource consumption balancing method for unit-level information flow security reinforcement optimization based on dynamic programming, which can achieve encryption and efficient scheduling under limited resources, and balance encryption with limited resources, and provide an optimized security information flow reinforcement scheduling method, so that while the information is effectively reinforced, the unit equipment maintains real-time operation, thereby improving the overall utilization of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a flow chart of the NTRU-RC5 joint encryption and decryption method.
[0024] Figure 2 It is a flowchart of the sender / receiver of the NTRU-RC5 joint encryption / decryption mechanism method.
[0025] Figure 3 It is a flow chart of the security information reinforcement processing method.
[0026] Figure 4 It is an n-stage decision diagram of the multiple sensitive information reinforcement optimization algorithm based on the dynamic programming algorithm of the present invention. DETAILED DESCRIPTION
[0027] The need for data confidentiality includes two aspects: the confidentiality of communication data and the security of communication keys. Data confidentiality refers to preventing communication data from being attacked passively, such as information leakage and traffic analysis; the security of communication keys refers to the fact that the keys transmitted by the two parties in communication are not known by unauthorized third parties. There are three challenges in using encryption technology in unit-level device networks: limited computing power. Unit-level devices may be embedded systems, and their computing power and space capacity cannot be compared with server-level devices; possible low data transmission capacity, that is, the network bandwidth is not high; real-time processing requirements. Networks for unit-level devices should process data accurately and timely, and data communication delays may cause serious problems.
[0028] For cryptographic algorithms, the three requirements of cost, performance, and security cannot be met at the same time, which involves trade-offs in different situations. In unit-level devices, it is necessary to deal with the relationship between computing resources and security between task scheduling and security information encryption algorithms. The goal of unit-level information flow security hardening is to allocate reasonable encryption rounds to RC5 for security information of different weights to minimize the vulnerability of the system. The encrypted information is then processed in other ways.
[0029] Based on this, the present invention provides a method for balancing computing power and resource consumption, comprising the following steps:
[0030] Step 1: From the perspective of encryption and decryption system, cryptographic systems are divided into symmetric cryptographic algorithm types and asymmetric cryptographic algorithm types. The encryption and decryption processes of the two encryption algorithms are: the encryption and decryption of the symmetric cryptographic system use a shared key, and the encryption and decryption of the asymmetric cryptographic system use a public key and a private key respectively. According to the operating environment and the needs of the task itself, different security encryption strategies of different strengths are assigned to each task.
[0031] The present invention adopts an encryption method combining an asymmetric encryption algorithm with a symmetric encryption algorithm. The asymmetric encryption adopts the NTRU algorithm, which is a public key encryption technology recommended in the standard IEEE1363, with a polynomial calculation complexity, suitable for one-time lightweight encryption. At the same time, in order to reduce security risks, the RC5 encryption algorithm with random dynamic operation is adopted.
[0032] Step 2, in the unit-level device, needs to deal with the relationship between computing resources and security between task scheduling and security information encryption algorithm. The goal is to allocate reasonable encryption rounds to the encryption algorithm for security information of different weights to minimize the vulnerability of the system. Then the encrypted information is processed in other ways.
[0033] In order to select a reasonable encryption strategy, it is necessary to weigh the encryption rate and encryption strength to obtain a reasonable encryption strategy. Therefore, a computing power and resource consumption balance technology based on dynamic programming for unit-level information flow security reinforcement optimization is proposed.
[0034] Furthermore, the RC5 encryption algorithm of random dynamic operation includes the following steps:
[0035] (1) The NTRU session key encrypts the data plaintext using the RC5 encryption algorithm to obtain the data ciphertext;
[0036] (2) The NTUR public key symmetrically encrypts the NTRU session key, encapsulates it with the above data ciphertext, and transmits it through the channel.
[0037] Furthermore, the unit-level system security defense architecture should have a certain degree of self-decision-making ability, and the optimization problem can be decomposed into a Markov process with multiple decision-making stages, including the following steps:
[0038] (1) Set n encryption tasks in the system and abstract the optimization problem into a decision-making process of n stages. Each stage includes multiple states, representing different decisions corresponding to this stage. Except for the first stage, each decision is generated by the decision of the previous stage, ensuring that each decision is optimal for the past decisions;
[0039] (2) Define a four-tuple and calculate the CPU utilization μ based on the encryption rounds, minimum vulnerability, CPU utilization, and remaining available CPU resources.i ;
[0040] (3) Implement unit-level information flow security reinforcement optimization based on dynamic programming, achieve a balance between computing power and resource consumption based on dynamic programming, achieve encryption and efficient scheduling under limited resources, balance encryption and limited resources, and provide an optimized security information flow reinforcement scheduling method, so that while the information is effectively reinforced, the unit equipment maintains real-time operation, thereby improving the overall utilization of the equipment;
[0041] (4) Generate an n-stage decision diagram, which mainly represents the process of decision generation and the relationship between decisions.
[0042] (5) Search the decision graph from the decision endpoint to obtain an optimal decision path. In order to obtain the optimal decision, the decision graph takes all possible decisions into consideration.
[0043] Since a decision graph contains all decision stages and all possible states. In an n-stage decision graph of the multiple sensitive information reinforcement optimization algorithm based on the dynamic programming algorithm, a state is usually generated based on the state of the previous stage. A state may generate multiple different states based on multiple different decisions, and different states can also generate the same state by different decisions. Different stages have different numbers of states.
[0044] There is only one state in stage n, namely the initial state, and the order of decision graph generation is from stage n to stage 1. According to the previous definition, each stage has its own utilization upper limit, and the decision graph is generated while generating the processor utilization upper limit of each state.
[0045] After the decision graph is generated, the optimal decision for all states is calculated from stage 1. According to each state, the optimal decision can be obtained, thereby obtaining the optimal result. The vector of encryption round allocation obtained by backtracking is the optimal decision sequence.
[0046] The present invention will be further described below in conjunction with the accompanying drawings.
[0047] Example
[0048] like Figure 1 As shown, an embodiment of the present invention provides a method for balancing computing power and resource consumption, which mainly includes the following two steps:
[0049] The first step is to allocate the optimal number of rounds of RC5 encryption algorithm. The specific steps are as follows:
[0050] Step 11: A sensitive data processing task at the unit level consists of two parts: a regular part and a security service part. Different security encryption strategies of different strengths are assigned to each task according to the operating environment and the needs of the task itself. The higher the encryption strength, the more time the task consumes, and the easier it is for its execution to exceed the time limit. Therefore, a task t i It can be defined as a six-tuple as follows:
[0051] t i ={c i ,P i ,d i ,w i ,τ i ,υ i}
[0052] Among them, c i represents the worst execution time of the regular part, P i Indicates the period of this task, d i The size of the data processed for this task, w i is the weight of the task, τ i is the sum of the worst execution time of the routine part and the safety service part of the task, υ i Represents the safety of the mission;
[0053] Step 12, adopt an encryption method that combines an asymmetric encryption algorithm with a symmetric encryption algorithm. Asymmetric encryption uses the NTRU algorithm, which is a public key encryption technology recommended in the IEEE1363 standard. It has a polynomial computational complexity and is suitable for one-time lightweight encryption. At the same time, in order to reduce security risks, the RC5 encryption algorithm with random dynamic operations is used. Figure 1 As shown, it is the process of NTRU-RC5 joint encryption and decryption;
[0054] Step 13, in the unit-level device, the relationship between computing resources and security between task scheduling and security information encryption algorithm needs to be processed. Figure 2 As shown in FIG. 1 , the sending and receiving process in the unit-level device is shown. Specifically, Figure 3 The figure shows the processing flow at the unit level. The goal of unit-level information flow security hardening is to assign reasonable encryption rounds to RC5 for security information of different weights to minimize the vulnerability of the system. The encrypted information is then processed in other ways;
[0055] Step 14, RC5 performs multiple rounds of encryption on the relevant collected data in the unit-level device task, and the rounds are optimized according to the resources and security requirements of the unit device. RC5 can configure its own encryption strength through three parameters: block length (32, 64 or 128 bits), key length (0 to 2040 bits) and encryption rounds (0 to 255). In order to select a reasonable encryption strategy, it is necessary to weigh the encryption rate and encryption strength to obtain a reasonable encryption strategy, that is, to measure the security strength of the RC5 algorithm, the trade-off between the RC5 encryption rounds and its time consumption;
[0056] Step 15, define information security as the ratio of the number of plaintexts required for a brute force attack to the number of plaintexts required for a differential attack, and take the logarithm of the ratio as the final vulnerability value. Therefore, the vulnerability υ of a plaintext can be expressed as the following calculation formula:
[0057]
[0058] Among them, N b Indicates the number of plaintext, N c represents the number of encryption rounds. Then, we can derive the relationship between the information vulnerability involved in the task and the number of encryption rounds;
[0059] Step 16: The time τ required for unit-level device calculations required for data encryption b (r), defined as the following formula:
[0060] τ b (r) = τ w +rτ r
[0061] where τ w is the time required for the initial work before encryption begins, τ r represents the time required to encrypt a data block in one round, and r is the encryption round. Key expansion is performed only once before encryption or decryption. Assume that the data to be encrypted is large and the overhead of the key expansion process can be ignored. Therefore, the maximum time a task takes is
[0062] τ i =c i +d i τ b (r i )
[0063] r i The encryption rounds for this task;
[0064] Step 17: Based on the analysis of the above steps, the following goals can be summarized:
[0065]
[0066] The constraints are:
[0067]
[0068] Where V represents the vulnerability of the system, n is the number of tasks in the unit, P is the period of all tasks in the system, and P i In other words, each task is executed an integer number of times within the period of P. max is the upper limit of the processor rate available to the unit actuator, r max The upper limit of encryption rounds for sensitive data.
[0069] The second step is to balance the computing power and resource consumption of unit-level information flow security reinforcement optimization based on dynamic programming. The specific steps are as follows:
[0070] Step 21, the optimization problem of balancing computing power and resource consumption can be decomposed into a Markov process with multiple decision stages. If there are n encryption tasks in the system, the problem can be abstracted into a decision process with n stages, each of which includes multiple states, representing different decisions corresponding to this stage. Except for the first stage, each decision is generated by the decision of the previous stage, and each decision is optimal for the past decisions;
[0071] Step 22, the mth state of the i-th stage of the decision process can be defined as a four-tuple:
[0072] S im =(r im ,V im ,U im ,L im )
[0073] Among them, r im represents the encryption round of task i in state i, V im represents the minimum vulnerability of the first i tasks corresponding to state m, U im Indicates the CPU utilization of the first i tasks corresponding to state m, L im Indicates the remaining available CPU resources in this state, that is, the upper limit of the CPU that the current executor can use;
[0074] Step 23, for task i, its CPU utilization μ i Calculated by the following equation:
[0075]
[0076] Therefore, μ i With r i Linearly related. Further, μ i Expressed as μ i (ri ); Similarly, v i Represented as v i (r i );
[0077] Step 24, generating an n-stage decision diagram, mainly representing the process of decision generation and the relationship between decisions;
[0078] Furthermore, a decision graph contains all decision stages and all possible states. Figure 4 As shown, it is an n-stage decision diagram of the multiple sensitive information reinforcement optimization algorithm based on the dynamic programming algorithm of the present invention. A state is usually generated based on the state of the previous stage. A state may generate multiple different states according to multiple different decisions, and different states may generate the same state by different decisions. Different stages have different numbers of states.
[0079] Furthermore, there is only one state in stage n, namely the initial state, and the order of decision graph generation is from stage n to stage 1. According to the previous definition, each stage has its own utilization upper limit. When the decision graph is generated, the upper limit of processor utilization of each state is also generated, and this upper limit is calculated by the following equation:
[0080] L im -μ(r im )=L (i-1)m ,1≤r im ≤r max
[0081] Where L n =U max .
[0082] Step 25, searching the decision graph forward from the decision end point to obtain an optimal decision path. In order to obtain the optimal decision, the decision graph takes all possible decisions into consideration.
[0083] Furthermore, after the decision graph is generated, the optimal decision for all states is calculated from stage 1 forward. According to each state, the optimal decision can be obtained:
[0084]
[0085]
[0086] U im =U (i-1)m +μ(r im ),U 1m =μ(r 1m )
[0087] Among them, V imrepresents the only state in stage 1, i is the code of the stage and satisfies 2≤i≤n. k is the serial number of the state in stage i, and j is the serial number of the state in stage i-1. In this decision-making process, there must be a state sequence that constitutes the optimal decision path, thereby obtaining the optimal result. The vector (r1, r2, …, r n ) is the optimal decision sequence.
[0088] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for balancing computing power and resource consumption, characterized in that: The following steps are involved: The plain text is encrypted by a combination of an asymmetric encryption algorithm and a symmetric encryption algorithm; A unit-level information flow security reinforcement optimization algorithm based on dynamic programming is used to achieve a balance between computing power and resource consumption; The unit-level system security defense architecture has the ability to make self-decision-making, which decomposes the optimization problem into a Markov process with multiple decision-making stages, including the following steps: Set n encryption tasks in the system and abstract the optimization problem into a decision-making process of n stages. Each stage includes multiple states, representing different decisions corresponding to this stage. Except for the first stage, each decision is generated by the decision of the previous stage, ensuring that each decision is optimal for the past decisions. Define a four-tuple, and calculate the CPU utilization based on the encryption round, minimum vulnerability, CPU utilization, and remaining available CPU resources; Implement unit-level information flow security reinforcement optimization based on dynamic programming to achieve a balance between computing power and resource consumption for unit-level information flow security reinforcement optimization based on dynamic programming; Generate an n-stage decision diagram to show the process of decision generation and the relationship between decisions; Search the decision graph forward from the decision endpoint to obtain an optimal decision path.
2. The computing power and resource consumption balancing method according to claim 1, characterized in that: The asymmetric encryption algorithm adopts the NTRU algorithm, and the symmetric encryption algorithm adopts the RC5 encryption algorithm.
3. The method for balancing computing power and resource consumption according to claim 2, characterized in that: The encryption method combining the asymmetric encryption algorithm and the symmetric encryption algorithm comprises the following steps: The NTRU session key encrypts the data plaintext using the RC5 encryption algorithm to obtain the data ciphertext; The NTUR public key performs asymmetrical encryption on the NTRU session key, encapsulates it with the above-mentioned data ciphertext, and transmits it through the channel.
4. The method for balancing computing power and resource consumption according to claim 1, characterized in that: A decision graph contains all decision stages and all possible states; an n-stage decision graph of the unit-level information flow security reinforcement optimization algorithm based on dynamic programming, a state is generated based on the state of the previous stage, a state generates multiple different states according to multiple different decisions, and different states generate the same state by different decisions; different stages have different numbers of states.
5. The method for balancing computing power and resource consumption according to claim 1, characterized in that: There is only one state in stage n, namely the initial state, and the order of decision graph generation is from stage n to stage 1; according to the previous definition, each stage has its own utilization upper limit, and the decision graph is generated while generating the processor utilization upper limit of each state.
6. The method for balancing computing power and resource consumption according to claim 1, characterized in that: After the decision graph is generated, the optimal decision for all states is calculated from stage 1 onwards; the optimal decision can be obtained based on each state, thereby obtaining the optimal result. The vector of encryption round allocation obtained by backtracking is the optimal decision sequence.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for balancing computing power and resource consumption described in any one of claims 1 to 6 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for balancing computing power and resource consumption described in any one of claims 1 to 6 are implemented.
