CN-122019125-A - Task processing method and related device
Abstract
The application discloses a task processing method and a related device, the method comprises the steps of obtaining a target task triggered by a mobile terminal, determining priority information corresponding to the target task and predicted load information between the target task and each candidate server, wherein the predicted load information is determined based on task data amount matched with the target task, determining transmission delay and calculation delay of the mobile terminal corresponding to each candidate server based on the target task, obtaining priority cost by using the transmission delay and the priority information, obtaining load cost by using the calculation delay and the predicted load information, determining a target server matched with the target task from all the candidate servers based on the priority cost and the load cost, and sending the target task to the target server for processing by using a signal guiding component corresponding to the mobile terminal and the target server. By the method, the task processing efficiency can be improved.
Inventors
- SUN SEN
- FENG GUOBAO
- WU FENG
Assignees
- 浙江大华技术股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251209
Claims (10)
- 1. A method of task processing, comprising: Acquiring a target task triggered by a mobile terminal, and determining priority information corresponding to the target task and predicted load information between candidate servers corresponding to the target task, wherein the predicted load information is determined based on task data amount matched with the target task; determining the transmission delay and the calculation delay of the mobile terminal corresponding to each candidate server based on the target task; Obtaining priority cost by using the transmission delay and the priority information, obtaining load cost by using the calculation delay and the predicted load information, and determining a target server matched with the target task from all candidate servers based on the priority cost and the load cost; and sending the target task to the target server for processing by utilizing the signal guiding component corresponding to the mobile terminal and the target server.
- 2. The task processing method according to claim 1, characterized in that the determination of the predicted load information includes: Acquiring a reference model matched with the task type from a reference model library matched with the candidate server based on the task type matched with the target task; And determining the predicted load information matched with the target task based on the target task and the task type matched with the target task by using the reference model, wherein the predicted load information is used for representing computing resources required for processing the target task.
- 3. The method according to claim 1, wherein determining a transmission delay and a computation delay of the mobile terminal for each candidate server based on the target task comprises: for each candidate server, acquiring the transmission delay corresponding to the candidate server based on the task data amount matched with the target task and the transmission rate between the candidate server and the mobile terminal, and And aiming at each candidate server, acquiring the calculation time delay corresponding to the candidate server based on the predicted load information matched with the target task and the calculation power information of the candidate server.
- 4. A task processing method according to claim 3, wherein the acquiring the amount of task data matching the target task includes: acquiring a task type matched with the target task; and acquiring the task data volume required for transmitting the target task based on the task type and the target task.
- 5. The task processing method according to claim 2, wherein the obtaining the transmission delay corresponding to the candidate server based on the task data amount and the transmission rate between the candidate server and the mobile terminal includes: acquiring a first ratio between the task data volume and the transmission rate, and taking the first ratio as the transmission delay; The obtaining the computation time delay corresponding to the candidate server based on the predicted load information matched with the target task and the computation force information of the candidate server includes: And obtaining a second ratio between the predicted load information and the calculation force information, and taking the second ratio as the calculation time delay.
- 6. The task processing method according to claim 1, wherein the obtaining a priority cost using the transmission delay and the priority information, obtaining a load cost using the calculation delay and the predicted load information, and determining a target server matching the target task from all the candidate servers based on the priority cost and the load cost, includes: Taking a first product between the transmission delay and the priority information as the priority cost, and taking a second product between the calculation delay and the predicted load information as the load cost; acquiring a first weight matched with the transmission delay and a second weight matched with the calculation delay; acquiring calculation parameters corresponding to the candidate servers based on the first weight and the priority cost, and acquiring transmission parameters corresponding to the candidate servers based on the second weight and the load cost; acquiring target time delay corresponding to the candidate server based on the calculation parameter and the transmission parameter corresponding to the candidate server; And regarding all the candidate servers, taking the candidate server corresponding to the minimum target time delay as the target server.
- 7. The task processing method according to claim 1, wherein the signal guiding component includes a plurality of reflecting units, and the sending the target task to the target server for processing by using the signal guiding component corresponding to the mobile terminal and the target server includes: For each reflecting unit, acquiring phase adjustment parameters matched with the reflecting unit, a first signal attenuation coefficient of the mobile terminal corresponding to the reflecting unit and a second signal attenuation coefficient of the candidate server corresponding to the reflecting unit; Acquiring the signal guiding assembly with optimized reflected beam quality based on the phase adjustment parameter, the first signal attenuation coefficient and the second attenuation coefficient; and sending the target task to the target server for processing by using the optimized signal guiding component.
- 8. The task processing method according to claim 7, wherein the obtaining the signal steering component after the reflected beam quality optimization based on the phase adjustment parameter, the first signal attenuation coefficient, and the second attenuation coefficient includes: Determining, for each of the reflection units, a signal reflection function that matches the reflection unit based on the corresponding phase adjustment parameter, the first signal attenuation coefficient, and the second signal attenuation coefficient; superposing the signal reflection functions matched with all the reflection units to obtain a target optimization function matched with the signal guide assembly; and adjusting phase adjustment parameters matched with each reflection unit in the target optimization function until the corresponding value of the target optimization function is maximum, and obtaining the optimized signal guiding assembly.
- 9. An electronic device comprising a memory and a processor coupled to each other, the memory having program instructions stored therein, the processor for executing the program instructions to implement the method of any of claims 1-8.
- 10. A computer readable storage medium having stored thereon program instructions, which when executed by a processor, implement the method of any of claims 1-8.
Description
Task processing method and related device Technical Field The present application relates to the field of data processing technologies, and in particular, to a task processing method and a related device. Background With the rapid development of the internet of things and the mobile internet, various mobile intelligent terminals generate a large number of tasks with intensive computation and time delay sensitivity, which provides a serious challenge for the limited battery endurance and computation capability of the terminal. To cope with this problem, mobile edge computing has developed, whose core idea is to "offload" tasks from resource-constrained terminals to base stations at the network edge for processing, thereby significantly reducing task processing latency and terminal energy consumption. In an actual multi-base station heterogeneous network environment, the edge base stations have the characteristics of dense distribution and resource configuration isomerization. Therefore, when a terminal faces a plurality of connectable base stations, how to select an optimal offloading target from them becomes a key challenge. Traditional selection strategies are based on only a single index (e.g., signal strength), but often cannot achieve global optimization in dynamically changing network environments, resulting in lower task processing efficiency. In view of this, how to improve the task processing efficiency is a problem to be solved. Disclosure of Invention The application mainly solves the technical problem of providing a task processing method and a related device, which can improve the task processing efficiency. The technical scheme includes that a task processing method comprises the steps of obtaining a target task triggered by a mobile terminal, determining priority information corresponding to the target task and predicted load information between the target task and each candidate server, determining the predicted load information based on task data amount matched with the target task, determining transmission delay and calculation delay of the mobile terminal corresponding to each candidate server based on the target task, obtaining priority cost by using the transmission delay and the priority information, obtaining load cost by using the calculation delay and the predicted load information, determining a target server matched with the target task from all the candidate servers based on the priority cost and the load cost, and sending the target task to the target server for processing by using a signal guiding component corresponding to the mobile terminal and the target server. In order to solve the technical problem, another technical scheme adopted by the application is to provide electronic equipment which comprises a memory and a processor, wherein the memory and the processor are mutually coupled, the memory stores program instructions, and the processor is used for executing the program instructions to realize the method in the technical scheme. In order to solve the technical problem, a further technical scheme adopted by the application is to provide a computer readable storage medium, wherein program instructions are stored on the computer readable storage medium, and the program instructions realize the method in the technical scheme when being executed by a processor. The task processing method provided by the application has the beneficial effects that the task processing method is different from the situation in the prior art, and after the target task triggered by the mobile terminal is obtained, the priority information matched with the target task and the predicted load information required by each candidate server to process the target task are determined. And determining the transmission delay and the calculation delay of the mobile terminal corresponding to each candidate server. And combining the predicted load information and the calculation time delay to obtain the load cost related to the calculation load in the subsequent processing. According to the priority cost and the load cost, the optimal target server is determined from all candidate servers by combining multiple types of information, and the flexibility of screening the target servers is improved. And finally, unloading the target task to a target server for processing by utilizing the signal guiding component, thereby being beneficial to improving the efficiency of task processing. Drawings In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein: FIG. 1 is a flow chart of an embodiment of a task processing method accordin