Electric power data security enhancement method and device based on task collaboration

Through task collaborative grouping and data security protection strategies, the resource management and data security issues in power data security monitoring tasks are solved, efficient task scheduling and safe data migration are achieved, and the overall efficiency and security of power data security monitoring are improved. .

CN118567799AActive Publication Date: 2024-08-30GUANGDONG POWER GRID CO LTD +1

Patent Information

Application Number
CN202410408546.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-07
Publication Date
2024-08-30
Estimated Expiration
2044-04-07

AI Technical Summary

Technical Problem

In power data security monitoring tasks, how to effectively manage computing resources to achieve efficient execution of tasks and security of the data migration process, especially in heterogeneous and dynamic environments, it is difficult for existing technologies to effectively solve resource management and data Security issues.

Method used

An electric power data security enhancement method based on task collaboration is adopted to group tasks through a clustering algorithm and construct an online task collaborative scheduling strategy. Taking response time and load balancing into consideration, tasks are assigned to the most suitable server and a data security protection strategy is designed, including Key generation, encryption and decryption stages ensure the security of data migration.

Benefits of technology

It realizes the intelligent scheduling of power data security monitoring tasks, improves the task response time and the security of the data migration process, effectively utilizes server resources, and ensures the execution of tasks at the best nodes and the security of the data migration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567799A
    Figure CN118567799A
Patent Text Reader

Abstract

The invention discloses an electric power data security enhancement method and device based on task collaboration. The method comprises the steps that a system model of task scheduling is established, all tasks are divided into k groups by using a clustering algorithm according to electric power data security monitoring tasks submitted by a user, and task types are defined according to grouping results to be executed in a classified mode; aiming at data-intensive tasks, constructing an online task collaborative scheduling strategy which takes task response time to be reduced to the maximum extent and keeps load balance among servers as a target function, and distributing online incoming tasks to the most suitable server; wherein under the condition that data migration occurs between the servers according to the collaborative scheduling strategy, the security of the migrated data is protected through the data security protection strategy. According to the method, the isomerism and the processing capacity of the server, the position of the called data and the like are comprehensively considered, and the safety of tasks executed in better server nodes and the safety of data migration and calling processes are effectively guaranteed through efficient and reliable task collaboration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power information security, and in particular to a method and device for enhancing power data security based on task collaboration. The invention can be used for the collaboration of power data security monitoring tasks, and at the same time provide a security solution for the data migration process. Background Art

[0003] With the rapid advancement of the digital transformation of the power industry, the coordination of power data-intensive application tasks has become increasingly prominent, among which data security monitoring applications are a typical example. Data security monitoring task processing requires a large amount of computing resources, but due to the heterogeneity and dynamics of the environment, how to effectively manage resources becomes crucial. Scheduling algorithms are a set of strategies, processes, and rules used to allocate optimal resources for task execution to achieve the goals of service providers and cloud users.

[0004] At present, many scholars have conducted effective research on scheduling algorithms, mainly including efficient cloud environment task allocation based on genetic algorithms (Lai Miao. Research on efficient multi-workflow scheduling algorithm based on genetic algorithm [D]. University of Electronic Science and Technology of China, 2019.), task scheduling and resource optimization allocation based on ant colony optimization algorithm (Yu Shuxiang, Zhou Hongbin. Research on cloud computing task scheduling based on improved ant colony optimization algorithm [J]. Journal of Sichuan Vocational and Technical College, 2019, 29(06): 163-168.), etc. The above methods improve the waiting time and completion time of the task processing process, while slightly reducing the cost, effectively providing users with high-quality services, but most of the above studies focus on resources, especially computing resources.

[0005] Data security monitoring tasks mainly include threat depth detection, security incident source tracing analysis, security threat response and disposal, centralized security situation monitoring, etc., and the above tasks are basically online tasks. By dynamically configuring resources for online data security monitoring tasks, a constant task queue is set for tasks to wait for processing. However, due to the limited storage capacity of the server and the fact that the processing of tasks usually requires the call of related data, not all tasks can be scheduled to run locally, which makes technical research on how to effectively utilize available resources to improve response time challenging. Therefore, a reliable task coordination strategy is needed to effectively ensure the safe and efficient execution of tasks. Summary of the invention

[0006] Purpose of the invention: Aiming at the application requirements of data security monitoring tasks and the shortcomings of current methods, the present invention proposes a method for enhancing power data security based on task collaboration. For tasks submitted by users, tasks are effectively grouped, response time and load balancing are comprehensively considered, and tasks are effectively assigned to server nodes with the best response time through task scheduling strategies to ensure data security monitoring task collaboration; in view of the security issues of data migration in task collaboration, data security is effectively protected by designing data security enhancement strategies.

[0007] Another object of the present invention is to provide a power data security enhancement device based on task collaboration.

[0008] Technical solution: According to a first aspect of the present invention, a method for enhancing power data security based on task collaboration is provided, comprising the following steps:

[0009] A system model for task scheduling is established. The power data security monitoring tasks submitted by users arrive at the servers of different cloud data centers online. All online tasks share resources and data through the servers, and the tasks are executed in a non-preemptive manner. The i-th task t i Includes the following attributes: Memory capacity RAM[t i ]、Required MIPS number CPU[t i ], the total size of all data sets required V[t i ], computational complexity δ[t i ], data access mode S;

[0010] According to the power data security monitoring tasks submitted by users, a power data security monitoring task set T = {t 1 ,t 2 ...t n}, there are n tasks in total. All tasks are divided into k groups using clustering algorithm based on comprehensive attribute dimensions. Task types are defined based on the grouping results, mainly including data-intensive tasks, computing-intensive tasks, and periodic tasks. For computing-intensive tasks, a parallel computing strategy is adopted to decompose the tasks into multiple subtasks for parallel execution; for periodic tasks, a timer scheduler is used to enable tasks to be executed on time; for data-intensive tasks, an online task collaborative scheduling strategy is constructed for execution;

[0011] For data-intensive tasks, we estimate the access time of the required data set and its replicas, the execution time of the task in different servers, and the computing power of each server, and build an online task collaborative scheduling strategy with the objective function of minimizing the task response time while maintaining load balance among servers, so as to assign the online incoming tasks to the most suitable server.

[0012] Among them, when data migration occurs between servers according to the collaborative scheduling strategy, the security of the migrated data is protected by a data security protection strategy, which mainly includes a key generation stage, an encryption stage for encrypting the migrated data, and a decryption stage for decrypting the received encrypted data.

[0013] Furthermore, a clustering algorithm is used to divide all tasks into k groups according to each task attribute, including:

[0014] Initialize and randomly select k tasks from the security monitoring task set T as the initial clustering centers;

[0015] For the cluster center selected by initialization, the distance from all task attributes to each center task attribute is calculated by Euclidean distance. The calculation formula is as follows: where t i For the i-th task, C s is the sth cluster center, m is the dimension of the data object, t ij , C ij t i and C i The j-th attribute value of ;

[0016] Cluster each task into the cluster with the closest center according to the distance to form the clustering result;

[0017] Calculate the clustered class center, that is, the mean of the tasks in each class, as the new class center;

[0018] The above steps are iterated until the clustering result no longer changes, and k grouping tasks are obtained.

[0019] Furthermore, the online task collaborative scheduling strategy for data-intensive tasks is constructed as follows:

[0020] When the task i On server m j In medium scheduling, the objective function is to minimize the response time:

[0021] min RT ij =min(WT ij +TET ij )

[0022] = min(ST ij +Δ ij +DMT ij +DAT ij +ET ij )

[0023] Among them, RT ij Represents task t i Assign to mj Response time, WT ij Indicates waiting time, which is the scheduling time ST ij and delay time Δ ij The sum of the scheduling time ST ij The time between when a task arrives at the queue and when it is scheduled, the delay time Δ ij The time a task waits for a given server to become available; TET ij Indicates the total execution time, which is the data migration time DMT ij , data access time DAT ij and execution time ET ij The sum of the data migration time DMT ij The data access time DAT is the time required for the task to collect all remote data sets locally. ij The time to read all local data sets required for the task, execution time ET ij The time for performing the task;

[0024] The constraints of the objective function are as follows:

[0025]

[0026]

[0027] Load min ≤Load j ≤Load max (3)

[0028] The constraint of formula (1) ensures that m j The amount of RAM remaining in task t exceeds i The amount of RAM requested, where TP j is m j List of tasks running in ;

[0029] The constraint of formula (2) ensures that when task t k Currently m j Data migration and d l When it is a remote dataset, m j There is enough storage space to store t i The required data, where D represents a set of data sets on the server, d l is the lth data set, v l is an integer value indicating the capacity of the lth data set; V[t k ] is an integer value, indicating that task t k The total size of all required datasets; is the distribution matrix of data sets to servers, and its element values ​​are: fli is the indicator function of the data set assigned to the task, and its value is: sc j Indicates server m j Storage capacity;

[0030] The constraint of formula (3) ensures the system load balance, so that server m j Load j should be included in the two given thresholds Load min and Load max between.

[0031] Furthermore, the execution steps of the online task collaborative scheduling strategy include:

[0032] Estimate the response time matrix RT of all incoming tasks in the server queue. The RT matrix contains the task t i The allocation to server m j Response time RT ij ;

[0033] Sort the elements of the response time matrix RT in ascending order to generate a preference list PL for task-to-server assignment. The elements of PL are determined by task t i 、Server m j And its corresponding response time RT ij The triplet representation of: PL = {pl k}=[(t i ,m j ,RT ij )], if t i Assign to m j , the first element of the list PL (plL 1 ) is the minimum response time;

[0034] Perform task selection and assignment as follows:

[0035] Input available servers M, the task groups arriving in queue Q, and the preference list PL. Through the preference list PL, i Assign to m j When the response time RT is the lowest, ij The first element pl 1 , in the i Assign to m j After, m j Marked as t i The best allocation of

[0036] Update the status, including the availability of the server and the tasks in the waiting queue Q and the preference list PL;

[0037] Repeat the above steps to select a group of tasks from the queue and assign them to the most suitable server according to the waiting time, data migration time, overall execution time and server load of a group of tasks.

[0038] Furthermore, when estimating the response time matrix RT of the task, the fitness φ is calculated ij Come check m j Can it carry t i , with UR ij To express t i The CPU usage rate and fitness status are as follows:

[0039] φ ij = -1, if UR ij Greater than 1;

[0040] φ ij =1, if and only if UR ij No more than 1,m j The remaining storage capacity in can accommodate t i The total amount of data required; m j Load min and Load max threshold, and m j The remaining RAM in should be greater than RAM[t i ];

[0041] φ ij =0, if m j Not enough CPU or / and not enough RAM to perform the task i , or / and m j The storage capacity cannot store the data required remotely. i or / and m j The data set is overloaded or underloaded;

[0042] When calculating the total response time matrix of each task, the corresponding processing method is as follows:

[0043] If φ ij =-1, server m j Unable to host task due to lack of CPU i , and no action can be taken, in which case the scheduler moves to the next server;

[0044] If φ ij = 0, due to insufficient RAM or / and storage space or / and m j Overload or underload, server m j Unable to carry out the task i , the task can be delayed and wait for these conditions to be verified and completed mj In this case, the delayed scheduling technique is used to make task t i You can wait for the delay time Δ ij , so that m j The resources are available again for task t i use;

[0045] If φ ij =1, then server m j Task t can be executed without constraint violation and delay time i .

[0046] Furthermore, in m j The storage space is not enough to store t i In the case of a required dataset, the dependency between the task and the dataset depends on k and the number of existing copies of the dataset repl k Select a set of data from m j Delete from the k Defines the number of unfinished tasks in the queue that need m j How many duplicate data sets are there, repl k Defines every dataset currently available in the entire system k The number of replicas is determined by checking each server m j Whether to k Store as a copy, each time you identify d k When the copy of repl k The value of is increased by one.

[0047] Furthermore, the delay time Δ ij The calculation is as follows: According to the expected completion time, server m j The tasks in are sorted in ascending order, and the sorting result is located at Q' j Then traverse each task in Q' to verify when t is reached i The fitness of Q' j Each task t in k , get its remaining execution time RET k ,RET k Add to delay time Δ ij ; Then update m j of RAM, storage capacity, and load to add t k The consumed RAM, storage capacity, and load values ​​are repeated until m is reached. j and t i The fitness of the final accurate delay time Δ ij .

[0048] Furthermore, the data migration time is calculated as follows: i The remote required dataset is migrated from its remote location to m j The time required is first to check t for each data set i Do you need d k and k Whether to not store locally j If yes, you need to k Migrate, find all its locations, calculate d k Migrate from each of its locations to m j The time required, and finally select the position m with the smallest migration time l .

[0049] Furthermore, the calculation of data access time includes: the access time consumed locally by all data is calculated by DAT ij Indicates that the calculation is in m j Medium i The data access time for k∈D is i Each data d required for which data locality is not achieved k , if f ki =1, then v k is the data size, r j The data reading speed.

[0050] According to a second aspect of the present invention, there is provided a power data security enhancement device based on task collaboration, comprising:

[0051] The scheduling system model building module is configured to establish a system model for task scheduling. The power data security monitoring tasks submitted by users arrive at the servers of different cloud data centers in an online manner. All online tasks share resources and data through the servers, and the tasks are executed in a non-preemptive manner. The i-th task t i Includes the following attributes: Memory capacity RAM[t i ]、Required MIPS number CPU[t i ], the total size of all data sets required V[t i ], computational complexity δ[t i ], data access mode S;

[0052] The task grouping module is configured to establish a power data security monitoring task set T = {t 1 ,t 2 ...t n}, there are n tasks in total. All tasks are divided into k groups using clustering algorithm based on comprehensive attribute dimensions. Task types are defined based on the grouping results, mainly including data-intensive tasks, computing-intensive tasks, and periodic tasks. For computing-intensive tasks, a parallel computing strategy is adopted to decompose the tasks into multiple subtasks for parallel execution; for periodic tasks, a timer scheduler is used to enable tasks to be executed on time; for data-intensive tasks, an online task collaborative scheduling strategy is constructed for execution;

[0053] The task collaborative scheduling module is configured to estimate the access time of the required data set and its replicas, the execution time of the task in different servers, and the computing power of each server for data-intensive tasks, and to construct an online task collaborative scheduling strategy with the objective function of minimizing the task response time while maintaining the load balance among the servers, so as to allocate the online incoming tasks to the most suitable server;

[0054] The data security protection module is configured to protect the security of migrated data through a data security protection strategy when data migration occurs between servers according to a collaborative scheduling strategy. The data security protection strategy mainly includes a key generation stage, an encryption stage for encrypting the migrated data, and a decryption stage for decrypting the received encrypted data.

[0055] According to a third aspect of the present invention, there is provided a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method for enhancing power data security based on task collaboration as described in the first aspect are implemented.

[0056] Beneficial effects: The present invention provides an efficient task intelligent collaboration technology for power data security monitoring in a cloud computing environment. For tasks submitted by users, the technology effectively groups tasks, comprehensively considers response time and load balancing, and effectively allocates tasks to nodes with optimal response time through task scheduling strategies, thereby realizing intelligent scheduling of power data security monitoring tasks and ensuring data security monitoring task collaboration. In view of the security issues of data migration in task collaboration, the technology effectively ensures the security of the task scheduling process by designing a data security enhancement strategy. The present invention comprehensively considers the heterogeneity and processing power of servers, the location of call data, etc., and effectively ensures the security of task execution in better nodes and the data migration call process through efficient and reliable task collaboration. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 It is an overall flow chart of the power data security enhancement method based on task collaboration;

[0058] Figure 2 It is a flow chart of task collaborative scheduling strategy;

[0059] Figure 3 It is a flow chart of computing task response time. DETAILED DESCRIPTION

[0060] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings.

[0061] Reference Figure 1 The present invention proposes a method for enhancing power data security based on task collaboration, which mainly includes: task collaborative grouping, online task collaborative scheduling, and data security protection.

[0062] The task collaboration of the present invention is mainly aimed at heterogeneous servers, and the server is represented as follows: M = {m i} A group of servers, where m i represents the i-th server; sc i Is an integer value representing the server m i Storage capacity (MB); i Is a floating point value representing the server m i Read speed (MB / s); w i Is a floating point value representing the server m i Write speed (MB / s); RAM [m i ] is an integer value indicating server m i Available memory capacity (MB); N_CPU[m i ] is the server m i The number of cores; P_CPU[m i ] is an integer value indicating server m i CPU performance per core (MIPS); b ij Is an integer value representing the server m i and m j The connection bandwidth between (MB / s); ij Is the server m i and m j The basic data transmission time between is defined as:

[0063]

[0064] PP[m i ] is an integer value indicating server m i Processing power (MIPS). PP[m i ] is m i The total CPU usage is calculated as follows:

[0065] pp[m i ]=N_CPU[m i]×P_CPU[m i ]

[0066] Where N_CPU[m i ] is m i The number of cores, P_CPU[m i ] is m i Medium per-core CPU performance.

[0067] For the power data security monitoring tasks submitted by users (threat depth detection, security incident tracing analysis, security threat response and disposal, centralized security situation monitoring, etc.), they are delivered online to servers in different cloud data centers. All online tasks share resources and data through servers, and tasks are executed in a non-preemptive manner. There is a certain similarity in the sharing of resources and data between each task, and then tasks are collaboratively grouped according to the computing and storage requirements between tasks, which can reduce the amount of data transmission during the dynamic allocation of tasks to a certain extent and ensure the efficiency of task collaboration.

[0068] The definition of each task is as follows: T = {t i} is a set of tasks, where t i is the i-th task; l i is an integer value specifying the length of the ith task (in millions of instructions—MI); RAM[t i ] is an integer value, indicating that task t i Required memory capacity (MB); CPU [t i ] is an integer value, indicating that task t i The number of MIPS required: V[t i ] is an integer value, indicating that task t i The total size of all data sets required; δ[t i ] represents the computational complexity of the i-th task; α i It is the task i The final server m αi The allocation index of i Is a decimal value indicating t i Arrival time; UR ij is the CPU utilization, which is used to determine the server m j Are there enough resources to support the mission? i When designing task coordination scheduling, load balancing is an important key aspect. For this purpose, the workload of each server is defined as follows:

[0069]

[0070] Where Load[m i ] indicates server mi The percentage of overload or underload. j ] is an integer value specifying the tth j The length of a task (in millions of instructions—MI). i ] is an integer value indicating server m i of processing power (MIPS).

[0071] Set the power data security monitoring task set T = {t 1 ,t 2 ...t n There are n tasks in total, each of which is i There are 5 properties, mainly including RAM[t i ]、CPU[t i ]、V[t i ],δ[t i ], data access mode S.

[0072] The main data access modes are: sequential access, random access, batch access, interactive access, periodic access, and real-time access.

[0073] Sequential access: In data-intensive tasks, data may be accessed in a sequential manner, reading or processing data in a data set one by one. For example, in a data security monitoring task, data in a log file may need to be read sequentially for analysis.

[0074] Random access: Some computationally intensive tasks may require accessing data in a random manner, that is, jumping directly to a specific location to read or write data as needed, rather than accessing it sequentially. For example, in data analysis tasks, you may need to randomly access certain records or fields in a dataset.

[0075] Batch access: Data analysis tasks often access data in batches, that is, reading or processing multiple data items or records at a time to improve efficiency. For example, in data mining tasks, you may need to process a large amount of data in batches to discover hidden patterns or regularities.

[0076] Interactive access: Some tasks require real-time interaction with users, accessing and processing data in real time according to user requests. For example, in interactive data analysis tasks, users may need to interact with the system in real time through the interface, and perform data query and analysis based on user input.

[0077] Periodic access: Periodic tasks usually access data at fixed time intervals, such as scheduled tasks or periodic data backup tasks. This access mode ensures that tasks are executed at the scheduled time and data is processed on time.

[0078] Real-time access: Real-time tasks require real-time access and processing of data to ensure that the system can respond to events or requests in a timely manner. For example, in real-time data processing tasks, streaming data needs to be processed in real time and the results generated in a timely manner.

[0079] The power data security monitoring tasks are grouped by clustering algorithm. The purpose of grouping is to find a division of the task set so that tasks with strong correlation are clustered together to form a classification category. The clustering algorithm process is as follows: First, initialize and randomly select k tasks from the security monitoring task set T as the initial clustering center; then cluster the tasks, and for the clustering center selected by initialization, calculate the distance from all task attributes to each center task attribute through Euclidean distance. The calculation formula is as follows:

[0080]

[0081] where t i For the i-th task, C s is the sth cluster center, m is the dimension of the data object, t ij , C ij t i and C i The j-th attribute value of .

[0082] Cluster each task into the class with the closest center to it to form the clustering result; calculate the clustered class center, that is, the mean of the tasks in each class, as the new class center; iterate until the clustering result no longer changes, thus completing the grouping of tasks and obtaining k grouped tasks.

[0083] After the tasks generated by the clustering algorithm are grouped, different task types are defined, mainly including data-intensive tasks, computationally intensive tasks, periodic tasks, etc.

[0084] Data-intensive tasks: This type of task usually requires a large amount of data reading, processing, and storage operations. In the field of power data security monitoring, data-intensive tasks may involve the collection, storage, and analysis of large amounts of real-time data. Based on the characteristics of this type of task, the clustering category of data-intensive tasks can be defined as those tasks with high requirements for memory and data access patterns.

[0085] Computation-intensive tasks: This type of task requires a lot of computing resources to execute complex algorithms or models. In the field of power data security monitoring, computation-intensive tasks may involve complex analysis, simulation or prediction of data. Based on the characteristics of this type of task, the clustering category of computation-intensive tasks can be defined as those tasks with high CPU resource and computing requirements.

[0086] Periodic tasks: This type of task has the characteristics of periodic execution, such as regular execution, time-triggered, etc. In the field of power data security monitoring, periodic tasks may involve regular detection of the power system, report generation, etc. Based on the characteristics of this type of task, the clustering category of periodic tasks can be defined as those with obvious periodic execution patterns or time-triggered tasks.

[0087] For the centroids after grouping, if the centroid is a task with high requirements for memory and data access patterns, the group is classified as a data-intensive task; if the centroid is a task with high requirements for CPU resources and computing, it is classified as a data-intensive task; the others are classified as periodic tasks.

[0088] For computationally intensive tasks, a parallel computing strategy is adopted to decompose the task into multiple subtasks for parallel execution to improve the computing efficiency of the system; for periodic tasks, a timed scheduler is used to ensure that the task can be executed on time; parallel computing and timed schedulers can be implemented using existing technologies. For data-intensive tasks, an online task collaborative scheduling strategy is constructed for execution.

[0089] The overall idea of ​​the online task collaborative scheduling strategy is as follows: the task first arrives at the waiting queue Q, then the task enters the processing stage, and after calculating the response time RT matrix of all tasks in the queue, a preference list PL for assigning tasks to servers is generated, and the potential association between tasks and available servers is generated. The elements of the matrix RT are sorted in ascending order, and then the tasks are selected and assigned.

[0090] Specifically, the task collaborative scheduling method is as follows:

[0091] Assume that a fixed number of data sets are initially stored on the server. i} is a set of data sets, where d i is the i-th data set; v i is an integer value specifying the capacity of the i-th data set (in MB); is the dataset-to-server allocation matrix. The matrix is ​​calculated as follows:

[0092]

[0093] F={f ij} is to assign data sets to task matrices. The matrix F is set because a task may require one or more data sets to perform, and many tasks may use the same data set. The matrix F is generated as follows:

[0094]

[0095] For a given dataset d iThere are two main usage modes: local usage and remote usage. Local usage means that the data and the data security monitoring task are on the same server node, and the data is accessed locally; remote usage means that the required data is stored in a server node different from the node where the task is located. In this case, the data needs to be migrated from a remote location, which increases the data migration time DMT. ij is to i All required data sets are moved from their locations to m j Time (m j t i assigned location).

[0096] When tasks are executed in a distributed environment, an online task collaborative scheduling strategy is needed to reduce the data transmission size and execution cost, so as to quickly and effectively establish and run work tasks. For different grouping tasks, the access time of the required data set and its replicas, the execution time of the task in different servers, and the computing power of each server are comprehensively considered, and the online incoming tasks are effectively assigned to the available servers through online task collaborative scheduling. The objective function of online task collaborative scheduling is to seek effective task scheduling, minimize task response time, and maintain load balancing of nodes.

[0097] The above task response time is a key decision parameter for data security monitoring tasks. Task collaborative scheduling should comprehensively consider the time for data migration and replication management. Data migration is to ensure that data is available at the right time and in the right place to meet task requirements. Data replication refers to creating multiple copies of data and storing them on different servers in the computing environment, effectively ensuring that the data is highly available and can be quickly accessed when a server fails or the service is interrupted. In order to reduce task response time, it is best to schedule tasks on servers that store all or most of the required data sets to ensure the best data migration time.

[0098] In order to ensure the best task response time, task data locality should be sought as much as possible to effectively reduce the time required for data migration. Data locality mainly includes three situations: the task is placed directly in the server that contains all its required data; the task is placed in a remote server, resulting in the shortest data migration time; the task is delayed and then another server becomes available through data migration. When data is migrated to a new location, a new copy of the data is generated on the system, called replicated data. In general, data replication increases the availability of data, thereby achieving more data locality and reducing the response time of the next incoming task. After task grouping, online task collaborative scheduling effectively reduces the time required for each group of tasks from the moment they arrive in the queue to the time they complete execution through data locality methods, data migration methods, and delayed scheduling.

[0099] The combination of overall indicators mainly includes: scheduling time (ST), delay time (Δ), waiting time (WT), data migration time (DMT), data access time (DAT), execution time (ET), total execution time (TET), response time (RT). Scheduling time (ST) is the time between the task arriving at the queue and being scheduled; delay time (Δ) is the time the task waits for a given server to be available; waiting time (WT) is the sum of scheduling time (ST) and delay time (Δ); data migration time (DMT) is the time the task needs to collect all remote required data sets locally; data access time (DAT) is the time the task needs to read all locally required data sets; execution time (ET) is the time to execute the task; total execution time (TET) is the sum of data migration time (DMT), data access time (DAT) and execution time (ET); response time (RT) is the sum of waiting time (WT) and total execution time (TET).

[0100] When the task i In m j When scheduling in the middle, the problem of reducing response time is stated as:

[0101] minRT ij =min(WT ij +TET ij )

[0102] = min(ST ij +Δ ij +DMT ij +DAT ij +ET ij )

[0103] The constraints for the above objective function are as follows:

[0104]

[0105] The constraint of this formula ensures that m j The amount of RAM remaining in task t exceeds i Required RAM request amount (TP j is m j list of tasks running in .

[0106]

[0107] The constraint of this formula ensures that during data migration (t k Currently m j d l When it is a remote dataset, m j There is enough storage space to store t i Required data.

[0108] Load min ≤Load j ≤Load max

[0109] The constraint of this formula ensures that the system load is balanced, so that server m j The load should be included in the two thresholds (Load min and Load max ) to avoid underload and overload nodes (respectively). min The default value is set to 75% CPU usage, which will max The value is set to 25% CPU usage.

[0110] The main steps for the above task scheduling strategy are as follows Figure 2 As shown, the details are as follows:

[0111] Step a. Estimate the response time matrix of incoming tasks in all server queues;

[0112] Step b. Generate a preference list for assigning tasks to servers;

[0113] Step c. Select and assign tasks;

[0114] Step d. Update the status (availability of the server and the tasks in the waiting queue Q). Server m i The task being processed is TP i , the tasks waiting to be processed in the server are queue Q.

[0115] Repeat the above steps for a group of tasks in the queue, and select a group of tasks from the queue to assign to the most suitable server based on the waiting time, data migration time, overall execution time and server load of a group of tasks.

[0116] Furthermore, the response time matrix RT of each task in all server queues is calculated for the above step a. The RT matrix contains the response time matrix of each task t i The response time R ij (If it is assigned to server m j ).like Figure 3 As shown, for each task t in queue Q i , traverse the server group to estimate RT ij , that is, task t i Assign to m j The response time is calculated by calculating the fitness φ ij Come check m j Can it carry t iThe response time RT is then calculated based on four main costs ij .

[0117] Furthermore, for the above fitness calculation, indicators such as RAM quantity, storage capacity and CPU utilization (UR) are used to represent t i Can it be assigned to server m j , if m j Unable to carry t i , then directly discard m j . Remember UR ij Yes i CPU usage (in m j The calculation method is as follows:

[0118]

[0119] Among them, PP[m j ] is the server m j processing capabilities.

[0120] Server load determines whether a server is overloaded or underloaded and is calculated as follows:

[0121]

[0122] Computational task t i On server m j The fitness in has the following three response states:

[0123] 1.φ ij = -1, if UR ij Greater than 1;

[0124] 2.φ ij =1, if and only if UR ij No more than 1,m j The remaining storage capacity in can accommodate t i The total amount of data required; m j Load min and Load max threshold, and m j The remaining RAM in should be greater than RAM[t i ];

[0125] 3.φ ij =0, if m j Not enough CPU or / and not enough RAM to perform the task i , or / and m j The storage capacity cannot store the data required remotely. i or / and m jThe data set is overloaded or underloaded.

[0126] The fitness status obtained above is returned to the calculation of the total response time matrix of each task in queue Q to handle three different fitness situations:

[0127] φ ij = -1, first check the first case, server m j Unable to host task due to lack of CPU i , and no action can be taken, in which case the scheduler moves to the next server;

[0128] φ ij = 0, due to insufficient RAM or / and storage space or / and m j Overload or underload, server m j Unable to carry out the task i , in which case the task can be delayed and wait for these conditions to be verified and completed. j In this case, the delayed scheduling technique makes task t i Can wait for delay Δ ij , so that m j The resources are available again for task t i use.

[0129] φ ij =1, server m j Task t can be executed without constraint violation and delay time i .

[0130] Furthermore, it also includes: in m j The storage space is not enough to store t i In the case of a required dataset, based on the dependency between the task and the dataset (depend k ) and the number of existing copies of the dataset (repl k ) Select a set of data from m j Delete from k To define the number of unfinished tasks in the queue j How many duplicate data sets are there, repl k Defines every dataset currently available in the entire system k The number of replicas. By checking each server m j Whether to k Store as a copy, each time you identify d k When the copy of repl k The value will be increased by one.

[0131] Since there is a possibility of multiple replications, only the data sets that exceed the maximum number of replications of 3 are deleted. Select depend k The lowest d i That is, the least d used in the unfinished task i If there are multiple datasets with the same dependency factor, the dataset with the highest repl is considered for deletion in turn until the deleted space is larger than the requested size, thus freeing up the storage space required for the dataset to be migrated to execute.

[0132] Regarding the migration time, once the appropriate server m is calculated j Scheduling appropriate tasks in i The fitness can be calculated to start the migration time DMT ij , to estimate t i In m j The response time in t is calculated. i The remote required dataset is migrated from its remote location to m j The time required is first checked for each data set. i Do you need d k and k Whether to not store locally j If yes, you need to k Migrate, find all its locations, calculate d k Migrate from each of its locations to m j The time required, and finally select the position m with the smallest migration time l . Migration depends on data (v k ) size, consists of three processes:

[0133] (1) From remote node m l Read k , the reading speed is r l ;

[0134] (2) d k Write to local node m j , the writing speed is w j :

[0135] (3) With a transmission rate of b lj The bandwidth will be k From m l Transfer to m j .

[0136] Computational task t i Required k From position m l Migrate to local node m j Time The calculation is as follows:

[0137]

[0138] For t i Each data d required for which data locality is not achieved k , by calculating its distance from all existing locations to the local server m j Migration time τ ij (k,:), then select d k The best position for migration. By replacing the vector τ ij Sort (k,:) in ascending order and select the first element σ ij (k,0), which gives the k And migration time Best server with shortest m s Before continuing with the next data set, Add to DMT ij Value, among which DMT ij Will affect t i All remote datasets are migrated to m j The total time required.

[0139] A task must access and use the data it needs to complete its execution, otherwise the task will fail. The access time consumed by all data locally is calculated by DAT ij Indicates. Calculated in m j Medium i The data access time for k∈D is i Each data d required for which data locality is not achieved k , if f ki =1, then Finally, DAT is calculated ij , and returns its value to be included in the response time RT ij middle.

[0140] Due to insufficient storage space, RAM, or server load, a given server m j May not be suitable for t i This incompatibility may be resolved if the execution of the task is postponed by delay scheduling. i The delay time (Δ ij ) until server m j The resources are available again.

[0141] Δ ij The measurement is performed as follows. First, the server m is measured according to the expected completion time. j The tasks in are sorted in ascending order. The sorting result is located in the jThen traverse each task in Q' to verify when t is reached i For Q' j Each task t in k , get its remaining execution time (RET k ). k Add to delay time Δ ij ; Then update m j of RAM, storage capacity, and load to add t k The goal is to check if this updated state allows to free up more RAM and / or storage and / or server m j load on it so that it receives the relevant task t i . Repeat the process until m is reached j and t i Finally, we receive the exact delay time Δ ij , then in task t i The response time m j This delay time is taken into account.

[0142] After obtaining the response time matrix RT of all tasks in the queue, a preference list PL for task-to-server assignment is generated to generate potential associations between tasks and available servers. To generate the preference list PL, sort the elements of the matrix RT in ascending order. The elements of PL are determined by the task t i 、Server m j And its corresponding response time RT ij The triple representation of is as follows:

[0143] PL = {pl k}=[(t i ,m j ,RT ij )]

[0144] If t i Assign to m j , the first element of the list PL (plL 1 ) is the minimum response time.

[0145] According to the above steps, a set of tasks are selected and allocated. Task selection can not only select tasks with the best response time, but also make full use of all available servers, effectively achieving the goal of minimizing response time and effectively utilizing resources. For the task selection process, the first step is to input the available servers M, the task groups arriving in the queue Q, and the preference list PL. Then, through the preference list PL, after t i Assign to m j When the response time RT is the lowest,ij The first element pl 1 . i Assign to m j After, m j Marked as t i The best allocation.

[0146] Vector α=(α 1 ,α 2 ...,α j ) is used to describe the index of the final task assignment, where α i is the assigned task t i The index of the server hosting task t i The best server is Afterwards, four update operations are performed:

[0147] 1. Delete m j Update available server M;

[0148] 2. Update m j The characteristics of Subtract t from the total RAM i The RAM occupied by the i Modification of the amount of data to be migrated Storage capacity, t i Use load to add Total load;

[0149] 3. Delete the assigned task i To update the queue Q of incoming tasks;

[0150] 4. Delete the tasks involved i or server m j Update the preference list PL with all triples of .

[0151] Update PL to avoid rescheduling already assigned tasks and do not use servers that have already been assigned tasks. Repeat the whole process until the preference list is empty, which means there are no tasks available in the queue, or all servers are used for tasks in the queue. In this case recheck the queue and repeat the calculation of the response time matrix, etc.

[0152] Aiming at the data loss problem faced by data migration in the collaborative process of power data security monitoring tasks, the present invention proposes a data security protection strategy. By providing a secure and reliable cryptographic key, sensitive information and private data are protected from being obtained by unauthorized users. That is, it is ensured that only authorized users can perform data migration operations, and the user's identity is authenticated to ensure the legitimacy of his identity.

[0153] Specifically, in the process of scheduling data-intensive tasks such as data security monitoring tasks, the content involved in data migration usually includes:

[0154] Monitoring data: Data security monitoring tasks usually require processing and analysis of a large amount of monitoring data. These monitoring data may include log files, network traffic data, system event records, etc.

[0155] Data analysis models and rules: models and rules for analyzing and processing monitoring data. These models and rules may include data mining algorithms, machine learning models, rule engines, etc., which are used to detect abnormal behaviors, identify threats, etc.;

[0156] Historical data: historical data used to train and verify data analysis models and rules. This historical data may include known security incidents, attack samples, malware, etc.

[0157] Security policies and profiles: Security policies and profiles used to configure and manage security monitoring systems. These policies and profiles include firewall rules, intrusion detection system configurations, access control lists, etc.

[0158] Report and result data: Report and result data generated after security monitoring tasks are processed. These data include security incident reports, anomaly detection results, threat analysis reports, etc.

[0159] The frequency of data migration depends on the specific task requirements. In some cases, data migration may be more frequent, especially in distributed systems where data movement may occur frequently, such as when load balancing or data replication between nodes. In other cases, data migration may be less frequent and only occur during system maintenance, data migration, backup, and other operations.

[0160] Sensitive privacy needs, transmission security, data compliance and integrity requirements need to be considered during data migration.

[0161] Data sensitivity: If the data contains sensitive information, such as personal identity information, it is necessary to encrypt the data during the data migration process to prevent data leakage or tampering.

[0162] Data transmission channel security: Even if the data is not sensitive, it is recommended to encrypt the data when it passes through an insecure network channel during data transmission to prevent the data from being stolen or tampered with.

[0163] Compliance requirements: Power industry data itself is relatively important data, and sensitive data is encrypted to meet data security and compliance requirements.

[0164] Data integrity: Encryption not only protects the confidentiality of data, but also ensures the integrity of the data, that is, preventing the data from being tampered with during data transmission.

[0165] The data security protection strategy mainly includes three important stages, namely the key generation stage, the encryption stage and the decryption stage. For the above key generation process, a set of private keys and public keys are created for each legitimate user who performs data migration operations in the asymmetric key cryptographic system, where one key is used for decryption and another key is used for encryption. The key generation process is as follows:

[0166] 1. a, b, c and d are four different prime numbers selected, that is, a≠b≠c≠d;

[0167] 2. R = a × b and S = c × d;

[0168] 3. and Then create the master number;

[0169] 4. Select two public keys from Select T2 from In finding these values, the following conditions must be met: T1)=1; T1)=1;

[0170] 5. Use the extended Euclidean algorithm to establish L1 and L2 private keys.

[0171] For the encryption stage, modular exponential technology is used to encrypt secret data using two different public keys P1 and P2. From the above equation, ζ and ρ represent the encrypted secret data and the secret data, respectively.

[0172] For the decryption process, the received secret data is decrypted by using the two private keys using the modular exponentiation technique as described above:

[0173]

[0174] In the process of data-intensive task scheduling, data migration involves migrating the above data from the storage location to the server or computing node that executes the task so that the task can access and process the data. The purpose of data migration is to ensure that the task can effectively analyze and process the required data, thereby improving the efficiency and accuracy of task execution. At the same time, it is necessary to consider the security and integrity of the data and take corresponding security measures during the data migration process to ensure that the data is not tampered with or leaked.

[0175] Based on the same inventive concept as the method embodiment, the present invention also provides a power data security enhancement device based on task collaboration, comprising:

[0176] The scheduling system model building module is configured to establish a system model for task scheduling. The power data security monitoring tasks submitted by users arrive at the servers of different cloud data centers in an online manner. All online tasks share resources and data through the servers, and the tasks are executed in a non-preemptive manner. The i-th task t i There are 5 properties, including memory capacity RAM[t i ]、Required MIPS number CPU[t i ], the total size of all data sets required V[t i ], computational complexity δ[t i ], data access mode S;

[0177] The task grouping module is configured to establish a power data security monitoring task set T = {t 1 ,t 2 ...t n}, there are n tasks in total. Clustering algorithm is used to divide all tasks into k groups based on five attribute dimensions. Task types are defined based on the grouping results, mainly including data-intensive tasks, computing-intensive tasks, and periodic tasks. For computing-intensive tasks, parallel computing strategies are adopted to decompose tasks into multiple subtasks for parallel execution; for periodic tasks, a timer scheduler is used to enable tasks to be executed on time; for data-intensive tasks, an online task collaborative scheduling strategy is constructed for execution;

[0178] The task collaborative scheduling module is configured to estimate the access time of the required data set and its replicas, the execution time of the task in different servers, and the computing power of each server for data-intensive tasks, and to construct an online task collaborative scheduling strategy with the objective function of minimizing the task response time while maintaining the load balance among the servers, so as to allocate the online incoming tasks to the most suitable server;

[0179] The data security protection module is configured to protect the security of migrated data through a data security protection strategy when data migration occurs between servers according to a collaborative scheduling strategy. The data security protection strategy mainly includes a key generation stage, an encryption stage for encrypting the migrated data, and a decryption stage for decrypting the received encrypted data.

[0180] It should be understood that the data security enhancement device in the embodiment of the present invention can implement all the technical solutions in the above-mentioned method embodiment, and the functions of its various functional modules can be specifically implemented according to the methods in the above-mentioned method embodiments. The specific implementation process can refer to the relevant description in the above-mentioned embodiments, which will not be repeated here.

[0181] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the power data security enhancement method based on task collaboration as described above are implemented.

[0182] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices (systems), computer equipment or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0183] The present invention is described with reference to a flowchart of a method according to an embodiment of the present invention. It should be understood that each process in the flowchart and a combination of processes in the flowchart can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A device that specifies functions in a process or multiple processes.

[0184] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A function specified in a process or multiple processes.

[0185] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 The steps of a specified function in a process or multiple processes.

Claims

1. A method for enhancing power data security based on task collaboration, characterized in that: The following steps are involved: A system model for task scheduling is established. The power data security monitoring tasks submitted by users arrive at the servers of different cloud data centers online. All online tasks share resources and data through the servers, and the tasks are executed in a non-preemptive manner. The i-th task t i Includes the following attributes: Memory capacity RAM[t i ]、Required MIPS number CPU[t i ], the total size of all data sets required V[t i ], computational complexity δ[t i ], data access mode S; According to the power data security monitoring tasks submitted by users, a power data security monitoring task set T = {t1, t2...t n }, there are n tasks in total. All tasks are divided into k groups using clustering algorithm based on comprehensive attribute dimensions. Task types are defined based on the grouping results, mainly including data-intensive tasks, computing-intensive tasks, and periodic tasks. For computing-intensive tasks, a parallel computing strategy is adopted to decompose the tasks into multiple subtasks for parallel execution; for periodic tasks, a timer scheduler is used to enable tasks to be executed on time; for data-intensive tasks, an online task collaborative scheduling strategy is constructed for execution; For data-intensive tasks, we estimate the access time of the required data set and its replicas, the execution time of the task in different servers, and the computing power of each server, and build an online task collaborative scheduling strategy with the objective function of minimizing the task response time while maintaining load balance among servers, so as to assign the online incoming tasks to the most suitable server. Among them, when data migration occurs between servers according to the collaborative scheduling strategy, the security of the migrated data is protected by a data security protection strategy, which mainly includes a key generation stage, an encryption stage for encrypting the migrated data, and a decryption stage for decrypting the received encrypted data.

2. The method according to claim 1, characterized in that Use clustering algorithm to divide all tasks into k groups according to each task attribute, including: Initialize and randomly select k tasks from the security monitoring task set T as the initial clustering centers; For the cluster center selected by initialization, the distance from all task attributes to each center task attribute is calculated by Euclidean distance. The calculation formula is as follows: where t i For the i-th task, C s is the sth cluster center, m is the dimension of the data object, t ij , C ij t i and C i The j-th attribute value of ; Cluster each task into the cluster with the closest center according to the distance to form the clustering result; Calculate the clustered class center, that is, the mean of the tasks in each class, as the new class center; The above steps are iterated until the clustering result no longer changes, and k grouping tasks are obtained.

3. The method according to claim 1, characterized in that The online task collaborative scheduling strategy for data-intensive tasks is constructed as follows: When the task i On server m j In medium scheduling, the objective function is to minimize the response time: <h2 style=";text-align:left;direction:ltr">minRT<h2 style=";text-align:left;direction:ltr"> ij <h2 style=";text-align:left;direction:ltr"> =min(WT<h2 style=";text-align:left;direction:ltr"> ij <h2 style=";text-align:left;direction:ltr"> +TET<h2 style=";text-align:left;direction:ltr"> ij <h2 style=";text-align:left;direction:ltr"> ) =min(ST ij +Δ ij +DMT ij +THAT ij +ET ij ) Among them, RT ij Represents task t i Assign to m j Response time, WT ij Indicates waiting time, which is the scheduling time ST ij and delay time Δ ij The sum of the scheduling time ST ij The time between when a task arrives at the queue and when it is scheduled, the delay time Δ ij The time a task waits for a given server to become available; TET ij Indicates the total execution time, which is the data migration time DMT ij , data access time DAT ij and execution time ET ij The sum of the data migration time DMT ij The data access time DAT is the time required for the task to collect all remote data sets locally. ij The time to read all local data sets required for the task, execution time ET ij The time for performing the task; The constraints of the objective function are as follows: Load min ≤Load j ≤Load max (3) The constraint of formula (1) ensures that m j The amount of RAM remaining in task t exceeds i The amount of RAM requested, where TP j is m j List of tasks running in ; The constraint of formula (2) ensures that when task t k Currently m j Data migration and d l When it is a remote dataset, m j There is enough storage space to store t i The required data, where D represents a set of data sets on the server, d l is the lth data set, v l is an integer value indicating the capacity of the lth data set; V[t k ] is an integer value, indicating that task t k The total size of all datasets required; is the distribution matrix of data sets to servers, and its element values ​​are: f li is the indicator function of the data set assigned to the task, and its value is: sc j Indicates server m j Storage capacity; The constraint of formula (3) ensures the system load balance, so that server m j Load j should be included in the two given thresholds Load min and Load max between.

4. The method according to claim 1, characterized in that: The execution steps of the online task collaborative scheduling strategy include: Estimate the response time matrix RT of all incoming tasks in the server queue. The RT matrix contains the task t i The allocation to server m j Response time RT ij ; Sort the elements of the response time matrix RT in ascending order to generate a preference list PL for task-to-server assignment. The elements of PL are determined by task t i 、Server m j And its corresponding response time RT ij The triplet representation of: PL = {pl k }=[(t i ,m j ,RT ij )], if t i Assign to m j , the first element (plL1) of the list PL is the minimum response time; The task selection and allocation is performed as follows: input the available server M, the task group arriving in the queue Q, and the preference list PL. Through the preference list PL, after t i Assign to m j When the response time RT is the lowest, ij The first element pl1, after t i Assign to m j After, m j Marked as t i The best allocation of Update the status, including the availability of the server and the tasks in the waiting queue Q and the preference list PL; Repeat the above steps to select a group of tasks from the queue and assign them to the most suitable server according to the waiting time, data migration time, overall execution time and server load of a group of tasks.

5. The method according to claim 4, characterized in that When estimating the response time matrix RT of a task, the fitness φ is calculated ij Come check m j Can it carry t i , with UR ij To express t i The CPU usage rate and fitness status are as follows: φ ij = -1, if UR ij Greater than 1; φ ij =1, if and only if UR ij No more than 1,m j The remaining storage capacity in can accommodate t i The total amount of data required; m j Load min and Load max threshold, and m j The remaining RAM in should be greater than RAM[t i ]; φ ij =0, if m j Not enough CPU or / and not enough RAM to perform the task i , or / and m j The storage capacity cannot store the data required remotely. i or / and m j The data set is overloaded or underloaded; When calculating the total response time matrix of each task, the corresponding processing method is as follows: If φ ij =-1, server m j Unable to host task due to lack of CPU i , and no action can be taken, in which case the scheduler moves to the next server; If φ ij = 0, due to insufficient RAM or / and storage space or / and m j Overload or underload, server m j Unable to carry out the task i , the task can be delayed and wait for these conditions to be verified and completed m j In this case, the delayed scheduling technique is used to make task t i You can wait for the delay time Δ ij , so that m j The resources are available again for task t i use; If φ ij =1, then server m j Task t can be executed without constraint violation and delay time i .

6. The method according to claim 5, characterized in that In m j The storage space is not enough to store t i In the case of a required dataset, the dependency between the task and the dataset depends on k and the number of existing copies of the dataset repl k Select a set of data from m j Delete from the k Defines the number of unfinished tasks in the queue that need m j How many duplicate data sets are there, repl k Defines every dataset currently available in the entire system k The number of replicas is determined by checking each server m j Whether to k Store as a copy, each time you identify d k When the copy of repl k The value of is increased by one.

7. The method according to claim 5, characterized in that Delay time Δ ij The calculation is as follows: According to the expected completion time, server m j The tasks in are sorted in ascending order, and the sorting result is located at Q' j In the indicated sort queue; Then iterate through each task in Q' to verify when t is reached i The fitness of Q' j Each task t in k , get its remaining execution time RET k ,RET k Add to delay time Δ ij ; Then update m j of RAM, storage capacity, and load to add t k Consumed RAM, storage capacity and load values; Repeat this process until m is reached. j and t i The fitness of the final accurate delay time Δ ij .

8. The method according to claim 5, characterized in that The data migration time is calculated as follows: i The remote required dataset is migrated from its remote location to m j The time required is first to check t for each data set i Do you need d k and k Whether to not store locally j If yes, you need to k Migrate, find all its locations, calculate d k Migrate from each of its locations to m j The time required, and finally select the position m with the smallest migration time l .

9. The method according to claim 5, characterized in that The calculation of data access time includes: the access time consumed locally by all data is calculated by DAT ij Indicates that the calculation is in m j Medium i The data access time for k∈D is i Each data d required for which data locality is not achieved k , if f ki =1, then v k is the data size, r j The data reading speed.

10. A power data security enhancement device based on task collaboration, characterized in that: include: The scheduling system model building module is configured to establish a system model for task scheduling. The power data security monitoring tasks submitted by users arrive at the servers of different cloud data centers in an online manner. All online tasks share resources and data through the servers, and the tasks are executed in a non-preemptive manner. The i-th task t i Includes the following attributes: Memory capacity RAM[t i ]、Required MIPS number CPU[t i ], the total size of all data sets required V[t i ], computational complexity δ[t i ], data access mode S; The task grouping module is configured to establish a power data security monitoring task set T = {t1, t2...t n }, there are n tasks in total. All tasks are divided into k groups using clustering algorithm based on comprehensive attribute dimensions. Task types are defined based on the grouping results, mainly including data-intensive tasks, computing-intensive tasks, and periodic tasks. For computing-intensive tasks, a parallel computing strategy is adopted to decompose the tasks into multiple subtasks for parallel execution; for periodic tasks, a timer scheduler is used to enable tasks to be executed on time; for data-intensive tasks, an online task collaborative scheduling strategy is constructed for execution; The task collaborative scheduling module is configured to estimate the access time of the required data set and its replicas, the execution time of the task in different servers, and the computing power of each server for data-intensive tasks, and to construct an online task collaborative scheduling strategy with the objective function of minimizing the task response time while maintaining the load balance among the servers, so as to allocate the online incoming tasks to the most suitable server; The data security protection module is configured to protect the security of migrated data through a data security protection strategy when data migration occurs between servers according to a collaborative scheduling strategy. The data security protection strategy mainly includes a key generation stage, an encryption stage for encrypting the migrated data, and a decryption stage for decrypting the received encrypted data.

Citation Information

Patent Citations

  • Hydropower basin emergency command cloud-side computing resource cooperative processing method

    CN113342510A

  • Task processing method and system for comprehensive resource management of intelligent monitoring system

    CN117608840A

  • Online collaboration of task assignment

    US20180114172A1

  • Data classification in application programming interfaces at attribute level

    US20210304143A1

  • Electronic device and operation method of electronic device allocating memory resource to task

    US20230315521A1

Cited By

  • Data online migration method and device, electronic equipment and storage medium

    CN120540591A

  • Method and device for realizing cloud password service resource pool

    CN120639719A