An idle vehicle-assisted on-board edge computing offloading and resource pricing method
By using the Stackelberg game model and matching theory in the vehicle edge computing environment, idle vehicle resources are attracted, the interest game problem in task offloading and resource pricing is solved, the computing power and system efficiency are improved, and the problem of unutilized resources is solved.
Patent Information
- Application Number
- CN202311852001.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-12-29
AI Technical Summary
In the vehicle edge computing environment, there is a game of interests in task offloading and resource pricing issues, resulting in inefficient use of resources, reduced performance of overloaded servers, and underutilization of resources such as idle vehicles and roadside units.
The idle vehicle-assisted on-vehicle edge computing offloading and resource pricing method is adopted. By establishing an edge computing architecture and based on the Stackelberg game model and matching theory, task offloading and resource pricing are achieved, and idle vehicle resources are attracted to expand computing capabilities.
It realizes task offloading and resource allocation under the constraints of all parties, improves the computing power of the VEC server, reduces delay and energy consumption, and improves the overall efficiency of the system.
Smart Images

Figure CN117896697B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of vehicle-mounted edge computing, and in particular relates to an idle vehicle auxiliary vehicle-mounted edge computing unloading and resource pricing method. Background Art
[0002] Vehicular edge computing (VEC) provides IT service environment and cloud-edge computing capabilities for vehicle users at the edge of the network, migrating terminal requests to cloud-edge servers with richer computing resources for execution, greatly reducing network operation and service delivery latency. However, it also inevitably brings a series of challenges: (1) Task offloading and resource pricing issues in the vehicle edge computing environment involve more and more interest games between infrastructure providers and requesting vehicle users, making reasonable task offloading and resource pricing in the edge computing environment a technical and application problem that needs to be solved urgently; at the same time, the resources of edge servers are limited and face the dilemma of handling these demands. In addition, both cloud-edge servers and idle vehicles usually pursue their own interests in the vehicle edge computing system and may not be willing to actively share resources. At the same time, the current research on mobile edge task offloading is carried out under the condition that the cloud-edge server passively becomes the offloading party. At this time, the cloud-edge server may not be willing to become the deploying party, because storing data and executing services requires a lot of resource space and computing power consumption, and the cloud-edge server without considering the return is likely to submit incorrect results and arbitrarily delay the offloading process. (2) Overloaded VEC servers may occur at any time, especially in urban agglomeration areas, which may greatly reduce the offloading performance. However, there are a large number of idle computing resources near VEC roads that are closer to users and more economical than cloud edge resources, which are not effectively utilized. These include parked vehicles, roadside units (RSUs), etc. These resources can potentially provide additional computing and communication resources for the system. If these resources can be concentrated and utilized, it will be a win-win situation for infrastructure providers and users. Therefore, it is urgent to propose an idle vehicle-assisted on-board edge computing offloading and resource pricing method. Summary of the invention
[0003] In order to solve the above technical problems, the present invention proposes an idle vehicle-assisted on-board edge computing offloading and resource pricing method, which responds to any task offloading request issued by the user vehicle and attracts surrounding idle vehicle resources to expand the computing capacity of the VEC server.
[0004] To achieve the above objectives, the present invention provides an idle vehicle auxiliary on-board edge computing unloading and resource pricing method, comprising:
[0005] Establish a practical edge computing environment by using idle vehicles to assist the on-board edge computing architecture;
[0006] Based on the edge computing environment, the resource pricing and task offloading problems are modeled as a two-stage Stackelberg game model;
[0007] Based on the architecture and the two-stage Stackelberg game model, the situation of edge server task overload is considered, and a task matching algorithm based on matching theory is used to obtain a stable task-vehicle allocation scheme by considering the interdependence and preference sets between overloaded tasks and idle vehicles. Task offloading and resource pricing are performed based on the task-vehicle allocation scheme.
[0008] Optionally, the idle vehicle auxiliary on-board edge computing architecture includes: an unloading monitoring module, an unloading planning module, a strategy implementation module and an idle vehicle auxiliary unloading computing module;
[0009] The unloading monitoring module is used to collect real-time information from vehicle request tasks and monitor the idle status of vehicles around the user;
[0010] The offloading planning module is used to determine the goals and strategies of task offloading and calculate reasonable resource pricing based on the Stackelberg game model;
[0011] The policy implementation module executes the user task uninstallation operation according to the uninstallation policy;
[0012] The idle vehicle auxiliary unloading computing module is used to recruit a certain number of idle vehicles to expand edge server resources and use the delayed matching game model to allocate resources for overloaded tasks.
[0013] Optionally, modeling the resource pricing and task offloading problem as a two-stage Stackelberg game model includes:
[0014] Get the total latency of task i offloaded to the cloud-edge server for execution;
[0015] The benefit function obtained by the task during the offloading process;
[0016] When a task is offloaded to a cloud-edge server, the cloud-edge server obtains the benefit function of the task.
[0017] Optionally, the method for obtaining the total delay of task i offloaded to the cloud-edge server is:
[0018] t i =max{t i,l ,t i,j ,t i,c};
[0019]
[0020]
[0021]
[0022] Among them, t i,l is the delay of task i in local execution; t i,j is the execution delay of task i after offloading to the edge server; t i,c is the delay of task i being offloaded to the cloud server for execution; d i is the data size of task i, η i,j , η i,c are the data ratios of task i offloaded to edge-cloud servers, c i The number of CPUs required to execute the unit data of task i; f i is the computing power of task i on the local device, f j 、f c are the computing capabilities of edge and cloud servers respectively; i,j 、r i,c are the data transmission speeds during the offloading process from edge to cloud server, respectively;
[0023] The method of the benefit function obtained by the task during the offloading process is:
[0024] U i =A i -ξG m
[0025] A i =a e +a c
[0026] G m =g e +g c
[0027]
[0028]
[0029] g e =η i,j d i p i,j
[0030] g c =η i,c d i p i,c
[0031] Among them, A i is the reward obtained from offloading, G m is the cost paid, ξ is the discount factor of the satisfaction function, a eOffload task i to edge server e j satisfaction, a c is the satisfaction of offloading task i to the cloud server, g e To utilize the cost of edge servers, g c The cost of using cloud servers, represents the proportional gain factor of task i offloading to the edge server and The proportional gain factor of task i offloading to the cloud server, p i,j and p i,c They represent the resource unit prices of the edge server and cloud server for task i respectively;
[0032] When task i is offloaded to the cloud-edge server, the utility function of task i is expressed as:
[0033]
[0034] When offloading a task to a cloud-edge server, the cloud-edge server obtains the benefit function of the task as follows:
[0035]
[0036] Among them, η i,j and η i,c are the data proportions of task i offloaded to edge-cloud servers, and p i,j is the resource unit price of the edge server for task i, P v The unit price paid for expanding resources to the overload task, d i is the data size of task i, Q j and Q c is the unit resource cost of edge servers and cloud servers, Q total For edge servers j The total capacity of the
[0037] Optional task matching algorithms based on matching theory include:
[0038] With the help of IVs, the benefit function of overloaded task i during the unloading process is obtained;
[0039] Obtain the benefit function for IVs serving overloaded task i.
[0040] Optionally, the method for obtaining the benefit function of overloaded task i during the unloading process is:
[0041]
[0042]
[0043]
[0044]
[0045] Among them, S t is the delayed satisfaction of the task, is the cost paid to idle vehicle j; γ t is the discount factor of satisfaction, t i,max The maximum tolerable delay threshold of task i, is the processing delay of overload task i on idle vehicle j; D i is the data size of overload task i, P v The unit price paid for expanding resources to the overload task, c i is the number of CPUs required to execute the unit data of task i, Calculate the capacity for idle vehicle j.
[0046] Optionally, the method for obtaining the benefit function for IVs serving the overloaded task i is:
[0047]
[0048] Among them, D i is the data size of overload task i, P v The unit price paid for scaling resources to the overloaded task, γ s is the discount parameter for satisfaction with remaining resources, is the remaining storage capacity of idle vehicles, γ e is the discount factor of energy consumption, ω t For vehicle v j mission execution capability, Calculate the capacity for idle vehicle j.
[0049] Optional solutions to achieve a stable task-vehicle allocation include:
[0050] Step 1: Initialize the resources and task-related parameters of the IVs vehicle;
[0051] Step 2: Calculate the preference sets between tasks and IVs and obtain the preference ranking;
[0052] Step 3: The IVs select the most preferred tasks according to the preference set and send matching invitations;
[0053] Step 4: The task chooses whether to accept the matching invitation from IVs according to its own preference set; if the task has no alternatives, accept the invitation and use the IVs as alternatives; if the task has accepted invitations from other IVs, compare preferences and select IVs with higher preferences as alternatives;
[0054] Step 5: Repeat steps 3 to 5 according to actual needs and benefit feedback until a result that both parties are relatively satisfied with is reached;
[0055] Step 6: Complete the matching and generate the final task-vehicle matching result.
[0056] Optionally, performing task offloading and resource pricing based on the task-vehicle allocation scheme includes:
[0057] Request phase: The vehicle user sends an offloading request for any task to CEA;
[0058] Competition stage: The cloud edge servers in CEA compete for the willingness to offload tasks, and find the Nash equilibrium point of CEA resource pricing and task offloading strategy based on the Stackelberg game model;
[0059] Unloading phase: Unloading tasks according to the unloading decision;
[0060] Idle vehicle auxiliary unloading stage: CEA recruits a certain number of idle vehicles and matches the overloaded tasks on the VEC server to reasonable execution vehicles based on the matching game model.
[0061] Technical effect of the invention: The invention discloses an idle vehicle assisted on-board edge computing unloading and resource pricing method, which can respond to any task unloading request issued by the user vehicle and attract surrounding idle vehicle resources to expand the VEC server computing capacity. Under the premise of satisfying their respective constraints, with the goal of maximizing the profit of the task requesting vehicle and CEA in each round of task unloading, the Nash equilibrium point of the Stackelberg game model is found between the pricing given by CEA and the unloading intention decision of the corresponding request task, and extended to the situation of task overload, and an idle vehicle assisted on-board edge computing unloading and resource pricing method based on game theory is proposed. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0063] Figure 1 The idle vehicle auxiliary vehicle edge computing system architecture of the embodiment of the present invention;
[0064] Figure 2 It is a task-vehicle matching model based on matching theory in an embodiment of the present invention;
[0065] Figure 3 The relationship between the Nash equilibrium point and the number of iterations of the Stackelberg game in the embodiment of the present invention;
[0066] Figure 4 The influence of different numbers of request tasks on the benefit value of the leader (CEA) according to the embodiment of the present invention;
[0067] Figure 5 is the on-time completion rate of different numbers of requested tasks in the embodiment of the present invention;
[0068] Figure 6 Comparison of different offloading scenarios and request task offloading delays in embodiments of the present invention;
[0069] Figure 7 The relationship between different unloading scenarios and the benefit value of the unloading process of the requesting vehicle in the embodiment of the present invention;
[0070] Figure 8 The relationship between different unloading scenarios and the energy consumption of the requesting vehicle unloading in the embodiment of the present invention;
[0071] Fig. 9 The relationship between the number of IVs in Example 1 of the present invention and the average value of the benefits. DETAILED DESCRIPTION
[0072] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0073] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0074] This embodiment provides an idle vehicle auxiliary vehicle edge computing offloading and resource pricing method, including:
[0075] (1) Establish an idle vehicle (IVs) assisted in-vehicle edge computing (IVVEC) architecture;
[0076] (2) A Stackelberg game model for task offloading and cloud-edge server (CEA) resource pricing is proposed;
[0077] (3) The task is extended to the overload situation and a task pairing algorithm based on matching theory is proposed to obtain a stable task-vehicle allocation scheme.
[0078] The present invention establishes an idle vehicle (IVs) auxiliary vehicle edge computing (IVVEC) architecture such as Figure 1 As shown, it includes four parts:
[0079] (1) Offload monitoring: used to collect real-time information from vehicle request tasks and monitor the idle status of vehicles around the user.
[0080] (2) Offloading planning: Based on the Stackelberg game model, determine the goals and strategies of task offloading and calculate reasonable resource pricing;
[0081] (3) Policy implementation: Execute user task uninstallation operations according to the proposed uninstallation policy.
[0082] (4) Idle vehicle-assisted unloading computation: Recruiting a certain number of idle vehicles to expand edge server resources, and using the delayed matching game model to allocate resources for overloaded tasks.
[0083] However, in reality, VEC server overload may occur at any time, especially in urban agglomeration areas, which may greatly reduce the unloading performance. At the same time, a large number of idle resources near the road are not effectively utilized, including parked vehicles, roadside units (RSUs), etc. These resources can potentially provide additional computing and communication resources for the system, but they are not fully utilized at present. Therefore, a model is introduced to assist vehicle edge computing by attracting its idle vehicles to share resources.
[0084] (1) The factors affecting QOS service quality are mainly composed of task offloading delay and local execution delay. The total delay of task i offloaded to the cloud-edge server for execution is calculated as follows:
[0085] t i =max{t i,l ,t i,j ,t i,c}.in,
[0086] The latency of task i in local execution is defined as:
[0087] The latency of task i in offloading to the edge server is defined as:
[0088] The latency of task i offloaded to the cloud server for execution is defined as:
[0089] Among them, d i is the data size of task i, η i,j , η i,c are the data ratios of task i offloaded to edge-cloud servers, c i The number of CPUs required to execute the unit data of task i; f i is the computing power of task i on the local device, f j 、f cRepresent the computing power of edge-cloud servers respectively; r i,j 、r i,c They represent the transmission speeds during the offloading process from edge to cloud server, which can be obtained based on the prior knowledge of Shannon’s theorem.
[0090] (2) The benefit obtained by the task during the offloading process is, U i =A i -ξG m
[0091] Among them, A i =a e +a c represents the reward obtained from offloading, G m =g e +g c represents the cost paid, and ξ is the discount factor of the satisfaction function. When tasks are offloaded to cloud-edge servers, their satisfaction is modeled using a logarithmic function, which is a common approach to achieve proportional fairness. Specifically, task i is offloaded to edge server e j The satisfaction is expressed as Similarly, when the task is offloaded to the cloud server, its satisfaction is given by express.
[0092] Then, the cost of using edge servers and cloud servers is expressed as g e =η i,j d i p i,j and g c =η i, c d i p i,c Here, α e and α c Corresponding to the satisfaction coefficient, and represents the proportional gain factor of task offloading to edge servers and cloud servers, p i,j and p i,c They represent the resource unit prices of the edge server and cloud server for task i respectively.
[0093] Finally, when offloading tasks to cloud-edge servers, the utility function of task i, whether offloaded to edge servers or cloud servers, is expressed as:
[0094]
[0095] Mathematically speaking, the problem of maximizing the benefits of offloading tasks (followers) is stated as:
[0096]
[0097] st-η i,j ≤0(2b)
[0098] -η i,c ≤0(2c)
[0099] η i,j +η i,j ≤1(2d)
[0100] max{t i,l ,t i,j ,t i,c}-t i,max ≤0(2e)
[0101] Among them, (2b), (2c), and (2d) correspond to the constraints of the offloading ratio of the edge server and the cloud server, respectively. For delay-sensitive data, the task offloading time is used as a constraint. (2e) Ensure that the task offloading delay upper limit t i,max .
[0102] There is a cooperative relationship between edge servers and clouds, but competition may also occur due to cost differences. Nevertheless, they both have the opportunity to become the first choice of task requesters, so the edge servers and clouds are considered as a whole - the cloud-edge alliance (CEA). Therefore, the goal of collaborative optimization is to maximize the benefits of the entire CEA. The benefits of CEA are that edge servers e j and cloud server CS k The rewards gained from offloading tasks, minus their costs. Special attention should be paid to the cost of edge servers, which consists of their own resource costs and the cost of overloading tasks to expand resources:
[0103] U CEA =∑ i∈N η i,j p i,j d i -Q j Q total -P v (∑ i∈N η i,j d i -Q total )∑ i∈N η i,c (p i,j -Q c )d i (3)
[0104] Among them, Q j and Q c represents the unit resource cost of edge servers and cloud servers; Q total The edge server is jThe total capacity of
[0105] represents the unit price paid for expanding resources to the overloaded task, l th represents the number of idle vehicles added to VEA, and b controls the slope parameter of this function. This function ensures that the unit price P v Not less than P v,min , and does not exceed the execution cost Q of the VEC server j .
[0106] From a mathematical perspective, the problem of maximizing the interests of the CEA (leader) can be expressed as:
[0107]
[0108] QUR j -p i,j ≤0 (4b)
[0109] Q c -p i,c ≤0 (4c)
[0110] Where Q j and Q c represents the unit resource cost of edge servers and cloud servers. The existence of constraints (4b) and (4c) ensures that the pricing remains within its cost range.
[0111] Figure 2 A flow chart of task-vehicle pairing based on matching theory is given. When the task is overloaded, VEC will redirect the overloaded task to the vehicle v in VEA. j Thanks to container technology, tasks can be deployed quickly. IVs are incentivized to create containers to accept overloaded tasks and receive financial rewards. To meet task requirements and reduce costs, requesters show different interests in different IVs. Requesters recognize that these IVs have different computing capabilities. In contrast, each vehicle decides whether to accept a given task to maximize individual utility and select its matching task. Ultimately, this triggers a task-container matching market within VEC, where both requesters and executors are committed to matching according to their preferences.
[0112] 1) With the help of IVs, overload task i (hereinafter referred to as task i ) The benefit function during the unloading process can be expressed as:
[0113] Among them, by task i The delayed satisfaction minus the payment to the idle vehicle j (hereinafter referred to as v j) is composed of the cost. The logarithmic function of proportional fairness is used to construct the delayed satisfaction of the task. i From the perspective of delay, the smaller the actual execution time is relative to its delay threshold, the higher its satisfaction is and the higher the corresponding benefit is. Therefore, delay satisfaction is expressed as:
[0114]
[0115] Among them, γ t The discount factor representing satisfaction, Indicates v j On task i The processing delay, D i It is a task i The data size is To represent v j Computing power.
[0116] At the same time, using Indicates payment. Last task i The utility function can be expressed as:
[0117]
[0118] 2) Next, when constructing a container to handle the task i When analyzing the external workload of v j Obviously, the economic benefits here are converted into public utility benefits. At the same time, v j Considering its own resource requirements. j , remaining storage resources affect satisfaction where γ s is the discount parameter for the satisfaction with the remaining resources, represents the remaining storage capacity of idle vehicles. Similarly, v j Due to executing task i The energy consumption where γ e is the discount factor for energy consumption, ω t Represents vehicle v j Therefore, for task i IVs that provide services, whose utility functions are expressed as the income obtained and the satisfaction obtained minus the energy consumption cost:
[0119]
[0120] When the VEC server is overloaded, the task can be reallocated to IVs for execution. Considering the different needs and interests of tasks and vehicles, a task-vehicle stable matching algorithm (SMTV) is proposed in combination with the GS algorithm (Gale-Shapley algorithm). The specific steps are as follows:
[0121] Step 1: Initialization: Initialize the resources of the IVs vehicle and the relevant parameters of the task.
[0122] Step 2: Calculate the preference: The preference sets between tasks and IVs can be calculated by equations (6) and (7), and sorted according to the preference;
[0123] Step 3: Send invitations: IVs can send matching invitations based on the preference set and prioritize the most preferred tasks;
[0124] Step 4: Accept invitation: The task chooses whether to accept the matching invitation from IVs based on its own preference set. If the task has no alternatives, it accepts the invitation and takes the IVs as alternatives. If the task has accepted invitations from other IVs, it compares the preferences and chooses the IVs with higher preferences as alternatives;
[0125] Step 5 Iteration: Based on actual needs and benefit feedback, repeat steps 3 to 5 until a result that both parties are relatively satisfied with is reached;
[0126] End of step 6: Complete the matching and generate the final task-vehicle matching result;
[0127] The process of performing task offloading and resource pricing using the method of the present invention is as follows:
[0128] 1) Request phase: The infrastructure provider receives an offloading request from a user for any task;
[0129] 2) Competition phase: The cloud-edge servers compete for the deployment rights of each service in the requested application, and find the Nash equilibrium point between service pricing and task offloading data volume based on the Stackelberg game model. The specific game operations are as follows:
[0130] Based on the given formula (1) and formula (3), the impact of service quality on user experience during deployment is considered. Formula (7) is derived twice and it is proved that it satisfies the strict concave function characteristics:
[0131]
[0132]
[0133]
[0134]
[0135] Therefore, from formulas (8)(9)(10)(11), we can see that this game model has a Nash equilibrium point.
[0136] Solved to After the optimization, the constraints are eliminated by converting equation (4) into a Lagrangian function. Then, the original problem is decomposed into 2N sub-problems and the Lagrangian dual method and KKT conditions are used to solve the optimal solution resource pricing.
[0137] 3) Unloading phase: unloading the task;
[0138] 4) Repeat steps 2)-3) until all tasks in the application are uninstalled.
[0139] 5) Simulation results
[0140] The data results of the solution of the present invention (IVVEC) are compared with those of conventional solutions (VEC server independent solution VIS, cloud server independent solution CIS, VEC and cloud server collaborative solution VCS). Figure 3 It can be seen that the method of the present invention can obtain the optimal task offloading solution for the requesting vehicle and the optimal pricing strategy for the CEA, so that the requesting vehicle and the CEA can obtain the highest profit while satisfying their respective constraints. Figure 4 and Figure 5 By comparison, it can be seen that as the number of tasks requested by the vehicle changes, the effect of the method of the present invention is superior to that of the other three solutions in terms of both the benefit value of CEA and the task completion rate. Figure 6 , Figure 7 and Figure 8 By comparison, it can be seen that the method of the present invention is more competitive than the other three solutions in terms of delay of requesting tasks, profit (benefit value), and energy consumption. Fig. 9 It can be seen that in the overload task matching process, the SMTV algorithm proposed by the method of the present invention is superior to the other three algorithms (sequential, random allocation and greedy algorithm) in terms of the average profit (benefit value) of IVs.
[0141] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An idle vehicle-assisted on-board edge computing unloading and resource pricing method, characterized in that: include: Establish a practical edge computing environment by using idle vehicles to assist the on-board edge computing architecture; Based on the edge computing environment, the resource pricing and task offloading problems are modeled as a two-stage Stackelberg game model; Based on the architecture and the two-stage Stackelberg game model, the situation of edge server task overload is considered, and a task matching algorithm based on matching theory is used to obtain a stable task-vehicle allocation scheme by considering the mutual dependence and preference sets between overloaded tasks and idle vehicles. Task unloading and resource pricing are performed based on the task-vehicle allocation scheme. The resource pricing and task offloading problem is modeled as a two-stage Stackelberg game model including: Get the total latency of task i offloaded to the cloud-edge server for execution; The benefit function obtained by the task during the offloading process; When offloading a task to a cloud-edge server, the cloud-edge server obtains the benefit function of the task; The method to obtain the total latency of task i offloaded to the cloud-edge server is: t i =max{t i,l ,t i,j ,t i,c }; Among them, t i,l is the delay of task i in local execution; t i,j is the execution delay of task i after offloading to the edge server; t i,c is the delay of task i being offloaded to the cloud server for execution; d i is the data size of task i, η ij , η i,c are the data proportions of task i offloaded to edge-cloud servers; c i The number of CPUs required to execute the unit data of task i; f i is the computing power of task i on the local device; f j 、f c are the computing capabilities of edge and cloud servers respectively; i,j 、r i,c are the data transmission speeds during the offloading process from edge to cloud server, respectively; The method of the benefit function obtained by the task during the unloading process is: The i =A i -ξG m A i =a e +a c G m =g e +g c g e =η i,j d i p i,j g c =η i,c d i p i,c Among them, A i is the reward obtained from uninstallation; G m is the cost paid; ξ is the discount factor of the satisfaction function; a e Offload task i to edge server e j satisfaction; c The satisfaction of offloading task i to the cloud server; g e Cost incurred for utilizing edge servers; g c Costs incurred by utilizing cloud servers; represents the proportional gain factor of task i offloading to the edge server and The proportional gain factor of task i offloading to the cloud server; p i,j and p i,c They represent the resource unit prices of the edge server and cloud server for task i respectively; When task i is offloaded to the cloud-edge server, the utility function of task i is expressed as: When offloading a task to a cloud-edge server, the cloud-edge server obtains the benefit function of the task as follows: Among them, η i,j and η i,c are the data proportions of task i offloaded to edge-cloud servers; p i,j is the resource unit price of the edge server for task i; P v The unit price paid for expanding resources to overload tasks; d i is the data size of task i; Q j and Q c is the unit resource cost of edge server and cloud server; Q total For edge servers j The total capacity of Task matching algorithms based on matching theory include: With the help of IVs, the benefit function of overloaded task i during the unloading process is obtained; Obtain the benefit function for IVs that provide services for overloaded task i; The method to obtain the benefit function of overload task i during the unloading process is: Among them, V i is the benefit function of overload task i during unloading; S t Delayed satisfaction for the task; is the cost paid to idle vehicle j; γ t is the discount factor of satisfaction; t i,max The maximum tolerable delay threshold of task i; is the processing delay of overload task i on idle vehicle j; D i is the data size of overload task i; P v The unit price paid for expanding resources to overload tasks; c i The number of CPUs required to execute the unit data of task i; Calculate capacity for idle vehicle j; The method to obtain the benefit function for IVs serving overloaded task i is: Among them, D i is the data size of overload task i; P v The unit price paid for scaling resources to the overloaded task; γ s is the discount parameter for satisfaction with remaining resources; is the remaining storage capacity of idle vehicles; e is the discount factor of energy consumption; ω t For vehicle v j mission execution capabilities; Calculate capacity for idle vehicle j; Achieving a stable mission-vehicle allocation solution includes: Step 1: Initialize the resources and task-related parameters of the IVs vehicle; Step 2: Calculate the preference sets between tasks and IVs and obtain the preference ranking; Step 3: The IVs select the most preferred tasks according to the preference set and send matching invitations; Step 4: The task chooses whether to accept the matching invitation from IVs according to its own preference set; if the task has no alternatives, accept the invitation and use the IVs as alternatives; if the task has accepted invitations from other IVs, compare preferences and select IVs with higher preferences as alternatives; Step 5: Repeat steps 3 to 5 according to actual needs and benefit feedback until a result that both parties are relatively satisfied with is reached; Step 6: Complete the matching and generate the final task-vehicle matching result; Task offloading and resource pricing based on the task-vehicle allocation scheme include: Request phase: The vehicle user sends an offloading request for any task to CEA; Competition stage: The cloud edge servers in CEA compete for the willingness to offload tasks, and find the Nash equilibrium point of CEA resource pricing and task offloading strategy based on the Stackelberg game model; Unloading phase: Unloading tasks according to the unloading decision; Idle vehicle auxiliary unloading stage: CEA recruits a certain number of idle vehicles and matches the overloaded tasks on the VEC server to reasonable execution vehicles based on the matching game model.
2. The idle vehicle auxiliary vehicle-mounted edge computing unloading and resource pricing method as claimed in claim 1, characterized in that: The idle vehicle auxiliary on-board edge computing architecture includes: an unloading monitoring module, an unloading planning module, a strategy implementation module and an idle vehicle auxiliary unloading computing module; The unloading monitoring module is used to collect real-time information from vehicle request tasks and monitor the idle status of vehicles around the user; The offloading planning module is used to determine the goals and strategies of task offloading and calculate reasonable resource pricing based on the Stackelberg game model; The policy implementation module executes the user task uninstallation operation according to the uninstallation policy; The idle vehicle auxiliary unloading computing module is used to recruit a certain number of idle vehicles to expand edge server resources and use the delayed matching game model to allocate resources for overloaded tasks.
