The present application is the national phase of International Patent Application No. PCT/CN2021/128685, titled “DISTRIBUTED TASK OFFLOADING AND COMPUTING RESOURCES MANAGEMENT METHOD BASED ON ENERGY HARVESTING”, filed on Nov. 4, 2021, which claims the priority to Chinese Patent Application No. 202110312344.6 titled “DISTRIBUTED TASK OFFLOADING AND COMPUTING RESOURCES MANAGEMENT METHOD BASED ON ENERGY HARVESTING”, filed on Mar. 24, 2021 with the China National Intellectual Property Administration (CNIPA), both of which are incorporated herein by reference in their entireties.
The present disclosure relates to the technical field of mobile communication, and in particular to a distributed task offloading and computing resources management method based on energy harvesting.
With the rapid development of Internet of Things and the popularity of intelligent terminal devices, cloud-oriented applications (such as virtual reality, autonomous driving and online games) having features of computational intensity and latency sensitivity are developing at an unprecedented speed in recent years. Although the processing performance of CPUs and the storage capacity of mobile devices (MDs) are continuously improved, computing performance and battery life are facing severe challenges in the era of big data and artificial intelligence. According to the mobile edge computing (MEC), as a new computing mode, all or part of local computing tasks are offloaded to the MEC server, significantly improving the service experience of the users. In an MEC system, computing and storage resources are deployed at an edge network, effectively reducing delay and avoiding data communication congestion.
Limited by the size and cost of hardware, the conventional battery has a limited capacity and cannot meet the requirements for long-term battery life of a device. In some scenarios, it is impossible or extremely expensive to adopt a rechargeable battery or a conventional grid power. Therefore, it is required to adopt a cheaper, more convenient and more reliable power supply mode. With the energy harvesting (EH) technology which has become an important technology for green communication and long-lasting operation, renewable energy such as solar energy and wind energy can be captured for data communication and task processing by the MD. It is of great significance to integrate the EH technology into the MEC system.
With the fusion of EH and MEC, stability of computing performance of a system is facing a new challenge. The following results have been achieved: (1) a dynamic computing offloading algorithm based on energy harvesting in mobile edge computing, in which a low-complexity and centralized task offloading algorithm based on perturbation Lyapunov optimization algorithm is provided in a point-to-point communication scenario of a single MD and a single MEC server; (2) a task offloading energy consumption and delay compromise algorithm based on energy harvesting in the mobile edge computing, in which a dynamic task offloading strategy is provided to balance energy consumption and computational delay of a MEC system based on EH. The energy consumption and computational delay are transformed to an average weighted sum problem of energy consumption and execution delay of the mobile device with buffer queue stability and battery power as constraints. Based on the perturbation Lyapunov optimization algorithm, optimal allocations of a cycle frequency of a CPU and a data transmission power of the mobile device are obtained.
The above processing is performed for improving the original, simple and centralized network architectures, that is, the average rate, the delay, the connection density and the differentiated services based on the network architectures should be improved. In particular, with the rapid growth of edge devices and the amount of data in the era of Internet of Things, the centralized optimization method is no longer suitable for distributed MEC scenarios including thousands of applications of heterogeneous Internet of Things. In addition, different MDs usually have different requirements in computing offload delay and energy consumption. Therefore, how to allocate limited computing resources of an edge cloud on demand and how to distributedly develop a task offload strategy based on energy harvesting have important research value.
In order to minimize system energy consumption and allocate resources on demand, a distributed task offloading and computing resources management method based on energy harvesting is provided according to the present disclosure. The management method includes: establishing, based on a mobile edge computing environment, a task local computing model and an edge cloud computing model; obtaining a benefit obtained by a device purchasing resources from each of mobile edge computing servers for performing task offloading, performing a perturbation Lyapunov optimization algorithm at the device to ensure an energy level of a battery and stability of a task queue at the device, and establishing a device maximum benefit objective function for the device based on the perturbation Lyapunov optimization algorithm; for each of the mobile edge computing servers, obtaining a benefit of the mobile edge computing server providing a computing service for the device, and establishing a mobile edge computing server maximum benefit objective function for the mobile edge computing server; determining, based on a task backlog of the device, the energy level of the battery of the device and a quotation of each of the mobile edge computing servers, a mobile edge computing server pre-screening criteria, and pre-selecting, by the device based on the pre-screening criteria, a mobile edge computing server for performing task offloading; calculating, by the device based on the maximum benefit by using the perturbation Lyapunov optimization algorithm, an optimal task size strategy for performing task offloading by the device to the pre-selected mobile edge computing server based on a Lagrange multiplier algorithm and a KKT condition in each of time slots; obtaining, by the mobile edge computing server based on the optimal quotation strategy for performing task offloading by the device to the mobile edge computing server, an optimal quotation strategy of the mobile edge computing server for the device in each of the time slots based on the maximum benefit of the mobile edge computing server; and in a case that the optimal task size strategy for performing task offloading by the device to the pre-selected mobile edge computing server meets a Stackelberg equilibrium and the optimal dynamic quotation strategy of the mobile edge computing server for the device meets the Stackelberg equilibrium, performing, by the device, task offloading to the mobile edge computing server based on an optimal task offloading strategy.
In an embodiment, a device maximum benefit objective function for the device based on the perturbation Lyapunov optimization algorithm is expressed as:
and constraints include:
where Ii(t)={Ii0(t), Ii1(t), . . . , Iin(t)} representing a set of task offloading strategies of an i-th mobile device; bi(t)={bi0(t), bi1(t), . . . , bin(t)} representing a set of processing task size strategies of the i-th mobile device; Ub
representing a sum of tasks processed by the i-th mobile device in the time slot t; ai(t) represents the size of tasks of the i-th mobile device arrived in the time slot t; {tilde over (B)}i(t) represents a virtual energy queue of a battery of the i-th mobile device; ei0t(t) represents total energy consumption of the i-th mobile device in the time slot t; eih(t) represents energy charged to the battery of the i-th mobile device in the time slot t; δi(t) represents energy harvested by the i-th mobile device in the time slot t; Eimin represents a minimum battery discharge of the i-th mobile device in each of time slots; Eimax represents a maximum battery discharge of the i-th mobile device in each of the time slots; Bi(t) represents an energy level of the battery of the i-th mobile device at a beginning of the time slot t; biĵ(t) represents the size of task locally processed by the i-th mobile device or offloaded by the i-th mobile device to a j-th mobile edge computing server, where ĵϵ{0, 1, . . . , N}; M represents a set of mobile devices; N represents a set of mobile edge computing servers; fjmin represents a local CPU minimum frequency or a CPU minimum frequency of the ĵ-th mobile edge computing server; fiĵ(t) represents a local CPU frequency or a CPU frequency of the ĵ-th mobile edge computing server allocated for the i-th mobile device; fĵmax represents a maximum local CPU frequency or a maximum CPU frequency of the ĵ-th mobile edge computing server; and T represents an index of a time slot.
In an embodiment, in the device maximum benefit objective function of the device based on the perturbation Lyapunov optimization algorithm, the i-th mobile device is capable of performing task computing locally only in a case that fi0L(t)≤fi0U(t), and if the i-th mobile device is capable of performing task computing locally, an optimal local execution strategy is expressed as:
where f*i0 represents the optimal local execution strategy;
ki represents an effective energy coefficient related to a chip architecture of the i-th mobile device; τ represents a length of each of the time slots; ρi represents a benefit weight factor of the i-th mobile device;
where γi represents a computation density obtained by performing offline measurement.
In an embodiment, the mobile edge computing server maximum benefit objective function is expressed as:
and a constraint is pji(t)≥0, iϵM, tϵT
where Us
In an embodiment, the pre-selecting, by the device based on the pre-screening criteria, a mobile edge computing server for performing task offloading includes:
where bijL(t) represents the smallest size of offloading tasks in each of time slots; bijU(t) represents the maximum size of offloading tasks in each of the time slots; bijmin(t) represents the minimum size of tasks offloaded from the i-th mobile device to the j-th mobile edge computing server; pij(t) represents the quotation of the j-th mobile edge computing server to the i-th mobile device; φij represents unit communication cost from the i-th mobile device to the j-th mobile edge computing server in a time slot t; Qi(t) represents a task queue backlog of the i-th mobile device; {tilde over (B)}i(t) represents a virtual energy queue of the battery of the i-th mobile device; Pi represents a transmission power of the i-th mobile device in the time slot t; and ri represents a transmission rate of the i-th mobile device.
In an embodiment, the device calculates, based on the maximum benefit by using the perturbation Lyapunov optimization algorithm, the optimal task size strategy for performing task offloading by the device to the pre-selected mobile edge computing server based on the Lagrange multiplier algorithm and the KKT condition in each of the time slots, that is, the optimal quotation strategy of the mobile edge computing server for the device in each of the time slots is expressed as:
where p*ji(t) represents the optimal quotation strategy of the mobile edge computing server for the device in each of the time slots, and b*ij(t) represents the optimal size of tasks offloaded by the i-th mobile device to the mobile edge computing server in a time slot t.
In embodiment, the optimal size b*ij(t) of tasks offloaded by an i-th mobile device to the mobile edge computing server in a time slot t is expressed as:
represents a quotation of a j-th mobile edge computing server for the i-th mobile device, Qi(t) represents a a task queue backlog of the i-th mobile device, and Pi represents a transmission power in the time slot t.
In an embodiment, it is determined whether the optimal dynamic quotation strategy of the mobile edge computing server for the device meets the Stackelberg equilibrium solution by: in a case that a quotation of the mobile edge computing server is determined and the following equation holds:
and an offloading task bij(t) is determined and the following equation holds:
determining that the optimal dynamic quotation strategy of the mobile edge computing server for the device meets the Stackelberg equilibrium solution;
where Ub
In an embodiment, the cost price pijc(t) of the i-th mobile device performing task offloading to the j-th mobile edge computing server is expressed as:
According to the present disclosure, a distributed MEC offloading system supporting energy harvesting is considered, and a distributed optimization strategy based on a game theory and a perturbation Lyapunov optimization theory is provided. With the present disclosure, a dynamic differential quotation mechanism is performed, achieving joint optimization of heterogeneous task offloading, computing resources allocation on demands and battery energy management. In addition, in order to reduce unnecessary communication overhead and improve processing efficiency, a pre-screening criterion for a MEC server is provided based on the energy level of the battery, delay and benefit. It can be seen that based on simulation experiments, with the method according to the present disclosure, the stability management of the energy level of the battery and the on-demand allocation of computing resources for heterogeneous users can be achieved with ensuring the maximization of the system revenue.
A distributed task offloading and computing resources management method based on energy harvesting is provided according to an embodiment of the present disclosure. With the method according to the embodiment of the present disclosure, a dynamic differential quotation mechanism is performed, achieving joint optimization of heterogeneous task offloading, computing resources allocation on demands and battery energy management.
The embodiments of the present disclosure are described hereinafter in combination with the drawings.
In the specification, claims, and drawings of the present disclosure, the terms “first”, “second”, and so on are intended to distinguish between similar objects rather than indicating a specific order. It should be understood that the terms used in this way are interchangeable in an appropriate case, and this is merely a differentiation manner used when objects having a same attribute are described in the embodiments of the present disclosure. In addition, the terms “include”, “comprise” and any other variants are intended to cover the non-exclusive inclusion, so that a process, method, system, product, or device that includes a series of units is not necessarily limited to those units, but may include other units not expressly listed or inherent to such a process, method, product, or device.
Exemplarily, a distributed task offloading and computing resources management method based on energy harvesting is provided according to the present disclosure. As shown in
In the embodiment, the above steps are further described from constructing a system model, constructing a to-be-solved resource allocation problem, and how to allocate computing resources.
1. System Model
Exemplarily, as shown in
(1) Task and Queue Model
Exemplarily, MDi represents an i-th mobile device. A to-be-processed task requested by the MDi may be represented by a triple Λi(t)=bi(t), τid, γi, where bi(t) represents the size of tasks have been processed in a time slot t, τid represents a requirement for a maximum computation delay, and γi, in cycles/bit, represents a calculation density obtained by performing offline measurement.
Exemplarily, it is assumed that tasks generated by the MDs follow an independent and identically distributed Poisson process, ai(t) represents the size of tasks of the MDi arrived in the time slot t, and Qi(t) represents an task queue backlog of the MDi in the time slot t. Thus, A(t)={a1(t), . . . , am(t)} representing a set of tasks of all the MD s arrived in the time slot t, and Q(t)={Qi(t), . . . , Qm(t)} representing a set of queue backlogs of all the MDs in the time slot t. Since the tasks arrived in a time slot are limited, the size ai(t) of the arrived tasks is greater than or equal to zero and less than or equal to aimax(t), where aimax(t) represents the maximum size of tasks of the i-th mobile device arrived in the time slot t. E{A(t)}={λ1, . . . , λm} representing a set of arrival rates of the MDs, that is, λm represents an arrival rate of an m-th mobile device. An update equation of the queue task backlog of the MDi may be expressed as:
Qi(t+1)=max{Qi(t)−bi(t),0}+ai(t)
In some embodiments, task offloading includes the following three stages: in a first stage, an MD uploads a computing task to an MEC server through a wireless channel; in a second stage, the MEC server analyzes and performs the task; and in a third stage, a computation result is returned to the MD.
Since the amount of the data in the computation result is much less than the amount of the uploaded data and the downlink date transmission rate is much higher the uplink date transmission rate, the delay for returning the computation result is ignored in the present disclosure.
(2) Local Computing Model
In some embodiments, at a beginning of each of time slots, the MDs determine whether to perform task offloading and the size of the tasks to be offloaded. In a case of local computing, it is required for an MD to allocate local CPU computing resources to process tasks. In order to save energy under delay constraint, the MDs should process tasks at a dynamic and appropriate CPU clock speed, which may be achieved by adjusting a processing frequency of a CPU by using a dynamic voltage and frequency scaling (DVFS) technology.
Exemplarily,
representing the size of tasks in local computing in the time slot t, where fi0(t) represents a CPU frequency of the MDi. Since the CPU frequency is limited by a maximum CPU frequency fi0max and a minimum CPU frequency fi0min, it is required for the CPU frequency fi0(t) to meet fi0min≤fi0(t)≤fi0max.
A local computing energy consumption model is obtained. Due to the limitation of the energy level of the battery, an energy consumption factor is considered in performing task processing and offloading decision. For local task processing, in order to facilitate analysis, it is assumed that the CPUs of the MDs are completely used for computing tasks and other energy consumption due to the operations of the MDs are ignored according to the present disclosure. Computing energy consumption of processing a task bi0(t) may be expressed as:
where Ki represents an effective energy coefficient related to a chip architecture, α and β represent parameters determined by a CPU model, and a ranges from 2 to 3. In order to facilitate analysis, it is assumed according to the present disclosure that α=1, β=0, and σ=2.
(3) Edge Cloud Computing Model
In the embodiment of the present disclosure, compared with the MDs, the MEC server has stronger power supply capacity, computing capacity and storage capacity. In a case that one of the MDs determines to perform task offloading, a task is to be transmitted to a server through a wireless channel, and then the server allocates appropriate computing resources for the MD. A communication model, a communication energy consumption model a communication cost model of the MDs, an computing delay model of an MEC server, and an edge computing energy consumption model are analyzed below.
For the communication model, hi(t)=[l(t)]0 representing a gain of a wireless channel in the time slot t, where l(t) represents a communication distance, and oϵ{2, 3} and is a constant. Based on Shannon's theory, a task transmission rate of the MDi in the time slot t is expressed as:
where Bi, P and ω respectively represent a transmission bandwidth, a transmission power and an average noise power in the time slot t. For the MDi, Iij(t)ϵ{0,1} representing an indicator for determining a task offloading strategy, where jϵN, and Iij(t)=1 representing that the MDi offloads the task to the MEC server in the time slot t. Therefore, the transmission delay of the MDi is expressed as:
where 1{⋅} represents an indicator function.
For the communication energy consumption model, communication energy consumption of the MDi offloading a computing task bij(t) to a j-th MEC server is expressed as:
cij(t)=φij(t)bij(t)·1{Iij(t)=1}
For the communication cost model, Ωij(t) represents unit communication cost from the MDi to the j-th MEC server in the time slot t. According to the present disclosure, the communication cost model is defined as:
cij(t)=φij(t)bij(t)·1{Iij(t)=1}
For the computing delay model of an MWC server, fij(t) represents a CPU frequency of the j-th MEC server allocated for the MDi in the time slot t. Considering that the CPU frequency is limited by a maximum CPU frequency fjmax and a minimum CPU frequency fjmin and the CPU frequency fij(t) meets fjmin≤fij(t)≤fjmax, a computing delay of the j-th MEC server is expressed as:
For the edge computing energy consumption model, the computing energy consumption of the j-th MEC server processing the task bij(t) may be expressed as:
where Δt=dijp(t) representing a processing delay of the j-th MEC server.
(4) Energy Harvesting Model
In some embodiments, each of the MDs arranged with an EH component may acquire renewable energy to power the battery. It is assumed that in different time slots, an energy harvesting process of an MD follows an independent and identically distribution, δi(t) represents energy harvested by the MDi in the time slot t, and δimax represents maximum harvested energy. In practices, only a part of the harvested energy can be stored in the battery, eih(t) represents energy charged by the MDi to the battery in the time slot t, and thus eih(t) meets 0≤eih(t)≤δi(t).
Exemplarily, based on the analysis of the local computing model and the edge cloud computing model, total energy consumption of the MDi in the time slot t may be expressed as:
In order to prevent the battery from being over-discharged, a battery discharge constraint is defined as:
Eimin≤ei0t(t)≤Eimax
where Eimin represents a minimum discharge capacity of the battery of the MDi in each of the time slots, and Eimax represents a maximum discharge capacity of the battery of the MDi in each of the time slots.
In particular, in order to ensure continuous operation of the MDs, it is required for the energy level of the battery to be sufficient for performing task computing locally and communication. Bi(t) represents an energy level of the battery of the MDi at the beginning of the time slot t, and thus the energy consumption of the MDi in the time slot t meets a constraint of Eimin(t)≤ei0t(t)≤max{Eimax, Bi(t)}<∞. If the constraint is not met, the task is to be backlogged in a local task queue. Based on the above analysis, an update equation of the energy level of the battery of the MDi may be obtained as follows:
Bi(t+1)=max{Bi(t)−ei0t(t)20}+eih(t)
(5) Task Processing Utility Model
In an embodiment of the present disclosure, in order to evaluate the benefit obtained by the MDi processing the task in time slot t, a logarithmic utility function, which is widely used in the field of wireless communication and mobile computing, is adopted in the present disclosure. The benefit obtained by the MDi processing the task in time slot t may be expressed as:
uiĵ(t)=ρi log(1+biĵ(t)),ĵϵ{0,N}
where ρi represents an benefit weight factor of the MDi.
2. Objective Function
In the embodiments of the present disclosure, it is required for the MEC offloading system supporting EH to ensure that each of the MDs has sufficient energy to execute the offloading strategy, and it is required that in each of the time slots, requirements for stability of a task queue of each of the MDs and task offloading delay of each of the MDs are met. Accordingly, in the present disclosure, an offloading decision of the MEC offloading system, the size of processed tasks, a resource allocation strategy and an energy harvesting strategy in the time slot t are respectively expressed as:
I(t)={Iij(t)}iϵM,jϵN
b(t)={biĵ(t)}iϵM,ĵϵ{0,N}
F(t)={fiĵ(t)}iϵM,ĵϵ{0,N}
e(t)={eih(t)}iϵM
Based on the task offloading, resource allocation and energy consumption in each of the time slots, a maximum benefit model, that is, the objective function in the embodiments, may be obtained as follows:
and the constraints include:
where, ψj represents unit energy cost of the j-th MEC server.
In the above model, the constraints are sequentially understood as: the energy charged by the MDi to the battery is less than the energy harvested in the time slot t; the energy consumed by the MDi in the time slot t is required to be greater than the minimum discharge capacity and be less than a maximum value of the maximum discharge capacity and the energy level of the battery; the MDi ensures that a sum of local computing tasks and offloading tasks is less than or equal to the queue backlog in the time slot t; the CPU frequency allocated for the MDi or the CPU frequency allocated for the MEC server is less than or equal to a maximum CPU frequency in each of the time slots and is greater than or equal to a minimum CPU frequency in each of the time slot; and the stability of the task queue backlog is met.
3. Distributed Task Offloading and Computing Resources Allocation Method Based on Energy Scavenging
In the era of Internet of Things, massive edge devices and massive data are growing rapidly. It is difficult or even impossible to harvest real-time information about a state of a system. The conventional centralized optimization method is no longer suitable for distributed MEC scenarios with thousands of heterogeneous Internet of things applications. Due to the intermittence, heterogeneity and contingency of the arrived tasks and harvested energy, it is impossible to accurately predict the state of the system. Therefore, a distributed dynamic computing task offloading and computing resource allocation strategy based on a buying and selling game and a Lyapunov optimization theory is provided according to the present disclosure. With the strategy, a centralized optimization problem P1 is transformed to a distributed optimization problem P2.
(1) Analysis of Game Model Based on Perturbation Lyapunov Optimization
In the embodiments of the present disclosure, in order to process the tasks offloaded by the MDs, it is required for the MEC server to consume cost (such as computing energy consumption and hardware cost) of the MEC server, and the MDs are required to pay for computing services. Therefore, the model may be regarded as a “market”, in which each of the MDs is purchasing a product from an appropriate MEC server. Therefore, an MD is regarded as a buyer (b), which purchases computing resources to process the offloaded tasks; and an MEC server is regarded as a seller (s), which provides computing services for buyers.
In some embodiments, a payment by a purchaser (that is, an MD) is proportional to the size of tasks offloaded to a seller (that is, an MEC server). In a time slot t, a unit price of an MDi for offloading tasks to a j-th MEC server is represented by pij(t) (in $/bit). Therefore, a payment cost of a buyer for offloading tasks to a seller is expressed as:
sij(t)=pij(t)bij(t)
(i) Analysis of Buyer/MD Game Model
Exemplarily, it is assumed that the MDs are rational and want to maximize benefits of the MDs. An optimal strategy for the buyer is determined based on benefits of performing task offloading, communication cost and payment cost. Therefore, an objective function of a buyer in the time slot t may be obtained as follows:
Further, in order to achieve the stability of the energy level of the battery and ensure a computational performance in long-term evolution, a maximum benefit function of an i-th buyer (that is, MDi) may be obtained as follows:
the constraints include:
In the embodiments of the present disclosure, compared with the conventional MEC system with a battery-powered device, the design of the offloading strategy for the MEC system supporting EH is much more complex, in which both the energy level of the battery and the task cache queue backlog are required to be considered. Hereinafter, a task offloading and energy management method based on a perturbation Lyapunov optimization algorithm is designed for the buyer.
In the progressive optimization based on the Lyapunov optimization algorithm, it should be noted that the energy level of the battery is time-independent according to the following battery energy causality constraint:
Eimin≤ei0t(t)≤Eimax and Bi(t+1)=max{Bi(t)−ei0t(t),0}+eih(t)
Therefore, two important parameters are defined, including a perturbation parameter θi and a virtual energy queue {tilde over (B)}i(t) of the battery of the MDi.
In the embodiment, the perturbation parameter θi is set as a bounded constant:
In implementation, {tilde over (B)}i(t)=Bi(t)−θ representing the virtual energy queue for tracking the energy level of the battery of the MDi. By setting θi reasonably, it is ensured that the battery has sufficient power for supporting MDi to perform local computing and communication tasks.
In some embodiments, the energy level of the battery of the MDi meets 0≤Bi(t)≤θi+δimax in each of the time slots.
Exemplarily, a Lyapunov function for calculating the task queue and the virtual energy queue of the battery is defined as:
where L[Θi(t)]≥0. Based on the Lyapunov optimization theory, a conditional Lyapunov drift may be obtained as the follows:
Δ[Θi(t)]=E{L[Θi(t+1)]−L[Θi(t)|Qi(t),{tilde over (B)}i(t)]}
An optimal decision is determined to minimize a difference between the conditional Lyapunov drift and an upper boundary of the maximum benefit function of the MDi, that is, minimize the difference of Δ[Θi(t)]−ViE{ub
Exemplarily, based on any predetermined control parameters Vi, ai(t), and eih(t), where Vi≥0, ai(t)ϵ[0,aimax(t)] and eih(t)ϵ[0, δimax], the following inequalities are obtained based on the Lyapunov optimization theory:
Δ[Θi(t)]−ViE{ub
≤E{Bi(t)[eih(t)−ei0t(t)]|Θi(t)}
+E{Qi(t)[ai(t)−bij(t)]|Θi(t)}
+Φi−ViE{ub
where Φi represents a nonnegative constant, and
It can be seen that the operation of minimizing the difference between the conditional Lyapunov drift and the upper boundary of the maximum benefit function of the MDi is equivalent to an operation of minimizing the right side of the above inequality. The optimization problem P2-buyer may be transformed to a problem P2-buyer of maximizing the benefit of the buyer based on the perturbation Lyapunov optimization algorithm:
the constraints include:
(ii) Analysis of Seller/MEC Server Game Model
In some embodiments, sij(t) represents a benefit obtained by the j-th MEC server for providing computing resources for the MDi. The benefit sji(t) of the j-th MEC server in the time slot t is obtained by using the following equation:
sji(t)=sij(t)=pij(t)bij(t)
Exemplarily, the seller may obtain benefits by providing computing services to the buyers, and the seller consumes costs (such as computing energy consumption and hardware cost). Therefore, a maximum benefit function of a j-th seller may be obtained as follows:
the constraint is pji(t)≥0, iϵM, tϵT.
The constraint of the above model indicates that the price paid should be positive. In addition, based on a maximum value theory, the optimization problem P2-seller may be transformed to a problem P2-seller′ of maximizing the benefit of the seller:
the constraint is pji(t)≥0, iϵM, tϵT.
(iii) Analysis of Optimal Game Strategy
(a) Analysis of Buyer/MD Optimal Strategy
For each of the MDs, it is required to solve the following three basic problems: how much of the harvested energy should be stored in the battery; how many tasks need to be computed locally; and how to select an appropriate MEC server and how many tasks should be offloaded to the MEC server.
Exemplarily, an optimal energy harvesting strategy is obtained. Based on P2-buyer′, an optimal energy harvesting strategy is easily obtained as follows:
Therefore, an optimal harvested energy in the time slot t may be expressed as:
[eij(t)]*=δi(t)·l{{tilde over (B)}i(t)<0}
In a case that {tilde over (B)}i(t)≤0, the maximum energy that the MDi needs to store is equal to δi. In a case that {tilde over (B)}i(t)>0, the MDi does not store energy.
An optimal task offloading strategy is calculated. Based on P2-buyer′ and
the optimization problem is further transformed from P2-seller′ to P2-buyer″, where P2-buyer″ is expressed s:
and the constraints include:
In a local calculation strategy, for each of the MDs, due to a battery discharge limitation by the constraint of Eimin≤ei0t(t)≤Eimax, a minimum CPU frequency of the MDi under the energy constraint may be obtained as:
and a maximum CPU frequency of the MDi under the energy constraint may be obtained as:
Only in a case that fi0L(t)≤fi0U(t), the MDi may perform local computing. Based on P2-buyer″, in a case that the MDi may perform local computing, an optimal local execution strategy is expressed as:
In a case that
In addition, the constraints of the problem P2-buyer″ are all affine functions, thus Ub
In addition, in a case that fi0L(t)≤fi0M(t)≤fi0U(t), the optimal decision is obtained by using the following equation:
f*i0(t)=fi0M(t)
In a case that fi0M(t)≤fi0L(t), the optimal decision is obtained by using the following equation:
f*i0(t)=fi0U(t)
In a case that f*i0(t)>fi0U(t), the optimal decision is obtained by using the following equation:
f*i0(t)=fi0U(t)
In a case that
where Ub
f*i0(t)=fi0U(t)
In edge cloud computing offloading strategy, at a beginning of each of the time slot, each of the MDs selects one or more appropriate MEC servers. For a selected MEC server j, an optimal offloading task size is expressed as:
bijL(t) represents a smallest offloading task size under an energy constraint, and bijU(t) represents a maximum offloading task size under the energy constraint.
(b) Analysis of Seller/MEC Server Optimal Strategy
Exemplarily, for each of the sellers/MEC servers, a fundamental problem required to be solved is to determine an optimal price pij(t) and computing resources fij(t) according to requirements of the buyer. Based on P2-seller′ and
a first-order partial derivative of Us
Further, a second-order partial derivative of Us
For each of the sellers, the benefit Us
which indicates that a lowest price the seller can accept is pijc(t).
In a case that a transaction price of the computing resources is greater than pijc(t), then
In an embodiment, the existence of Stackelberg Equilibrium is analyzed. In the analysis process, it is first proved that the optimal solution (b*ij(t), p*ij(t)) is a Stackelberg equilibrium (SE). For the convenience of analysis, only a solution of an optimal offloading task bij(t) and a price pij(t) in one time slot is analyzed in the present disclosure, and the same analyzing method may be easily used in other time slots. Firstly, a SE for the proposed game is defined as follows.
A price pij(t) of the seller is predetermined. In a case that
the to-be-offloaded task is determined, and
are SE solutions. The optimal solution (b*ij(t), p*ij(t)) is (bijSE(t), pijSE(t)) with the following proof.
The problem P2-buyer″ is a convex function with respect to bij(t), a maximum Ub
Based on
may be obtained. b*ij(t) is a monotonic decreasing function to pij(t), which indicates that a purchasing intention for computing resources of the buyer decreases with an increase of a price by the seller, resulting in little or no benefit for the seller. Therefore, the seller should set an appropriate price, and an optimal price is obtained by solving
The optimal offloading task b*ij(t) decreases with the increase of the price pij(t) of the seller.
In a case that the optimal offloading task of the buyer/MD is a fixed task, the problem P2-seller′ is a convex function to pij(t), p*ij(t)) is an SE pijSE(t)). A maximum value of the benefit function Usj(pij(t)) is obtained at p*ij(t)).
An offloading pre-screening criterion is provided according to the present disclosure to reduce unnecessary communication signaling overhead and improve the efficiency of task processing. Heterogeneous MDs have different battery energy levels, offloading requirements (queue backlog) and traffic features (such as, task type and computing density). In addition, due to that different MEC servers have different computing resource features (such as, computing resource availability and computing cost) and are located in different locations, different servers requires different prices for computing tasks from different MDs, and thus an MEC server may be not applicable to all the MDs. In order to reduce unnecessary communication signaling overhead, it is important for each of the MDs to select one or more appropriate MEC servers at the beginning of each of the time slots. The offloading selection strategy of the MDs is affected by two main factors: a battery discharge constraint factor (B) and a price factor (P).
For the factor B, limited by a battery discharge constraint Eimin≤ei0t(t)≤Eimax of each of the MDs, a minimum offloading task in each of the time slots is expressed as:
A maximum offloading task in each of the time slots is expressed as:
Only in a case that bijL(t)≤bijU(t), the MD may offload a task to the MEC server j. In a case that bijL(t)>bijU(t), the MEC server is excluded.
For the factor P, due to that different MEC servers set different prices for resources, each of the MDs selects (or exclude) the servers with more (or less) benefits and determines the size of tasks to be offloaded.
Based on the first-order partial derivative of Ub
is obtained, which indicates that in a case that the quotation of the MEC server j meets the above inequality, the MD obtains a maximum benefit Ub
For a buyer, a floating price of the seller is expressed as:
then, the following inequality is obtained:
which indicates that the number of available servers is related to the control parameter Vi at the beginning of each of the time slots due to that Qij(t) and {tilde over (B)}i(t) are constant. A smaller Vi indicates more servers are available.
In the implementation of the present disclosure, it is required to quote resources based on feedback information from the buyers, so that when all the sellers reach a SE, all the buyers reach a corresponding SE. In the time slot t, it is assumed that a r-th quotation of the seller j to the purchaser i is represented by pijr(t), then after the quotation strategies of all the sellers are determined, an SE solution of a buyer is represented by b*ij(t). If the buyer reaches the SE solution, the seller adjusts the price strategy based on computing requirements of the buyer. Moreover, an update rate of the price of the purchaser may be expressed as an marginal utility. Therefore, a price iteration process may be expressed as:
where v represents a step size in the price iteration process,
In order to obtain an (r+1)th quotation, it is required for each of the sellers to receive feedback information b*ij(t) and
from the buyer.
For each of the buyers, the benefit increases as the quotation increases, that is, Us
the seller cannot further increase the price. Therefore, under the above constraints, the price of the seller reaches SE. Based on the above analysis, when all the sellers reach SE, all the buyers reach the corresponding SE.
Exemplarily,
In the embodiments of the present disclosure, it can be seen from
Although the embodiments of the present disclosure are shown and described, it should be understood by those skilled in the art that changes, modifications, substitutions and variations may be made to these embodiments without departing from the principle and spirit of the present disclosure. The scope of the present disclosure is limited by the claims and equivalents.
Number | Date | Country | Kind |
---|---|---|---|
202110312344.6 | Mar 2021 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2021/128685 | 11/4/2021 | WO |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2022/199036 | 9/29/2022 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
11200989 | Sundararajan | Dec 2021 | B1 |
20170164237 | Mahmoodi | Jun 2017 | A1 |
20210219266 | Ibrahim | Jul 2021 | A1 |
20210357255 | Mahadik | Nov 2021 | A1 |
Number | Date | Country |
---|---|---|
108319502 | Jul 2018 | CN |
111163521 | May 2020 | CN |
113114733 | Jul 2021 | CN |
Entry |
---|
International Search Report for PCT/CN2021/128685 dated Jan. 24, 2022, ISA/CN. |
Xia, Shicha, A Distributed Stochastic Task Offloading Methodology for IoT on e-Health, ICC 2020—2020 IEEE International Conference on Communications (ICC), Jun. 11, 2020. |
Yao, Xiuzhi, Research on Resource Allocation in Mobile Edge Computing Based on Game Theory, Feb. 15, 2021. |