A computing power scheduling method and system for a dual-mode network in a time sequence task handling scene
By constructing a dual-mode network connectivity model and a task collaborative computing model, and combining the device's dynamic channel switching capability, a hybrid heuristic algorithm is used to allocate computing tasks, solving the problem of limited terminal device resources and achieving efficient task collaborative completion and resource utilization optimization.
Patent Information
- Application Number
- CN202611403308.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-27
AI Technical Summary
In distributed neural network inference scenarios, the resources of a single terminal device are limited, making it difficult to efficiently coordinate and complete highly complex tasks. Existing computing power scheduling methods fail to effectively utilize the computing power and communication resources of multiple devices, especially in multi-channel self-organizing network environments where there are issues with channel switching delays and inter-device channel coordination.
A dual-mode network connectivity model and an available bandwidth model are constructed. A task collaborative computing model is built based on the time dependency relationship between tasks. Combining the dynamic channel switching capability of the device and the status of multiple channel resources, a hybrid heuristic algorithm is used to allocate computing tasks and configure working channels to achieve intra-network computing power scheduling.
It reduced the total task completion time, improved the utilization rate of network-side device resources, and optimized the allocation of communication and computing resources between devices.
Smart Images

Figure CN123185089A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computing power management technology, and relates to a computing power scheduling method and system for dual-mode networks in time-series task processing scenarios. Background Technology
[0002] With the development of edge computing, edge intelligence, heterogeneous communication, and multi-device collaboration technologies, the complexity and real-time requirements of tasks are constantly increasing. In computing power networks, due to the limited resources of a single terminal device, it is often difficult to complete highly complex tasks independently. Therefore, a complete task needs to be divided into multiple sub-tasks, which are then executed collaboratively by multiple devices. In distributed neural network inference scenarios, the complexity of the complete task is high, and it can be divided into multiple sub-tasks such as data acquisition, data preprocessing, feature extraction, target recognition, and result fusion, and assigned to multiple devices for collaborative completion. There are clear dependencies between tasks; for example, feature extraction can only begin after the data acquisition task is completed and the corresponding dependent data is received. Therefore, the overall task completion time depends not only on the computation time of the sub-tasks but also on the completion time of preceding tasks, the data transmission time of dependent data, and the communication status between devices. How to use distributed methods to collaboratively utilize the computing power of multiple devices to complete computational tasks has become a key research issue. Existing computing power scheduling methods mostly focus on cloud-edge collaboration, task offloading under single link conditions, or only consider the resource allocation of device computing power. Moreover, there is currently little research on collaborative computing scheduling of dual-mode devices in a multi-channel self-organizing network environment. Using dynamic channels can improve the available transmission conditions between devices, but it will also introduce channel switching delay and channel coordination problems between devices.
[0003] In summary, there is an urgent need for a computing power scheduling method for dual-mode networks in time-series task processing scenarios. This method can comprehensively consider the computing power requirements of the task and the available computing power and communication resources in the network, and rationally allocate computing power and communication resources to reduce task completion time and improve the utilization rate of end-side device resources, thus providing scientific support for computing power scheduling methods for dual-mode devices. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a computing power scheduling method and system for dual-mode networks in time-series task processing scenarios, so as to solve the problem that the limited resources of a single terminal device in the current network make it difficult for terminals to efficiently collaborate to complete highly complex computing tasks. First, based on the working channel and connection status of the dual-mode device at time t, a dual-mode network connectivity model is constructed to describe the network connectivity at that time, and an available bandwidth model is constructed based on this model. The management node manages the device access to the network and updates the computing power occupancy of each device in the network. Based on the data transmission volume, computation volume, and minimum computing power requirement for task completion of the local device subtasks, a directed acyclic graph of tasks in the network is constructed. Based on the time dependency characteristics between subtasks in the task model, a task collaborative computing model is constructed. Then, combined with the computing power resources of each device, a computing power task scheduling model is designed based on a hybrid heuristic algorithm to allocate computing tasks to each device and configure its working channel, thereby realizing intra-network computing power scheduling.
[0005] To achieve the above objectives, the present invention provides the following technical solution: A computational scheduling method for dual-mode networks in time-series task processing scenarios, the method specifically includes the following steps: S1, Based on dual-mode devices at any time The local communication and its channels, and remote communication are used to construct a dual-mode network connectivity model and available bandwidth model. The management node controls the network access of devices and analyzes the available computing power resources and available bandwidth of each device in the network. S2. Based on the data transmission volume, computation volume, and minimum computing power requirements of each subtask of the task to be processed, construct a directed acyclic graph of tasks in the network; and construct a task collaborative computing model based on the time dependency relationship between tasks in the network. S3. Based on the device's dynamic channel switching capability and the status of multiple channel resources within the network, a channel-aware hybrid heuristic algorithm is constructed. Combined with a task collaborative computing model, the management node allocates computing tasks to the device and configures the working channel of the execution device, thereby realizing the scheduling of computing power within the network, reducing the total task completion time, and improving the utilization rate of computing power resources within the network.
[0006] Furthermore, in step S1, a dual-mode network connectivity model is constructed, specifically including the following steps: S11, Constructing a dual-mode network includes The dual-mode device refers to a device with both local and remote connectivity capabilities; local connectivity means the device needs to be able to connect to a fixed control channel and dynamically change its operating channel; remote connectivity means the device needs to be able to directly connect to a remote server; the connection status of the device is constructed using... express, , ;in, Indicates equipment exist Whether the conditions for connecting to the local network are available at all times; Indicates equipment exist Whether the conditions for accessing a remote server are always available; Indicates equipment exist The working channel number at any given time. Indicates the number of channels; S12. Construct a connectivity model for dual-mode devices and networks:
[0007] in, For at any time Inter-device connectivity matrix Represented as a management node, Indicates time Remote connectivity capabilities of each device;
[0008] in, Indicates equipment and equipment The physical distance between them Indicates the device's maximum line-of-sight communication distance; S13. The management node controls the network access of devices and analyzes the available computing power resources and available bandwidth within the network. S14. Construct a local communication available bandwidth matrix between devices based on the connectivity matrix and the channel bandwidth capacity. Available bandwidth matrix between devices and remote servers The available network bandwidth model is as follows:
[0009]
[0010]
[0011]
[0012] in, For a moment equipment For equipment The original available bandwidth, express Time device Available bandwidth for remote servers.
[0013] Furthermore, in step S13, the management node controls the device to connect to the network and analyzes the available computing power resources and available bandwidth within the network, specifically including: S131. The device sends a network access application on the control channel, which is received by the management node, which allocates an initial channel according to the communication status of the channel. S132. The device periodically sends status vectors to the management node. Available channel bandwidth and available computing power ; This indicates the total computing power that the device can utilize, which is determined by the device's processor. Indicates equipment At any moment The computing speed that is not occupied by assigned tasks and can be used for the current task, measured in cycles / s; For a moment equipment For equipment The original available bandwidth, express Time device Available bandwidth for remote servers; S133. The management node updates the connectivity model and available bandwidth model based on the state vectors and available bandwidth reported by the devices periodically, and establishes a device resource set according to the available bandwidth and available computing resources of the devices. .
[0014] Furthermore, in step S2, a task collaborative computing model is constructed, specifically including the following steps: S21. Based on the time dependencies between subtasks, a directed acyclic graph of tasks is constructed, expressed as follows:
[0015] in, Indicates the generated task. This represents a set of subtasks, which are divided into... common Sub-tasks; For a virtual task, the directed acyclic graph of the task must have a unique entry point and a unique exit point. and These represent the start and end of the task, respectively. for The prerequisite task for the neutron mission. for The successor to the neutron mission; This indicates the dependencies between subtasks. Subtasks For subtasks The prerequisite tasks, where m and n are task numbers, are... , , Subtask Includes the following attributes:
[0016] in, Indicates the amount of dependent data for the subtask. This indicates the computational cost required for the subtask. This indicates the minimum computational power requirement for a subtask; based on the time dependencies between subtasks. Construct a time dependency matrix between subtasks. for:
[0017] in, Subtasks and The relationship between them, Subtasks For subtasks The prerequisite task, expressed as:
[0018] According to the matrix Get subtask Prerequisite task set and subsequent task set The expression is:
[0019]
[0020] S22. Establish a task completion time model; S23. Regarding task completion time, to minimize the task completion time in the system, use... express; Let be the maximum completion time among all subtasks of the current task, and be the final completion time of the entire task. Therefore, minimizing the overall system task latency can be expressed as: Regarding resource utilization, the utilization rate of edge resources in the global task is... Therefore, maximizing end-side resource utilization can be expressed as: Based on the above objectives, the optimization problem is as follows:
[0021]
[0022] Among them, constraints The task start time should be greater than or equal to 0; constraints. The subtask must wait for the preceding task to complete and receive its result before it can be executed; constraints. This indicates that each subtask is assigned to only one execution device; constraints Indicates in global tasks In this context, the computing power allocated to a device cannot exceed its own upper limit; constraints. This indicates that the computing power allocated to a task must be greater than its minimum requirement; constraint conditions. Indicates that each device can provide at most This conserves computing resources and prevents resources from being over-consumed by a single task. This indicates the maximum available computing power percentage for a single task.
[0023] Furthermore, in step S22, establishing the task completion time model specifically includes: S221, Regarding subtasks The time it takes for the task to be completed is expressed as follows: Subtask The start time is expressed as , For subtasks In the equipment The time calculated above, Subtasks arrive Dependency tasks from device arrive Transmission time, Subtasks All prerequisite tasks yield the following task collaborative computing model:
[0024] S222, Let Subtasks Is it assigned to the device? , Indicates equipment Assign to subtask The amount of computing power; computational subtasks In the equipment computation time of execution The expression is as follows:
[0025] S223, Computation Subtask To sub-task Dependency data from device Transmitted to device Transmission time , The time for channel switching is expressed as follows: .
[0026] Furthermore, in step S3, a scheduling method is designed, the specific steps of which include: S31. For the optimization problem in step S2, a channel-aware hybrid heuristic scheduling algorithm is used to solve it; the scheduling priority of each subtask is calculated based on the working channel resource status and the average computing power status of each channel in the network, and an initial scheduling solution is generated. Specifically, the following steps are included: S311. Calculate the average remaining computing power of devices in each channel at the current time. and average transmission rate ,in, Indicates that the working channel is in All devices, Indicates equipment The schedulable computing power at time t;
[0027]
[0028] in, Represented as The number of elements in Similarly; S312. Calculate the subtasks based on their computational complexity and subsequent dependencies. priority The expression is as follows:
[0029] in, Subtasks The set of subsequent tasks; S313. Based on the estimated completion time of the task in different channel devices and the time delay of channel switching, determine the execution channel of the task, and calculate the expression for the estimated completion time as follows:
[0030] in, Indicates the task is in the channel Estimated completion time, This represents the handover delay when a channel switch occurs; by selecting the working channel that minimizes the estimated completion time, the handover delay is obtained. Determine the execution channel for the task; S314, according to The subtasks are sorted from largest to smallest, and the management node selects the device scheduling set that meets the requirements of each subtask:
[0031] in, This indicates that subtasks can be processed in the current channel. The collection of devices, Subtasks The assigned device number, if the remaining The task will then be handed over to a remote server for processing; S315, Start the virtual task and end virtual task Bind to the device, sort by subtask priority, calculate the earliest start time and earliest finish time of each candidate device for executing the subtask, and select the device and its working channel that minimizes the earliest finish time to obtain the initial scheduling solution. and the corresponding total task completion time ; S32. Based on the initial scheduling solution, the candidate device set for each subtask is expanded to obtain an expanded scheduling set:
[0032] in, The original scheduling set The algorithm has been extended to different channels and will be applied to the set. The optimal solution is obtained by performing neighborhood search and iterative optimization, specifically including the following steps: S321, using the initial scheduling solution As the current solution Calculate the current objective function And let the optimal solution Optimal objective function value Initial temperature ; S322, when Repeat the process at each temperature in the set. Perform a neighborhood search; where the neighborhood solution By changing the working channel of the device assigned to at least one subtask or one of the devices; S323, Solution for the neighborhood Solve and calculate the end-side computing power utilization rate. The task completion time was normalized to address optimization issues. Calculate the objective function The expression is as follows:
[0033] wherein, and are calculation coefficients, is the start time of the task, is the task completion time when the scheduling solution is ; S324: Let , accept the neighborhood solution when ; when , accept the neighborhood solution with a probability of , accept the neighborhood solution , and let ; S325: After completing neighborhood search at each temperature, perform temperature cooling according to , where the cooling coefficient is denoted as u, 0<u<1; stop iteration when , and output the optimal solution and task completion time ; S33: Convert the scheduling solution into channel switching and task execution control instructions through the management node.
[0034] The present invention further provides a computing power scheduling system for a dual-mode network in a time-series task disposal scenario, which adopts the method as described above.
[0035] The beneficial effects of the present invention are as follows: The present invention performs unified modeling on the connection status, working channel and remote communication capability of devices in the dual-mode communication network, constructs a dual-mode network connectivity model and an available bandwidth model, to determine the communicable relationship and available transmission capability between devices according to the real-time communication status of each device in the network; in addition, based on the time dependency relationship between tasks, a task collaborative computing model is constructed, and a computing power scheduling method oriented to task completion time optimization is established by combining the available computing power of devices, the amount of dependent data transmission, the communication channel status and the channel switching delay, so as to realize collaborative allocation of sub-task execution devices, communication channels and computing resources, reduce the overall completion time of tasks with dependency relationships, and improve the utilization rate of edge-side computing power resources in the network.
[0036] Other advantages, objectives and features of the present invention will be set forth in part in the subsequent description, and in part will be obvious to those skilled in the art based on the examination of the following text, or may be learned from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. Brief Description of Drawings
[0037] To make the objectives, technical solutions, and advantages of the present invention clearer, the preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, wherein: Figure 1 This is a framework diagram of the computing power scheduling method for dual-mode networks in a time-series task processing scenario provided by the present invention; Figure 2 This is a flowchart illustrating the scheduling method execution in this invention. Figure 3 This is an example diagram illustrating the time-series task modeling that this invention addresses. Detailed Implementation
[0038] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0039] The accompanying drawings are for illustrative purposes only and are schematic diagrams, not actual pictures. They should not be construed as limiting the invention. To better illustrate the embodiments of the invention, some parts in the drawings may be omitted, enlarged, or reduced, and do not represent the actual product dimensions. It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0040] In the accompanying drawings of the embodiments of the present invention, the same or similar reference numerals correspond to the same or similar components. In the description of the present invention, it should be understood that if terms such as "upper," "lower," "left," "right," "front," and "rear" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, they are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, the terms used to describe positional relationships in the drawings are only for illustrative purposes and should not be construed as limiting the present invention. For those skilled in the art, the specific meaning of the above terms can be understood according to the specific circumstances.
[0041] Please see Figures 1-3 , Figure 1 The framework diagram of the computing power scheduling method for dual-mode networks in time-series task processing scenarios provided by the present invention includes three parts: constructing a network model, constructing a task model and a collaborative computing model, and solving for the optimal scheduling scheme. Figure 2 This is a flowchart illustrating the scheduling method execution in this invention. Figure 3This is an example diagram of time-series task modeling for the present invention. The method specifically includes the following steps: S1: Construct a dual-mode network connectivity model and available bandwidth model S11: Obtain device status, assuming the dual-mode network includes a management node. A set of dual-mode devices D and a remote server server, wherein the set of dual-mode devices is represented as:
[0042] A set of working channels C is set in the network, and the set of working channels is represented as follows:
[0043] Among them, the control channel The network access channel is used to transmit device network access applications, device status information, and scheduling control commands; the working channel is used to transmit task data and dependency data between subtasks. N and q are both positive integers, representing the number of devices and channels, and their values are determined based on the network size and available spectrum resources.
[0044] For any dual-mode device d i Its state vector at time t is represented as:
[0045] in, Indicates device d i Does local communication capability exist at time t? Indicates device d i Does the condition for remote communication exist at time t? Indicates device d i The working channel at time t.
[0046] The device sends a network access request to the management node via the control channel. Upon receiving the request, the management node establishes a device identifier for the device and adds it to the device resource set. After joining the network, the device periodically sends a status vector to the management node. Available channel bandwidth and available computing power ; This indicates the total computing power that the device can utilize, which is determined by the device's processor. Indicates equipment At any moment The computing speed that is not occupied by assigned tasks and can be used for the current task, measured in cycles / s; For a moment equipment For equipment The original available bandwidth, express Time device Available bandwidth for remote servers. Establish a device resource set based on the device's available bandwidth and available computing resources. .
[0047] The status update cycle is preset or dynamically adjusted based on the network topology change rate, task real-time requirements, and control channel load. The available computing power of the device is determined by the management node based on the difference between the device's total computing power and the computing power used by the assigned tasks.
[0048] When the device status changes or the management node completes a task assignment, the available computing power and communication resource information of the corresponding device are updated so that subsequent scheduling is based on the current resource status.
[0049] S12: Construct a device connectivity model The management node constructs an inter-device connectivity matrix based on the device's local connection status, working channel, and physical communication conditions between devices:
[0050] When device d i and equipment d j When all conditions for local communication and physical communication are met at time t, and they are on the same working channel, let Otherwise, .
[0051] The ability to be on the same working channel includes at least one of the following situations: two devices are currently on the same working channel; at least one device can switch to the working channel of the other device according to the channel switching command issued by the management node; or both devices can switch to the target working channel specified by the management node.
[0052] Therefore, the connectivity matrix can describe the communication relationships that the devices have currently established.
[0053] Indicates time The remote connectivity capabilities of each device, together with the aforementioned matrix, construct a connectivity model for dual-mode devices and the network.
[0054] S13: Constructing an available bandwidth model Let device d i For device d j The available transmission rate is Device d i The available transfer rate between the server and the remote server is The management node constructs a local communication bandwidth availability matrix between devices and a bandwidth vector from devices to remote servers based on channel measurement results, channel occupancy status, and network connectivity reported by the devices. (Inter-device local communication bandwidth availability matrix) It can also describe the potential communication relationships that the device can establish after performing a channel switch.
[0055]
[0056]
[0057]
[0058] S2: Construct a directed acyclic graph of tasks and a collaborative task computation model. S21: Construct a directed acyclic graph of tasks Let the task to be processed be This can be represented as a directed acyclic graph of tasks:
[0059] The node set V is represented as: in, Indicates the generated task. This represents a set of subtasks, which can be divided into... common Sub-tasks; For a virtual task, the directed acyclic graph of the task must have a unique entry point and a unique exit point. and These represent the start and end of the task, respectively. for The prerequisite task for the neutron mission. for The successor to the neutron mission; This indicates the dependencies between subtasks. Subtasks For subtasks The prerequisite tasks, where m and n are task numbers, are... , , For any actual subtask v m Its task attributes are represented as follows:
[0060] in, Indicates the amount of dependent data for the subtask. This indicates the computational cost required for the subtask. This indicates the minimum computational power requirement for each subtask. It is determined based on the time dependencies between subtasks. Construct a time dependency matrix between subtasks. for:
[0061] in, Subtasks and The relationship between them, Subtasks For subtasks The prerequisite task, expressed as:
[0062] According to the matrix Get subtask Prerequisite task set and subsequent task set The expression is:
[0063]
[0064] When there is no direct or indirect temporal dependency between two subtasks, and their execution device resources allow for parallel processing, the two subtasks can be executed in parallel; a subsequent subtask with a dependency relationship should be executed after all its preceding subtasks are completed and the corresponding dependent data arrives.
[0065] S22: Construct the optimization objective and constraints To reduce overall task completion time and improve the utilization rate of edge device computing resources, a joint optimization objective is constructed, encompassing task completion time and edge computing resource utilization. The optimization problem must satisfy at least the following constraints: each subtask is assigned to only one execution device; the allocated computing power meets the minimum computing power requirement of the subtask; the allocated computing power to each device does not exceed its available computing power; subsequent subtasks begin only after all preceding tasks are completed and dependent data is received; the selected working channel satisfies device connectivity conditions; and channel switching and transmission arrangements do not result in unexecutable resource conflicts.
[0066] S3: Obtain the scheduling scheme using a channel-aware hybrid heuristic algorithm. S31: Calculate the resource status of each channel and its corresponding device. Calculate the average remaining computing power of devices in each channel at the current time. and average transmission rate .in, Indicates that the working channel is in All devices, Indicates equipment The amount of schedulable computing power at time t.
[0067]
[0068]
[0069] in, Represented as The number of elements in The same principle applies.
[0070] S32: Determine the execution channel of the task and calculate the subtask scheduling priority. The management node calculates the subtask scheduling priority based on the subtask's computational load, subsequent dependencies, and average communication cost, following a recursive approach from the exit task to the entry task. :
[0071] The execution channel for the task is determined based on the estimated completion time of the task in different channel devices and the time delay of channel switching. The expression for calculating the estimated completion time is as follows:
[0072] in, Indicates the task is in the channel Estimated completion time, This represents the handover delay when a channel switch occurs. The working channel that minimizes the estimated completion time is selected. Determine the execution channel for the task.
[0073] The priority value is used to represent the subtask's estimate of the remaining critical path length of the task. The management node sorts the subtasks from high to low priority. When multiple subtasks have the same priority, they can be sorted by dependent data volume, minimum computing power requirement, or task number.
[0074] S33: Schedule tasks according to priority and generate an initial scheduling solution. S331: In the currently scheduled subtask, At that time, the management node constructs a set of candidate devices for the currently scheduled subtask:
[0075] in, This indicates that subtasks can be processed in the current channel. The collection of devices, Subtasks The assigned device number. The device set includes devices that must meet the following requirements: the device containing the preceding task of the current task can establish a connection with the devices in the device set, and the remaining computing power of the devices in the device set must be greater than the minimum requirement of the current task. If the remaining... The task will then be handed over to a remote server for processing.
[0076] S332: Determine subtasks execution device and computing time set up Subtasks Is it assigned to the device? , Indicates equipment Assign to subtask The amount of computing power; computational subtasks In the equipment computation time of execution The expression is as follows:
[0077] Computational subtasks To sub-task Dependency data from device Transmitted to device Transmission time , The time for channel switching is expressed as follows:
[0078] For subtasks The time it takes for the task to be completed is expressed as follows: Subtask The start time is expressed as , For subtasks In the equipment The time calculated above, Subtasks arrive Dependency tasks from device arrive Transmission time, Subtasks The completion time of each subtask can be obtained from all the prerequisite tasks:
[0079] S333: Generate the initial scheduling solution The management node prioritizes selecting the execution device that minimizes the earliest completion time of the current subtask and updates the device's available time, remaining computing power, and channel resource status. When the local candidate device set is empty, or the estimated completion time of local execution exceeds the estimated completion time of remote server execution, the management node can assign the corresponding subtask to the remote server for processing. All subtasks are assigned sequentially according to their priority to obtain the initial scheduling solution X0.
[0080]
[0081] in, The set of execution devices represented; This indicates the corresponding working channel of the above-mentioned centralized equipment; This indicates the computing power allocated to the corresponding devices in the device set; there is a one-to-one correspondence between the devices in the device set and the task set.
[0082] S34: Expand the candidate scheduling set After the initial scheduling solution is generated, the management node expands the candidate range for each subtask from devices within the initially selected channel to devices in the network that meet the following conditions: 1. The available computing power of the equipment meets the minimum computing power requirements of the subtask; 2. The device is capable of receiving all dependency data generated by the preceding tasks; 3. The device can maintain the current operating channel or switch to a target operating channel for data transmission. 4. The task allocation does not violate the device's computing power limit, network connectivity, and task timing constraints.
[0083] By incorporating the execution device, working channel, computing power allocation, and transmission path into the same scheduling solution, computing and communication resources can be jointly adjusted during the neighborhood search process, rather than simply selecting devices within a pre-fixed channel.
[0084] S35: Generate neighborhood solutions and perform feasibility checks. Based on the current scheduling solution, a neighborhood solution is generated by performing at least one of the following neighborhood operations: 1. Migrate a subtask from the currently executing device to another device in its extended candidate device set; 2. Change the working channel corresponding to a subtask; 3. Simultaneously change the subtask execution device and corresponding working channel; 4. Swap the execution devices or execution order of two subtasks that do not have a direct temporal dependency.
[0085] After generating neighborhood solutions, the management node recalculates the start and finish times of each subtask according to the topological order of the directed acyclic graph of the task, and checks the minimum computing power constraint, the upper limit of device computing power constraint, the network connectivity constraint, the availability of working channels constraint, and the task timing constraint.
[0086] When there are repairable resource conflicts in the neighborhood solution, the management node repairs them by adjusting the subtask start time, changing the candidate device, or reselecting the working channel; when the neighborhood solution cannot be repaired, the neighborhood solution is discarded and the neighborhood operation is re-executed.
[0087] S36: Set the objective function The scheduling objective function is expressed as:
[0088] in, and To calculate the coefficients, This is the start time of the task. The solution for scheduling is Task completion time For the initial solution The corresponding total execution time. When the application scenario has high requirements for task real-time performance, increase the weight of the task completion time item; when the application scenario places more emphasis on the utilization of edge device resources, increase the weight of the edge computing power utilization item.
[0089] S37: Perform simulated annealing iterations The initial temperature of the simulated annealing algorithm is denoted as . The termination temperature is denoted as The cooling coefficient is denoted as Let L be the number of neighborhood searches at each temperature, where the following conditions are met: For the current scheduling solution X and its neighborhood solution X′, let
[0090] when When < 0, accept the neighborhood solution X′; when When ≥0, the neighborhood solution is accepted with the following probability:
[0091] After accepting a neighborhood solution, it is used as the new current solution; when the new current solution is better than the historical best solution, the historical best solution is updated. After completing each round of neighborhood search at the current temperature, according to... Update temperature.
[0092] When the current temperature is not greater than the termination temperature, the preset maximum number of iterations is reached, or no better scheduling solution is obtained after a preset number of consecutive rounds, the iteration stops and the optimal scheduling solution obtained during the iteration process is output.
[0093] S38: The management node converts the optimal scheduling solution into task execution control instructions.
[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A computing power scheduling method for dual-mode networks in time-series task processing scenarios, characterized in that, The method specifically includes the following steps: S1, Based on dual-mode devices at any time The local communication and its channels, and remote communication are used to construct a dual-mode network connectivity model and available bandwidth model. The management node controls the network access of devices and analyzes the available computing power resources and available bandwidth of each device in the network. S2. Based on the data transmission volume, computation volume, and minimum computing power requirements of each subtask of the task to be processed, construct a directed acyclic graph of tasks in the network; and construct a task collaborative computing model based on the time dependency relationship between tasks in the network. S3. Based on the device's dynamic channel switching capability and the status of multiple channel resources within the network, a channel-aware hybrid heuristic algorithm is constructed. Combined with a task collaborative computing model, the management node allocates computing tasks to the device and configures the working channel of the execution device, thereby realizing the scheduling of computing power within the network, reducing the total task completion time, and improving the utilization rate of computing power resources within the network.
2. The computing power scheduling method for dual-mode networks in a time-series task processing scenario according to claim 1, characterized in that, In step S1, a dual-mode network connectivity model is constructed, which specifically includes the following steps: S11, Constructing a dual-mode network includes The dual-mode device refers to a device with both local and remote connectivity capabilities; local connectivity means the device needs to be able to connect to a fixed control channel and dynamically change its operating channel; remote connectivity means the device needs to be able to directly connect to a remote server; the connection status of the device is constructed using... express, , ;in, Indicates equipment exist Whether the conditions for connecting to the local network are available at all times; Indicates equipment exist Whether the conditions for accessing a remote server are always available; Indicates equipment exist The working channel number at any given time. Indicates the number of channels; S12. Construct a connectivity model for dual-mode devices and networks: in, For at any time Inter-device connectivity matrix Represented as a management node, Indicates time Remote connectivity capabilities of each device; in, Indicates equipment and equipment The physical distance between them Indicates the device's maximum line-of-sight communication distance; S13. The management node controls the network access of devices and analyzes the available computing power resources and available bandwidth within the network. S14. Construct a local communication available bandwidth matrix between devices based on the connectivity matrix and the channel bandwidth capacity. Available bandwidth matrix between devices and remote servers The available network bandwidth model is as follows: in, For a moment equipment For equipment The original available bandwidth, express Time device Available bandwidth for remote servers.
3. The computing power scheduling method for dual-mode networks in a time-series task processing scenario according to claim 2, characterized in that, In step S13, the management node controls the device to connect to the network and analyzes the available computing power resources and available bandwidth within the network, specifically including: S131. The device sends a network access application on the control channel, which is received by the management node, which allocates an initial channel according to the communication status of the channel. S132. The device periodically sends status vectors to the management node. Available channel bandwidth and available computing power ; This indicates the total computing power that the device can utilize, which is determined by the device's processor. Indicates equipment At any moment The computing speed that is not occupied by assigned tasks and can be used for the current task, measured in cycles / s; For a moment equipment For equipment The original available bandwidth, express Time device Available bandwidth for remote servers; S133. The management node updates the connectivity model and available bandwidth model based on the state vectors and available bandwidth reported by the devices periodically, and establishes a device resource set according to the available bandwidth and available computing resources of the devices. .
4. The computing power scheduling method for dual-mode networks in a time-series task processing scenario according to claim 3, characterized in that, In step S2, a task collaborative computing model is constructed, including the following steps: S21. Based on the time dependencies between subtasks, a directed acyclic graph of tasks is constructed, expressed as follows: in, Indicates the generated task. This represents a set of subtasks, which are divided into... common Sub-tasks; For a virtual task, the directed acyclic graph of the task must have a unique entry point and a unique exit point. and These represent the start and end of the task, respectively. for The prerequisite task for the neutron mission. for The successor to the neutron mission; This indicates the dependencies between subtasks. Subtasks For subtasks The prerequisite tasks. and Let be the task number, where , , Subtask Includes the following attributes: in, Indicates the amount of dependent data for the subtask. This indicates the computational cost required for the subtask. This indicates the minimum computational power requirement for a subtask; based on the time dependencies between subtasks. Construct a time dependency matrix between subtasks. for: in, Subtasks and The relationship between them, Subtasks For subtasks The prerequisite task, expressed as: According to the matrix Get subtask Prerequisite task set and subsequent task set The expression is: S22. Establish a task completion time model; S23. Regarding task completion time, to minimize the task completion time in the system, use... express; Let be the maximum completion time among all subtasks of the current task, and be the final completion time of the entire task. Therefore, minimizing the overall system task latency can be expressed as: Regarding resource utilization, the utilization rate of edge resources in the global task is... Therefore, maximizing end-side resource utilization can be expressed as: Based on the above objectives, the optimization problem is as follows: Among them, constraints The task start time should be greater than or equal to 0; constraints. The subtask must wait for the preceding task to complete and receive its result before it can be executed; constraints. This indicates that each subtask is assigned to only one execution device; constraints Indicates in global tasks In this context, the computing power allocated to a device cannot exceed its own upper limit; constraints. This indicates that the computing power allocated to a task must be greater than its minimum requirement; constraint conditions. Indicates that each device can provide at most This conserves computing resources and prevents resources from being over-consumed by a single task. This indicates the maximum available computing power percentage for a single task.
5. The computing power scheduling method for dual-mode networks in a time-series task processing scenario according to claim 4, characterized in that, In step S22, establishing the task completion time model specifically includes: S221, Regarding subtasks The time it takes for the task to be completed is expressed as follows: Subtask The start time is expressed as , For subtasks In the equipment The time calculated above, Subtasks arrive Dependency tasks from device arrive Transmission time, Subtasks All prerequisite tasks yield the following task collaborative computing model: S222, Let Subtasks Is it assigned to the device? , Indicates equipment Assign to subtask The amount of computing power; computational subtasks In the equipment computation time of execution The expression is as follows: S223, Computation Subtask To sub-task Dependency data from device Transmitted to device Transmission time , The time for channel switching is expressed as follows: 。 6. The computing power scheduling method for dual-mode networks in a time-series task processing scenario according to claim 5, characterized in that, In step S3, the scheduling method is designed, and the specific steps include: S31. For the optimization problem in step S2, a channel-aware hybrid heuristic scheduling algorithm is used to solve it; the scheduling priority of each subtask is calculated based on the working channel resource status and the average computing power status of each channel in the network, and an initial scheduling solution is generated. Specifically, the following steps are included: S311. Calculate the average remaining computing power of devices in each channel at the current time. and average transmission rate ,in, Indicates that the working channel is in All devices, Indicates equipment The schedulable computing power at time t; in, Represented as The number of elements in Similarly; S312. Calculate the subtasks based on their computational complexity and subsequent dependencies. priority The expression is as follows: in, Subtasks The set of subsequent tasks; S313. Based on the estimated completion time of the task in different channel devices and the time delay of channel switching, determine the execution channel of the task, and calculate the expression for the estimated completion time as follows: in, Indicates the task is in the channel Estimated completion time, This represents the handover delay when a channel switch occurs; by selecting the working channel that minimizes the estimated completion time, the handover delay is obtained. Determine the execution channel for the task; S314, according to The subtasks are sorted from largest to smallest, and the management node selects the device scheduling set that meets the requirements of each subtask: wherein, represents the set of devices in the current channel that can handle the subtask , represents the device number to which the subtask is assigned, and if there are remaining devices, the task is handed over to a remote server for processing. S315, Start the virtual task and end virtual task Bind to the device, sort by subtask priority, calculate the earliest start time and earliest finish time of each candidate device for executing the subtask, and select the device and its working channel that minimizes the earliest finish time to obtain the initial scheduling solution. and the corresponding total task completion time ; S32. Based on the initial scheduling solution, the candidate device set for each subtask is expanded to obtain an expanded scheduling set: in, The original scheduling set The algorithm has been extended to different channels and will be applied to the set. The optimal solution is obtained by performing neighborhood search and iterative optimization, specifically including the following steps: S321, using the initial scheduling solution As the current solution Calculate the current objective function And let the optimal solution Optimal objective function value Initial temperature ; S322, when Repeat the process at each temperature in the set. Perform a neighborhood search; where the neighborhood solution By changing the working channel of the device assigned to at least one subtask or one of the devices; S323, Solution for the neighborhood Solve and calculate the end-side computing power utilization rate. The task completion time was normalized to address optimization issues. Calculate the objective function The expression is as follows: in, and To calculate the coefficients, This is the start time of the task. The solution for scheduling is Task completion time; S324, Order ,when Accepting neighborhood solutions ;when At that time, with The probability of accepting a neighborhood solution ;when In this case, the neighborhood solution is accepted. and order , ; S325. After completing a round of neighborhood search at a given temperature, perform temperature reduction according to , where the cooling coefficient is denoted as u, 0 < u < 1; when , stop the iteration and output the optimal solution and the task completion time ; S33. The scheduling solution is converted into channel switching and task execution control commands through the management node.
7. A computing power scheduling system for dual-mode networks in time-series task processing scenarios, characterized in that, The system employs the method as described in any one of claims 1 to 6.
