The present disclosure relates to the technical field of wireless communication and IoV, and particularly to a method of multi-access edge computing task offloading based on D2D in the IoV environment.
With the rapid development of IoV, vehicles have become smarter in supporting intelligent applications (automatic driving, real-time video assistance, navigation and interactive games). Vehicle communication both improves road safety and transportation efficiency and provides more diverse entertainment scenes. For services requiring the exchange of mass data, such as media streaming and content sharing, a large communication capacity is obtained through the Vehicle to Infrastructure (V2I) link. At the same time, information that is critical to safety, such as cooperation awareness information and discrete environmental notification information, usually needs to spread safety-related information among surrounding vehicles in a periodic or event-triggered manner, so that the vehicle-to-vehicle (V2V) technique is necessary to meet strict reliability and timeliness requirements.
Multi-access mobile edge computing (MEC) is an extension of the mobile edge computing. Mobile-edge computing is a kind of network architecture, which utilizes a wireless access network to provide IT services required by telecom users and cloud computing functions nearby, thus creating a carrier-class service environment with high performance, low delay and high bandwidth, accelerating the rapid download of various contents, services and applications in the network, allowing consumers to enjoy uninterrupted high-quality network experience, and solving the problems such as the network delay, congestion and capacity in the future. Multi-access mobile edge computing further extends the edge computing from the telecom cellular network to other wireless access networks (such as WiFi), which may improve the user experience and save bandwidth resources on the one hand, and provide the third-party application integration by sinking the computing power to mobile edge nodes on the other hand, thereby providing infinite possibilities for service innovation of mobile edge portals.
Task offloading refers to submitting a user's task to the edge computing server for execution, so as to achieve the requirements of saving time delay and energy consumption. The research of task offloading strategy aims at designing a user task offloading strategy that achieves the lowest time delay and energy consumption of the IoV system, and as a result, according to the task offloading strategy, the user may choose to execute the task locally or to perform the computation by offloading the task to the edge computing server.
Generally, in most existing operations, the multi-access edge computing task offloading only takes into consideration the time delay and energy consumption minimization of the V2I link without guaranteeing the time delay reliability of V2V, thus failing to meet the reliability requirement of the IoV. The minimization of time delay and energy consumption is usually a mixed integer nonlinear programming problem which requires high computational complexity and iteration for several times when using algorithms such as the local search.
For this purpose, the present disclosure aims at providing a method of multi-access edge computing task offloading based on D2D in IoV environment, which can address the time delay and energy consumption minimization in the IoV system with low time complexity.
This purpose of the present disclosure is achieved through the following technical schemes:
A method of multi-access edge computing task offloading based on D2D in IoV environment, which applies to the following scenario: an edge computing server is deployed near a single base station, wherein: the base station adopts the OFDMA access mode and has a certain number of CUE (abbreviation of cellular user equipment) and DUE (abbreviation of D2D user equipment) in its coverage area; CUE can communicate with the base station; task requests generated by CUE may choose to be executed at the local of CUE or the edge computing server; the local data exchange is performed between DUE in the form of D2D; DUE multiplexes CUE channels, thus causing communication interference between CUE and DUE. The method includes the following steps:
In Step 1, an optimization problem is modeled as a problem of maximizing the sum of time delay and energy consumption benefit, wherein the benefit is defined as a ratio of a difference between the local execution cost and the actual execution cost to the local execution cost, the cost herein represents the time delay or energy consumption, and the optimization problem is equivalent to the problem of minimizing the sum of time delay and energy consumption;
In Step 2, the optimization problem is decomposed, wherein a sub-optimization problem of the task offloading strategy is independent from that of the transmission power and channel resource allocation mode, thereby decomposing the optimization problem into two sub-optimization ones: one for the task offloading strategy, and the other one for the transmission power and channel resource allocation mode;
In Step 3, optimal transmission powers of CUE and DUE are computed, wherein according to the known D2D time delay reliability limit condition and power limit conditions of CUE and DUE, an feasible region of CUE and DUE powers are determined, and then a linear programming is used for obtaining the optimal transmission power of CUE and DUE;
In Step 4, an optimal channel resource allocation mode is computed, wherein the optimal channel resource allocation mode is acquired by solving a problem of maximum weight matching in bipartite by using a bipartite matching algorithm;
In Step 5, an optimal task offloading strategy is computed, wherein the optimal task offloading strategy of CUE is acquired by solving a knapsack problem by using dynamic programming.
Further, the process of Step 1 is as follows:
It is assumed that the number of CUE is M, m represents the mth CUE, the number of DUE is K pairs, and k represents the kth pair of DUE. Since the channel is less used, it facilitates the management of the base station interference. In order to improve the spectrum usage efficiency, the channel allocated for CUE is multiplexed by DUE, and a total bandwidth of the base station is B.
Signal-to-noise ratios of the mth CUE and the kth pair of DUE received by the base station are respectively:
Wherein pm and pk represent transmission powers of the mth CUE and kth pair of DUE respectively, hm,B is a channel gain between the mth CUE and the base station, hk,B is a channel gain between the kth pair of DUE and the base station, hk is a channel gain between the kth pair of DUE, hm,k is a channel gain between the mth CUE and the kth pair of DUE, U is a noise power, ρm,k is a channel resource allocation mode, ρm,k=1 indicates that the kth pair of DUE multiplexes the channel of the mth CUE, or otherwise ρm,k=0 indicates that the kth pair of DUE does not multiplex the channel of the mth CUE.
In the above formulas, the channel gains only take into consideration large-scale gains which include:
h
m,B=βm,BALm,B−γ
h
k,B=βk,BALk,B−γ
h
k=βkALk−γ
h
m,k=βm,kALm,k−γ
Wherein, βm,B is shadowing fading between the mth CUE and the base station, βk,B is shadowing fading between the kth pair of DUE and the base station, βk is shadowing fading between the kth pair of DUE, βm,k is shadowing fading between the mth CUE and the kth pair of DUE, Lm,B is a distance between the mth CUE and the base station, Lk,B is a distance between the kth pair of DUE and the base station, Lk is a distance between the kth pair of DUE, Lk is proportional to vehicle speed v, Lm,k is a distance between the mth CUE and the kth pair of DUE, γ is an attenuation factor, and A is a path loss constant.
The benefits are:
Wherein, sm represents a task offloading strategy, sm=0 represents local task computing, sm=1 represents offloading the task to the edge computing server for computing, βt and βe are trade-off coefficients of time delay and energy consumption respectively, and tmloc and emloc present the time delay and energy consumption of local task computing respectively:
Wherein, Cm is a number of CPU cycles of the task, fml is a local CPU computing rate, and c is energy consumption per unit of CPU cycles.
tmoff and emoff respectively represent time delay and energy consumption of offloading the task to the edge computing server for computing;
t
m
off
=t
m
up
+t
m
exe
e
m
off
=p
m
t
m
up
Wherein, tmup and tmexe are respectively task uploading time delay and edge computing server execution time delay;
Wherein, is the data size of the task, fm is a computing resource allocated by the edge computing server to the mth CUE, and rm is the task uploading rate:
Therefore, the function of the optimization problem is expressed as:
s.t. C1: tm≤Tmmax
C2: Pr(tk≥Tkmax)≤P0
C3: 0≤pm≤Pmaxc
C4: 0≤pk≤Pmaxd
C5: ΣmϵM ρm,k≤1
C6. ΣkϵK ρm,k≤1
C7: sm ϵ{0,1}
C8: ΣmϵM sm Cm≤F
The benefit vm(sm,pm,pk,ρm,k) is normalized according to the time delay and energy consumption, and the maximization of vm(sm,pm,pk,ρm,k) is equivalent to minimization of the time delay and energy consumption.
Condition C1 indicates the maximum time delay limit of the mth CUE, wherein Tmmax is the maximum time delay allowable to the mth CUE and tm is an actual execution time delay of the mth CUE as follows:
t
m
=s
m
t
m
off+(1−sm)tmloc
Condition C2 indicates the reliability guarantee of D2D communication for the kth pair of DUE, Tkmax is the maximum time delay allowable to the kth pair of DUE, p0 is the reliability guarantee probability of D2D communication, Pr(tk≥Tkmax) is the probability that tk is larger than or equal Tkmax, and tk is transmission delay of the kth pair of DUE as follows:
Wherein, Dk represents a task transmission size of the kth pair of DUE, and rk represents a transmission speed of the kth pair of DUE as follows:
Conditions C3 and C4 indicate the maximum power limits of the mth CUE and the kth pair of DUE, and Pmaxc and Pmaxd are respectively the maximum transmission powers of the mth CUE and the kth pair of DUE.
Condition C5 indicates that a pair of DUE may multiplex a channel of one CUE at most.
Condition C6 indicates that the channel of one CUE may be multiplexed by one pair of DUE at most.
Condition C7 indicates that a task offloading strategy variable sm is an integer of 0 or 1.
Condition C8 indicates the maximum computing resource limit of the edge computing server, and F is a number of the maximum CPU cycles that the edge computing server is capable of.
Further, in Step 2, and in the benefit vm(sm,pm,pk,ρm,k), a sub-optimization problem of the transmission power and channel resource allocation mode is independent from that of the task offloading strategy, thereby the optimization problem is decomposed into two sub-optimization ones: one for the transmission power and channel resource allocation mode, and the other one for the task offloading strategy.
Further, in Step 3, it is assumed that the kth pair of DUE multiplexes the channel of the mth CUE, and according to the known D2D time delay reliability limit condition and the maximum transmission power limit conditions of CUE and DUE, feasible regions of powers are obtained, and then a linear programming is used for obtaining the optimal transmission powers of CUE and DUE.
Further, in Step 4, CUE and DUE may multiplex channels randomly, the sub-optimization problem of channel resource allocation mode has turned into a maximum weight matching problem in bipartite, and the Hungarian method is used to obtain the optimal channel resource allocation mode.
Further, in Step 5, the optimization problem is transformed into a knapsack problem about the task offloading strategy, and the optimal task offloading strategy is obtained through dynamic programming.
In comparison to the prior art, the present disclosure has the following advantages and effects:
(1) The present disclosure satisfies the minimization of the time delay and energy consumption of all CUE nodes across the IoV system by fully utilizing channel resources and computing resources of the edge computing server.
(2) The present disclosure satisfies time delay limit conditions of all DUE nodes across the IoV system, and thus ensures the reliability of D2D communication.
(3) Compared with algorithms such as the local search for solving the task offloading strategy, the method based on optimization problem decomposition brings lower time complexity, while guarantees that the resultant solution is close to the global optimum.
So that the above mentioned purposes, technical schemes and advantages in embodiments of the present disclosure can be more apparently understood, the technical schemes in the embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings thereof. Apparently, the embodiments described herein are part of, not all of, embodiments in the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those of ordinary skills in the art without creative work belong to the scope claimed by the present disclosure.
As shown in
In Step 1, an optimization problem is modeled as a problem of maximizing the sum of time delay and energy consumption benefit, wherein the benefit is defined as a ratio of a difference between the local execution cost and the actual execution cost to the local execution cost, the cost herein represents the time delay or energy consumption, and the optimization problem is equivalent to the problem of minimizing the sum of time delay and energy consumption.
In the application of this field, traditional methods directly regard the minimization of the sum of time delay and energy consumption as an optimization problem. Due to the difference in unit between time delay and energy consumption, either time delay is minimized while energy consumption is not yet, or energy consumption is minimized while time delay is not yet. Therefore, in this embodiment, the maximization of the sum of time delay and energy consumption benefits is regarded as an optimization problem, wherein the benefits are normalized according to time delay and energy consumption so as to minimize both time delay and energy consumption at the same time and to set different preferences for both time delay and energy consumption. For example, when a terminal needs energy saving, its preference for energy consumption may be increased and its preference for time delay may be reduced; and when the terminal needs lower time delay, its preference for time delay may be increased and its preference for energy consumption may be reduced.
The process of Step 1 is as follows:
It is assumed that the number of CUE is M, m represents the mth CUE, the number of DUE is K pairs, and k represents the kth pair of DUE. Since the channel is less used, it facilitates the management of the base station interference. In order to improve the spectrum usage efficiency, the channel allocated for CUE is multiplexed by DUE, and a total bandwidth of the base station is B.
Signal-to-noise ratios of the mth CUE and the kth pair of DUE received by the base station are respectively:
Wherein pm and pk represent transmission powers of the mth CUE and kth pair of DUE respectively, hm,B is a channel gain between the mth CUE and the base station, hk,B is a channel gain between the kth pair of DUE and the base station, hk is a channel gain between the kth pair of DUE, hm,k is a channel gain between the mth CUE and the kth pair of DUE, σ2 is a noise power, ρm,k is a channel resource allocation mode, ρm,k=1 indicates that the kth pair of DUE multiplexes the channel of the mth CUE, or otherwise ρm,k=0 indicates that the kth pair of DUE does not multiplex the channel of the mth CUE.
In the above formulas, the channel gains only take into consideration large-scale gains which include:
h
m,B=βm,BALm,B−γ
h
k,B=βk,BALk,B−γ
h
k=βkALk−γ
h
m,k=βm,kALm,k−γ
Wherein, βm,B is shadowing fading between the mth CUE and the base station, βk,B is shadowing fading between the kth pair of DUE and the base station, βk is shadowing fading between the kth pair of DUE, βm,k is shadowing fading between the mth CUE and the kth pair of DUE, Lm,B is a distance between the mth CUE and the base station, Lk,B is a distance between the kth pair of DUE and the base station, Lk is a distance between the kth pair of DUE, Lk is proportional to vehicle speed v, Lm,k is a distance between the mth CUE and the kth pair of DUE, γ is an attenuation factor, and A is a path loss constant.
The benefits are:
Wherein, sm represents a task offloading strategy, sm=0 represents local task computing, sm=1 represents offloading the task to the edge computing server for computing, βt and βe are trade-off coefficients of time delay and energy consumption respectively, and tmloc and emloc represent the time delay and energy consumption of local task computing respectively:
Wherein, Cm is a number of CPU cycles of the task, fml is a local CPU computing rate, and ε is energy consumption per unit of CPU cycles.
tmoff and emoff respectively represent time delay and energy consumption of offloading the task to the edge computing server for computing;
t
m
off
=t
m
up
+t
m
exe
e
m
off
=p
m
t
m
up
Wherein, tmup and tmexe are respectively task uploading time delay and edge computing server execution time delay;
Wherein, Dm is the data size of the task, fm is a computing resource allocated by the edge computing server to the mth CUE, and rm is the task uploading rate:
Therefore, the function of the optimization problem is expressed as:
s.t. C1: tm≤Tmmax
C2: Pr(tk≥Tkmax)≤P0
C3: 0≤pm≤Pmaxc
C4: 0≤pk≤Pmaxd
C5: ΣmϵM ρm,k≤1
C6. ΣkϵK ρm,k≤1
C7: sm ϵ{0,1}
C8: ΣmϵM sm Cm≤F
The benefit vm(sm,pm,pk,ρm,k) is normalized according to the time delay and energy consumption, and the maximization of vm(sm,pm,pk,ρm,k) is equivalent to minimization of the time delay and energy consumption.
Condition C1 indicates the maximum time delay limit of the mth CUE, wherein Tmmax is the maximum time delay allowable to the mth CUE and tm is an actual execution time delay of the mth CUE as follows:
t
m
=s
m
t
m
off+(1−sm)tmloc
Condition C2 indicates the reliability guarantee of D2D communication for the kth pair of DUE, Tkmax is the maximum time delay allowable to the kth pair of DUE, p0 is the reliability guarantee probability of D2D communication, Pr(tk≥Tkmax) is the probability that tk is larger than or equal to Tkmax, and tk is transmission delay of the kth pair of DUE as follows:
Wherein, Dk represents a task transmission size of the kth pair of DUE, and rk represents a transmission speed of the kth pair of DUE as follows:
Conditions C3 and C4 indicate the maximum power limits of the mth CUE and the kth pair of DUE, and Pmaxc and Pmaxd are respectively the maximum transmission powers of the mth CUE and the kth pair of DUE.
Condition C5 indicates that a pair of DUE may multiplex a channel of one CUE at most.
Condition C6 indicates that the channel of one CUE may be multiplexed by one pair of DUE at most.
Condition C7 indicates that a task offloading strategy variable sm is an integer of 0 or 1.
Condition C8 indicates the maximum computing resource limit of the edge computing server, and F is a number of the maximum CPU cycles that the edge computing server is capable of.
In Step 2, the optimization problem is decomposed.
In the application of traditional methods in this field, heuristic algorithms that are quite high in time complexity are directly adopted for the minimization of time delay and energy consumption. Therefore, in an embodiment, this method takes full advantage of a feature that a sub-optimization problem of the task offloading strategy is independent from that of the transmission power and channel resource allocation mode, in order to decompose the optimization problem into two sub-optimization ones: one for the task offloading strategy, and the other one for the transmission power and channel resource allocation mode, thereby reducing the time complexity.
The process of Step 2 is as follows:
The sub-optimization problem of the task offloading strategy is independent from that of the transmission power and channel resource allocation mode. The task offloading strategy and channel resource allocation mode refer to an integer variable, the transmission power is a continuous variable, and the optimization problem is a mixed integer nonlinear programming problem.
In order to solve optimization problem, the optimization problem is decomposed into two independent sub-optimization problems: one for the task offloading strategy, and the other one for the transmission power and channel resource allocation mode. As a result, the optimization problem turns into:
s.t. C1: tm≤Tmmax
C2: Pr(tk≥Tkmax)≤P0
C3: 0≤pm≤Pmaxc
C4: 0≤pk≤Pmaxd
C5: ΣmϵM ρm,k≤1
C6. ΣkϵK ρm,k≤1
C7: sm ϵ{0,1}
C8: ΣmϵM sm Cm≤F
Wherein sv is a task offloading strategy vector, S is a set of CUE choosing task offloading, and S={m|sm=1}.
The optimization problem is decomposed into two independent sub-optimization problems, which is expressed as follows:
Wherein, under the set of CUE-specific task offloading strategies S, r(S) is a sub-optimization problem about the transmission power and channel resource allocation mode as follows:
s.t. C1: tm≤Tmmax
C3: 0≤pm≤Pmaxc
C4: 0≤pk≤Pmaxd
C5: ΣmϵM ρm,k≤1
C6. ΣkϵK ρm,k≤1
Wherein r(S) has an optimal solution r*(S), and then the optimization problem is transformed into a sub-optimization problem about the task offloading strategy as follows:
By substituting the time delays and energy consumptions of the local execution and the edge execution into benefits, the sub-optimization problem r(S) of transmission power and channel resource allocation mode will be:
Wherein ΣmϵS(βT+βE) is constant, and therefore r(S) is equivalent to:
In Step 3, an optimal transmission power of CUE and DUE are computed, wherein according to the known D2D time delay reliability limit condition and power limit conditions of CUE and DUE, feasible regions of CUE and DUE powers are determined, and then a linear programming is used for obtaining the optimal transmission powers of CUE and DUE;
The process of Step 3 is as follows:
Assuming that the kth pair of DUE multiplexes a channel of the mth CUE, for this CUE-DUE multiplexing pair, the sub-optimization problem r(S) of transmission power and channel resource allocation mode is simplified as follows:
s.t. C2: Pr(tk≥Tkmax)≤P0
C3: 0≤pm≤Pmaxc
C4: 0≤pk≤Pmaxd
According to the reliability limit condition C2, a limit condition satisfied by the CUE and DUE transmission powers may be obtained as follows:
Wherein γ0d is a threshold of signal-to-noise ratio, γ0d and is acquired according to the maximum time delay allowable to DUE for the D2D communication.
By combining the above limit conditions satisfied by CUE and DUE transmission powers with C3 and C4 conditions, feasible regions of powers can be obtained, and the optimal transmission power of CUE p*m and the optimal transmission power of DUE, p*k may be obtained by using linear programming to solve the sub-optimization problem of transmission power.
In Step 4, an optimal channel resource allocation mode is computed, wherein the optimal channel resource allocation mode is acquired by solving a problem of maximum weight matching in bipartite by using a bipartite matching algorithm;
The process of Step 4 is as follows:
According to the optimal transmission power of CUE p*m and the optimal transmission power of DUE p*k, the sub-optimization problem r(S) of transmission power and channel resource allocation mode is transformed into:
s.t. C5: ΣmϵM ρm,k≤1
C6. ΣkϵK ρm,k≤1
Wherein v*m(sm,ρm,k,pm,pk) is the optimal benefit that is computed according to the optimal transmission power p*m of CUE and the optimal transmission power p*k of DUE in the case of assuming that the kth pair of DUE multiplexes the channel of the mth CUE.
The sub-optimization problem r(S) of transmission power and channel resource allocation mode is a maximum weight matching problem in bipartite, and the Hungarian algorithm is used for solution to obtain the optimal channel resource allocation mode ρ*m,k.
In Step 5, an optimal task offloading strategy is computed, wherein the optimal task offloading strategy of CUE is acquired by solving a knapsack problem by using dynamic programming.
The process of Step 5 is as follows:
According to the optimal transmission power of CUE p*m and the optimal transmission power of DUE as well as the optimal channel resource allocation mode ρ*m,k, the optimization problem is transformed into a sub-optimization problem about the task offloading strategy:
s.t. C7: sm ϵ{0,1}
C8: ΣmϵM sm Cm≤F
The above sub-optimization problem of task offloading strategy is a typical knapsack problem, and the optimal task offloading strategy s is obtained by solving the dynamic programming.
Embodiments described above are preferred embodiments of the present disclosure, but implementations of the present disclosure are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations and simplifications made without departing from the spirit and principle of the present disclosure shall be equivalent alternations and fall within the protection scope claimed by the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202010114913.1 | Feb 2020 | CN | national |