Internet of vehicles cooperative task unloading method based on edge computing and unloading device thereof

By establishing a roadside edge computing model in the Internet of Vehicles and conducting a comprehensive analysis of task offloading parameters, the problem of energy consumption not being considered in the existing technology is solved, a more widely applicable task offloading decision is provided, and the performance of the Internet of Vehicles system is improved. .

CN118677902APending Publication Date: 2024-09-20CHONGQING THREE GORGES UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410934956.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing Internet of Vehicles task offloading technology only considers system processing delay, without comprehensively considering vehicle and server energy consumption factors, and has a narrow scope of application.

Method used

By establishing a roadside edge computing model, we collect relevant parameters of task offloading servers and vehicles, conduct correlation analysis, generate indicators such as exit time, calculation delay, and energy consumption, conduct comprehensive evaluations, and output task offloading evaluation confidence to help The vehicle determines whether to offload the task request to the edge server for calculation.

Benefits of technology

It achieves comprehensive analysis of task processing delay time and energy consumption, provides wider applicability and accurate task offloading decisions, and improves the overall performance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677902A
    Figure CN118677902A
Patent Text Reader

Abstract

The invention provides an Internet of Vehicles cooperative task unloading method based on edge calculation and an unloading device thereof, and relates to the technical field of task unloading, and the method comprises the steps: collecting parameters, analyzing the parameters, generating the parameters, carrying out the comprehensive analysis of task processing delay time and task processing energy consumption for the first time, and building a roadside edge calculation model. Parameters of a task unloading server and relevant parameters of a corresponding vehicle are collected, correlation analysis is carried out on the parameters, driving-out time, local calculation energy consumption of the vehicle, calculation delay of the task unloading server, unloading task transmission energy consumption and calculation energy consumption of the task unloading server are generated, and comprehensive analysis and evaluation are carried out on the intermediate parameters, so that the driving-out time, the local calculation energy consumption of the vehicle, the calculation delay of the task unloading server and the calculation energy consumption of the task unloading server are obtained. The evaluation confidence degree reflecting unloading of the task request to the task unloading server is generated, the task unloading evaluation confidence degree is further output, the vehicle is helped to judge whether to unload the task request to the task unloading server at the edge or not for calculation, and the application range is wide.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of task offloading technology, and specifically to an Internet of Vehicles collaborative task offloading method and an offloading device thereof based on edge computing. Background Art

[0002] Task offloading refers to the process of transferring tasks originally executed on local devices to other computing resources. In the context of Internet of Vehicles and edge computing, task offloading usually involves transferring computationally intensive or delay-sensitive tasks on the vehicle to nearby edge servers or cloud servers to reduce the burden on the vehicle's local computing resources, improve computing efficiency, reduce latency, and enhance the overall performance of the system.

[0003] In the prior art, a method and device for unloading vehicle tasks in the Internet of Vehicles is disclosed with the publication number CN113687875B. The method includes: introducing mobile edge computing into the vehicle task unloading scenario, establishing a traffic environment including computing nodes and vehicles to be unloaded; wherein the computing nodes are edge nodes in edge computing, used for unloading tasks for vehicles, and processing the tasks unloaded by the vehicles; based on the traffic environment, with the goal of reducing system latency, a vehicle task unloading model is established using a deep reinforcement learning algorithm to achieve collaborative optimization of communication and computing resources; and the vehicle task unloading model is used to achieve vehicle task unloading in the Internet of Vehicles. This prior art introduces edge computing in the field of Internet of Vehicles, and improves the vehicle task unloading method in the traditional Internet of Vehicles based on a deep reinforcement learning algorithm, thereby providing a low-latency unloading solution for vehicle task unloading. However, the above-mentioned prior art only considers the delay time of the system processing tasks, and does not comprehensively consider other factors, such as vehicle and server energy consumption factors, so its applicability is relatively narrow.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention

[0005] The purpose of the present invention is to provide a vehicle network collaborative task unloading method and unloading device based on edge computing to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] The method for unloading collaborative tasks in Internet of Vehicles based on edge computing includes the following specific steps:

[0008] S1. Establish a roadside edge computing model. Set up a task offloading server on one side of the horizontal two-way lane and define it as the origin of the coordinate system. The X axis is parallel to the lane direction, the right direction is the positive direction, and the Y axis is parallel to the road plane and perpendicular to the road direction, the bottom side is the positive direction. The projection position of the i-th vehicle in the coordinate system is (x i ,y i ), i represents the number of different vehicles, i = 1, 2, 3, ..., n, n is a positive integer;

[0009] S2, collecting the communication parameters of the task offloading server and the speed of the i-th vehicle;

[0010] S3, performing correlation analysis on the communication parameters and the projection position of the i-th vehicle in the coordinate system, generating an exit distance and further generating an exit time, where the exit time is used to reflect the time required for the i-th vehicle to exit the communication coverage radius of the server;

[0011] S4, collecting the calculation parameters of the i-th vehicle, the calculation power of the task offloading server, and the task transmission power;

[0012] S5. Perform correlation analysis on the calculation parameters of the i-th vehicle to generate a calculation delay of the i-th vehicle, where the calculation delay is used to reflect the calculation time required for the calculation task request q of the i-th vehicle;

[0013] S6. Perform correlation analysis on the computing delay of the i-th vehicle and the computing parameters of the i-th vehicle to generate the local computing energy consumption of the i-th vehicle. The local computing energy consumption of the i-th vehicle is used to reflect the energy consumption required to process the task request. i ,y i ), task request, and communication parameters are correlated and analyzed to generate the calculation delay of the task offloading server. The calculation delay of the task offloading server is used to reflect the calculation time required to transmit the task request to the task offloading server for calculation and then transmit it back to the vehicle;

[0014] S7, perform correlation analysis on the computing power and communication parameters of the task offloading server, generate the computing energy consumption of the task offloading server, which is used to reflect the energy consumed by the task offloading server to calculate the task request, and calculate the task transmission power, the projection position (x i ,y i ) performs correlation analysis to generate offload task transmission energy consumption, where the offload task transmission energy consumption is used to reflect the energy required for task request transmission;

[0015] S8, performing correlation analysis on the computation delay of the ith vehicle, the computation delay of the task offloading server, the local computation energy consumption of the ith vehicle, the computation energy consumption of the task offloading server, and the transmission energy consumption of the offloading task, and generating a comprehensive evaluation of the task offloading, where the comprehensive evaluation of the task offloading is used to reflect the evaluation confidence level of offloading the task request to the task offloading server;

[0016] S9. Compare the task offloading comprehensive evaluation with the value of 0, and output the task offloading evaluation confidence.

[0017] Furthermore, the communication parameters include a server communication coverage radius r and a server computing capacity J, wherein the server computing capacity J is used to reflect the number of CPU instruction cycles running per unit time of the task offloading server.

[0018] Furthermore, in S3, a correlation analysis is performed on the communication parameters and the projection position of the i-th vehicle in the coordinate system to generate the driving distance S i , the formula based on is:

[0019]

[0020] Among them, the driving distance S i It is used to reflect the distance that the i-th vehicle needs to travel to get out of the communication coverage radius of the server. ∝ is the direction of vehicle travel. The value of ∝ is calculated using the following formula:

[0021]

[0022] Furthermore, for the driving distance S i and the speed v of the i-th vehicle i Perform correlation analysis to generate the departure time t of the i-th vehicle i , the formula based on is:

[0023]

[0024] Among them, v i is the speed of the ith vehicle, and its exit time is t i Used to reflect the time required for the i-th vehicle to travel out of the communication coverage radius of the server.

[0025] Furthermore, the calculation parameters include the calculation capacity J of the i-th vehicle i and the local computing power P of the i-th vehicle i The computing power of the ith vehicle is used to reflect the number of CPU instruction cycles running per unit time of the ith vehicle, and the local computing power P of the ith vehicle is i It is used to reflect the power required by the i-th vehicle to run the computing request. For the task request q, the computing capacity J of the i-th vehiclei Perform correlation analysis with the task request to generate the calculation delay of the i-th vehicle The formula is:

[0026]

[0027] Among them, q is used to reflect the number of CPU instruction cycles required to run the task request and calculate the delay Used to reflect the computing time required for the i-th vehicle computing task request q.

[0028] Furthermore, the calculation delay for the i-th vehicle and the local computing power P of the i-th vehicle i Perform correlation analysis to generate the local computing energy consumption E of the i-th vehicle i , based on the formula:

[0029]

[0030] Among them, the local computing energy consumption of the i-th vehicle is E i It is used to reflect the energy consumption required to process task request q.

[0031] Furthermore, for the projection position (x i ,y i ), task request q, and server computing capacity J are correlated and the computing delay T of the task offloading server is generated. The formula is as follows:

[0032]

[0033] Where V is the task transmission speed, and the calculation delay T of the task offloading server is used to reflect the calculation time required to transmit the task request q to the task offloading server for calculation and then transmit it back to the vehicle;

[0034] The computing power P of the task offloading server and the computing capacity J of the server are analyzed for correlation, and the computing energy consumption W of the task offloading server is generated based on the following formula:

[0035]

[0036] Among them, the task offloading server computing energy consumption W is used to reflect the energy consumed by the task offloading server to calculate the task request q;

[0037] Transmission power P for the task c , the projection position of the i-th vehicle in the coordinate system (x i ,y i ) to perform correlation analysis and generate the offload task transmission energy consumption W c, the formula based on is:

[0038]

[0039] Among them, the transmission energy consumption of the offloading task is W c It is used to reflect the energy consumed by the task request q transmission, and V is the task transmission speed.

[0040] Furthermore, when T≤t i , indicating that the i-th vehicle can perform unloading calculation for task q; when T>t i , indicating that the i-th vehicle cannot perform unloading calculation for task q.

[0041] Furthermore, the calculation delay for the i-th vehicle The computational delay T of the task offloading server and the local computational energy consumption E of the i-th vehicle i , the computing energy consumption of the task offloading server W, the transmission energy consumption of the offloading task W c Correlation analysis is performed to generate the task offloading comprehensive evaluation RZP, based on the formula:

[0042]

[0043] Wherein, A represents the task weight factor, B represents the energy weight factor, 0≤A≤10, 0≤B≤10, and A+B=10. The task offloading comprehensive evaluation RZP is used to reflect the evaluation confidence level of offloading the task request to the task offloading server.

[0044] The present invention also provides an Internet of Vehicles collaborative task unloading device based on edge computing, which is used to execute an Internet of Vehicles collaborative task unloading method based on edge computing, including:

[0045] The model building module is used to build a roadside edge computing model. A task offloading server is set on one side of the horizontal two-way lane and defined as the origin of the coordinate system. The X axis is parallel to the lane direction, the right direction is the positive direction, and the Y axis is parallel to the road plane and perpendicular to the road direction, the lower side is the positive direction. The projection position of the i-th vehicle in the coordinate system is (x i ,y i );

[0046] A first collection module, the first collection module is used to collect communication parameters of the task offloading server and the speed of the i-th vehicle;

[0047] A driving-out time analysis module, which is used to perform correlation analysis on the communication parameters and the projection position of the i-th vehicle in the coordinate system, generate a driving-out distance and further generate a driving-out time, and the driving-out time is used to reflect the time required for the i-th vehicle to drive out of the communication coverage radius of the server;

[0048] A second acquisition module, the second acquisition module is used to collect the calculation parameters of the i-th vehicle, the calculation power of the task offloading server, and the task transmission power;

[0049] The vehicle processing analysis module is used to perform correlation analysis on the calculation parameters of the ith vehicle, generate the calculation delay of the ith vehicle, and the calculation delay is used to reflect the calculation time required for the ith vehicle to calculate the task request q, and perform correlation analysis on the calculation delay of the ith vehicle and the calculation parameters of the ith vehicle to generate the local calculation energy consumption of the ith vehicle, and the local calculation energy consumption of the ith vehicle is used to reflect the energy consumption required for processing the task request, and the projection position (x i ,y i ), task request, and communication parameters are correlated and analyzed to generate the calculation delay of the task offloading server. The calculation delay of the task offloading server is used to reflect the calculation time required to transmit the task request to the task offloading server for calculation and then transmit it back to the vehicle;

[0050] The server processing analysis module is used to perform correlation analysis on the computing power and communication parameters of the task offloading server, generate the computing energy consumption of the task offloading server, and the computing energy consumption of the task offloading server is used to reflect the energy consumed by the task offloading server to calculate the task request, and to calculate the task transmission power, the projection position (x i ,y i ) performs correlation analysis to generate offload task transmission energy consumption, where the offload task transmission energy consumption is used to reflect the energy required for task request transmission;

[0051] A comprehensive evaluation and analysis module, which is used to perform correlation analysis on the computing delay of the ith vehicle, the computing delay of the task offloading server, the local computing energy consumption of the ith vehicle, the computing energy consumption of the task offloading server, and the transmission energy consumption of the offloading task, and generate a comprehensive evaluation of the task offloading;

[0052] A comparison module, wherein the comparison module is used to compare the task offloading comprehensive evaluation with a value of 0 and output the task offloading evaluation confidence;

[0053] When the comprehensive evaluation of task offloading is greater than 0, the output confidence of the task offloading evaluation is 95%. At this time, the task request can be offloaded from the vehicle to the task offloading server for calculation and the calculation result is returned; when the comprehensive evaluation of task offloading is less than 0, the output confidence of the task offloading evaluation is 30%. At this time, it is not recommended to offload the task request from the vehicle to the task offloading server for calculation.

[0054] Compared with the prior art, the present invention has the following beneficial effects:

[0055] The present invention conducts a comprehensive analysis of the task processing delay time and task processing energy consumption for the first time. By establishing a roadside edge computing model, the parameters of the task offloading server and the relevant parameters of the corresponding vehicle are collected, and a correlation analysis is performed to generate the departure time, the local computing energy consumption of the vehicle, the computing delay of the task offloading server, the offloading task transmission energy consumption, and the task offloading server computing energy consumption. A comprehensive analysis and evaluation is performed on the above intermediate parameters to generate a task offloading comprehensive evaluation that reflects the confidence level of the task request offloading to the task offloading server, and further output the task offloading evaluation confidence level to help the vehicle determine whether to offload the task request to the edge task offloading server for calculation. The present invention has a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a schematic diagram of the overall method flow of the present invention;

[0057] Figure 2 This is a module diagram of the overall system of the present invention. DETAILED DESCRIPTION

[0058] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0059] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0060] Example:

[0061] See also Figure 1 , the present invention provides a technical solution:

[0062] The method for unloading collaborative tasks in Internet of Vehicles based on edge computing includes the following specific steps:

[0063] S1. Establish a roadside edge computing model. Set up a task offloading server on one side of the horizontal two-way lane and define it as the origin of the coordinate system. The X axis is parallel to the lane direction, and the right direction is the positive direction. The Y axis is parallel to the road plane and perpendicular to the road direction, and the bottom side is the positive direction. There are n vehicles in the roadside edge computing model. The projection position of the i-th vehicle in the coordinate system is (x i ,y i ), i represents the number of different vehicles, i = 1, 2, 3, ..., n, n is a positive integer, where y i represents the projection position of the Y axis of the i-th vehicle in the coordinate system, x i represents the projection position of the X-axis of the i-th vehicle in the coordinate system;

[0064] S2, collecting the communication parameters of the task offloading server and the speed of the i-th vehicle;

[0065] The communication parameters include the server communication coverage radius r and the server computing power J, wherein the server communication coverage radius r and the server computing power J can be obtained through the basic information of the task offloading server, the vehicle speed can be obtained through the vehicle dashboard, and the server computing power J is used to reflect the number of CPU instruction cycles running per unit time of the task offloading server.

[0066] S3, performing correlation analysis on the communication parameters and the projection position of the i-th vehicle in the coordinate system, generating an exit distance and further generating an exit time, where the exit time is used to reflect the time required for the i-th vehicle to exit the communication coverage radius of the server;

[0067] In S3, the correlation analysis is performed on the communication parameters and the projection position of the i-th vehicle in the coordinate system to generate the driving distance S i , the formula based on is:

[0068]

[0069] Where ∝ is the direction of vehicle travel, and the value of ∝ is calculated using the following formula:

[0070]

[0071] By analyzing the coordinate system of the roadside edge calculation model and according to the ∝ guided by the vehicle's driving direction, the exit distance S is calculated by the above formula i , travel distance S i Used to reflect the distance that the i-th vehicle needs to travel to get out of the communication coverage radius of the server.

[0072] For the exit distance S i and the speed v of the i-th vehicle iPerform correlation analysis to generate the departure time t of the i-th vehicle i , the formula based on is:

[0073]

[0074] Among them, v i is the speed of the i-th vehicle. In the roadside edge calculation model, for the convenience of calculation, the vehicle's speed is set to a uniform speed, and the exit time t i Used to reflect the time required for the i-th vehicle to travel out of the communication coverage radius of the server.

[0075] S4, collecting the calculation parameters of the i-th vehicle, the calculation power of the task offloading server, and the task transmission power;

[0076] S5. Perform correlation analysis on the calculation parameters of the i-th vehicle to generate a calculation delay of the i-th vehicle, where the calculation delay is used to reflect the calculation time required for the calculation task request q of the i-th vehicle;

[0077] The calculation parameters include the computing capacity J of the i-th vehicle i and the local computing power P of the i-th vehicle i , the computing power J of the i-th vehicle i and the local computing power P of the i-th vehicle i are the performance parameters of the vehicle's onboard processor and can be directly obtained. The computing power of the ith vehicle is used to reflect the number of CPU instruction cycles per unit time of the ith vehicle. The local computing power P of the ith vehicle i It is used to reflect the power required by the i-th vehicle to run the computing request. For the task request q, the computing capacity J of the i-th vehicle i Perform correlation analysis with the task request to generate the calculation delay of the i-th vehicle The formula is:

[0078]

[0079] Among them, q is used to reflect the number of CPU instruction cycles required to run the task request and calculate the delay It is used to reflect the computing time required for the i-th vehicle to calculate the task request q. The more CPU instruction cycles the task request requires to run, the higher the computing delay. The stronger the computing power of the i-th vehicle, the lower the computing delay.

[0080] S6. Perform correlation analysis on the computing delay of the i-th vehicle and the computing parameters of the i-th vehicle to generate the local computing energy consumption of the i-th vehicle. The local computing energy consumption of the i-th vehicle is used to reflect the energy consumption required to process the task request.i ,y i ), task request, and communication parameters are correlated and analyzed to generate the calculation delay of the task offloading server. The calculation delay of the task offloading server is used to reflect the calculation time required to transmit the task request to the task offloading server for calculation and then transmit it back to the vehicle;

[0081] Calculation delay for the i-th vehicle and the local computing power P of the i-th vehicle i Perform correlation analysis to generate the local computing energy consumption E of the i-th vehicle i , based on the formula:

[0082]

[0083] Among them, the local computing energy consumption of the i-th vehicle is E i It is used to reflect the energy consumption required to process the task request q. The local computing energy consumption of the i-th vehicle is directly proportional to the computing delay of the i-th vehicle and the local computing power of the i-th vehicle. The greater the computing delay of the i-th vehicle and the greater the local computing power of the i-th vehicle, the greater the local computing energy consumption of the i-th vehicle.

[0084] The projection position (x i ,y i ), task request q, and server computing capacity J are correlated and the computing delay T of the task offloading server is generated. The formula is as follows:

[0085]

[0086] Wherein, V is the task transmission speed, that is, the transmission speed of the electromagnetic wave signal. The calculation delay T of the task offloading server is used to reflect the calculation time required to transmit the task request q to the task offloading server for calculation and then transmit it back to the vehicle. The transmission time and calculation time are comprehensively analyzed to generate the calculation delay T of the task offloading server.

[0087] S7, perform correlation analysis on the computing power and communication parameters of the task offloading server, generate the computing energy consumption of the task offloading server, which is used to reflect the energy consumed by the task offloading server to calculate the task request, and calculate the task transmission power, the projection position (x i ,y i ) performs correlation analysis to generate offload task transmission energy consumption, where the offload task transmission energy consumption is used to reflect the energy required for task request transmission;

[0088] The computing power P of the task offloading server and the computing capacity J of the server are analyzed for correlation, and the computing energy consumption W of the task offloading server is generated based on the following formula:

[0089]

[0090] Among them, the task offloading server computing energy consumption W is used to reflect the energy consumed by the task offloading server to calculate the task request q;

[0091] Transmission power P for the task c , the projection position of the i-th vehicle in the coordinate system (x i ,y i ) to perform correlation analysis and generate the offload task transmission energy consumption W c , the formula based on is:

[0092]

[0093] Among them, the transmission energy consumption of the offloading task is W c It is used to reflect the energy consumed by the task request q transmission, and V is the task transmission speed.

[0094] S8, performing correlation analysis on the computation delay of the i-th vehicle, the computation delay of the task offloading server, the local computation energy consumption of the i-th vehicle, the computation energy consumption of the task offloading server, and the transmission energy consumption of the offloading task, and generating a comprehensive evaluation of the task offloading;

[0095] When T≤t i , indicating that the i-th vehicle can perform unloading calculation for task q and can perform the following steps for analysis; when T>t i , indicating that the i-th vehicle cannot perform unloading calculation for task q, that is, the following steps are not performed for analysis.

[0096] Calculation delay for the i-th vehicle The computational delay T of the task offloading server and the local computational energy consumption E of the i-th vehicle i , the computing energy consumption of the task offloading server W, the transmission energy consumption of the offloading task W c Correlation analysis is performed to generate the task offloading comprehensive evaluation RZP, based on the formula:

[0097]

[0098] Among them, A represents the task weight factor, B represents the energy weight factor, 0≤A≤10, 0≤B≤10, and A+B=10. The task offloading comprehensive evaluation RZP is used to reflect the evaluation confidence level of offloading the task request to the task offloading server. The task offloading comprehensive evaluation comprehensively considers the weight of the task weight and the weight of the energy consumption. When the task urgency weight accounts for a large proportion, the value of A is greater than B. When the vehicle power is low or the task offloading server is underpowered, the value of B is greater than A. The larger the value of the task offloading comprehensive evaluation RZP is, the higher the delay and energy consumption saved when the task request is offloaded to the vehicle. The larger the value of the task offloading comprehensive evaluation RZP is, the more it is recommended to offload the task request to the task offloading server for calculation. The smaller the value of the task offloading comprehensive evaluation RZP is, the less it is recommended to offload the task request to the task offloading server for calculation. The evaluation confidence level is used to assist the vehicle in determining whether to send the task request to the task offloading server for calculation. The higher the value is, the more it is recommended to send the task request to the task offloading server for calculation.

[0099] S9. Compare the task offloading comprehensive evaluation with the value of 0, and output the task offloading evaluation confidence.

[0100] When the comprehensive evaluation of task offloading is greater than 0, the output confidence of the task offloading evaluation is 95%. At this time, the task request can be offloaded from the vehicle to the task offloading server for calculation and the calculation result is returned; when the comprehensive evaluation of task offloading is less than 0, the output confidence of the task offloading evaluation is 30%. At this time, it is not recommended to offload the task request from the vehicle to the task offloading server for calculation.

[0101] See also Figure 2 The present invention also provides an Internet of Vehicles collaborative task unloading device based on edge computing, which is used to execute an Internet of Vehicles collaborative task unloading method based on edge computing, including:

[0102] Model building module,The model building module is used to build a roadside edge computing model. A task offloading server is set on one side of the horizontal two-way lane and defined as the origin of the coordinate system. The X axis is parallel to the lane direction, and the right direction is the positive direction. The Y axis is parallel to the road plane and perpendicular to the road direction, and the lower side is the positive direction. The projection position of the i-th vehicle in the coordinate system is (x i ,y i );

[0103] A first collection module, the first collection module is used to collect the communication parameters of the task offloading server and the speed of the i-th vehicle;

[0104] The exit time analysis module is used to perform correlation analysis on the communication parameters and the projection position of the i-th vehicle in the coordinate system, generate the exit distance and further generate the exit time. The exit time is used to reflect the time required for the i-th vehicle to exit the communication coverage radius of the server;

[0105] A second acquisition module, the second acquisition module is used to collect the calculation parameters of the i-th vehicle, the calculation power of the task offloading server, and the task transmission power;

[0106] The vehicle processing analysis module is used to perform correlation analysis on the calculation parameters of the ith vehicle, generate the calculation delay of the ith vehicle, and the calculation delay is used to reflect the calculation time required for the ith vehicle to calculate the task request q. The calculation delay of the ith vehicle and the calculation parameters of the ith vehicle are analyzed to generate the local calculation energy consumption of the ith vehicle. The local calculation energy consumption of the ith vehicle is used to reflect the energy consumption required to process the task request. The projection position (x i ,y i ), task request, and communication parameters are correlated and analyzed to generate the calculation delay of the task offloading server. The calculation delay of the task offloading server is used to reflect the calculation time required to transmit the task request to the task offloading server for calculation and then transmit it back to the vehicle;

[0107] The server processing analysis module is used to perform correlation analysis on the computing power and communication parameters of the task offloading server, generate the computing energy consumption of the task offloading server, and reflect the energy consumed by the task offloading server to calculate the task request. It also analyzes the task transmission power, the projection position (x i ,y i ) performs correlation analysis to generate offload task transmission energy consumption, where the offload task transmission energy consumption is used to reflect the energy required for task request transmission;

[0108] Comprehensive evaluation and analysis module: The comprehensive evaluation and analysis module is used to perform correlation analysis on the computing delay of the ith vehicle, the computing delay of the task offloading server, the local computing energy consumption of the ith vehicle, the computing energy consumption of the task offloading server, and the transmission energy consumption of the offloading task, and generate a comprehensive evaluation of the task offloading;

[0109] Comparison module,The comparison module is used to compare the task offloading comprehensive evaluation with the value of 0 and output the task offloading evaluation confidence.

[0110] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0111] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software methods depends on the specific application and design constraints of the technical solution.

[0112] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0113] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A method for unloading collaborative tasks in Internet of Vehicles based on edge computing, characterized in that: The specific steps include: S1. Establish a roadside edge computing model. Set up a task offloading server on one side of the horizontal two-way lane and define it as the origin of the coordinate system. The X axis is parallel to the lane direction, the right direction is the positive direction, and the Y axis is parallel to the road plane and perpendicular to the road direction, the bottom side is the positive direction. The projection position of the i-th vehicle in the coordinate system is (x i ,y i ), i represents the number of different vehicles, i = 1, 2, 3, ..., n, n is a positive integer; S2, collecting the communication parameters of the task offloading server and the speed of the i-th vehicle; S3, performing correlation analysis on the communication parameters and the projection position of the i-th vehicle in the coordinate system, generating an exit distance and further generating an exit time, where the exit time is used to reflect the time required for the i-th vehicle to exit the communication coverage radius of the server; S4, collecting the calculation parameters of the i-th vehicle, the calculation power of the task offloading server, and the task transmission power; S5. Perform correlation analysis on the calculation parameters of the i-th vehicle to generate a calculation delay of the i-th vehicle, where the calculation delay is used to reflect the calculation time required for the calculation task request q of the i-th vehicle; S6. Perform correlation analysis on the computing delay of the i-th vehicle and the computing parameters of the i-th vehicle to generate the local computing energy consumption of the i-th vehicle. The local computing energy consumption of the i-th vehicle is used to reflect the energy consumption required to process the task request. i ,y i ), task request, and communication parameters are correlated and analyzed to generate the calculation delay of the task offloading server. The calculation delay of the task offloading server is used to reflect the calculation time required to transmit the task request to the task offloading server for calculation and then transmit it back to the vehicle; S7, perform correlation analysis on the computing power and communication parameters of the task offloading server, generate the computing energy consumption of the task offloading server, which is used to reflect the energy consumed by the task offloading server to calculate the task request, and calculate the task transmission power, the projection position (x i ,y i ) performs correlation analysis to generate offload task transmission energy consumption, where the offload task transmission energy consumption is used to reflect the energy required for task request transmission; S8, performing correlation analysis on the computation delay of the ith vehicle, the computation delay of the task offloading server, the local computation energy consumption of the ith vehicle, the computation energy consumption of the task offloading server, and the transmission energy consumption of the offloading task, and generating a comprehensive evaluation of the task offloading, where the comprehensive evaluation of the task offloading is used to reflect the evaluation confidence level of offloading the task request to the task offloading server; S9. Compare the task offloading comprehensive evaluation with the value of 0, and output the task offloading evaluation confidence.

2. The method for unloading collaborative tasks in an Internet of Vehicles based on edge computing according to claim 1 is characterized in that: The communication parameters include the server communication coverage radius r and the server computing capacity J, and the server computing capacity J is used to reflect the number of CPU instruction cycles running per unit time of the task offloading server.

3. The method for unloading collaborative tasks in an Internet of Vehicles based on edge computing according to claim 2 is characterized in that: In S3, the communication parameters and the projection position of the i-th vehicle in the coordinate system are subjected to correlation analysis to generate the exit distance S i , the formula based on is: Among them, the driving distance S i It is used to reflect the distance that the i-th vehicle needs to travel to get out of the communication coverage radius of the server. ∝ is the direction of vehicle travel. The value of ∝ is calculated using the following formula:

4. The method for unloading collaborative tasks in Internet of Vehicles based on edge computing according to claim 3 is characterized in that: For the exit distance S i and the speed v of the i-th vehicle i Perform correlation analysis to generate the departure time t of the i-th vehicle i , the formula based on is: Among them, v i is the speed of the ith vehicle, and its exit time is t i Used to reflect the time required for the i-th vehicle to travel out of the communication coverage radius of the server.

5. The method for unloading collaborative tasks in Internet of Vehicles based on edge computing according to claim 4 is characterized in that: The calculation parameters include the calculation capacity J of the i-th vehicle i and the local computing power P of the i-th vehicle i The computing power of the ith vehicle is used to reflect the number of CPU instruction cycles running per unit time of the ith vehicle, and the local computing power P of the ith vehicle is i It is used to reflect the power required by the i-th vehicle to run the computing request. For the task request q, the computing capacity J of the i-th vehicle i Perform correlation analysis with the task request to generate the calculation delay of the i-th vehicle The formula is: Among them, q is used to reflect the number of CPU instruction cycles required to run the task request and calculate the delay Used to reflect the computing time required for the i-th vehicle computing task request q.

6. The method for unloading collaborative tasks in Internet of Vehicles based on edge computing according to claim 5 is characterized in that: Calculation delay for the i-th vehicle and the local computing power P of the i-th vehicle i Perform correlation analysis to generate the local computing energy consumption E of the i-th vehicle i , based on the formula: Among them, the local computing energy consumption of the i-th vehicle is E i It is used to reflect the energy consumption required to process task request q.

7. The method for unloading collaborative tasks in Internet of Vehicles based on edge computing according to claim 5 is characterized in that: The projection position (x i ,y i ), task request q, and server computing capacity J are correlated and the computing delay T of the task offloading server is generated. The formula is as follows: Where V is the task transmission speed, and the calculation delay T of the task offloading server is used to reflect the calculation time required to transmit the task request q to the task offloading server for calculation and then transmit it back to the vehicle; The computing power P of the task offloading server and the computing capacity J of the server are analyzed for correlation, and the computing energy consumption W of the task offloading server is generated based on the following formula: Among them, the task offloading server computing energy consumption W is used to reflect the energy consumed by the task offloading server to calculate the task request q; Transmission power P for the task c , the projection position of the i-th vehicle in the coordinate system (x i ,y i ) to perform correlation analysis and generate the offload task transmission energy consumption W c , the formula based on is: Among them, the transmission energy consumption of the offloading task is W c It is used to reflect the energy consumed by the task request q transmission, and V is the task transmission speed.

8. The method for unloading collaborative tasks in an Internet of Vehicles based on edge computing according to any one of claims 6 and 7, characterized in that: When T≤t i , indicating that the i-th vehicle can perform unloading calculation for task q; when T>t i , indicating that the i-th vehicle cannot perform unloading calculation for task q.

9. The method for unloading collaborative tasks in an Internet of Vehicles based on edge computing according to claim 8 is characterized in that: Calculation delay for the i-th vehicle The computational delay T of the task offloading server and the local computational energy consumption E of the i-th vehicle i , the computing energy consumption of the task offloading server W, the transmission energy consumption of the offloading task W c Correlation analysis is performed to generate the task offloading comprehensive evaluation RZP, based on the formula: Wherein, A represents the task weight factor, B represents the energy weight factor, 0≤A≤10, 0≤B≤10, and A+B=10. The task offloading comprehensive evaluation RZP is used to reflect the evaluation confidence level of offloading the task request to the task offloading server.

10. A vehicle networking collaborative task unloading device based on edge computing, used to execute the vehicle networking collaborative task unloading method based on edge computing according to claim 1, characterized in that: include: The model building module is used to build a roadside edge computing model. A task offloading server is set on one side of the horizontal two-way lane and defined as the origin of the coordinate system. The X axis is parallel to the lane direction, the right direction is the positive direction, and the Y axis is parallel to the road plane and perpendicular to the road direction, the lower side is the positive direction. The projection position of the i-th vehicle in the coordinate system is (x i ,y i ); A first collection module, the first collection module is used to collect communication parameters of the task offloading server and the speed of the i-th vehicle; A driving-out time analysis module, which is used to perform correlation analysis on the communication parameters and the projection position of the i-th vehicle in the coordinate system, generate a driving-out distance and further generate a driving-out time, and the driving-out time is used to reflect the time required for the i-th vehicle to drive out of the communication coverage radius of the server; A second acquisition module, the second acquisition module is used to collect the calculation parameters of the i-th vehicle, the calculation power of the task offloading server, and the task transmission power; The vehicle processing analysis module is used to perform correlation analysis on the calculation parameters of the ith vehicle, generate the calculation delay of the ith vehicle, and the calculation delay is used to reflect the calculation time required for the ith vehicle to calculate the task request q, and perform correlation analysis on the calculation delay of the ith vehicle and the calculation parameters of the ith vehicle to generate the local calculation energy consumption of the ith vehicle, and the local calculation energy consumption of the ith vehicle is used to reflect the energy consumption required for processing the task request, and the projection position (x i ,y i ), task request, and communication parameters are correlated and analyzed to generate the calculation delay of the task offloading server. The calculation delay of the task offloading server is used to reflect the calculation time required to transmit the task request to the task offloading server for calculation and then transmit it back to the vehicle; The server processing analysis module is used to perform correlation analysis on the computing power and communication parameters of the task offloading server, generate the computing energy consumption of the task offloading server, and the computing energy consumption of the task offloading server is used to reflect the energy consumed by the task offloading server to calculate the task request, and to calculate the task transmission power, the projection position (x i ,y i ) performs correlation analysis to generate offload task transmission energy consumption, where the offload task transmission energy consumption is used to reflect the energy required for task request transmission; A comprehensive evaluation and analysis module, which is used to perform correlation analysis on the computing delay of the ith vehicle, the computing delay of the task offloading server, the local computing energy consumption of the ith vehicle, the computing energy consumption of the task offloading server, and the transmission energy consumption of the offloading task, and generate a comprehensive evaluation of the task offloading; A comparison module, wherein the comparison module is used to compare the task offloading comprehensive evaluation with a value of 0 and output the task offloading evaluation confidence; When the comprehensive evaluation of task offloading is greater than 0, the output confidence of the task offloading evaluation is 95%. At this time, the task request can be offloaded from the vehicle to the task offloading server for calculation and the calculation result is returned; when the comprehensive evaluation of task offloading is less than 0, the output confidence of the task offloading evaluation is 30%. At this time, it is not recommended to offload the task request from the vehicle to the task offloading server for calculation.