Method, device and medium for task offloading and resource allocation for V2V assistance in Internet of Vehicles

By adopting a dual-time scale method and Lyapunov optimization framework in the Internet of Vehicles, combining V2I and V2V offload models, optimizing resource allocation and task offloading, the problems of high energy consumption and high latency in the Internet of Vehicles are solved, and the system energy consumption is minimized and resource utilization is improved.

CN120050720BActive Publication Date: 2025-08-12HUAIAN KUNBO INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510192046.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-08-12
Estimated Expiration
2045-02-21

AI Technical Summary

Technical Problem

The existing Internet of Vehicle resource allocation and task offloading methods have high deployment and operation costs in V2I and V2V modes, limited computing resources, and existing DRL algorithms cannot effectively handle long-term constraints and decision-making overhead differences, resulting in high system energy consumption and unstable latency.

Method used

The dual-time scale method is adopted, combined with V2I and V2V offload models, and the problem is broken down into large and small time scale subproblems through the Lyapunov optimization framework, and a deep reinforcement learning and generalized blogrs decomposition algorithm are designed to optimize the offload link, bandwidth, computing resources and transmission power allocation.

Benefits of technology

When the system queue is stable, the system energy consumption is minimized, the computing resource utilization rate is improved, the roadside device burden is reduced, and flexible resource allocation and task offloading is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050720B_ABST
    Figure CN120050720B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical fields of edge computing, Internet of Vehicles, resource allocation and task offloading, and discloses a method, device and medium for task offloading and resource allocation for V2V assistance in the Internet of Vehicles. The method includes: constructing a task queue model; determining an energy consumption model based on the task queue model; constructing an optimization problem based on the energy consumption model with the goal of minimizing long-term energy consumption; solving the optimization problem to determine the task offloading and resource allocation scheme. The present invention jointly optimizes offloading link selection, bandwidth resource allocation, computing resource allocation, offloading ratio and transmission power allocation. Taking into account the different decision costs, I adopted a dual time scale approach, that is, decisions with high costs are optimized on a large time scale; decisions with low costs are optimized on a small time scale; in this way, by combining the V2I and V2V offloading models, the system energy consumption is minimized while the system queue is stable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical fields of edge computing, Internet of Vehicles (IoV), resource allocation and task offloading, and more specifically, to a method, device and medium for task offloading and resource allocation for V2V assistance in IoV. Background Art

[0002] With the development of 5G technology, the Internet of Vehicles (IoV) has become a research focus in the field of the Internet of Things (IoT). Leveraging vehicle-to-infrastructure (V2I) and vehicle-to-vehicle (V2V) communication technologies, IoV connects vehicles or infrastructure to the network for information sharing and service support. This is an effective approach to achieving intelligent transportation. To ensure safe and convenient driving, a large number of resource-intensive in-vehicle network applications, such as collision detection and real-time navigation, are emerging. These applications must be completed within strict deadlines, posing a significant challenge for vehicle servers with limited computing resources. Offloading tasks to cloud servers with abundant computing resources is one computing paradigm. However, the long transmission distance between vehicles and cloud servers inevitably results in high propagation delay and jitter. Vehicle edge computing (VEC), a more promising computing paradigm, offloads vehicle tasks to fixed edge servers (FES) or nearby vehicles with available computing resources, providing users with highly reliable and low-latency services. Considering the random mobility of vehicles and the rapid changes in the network environment, it is challenging to explore the optimal resource allocation and task offloading schemes in VEC under dynamic topologies.

[0003] Existing work has explored resource allocation and task offloading based on the V2I model, whereby vehicles can offload tasks to FESs via V2I links. However, the V2I model relies heavily on numerous FES nodes, such as roadside units (RSUs), which inevitably leads to high deployment and operating costs. Furthermore, as traffic density increases within the RSU coverage area, resource-limited FESs struggle to meet user latency requirements. Considering the presence of vehicles with excess computing resources in vehicular networks, some research has investigated resource allocation and task offloading schemes based on the V2V model. In the V2V model, task vehicles (TVs) with limited computing resources can offload tasks to collaborative vehicles (CVs) equipped with mobile computing servers (MCSs), eliminating the need for FES nodes. This V2V offloading model can complement the V2I model, reducing the computational burden on RSUs and improving the utilization of vehicle computing resources. Currently, exploration of both V2I and V2V offloading models is limited. Vehicles can only choose fixed offloading links and cannot flexibly choose V2I or V2V offloading modes. In addition, computing and communication resources, which are core resources, are not fully utilized during the offloading process.

[0004] Achieving optimal resource allocation and task offloading often requires solving mixed integer nonlinear programming (MINLP), which is generally considered NP-hard. Several studies have designed heuristic intelligent optimization algorithms and game-based algorithms. However, these traditional optimization algorithms typically require numerous iterations and high computational complexity, making them unsuitable for rapidly changing VECs.

[0005] To this end, some researchers have applied data-driven deep reinforcement learning (DRL) algorithms to develop optimal resource allocation and task offloading schemes. DRL leverages agents to interact with the environment and receive rewards, continuously improving their action functions to adapt to the rapidly changing VEC environment. When optimizing energy consumption or latency for VECs, the long-term performance of the system is equally important. Existing DRL algorithms cannot directly handle long-term constraints. To address this, some researchers have proposed Lyapunov-based DRL algorithms. These algorithms first apply the Lyapunov framework to transform the multi-slot optimization problem into deterministic subproblems for each slot to ensure system stability. Then, corresponding DRL algorithms are proposed to solve each subproblem, resulting in efficient solutions. However, these algorithms typically operate on a single timescale: the timeline is divided into discrete time slots, with resource and / or offloading allocation decisions made at the beginning of each time slot. This single-timescale framework ignores the overhead of decision-making. Specifically, decisions requiring global information are more expensive than those requiring local information. To achieve optimal performance, the update frequencies of these two types of decisions should also differ. However, existing strategies rarely consider this. Summary of the Invention

[0006] The present invention is provided to solve the above-mentioned problems existing in the prior art. Therefore, there is a need for a method, device and medium for task offloading and resource allocation for V2V assistance in the Internet of Vehicles, the purpose of which is to combine the V2I and V2V offloading models to minimize the system energy consumption under the condition of stable system queues. The present invention jointly optimizes offloading link selection, bandwidth reallocation, computing resource allocation, offloading ratio and transmission power allocation. Taking into account the different overheads of decisions, a dual time scale approach is adopted, that is, decisions with high overhead are optimized on a large time scale; decisions with low overhead are optimized on a small time scale. In order to obtain online decisions, a Lyapunov-based optimization scheme is proposed, which applies the Lyapunov framework to decouple the formulated problem into two sub-problems on two time scales.

[0007] According to a first aspect of the present invention, a method for task offloading and resource allocation for V2V assistance in an Internet of Vehicles is provided, the method comprising:

[0008] Build a task queue model;

[0009] determining an energy consumption model based on the task queue model;

[0010] Based on the energy consumption model, an optimization problem is constructed with the goal of minimizing long-term energy consumption;

[0011] Solving the optimization problem to determine a task offloading and resource allocation solution;

[0012] Among them, the task queue model is constructed by the following method:

[0013] With binary variable o m,n (k) = {0, 1} represents the offloading link selection between the task vehicle TV m and the cooperative vehicle CV n;

[0014] In each time frame, TV can only establish a connection with one CV and one CV can only provide services to one TV. Where N represents the CV set and M represents the TV set;

[0015] The amount of data generated by the mth task vehicle TV m in time slot t is A m (t);

[0016] The local processing part of TV is The part that is unloaded to the RSU for processing is The part unloaded to the cooperative vehicle CV for processing is is the task offloading ratio of the mth cooperative vehicle CVm in time slot t, and in, Indicates the local processing ratio of TV m, Indicates the proportion of processing offloaded to RSU, Indicates the proportion of unloading to cooperative vehicles;

[0017] At time slot t, the length of TVm's local processing queue is The update formula is:

[0018]

[0019] in represents the amount of data processed locally in time slot t; max represents the maximum function; τ represents the duration of a time slot; ω represents the CPU cycle required to process a 1-bit task; Indicates the CPU frequency of TV m;

[0020] The transmission rate from TVm to RSU is:

[0021]

[0022] in, Indicates the transmission rate from TVm to RSU; is the number of subcarriers allocated to the V2I link in time frame k, is the V2I link transmission power, represents the channel gain of the V2I link, σ 2 Represents the noise power.

[0023] At time slot t, the length of TVm’s V2I link task sending queue is The update formula is:

[0024]

[0025] in represents the amount of data transmitted in time slot t;

[0026] The V2V link transmission rate from TVm to CVn is:

[0027]

[0028] in, Indicates the V2V link transmission rate from TVm to CVn; is the V2V link transmission power, is the channel gain of the V2V link; b represents the bandwidth of a subchannel;

[0029] At time slot t, the length of TVm’s V2V task sending queue is The update formula is:

[0030]

[0031] in represents the amount of data sent to CV in time slot t. The number of tasks offloaded from TVm to RSU is:

[0032]

[0033] Where, Indicates the number of tasks offloaded from TVm to RSU; min indicates the minimum function; represents the amount of data sent to the RSU in time slot t;

[0034] At time slot t, the length of the RSU task processing queue is The update formula is:

[0035]

[0036] in Indicates the amount of data processed by RSU; It represents the calculation frequency of RSU assigned to TV m.

[0037] The number of tasks offloaded to CVn is:

[0038]

[0039] Among them, the binary variable o m,n =1 means TVm can offload tasks to CVn; Indicates the number of tasks offloaded to CVn;

[0040] At time slot t, CVn calculates the queue length as The update formula is:

[0041]

[0042] in Indicates the amount of data sent to CV n; Indicates the calculation frequency of CV n.

[0043] According to a second aspect of the present invention, a task offloading and resource allocation device for V2V assistance in an Internet of Vehicles is provided, the device comprising:

[0044] A first model building unit is configured to build a task queue model;

[0045] a second model building unit configured to determine an energy consumption model based on the task queue model;

[0046] an optimization problem construction unit configured to construct an optimization problem based on the energy consumption model with the goal of minimizing long-term energy consumption;

[0047] an optimization problem solving unit, configured to solve the optimization problem to determine a task offloading and resource allocation solution;

[0048] The first model building unit is further configured to build a task queue model by the following method:

[0049] With binary variable o m,n (k) = {0, 1} represents the offloading link selection between the task vehicle TV m and the cooperative vehicle CV n;

[0050] In each time frame, TV can only establish a connection with one CV and one CV can only provide services to one TV. Where N represents the CV set and M represents the TV set;

[0051] The amount of data generated by the mth task vehicle TV m in time slot t is A m (t);

[0052] The local processing part of TV is The part that is unloaded to the RSU for processing is The part unloaded to the cooperative vehicle CV for processing is is the task offloading ratio of the mth cooperative vehicle CVm in time slot t, and in, Indicates the local processing ratio of TV m, Indicates the proportion of processing offloaded to RSU, Indicates the proportion of unloading to cooperative vehicles;

[0053] At time slot t, the length of TVm’s local processing queue is The update formula is:

[0054]

[0055] in represents the amount of data processed locally in time slot t; max represents the maximum function; τ represents the duration of a time slot; ω represents the CPU cycle required to process a 1-bit task; Indicates the CPU frequency of TV m;

[0056] The transmission rate from TVm to RSU is:

[0057]

[0058] in, Indicates the transmission rate from TVm to RSU; is the number of subcarriers allocated to the V2I link in time frame k, is the V2I link transmission power, represents the channel gain of the V2I link, σ 2 Represents the noise power.

[0059] At time slot t, the length of TVm’s V2I link task sending queue is The update formula is:

[0060]

[0061] in represents the amount of data transmitted in time slot t;

[0062] The V2V link transmission rate from TVm to CVn is:

[0063]

[0064] in, Indicates the V2V link transmission rate from TVm to CVn; is the V2V link transmission power, is the channel gain of the V2V link; b represents the bandwidth of a subchannel;

[0065] At time slot t, the length of TVm’s V2V task sending queue is The update formula is:

[0066]

[0067] in represents the amount of data sent to CV in time slot t. The number of tasks offloaded from TVm to RSU is:

[0068]

[0069] Where, Indicates the number of tasks offloaded from TVm to RSU; min indicates the minimum function; Indicates the amount of data sent to the RSU in time slot t.

[0070] At time slot t, the length of the RSU task processing queue is The update formula is:

[0071]

[0072] in Indicates the amount of data processed by RSU; It represents the calculation frequency of RSU assigned to TV m.

[0073] The number of tasks offloaded to CVn is:

[0074]

[0075] Among them, the binary variable o m,n =1 means TVm can offload tasks to CVn; Indicates the number of tasks offloaded to CVn;

[0076] At time slot t, CVn calculates the queue length as The update formula is:

[0077]

[0078] in Indicates the amount of data sent to CV n; Indicates the calculation frequency of CV n.

[0079] According to a third aspect of the present invention, a readable storage medium is provided, wherein the readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method described above.

[0080] The present invention has at least the following beneficial effects:

[0081] The present invention considers both V2I and V2V offloading modes and proposes an online dual-time-scale strategy to jointly optimize resource allocation and task offloading. Specifically, offloading link selection, bandwidth resource allocation, and computing resource allocation are performed on a large time scale, while offloading ratio and transmission power allocation are performed on a small time scale. In order to obtain the optimal solution, an optimization problem is proposed to minimize system energy consumption and ensure the stability of the task queue. To solve the proposed problem, the Lyapunov optimization framework is used to decompose the original problem into two time-scale sub-problems. On this basis, a DRL algorithm and a generalized Benders decomposition algorithm based on continuous convex approximation are proposed to solve the two sub-problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] Figure 1 A schematic diagram of a vehicle network architecture provided by an embodiment of the present invention.

[0083] Figure 2 A schematic diagram of a dual time scale provided by an embodiment of the present invention.

[0084] Figure 3 This is a flowchart of a method for task offloading and resource allocation for V2V assistance in a connected vehicle network provided by an embodiment of the present invention.

[0085] Figure 4 This is a structural diagram of a task offloading and resource allocation device for V2V assistance in a connected vehicle network provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0086] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments. The embodiments of the present invention are further described in detail below with reference to the accompanying drawings and specific embodiments, but are not intended to limit the present invention. For the various steps described herein, if there is no necessity for a contextual relationship between each other, the order in which they are described as examples herein should not be regarded as limiting, and those skilled in the art should know that they can be adjusted in order as long as the logic between them is not destroyed, resulting in the inability to implement the entire process.

[0087] The embodiment of the present invention provides a method for task offloading and resource allocation for V2V assistance in a vehicle network. Figure 1 FIG. 1 is a schematic diagram of a vehicle network architecture provided by an embodiment of the present invention. The task offloading and resource allocation method for V2V assistance in the vehicle network can be applied to the following examples: Figure 1 It should be noted that the vehicle network architecture provided here is only an example of a specific scenario in which the method proposed in the present invention can be applied, and does not mean that the present invention must be applied to Figure 1 The vehicle network architecture shown. Figure 1The vehicle network architecture shown includes a task vehicle (TV), a cooperative vehicle (CV), and a roadside unit (RSC). The task vehicle can have up to three processing modes: local processing, RSU processing, and cooperative vehicle processing.

[0088] This method introduces a dual time scale model and designs an online optimization strategy to solve the resource allocation and task offloading problems in V2I and V2V while ensuring the stability of the system. Figure 2 As shown, it is a schematic diagram of the dual time scale provided by an embodiment of the present invention. The dual time scale specifically refers to: T consecutive time slots constitute a time frame; a large time scale decision is made at the beginning of each time frame, and a small time scale decision is made at the beginning of each time slot.

[0089] Combine Figure 1 The vehicle network architecture shown and Figure 2 The dual time scale shown, Figure 3 The flowchart of the method for task offloading and resource allocation for V2V assistance in the connected vehicle network provided by an embodiment of the present invention is provided. When the method for task offloading and resource allocation for V2V assistance in the connected vehicle network is specifically implemented, it can be implemented by the following steps S10 to S40.

[0090] S10: Build a task queue model.

[0091] In this embodiment, the task queue model is constructed by the following method:

[0092] With binary variable o m,n (k) = {0, 1} represents the offloading link selection between the task vehicle TV m and the cooperative vehicle CV n;

[0093] In each time frame, TV can only establish a connection with one CV and one CV can only provide services to one TV. Where N represents the CV set and M represents the TV set;

[0094] The amount of data generated by the mth task vehicle TV m in time slot t is A m (t);

[0095] The local processing part of TV is The part that is unloaded to the RSU for processing is The part unloaded to the cooperative vehicle CV for processing is is the task offloading ratio of the mth cooperative vehicle CVm in time slot t, and in, Indicates the local processing ratio of TV m, Indicates the proportion of processing offloaded to RSU, Indicates the proportion of unloading to cooperative vehicles;

[0096] At time slot t, the length of TVm’s local processing queue is The update formula is:

[0097]

[0098] in represents the amount of data processed locally in time slot t; max represents the maximum function; τ represents the duration of a time slot; ω represents the CPU cycle required to process a 1-bit task; Indicates the CPU frequency of TV m;

[0099] The transmission rate from TVm to RSU is:

[0100]

[0101] in, Indicates the transmission rate from TVm to RSU; is the number of subcarriers allocated to the V2I link in time frame k, is the V2I link transmission power, represents the channel gain of the V2I link, σ 2 Represents the noise power.

[0102] At time slot t, the length of TVm’s V2I link task sending queue is The update formula is:

[0103]

[0104] in represents the amount of data transmitted in time slot t;

[0105] The V2V link transmission rate from TVm to CVn is:

[0106]

[0107] in, Indicates the V2V link transmission rate from TVm to CVn; is the V2V link transmission power, is the channel gain of the V2V link; b represents the bandwidth of a subchannel;

[0108] At time slot t, the length of TVm’s V2V task sending queue is The update formula is:

[0109]

[0110] in represents the amount of data sent to CV in time slot t. The number of tasks offloaded from TVm to RSU is:

[0111]

[0112] Where, Indicates the number of tasks offloaded from TVm to RSU; min indicates the minimum function; Indicates the amount of data sent to the RSU in time slot t.

[0113] At time slot t, the length of the RSU task processing queue is The update formula is:

[0114]

[0115] in Indicates the amount of data processed by RSU; It represents the calculation frequency of RSU assigned to TV m.

[0116] The number of tasks offloaded to CVn is:

[0117]

[0118] Among them, the binary variable o m,n =1 means TVm can offload tasks to CVn; Indicates the number of tasks offloaded to CVn;

[0119] At time slot t, CVn calculates the queue length as The update formula is:

[0120]

[0121] in Indicates the amount of data sent to CV n; Indicates the calculation frequency of CV n.

[0122] S20: Determine an energy consumption model based on the task queue model.

[0123] In some embodiments, based on the task queue model, an energy consumption model is determined by:

[0124] In time slot t, TVm local processing energy consumption for:

[0125]

[0126] in, is the CPU frequency of TV;

[0127] Energy consumption uploaded from TVm to RSU for:

[0128]

[0129] Energy consumption of TVm uploading to CV for:

[0130]

[0131] Energy consumed by RSU in processing tasks uploaded by TVM for:

[0132]

[0133] Where e represents the energy consumption of RSU processing 1-bit task;

[0134] Energy consumed by CVn processing tasks for:

[0135]

[0136] The total energy consumption in time slot t is:

[0137]

[0138] Where E(t) is the total energy consumption in time slot t.

[0139] S30: Based on the energy consumption model, an optimization problem is constructed with the goal of minimizing long-term energy consumption. In some embodiments, for the convenience of problem description, let O(k) = {o m,n (k)} m∈M,n∈N , α(t)={α m (t)} m∈M ,

[0140] B(k)={B m (k)} m∈M , P(t)={P m (t)} m∈M ,

[0141] Then the energy consumption minimization problem P0 is:

[0142]

[0143] Among them, P0 represents the problem of minimizing energy consumption, st represents the constraint, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10 and C11 all represent constraint conditions; B max represents the subcarrier overview, f maxIndicates the maximum operating frequency of RSU, Indicates the maximum transmission power of TV m.

[0144] In order to ensure the stable operation of the system, the queue backlog Q(t) is defined as time slot t = {Q TV (t),Q CV (t)}, where

[0145]

[0146] Define the Lyapunov function L(Q(t)):

[0147]

[0148] Define the T-slot Lyapunov drift function Δ T (Q(t)):

[0149] Δ T (Q(t))=E{L(Q(t+T))-L(Q(t))|Q(t)}

[0150] Define drift plus penalty function

[0151]

[0152] Where V represents the trade-off parameter; T k represents the set of time slots for time frame k.

[0153] By minimizing the upper bound of the drift plus the penalty function, P0 is transformed into the first problem P1 as follows:

[0154]

[0155] in

[0156]

[0157] The first problem P1 can be further decomposed into the per-frame sub-problem P2 at a large time scale and the per-time slot sub-problem P3 at a small time scale as shown below:

[0158]

[0159] S40: Solve the optimization problem to determine a task offloading and resource allocation solution.

[0160] In some embodiments, for the large time scale optimization problem (i.e., the per-frame subproblem P2 at a large time scale), it is modeled as a Markov decision process, and a reinforcement learning algorithm with a deep deterministic strategy is proposed to solve the problem. An actor network combining the Softmax activation function and the heuristic algorithm is designed to ensure that its output decision meets the constraints. For the small time scale optimization problem (i.e., the per-time slot subproblem P3 at a small time scale), a generalized benders decomposition algorithm based on continuous convex approximation is designed to solve it. First, the objective function is linearized using the big-M method and converted into a mixed integer nonlinear problem. Then, the successive convex approximation (SCA) algorithm is applied to convert the non-convex components in the MINLP problem into convex components. Finally, the generalized benders algorithm is applied to solve the converted mixed integer nonlinear problem.

[0161] The embodiment of the present invention also provides a task offloading and resource allocation device for V2V assistance in a vehicle network, such as Figure 4 As shown, the device includes:

[0162] A first model building unit 401 is configured to build a task queue model;

[0163] A second model building unit 402 is configured to determine an energy consumption model based on the task queue model;

[0164] An optimization problem constructing unit 403 is configured to construct an optimization problem based on the energy consumption model with the goal of minimizing long-term energy consumption;

[0165] The optimization problem solving unit 404 is configured to solve the optimization problem to determine a task offloading and resource allocation solution;

[0166] The first model building unit 401 is further configured to build a task queue model by the following method:

[0167] With binary variable o m,n (k) = {0, 1} represents the offloading link selection between the task vehicle TV m and the cooperative vehicle CV n;

[0168] In each time frame, TV can only establish a connection with one CV and one CV can only provide services to one TV. Where N represents the CV set and M represents the TV set;

[0169] The amount of data generated by the mth task vehicle TV m in time slot t is A m (t);

[0170] The local processing part of TV is The part that is unloaded to the RSU for processing is The part unloaded to the cooperative vehicle CV for processing is is the task offloading ratio of the mth cooperative vehicle CVm in time slot t, and in, Indicates the local processing ratio of TV m, Indicates the proportion of processing offloaded to RSU, Indicates the proportion of unloading to cooperative vehicles;

[0171] At time slot t, the length of TVm's local processing queue is The update formula is:

[0172]

[0173] in represents the amount of data processed locally in time slot t; max represents the maximum function; τ represents the duration of a time slot; ω represents the CPU cycle required to process a 1-bit task; Indicates the CPU frequency of TV m;

[0174] The transmission rate from TVm to RSU is:

[0175]

[0176] in, Indicates the transmission rate from TVm to RSU; is the number of subcarriers allocated to the V2I link in time frame k, is the V2I link transmission power, represents the channel gain of the V2I link, σ 2 Represents the noise power.

[0177] At time slot t, the length of TVm’s V2I link task sending queue is The update formula is:

[0178]

[0179] in represents the amount of data transmitted in time slot t;

[0180] The V2V link transmission rate from TVm to CVn is:

[0181]

[0182] in, Indicates the V2V link transmission rate from TVm to CVn; is the V2V link transmission power, is the channel gain of the V2V link; b represents the bandwidth of a subchannel;

[0183] At time slot t, the length of TVm’s V2V task sending queue is The update formula is:

[0184]

[0185] in represents the amount of data sent to CV in time slot t. The number of tasks offloaded from TVm to RSU is:

[0186]

[0187] Where, Indicates the number of tasks offloaded from TVm to RSU; min indicates the minimum function; Indicates the amount of data sent to the RSU in time slot t.

[0188] At time slot t, the length of the RSU task processing queue is The update formula is:

[0189]

[0190] in Indicates the amount of data processed by RSU; It represents the calculation frequency of RSU assigned to TV m.

[0191] The number of tasks offloaded to CVn is:

[0192]

[0193] Among them, the binary variable o m,n =1 means TVm can offload tasks to CVn; Indicates the number of tasks offloaded to CVn;

[0194] At time slot t, CVn calculates the queue length as The update formula is:

[0195]

[0196] in Indicates the amount of data sent to CV n; Indicates the calculation frequency of CV n.

[0197] It should be noted that the various device structures described in this embodiment belong to the same technical concept as the method described previously, and achieve the same technical effects through the same principles, which will not be repeated here.

[0198] An embodiment of the present invention further provides a readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the method described in any of the above embodiments.

[0199] Furthermore, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present invention having equivalent elements, modifications, omissions, combinations (e.g., schemes where various embodiments intersect), adaptations, or changes. The elements in the claims are to be interpreted broadly based on the language employed in the claims and are not limited to the examples described in this specification or during the prosecution of this application, which examples are to be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, with the true scope and spirit being indicated by the following claims and the full scope of their equivalents.

[0200] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of their solutions) can be used in combination with each other. For example, those of ordinary skill in the art may use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the present invention. This should not be interpreted as an intention that a feature of an invention that is not claimed for protection is necessary for any claim. On the contrary, the subject matter of the present invention may be less than all the features of the embodiments of a particular invention. Thus, the following claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of the present invention should be determined with reference to the appended claims and the full scope of equivalents to which these claims are entitled.

Claims

1. A method for task offloading and resource allocation for V2V assistance in a connected vehicle network, characterized in that: The method comprises: Build a task queue model; determining an energy consumption model based on the task queue model; Based on the energy consumption model, an optimization problem is constructed with the goal of minimizing long-term energy consumption; Solving the optimization problem to determine a task offloading and resource allocation solution; Among them, the task queue model is constructed by the following method: With binary variable o m,n (k) = {0, 1} represents the offloading link selection between the task vehicle TV m and the cooperative vehicle CV n; In each time frame, TV can only establish a connection with one CV and one CV can only provide services to one TV. Where N represents the CV set and M represents the TV set; The amount of data generated by the mth task vehicle TV m in time slot t is A m (t); The local processing part of TV is The part that is unloaded to the RSU for processing is The part unloaded to the cooperative vehicle CV for processing is is the task offloading ratio of the mth cooperative vehicle CVm in time slot t, and in, Indicates the local processing ratio of TV m, Indicates the proportion of processing offloaded to RSU, Indicates the proportion of unloading to cooperative vehicles; At time slot t, the length of TVm's local processing queue is The update formula is: in represents the amount of data processed locally in time slot t; max represents the maximum function; τ represents the duration of a time slot; ω represents the CPU cycle required to process a 1-bit task; Indicates the CPU frequency of TV m; The transmission rate from TVm to RSU is: in, Indicates the transmission rate from TVm to RSU; is the number of subcarriers allocated to the V2I link in time frame k, is the V2I link transmission power, represents the channel gain of the V2I link, σ 2 represents the noise power; At time slot t, the length of TVm’s V2I link task sending queue is The update formula is: in represents the amount of data transmitted in time slot t; The V2V link transmission rate from TVm to CVn is: in, Indicates the V2V link transmission rate from TVm to CVn; is the V2V link transmission power, is the channel gain of the V2V link; b represents the bandwidth of a subchannel; At time slot t, the length of TVm’s V2V task sending queue is The update formula is: in represents the amount of data sent to CV in time slot t; The number of tasks offloaded from TVM to RSU is: Where, Indicates the number of tasks offloaded from TVm to RSU; min indicates the minimum function; represents the amount of data sent to the RSU in time slot t; At time slot t, the length of the RSU task processing queue is The update formula is: in Indicates the amount of data processed by RSU; Indicates the calculation frequency of RSU allocated to TVm; The number of tasks offloaded to CVn is: Among them, the binary variable o m,n =1 means TVm can offload tasks to CVn; Indicates the number of tasks offloaded to CVn; At time slot t, CVn calculates the queue length as The update formula is: in Indicates the amount of data sent to CV n; Indicates the calculation frequency of CV n.

2. The method according to claim 1, characterized in that Determining an energy consumption model based on the task queue model specifically includes: In time slot t, TVm local processing energy consumption for: in, is the CPU frequency of TV; Energy consumption uploaded from TVm to RSU for: Energy consumption of TVm uploading to CV for: Energy consumed by RSU in processing tasks uploaded by TVM for: Where e represents the energy consumption of RSU processing 1-bit task; Energy consumed by CVn processing tasks for: The total energy consumption in time slot t is: Where E(t) is the total energy consumption in time slot t.

3. The method according to claim 1, characterized in that Based on the energy consumption model, an optimization problem is constructed with the goal of minimizing long-term energy consumption, including: To facilitate the description of the problem, let O(k) = {o m,n (k)} m∈M,n∈N , α(t)={α m (t)} m∈M , B(k)={B m (k)} m∈M , P(t)={P m (t)} m∈M , Then the problem of minimizing energy consumption can be expressed as: Among them, P0 represents the problem of minimizing energy consumption, st represents the constraint, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10 and C11 all represent constraint conditions; B max represents the subcarrier overview, f max Indicates the maximum operating frequency of RSU, represents the maximum transmission power of TV m; The queue backlog in time slot t is expressed as: Q(t)={Q TV (t),Q CV (t)} in Determine the Lyapunov function, T-slotLyapunov drift function, and drift plus penalty function; Convert P0 to the first problem P1 by minimizing the upper bound of the drift plus penalty function; The first problem P1 is decomposed into a per-frame sub-problem P2 at a large time scale and a per-time slot sub-problem P3 at a small time scale.

4. The method according to claim 3, characterized in that The Lyapunov function is expressed as: Wherein, L(Q(t)) represents the Lyapunov function.

5. The method according to claim 4, characterized in that The T-slot Lyapunov drift function is expressed as: Among them, Δ T (Q(t)) represents the T-slot Lyapunov drift function.

6. The method according to claim 5, characterized in that The drift plus penalty function Expressed as: Where V represents the trade-off parameter; T k represents the set of time slots of time frame k.

7. The method according to claim 6, characterized in that The first problem P1 is expressed as: stC1-C11, in The per-frame subproblem P2 at a large time scale and the per-time-slot subproblem P3 at a small time scale are expressed as: stC1-C6,C11, stC7,C8,C10.

8. The method according to claim 7, characterized in that Solving the optimization problem to determine a task offloading and resource allocation solution includes: For the per-frame subproblem P2 at a large time scale, it is modeled as a Markov decision process, using an actor network that combines the Softmax activation function and a heuristic algorithm to ensure that the output decision meets the constraints; For the per-time-slot subproblem P3 at a small time scale, the big-M method is first used to linearize the objective function and transform it into a mixed-integer nonlinear problem. Then, the successive convex approximation algorithm is applied to transform the non-convex components in the MINLP problem into convex components. Finally, the generalized Benders algorithm is applied to solve the transformed mixed-integer nonlinear problem.

9. A task offloading and resource allocation device for V2V assistance in a vehicle network, characterized in that: The device comprises: A first model building unit is configured to build a task queue model; a second model building unit configured to determine an energy consumption model based on the task queue model; an optimization problem construction unit configured to construct an optimization problem based on the energy consumption model with the goal of minimizing long-term energy consumption; an optimization problem solving unit, configured to solve the optimization problem to determine a task offloading and resource allocation solution; The first model building unit is further configured to build a task queue model by the following method: With binary variable o m,n (k) = {0, 1} represents the offloading link selection between the task vehicle TV m and the cooperative vehicle CV n; In each time frame, TV can only establish a connection with one CV and one CV can only provide services to one TV. Where N represents the CV set and M represents the TV set; The amount of data generated by the mth task vehicle TV m in time slot t is A m (t); The local processing part of TV is The part that is unloaded to the RSU for processing is The part unloaded to the cooperative vehicle CV for processing is is the task offloading ratio of the mth cooperative vehicle CVm in time slot t, and in, Indicates the local processing ratio of TV m, Indicates the proportion of processing offloaded to RSU, Indicates the proportion of unloading to cooperative vehicles; At time slot t, the length of TVm's local processing queue is The update formula is: in represents the amount of data processed locally in time slot t; max represents the maximum function; τ represents the duration of a time slot; ω represents the CPU cycle required to process a 1-bit task; Indicates the CPU frequency of TV m; The transmission rate from TVm to RSU is: in, Indicates the transmission rate from TVm to RSU; is the number of subcarriers allocated to the V2I link in time frame k, is the V2I link transmission power, represents the channel gain of the V2I link, σ 2 represents the noise power; At time slot t, the length of TVm’s V2I link task sending queue is The update formula is: in represents the amount of data transmitted in time slot t; The V2V link transmission rate from TVm to CVn is: in, Indicates the V2V link transmission rate from TVm to CVn; is the V2V link transmission power, is the channel gain of the V2V link; represents the number of subcarriers allocated to the V2V link from TVm to CVn; b represents the bandwidth of a subchannel; At time slot t, the length of TVm’s V2V task sending queue is The update formula is: in The amount of data TVm sent to CV in time slot t is offloaded to the RSU by the number of tasks: Where, Indicates the number of tasks offloaded from TVm to RSU; min indicates the minimum function; represents the amount of data sent to the RSU in time slot t; At time slot t, the length of the RSU task processing queue is The update formula is: in Indicates the amount of data processed by RSU; Indicates the calculation frequency of RSU allocated to TVm The number of tasks offloaded to CVn is: Among them, the binary variable o m,n =1 means TVm can offload tasks to CVn; Indicates the number of tasks offloaded to CVn; At time slot t, CVn calculates the queue length as The update formula is: in Indicates the amount of data sent to CV n; Indicates the calculation frequency of CV n. 10 . A non-transitory computer-readable storage medium storing instructions, which, when executed by a processor, perform the method according to claim 1 .

Citation Information

Patent Citations

  • A vehicle networking collaborative downloading method based on fuzzy evaluation and customer expectation

    CN108985658A

  • Internet-of-Vehicles resource optimization method based on a non-orthogonal multiple access technology

    CN112601197A