Movatterモバイル変換


[0]ホーム

URL:


CN111314889B - Task unloading and resource allocation method based on mobile edge calculation in Internet of vehicles - Google Patents

Task unloading and resource allocation method based on mobile edge calculation in Internet of vehicles
Download PDF

Info

Publication number
CN111314889B
CN111314889BCN202010118884.6ACN202010118884ACN111314889BCN 111314889 BCN111314889 BCN 111314889BCN 202010118884 ACN202010118884 ACN 202010118884ACN 111314889 BCN111314889 BCN 111314889B
Authority
CN
China
Prior art keywords
node
vehicle
user
task
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010118884.6A
Other languages
Chinese (zh)
Other versions
CN111314889A (en
Inventor
胡斌杰
孙亦婵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by South China University of Technology SCUTfiledCriticalSouth China University of Technology SCUT
Priority to CN202010118884.6ApriorityCriticalpatent/CN111314889B/en
Publication of CN111314889ApublicationCriticalpatent/CN111314889A/en
Application grantedgrantedCritical
Publication of CN111314889BpublicationCriticalpatent/CN111314889B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a task unloading and resource allocation method based on mobile edge calculation in the Internet of vehicles, which comprises the following specific steps: establishing a vehicle networking communication scene comprising vehicle-to-vehicle V2V and vehicle-to-infrastructure V2I communication; clustering vehicle nodes in a scene, and dividing the vehicle nodes into a V2I user cluster and a V2V user cluster; aiming at a V2V user cluster in a scene, dividing, pairing and optimizing a V2V request node and a service node in the V2V user cluster; calculating the total delay of task processing of all nodes in a scene; and establishing an optimization problem model by taking the minimization of the total delay of vehicle task processing in the vehicle networking system as a target and combining constraint conditions, and solving the optimization problem model by using a quantum particle group algorithm to obtain a channel and calculation resource allocation and each vehicle node power allocation strategy of the vehicle networking system. The invention solves the problem of task unloading and resource allocation based on MEC in the car networking environment with lower complexity.

Description

Translated fromChinese
车联网中基于移动边缘计算的任务卸载与资源分配方法Task offloading and resource allocation method based on mobile edge computing in Internet of Vehicles

技术领域Technical Field

本发明涉及车联网移动边缘计算的任务卸载与资源分配问题技术领域,具体涉及一种车联网中基于移动边缘计算的任务卸载与资源分配方法。The present invention relates to the technical field of task offloading and resource allocation problems of mobile edge computing in an Internet of Vehicles, and in particular to a task offloading and resource allocation method based on mobile edge computing in an Internet of Vehicles.

背景技术Background Art

随着移动网络技术的不断发展,人们对车载通信的研究不断深入。利用车联网(V2X)提供的高可靠、低延迟的无线通信服务,可以改善道路安全状况并提升驾驶体验。常见的车联网系统中,包含车-设施(V2I)、车-车(V2V)等信息交换路径。车辆请求任务可分为商娱类和安全类。商娱类请求涉及大量数据交换;安全类请求则对延迟有很高的要求。车载单元计算资源和计算能力有限,多接入边缘计算(MEC)作为一种新的计算范例,在网络边缘处提供计算服务,更接近终端用户,有助于降低设备成本,提高服务质量。通过将任务卸载到其他资源节点上进行处理,实现周围空闲计算资源共享,这样可以充分利用网络中的资源,同时可以降低车辆节点的开销。此外,由于大量设备对计算密集型任务进行迁移卸载,因此迫切需要大量的连接,蜂窝网络中的V2V用户可以通过复用V2I用户的上行信道直接相互通信,而不需要经过基站,提高了整个网络的频谱效率,从而允许网络接纳更多的用户,在一定程度上解决了频谱资源有限的问题。With the continuous development of mobile network technology, people's research on vehicle-to-vehicle communications has continued to deepen. The high-reliability, low-latency wireless communication services provided by the vehicle-to-everything (V2X) can improve road safety and enhance the driving experience. Common vehicle-to-everything systems include vehicle-to-infrastructure (V2I) and vehicle-to-vehicle (V2V) information exchange paths. Vehicle request tasks can be divided into business and entertainment and safety categories. Business and entertainment requests involve a large amount of data exchange; safety requests have high requirements for latency. The computing resources and computing power of the vehicle-mounted unit are limited. Multi-access edge computing (MEC) is a new computing paradigm that provides computing services at the edge of the network, closer to end users, which helps reduce equipment costs and improve service quality. By offloading tasks to other resource nodes for processing, the surrounding idle computing resources can be shared, which can fully utilize the resources in the network and reduce the overhead of vehicle nodes. In addition, since a large number of devices migrate and offload computationally intensive tasks, a large number of connections are urgently needed. V2V users in cellular networks can communicate directly with each other by reusing the uplink channels of V2I users without going through base stations, which improves the spectrum efficiency of the entire network, allowing the network to accommodate more users and, to a certain extent, solves the problem of limited spectrum resources.

对车联网系统进行合理地规划,将任务卸载到其他资源节点上进行处理,并对车联网系统中的频带资源和计算资源进行合理的分配,可以在保证任务服务质量的前提下,使得车联网系统任务处理的总延迟最小。Reasonable planning of the Internet of Vehicles system, offloading tasks to other resource nodes for processing, and reasonable allocation of frequency band resources and computing resources in the Internet of Vehicles system can minimize the total delay of task processing in the Internet of Vehicles system while ensuring the quality of task service.

在现有的技术中,结合MEC的D2D通信增强蜂窝网络的计算能力,通过节点参数计算各种通信模式下传输延迟和计算延迟,然后根据资源限制建立任务卸载和功率分配的联合优化问题,获得最优的资源分配方案。在本发明技术方案的研究过程中至少发现,现有技术的缺点在于没有考虑D2D通信中D2D用户如何建立配对这一关键问题,而是默认D2D配对已确定。In the existing technology, the D2D communication of MEC is combined to enhance the computing power of the cellular network, and the transmission delay and computing delay in various communication modes are calculated through node parameters, and then the joint optimization problem of task offloading and power allocation is established according to resource constraints to obtain the optimal resource allocation solution. In the process of studying the technical solution of the present invention, it is at least found that the disadvantage of the existing technology is that it does not consider the key issue of how D2D users establish pairing in D2D communication, but assumes that the D2D pairing has been determined.

发明内容Summary of the invention

本发明的目的是为了解决现有技术中的上述缺陷,提供一种车联网中基于移动边缘计算的任务卸载与资源分配方法。具体地,根据车辆节点处理自身任务所需要的时间以及车辆节点与基站通信的信道容量,利用高斯聚类对场景中的车辆节点进行聚类;针对V2V用户,利用二分图法进行V2V请求用户与服务用户的配对;并在此基础上,建立优化问题对用户发送功率以及频谱、计算资源进行联合优化分配,从而使系统总延迟最小。The purpose of the present invention is to solve the above defects in the prior art and provide a method for task offloading and resource allocation based on mobile edge computing in the Internet of Vehicles. Specifically, according to the time required for the vehicle node to process its own task and the channel capacity for the vehicle node to communicate with the base station, Gaussian clustering is used to cluster the vehicle nodes in the scene; for V2V users, the bipartite graph method is used to pair the V2V requesting user with the service user; and on this basis, an optimization problem is established to jointly optimize the allocation of user transmission power, spectrum, and computing resources, so as to minimize the total delay of the system.

本发明的目的可以通过采取如下技术方案达到:The purpose of the present invention can be achieved by adopting the following technical solutions:

一种车联网中基于移动边缘计算的任务卸载与资源分配方法,所述的任务卸载与资源分配方法包括以下步骤:A method for task offloading and resource allocation based on mobile edge computing in an Internet of Vehicles, the method comprising the following steps:

S1、构建一个部署有基站、边缘计算服务器和车辆的车联网系统应用场景,车辆具备V2V和V2I通信能力,其中,V2V表示车辆对车辆,V2I表示车辆到基础设施,请求节点可以通过卸载将任务卸载到附近的服务节点进行处理,其中部分车辆和边缘计算服务器配备有限的信道和计算资源,可以为其他车辆提供计算服务,称为服务节点,提出任务计算请求的车辆,称为请求节点;S1. Build an application scenario of an Internet of Vehicles system with base stations, edge computing servers and vehicles. The vehicles have V2V and V2I communication capabilities, where V2V means vehicle-to-vehicle and V2I means vehicle-to-infrastructure. The requesting node can offload the task to a nearby service node for processing. Some vehicles and edge computing servers are equipped with limited channels and computing resources and can provide computing services to other vehicles, which are called service nodes. The vehicle that makes a task computing request is called a requesting node.

S2、根据车联网系统应用场景中车辆节点处理自身任务所需要的时间以及车辆节点与基站通信的信道容量,对车联网系统应用场景中的车辆节点运用高斯混合模型进行聚类,将车辆节点划分为V2V用户簇和V2I用户簇;S2. Based on the time required for vehicle nodes to process their own tasks in the application scenario of the Internet of Vehicles system and the channel capacity for communication between the vehicle nodes and the base station, the vehicle nodes in the application scenario of the Internet of Vehicles system are clustered using a Gaussian mixture model, and the vehicle nodes are divided into V2V user clusters and V2I user clusters;

S3、针对场景中的V2V用户簇,对其中的V2V请求节点与服务节点进行划分、配对并优化;S3: for the V2V user clusters in the scene, the V2V request nodes and service nodes therein are divided, paired and optimized;

S4、针对完成配对的V2V对以及V2I节点,计算整个车联网系统任务处理的总延迟DtotalS4. Calculate the total delay Dtotal of the entire Internet of Vehicles system task processing for the paired V2V pairs and V2I nodes;

S5、以最小化车联网系统任务处理总延迟Dtotal为目标,结合约束条件,建立最优化问题模型,采用量子粒子群(QPSO)算法进行求解,得到车联网系统频带、计算资源分配以及各个车辆节点功率分配的最优解,以保证车联网系统任务处理总延迟最小。S5. With the goal of minimizing the total delay Dtotal of task processing in the Internet of Vehicles system, combined with constraints, an optimization problem model is established, and the quantum particle swarm optimization (QPSO) algorithm is used to solve it. The optimal solution for the frequency band of the Internet of Vehicles system, computing resource allocation, and power allocation of each vehicle node is obtained to ensure that the total delay of task processing in the Internet of Vehicles system is minimized.

进一步地,所述的步骤S2包括:Furthermore, the step S2 comprises:

S2.1、根据车联网系统应用场景中车辆节点与基站通信的信道容量,对车辆节点的延迟与容量进行量化,过程如下:S2.1. According to the channel capacity of the communication between the vehicle node and the base station in the application scenario of the Internet of Vehicles system, the delay and capacity of the vehicle node are quantified. The process is as follows:

计算车辆节点处理自身任务所需要的时间组成一个集合T={tm|m∈M},M表示车辆节点的集合,第m个车辆节点的任务数据量用Vm表示,单位任务计算量用Cm表示,自身计算能力用fm表示,那么第m个车辆节点处理自身任务所需要的时间tm,表达式为:The time required for the vehicle node to process its own task is calculated to form a set T = {tm | m∈M}, where M represents the set of vehicle nodes, the task data volume of the mth vehicle node is represented by Vm , the unit task calculation volume is represented by Cm , and the own computing power is represented by fm . Then the time tm required for the mth vehicle node to process its own task is expressed as:

Figure BDA0002392325920000031
Figure BDA0002392325920000031

计算车辆节点与基站通信的信道容量组成一个集合Γ={ηm|m∈M},第m个车辆节点与基站通信的信道容量ηm,表达式为:The channel capacity between the vehicle node and the base station is calculated to form a set Γ={ηm |m∈M}. The channel capacity ηm between the mth vehicle node and the base station is expressed as:

Figure BDA0002392325920000032
Figure BDA0002392325920000032

其中,

Figure BDA0002392325920000033
是第m个车辆节点与基站通信时的信干噪比,其表达式为:in,
Figure BDA0002392325920000033
is the signal-to-interference-noise ratio when the mth vehicle node communicates with the base station, and its expression is:

Figure BDA0002392325920000034
Figure BDA0002392325920000034

上式中,

Figure BDA0002392325920000035
为第m个车辆节点的发送功率;LP(d)是第m个车辆节点与基站之间信道的路径损耗,LP(d)单位为dB,与第m个车辆节点与基站之间的距离d有关,
Figure BDA0002392325920000036
表示噪声的平均功率;In the above formula,
Figure BDA0002392325920000035
is the transmission power of the mth vehicle node; LP(d) is the path loss of the channel between the mth vehicle node and the base station. The unit of LP(d) is dB and is related to the distance d between the mth vehicle node and the base station.
Figure BDA0002392325920000036
represents the average power of the noise;

S2.2、对车联网系统应用场景中的车辆节点运用高斯混合模型进行聚类,将车辆节点划分为V2I用户簇和V2V用户簇。S2.2. The Gaussian mixture model is used to cluster the vehicle nodes in the application scenario of the Internet of Vehicles system, and the vehicle nodes are divided into V2I user clusters and V2V user clusters.

进一步地,所述的步骤S2.2包括:Furthermore, the step S2.2 comprises:

S2.2.1、根据步骤S2.1中的计算结果,建立一个新的M×2的矩阵B,矩阵B的第一列元素由M辆车处理自身任务所需时间集合T组成,矩阵B的第二列元素由M辆车与基站通信的信道容量集合Γ组成,新建一个由矩阵B的行向量为元素的集合X;S2.2.1. According to the calculation results in step S2.1, a new M×2 matrix B is established, wherein the first column of the matrix B is composed of the time set T required for the M vehicles to process their own tasks, and the second column of the matrix B is composed of the channel capacity set Γ for the M vehicles to communicate with the base station. A new set X is established, wherein the elements are the row vectors of the matrix B.

S2.2.2、将集合X中所有数据元素看做两个模型的高斯混合分布:S2.2.2. Consider all data elements in set X as Gaussian mixture distributions of two models:

Figure BDA0002392325920000041
Figure BDA0002392325920000041

其中,

Figure BDA0002392325920000042
表示第k个高斯分布的概率密度,
Figure BDA0002392325920000043
xm表示集合X中的第m个元素,待求解参数为:两个高斯函数的均值和方差
Figure BDA0002392325920000044
以及π1,π2;in,
Figure BDA0002392325920000042
represents the probability density of the kth Gaussian distribution,
Figure BDA0002392325920000043
xm represents the mth element in the set X. The parameters to be solved are: the mean and variance of the two Gaussian functions
Figure BDA0002392325920000044
and π12 ;

S2.2.3、采用最大期望算法(Expectation-Maximization algorithm,EM算法)求解参数值:定义分量数目k=2,对每个分量k设置参数πk

Figure BDA0002392325920000045
k的初始值,对集合X中的数据元素求均值和协方差得到
Figure BDA0002392325920000046
和∑的初始值;S2.2.3. Use the Expectation-Maximization algorithm (EM algorithm) to solve the parameter value: define the number of components k = 2, set the parameter πk for each component k,
Figure BDA0002392325920000045
k is the initial value, and the mean and covariance of the data elements in the set X are obtained
Figure BDA0002392325920000046
and the initial values of ∑;

S2.2.4、根据当前的参数值,计算第k个混合的后验概率:S2.2.4. Calculate the posterior probability of the kth mixture based on the current parameter values:

Figure BDA0002392325920000047
Figure BDA0002392325920000047

上式中,t表示当前迭代次数;In the above formula, t represents the current number of iterations;

S2.2.5、使用步骤S2.2.4中的值最大化似然函数:S2.2.5. Maximize the likelihood function using the value in step S2.2.4:

根据第k个混合的后验概率p(zmk),求新一轮迭代的模型参数

Figure BDA0002392325920000048
According to the posterior probability p(zmk ) of the kth mixture, find the model parameters for the new round of iteration
Figure BDA0002392325920000048

Figure BDA0002392325920000051
Figure BDA0002392325920000051

Figure BDA0002392325920000052
Figure BDA0002392325920000052

Figure BDA0002392325920000053
Figure BDA0002392325920000053

得到高斯混合模型的对数似然函数为:The log-likelihood function of the Gaussian mixture model is obtained as:

Figure BDA0002392325920000054
Figure BDA0002392325920000054

S2.2.6、判断似然函数是否收敛:若收敛,则输出参数

Figure BDA0002392325920000055
以及π1、π2;若不收敛,则返回步骤S2.2.3继续执行直至满足收敛条件;S2.2.6. Determine whether the likelihood function converges: If it converges, output the parameter
Figure BDA0002392325920000055
and π1 , π2 ; if not converged, return to step S2.2.3 and continue to execute until the convergence condition is met;

S2.2.7、利用基于最小错误概率的贝叶斯判别准则,获得每个节点所属类别,根据贝叶斯公式,第m个节点关于第k个高斯混合分布模型的后验概率公式为:S2.2.7. Using the Bayesian discriminant criterion based on the minimum error probability, the category to which each node belongs is obtained. According to the Bayesian formula, the posterior probability formula of the mth node with respect to the kth Gaussian mixture distribution model is:

Figure BDA0002392325920000056
Figure BDA0002392325920000056

其中,所述的基基于最小错误率的贝叶斯判别准则如下:The Bayesian discriminant criterion based on the minimum error rate is as follows:

a)若p(μ1,∑1|xm)>p(μ2,∑2|xm),则判定节点xm应选择第一种卸载方案;a) If p(μ1 ,∑1 |xm )>p(μ2 ,∑2 |xm ), then node xm should choose the first offloading scheme;

b)若p(μ1,∑1|xm)≤p(μ2,∑2|xm),则判定节点xm应选择第二种卸载方案。b) If p(μ1 ,∑1 |xm )≤p(μ2 ,∑2 |xm ), then node xm should choose the second offloading scheme.

进一步地,所述的步骤S3过程如下:Furthermore, the process of step S3 is as follows:

对步骤S2中聚类得到的V2V用户建立一个集合,记作

Figure BDA0002392325920000057
Figure BDA0002392325920000058
记集合中共有
Figure BDA0002392325920000059
个元素;用户y的任务数据量用Vy表示,单位任务计算量用Cy表示,自身计算能力用fy表示。对V2V用户自身的计算能力进行排序,用车辆节点计算自身任务所需要的时间
Figure BDA00023923259200000510
作为对车辆自身计算能力的衡量,选择ty值最大的
Figure BDA0002392325920000061
个节点划入V2V请求节点集J,集合中余下的
Figure BDA0002392325920000062
个节点划入V2V服务节点集K;建立成一个带权二分图,
Figure BDA0002392325920000063
个V2V请求节点作为二分图的一个顶点集,
Figure BDA0002392325920000064
个V2V服务节点作为二分图的另一个顶点集,两个顶点集之间的边的权重代表V2V请求节点与服务节点之间建立连接所获得的收益,该边的权重与V2V请求节点的任务数据量Vj、V2V服务节点的计算能力fk以及通信节点间的链路质量有关,链路质量考虑节点之间距离djk的影响,因此定义ξjk表示带权二分图中边的权重:A set of V2V users clustered in step S2 is established, denoted as
Figure BDA0002392325920000057
Figure BDA0002392325920000058
There are a total of
Figure BDA0002392325920000059
elements; the task data volume of user y is represented by Vy , the unit task calculation volume is represented byCy , and the computing power itself is represented by fy . The computing power of V2V users is sorted, and the time required for calculating their own tasks is calculated by vehicle nodes.
Figure BDA00023923259200000510
As a measure of the vehicle's own computing power, select the vehicle with the largest ty value.
Figure BDA0002392325920000061
nodes are included in the V2V request node set J, and the remaining
Figure BDA0002392325920000062
nodes are included in the V2V service node set K; a weighted bipartite graph is established.
Figure BDA0002392325920000063
V2V request nodes are regarded as a vertex set of a bipartite graph.
Figure BDA0002392325920000064
The V2V service nodes are used as another vertex set of the bipartite graph. The weight of the edge between the two vertex sets represents the benefit obtained by establishing a connection between the V2V request node and the service node. The weight of the edge is related to the task data volumeVj of the V2V request node, the computing powerfk of the V2V service node, and the link quality between the communication nodes. The link quality considers the influence of the distancedjk between the nodes. Therefore,ξjk is defined to represent the weight of the edge in the weighted bipartite graph:

Figure BDA0002392325920000065
Figure BDA0002392325920000065

利用Kuhn-Munkres算法求解带权二分图的最大匹配方案作为V2V通信车辆节点与服务节点的配对方案,记作μ={μjk},j∈J,k∈K。The Kuhn-Munkres algorithm is used to solve the maximum matching scheme of the weighted bipartite graph as the pairing scheme of the V2V communication vehicle node and the service node, denoted as μ={μjk }, j∈J, k∈K.

进一步地,所述的步骤S4中,定义V2I请求节点集合为I={1,…,i,..,I},V2V请求用户集合为J={1,…,j,…,J},V2V服务用户集合为K={1,…,k,…,K},假设基站可以获得所有的信道状态信息,该步骤包括:Furthermore, in step S4, the V2I requesting node set is defined as I = {1, ..., i, ..., I}, the V2V requesting user set is defined as J = {1, ..., j, ..., J}, and the V2V service user set is defined as K = {1, ..., k, ..., K}. Assuming that the base station can obtain all channel state information, this step includes:

S4.1、计算V2I节点与基站通信的信干噪比

Figure BDA0002392325920000066
S4.1. Calculate the signal-to-interference-to-noise ratio of the communication between the V2I node and the base station
Figure BDA0002392325920000066

Figure BDA0002392325920000067
Figure BDA0002392325920000067

其中,βij∈{0,1},βij=1表示V2V请求节点j复用V2I节点i的上行信道,βij=0表示V2V请求节点j没有复用V2I节点i的上行信道,每个V2V请求节点至多复用一个信道,即

Figure BDA0002392325920000068
pi和pj分别表示V2I请求节点i和V2V请求节点j的发送功率,满足车辆节点的功率峰值限制,即pi,pj<pmax
Figure BDA0002392325920000069
表示V2I请求节点i在子信道n上的信道增益,∑j∈Jβijpj|hj|2表示V2V通信用户对V2I用户i的干扰,其中|hj|表示V2V用户j通信时在子信道上的信道增益,N0W是加性高斯白噪声的功率,W是子信道的带宽;Among them, βij ∈{0,1}, βij =1 means that the V2V request node j reuses the uplink channel of the V2I node i, and βij =0 means that the V2V request node j does not reuse the uplink channel of the V2I node i. Each V2V request node reuses at most one channel, that is,
Figure BDA0002392325920000068
pi and pj represent the transmission power of V2I request node i and V2V request node j, respectively, satisfying the peak power limit of vehicle nodes, that is, pi , pj < pmax ,
Figure BDA0002392325920000069
represents the channel gain of V2I requesting node i on subchannel n, ∑j∈J βij pj |hj |2 represents the interference of V2V communication user to V2I user i, where |hj | represents the channel gain of V2V user j on the subchannel when communicating, N0 W is the power of additive white Gaussian noise, and W is the bandwidth of the subchannel;

S4.2、计算V2V请求用户j与服务用户K通信时的信干噪比

Figure BDA0002392325920000071
S4.2. Calculate the signal-to-interference-noise ratio when the V2V requesting user j communicates with the serving user K
Figure BDA0002392325920000071

Figure BDA0002392325920000072
Figure BDA0002392325920000072

其中,

Figure BDA0002392325920000073
表示V2V通信时,V2I用户对V2V接收端用户的干扰,∑j′∈J,j′≠jβij′pj′|hj′|2表示V2V通信时,其他V2V用户对V2V接收端用户的干扰;in,
Figure BDA0002392325920000073
represents the interference of V2I users to V2V receiving users during V2V communication, ∑j′∈J,j′≠j βij′ pj′ |hj′ |2 represents the interference of other V2V users to V2V receiving users during V2V communication;

S4.3、计算整个车联网系统任务处理的总延迟Dtotal,由V2I用户的卸载延迟和V2V用户的处理延迟组成,计算公式如下:S4.3. Calculate the total delay Dtotal of the entire vehicle networking system task processing, which is composed of the unloading delay of the V2I user and the processing delay of the V2V user. The calculation formula is as follows:

Figure BDA0002392325920000074
Figure BDA0002392325920000074

上式中,

Figure BDA0002392325920000075
表示所有V2I用户的任务处理总延迟,包括传输延迟和计算延迟,其中Vi表示V2I用户i的任务数据量,Ci表示计算1bit数据所需要的CPU周期数,fie表示边缘服务器分配给每个V2I用户的计算资源;
Figure BDA0002392325920000076
表示所有V2V配对用户的任务处理总延迟,包括V2V请求用户的传输延迟以及V2V服务用户对自身任务和请求任务进行计算的延迟;
Figure BDA0002392325920000077
表示未能成功配对的V2V用户进行本地任务计算的延迟,其中,Vj表示V2V请求用户j的任务数据量,Cj、Ck分别表示计算1bit来自V2V请求用户和服务用户的任务所需要的CPU周期数,fj、fk分别表示V2V请求用户和服务用户的计算能力,μjk表示V2V配对策略。In the above formula,
Figure BDA0002392325920000075
represents the total task processing delay of all V2I users, including transmission delay and calculation delay, whereVi represents the task data volume of V2I user i,Ci represents the number of CPU cycles required to calculate 1 bit of data,andfie represents the computing resources allocated to each V2I user by the edge server;
Figure BDA0002392325920000076
It represents the total task processing delay of all V2V paired users, including the transmission delay of the V2V requesting user and the delay of the V2V service user to calculate its own task and the requested task;
Figure BDA0002392325920000077
represents the delay of the V2V user who failed to pair successfully to perform local task calculation, whereVj represents the task data volume of V2V requesting user j,Cj andCk represent the number of CPU cycles required to calculate 1 bit of task from V2V requesting user and serving user respectively,fj andfk represent the computing power of V2V requesting user and serving user respectively, andμjk represents the V2V pairing strategy.

进一步地,所述的步骤S5中,以最小化车联网系统任务处理的总延迟Dtotal为目标,建立最优化问题模型如下:Furthermore, in step S5, with the goal of minimizing the total delay Dtotal of the task processing of the Internet of Vehicles system, an optimization problem model is established as follows:

Figure BDA0002392325920000081
Figure BDA0002392325920000081

C1:βij∈{0,1},

Figure BDA0002392325920000082
C1:βij ∈{0,1},
Figure BDA0002392325920000082

C2:

Figure BDA0002392325920000083
C2:
Figure BDA0002392325920000083

C3:

Figure BDA0002392325920000084
C3:
Figure BDA0002392325920000084

C4:

Figure BDA0002392325920000085
C4:
Figure BDA0002392325920000085

C5:γic≥γith

Figure BDA0002392325920000086
C5:γic ≥γith ,
Figure BDA0002392325920000086

C6:

Figure BDA0002392325920000087
C6:
Figure BDA0002392325920000087

上述约束条件中,C1表示βij,μjk的取值只能为0或1,

Figure BDA0002392325920000088
指示子信道的复用情况,μjk表示V2V请求节点与服务节点的配对情况,C2表示每个V2V请求节点至多复用一个信道,C3表示每个V2I节点和V2V配对用户发送节点的功率限制,C4表示边缘服务器分配给所有V2I车辆的计算资源总和应小于边缘服务器的总计算资源,C5表示每个V2I节点与基站进行通信的信干噪比应大于门限值γith,C6表示每个V2V用户进行通信的信干噪比应大于门限值
Figure BDA0002392325920000089
In the above constraints, C1 represents βij , and the value of μjk can only be 0 or 1.
Figure BDA0002392325920000088
indicates the multiplexing of subchannels, μjk indicates the pairing of V2V requesting nodes and service nodes, C2 indicates that each V2V requesting node can reuse at most one channel, C3 indicates the power limit of each V2I node and V2V paired user sending node, C4 indicates that the sum of computing resources allocated by the edge server to all V2I vehicles should be less than the total computing resources of the edge server, C5 indicates that the signal-to-noise ratio of each V2I node communicating with the base station should be greater than the threshold value γith , and C6 indicates that the signal-to-noise ratio of each V2V user communicating should be greater than the threshold value
Figure BDA0002392325920000089

本发明相对于现有技术具有如下的优点及效果:Compared with the prior art, the present invention has the following advantages and effects:

1)本发明公开的一种车联网中基于移动边缘计算的任务卸载与资源分配方法中,V2V用户复用V2I用户的上行信道,提高了车联网系统的频谱利用率;1) In a method for task offloading and resource allocation based on mobile edge computing in a vehicle networking system disclosed by the present invention, a V2V user reuses the uplink channel of a V2I user, thereby improving the spectrum utilization rate of the vehicle networking system;

2)本发明公开的一种车联网中基于移动边缘计算的任务卸载与资源分配方法,考虑了V2V通信中V2V用户如何建立配对这一关键问题;2) The present invention discloses a method for task offloading and resource allocation based on mobile edge computing in a connected vehicle network, which takes into account the key issue of how V2V users establish pairing in V2V communication;

3)本发明公开的一种车联网中基于移动边缘计算的任务卸载与资源分配方法,将任务卸载与资源分配方法分为三步进行,即聚类、配对和求解,在较低的计算难度和复杂度下获得了车联网系统的次优解。3) The present invention discloses a method for task offloading and resource allocation based on mobile edge computing in the Internet of Vehicles. The method is divided into three steps, namely clustering, pairing and solving, and a suboptimal solution for the Internet of Vehicles system is obtained with lower computational difficulty and complexity.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明实施例中公开的车联网任务卸载与资源分配方法流程图;FIG1 is a flow chart of a method for task offloading and resource allocation for Internet of Vehicles disclosed in an embodiment of the present invention;

图2是本发明实施例中公开的场景示意图;FIG2 is a schematic diagram of a scenario disclosed in an embodiment of the present invention;

图3是本发明实施例中对V2V通信车辆节点与服务节点进行配对方法流程图。FIG3 is a flow chart of a method for pairing a V2V communication vehicle node with a service node in an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

实施例Example

如图1所示,本发明的基本实施例公开了一种车联网中基于移动边缘计算的任务卸载与资源分配方法,本发明将基于移动边缘计算的车联网系统中的任务卸载与资源分配方法分为聚类、配对和求解三个主要步骤。其中利用配对和聚类两个步骤,通过综合考虑基于移动边缘计算的车联网系统中各车辆自身的任务数据量、计算能力以及车-基础设施(V2I)和车-车(V2V)的距离等因素,确定了使得卸载总延迟最小的各车辆任务卸载方式。具体步骤如下:As shown in Figure 1, the basic embodiment of the present invention discloses a method for task offloading and resource allocation based on mobile edge computing in an Internet of Vehicles system. The present invention divides the method for task offloading and resource allocation in an Internet of Vehicles system based on mobile edge computing into three main steps: clustering, pairing, and solving. Among them, by using the two steps of pairing and clustering, by comprehensively considering factors such as the amount of task data of each vehicle itself in the Internet of Vehicles system based on mobile edge computing, computing power, and the distance between vehicle-to-infrastructure (V2I) and vehicle-to-vehicle (V2V), the task offloading method for each vehicle is determined to minimize the total unloading delay. The specific steps are as follows:

S1、构建一个部署有基站、边缘计算服务器和车辆的车联网系统应用场景,车辆具备V2V和V2I通信能力,其中,V2V表示车辆对车辆,V2I表示车辆到基础设施,请求节点可以通过卸载将任务卸载到附近的服务节点进行处理,其中部分车辆和边缘计算服务器配备有限的信道和计算资源,可以为其他车辆提供计算服务,称为服务节点,提出任务计算请求的车辆,称为请求节点;S1. Build an application scenario of an Internet of Vehicles system with base stations, edge computing servers and vehicles. The vehicles have V2V and V2I communication capabilities, where V2V means vehicle-to-vehicle and V2I means vehicle-to-infrastructure. The requesting node can offload the task to a nearby service node for processing. Some vehicles and edge computing servers are equipped with limited channels and computing resources and can provide computing services to other vehicles, which are called service nodes. The vehicle that makes a task computing request is called a requesting node.

考虑一个有基站和车辆节点的V2X网络场景,MEC服务器部署于基站侧,车联网系统模型如图2所示。场景中有1个基站和密集部署的M个车辆节点,每个车辆节点带有一个计算任务,第m个节点的计算任务的属性用Vm,Cm,Tm表示,其中Vm(单位为:bits)表示计算任务的大小,Cm(单位为:cycles/bit)表示计算1bit数据所需要的CPU周期数,Tm表示第m个车辆节点的计算任务的最大处理时延。所有车辆配备有单个天线,因此车辆可以选择通过V2I通信将计算任务卸载到MEC服务器,或者通过V2V通信将计算任务卸载到空闲车辆。所以,场景中的车辆节点被分成三类:其中将计算任务卸载到MEC服务器的节点是V2I请求节点;将计算任务卸载到其他车辆节点的是V2V请求节点;接受来自其他节点的计算任务并处理的是空闲V2V服务节点。Consider a V2X network scenario with a base station and vehicle nodes. The MEC server is deployed on the base station side. The vehicle network system model is shown in Figure 2. There is one base station and M densely deployed vehicle nodes in the scenario. Each vehicle node has a computing task. The properties of the computing task of the mth node are represented byVm ,Cm , andTm , whereVm (in units of bits) represents the size of the computing task,Cm (in units of cycles/bit) represents the number of CPU cycles required to calculate 1 bit of data, andTm represents the maximum processing delay of the computing task of the mth vehicle node. All vehicles are equipped with a single antenna, so the vehicle can choose to offload the computing task to the MEC server through V2I communication, or to offload the computing task to an idle vehicle through V2V communication. Therefore, the vehicle nodes in the scenario are divided into three categories: the node that offloads the computing task to the MEC server is the V2I request node; the node that offloads the computing task to other vehicle nodes is the V2V request node; and the node that accepts and processes the computing tasks from other nodes is the idle V2V service node.

S2、根据车联网系统应用场景中车辆节点处理自身任务所需要的时间以及车辆节点与基站通信的信道容量,对车联网系统应用场景中的车辆节点运用高斯混合模型进行聚类,将车辆节点划分为V2V用户簇和V2I用户簇,具体步骤如下:S2. Based on the time required for vehicle nodes to process their own tasks in the application scenario of the Internet of Vehicles system and the channel capacity for communication between the vehicle nodes and the base station, the vehicle nodes in the application scenario of the Internet of Vehicles system are clustered using a Gaussian mixture model, and the vehicle nodes are divided into V2V user clusters and V2I user clusters. The specific steps are as follows:

S2.1、根据场景中车辆节点与基站通信的信道容量,对车辆节点的延迟与容量进行量化。S2.1. According to the channel capacity of the vehicle node and the base station in the scenario, the delay and capacity of the vehicle node are quantified.

计算车辆节点处理自身任务所需要的时间组成一个集合T={tm|m∈M},M表示车辆节点的集合。假设第m个车辆节点自身的计算能力为fm(单位为:cycle/s),那么第m个车辆节点处理自身任务所需要的时间tm,表达式为:The time required for the vehicle node to process its own task is calculated to form a set T = {tm | m∈M}, where M represents the set of vehicle nodes. Assuming that the computing power of the mth vehicle node itself is fm (unit: cycle/s), then the time tm required for the mth vehicle node to process its own task is expressed as:

Figure BDA0002392325920000111
Figure BDA0002392325920000111

计算车辆节点与基站通信的信道容量组成一个集合Γ={ηm|m∈M}。第m个车辆节点与基站通信的信道容量ηm,表达式为:The channel capacity between the vehicle node and the base station is calculated to form a set Γ={ηm |m∈M}. The channel capacity ηm between the mth vehicle node and the base station is expressed as:

Figure BDA0002392325920000112
Figure BDA0002392325920000112

其中,

Figure BDA0002392325920000113
是第m个车辆节点与基站通信时的信干噪比,其表达式为:in,
Figure BDA0002392325920000113
is the signal-to-interference-noise ratio when the mth vehicle node communicates with the base station, and its expression is:

Figure BDA0002392325920000114
Figure BDA0002392325920000114

上式中,

Figure BDA0002392325920000115
为第m个车辆节点的发送功率;LP(d)(单位为:dB)是第m个车辆节点与基站之间信道的路径损耗,与第m个车辆节点与基站之间的距离d有关;
Figure BDA0002392325920000116
表示噪声的平均功率。In the above formula,
Figure BDA0002392325920000115
is the transmission power of the mth vehicle node; LP(d) (unit: dB) is the path loss of the channel between the mth vehicle node and the base station, which is related to the distance d between the mth vehicle node and the base station;
Figure BDA0002392325920000116
Represents the average power of the noise.

S2.2、对车联网系统应用场景中的车辆节点运用高斯混合模型进行聚类,将车辆节点划分为V2I用户簇和V2V用户簇。具体步骤如下:S2.2. Use the Gaussian mixture model to cluster the vehicle nodes in the application scenario of the Internet of Vehicles system and divide the vehicle nodes into V2I user clusters and V2V user clusters. The specific steps are as follows:

S2.2.1、根据步骤S2.1中的计算结果,建立一个新的M×2的矩阵B,矩阵B的第一列元素由M辆车处理自身任务所需时间集合T组成,矩阵B的第二列元素由M辆车与基站通信的信道容量集合Γ组成,新建一个由矩阵B的行向量为元素的集合X;S2.2.1. According to the calculation results in step S2.1, a new M×2 matrix B is established, wherein the first column of the matrix B is composed of the time set T required for the M vehicles to process their own tasks, and the second column of the matrix B is composed of the channel capacity set Γ for the M vehicles to communicate with the base station. A new set X is established, wherein the elements are the row vectors of the matrix B.

S2.2.2、将集合X中所有数据元素看做两个模型的高斯混合分布:S2.2.2. Consider all data elements in set X as Gaussian mixture distributions of two models:

Figure BDA0002392325920000117
Figure BDA0002392325920000117

其中,

Figure BDA0002392325920000118
Figure BDA0002392325920000119
xm表示集合X中的第m个元素。待求解参数为:两个高斯函数的均值和方差
Figure BDA00023923259200001110
以及π1,π2;in,
Figure BDA0002392325920000118
Figure BDA0002392325920000119
xm represents the mth element in the set X. The parameters to be solved are: the mean and variance of the two Gaussian functions
Figure BDA00023923259200001110
and π12 ;

S2.2.3、采用最大期望算法(Expectation-Maximization algorithm,EM算法)求解参数值:定义分量数目k=2,对每个分量k设置参数πk

Figure BDA0002392325920000121
k的初始值,对集合X中的数据元素求均值和协方差得到
Figure BDA0002392325920000122
和∑的初始值;S2.2.3. Use the Expectation-Maximization algorithm (EM algorithm) to solve the parameter value: define the number of components k = 2, set the parameter πk for each component k,
Figure BDA0002392325920000121
k is the initial value, and the mean and covariance of the data elements in the set X are obtained
Figure BDA0002392325920000122
and the initial values of ∑;

S2.2.4、根据当前的参数值,计算第k个混合的后验概率:S2.2.4. Calculate the posterior probability of the kth mixture based on the current parameter values:

Figure BDA0002392325920000123
Figure BDA0002392325920000123

上式中,t表示当前迭代次数;In the above formula, t represents the current number of iterations;

S2.2.5、使用步骤S2.2.4中的值最大化似然函数:S2.2.5. Maximize the likelihood function using the value in step S2.2.4:

根据第k个混合的后验概率p(zmk),求新一轮迭代的模型参数

Figure BDA0002392325920000124
According to the posterior probability p(zmk ) of the kth mixture, find the model parameters for the new round of iteration
Figure BDA0002392325920000124

Figure BDA0002392325920000125
Figure BDA0002392325920000125

Figure BDA0002392325920000126
Figure BDA0002392325920000126

Figure BDA0002392325920000127
Figure BDA0002392325920000127

得到高斯混合模型的对数似然函数为:The log-likelihood function of the Gaussian mixture model is obtained as:

Figure BDA0002392325920000128
Figure BDA0002392325920000128

S2.2.6、判断似然函数是否收敛:若收敛,则输出参数

Figure BDA0002392325920000129
Figure BDA00023923259200001210
以及π1、π2;若不收敛,则返回步骤S2.2.3继续执行直至满足收敛条件;S2.2.6. Determine whether the likelihood function converges: If it converges, output the parameter
Figure BDA0002392325920000129
Figure BDA00023923259200001210
and π1 , π2 ; if not converged, return to step S2.2.3 and continue to execute until the convergence condition is met;

S2.2.7、利用基于最小错误概率的贝叶斯判别准则,获得每个节点所属类别。根据贝叶斯公式,后验概率公式为:S2.2.7. Use the Bayesian discriminant criterion based on the minimum error probability to obtain the category to which each node belongs. According to the Bayesian formula, the posterior probability formula is:

Figure BDA00023923259200001211
Figure BDA00023923259200001211

其中,所述的基基于最小错误率的贝叶斯判别准则如下:The Bayesian discriminant criterion based on the minimum error rate is as follows:

a)若p(μ1,∑1|xm)>p(μ2,∑2|xm),则判定节点xm应选择第一种卸载方案;a) If p(μ1 ,∑1 |xm )>p(μ2 ,∑2 |xm ), then node xm should choose the first unloading scheme;

b)若p(μ1,∑1|xm)≤p(μ2,∑2|xm),则判定节点xm应选择第二种卸载方案。b) If p(μ1 ,∑1 |xm )≤p(μ2 ,∑2 |xm ), then node xm should choose the second offloading scheme.

S3、针对场景中的V2V用户簇,对其中的V2V请求节点与服务节点进行划分、配对并优化;S3: for the V2V user clusters in the scene, the V2V request nodes and service nodes therein are divided, paired and optimized;

如图3所示,具体步骤如下:As shown in Figure 3, the specific steps are as follows:

对步骤S2中聚类得到的V2V用户建立一个集合,记作

Figure BDA0002392325920000131
Figure BDA0002392325920000132
即集合中共有
Figure BDA0002392325920000133
个元素;对V2V用户自身的计算能力进行排序,用车辆节点计算自身任务所需要的时间
Figure BDA0002392325920000134
作为对车辆自身计算能力的衡量,选择ty值最大的
Figure BDA0002392325920000135
个节点划入V2V请求节点集J,集合中余下的
Figure BDA0002392325920000136
个节点划入V2V服务节点集K;建立成一个带权二分图,
Figure BDA0002392325920000137
个V2V请求节点作为二分图的一个顶点集,
Figure BDA0002392325920000138
个V2V服务节点作为二分图的另一个顶点集,两个顶点集之间的边的权重代表V2V请求节点与服务节点之间建立连接所获得的收益,该边的权重与V2V请求节点的任务数据量Vj、V2V服务节点的计算能力fk以及通信节点间的链路质量有关,链路质量主要考虑节点之间距离djk的影响,因此定义ξjk来表示带权二分图中边的权重:A set of V2V users clustered in step S2 is established, denoted as
Figure BDA0002392325920000131
Figure BDA0002392325920000132
That is, there are
Figure BDA0002392325920000133
elements; sort the computing power of V2V users themselves, and use vehicle nodes to calculate the time required for their own tasks
Figure BDA0002392325920000134
As a measure of the vehicle's own computing power, select the vehicle with the largest ty value.
Figure BDA0002392325920000135
nodes are included in the V2V request node set J, and the remaining
Figure BDA0002392325920000136
nodes are included in the V2V service node set K; a weighted bipartite graph is established.
Figure BDA0002392325920000137
V2V request nodes are regarded as a vertex set of a bipartite graph.
Figure BDA0002392325920000138
The V2V service nodes are used as another vertex set of the bipartite graph. The weight of the edge between the two vertex sets represents the benefit obtained by establishing a connection between the V2V request node and the service node. The weight of the edge is related to the task data volumeVj of the V2V request node, the computing powerfk of the V2V service node, and the link quality between the communication nodes. The link quality mainly considers the influence of the distancedjk between the nodes. Therefore,ξjk is defined to represent the weight of the edge in the weighted bipartite graph:

Figure BDA0002392325920000139
Figure BDA0002392325920000139

利用二分图最大权匹配算法——KM算法(Kuhn-Munkres Algorithm)求解带权二分图的最大匹配方案作为V2V通信车辆节点与服务节点的配对方案,记作μ={μjk},j∈J,k∈K。The Kuhn-Munkres Algorithm (KM Algorithm), a maximum weighted matching algorithm for bipartite graphs, is used to solve the maximum matching scheme of the weighted bipartite graph as the pairing scheme of the V2V communication vehicle nodes and service nodes, denoted as μ={μjk }, j∈J, k∈K.

S4、针对完成配对的V2V对以及V2I节点,计算整个车联网系统任务处理的总延迟DtotalS4. For the paired V2V pairs and V2I nodes, calculate the total delay Dtotal of the entire Internet of Vehicles system task processing.

V2I请求节点集合为I={1,…,i,..,I};V2V请求用户集合为J={1,…,j,…,J};V2V服务用户集合为K={1,…,k,…,K}。基站可以获得所有的信道状态信息。The V2I requesting node set is I = {1, ..., i, ..., I}; the V2V requesting user set is J = {1, ..., j, ..., J}; the V2V service user set is K = {1, ..., k, ..., K}. The base station can obtain all channel state information.

具体步骤如下:The specific steps are as follows:

S4.1、计算V2I节点与基站通信的信干噪比

Figure BDA0002392325920000141
S4.1. Calculate the signal-to-interference-to-noise ratio of the communication between the V2I node and the base station
Figure BDA0002392325920000141

Figure BDA0002392325920000142
Figure BDA0002392325920000142

其中,βij∈{0,1},βij=1表示V2V请求节点j复用V2I节点i的上行信道,βij=0表示V2V请求节点j没有复用V2I节点i的上行信道,每个V2V请求节点至多复用一个信道,即

Figure BDA0002392325920000143
pi和pj分别表示V2I请求节点i和V2V请求节点j的发送功率,它们都应该满足车辆节点的功率峰值限制,即pi,pj<pmax
Figure BDA0002392325920000144
表示V2I请求节点i在子信道n上的信道增益,∑j∈Jβijpj|hj|2表示V2V通信用户对V2I用户i的干扰,其中|hj|表示V2V用户j通信时在子信道上的信道增益,N0W是加性高斯白噪声的功率,其中W是子信道的带宽;Among them, βij ∈{0,1}, βij =1 means that the V2V request node j reuses the uplink channel of the V2I node i, and βij =0 means that the V2V request node j does not reuse the uplink channel of the V2I node i. Each V2V request node reuses at most one channel, that is,
Figure BDA0002392325920000143
pi and pj represent the transmission power of V2I request node i and V2V request node j respectively, and they should both meet the power peak limit of vehicle nodes, that is, pi , pj < pmax ,
Figure BDA0002392325920000144
represents the channel gain of V2I requesting node i on subchannel n, ∑j∈J βij pj |hj |2 represents the interference of V2V communication user to V2I user i, where |hj | represents the channel gain of V2V user j on the subchannel when communicating, N0 W is the power of additive white Gaussian noise, where W is the bandwidth of the subchannel;

S4.2、计算V2V请求用户j与服务用户K通信时的信干噪比

Figure BDA0002392325920000145
S4.2. Calculate the signal-to-interference-noise ratio when the V2V requesting user j communicates with the serving user K
Figure BDA0002392325920000145

Figure BDA0002392325920000146
Figure BDA0002392325920000146

其中,

Figure BDA0002392325920000147
表示V2V通信时,V2I用户对V2V接收端用户的干扰,∑j′∈J,j′≠jβij′pj′|hj′|2表示V2V通信时,其他V2V用户对V2V接收端用户的干扰;in,
Figure BDA0002392325920000147
represents the interference of V2I users to V2V receiving users during V2V communication, ∑j′∈J,j′≠j βij′ pj′ |hj′ |2 represents the interference of other V2V users to V2V receiving users during V2V communication;

S4.3、计算整个车联网系统任务处理的总延迟Dtotal,由V2I用户的卸载延迟和V2V用户的处理延迟组成,计算公式如下:S4.3. Calculate the total delay Dtotal of the entire vehicle networking system task processing, which is composed of the unloading delay of the V2I user and the processing delay of the V2V user. The calculation formula is as follows:

Figure BDA0002392325920000151
Figure BDA0002392325920000151

上式中,

Figure BDA0002392325920000152
表示所有V2I用户的任务处理总延迟,包括传输延迟和计算延迟,其中Vi表示V2I用户i的任务数据量,Ci表示计算1bit数据所需要的CPU周期数,fie表示边缘服务器分配给每个V2I用户的计算资源;
Figure BDA0002392325920000153
表示所有V2V配对用户的任务处理总延迟,包括V2V请求用户的传输延迟以及V2V服务用户对自身任务和请求任务进行计算的延迟;
Figure BDA0002392325920000154
表示未能成功配对的V2V用户进行本地任务计算的延迟,其中,Vj表示V2V请求用户j的任务数据量,Cj、Ck分别表示计算1bit来自V2V请求用户和服务用户的任务所需要的CPU周期数,fj、fk分别表示V2V请求用户和服务用户的计算能力,μjk表示V2V配对策略。特别地,V2V服务用户只有在自身任务处理完之后才能处理来自V2V请求用户的任务。In the above formula,
Figure BDA0002392325920000152
represents the total task processing delay of all V2I users, including transmission delay and calculation delay, whereVi represents the task data volume of V2I user i,Ci represents the number of CPU cycles required to calculate 1 bit of data,andfie represents the computing resources allocated to each V2I user by the edge server;
Figure BDA0002392325920000153
It represents the total task processing delay of all V2V paired users, including the transmission delay of the V2V requesting user and the delay of the V2V service user to calculate its own task and the requested task;
Figure BDA0002392325920000154
represents the delay of the V2V user that failed to pair successfully to perform local task calculation, whereVj represents the task data volume of V2V requesting user j,Cj andCk represent the number of CPU cycles required to calculate 1 bit of tasks from V2V requesting user and service user, respectively,fj andfk represent the computing power of V2V requesting user and service user, respectively, andμjk represents the V2V pairing strategy. In particular, the V2V service user can only process the tasks from the V2V requesting user after processing its own tasks.

S5、以最小化车联网系统任务处理的总延迟Dtotal为目标,结合约束条件,建立最优化问题模型,采用量子粒子群(QPSO)算法进行求解,得到车联网系统频带、计算资源分配以及各个车辆节点功率分配的最优解,以保证车联网系统任务处理的总延迟最小。S5. With the goal of minimizing the total delay Dtotal of the task processing of the Internet of Vehicles system, combined with the constraints, an optimization problem model is established, and the quantum particle swarm optimization (QPSO) algorithm is used to solve it. The optimal solution for the frequency band of the Internet of Vehicles system, computing resource allocation, and power allocation of each vehicle node is obtained to ensure that the total delay of the task processing of the Internet of Vehicles system is minimized.

之前步骤中已经对车辆节点进行分类和配对,得到V2I用户集合I、V2V请求用户集合J和V2V服务用户集合K,以及V2V配对策略μjk,在此基础上,通过信道、计算资源分配以及功率控制,以最小化车联网系统任务处理的总延迟Dtotal为目标,建立最优化问题模型如下:In the previous steps, the vehicle nodes have been classified and paired to obtain the V2I user set I, V2V request user set J, V2V service user set K, and V2V pairing strategy μjk . On this basis, through channel and computing resource allocation and power control, with the goal of minimizing the total delay Dtotal of the task processing of the Internet of Vehicles system, the optimization problem model is established as follows:

Figure BDA0002392325920000161
Figure BDA0002392325920000161

C1:βij∈{0,1},

Figure BDA0002392325920000162
C1:βij ∈{0,1},
Figure BDA0002392325920000162

C2:

Figure BDA0002392325920000163
C2:
Figure BDA0002392325920000163

C3:

Figure BDA0002392325920000164
C3:
Figure BDA0002392325920000164

C4:

Figure BDA0002392325920000165
C4:
Figure BDA0002392325920000165

C5:γic≥γith

Figure BDA0002392325920000166
C5:γic ≥γith ,
Figure BDA0002392325920000166

C6:

Figure BDA0002392325920000167
C6:
Figure BDA0002392325920000167

上述约束条件中,C1表示βij,μjk的取值只能为0或1,

Figure BDA0002392325920000168
指示子信道的复用情况,μjk表示V2V请求节点与服务节点的配对情况,C2表示每个V2V请求节点至多复用一个信道,C3表示每个V2I节点和V2V配对用户发送节点的功率限制,C4表示边缘服务器分配给所有V2I车辆的计算资源总和应小于边缘服务器的总计算资源,C5表示每个V2I节点与基站进行通信的信干噪比应大于门限值γith,C6表示每个V2V用户进行通信的信干噪比应大于门限值
Figure BDA0002392325920000169
In the above constraints, C1 represents βij , and the value of μjk can only be 0 or 1.
Figure BDA0002392325920000168
indicates the multiplexing of subchannels, μjk indicates the pairing of V2V requesting nodes and service nodes, C2 indicates that each V2V requesting node can reuse at most one channel, C3 indicates the power limit of each V2I node and V2V paired user sending node, C4 indicates that the sum of computing resources allocated by the edge server to all V2I vehicles should be less than the total computing resources of the edge server, C5 indicates that the signal-to-noise ratio of each V2I node communicating with the base station should be greater than the threshold value γith , and C6 indicates that the signal-to-noise ratio of each V2V user communicating should be greater than the threshold value
Figure BDA0002392325920000169

上述优化问题是一个混合整数规划问题,本实施例采用量子粒子群(QPSO)算法对其进行求解,用较低的复杂度获得全局次优解。具体求解过程如下:The above optimization problem is a mixed integer programming problem. This embodiment uses the quantum particle swarm (QPSO) algorithm to solve it and obtain a global suboptimal solution with lower complexity. The specific solution process is as follows:

首先,优化问题要将N个子信道分配给所有用户,假设有Q个粒子,每个粒子的位置向量由四个部分组成,第q个粒子的位置向量表示为:First, the optimization problem is to allocate N sub-channels to all users. Assuming there are Q particles, the position vector of each particle consists of four parts. The position vector of the qth particle is expressed as:

Xq=(β11,…,βIJ,f1e,…,fIe,p1,…,pI,p1,…,pJ) (16)Xq = (β11 ,…,βIJ ,f1e ,…,fIe ,p1 ,…,pI ,p1 ,…,pJ ) (16)

其中,第一部分β11,…,βIJ是V2V通信用户的信道资源复用情况指示,第二部分f1e,…,fIe是边缘服务器分配给每个V2I用户的计算资源,第三部分p1,…,pI是每个V2I通信用户的发射功率;第四部分p1,…,pJ是V2V通信发送方的发射功率。引入惩罚函数,将原始带约束的最优化问题转化为一个无约束优化问题,转换后的新目标函数如下:Among them, the first part β11 ,…,βIJ is the indication of the channel resource reuse of the V2V communication user, the second part f1e ,…,fIe is the computing resource allocated by the edge server to each V2I user, the third part p1 ,…,pI is the transmission power of each V2I communication user; the fourth part p1 ,…,pJ is the transmission power of the V2V communication sender. The penalty function is introduced to transform the original constrained optimization problem into an unconstrained optimization problem. The new objective function after the transformation is as follows:

Figure BDA0002392325920000171
Figure BDA0002392325920000171

其中,f(βij,fie,pi,pj)表示原问题中的目标函数,

Figure BDA0002392325920000172
是惩罚因子,Pfij,fie,pi,pj)是惩罚函数,包含原问题中的所有约束条件:Among them, f(βij ,fie ,pi ,pj ) represents the objective function in the original problem,
Figure BDA0002392325920000172
is the penalty factor, Pfij ,fie ,pi ,pj ) is the penalty function, which contains all the constraints in the original problem:

Figure BDA0002392325920000173
Figure BDA0002392325920000173

利用QPSO算法求解上式(15)。首先,计算粒子的平均最好位置C(s),它等于所有粒子的最佳位置的平均值:The QPSO algorithm is used to solve the above equation (15). First, the average best position of the particle C(s) is calculated, which is equal to the average of the best positions of all particles:

Figure BDA0002392325920000174
Figure BDA0002392325920000174

其中,s表示迭代次数;Q是粒子数;

Figure BDA0002392325920000181
表示当前迭代中第q个粒子的最佳位置。Where s represents the number of iterations; Q is the number of particles;
Figure BDA0002392325920000181
represents the best position of the qth particle in the current iteration.

然后,进行粒子的位置更新,过程如下:Then, the particle position is updated, and the process is as follows:

Figure BDA0002392325920000182
Figure BDA0002392325920000182

其中,Pq(s)用于第q个粒子的位置更新;

Figure BDA0002392325920000183
可通过以下公式获得:Among them, Pq (s) is used to update the position of the qth particle;
Figure BDA0002392325920000183
It can be obtained by the following formula:

Figure BDA0002392325920000184
Figure BDA0002392325920000184

Gbest(s)表示当前迭代中所有粒子的全局最优位置,通过比较所有粒子的最佳位置

Figure BDA0002392325920000185
的适应度函数获得:Gbest (s) represents the global optimal position of all particles in the current iteration.
Figure BDA0002392325920000185
The fitness function is obtained:

Figure BDA0002392325920000186
Figure BDA0002392325920000186

Figure BDA0002392325920000187
Figure BDA0002392325920000187

粒子位置的更新公式为:The update formula of particle position is:

Figure BDA0002392325920000188
Figure BDA0002392325920000188

其中,s是迭代次数,Xq(s)表示第q个粒子在第s次迭代中的位置,ε代表收缩扩张系数,一般不大于1,u和r为在(0,1)上均匀分布的随机数。Where s is the number of iterations,Xq (s) represents the position of the qth particle in the sth iteration, ε represents the contraction and expansion coefficient, which is generally not greater than 1, and u and r are random numbers uniformly distributed on (0,1).

QPSO算法具体步骤如下:The specific steps of the QPSO algorithm are as follows:

初始化每个粒子的位置Xq(0)、最大迭代次数S,此时

Figure BDA0002392325920000189
Figure BDA00023923259200001810
根据上式(20),全局最佳位置G(0)取
Figure BDA00023923259200001811
中的最佳位置。Initialize the position of each particleXq (0) and the maximum number of iterations S.
Figure BDA0002392325920000189
Figure BDA00023923259200001810
According to the above formula (20), the global optimal position G(0) is
Figure BDA00023923259200001811
The best location in.

迭代次数s从0开始,对于从1到Q的每个粒子,按照以下步骤执行,直到s=S-1,即迭代次数达到最大迭代次数S;The number of iterations s starts from 0. For each particle from 1 to Q, the following steps are performed until s = S-1, that is, the number of iterations reaches the maximum number of iterations S;

根据公式(19)和(20),计算C(s)和Pq(s);According to formulas (19) and (20), calculate C(s) andPq (s);

根据公式(24),更新粒子的位置Xq(s);According to formula (24), update the particle positionXq (s);

根据公式(17)中的适应度函数,更新

Figure BDA0002392325920000191
判断F[Xq(s)]与
Figure BDA0002392325920000192
的大小,如果
Figure BDA0002392325920000193
Figure BDA0002392325920000194
Figure BDA0002392325920000195
否则
Figure BDA0002392325920000196
According to the fitness function in formula (17), update
Figure BDA0002392325920000191
Determine whether F[Xq (s)] and
Figure BDA0002392325920000192
If the size
Figure BDA0002392325920000193
but
Figure BDA0002392325920000194
Figure BDA0002392325920000195
otherwise
Figure BDA0002392325920000196

根据公式(17),更新G(s):如果

Figure BDA0002392325920000197
则G(s)=G(s-1),否则
Figure BDA0002392325920000198
According to formula (17), update G(s): if
Figure BDA0002392325920000197
Then G(s)=G(s-1), otherwise
Figure BDA0002392325920000198

根据公式(17),计算在全局最佳的位置处对应的值,得到的结果就是所求的全局次优解。According to formula (17), the corresponding value at the global optimal position is calculated, and the result obtained is the desired global suboptimal solution.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims (3)

Translated fromChinese
1.一种车联网中基于移动边缘计算的任务卸载与资源分配方法,其特征在于,所述的任务卸载与资源分配方法包括以下步骤:1. A method for task offloading and resource allocation based on mobile edge computing in an Internet of Vehicles, characterized in that the method for task offloading and resource allocation comprises the following steps:S1、构建一个部署有基站、边缘计算服务器和车辆的车联网系统应用场景,车辆具备V2V和V2I通信能力,其中,V2V表示车辆对车辆,V2I表示车辆到基础设施,请求节点可以通过卸载将任务卸载到附近的服务节点进行处理,其中部分车辆和边缘计算服务器配备有限的信道和计算资源,可以为其他车辆提供计算服务,称为服务节点,提出任务计算请求的车辆,称为请求节点;S1. Build an application scenario of an Internet of Vehicles system with base stations, edge computing servers and vehicles. The vehicles have V2V and V2I communication capabilities, where V2V means vehicle-to-vehicle and V2I means vehicle-to-infrastructure. The requesting node can offload the task to a nearby service node for processing. Some vehicles and edge computing servers are equipped with limited channels and computing resources and can provide computing services to other vehicles, which are called service nodes. The vehicle that makes a task computing request is called a requesting node.S2、根据车联网系统应用场景中车辆节点处理自身任务所需要的时间以及车辆节点与基站通信的信道容量,对车联网系统应用场景中的车辆节点运用高斯混合模型进行聚类,将车辆节点划分为V2V用户簇和V2I用户簇;S2. Based on the time required for vehicle nodes to process their own tasks in the application scenario of the Internet of Vehicles system and the channel capacity for communication between the vehicle nodes and the base station, the vehicle nodes in the application scenario of the Internet of Vehicles system are clustered using a Gaussian mixture model, and the vehicle nodes are divided into V2V user clusters and V2I user clusters;S3、针对场景中的V2V用户簇,对其中的V2V请求节点与服务节点进行划分、配对并优化;S3: for the V2V user clusters in the scene, the V2V request nodes and service nodes therein are divided, paired and optimized;S4、针对完成配对的V2V对以及V2I节点,计算整个车联网系统任务处理的总延迟DtotalS4. Calculate the total delay Dtotal of the entire Internet of Vehicles system task processing for the paired V2V pairs and V2I nodes;S5、以最小化车联网系统任务处理总延迟Dtotal为目标,结合约束条件,建立最优化问题模型,采用量子粒子群算法进行求解,得到车联网系统频带、计算资源分配以及各个车辆节点功率分配的最优解,以保证车联网系统任务处理总延迟最小;S5. With the goal of minimizing the total delay Dtotal of the task processing of the Internet of Vehicles system, combined with the constraints, an optimization problem model is established, and the quantum particle swarm algorithm is used to solve it, and the optimal solution of the frequency band of the Internet of Vehicles system, the allocation of computing resources, and the power allocation of each vehicle node is obtained to ensure that the total delay of the task processing of the Internet of Vehicles system is minimized;其中,所述的步骤S2包括:Wherein, the step S2 comprises:S2.1、根据车联网系统应用场景中车辆节点与基站通信的信道容量,对车辆节点的延迟与容量进行量化,过程如下:S2.1. According to the channel capacity of the communication between the vehicle node and the base station in the application scenario of the Internet of Vehicles system, the delay and capacity of the vehicle node are quantified. The process is as follows:计算车辆节点处理自身任务所需要的时间组成一个集合T={tm|m∈M},M表示车辆节点的集合,第m个车辆节点的任务数据量用Vm表示,单位任务计算量用Cm表示,自身计算能力用fm表示,那么第m个车辆节点处理自身任务所需要的时间tm,表达式为:The time required for the vehicle node to process its own task is calculated to form a set T = {tm | m∈M}, where M represents the set of vehicle nodes, the task data volume of the mth vehicle node is represented by Vm , the unit task calculation volume is represented by Cm , and the own computing power is represented by fm . Then the time tm required for the mth vehicle node to process its own task is expressed as:
Figure FDA0004036200090000021
Figure FDA0004036200090000021
计算车辆节点与基站通信的信道容量组成一个集合Γ={ηm|m∈M},第m个车辆节点与基站通信的信道容量ηm,表达式为:The channel capacity between the vehicle node and the base station is calculated to form a set Γ={ηm |m∈M}. The channel capacity ηm between the mth vehicle node and the base station is expressed as:
Figure FDA0004036200090000022
Figure FDA0004036200090000022
其中,
Figure FDA0004036200090000023
是第m个车辆节点与基站通信时的信干噪比,其表达式为:
in,
Figure FDA0004036200090000023
is the signal-to-interference-noise ratio when the mth vehicle node communicates with the base station, and its expression is:
Figure FDA0004036200090000024
Figure FDA0004036200090000024
上式中,
Figure FDA0004036200090000025
为第m个车辆节点的发送功率;LP(d)是第m个车辆节点与基站之间信道的路径损耗,LP(d)单位为dB,与第m个车辆节点与基站之间的距离d有关,
Figure FDA0004036200090000026
表示噪声的平均功率;
In the above formula,
Figure FDA0004036200090000025
is the transmission power of the mth vehicle node; LP(d) is the path loss of the channel between the mth vehicle node and the base station. The unit of LP(d) is dB and is related to the distance d between the mth vehicle node and the base station.
Figure FDA0004036200090000026
represents the average power of the noise;
S2.2、对车联网系统应用场景中的车辆节点运用高斯混合模型进行聚类,将车辆节点划分为V2I用户簇和V2V用户簇;S2.2. Use the Gaussian mixture model to cluster the vehicle nodes in the application scenario of the Internet of Vehicles system, and divide the vehicle nodes into V2I user clusters and V2V user clusters;其中,所述的步骤S2.2包括:Wherein, the step S2.2 comprises:S2.2.1、根据步骤S2.1中的计算结果,建立一个新的M×2的矩阵B,矩阵B的第一列元素由M辆车处理自身任务所需时间集合T组成,矩阵B的第二列元素由M辆车与基站通信的信道容量集合Γ组成,新建一个由矩阵B的行向量为元素的集合X;S2.2.1. According to the calculation results in step S2.1, a new M×2 matrix B is established, wherein the first column of the matrix B is composed of the time set T required for the M vehicles to process their own tasks, and the second column of the matrix B is composed of the channel capacity set Γ for the M vehicles to communicate with the base station. A new set X is established, wherein the elements are the row vectors of the matrix B.S2.2.2、将集合X中所有数据元素看做两个模型的高斯混合分布:S2.2.2. Consider all data elements in set X as Gaussian mixture distributions of two models:
Figure FDA0004036200090000027
Figure FDA0004036200090000027
其中,
Figure FDA0004036200090000028
表示第k个高斯分布的概率密度,
Figure FDA0004036200090000031
xm表示集合X中的第m个元素,待求解参数为:两个高斯函数的均值和方差
Figure FDA0004036200090000032
以及π1,π2
in,
Figure FDA0004036200090000028
represents the probability density of the kth Gaussian distribution,
Figure FDA0004036200090000031
xm represents the mth element in the set X. The parameters to be solved are: the mean and variance of the two Gaussian functions
Figure FDA0004036200090000032
and π12 ;
S2.2.3、采用最大期望算法求解参数值:定义分量数目k=2,对每个分量k设置参数πk
Figure FDA0004036200090000033
k的初始值,对集合X中的数据元素求均值和协方差得到
Figure FDA0004036200090000034
和∑的初始值;
S2.2.3. Use the maximum expectation algorithm to solve the parameter value: define the number of components k = 2, set the parameter πk for each component k,
Figure FDA0004036200090000033
k is the initial value, and the mean and covariance of the data elements in the set X are obtained
Figure FDA0004036200090000034
and the initial values of ∑;
S2.2.4、根据当前的参数值,计算第k个混合的后验概率:S2.2.4. Calculate the posterior probability of the kth mixture based on the current parameter values:
Figure FDA0004036200090000035
Figure FDA0004036200090000035
上式中,t表示当前迭代次数;In the above formula, t represents the current number of iterations;S2.2.5、使用步骤S2.2.4中的值最大化似然函数:S2.2.5. Maximize the likelihood function using the value in step S2.2.4:根据第k个混合的后验概率p(zmk),求新一轮迭代的模型参数
Figure FDA0004036200090000036
According to the posterior probability p(zmk ) of the kth mixture, find the model parameters for the new round of iteration
Figure FDA0004036200090000036
Figure FDA0004036200090000037
Figure FDA0004036200090000037
Figure FDA0004036200090000038
Figure FDA0004036200090000038
Figure FDA0004036200090000039
Figure FDA0004036200090000039
得到高斯混合模型的对数似然函数为:The log-likelihood function of the Gaussian mixture model is obtained as:
Figure FDA00040362000900000310
Figure FDA00040362000900000310
S2.2.6、判断似然函数是否收敛:若收敛,则输出参数
Figure FDA00040362000900000311
Figure FDA00040362000900000312
以及π1、π2;若不收敛,则返回步骤S2.2.3继续执行直至满足收敛条件;
S2.2.6. Determine whether the likelihood function converges: If it converges, output the parameter
Figure FDA00040362000900000311
Figure FDA00040362000900000312
and π1 , π2 ; if not converged, return to step S2.2.3 and continue to execute until the convergence condition is met;
S2.2.7、利用基于最小错误概率的贝叶斯判别准则,获得每个节点所属类别,根据贝叶斯公式,第m个节点关于第k个高斯混合分布模型的后验概率公式为:S2.2.7. Using the Bayesian discriminant criterion based on the minimum error probability, the category to which each node belongs is obtained. According to the Bayesian formula, the posterior probability formula of the mth node with respect to the kth Gaussian mixture distribution model is:
Figure FDA0004036200090000041
Figure FDA0004036200090000041
其中,所述的基于最小错误概 率的贝叶斯判别准则如下:Wherein, the Bayesian discriminant criterion based on the minimum error probability is as follows:a)若p(μ1,∑1|xm)>p(μ2,∑2|xm),则判定节点xm应选择第一种卸载方案;a) If p(μ1 ,∑1 |xm )>p(μ2 ,∑2 |xm ), then node xm should choose the first unloading scheme;b)若p(μ1,∑1|xm)≤p(μ2,∑2|xm),则判定节点xm应选择第二种卸载方案;b) If p(μ1 ,∑1 |xm )≤p(μ2 ,∑2 |xm ), then node xm should choose the second unloading solution;其中,所述的步骤S3过程如下:The process of step S3 is as follows:对步骤S2中聚类得到的V2V用户建立一个集合,记作
Figure FDA0004036200090000042
Figure FDA0004036200090000043
记集合中共有
Figure FDA0004036200090000044
个元素;用户y的任务数据量用Vy表示,单位任务计算量用Cy表示,自身计算能力用fy表示,对V2V用户自身的计算能力进行排序,用车辆节点计算自身任务所需要的时间
Figure FDA0004036200090000045
作为对车辆自身计算能力的衡量,选择ty值最大的
Figure FDA0004036200090000046
个节点划入V2V请求节点集J,集合中余下的
Figure FDA0004036200090000047
个节点划入V2V服务节点集K;建立成一个带权二分图,
Figure FDA0004036200090000048
个V2V请求节点作为二分图的一个顶点集,
Figure FDA0004036200090000049
个V2V服务节点作为二分图的另一个顶点集,两个顶点集之间的边的权重代表V2V请求节点与服务节点之间建立连接所获得的收益,该边的权重与V2V请求节点的任务数据量Vj、V2V服务节点的计算能力fk以及通信节点间的链路质量有关,链路质量考虑节点之间距离djk的影响,因此定义ξjk表示带权二分图中边的权重:
A set of V2V users clustered in step S2 is established, denoted as
Figure FDA0004036200090000042
Figure FDA0004036200090000043
There are a total of
Figure FDA0004036200090000044
elements; the task data volume of user y is represented by Vy , the unit task calculation volume is represented byCy , and the computing power itself is represented by fy . The computing power of V2V users is ranked, and the time required for calculating their own tasks is calculated by vehicle nodes.
Figure FDA0004036200090000045
As a measure of the vehicle's own computing power, select the vehicle with the largest ty value.
Figure FDA0004036200090000046
nodes are included in the V2V request node set J, and the remaining
Figure FDA0004036200090000047
nodes are included in the V2V service node set K; a weighted bipartite graph is established.
Figure FDA0004036200090000048
V2V request nodes are regarded as a vertex set of a bipartite graph.
Figure FDA0004036200090000049
The V2V service nodes are used as another vertex set of the bipartite graph. The weight of the edge between the two vertex sets represents the benefit obtained by establishing a connection between the V2V request node and the service node. The weight of the edge is related to the task data volumeVj of the V2V request node, the computing powerfk of the V2V service node, and the link quality between the communication nodes. The link quality considers the influence of the distancedjk between the nodes. Therefore,ξjk is defined to represent the weight of the edge in the weighted bipartite graph:
Figure FDA0004036200090000051
Figure FDA0004036200090000051
利用Kuhn-Munkres算法求解带权二分图的最大匹配方案作为V2V通信车辆节点与服务节点的配对方案,记作μ={μjk},j∈J,k∈K。The Kuhn-Munkres algorithm is used to solve the maximum matching scheme of the weighted bipartite graph as the pairing scheme of the V2V communication vehicle node and the service node, denoted as μ={μjk }, j∈J, k∈K.2.根据权利要求1所述的车联网中基于移动边缘计算的任务卸载与资源分配方法,其特征在于,所述的步骤S4中,定义V2I请求节点集合为I={1,...,i,..,I},V2V请求用户集合为J={1,...,j,...,J},V2V服务用户集合为K={1,...,k,...,K},假设基站可以获得所有的信道状态信息,该步骤包括:2. The method for task offloading and resource allocation based on mobile edge computing in the Internet of Vehicles according to claim 1 is characterized in that, in the step S4, the V2I request node set is defined as I = {1, ..., i, .., I}, the V2V request user set is defined as J = {1, ..., j, ..., J}, and the V2V service user set is defined as K = {1, ..., k, ..., K}. Assuming that the base station can obtain all channel state information, the step includes:S4.1、计算V2I节点与基站通信的信干噪比
Figure FDA0004036200090000052
S4.1. Calculate the signal-to-interference-to-noise ratio of the communication between the V2I node and the base station
Figure FDA0004036200090000052
Figure FDA0004036200090000053
Figure FDA0004036200090000053
其中,βij∈{0,1},βij=1表示V2V请求节点j复用V2I节点i的上行信道,βij=0表示V2V请求节点j没有复用V2I节点i的上行信道,每个V2V请求节点至多复用一个信道,即
Figure FDA0004036200090000054
pi和pj分别表示V2I请求节点i和V2V请求节点j的发送功率,满足车辆节点的功率峰值限制,即pi,pj<pmax
Figure FDA0004036200090000055
表示V2I请求节点i在子信道n上的信道增益,∑j∈Jβijpj|hj|2表示V2V通信用户对V2I用户i的干扰,其中|hj|表示V2V用户j通信时在子信道上的信道增益,N0W是加性高斯白噪声的功率,W是子信道的带宽;
Wherein, βij ∈ {0, 1}, βij = 1 indicates that the V2V request node j reuses the uplink channel of the V2I node i, and βij = 0 indicates that the V2V request node j does not reuse the uplink channel of the V2I node i. Each V2V request node reuses at most one channel, that is,
Figure FDA0004036200090000054
pi and pj represent the transmission power of V2I request node i and V2V request node j respectively, satisfying the power peak limit of vehicle nodes, that is, pi , pj <pmax ,
Figure FDA0004036200090000055
represents the channel gain of V2I requesting node i on subchannel n, ∑j∈J βij pj |hj |2 represents the interference of V2V communication user to V2I user i, where |hj | represents the channel gain of V2V user j on the subchannel when communicating, N0 W is the power of additive white Gaussian noise, and W is the bandwidth of the subchannel;
S4.2、计算V2V请求用户j与服务用户K通信时的信干噪比
Figure FDA0004036200090000056
S4.2. Calculate the signal-to-interference-noise ratio when the V2V requesting user j communicates with the serving user K
Figure FDA0004036200090000056
Figure FDA0004036200090000057
Figure FDA0004036200090000057
其中,
Figure FDA0004036200090000058
表示V2V通信时,V2I用户对V2V接收端用户的干扰,∑j,∈J,j′≠jβij′pj′|hj′|2表示V2V通信时,其他V2V用户对V2V接收端用户的干扰;
in,
Figure FDA0004036200090000058
represents the interference of V2I users to V2V receiving users during V2V communication, ∑j,∈J,j′≠j βij′ pj′ |hj′ |2 represents the interference of other V2V users to V2V receiving users during V2V communication;
S4.3、计算整个车联网系统任务处理的总延迟Dtotal,由V2I用户的卸载延迟和V2V用户的处理延迟组成,计算公式如下:S4.3. Calculate the total delay Dtotal of the entire vehicle networking system task processing, which is composed of the unloading delay of the V2I user and the processing delay of the V2V user. The calculation formula is as follows:
Figure FDA0004036200090000061
Figure FDA0004036200090000061
上式中,
Figure FDA0004036200090000062
表示所有V2I用户的任务处理总延迟,包括传输延迟和计算延迟,其中Vi表示V2I用户i的任务数据量,Ci表示计算1bit数据所需要的CPU周期数,fie表示边缘服务器分配给每个V2I用户的计算资源;
Figure FDA0004036200090000063
表示所有V2V配对用户的任务处理总延迟,包括V2V请求用户的传输延迟以及V2V服务用户对自身任务和请求任务进行计算的延迟;
Figure FDA0004036200090000064
表示未能成功配对的V2V用户进行本地任务计算的延迟,其中,Vj表示V2V请求用户j的任务数据量,Cj、Ck分别表示计算1bit来自V2V请求用户和服务用户的任务所需要的CPU周期数,fj、fk分别表示V2V请求用户和服务用户的计算能力,μjk表示V2V配对策略。
In the above formula,
Figure FDA0004036200090000062
represents the total task processing delay of all V2I users, including transmission delay and calculation delay, whereVi represents the task data volume of V2I user i,Ci represents the number of CPU cycles required to calculate 1 bit of data,andfie represents the computing resources allocated to each V2I user by the edge server;
Figure FDA0004036200090000063
It represents the total task processing delay of all V2V paired users, including the transmission delay of the V2V requesting user and the delay of the V2V service user to calculate its own task and the requested task;
Figure FDA0004036200090000064
represents the delay of the V2V user who failed to pair successfully to perform local task calculation, whereVj represents the task data volume of V2V requesting user j,Cj andCk represent the number of CPU cycles required to calculate 1 bit of task from V2V requesting user and serving user respectively,fj andfk represent the computing power of V2V requesting user and serving user respectively, andμjk represents the V2V pairing strategy.
3.根据权利要求1所述的车联网中基于移动边缘计算的任务卸载与资源分配方法,其特征在于,所述的步骤S5中,以最小化车联网系统任务处理的总延迟Dtotal为目标,建立最优化问题模型如下:3. The method for task offloading and resource allocation based on mobile edge computing in the Internet of Vehicles according to claim 1 is characterized in that, in the step S5, the optimization problem model is established with the goal of minimizing the total delay Dtotal of task processing in the Internet of Vehicles system as follows:
Figure FDA0004036200090000071
Figure FDA0004036200090000071
C1:
Figure FDA0004036200090000072
C1:
Figure FDA0004036200090000072
C2:
Figure FDA0004036200090000073
C2:
Figure FDA0004036200090000073
C3:
Figure FDA0004036200090000074
C3:
Figure FDA0004036200090000074
C4:
Figure FDA0004036200090000075
C4:
Figure FDA0004036200090000075
C5:
Figure FDA0004036200090000076
C5:
Figure FDA0004036200090000076
C6:
Figure FDA0004036200090000077
C6:
Figure FDA0004036200090000077
上述约束条件中,C1表示βij,μjk的取值只能为0或1,
Figure FDA0004036200090000078
指示子信道的复用情况,μjk表示V2V请求节点与服务节点的配对情况,C2表示每个V2V请求节点至多复用一个信道,C3表示每个V2I节点和V2V配对用户发送节点的功率限制,C4表示边缘服务器分配给所有V2I车辆的计算资源总和应小于边缘服务器的总计算资源,C5表示每个V2I节点与基站进行通信的信干噪比应大于门限值
Figure FDA0004036200090000079
C6表示每个V2V用户进行通信的信干噪比应大于门限值
Figure FDA00040362000900000710
In the above constraints, C1 represents βij , and the value of μjk can only be 0 or 1.
Figure FDA0004036200090000078
Indicates the multiplexing of sub-channels, μjk indicates the pairing of V2V request nodes and service nodes, C2 indicates that each V2V request node can reuse at most one channel, C3 indicates the power limit of each V2I node and V2V paired user sending node, C4 indicates that the sum of computing resources allocated by the edge server to all V2I vehicles should be less than the total computing resources of the edge server, and C5 indicates that the signal-to-noise ratio of each V2I node communicating with the base station should be greater than the threshold value.
Figure FDA0004036200090000079
C6 indicates that the signal-to-interference-to-noise ratio of each V2V user's communication should be greater than the threshold value
Figure FDA00040362000900000710
CN202010118884.6A2020-02-262020-02-26Task unloading and resource allocation method based on mobile edge calculation in Internet of vehiclesActiveCN111314889B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010118884.6ACN111314889B (en)2020-02-262020-02-26Task unloading and resource allocation method based on mobile edge calculation in Internet of vehicles

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010118884.6ACN111314889B (en)2020-02-262020-02-26Task unloading and resource allocation method based on mobile edge calculation in Internet of vehicles

Publications (2)

Publication NumberPublication Date
CN111314889A CN111314889A (en)2020-06-19
CN111314889Btrue CN111314889B (en)2023-03-31

Family

ID=71147820

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010118884.6AActiveCN111314889B (en)2020-02-262020-02-26Task unloading and resource allocation method based on mobile edge calculation in Internet of vehicles

Country Status (1)

CountryLink
CN (1)CN111314889B (en)

Families Citing this family (46)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111741438B (en)*2020-06-282021-10-08湖南大学 Edge computing side-end collaborative task offloading method and system considering vehicle movement
CN114258724B (en)*2020-07-232025-07-08北京小米移动软件有限公司Logical channel multiplexing method and device, communication equipment and storage medium
CN112512018B (en)*2020-07-242022-03-04北京航空航天大学Method for dynamically unloading tasks among cooperative vehicles based on mobile edge calculation
CN112055329B (en)*2020-08-032022-06-14广东工业大学 An edge car networking task offload method suitable for RSU coverage switching
CN111918311B (en)*2020-08-122022-04-12重庆邮电大学 Task offloading and resource allocation method for Internet of Vehicles based on 5G mobile edge computing
CN112101728B (en)*2020-08-182024-07-26华南理工大学Energy optimization distribution method for mobile edge computing system
CN112084026B (en)*2020-09-022024-05-17国网河北省电力有限公司石家庄供电分公司 Low-energy edge computing resource deployment system and method based on particle swarm
CN112118312B (en)*2020-09-172021-08-17浙江大学 A network burst load evacuation method for edge servers
CN112383949B (en)*2020-11-162023-06-20深圳供电局有限公司Edge computing and communication resource allocation method and system
CN116600017A (en)*2020-12-022023-08-15武汉联影医疗科技有限公司Resource scheduling method, system, device, computer equipment and storage medium
CN112654058A (en)*2020-12-172021-04-13中国刑事警察学院Mobile edge computing offload and resource allocation algorithm in D2D multicast network
CN112882805A (en)*2021-01-262021-06-01上海应用技术大学Profit optimization scheduling method based on task resource constraint
CN112995950B (en)*2021-02-072022-03-29华南理工大学 A joint resource allocation method based on deep reinforcement learning in the Internet of Vehicles
CN112911016B (en)*2021-02-252022-04-08北京邮电大学Edge-side collaborative computing unloading method and system, electronic equipment and storage medium
CN113014663B (en)*2021-03-122022-03-18中南大学Task and resource matching method supporting cross-node computing task survivability and succession
CN113114738B (en)*2021-03-252022-03-25华南理工大学SDN-based optimization method for internet of vehicles task unloading
CN113068150B (en)*2021-04-062022-08-02北京邮电大学 Training method and device, transmission method, device and medium for policy estimation network
CN113132943B (en)*2021-04-182022-04-19中南林业科技大学 A task offload scheduling and resource allocation method for vehicle-side collaboration in the Internet of Vehicles
CN113271627A (en)*2021-05-142021-08-17天津理工大学Mobile edge computing unloading method based on chaotic quantum particle swarm optimization strategy
CN113423091B (en)*2021-05-242022-07-29西安电子科技大学 A multi-dimensional resource intelligent joint optimization method and system for in-vehicle computing power network
CN113467851B (en)*2021-05-242024-01-23南京邮电大学Dynamic vehicle computing task unloading method and device based on vehicle clustering
CN113240189B (en)*2021-06-012022-10-14青岛科技大学 Dynamic vehicle task and computing power matching method based on reputation value
CN113364859B (en)*2021-06-032022-04-29吉林大学MEC-oriented joint computing resource allocation and unloading decision optimization method in Internet of vehicles
CN113592219A (en)*2021-06-112021-11-02北京理工大学Internet of vehicles networking task allocation method based on particle swarm
CN113504949B (en)*2021-06-222024-01-30山东师范大学Task unloading and parameter optimization method and system for MAR client in edge calculation
CN113535261B (en)*2021-07-052022-09-06云南大学Internet of vehicles vehicle cluster task unloading method based on edge calculation
CN113490275B (en)*2021-07-072024-03-08东南大学NOMA-based Internet of vehicles broadcast communication resource allocation method
CN113727358B (en)*2021-08-312023-09-15河北工程大学 An edge server deployment and content caching method based on KM and greedy algorithm
CN114153515B (en)*2021-09-182023-09-12南京邮电大学Highway internet of vehicles task unloading algorithm based on 5G millimeter wave communication
CN113891477A (en)*2021-11-042022-01-04重庆邮电大学Resource allocation method based on MEC calculation task unloading in Internet of vehicles
CN114302373B (en)*2021-12-302024-07-02东南大学Unloading decision and power distribution method in V2V communication based on calculation reliability
CN114827946B (en)*2022-03-022024-07-12北京航空航天大学Task similarity-based edge calculation method and system in Internet of vehicles scene
CN114710497B (en)*2022-03-112023-06-02厦门理工学院Internet of vehicles multitasking unloading minimum response time acquisition method
CN114710785B (en)*2022-04-082022-11-29浙江金乙昌科技股份有限公司Internet of vehicles cooperative computing resource scheduling design method based on particle swarm algorithm
CN115002108B (en)*2022-05-162023-04-14电子科技大学 A method for networking and task offloading in which a smartphone acts as a computing service node
CN114980029B (en)*2022-05-202024-10-01上饶丫牛软件中心(个人独资) An offloading method based on task correlation in connected vehicles
CN115022893B (en)*2022-05-312024-08-02福州大学 Resource allocation method to minimize total computing time in multi-task edge computing system
CN115103369B (en)*2022-06-152023-05-02唐尚禹Access method and device of edge distributed MEC for lightweight industrial application
CN115119281B (en)*2022-06-272024-08-16东北大学 Design Methodology of V2V Routing Framework for Offloading 5G Cellular IoT
CN115209373A (en)*2022-07-112022-10-18天津理工大学Internet of vehicles task unloading method based on bipartite graph matching strategy
CN115968010B (en)*2022-09-192025-06-13南京邮电大学 Network topology optimization method for multi-agent system based on stability analysis model
CN115421930B (en)*2022-11-072023-03-24山东海量信息技术研究院Task processing method, system, device, equipment and computer readable storage medium
CN115884125B (en)*2022-12-272025-03-14兰州理工大学Ultra-reliable low-delay vehicle-mounted network self-adaptive task unloading method
CN115884126B (en)*2022-12-292023-09-15上海洛轲智能科技有限公司Method and device for constructing fleet communication network, electronic equipment and storage medium
CN116545853B (en)*2023-07-042023-10-13南京理工大学Integrated network multi-objective optimized resource management method based on quantum particle swarm
CN119484538B (en)*2025-01-162025-06-20广东申创光电科技有限公司 Data analysis method and system for smart city gateway system

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109302709A (en)*2018-09-142019-02-01重庆邮电大学 Task offloading and resource allocation strategy of Internet of Vehicles for mobile edge computing
CN110035410A (en)*2019-03-072019-07-19中南大学Federated resource distribution and the method and system of unloading are calculated in a kind of vehicle-mounted edge network of software definition

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109302709A (en)*2018-09-142019-02-01重庆邮电大学 Task offloading and resource allocation strategy of Internet of Vehicles for mobile edge computing
CN110035410A (en)*2019-03-072019-07-19中南大学Federated resource distribution and the method and system of unloading are calculated in a kind of vehicle-mounted edge network of software definition

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
超密集网络中基于移动边缘计算的任务卸载和资源优化;张海波等;《电子与信息学报》;20190514(第05期);全文*

Also Published As

Publication numberPublication date
CN111314889A (en)2020-06-19

Similar Documents

PublicationPublication DateTitle
CN111314889B (en)Task unloading and resource allocation method based on mobile edge calculation in Internet of vehicles
CN111836283B (en)Internet of vehicles resource allocation method based on MEC multi-server
CN111132077B (en) D2D-based multi-access edge computing task offloading method in the Internet of Vehicles environment
CN111447619B (en) A method for joint task offloading and resource allocation in mobile edge computing networks
CN107819840B (en) Distributed mobile edge computing offloading method in ultra-dense network architecture
CN109194763B (en) A caching method based on self-organized cooperation of small base stations in ultra-dense networks
CN108391317B (en) A resource allocation method and system for D2D communication in a cellular network
CN109151864B (en)Migration decision and resource optimal allocation method for mobile edge computing ultra-dense network
CN107613555B (en) Non-Orthogonal Multiple Access Cellular and Terminal Direct Dense Network Resource Management and Control
CN111586696A (en) A Resource Allocation and Offloading Decision Method Based on Multi-Agent Architecture Reinforcement Learning
CN111132191A (en)Method for unloading, caching and resource allocation of joint tasks of mobile edge computing server
CN113784373A (en)Combined optimization method and system for time delay and frequency spectrum occupation in cloud edge cooperative network
CN112566261A (en)Deep reinforcement learning-based uplink NOMA resource allocation method
CN107343268B (en) Non-orthogonal multicast and unicast transmission beamforming method and system
CN109756912A (en) A multi-user multi-base station joint task offloading and resource allocation method
CN111629352B (en)V2X resource allocation method based on Underlay mode in 5G cellular network
CN110602722A (en)Design method for joint content pushing and transmission based on NOMA
Jiang et al.Dueling double deep q-network based computation offloading and resource allocation scheme for internet of vehicles
CN113905415B (en)Dynamic calculation task unloading method for mobile terminal in cellular network
CN111698724A (en)Data distribution method and device in edge cache
CN115866787A (en)Network resource allocation method integrating terminal direct transmission communication and multi-access edge calculation
CN112770343B (en)D2D-NOMA resource allocation method and system based on HAGA
CN111970717B (en)Method for content caching and user-base station association in fog-based wireless access network
CN114554494A (en)Uplink and downlink combined dynamic resource allocation method for 6G fully-decoupled network
CN118354412A (en) A D2D heterogeneous network joint power control method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp