Trusted offloading method based on intermediary incentives in information asymmetric Internet of Vehicles scenarios

Through the intermediary incentive mechanism and deep reinforcement learning algorithm optimization strategy in the Internet of Vehicles, the lack of credibility of task offloading in information asymmetric scenarios is solved, and more efficient and reliable task processing of the Internet of Vehicles is achieved.

CN118316931BActive Publication Date: 2024-09-24BEIJING JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410568630.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-09-24
Estimated Expiration
2044-05-09

AI Technical Summary

Technical Problem

The existing technology fails to fully solve the problem of task offloading credibility in the information asymmetric vehicle networking scenario, ignores the impact of processing failure on credibility, and does not comprehensively consider the long-term credibility of the vehicle node and whether the offloading process suffers attack, while assuming that the central server has global information, without considering factors such as antenna directivity, signal attenuation, and network congestion.

Method used

A trusted offloading method based on intermediary incentives is used to establish a communication connection between the requesting vehicle and the intermediary vehicle, decide whether to upload it to the RSU for processing based on the task attributes and buffer queue status, and divide the task into subtasks and assign them to the service vehicle for processing in parallel, using The PPO and SAC algorithms optimize the offloading strategy to maximize social utility and prevent premature convergence of the strategy.

Benefits of technology

A more efficient and reliable IoV task offloading strategy is implemented, taking into account the long-term credibility and attack risks of vehicle nodes, avoiding the lack of information acquisition by the central server, and improving the efficiency and reliability of task processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118316931B
    Figure CN118316931B
Patent Text Reader

Abstract

The present invention provides a trusted unloading method based on intermediary incentives in an information asymmetric Internet of Vehicles scenario. The method comprises: the RV in the information asymmetric Internet of Vehicles scenario generates several tasks, the RV establishes a communication connection with the IV in the area where it is located, and sends the attribute information of the task to the IV, and stores it in the task buffer. According to the task attributes, the queue situation in the buffer and the situation of the RSU, it is decided whether to leave the task in the buffer waiting for scheduling, or continue to upload it to the RSU for processing by the RSU. The IV divides a single task in the buffer into multiple subtasks, and assigns them to several service vehicles SV for parallel processing. After each SV completes the task, it sends the processing result back to the IV, and the IV merges the processing results and returns them to the RV. The method of the present invention can maximize the trade-off between expected benefits and entropy, prevent the strategy from converging to a bad local optimal value too early, and realize a more efficient and reliable Internet of Vehicles task unloading strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Vehicles task offloading, and in particular to a trusted offloading method based on intermediary incentives in an information asymmetric Internet of Vehicles scenario. Background Art

[0002] Information asymmetry is a bottleneck restricting the development of the Internet of Vehicles. In the scenario of information asymmetry, using machine learning methods to select the optimal unloading destination is a new research direction for the Internet of Vehicles in the future. Some scholars pointed out that vehicles are reluctant to make some private information public, so personal vehicles are reluctant to inform the central server of key parameters such as available resources and local computing capacity. In order to solve the problem of task offloading in this environment, some scholars proposed that vehicles can be divided into several types according to the computing resources that can be contributed, and a contract is designed for each type to motivate vehicles to participate in the network's unloading activities. Some scholars constructed the Steinberg game by observing the information asymmetry phenomenon when the secondary users share the spectrum, and analyzed the hierarchical decision-making method in the scenario of information asymmetry. Some scholars designed a framework based on contract theory in the scenario of information asymmetry, and designed a multi-dimensional contract to simulate the interaction between advertisers and users, while maximizing the profits of advertisers and the utility of users. Some scholars pointed out that network utility can be used to motivate users to share information, and users who provide more credible information can get higher incentives from providers to promote their participation in crowd-sensing services. None of these studies directly address the problem of information asymmetry, but instead construct statistical-based solutions to this problem. The premise of this is that the network has a large amount of statistical data in advance.

[0003] In addition, existing studies mostly define credibility as the efficient completion of task offloading within a given time without suffering external attacks. Some scholars have comprehensively optimized latency and offloading credibility, but only evaluated the impact of task transmission failure on credibility, ignoring the impact of processing failure on credibility. To address this issue, some scholars have comprehensively considered the credibility of transmission nodes and computing nodes. In addition, in order to improve the credibility of offloading, the author introduced a retransmission mechanism. Some scholars have proposed a safer and more reliable edge computing vehicle network framework in the 5G environment, proposed a specific offloading strategy under this framework, and given the corresponding resource allocation strategy. Some scholars have developed a new air-ground combined vehicle edge computing task offloading framework, which enables user vehicles to optimize task offloading strategies for a long time to meet the communication requirements of high reliability and low latency. Despite this, there are not many studies on the credibility of vehicle network offloading, which will be a very valuable research direction.

[0004] The disadvantages of the above-mentioned prior art task offloading method in the vehicle networking scenario include:

[0005] 1. The existing technology assumes that the central server has mastered the global information of the urban road network when formulating the unloading strategy, without considering the impact of practical problems such as antenna directivity, signal attenuation and network congestion on the central server's collection of signals.

[0006] 2. For the information asymmetric Internet of Vehicles scenario, existing technologies are mostly based on the assumption that vehicles have already mastered a large amount of statistical data between each other, and complete the classification of vehicles based on this assumption.

[0007] 3. The existing technology does not conduct sufficient research on the credibility of task offloading. It mostly measures whether task offloading is reliable from the perspective of task processing delay, and does not comprehensively consider the long-term credibility of vehicle nodes and whether the offloading process is attacked. Summary of the invention

[0008] An embodiment of the present invention provides a trusted offloading method based on intermediary incentives in an information asymmetric Internet of Vehicles scenario to achieve a more efficient and trusted Internet of Vehicles task offloading strategy.

[0009] In order to achieve the above object, the present invention adopts the following technical scheme.

[0010] A trusted unloading method based on intermediary incentives in an information asymmetric Internet of Vehicles scenario includes:

[0011] In the information asymmetric IoV scenario, the requesting vehicle RV generates the attribute information of the task, the RV establishes a communication connection with the intermediary IV in its area, and sends the attribute information of the task to IV;

[0012] The IV stores the attribute information of the received task in the task buffer, and decides whether to leave the task in the buffer waiting for scheduling or continue to upload it to the RSU according to the task attribute, the queue situation in the buffer, and the situation of the intelligent roadside equipment RSU. The task uploaded to the RSU is processed by the RSU, and after the processing is completed, the RSU returns the processing result to the RV;

[0013] IV divides a single task in the buffer into multiple subtasks, and offloads each subtask to several service vehicles SV for parallel processing. After each SV completes the task, it sends the processing result back to IV, which merges the processing results and returns them to RV.

[0014] Preferably, the IV stores the attribute information of the received task in the task buffer, and decides whether to leave the task in the buffer waiting for scheduling or continue uploading it to the RSU according to the task attribute, the queue status in the buffer, and the status of the intelligent roadside equipment RSU, including:

[0015] Assume that the system operates within a time window, which is discretized into several time slots, denoted as t i ∈T={t1 ,t 2 ,…t L}, RV generates the attribute information of the task, which is represented by a four-tuple, namely m i ={D i ,C i ,τ i ,S i}, where D i Represents the data size of the task, C i Represents the number of CPU revolutions required to complete the task, τ i Represents the maximum completion delay that this task can tolerate, S i Represents the task type;

[0016] RV uploads the task request containing the task's quadruple information to the IV in its area. IV stores the received task's quadruple information in the task buffer. IV divides the tasks into safety tasks and non-safety tasks according to their importance. If S i =1, it means m i For security tasks, if S i =0, it means m i For non-safety tasks;

[0017] In the time window T, the tasks arriving at IV follow the Poisson distribution, and the task set is represented as M T ={m 1 ,m 2 ,…m n}, IV stores the received task requests in the queue in the buffer in the order of arrival time, and task m i The average queuing delay It is expressed as:

[0018]

[0019] where λ IV is the number of task requests received by IV per unit time, is the sum of the computational amount of the tasks arriving per unit time; μ IV is the number of tasks that IV can process per unit time, expressed as the number of CPU revolutions per second that IV can provide. If task m i The maximum tolerable completion delay τ i Less than or equal to the average queuing delay in the buffer, that is, Then the task m i Upload directly to RSU and set up i =1; if Then the task m i Stay in the buffer waiting for scheduling, set i =0.

[0020] Preferably, the IV divides a single task in the buffer into multiple subtasks, and offloads and distributes each subtask to several service vehicles SV for parallel processing, including:

[0021] In the time window T, the set of tasks in the intermediate buffer is: Μ={m 1 ,m 2 ,…m n}, the set of service vehicles controlled by IV is expressed as Set the task m in the IV buffer i Divide into M subtasks for parallel processing. The economic fee received by the intermediary is the product of the single ratio transaction and the intermediary ratio. Suppose the intermediary ratio of IV ranges from in and is a constant value, if RV is unloading task m i IV mediation ratio is used for subtask j The corresponding intermediary service, the IV communication bandwidth that subtask j can occupy is expressed as:

[0022]

[0023] The transmission process of some tasks that are not uploaded to the RSU is divided into two stages: (1) The first transmission stage: the task is uploaded from the RV to the IV buffer to build an RV-IV communication link; (2) The second transmission stage: the IV sends several subtasks to multiple SVs in parallel to build an IV-SV communication link;

[0024] (1) For the RV-IV link in the first transmission phase

[0025] The transfer rate between RV and IV is expressed as:

[0026]

[0027] Among them B RV To request the communication bandwidth of the vehicle, p RV is the signal transmission power of RV, θ 2 is the Gaussian white noise power, h RV is the channel gain;

[0028] RV will task m i The delay required for transmission to IV is expressed as:

[0029]

[0030] Correspondingly, the energy consumption during the transmission process is:

[0031]

[0032] When i = 0, the task waiting urgency is determined by the maximum delay tolerance and the buffer queue delay, expressed as:

[0033]

[0034] Use D T ={ο i} i∈n It represents the scheduling scheme of each task stored in the buffer within a period of time T, with the goal of minimizing the urgency of each task in the buffer. The objective function of the optimization problem in the first transmission stage is set as:

[0035]

[0036] stο i ·(1-ο i )=1

[0037]

[0038] S i =1

[0039] μ IV >λ IV

[0040]

[0041]

[0042] in, is the maximum transmit power of IV.

[0043] The state space, action space and reward function of the objective function of the optimization problem in the first transmission stage are set, and the objective function of the optimization problem in the first transmission stage is solved by the closest gradient optimization PPO algorithm. In the PPO algorithm, the agent is continuously and iteratively trained according to the action space, state space and reward function designed above until it converges to the optimal utility function value, and obtains the optimal action decision of the agent, that is, whether the task arriving at the intermediary buffer is uploaded to the RSU for processing;

[0044] (2) For the IV-SV link in the second transmission phase

[0045] IV will m i Divide into multiple subtasks for parallel transmission and processing. If IV i Subtask j is offloaded to service vehicle s j , then x ij =1, otherwise; x ij=0, when x ij = 1, IV and service vehicle s j The data transmission rate of the established communication link is expressed as:

[0046]

[0047] Among them B i is the communication bandwidth allocated for transmitting subtasks, p IV is the signal transmission power of the intermediate vehicle, h IV is the channel gain, if ρ j Assigned to service vehicles j The task offloading ratio of IV is ρ, then the amount of tasks that IV needs to transfer when offloading subtask j is expressed as ρ j ·D i , the time spent on subtask j transmission is expressed as:

[0048]

[0049] The transmission energy consumption of IV offloading subtask j is calculated as:

[0050]

[0051] Service Vehicles j The computational effort of the assigned subtask j is expressed as ρ j ·C i , the computational delay generated by processing this subtask j is expressed as:

[0052]

[0053] where f j For j Available processing resources. j The processing energy consumed by executing the offloaded subtask is written as

[0054]

[0055] where κ j is the energy coefficient associated with the service vehicle CPU;

[0056] The time value function, task success probability and resource pricing function of processing each subtask under the IV partial offloading strategy are calculated respectively;

[0057] Time Value Function

[0058] The processing delay T of subtask j offloading from IV to SV i j It consists of two parts: task transmission delay T i j-transAnd the task calculation delay T i j-comp , calculated as:

[0059] T i j =T i j-trans +T i j-comp

[0060] Each subtask is processed in parallel by each SV. i The total processing delay is expressed as:

[0061] T i off =max{T i 1 ,T i 2 ,…T i n}+T i RV-trans

[0062] Task m i The time value gained by partial unloading is expressed as:

[0063]

[0064] Service Vehicles j The cost per unit of task volume ρ j For a given parameter, the service vehicle s j The cost of processing a subtask is expressed as:

[0065]

[0066] Probability of successful completion of the task, service vehicle s j The probability of not being attacked from outside when executing a subtask is expressed as:

[0067]

[0068] where λ j (T 0 ) for service vehicles j In the time window T 0 Failure rate

[0069] Introducing binary variable σ j To indicate whether the time limit is met, specifically:

[0070]

[0071] Since each service vehicle processing subtask can be regarded as an independent event, the probability of successful completion of the task is calculated as the product of the success probabilities of each part, which is estimated as:

[0072]

[0073] From an economic perspective, we construct the utility functions corresponding to RV, IV and SV respectively. and Execute task m i The social utility generated is expressed as the sum of the utility functions of RV, IV, and SV. i =[x i1 ,x i2 ,…x in ]、Uninstall ratio Ratio to agency fees To maximize social utility, the objective function of the optimization problem in the second transmission stage is set as:

[0074]

[0075]

[0076]

[0077]

[0078]

[0079] T i off <τ i

[0080]

[0081]

[0082] The state space, action space, and reward function of the objective function of the optimization problem in the second transmission stage are set, and the flexible strategy-evaluation algorithm SAC algorithm is used to solve the objective function of the optimization problem in the second transmission stage. In the SAC algorithm, the agent is continuously and iteratively trained according to the action space, state space, and reward function designed above until it can converge to the optimal utility function value, and obtain the optimal action decision of the agent, that is, the specific unloading destination, unloading ratio, and intermediary incentive ratio of each subtask.

[0083] Preferably, the utility functions corresponding to RV, IV and SV are constructed from an economic perspective. and include:

[0084] (1) The utility function of the requesting vehicle consists of three parts: the time value brought by task processing, the intermediary fee paid to IV, and the task offloading fee paid to SV. The utility function of the requesting vehicle is:

[0085]

[0086] in Brokerage fees paid to the broker for the requested vehicle;

[0087] (2) From the perspective of the intermediary vehicle, task m i The resource occupancy generated by formulating the offloading strategy is calculated as:

[0088]

[0089] where ξ IV is the occupancy factor, The maximum computing capacity of the intermediary vehicle itself;

[0090] The utility function of the intermediary vehicle consists of three parts, namely, the intermediary fee paid by the requesting vehicle, the transmission energy consumption generated by transmitting each subtask to the corresponding service vehicle, and the resource occupancy generated by formulating the strategy. The utility function of the intermediary vehicle is:

[0091]

[0092] (3) The utility of the service vehicle consists of two parts: the benefit and the energy consumption generated by executing the subtask. The service vehicle s j The utility function is:

[0093]

[0094] The utility function of the service vehicle cluster is:

[0095]

[0096] Preferably, the setting of the state space, action space and reward function of the objective function of the optimization problem in the first transmission stage includes:

[0097] (1) The state space is expressed as:

[0098]

[0099] Among them, D i ,C i ,τ i ,S i They represent the data size, required computing resources, task survival time and task type of the task respectively; B IV ,pIV ,h IV Respectively represent the bandwidth, transmission power and channel gain of the communication link established between IV and RSU; λ IV ,μ IV ,c max They represent the amount of task data arriving in the IV buffer per unit time, the amount of tasks that can be processed by the IV per unit time, and the maximum amount of task data that the RSU can receive while ensuring that the queue is not queued; c i-1 For task m i The amount of tasks whose IV has been uploaded to RSU before scheduling;

[0100] (2) Action space: represents the scheduling decision of IV for each task in the buffer. Within a time window T, the set of tasks arriving in the intermediate buffer is represented as M T ={m 1 ,m 2 ,…m n}, in one round of interaction between the agent and the environment, the agent needs to make offloading decisions for n tasks respectively, and the action space is expressed as:

[0101] a i =[ο i ]

[0102] Among them i is a binary variable, i =1 indicates task m i Will be uploaded to RSU for processing, i =0 means task m i Not uploaded to RSU for processing;

[0103] (3) Reward function: The objective optimization problem is to minimize the urgency of tasks in the buffer under the condition of satisfying various constraints. Within the time window T, the urgency of all tasks in the intermediate buffer is a certain value. The reward function is expressed as the urgency of the tasks uploaded to the RSU, specifically:

[0104]

[0105] Where Γ′ is a positive real number with a large value.

[0106] Preferably, the setting of the state space, action space and reward function of the objective function of the optimization problem in the second transmission stage includes:

[0107] (1) The state space is defined as:

[0108]

[0109] Where D i ,Ci ,τ i Task attributes, which represent the amount of data transmitted, the amount of computation, and the maximum tolerable delay; f j For service vehicles j The computing power of j (T 0 ) for service vehicles j In T 0 The failure rate at the moment, The maximum computing resources that the intermediary can contribute; ρ red is the proportion of tasks to be assigned, t min is the minimum delay among the assigned subtasks;

[0110] (2) The action space is divided into two parts: one is the choice of the intermediary fee ratio, and the other is the formulation of the partial unloading strategy. i Represents the agent for task m i The action is:

[0111]

[0112] in Indicates service vehicles j The proportion of tasks assigned, Indicates the proportion of agency fees paid to the intermediary vehicle;

[0113] (3) Reward function:

[0114] The reward function of the optimization problem is the sum of the three-party utility functions of RV, IV and RSU. The goal is to maximize the social utility function and set the reward function as:

[0115]

[0116] It can be seen from the technical solutions provided by the above embodiments of the present invention that the present invention, based on the social attributes between vehicles, uses existing entities with fixed driving routes in the network to build an intermediary vehicle-assisted task offloading framework and builds a partial cooperative offloading strategy based on intermediary incentives. The present invention applies the SAC algorithm to take into account not only rewards but also entropy, and can maximize the trade-off between expected benefits and entropy, prevent the strategy from converging to a bad local optimal value too early, and achieve a more efficient and reliable Internet of Vehicles task offloading strategy.

[0117] Additional aspects and advantages of the present invention will be given in part in the following description, which will become obvious from the following description, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0118] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0119] Figure 1 A schematic diagram of a trusted offloading model based on intermediary incentives provided in an embodiment of the present invention;

[0120] Figure 2 A schematic diagram of the implementation principle of a trusted uninstallation method based on intermediary incentives in an information asymmetric Internet of Vehicles scenario provided by the present invention;

[0121] Figure 3 A schematic diagram of a training curve under different strategies provided by an embodiment of the present invention;

[0122] Figure 4 A schematic diagram of reliability under different numbers of subtasks provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0123] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.

[0124] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or coupling. The term "and / or" used herein includes any unit and all combinations of one or more associated listed items.

[0125] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless defined as herein.

[0126] To facilitate understanding of the embodiments of the present invention, several specific embodiments will be further explained below with reference to the accompanying drawings, and each embodiment does not constitute a limitation on the embodiments of the present invention.

[0127] The embodiment of the present invention proposes a two-stage task scheduling model assisted by an intermediary vehicle based on the concept of an intermediary vehicle. To ensure the reliability of the unloading process, the present invention comprehensively considers the influence of the trust value of the intermediary vehicle and the service vehicle on the task unloading. Given that the constructed optimization problem is a mixed integer nonlinear programming problem, a deep reinforcement learning algorithm is used to solve the target problem.

[0128] A schematic diagram of a trusted offloading model based on intermediary incentive provided by an embodiment of the present invention is as follows Figure 1 As shown. In this model, the vehicle is equipped with an intelligent vehicle unit, which has certain communication, computing and storage capabilities, and the intermediary as a government vehicle has higher performance than private vehicle users. Network entities can use C-V2X communication technology to communicate with each other. The present invention assumes that the V2V (Vehicle-to-Vehicle) and V2I (Vehicle toInfrastructure) communication links communicate through different frequency bands, and there is no co-frequency interference. In the information asymmetric Internet of Vehicles scenario proposed in the present invention, the requesting vehicle sends the task to the IV (Intermediary Vehicle) in the area where the vehicle is located, and the IV assists the RSU (Road Side Unit) to formulate an unloading strategy. Specifically, the intermediary vehicle provides a common task buffer queue for each vehicle requesting service to store tasks that have arrived at the intermediary but have not been scheduled. Therefore, when the requesting vehicle sends multiple task attribute information to the IV, the tasks enter the IV buffer in sequence according to the arrival order and are queued, and the IV formulates an unloading strategy for each task according to the task requirements.

[0129] In order to relieve the pressure of the IV buffer and ensure that the tasks are processed efficiently and reliably, the present invention further proposes to use RSU as an auxiliary node of IV to process some tasks uploaded by IV. Tasks uploaded to RSU can be processed without waiting for sufficient computing resources. The present invention proposes a two-stage task scheduling framework. For tasks in the buffer, IV needs to decide whether to upload them to RSU or leave them in the buffer waiting for scheduling. For the remaining tasks in the buffer, IV needs to formulate trusted cooperative offloading strategies for them respectively on the basis of effective incentives.

[0130] The implementation principle of a trusted uninstallation method based on intermediary incentives in an information asymmetric Internet of Vehicles scenario provided by an embodiment of the present invention is as follows: Figure 2 As shown, the processing steps include the following:

[0131] Step S10: The present invention assumes that the system operates within a time window, and the time window is discretized into a number of time slots represented by t i ∈T={t 1 ,t 2 ,…t L}.

[0132] RV (Request Vehicle) generates the attribute information of the task, which can be represented by a four-tuple, namely, m i ={D i ,C i ,τ i ,S i}. i Represents the data size of the task, C i Represents the number of CPU revolutions required to complete the task, τ i Represents the maximum completion delay that this task can tolerate, S i Represents the task type. Regardless of local computation, the RV sends a task request to the RSU to request the IV identity information in the region.

[0133] Step S20: RSU periodically selects IV for each region.

[0134] Step S30: The RSU periodically broadcasts the identity information of the IV in each area.

[0135] Step S40: The RV establishes a communication connection with the IV in its area and sends attribute information of the task to the IV.

[0136] Step S50, IV stores the attribute information of the received task in the task buffer. In order to achieve reliable and efficient task unloading, IV decides whether to leave the task in the buffer waiting for scheduling or continue to upload it to RSU according to the task attributes, the queue situation in the buffer and the situation of RSU. The task uploaded to RSU is processed immediately by RSU without waiting and will get sufficient computing resources. After the calculation is completed, RSU will return the processing result directly to RV.

[0137] RSU cannot communicate directly with RV. RV communicates with IV via V2V link, and IV communicates with RSU via V2I link.

[0138] Step S60: For the remaining tasks in the buffer, IV divides the single task into smaller subtasks and unloads them to several SVs (Service Vehicles) for parallel processing. The proportion of the intermediary fee paid by the requesting vehicle affects the computing resources and communication resources shared by the intermediary. After completing the task, each SV sends the processing result back to IV, which merges the results and returns them to RV.

[0139] Specifically, the above steps S40 and S50 include: after the RV generates a task request, it uploads the task's four-tuple information to the IV in its area, and the IV formulates a reliable and efficient unloading strategy for each task. The IV stores the received task's four-tuple information in the task buffer. Considering that the task buffer of the intermediary vehicle is limited, in order to ensure that all tasks can be processed efficiently and reliably, the IV divides the tasks into safety tasks and non-safety tasks according to their importance. Specifically, if S i =1, it means m i for safety tasks and vice versa.

[0140] Safety tasks mainly refer to tasks related to vehicle safety, including emergency rescue, driving behavior monitoring, etc. Such tasks have strict requirements on the execution time and completion credibility of the tasks. The present invention assumes that the RSU is completely trustworthy, so the safety tasks in the buffer are directly uploaded to the RSU for processing. Non-safety tasks refer to tasks related to the comfort and convenience of the vehicle, including entertainment tasks and delay-sensitive tasks such as navigation. Such tasks focus on the continuity and timeliness of task execution. The queuing waiting delay in the buffer has a large negative impact on the user experience quality of such tasks. Therefore, the present invention comprehensively considers the queuing situation in the buffer and the task queue situation of the RSU, and formulates a scheduling plan for non-safety tasks in the buffer.

[0141] Let’s discuss the buffer tasks within a time window T. As far as the buffer of the intermediate vehicle is concerned, we assume that the arrival of tasks follows a Poisson distribution and the task set is represented by MT ={m 1 ,m 2 ,…m n}. Task m i Whether to upload to RSU available binary variable i If i =1, it means task m i Uploaded to RSU for processing; i =0 means task m i Stay in the buffer waiting for scheduling. Based on the M / M / 1 queuing model, IV stores the received task requests in the queue in the buffer in the order of arrival time. i The average queuing delay It can be expressed as:

[0142]

[0143] where λ IV is the number of task requests received by IV per unit time, is the sum of the computational amount of the tasks arriving per unit time; μ IV is the number of tasks that IV can process per unit time, expressed as the number of CPU revolutions per second that IV can provide. i The maximum tolerable completion delay τ i Less than or equal to the average queuing delay in the buffer, that is, Then the task m i Upload directly to RSU.

[0144] When i =1, it means task m i Will be uploaded to RSU for processing. i The data transmission rate obtained by transmitting between IV and RSU through the V2V link can be expressed as:

[0145]

[0146] Among them B IV is the available communication bandwidth between IV and RSU. IV With h IV are the data transmission power of IV and the channel gain of the communication link between IV and RSU, θ 2 is the noise power.

[0147] Correspondingly, the task transmission delay is written as:

[0148]

[0149] The present invention assumes that all tasks uploaded to the RSU can be processed immediately. However, if the intermediary uploads tasks to the RSU endlessly, this will bring a great burden to the RSU, which is contrary to the assumption. In order to avoid this situation, the present invention also considers the task queue situation at the RSU. It is assumed that all tasks arriving at the RSU are uploaded by the intermediary vehicles, and the arrival of tasks follows the Poisson distribution. Considering that the RSU needs to process global tasks, the computing resources allocated to process the tasks uploaded by the intermediary vehicles are expressed as f RSU , which is the number of CPU revolutions per second. Let c represent the amount of tasks uploaded to the RSU per unit time. In the RSU queue system, the probability of not queuing is estimated as:

[0150]

[0151] Among them, p 0 is the probability that the number of tasks in the task buffer queue of the intermediate vehicle is 0; p 1 is the probability that the number of tasks in the task buffer queue of the intermediary vehicle is 1; ρ is the service intensity of the system.

[0152] when When , the RSU queue system can be considered to be uncongested. is a given parameter and is close to 1. Therefore, we can get:

[0153]

[0154] That is, the task volume uploaded to RSU by the intermediary vehicle per unit time shall not exceed c max .

[0155] Specifically, the above step S60 includes:

[0156] The following is about τ i >T i ave When i = 0, in order to ensure that all tasks in the buffer can be processed promptly and efficiently, the present invention proposes an indicator of task waiting urgency, which is determined by the maximum delay tolerance and the buffer queuing delay, and is expressed as:

[0157]

[0158] The present invention formulates a scheduling strategy from the perspective of the entire system, focusing on minimizing the urgency of each task in the buffer. T ={ο i} i∈n represents the scheduling scheme of each task stored in the buffer within a period of time T, so the optimization problem can be written as:

[0159]

[0160] stο i ·(1-ο i )=1

[0161]

[0162] S i =1

[0163] μ IV >λ IV

[0164]

[0165]

[0166] in, is the maximum transmit power of IV. (The other parameters have been mentioned above).

[0167] The present invention relates to a scheduling problem in two stages, which is the first stage. The optimization problem below is the second stage, which can be understood by referring to the figure on the first page. The target optimization problem (i.e., the first stage task scheduling) is solved by the PPO algorithm. The optimization problem below (i.e., the second stage task two scheduling) is solved by the SAC algorithm. The first stage optimization problem revolves around the scheduling of all tasks in the intermediate buffer. After the first stage task scheduling is completed, for the remaining tasks in the buffer, the present invention considers the angle problem of the second stage (i.e., partial unloading).

[0168] Cooperative unloading strategy based on intermediary incentive. For the remaining tasks that have not been uploaded to the RSU within the time window T and are waiting for intermediary processing, the present invention divides such tasks into several subtasks one by one, and each subtask is processed in parallel by multiple service vehicles. This is a distributed task processing method. From an individual perspective, this method can improve the efficiency and speed of task processing through cooperative unloading of multiple service vehicles and reduce the load pressure of a single service vehicle, especially for large-scale and complex vehicle-mounted applications. The effect is more significant. From a system perspective, since tasks are distributed to multiple service vehicles, the idle resources of the vehicles can be fully utilized, and the overall resource utilization of the system will be effectively improved.

[0169] In the present invention, the set of service vehicles controlled by IV is expressed as In the time window T, the remaining task set in the intermediate buffer is written as: Μ={m 1 ,m 2 ,…m n}. The present invention intends to transfer the task m in the buffer iIt is divided into M subtasks and processed in parallel. Therefore, when formulating the unloading strategy, it is necessary to determine the actual service vehicle set and the task unloading amount of each service vehicle.

[0170] In addition, the formulation of the unloading strategy requires the use of the computing resources and communication resources of the intermediary vehicle, which may cause inconvenience to the intermediary vehicle itself. Taking into account the individual rationality of the intermediary, the present invention needs to provide appropriate economic incentives to the intermediary. Referring to the real estate intermediary transaction situation in the real world, the economic fee received by the intermediary is the product of the single ratio transaction and the intermediary ratio. For individual users, different intermediary ratios correspond to different service qualities. The present invention assumes that the intermediary ratio of IV has a value range of in and is a fixed value, which is related to the trust value and information mastery of the intermediary vehicle. Specifically, if RV is unloading task m i IV mediation ratio is used for subtask j The corresponding intermediary service, the IV communication bandwidth that the subtask can occupy is expressed as:

[0171]

[0172] For some tasks that are not uploaded to the RSU, the transmission process is mainly divided into two stages: (1) the task is uploaded from the requesting vehicle to the intermediary buffer to build an RV-IV communication link; (2) the intermediary vehicle sends several subtasks to multiple service vehicles in parallel to build an IV-SV communication link.

[0173] (1) RV-IV link

[0174] The transfer rate between RV and IV is expressed as:

[0175]

[0176] Among them B RV To request the communication bandwidth of the vehicle, p RV is the signal transmission power of RV, θ 2 is the Gaussian white noise power, h RV is the channel gain.

[0177] RV will task m i The delay required for transmission to IV is expressed as:

[0178]

[0179] Correspondingly, the energy consumption during the transmission process is:

[0180]

[0181] (2) IV-SV link

[0182] The present invention considers that the task offloading mode is partial offloading, IV will m i Divide into multiple subtasks for parallel transmission and processing. i Subtask j is offloaded to service vehicle s j , then x ij =1, otherwise x ij = 0. When x ij = 1, IV and service vehicle s j The data transmission rate of the established communication link is expressed as:

[0183]

[0184] Among them B i is the communication bandwidth allocated for transmitting subtasks, p IV is the signal transmission power of the intermediate vehicle, h IV is the channel gain. If ρ j Assigned to service vehicles j The task offloading ratio of IV is ρ, then the amount of tasks that IV needs to transfer when offloading task j is expressed as ρ j ·D i , the time spent on task transmission is expressed as:

[0185]

[0186] Correspondingly, the transmission energy consumption of IV offloading task can be calculated as:

[0187]

[0188] Service Vehicles j The computational effort of the assigned subtask j is expressed as ρ j ·C i Correspondingly, the computational delay generated by processing this subtask is expressed as:

[0189]

[0190] where f j For j Available processing resources. j The processing energy consumed by executing the offloaded subtask is written as

[0191]

[0192] where κ j It is the energy coefficient related to the service vehicle CPU and is related to the chip structure and process.

[0193] In order to pursue an efficient and reliable offloading strategy, the present invention further proposes a time value function, a task success completion probability and a resource pricing function under the offloading strategy in part IV.

[0194] Time Value Function

[0195] Since the amount of data in the processing result is small, the present invention does not consider the delay of the result return. The processing delay T of subtask j from the intermediary vehicle to the service vehicle i j It consists of two parts: task transmission delay T i j-trans And the task calculation delay T i j -comp , calculated as:

[0196] T i j =T i j-trans +T i j-comp

[0197] Without considering the time it takes to merge the results of each subtask, since each subtask is processed in parallel by the service vehicle, task m i The total processing delay is expressed as:

[0198] T i off =max{T i 1 ,T i 2 ,…T i n}+T i RV-trans

[0199] Task m i The time value gained by partial unloading is expressed as:

[0200]

[0201] Resource Pricing Function

[0202] Vehicles served here j The cost per unit of task volume ρ j is a given parameter. Service vehicle s j The cost of processing a subtask is expressed as:

[0203]

[0204] Probability of successful completion of the task, service vehicle s jThe probability of not being attacked from outside when executing a subtask is expressed as:

[0205]

[0206] where λ j (T 0 ) for service vehicles j In the time window T 0 Failure rate

[0207] However, when calculating the probability of successful completion of a task, we should not only focus on the attack during the process, but also consider whether the task can be completed within the specified time. j To indicate whether the time limit is met, specifically:

[0208]

[0209] Since each service vehicle processing subtask can be regarded as an independent event, the probability of successful completion of the task is calculated as the product of the success probabilities of each part, which is estimated as:

[0210]

[0211] In the model of the present invention, three entities are involved in task m i Processing process: request vehicle, intermediary vehicle and service vehicle. In view of the strong individual rationality of various entities, the present invention constructs the utility functions corresponding to request vehicle, intermediary vehicle and service vehicle respectively from the perspective of economics.

[0212] (1) Utility function of the requesting vehicle

[0213] The utility function of the requesting vehicle consists of three parts: the time value brought by efficient task processing (i.e., task execution satisfaction), the intermediary fee paid to IV, and the task offloading fee paid to SV. Therefore, the utility function of the requesting vehicle is written as:

[0214]

[0215] in Brokerage fees paid to the broker for the requested vehicle.

[0216] (2) Utility function of the intermediary vehicle

[0217] Since the intermediary vehicle is in the task m i When formulating an offloading strategy, it needs to consume its own computing resources, which will affect the effectiveness of its own task processing. Therefore, considering the individual rationality of IV, IV will not actively participate in the offloading of tasks if it does not receive utility incentives.

[0218] From the perspective of the intermediary vehicle, task mi The resource usage generated by formulating the offloading strategy can be calculated as:

[0219]

[0220] where ξ IV is the occupancy factor, is the maximum computing capacity of the intermediary vehicle itself. The utility function of the intermediary vehicle consists of three parts, namely, the intermediary fee paid by the requesting vehicle, the transmission energy consumption generated by transmitting each subtask to the corresponding service vehicle, and the resource occupancy generated by formulating the strategy. Specifically, the utility function can be written as:

[0221]

[0222] (3) Utility function of the service vehicle

[0223] The utility of the service vehicle consists of two parts: the revenue and the energy consumption generated by executing the subtask. j For , the utility function is expressed as:

[0224]

[0225] The present invention studies from a system perspective, so the utility function of the service vehicle cluster is written as

[0226]

[0227] The optimization problem constructed by the present invention focuses on improving the efficiency and resource utilization of the entire system. From a global perspective, executing task m i The social utility generated is expressed as the sum of the utility functions of RV, IV, and SV. i =[x i1 ,x i2 ,…x in ]、Uninstall ratio Ratio to agency fees To maximize social utility, the optimization problem can be stated as:

[0228]

[0229]

[0230]

[0231]

[0232]

[0233] T ioff <τ i

[0234]

[0235]

[0236] The unloading solution based on deep reinforcement learning proposed in the present invention includes task scheduling in an intermediate buffer and a partial cooperative unloading strategy.

[0237] Task scheduling in the intermediary buffer. Regarding the first stage of task scheduling, that is, whether the tasks arriving at the intermediary buffer are uploaded to the RSU for processing, since this problem is still an integer nonlinear programming problem, the present invention adopts the PPO (Proximal Policy Optimization, the closest gradient optimization) algorithm to solve the problem. Specifically, the present invention models the target optimization problem as a Markov decision process, and designs the state space, action space and reward function accordingly.

[0238] (1) State space: used to describe the task attributes, the channel conditions between IV and RSU, and the queue conditions of IV and RSU. Specifically, the state space is expressed as:

[0239]

[0240] Among them, D i ,C i ,τ i ,S i They represent the data size, required computing resources, task survival time and task type of the task respectively; B IV ,p IV ,h IV Respectively represent the bandwidth, transmission power and channel gain of the communication link established between IV and RSU; λ IV ,μ IV ,c max They represent the amount of task data arriving in the IV buffer per unit time, the amount of tasks that can be processed by the IV per unit time, and the maximum amount of task data that the RSU can receive while ensuring that the queue is not queued; c i-1 For task m i The amount of tasks whose IV has been uploaded to RSU before scheduling.

[0241] (2) Action space: represents the scheduling decision of IV for each task in the buffer. As described in Section 4.3, within a time window T, the set of tasks arriving in the intermediate buffer is denoted as M T ={m 1 ,m 2 ,…m n}, so it is necessary to make offloading decisions for each of these n tasks. Reflected in the DRL algorithm, this means that in one round of interaction between the agent and the environment, the agent needs to perform n operations. Specifically, the action space can be expressed as

[0242] a i =[ο i ]

[0243] Among them i is a binary variable, i =1 indicates task m i It will be uploaded to RSU for processing and vice versa.

[0244] (3) Reward function: The objective optimization problem is to minimize the urgency of tasks in the buffer under the condition of satisfying various constraints. Within the time window T, the urgency of all tasks in the intermediate buffer is a certain value. Since the goal of the agent training network is to maximize the reward function, the reward function can be expressed as the urgency of the task uploaded to the RSU. Specifically, the reward function can be written as

[0245]

[0246] Where Γ′ is a positive real number with a large value.

[0247] For the partial cooperative unloading strategy in the second phase, the present invention adopts the SoftActor-Critic (SAC) algorithm to solve it. The SAC algorithm has an excellent performance in solving continuous action space and high-dimensional state space scenarios. The three elements of the Markov process: state space, action space, and reward function are designed as follows:

[0248] (1) State space: The intermediary fee ratio and partial cooperation offloading strategy need to be adjusted according to the task attributes, the channel conditions between IV and each SV, the computing resources available to each SV, the trust value, the maximum computing capacity of the intermediary vehicle itself, the remaining task ratio to be assigned, and the minimum delay of subtask execution. Therefore, the state space is defined as:

[0249]

[0250] Where D i ,C i ,τ i Task attributes, which represent the amount of data transmitted, the amount of computation, and the maximum tolerable delay; f j For service vehicles j The computing power of j (T 0 ) for service vehicles j In T 0 The failure rate at the moment, The maximum computing resources that the intermediary can contribute; ρ red is the proportion of tasks to be assigned, t min It is the minimum delay value among the assigned subtasks.

[0251] (2) Action space: In this problem, social utility is maximized by adjusting the intermediary ratio and the partial cooperation unloading strategy. Therefore, the action space can be divided into two parts: one is the choice of the intermediary fee ratio, and the other is the formulation of the partial unloading strategy. Specifically, A i Represents the agent for task m i Action, writing

[0252]

[0253] in Indicates service vehicles j The proportion of tasks assigned. Indicates the proportion of agency fees paid to the intermediary vehicle.

[0254] (3) Reward function:

[0255] The objective function of the optimization problem is the sum of the three-party utility. This problem is solved using the SAC algorithm. When setting the reward function, the utility function is the reward function. In this table, the optimization problem focuses on maximizing social utility, so the reward function is expressed as

[0256]

[0257] The present invention adopts the SAC algorithm to solve the partial unloading problem in the second stage (i.e., the second objective optimization problem). In this algorithm, the agent is continuously iteratively trained according to the action space, state space, and reward function designed above until it converges to the optimal utility function value. When the results converge, the optimal action decision of the agent can be obtained, that is, the specific unloading destination, unloading ratio, and intermediary incentive ratio of the task.

[0258] We conducted some simulations to evaluate our proposed scheme. The simulation platform is based on Python 3.9 on Ubuntu 18.04.3lts. The environment of the present invention is based on actual tests. We consider a 300-meter road where RSUs are uniformly deployed. With reference to some literature, the simulation parameters are set as follows. The number of vehicles is set to 3 to 40. We assume that each vehicle travels at a steady speed. The speed is set to 10 to 40 km / h. The computing resources of RSU are randomly distributed between 4 and 8 GHz. The data size of the task is randomly determined from a uniform distribution between 100 and 300 MB. The task computation size is randomly distributed in the range of [0.5, 2] × 109 CPU cycles. The task delay limit ranges from 0.5 seconds to 5 seconds. In the evaluation, these tasks are randomly generated so that there is no loss of generality. RSU and vehicles communicate with a bandwidth of 10 MHz. The system noise power is set to -80 dBm. The vehicle transmission power is 20 dBm. Since the scenario is assumed to be an urban environment, the path loss factor is 4. In addition, the failure rates of uploading, transmission, and calculation are set to 0.02, 0.015, and 0.015, respectively.

[0259] The software platforms used for experimental simulation are Matlab 2021 and Python 3.7.6. The training process is performed on three NVIDIA Tesla T4 GPUs, where the CPU is an Intel(R) Xeon(R) Silver 4210R CPU with a base frequency of 2.40 GHz. The parameter settings during the simulation process are shown in Table 1.

[0260] Table 1 Simulation parameters

[0261]

[0262]

[0263] We compare the proposed offloading scheme with other offloading schemes to further illustrate their impact on the system trustworthiness performance.

[0264] (1) Local Computing (LC): Requesting the vehicle to perform tasks locally.

[0265] (2) In the information asymmetric scenario, the RSU formulates the offloading strategy based on the SAC algorithm (IASAC): The RSU designs the offloading strategy based on the SAC algorithm according to the partial network information it collects.

[0266] (3) Intermediate Vehicle Random Offloading (IVRO): IV randomly assigns tasks to service vehicles. In order to compare with other mechanisms more fairly, this study takes the best result among 50 random results as the final result of IVRO.

[0267] Figure 4 A schematic diagram of reliability under different numbers of subtasks provided by an embodiment of the present invention. Figure 4 The influence of the number of subtasks divided into a single task on the reliability of task completion is verified. Figure 4 It can be seen that as the number of subtasks increases, the credibility of task completion decreases. However, this algorithm always has better performance than the IASAC strategy and the IVRO strategy. It can be seen from the formula that the credibility of cooperative unloading of some tasks is calculated by the product of the credibility of each subtask. Therefore, if the task is divided into smaller granularity, the number of service vehicles participating in cooperative unloading will increase, which may bring safety hazards to the processing of the task. This subsection sets the credibility of local calculation of the task to benchmark 1. In the scenario of asymmetric information, IV has more information about high-quality service vehicles than RSU, including some service vehicles with high trust values. Selecting such service vehicles for cooperative unloading can obtain higher credibility of task completion. Comprehensive consideration Figure 3 and Figure 4 It can be seen that the number of subtask divisions needs to be determined based on task requirements, and researchers need to make a trade-off between task completion delay and credibility.

[0268] In summary, the embodiments of the present invention are based on the social attributes between vehicles and utilize existing entities with fixed driving routes in the network to construct an intermediary vehicle-assisted task offloading framework. Compared with the existing technology, this framework does not require the prior knowledge of a large amount of statistical data and is more flexible.

[0269] In order to improve the effectiveness and credibility of offloading, the present invention considers a two-stage task scheduling scheme. For tasks arriving in the intermediary buffer, the task attributes, the queue situation in the buffer, and the maximum amount of tasks that the RSU can receive are comprehensively considered, and the target optimization problem is constructed with the goal of minimizing the urgency of the task. For the remaining tasks in the buffer, a partial cooperative offloading strategy based on intermediary incentives is constructed with the goal of maximizing social utility.

[0270] The present invention applies a soft actor critic algorithm, which takes into account not only rewards but also entropy. The strategy is trained to maximize the trade-off between expected returns and entropy. The increased exploratory nature can prevent the strategy from converging to a bad local optimum too early.

[0271] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.

[0272] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.

[0273] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0274] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention 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 by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A trusted offloading method based on intermediary incentives in information asymmetric Internet of Vehicles scenarios. It is characterized in that include: In the information asymmetric IoV scenario, the requesting vehicle RV generates the attribute information of the task, the RV establishes a communication connection with the intermediary IV in its area, and sends the attribute information of the task to IV; The IV stores the attribute information of the received task in the task buffer, and decides whether to leave the task in the buffer waiting for scheduling or continue to upload it to the RSU according to the task attribute, the queue situation in the buffer, and the situation of the intelligent roadside equipment RSU. The task uploaded to the RSU is processed by the RSU, and after the processing is completed, the RSU returns the processing result to the RV; IV divides a single task in the buffer into multiple subtasks, and offloads each subtask to several service vehicles SV for parallel processing. After each SV completes the task, it sends the processing result back to IV, which merges the processing results and returns them to RV. The IV stores the attribute information of the received task in the task buffer, and decides whether to leave the task in the buffer waiting for scheduling or continue to upload it to the RSU according to the task attribute, the queue status in the buffer, and the status of the intelligent roadside equipment RSU, including: Assume that the system operates within a time window, which is discretized into several time slots, denoted as t i ∈T={t 1 ,t 2 ,…t L }, RV generates the attribute information of the task, which is represented by a four-tuple, namely m i ={D i ,C i ,τ i ,S i }, where D i Represents the data size of the task, C i Represents the number of CPU revolutions required to complete the task, τ i Represents the maximum completion delay that this task can tolerate, S i Represents the task type; RV uploads the task request containing the task's quadruple information to the IV in its area. IV stores the received task's quadruple information in the task buffer. IV divides the tasks into safety tasks and non-safety tasks according to their importance. If S i =1, it means m i For security tasks, if S i =0, it means m i For non-safety tasks; In the time window T, the tasks arriving at IV follow the Poisson distribution, and the task set is represented as M T ={m 1 ,m 2 ,…m n }, IV stores the received task requests in the queue in the buffer in the order of arrival time, and task m i The average queuing delay It is expressed as: where λ IV is the number of task requests received by IV per unit time, is the sum of the computational amount of the tasks arriving per unit time; μ IV is the number of tasks that IV can process per unit time, expressed as the number of CPU revolutions per second that IV can provide. If task m i The maximum tolerable completion delay τ i Less than or equal to the average queuing delay in the buffer, that is, Then the task m i Upload directly to RSU and set up i =1; if Then the task m i Stay in the buffer waiting for scheduling, set i =0.

2. The method according to claim 1, It is characterized in that The IV divides a single task in the buffer into multiple subtasks, and offloads each subtask to several service vehicles SV for parallel processing, including: In the time window T, the set of tasks in the intermediate buffer is: Μ={m 1 ,m 2 ,…m n }, the set of service vehicles controlled by IV is expressed as Set the task m in the IV buffer i Divide into M subtasks for parallel processing. The economic fee received by the intermediary is the product of the single ratio transaction and the intermediary ratio. Suppose the intermediary ratio of IV ranges from in and is a constant value, if RV is unloading task m i IV mediation ratio is used for subtask j The corresponding intermediary service, the IV communication bandwidth that subtask j can occupy is expressed as: The transmission process of some tasks that are not uploaded to the RSU is divided into two stages: (1) The first transmission stage: the task is uploaded from the RV to the IV buffer to build an RV-IV communication link; (2) The second transmission stage: the IV sends several subtasks to multiple SVs in parallel to build an IV-SV communication link; (1) For the RV-IV link in the first transmission phase The transfer rate between RV and IV is expressed as: Among them B RV To request the communication bandwidth of the vehicle, p RV is the signal transmission power of RV, is the Gaussian white noise power, h RV is the channel gain; RV will task m i The delay required for transmission to IV is expressed as: Correspondingly, the energy consumption during the transmission process is: When i = 0, the task waiting urgency is determined by the maximum delay tolerance and the buffer queue delay, expressed as: Use D T ={ο i } i∈n It represents the scheduling scheme of each task stored in the buffer within a period of time T, with the goal of minimizing the urgency of each task in the buffer. The objective function of the optimization problem in the first transmission stage is set as: st i ·(1st) i )=1 S i =1 m IV >l IV in, is the maximum transmission power of IV; The state space, action space and reward function of the objective function of the optimization problem in the first transmission stage are set, and the objective function of the optimization problem in the first transmission stage is solved by the closest gradient optimization PPO algorithm. In the PPO algorithm, the agent is continuously and iteratively trained according to the action space, state space and reward function set above until it converges to the optimal utility function value, and obtains the optimal action decision of the agent, that is, whether the task arriving at the intermediary buffer is uploaded to the RSU for processing; (2) For the IV-SV link in the second transmission phase IV will m i Divide into multiple subtasks for parallel transmission and processing. If IV i Subtask j is offloaded to service vehicle s j , then x ij =1, otherwise; x ij =0, when x ij = 1, IV and service vehicle s j The data transmission rate of the established communication link is expressed as: Among them B i is the communication bandwidth allocated for transmitting subtasks, p IV is the signal transmission power of the intermediate vehicle, h IV is the channel gain, if ρ j Assigned to service vehicles j The task offloading ratio of IV is ρ, then the amount of tasks that IV needs to transfer when offloading subtask j is expressed as ρ j ·D i , the time spent on subtask j transmission is expressed as: The transmission energy consumption of IV offloading subtask j is calculated as: Service Vehicles j The computational effort of the assigned subtask j is expressed as ρ j ·C i , the computational delay generated by processing this subtask j is expressed as: where f j For j Available processing resources, s j The processing energy consumed by executing the offloaded subtask is written as where κ j is the energy coefficient associated with the service vehicle CPU; The time value function, task success probability and resource pricing function of processing each subtask under the IV partial offloading strategy are calculated respectively; Time Value Function The processing delay T of subtask j offloading from IV to SV i j It consists of two parts: task transmission delay T i j-trans And the task calculation delay T i j-comp , calculated as: T i j =T i j-trans +T i j-comp Each subtask is processed in parallel by each SV. i The total processing delay is expressed as: T i off =max{T i 1 ,T i 2 ,…T i n }+T i RV-trans Task m i The time value gained by partial unloading is expressed as: Service Vehicles j The cost per unit of task volume ρ j For a given parameter, the service vehicle s j The cost of processing a subtask is expressed as: Probability of successful completion of the task, service vehicle s j The probability of not being attacked from outside when executing a subtask is expressed as: where λ j (T 0 ) for service vehicles j In the time window T 0 Failure rate Introducing binary variable σ j To indicate whether the time limit is met, specifically: Since each service vehicle processing subtask can be regarded as an independent event, the probability of successful completion of the task is calculated as the product of the success probabilities of each part, which is estimated as: From an economic perspective, we construct the utility functions corresponding to RV, IV and SV respectively. and Execute task m i The social utility generated is expressed as the sum of the utility functions of RV, IV, and SV. i =[x i1 ,x i2 ,…x in ]、Uninstall ratio Ratio to agency fees To maximize social utility, the objective function of the optimization problem in the second transmission stage is set as: T i off <t i The state space, action space, and reward function of the objective function of the optimization problem in the second transmission stage are set, and the flexible strategy-evaluation algorithm SAC algorithm is used to solve the objective function of the optimization problem in the second transmission stage. In the SAC algorithm, the agent is continuously and iteratively trained according to the action space, state space, and reward function set above until it can converge to the optimal utility function value, and obtain the optimal action decision of the agent, that is, the specific unloading destination, unloading ratio, and intermediary incentive ratio of each subtask.

3. The method according to claim 2, It is characterized in that The utility functions corresponding to RV, IV and SV are constructed from the perspective of economics. and include: (1) The utility function of the requesting vehicle consists of three parts: the time value brought by task processing, the intermediary fee paid to IV, and the task offloading fee paid to SV. The utility function of the requesting vehicle is: in Brokerage fees paid to the broker for the requested vehicle; (2) From the perspective of the intermediary vehicle, task m i The resource occupancy generated by formulating the offloading strategy is calculated as: where ξ IV is the occupancy factor, The maximum computing capacity of the intermediary vehicle itself; The utility function of the intermediary vehicle consists of three parts, namely, the intermediary fee paid by the requesting vehicle, the transmission energy consumption generated by transmitting each subtask to the corresponding service vehicle, and the resource occupancy generated by formulating the strategy. The utility function of the intermediary vehicle is: (3) The utility of the service vehicle consists of two parts: the benefit and the energy consumption generated by executing the subtask. The service vehicle s j The utility function is: The utility function of the service vehicle cluster is:

4. The method according to claim 2, It is characterized in that The setting of the state space, action space and reward function of the objective function of the optimization problem in the first transmission stage includes: (1) The state space is expressed as: Among them, D i ,C i ,τ i ,S i They represent the data size, required computing resources, task survival time and task type of the task respectively; B IV ,p IV ,h IV Respectively represent the bandwidth, transmission power and channel gain of the communication link established between IV and RSU; λ IV ,μ IV ,c max They represent the amount of task data arriving in the IV buffer per unit time, the amount of tasks that can be processed by the IV per unit time, and the maximum amount of task data that the RSU can receive while ensuring that the queue is not queued; c i-1 For task m i The amount of tasks whose IV has been uploaded to RSU before scheduling; (2) Action space: represents the scheduling decision of IV for each task in the buffer. Within a time window T, the set of tasks arriving in the intermediate buffer is represented as M T ={m 1 ,m 2 ,…m n }, in one round of interaction between the agent and the environment, the agent needs to make offloading decisions for n tasks respectively, and the action space is expressed as: a i =[the i ] Among them i is a binary variable, i =1 indicates task m i Will be uploaded to RSU for processing, i =0 means task m i Not uploaded to RSU for processing; (3) Reward function: The objective optimization problem is to minimize the urgency of tasks in the buffer under the condition of satisfying various constraints. Within the time window T, the urgency of all tasks in the intermediate buffer is a certain value. The reward function is expressed as the urgency of the tasks uploaded to the RSU, specifically: Where Γ′ is a positive real number with a large value.

5. The method according to claim 2, It is characterized in that The setting of the state space, action space and reward function of the objective function of the optimization problem in the second transmission stage includes: (1) The state space is defined as: Where D i ,C i ,τ i Task attributes, which represent the amount of data transmitted, the amount of computation, and the maximum tolerable delay; f j For service vehicles j The computing power of j (T 0 ) for service vehicles j In T 0 The failure rate at the moment, The maximum computing resources that the intermediary can contribute; ρ red is the proportion of tasks to be assigned, t min is the minimum delay among the assigned subtasks; (2) The action space is divided into two parts: one is the choice of the intermediary fee ratio, and the other is the formulation of the partial unloading strategy. i Represents the agent for task m i The action is: in Indicates service vehicles j The proportion of tasks assigned, Indicates the proportion of agency fees paid to the intermediary vehicle; (3) Reward function: The reward function of the optimization problem is the sum of the three-party utility functions of RV, IV and RSU. The goal is to maximize the social utility function and set the reward function as: