12
IEEE INTERNET OF THINGS JOURNAL, VOL. 6, NO. 2, APRIL 2019 3455 Efficient Computation Resource Management in Mobile Edge-Cloud Computing Yongmin Zhang , Member, IEEE, Xiaolong Lan, Student Member, IEEE, Yue Li , Student Member, IEEE, Lin Cai , Senior Member, IEEE, and Jianping Pan, Senior Member, IEEE Abstract—We study the computation resource management problem in mobile edge-cloud computing networks. Mobile edge servers shall first satisfy the computation requirements of mobile users and Internet of Things (IoT) devices, and then whole- sale redundant computation resources to the cloud networks to maximize their profit. Due to the coarse time granularity of wholesales, computation resource buyback may happen occasion- ally to deal with traffic bursts. Thus, the mobile edge servers need to make a tradeoff between the wholesale profit and the buyback cost. In this paper, the computation resource manage- ment problem is modeled as profit maximization. To solve this problem, we first analyze the relationship among the reserved computation resources, the computation tasks of mobile users and IoT devices, and the buyback cost. Then, we design an effi- cient wholesale scheme to determine the amount of the wholesaled computation resources, by which the total expected profit of the mobile edge server can be maximized. Given the reserved com- putation resources, we also propose a fast-convergent realtime buyback scheme for mobile edge servers to minimize the buy- back cost. Finally, the simulation results show that our proposed efficient wholesale and buyback scheme can increase the total profit while guaranteeing the computation delay of all the com- putation tasks, especially when the computation workloads are time-varying. Index Terms—Cloud networks, computation resources, Internet of Things (IoT), mobile edge server, profit maximization. I. I NTRODUCTION W ITH the development of mobile applications and the Internet of Things (IoT), various new applications have appeared and blossomed in recent years, e.g., e-Health, virtual reality, autonomous driving, natural language pro- cessing, interactive gaming, and augmented reality [1]–[5]. The quality of experience (QoE) of these emerging appli- cations heavily relies on the underneath communication and Manuscript received September 26, 2018; revised November 6, 2018; accepted November 24, 2018. Date of publication December 6, 2018; date of current version May 8, 2019. This work was supported in part by the Natural Sciences and Engineering Research Council of Canada, in part by the National Natural Science Foundation of China under Grant 61702450 and Grant 61629302, and in part by CSC (China Scholarship Council) and Compute Canada. (Corresponding author: Lin Cai.) Y. Zhang, Y. Li, and L. Cai are with the Department of Electrical and Computer Engineering, University of Victoria, Victoria, BC V8W 3P6, Canada (e-mail: [email protected]; [email protected]; [email protected]). X. Lan is with the Department of Electrical and Computer Engineering, University of Victoria, Victoria, BC V8W 3P6, Canada, and also with the School of Information Science and Technology, Southwest Jiaotong University, Chengdu 611756, China (e-mail: [email protected]). J. Pan is with the Department of Computer Science, University of Victoria, Victoria, BC V8W 3P6, Canada (e-mail: [email protected]). Digital Object Identifier 10.1109/JIOT.2018.2885453 computation platform, which brings a huge challenge to the design of mobile devices, especially for the size-limited and low-power IoT devices. Furthermore, considering the limited network resources and the increasing computation require- ments, processing all the computation tasks locally or at a remote server may be costly and inefficient. One promis- ing solution is to introduce mobile edge computing (MEC), which has computing capabilities and provides an IT service environment at the edge of networks to take on some com- putation tasks. Using MEC, not only the requirements of IoT devices on computation capability and power supply can be reduced, but also the computation latency of these tasks can be shortened [6]. In MEC, mobile users and IoT devices can upload their computation tasks, especially the latency-sensitive ones, to mobile edge servers, and the mobile edge servers will pro- cess the received computation tasks locally and then send the results back to the mobile users and IoT devices. This process is referred to as mobile computation offloading [7]. By now, MEC has been extensively studied, including system architec- ture [8]–[11], energy management [12]–[16], data transmis- sion [17]–[22], computation resources optimization [23]–[27], and operation efficiency [28]–[32]. Most of the existing works focused on the design of compatible mobile edge servers and efficient computation task processing protocols. A well- established MEC system can support more mobile and IoT applications. However, the profitability of the MEC system, which is important for the wide deployment of MEC, still lacks due attention. Generally, the construction and maintenance costs of an MEC system are high due to its high requirements on both hardware and software and it has to be widely deployed to gain profit. It is difficult for mobile edge servers to generate enough profit in a short term, especially when solely rely- ing on the limited and time-varying computation tasks of the mobile users and IoT devices in their early stage. In this paper, we propose a cost-effective mobile edge-cloud com- puting system to increase the profit of mobile edge servers. In this system, each mobile edge server can divide its computa- tion resources into two parts: one part is reserved to generate profit by processing the computation tasks of mobile users and IoT devices and the rest is wholesaled to the cloud networks as a flexible profit. Note that, when the reserved computation resources are not sufficient to fulfill the requirements of the local computation tasks, the mobile edge server needs to buy back some computation resources from the cloud networks 2327-4662 c 2018 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.

Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

IEEE INTERNET OF THINGS JOURNAL, VOL. 6, NO. 2, APRIL 2019 3455

Efficient Computation Resource Management inMobile Edge-Cloud Computing

Yongmin Zhang , Member, IEEE, Xiaolong Lan, Student Member, IEEE, Yue Li , Student Member, IEEE,

Lin Cai , Senior Member, IEEE, and Jianping Pan, Senior Member, IEEE

Abstract—We study the computation resource managementproblem in mobile edge-cloud computing networks. Mobile edgeservers shall first satisfy the computation requirements of mobileusers and Internet of Things (IoT) devices, and then whole-sale redundant computation resources to the cloud networksto maximize their profit. Due to the coarse time granularity ofwholesales, computation resource buyback may happen occasion-ally to deal with traffic bursts. Thus, the mobile edge serversneed to make a tradeoff between the wholesale profit and thebuyback cost. In this paper, the computation resource manage-ment problem is modeled as profit maximization. To solve thisproblem, we first analyze the relationship among the reservedcomputation resources, the computation tasks of mobile usersand IoT devices, and the buyback cost. Then, we design an effi-cient wholesale scheme to determine the amount of the wholesaledcomputation resources, by which the total expected profit of themobile edge server can be maximized. Given the reserved com-putation resources, we also propose a fast-convergent realtimebuyback scheme for mobile edge servers to minimize the buy-back cost. Finally, the simulation results show that our proposedefficient wholesale and buyback scheme can increase the totalprofit while guaranteeing the computation delay of all the com-putation tasks, especially when the computation workloads aretime-varying.

Index Terms—Cloud networks, computation resources,Internet of Things (IoT), mobile edge server, profit maximization.

I. INTRODUCTION

W ITH the development of mobile applications and theInternet of Things (IoT), various new applications

have appeared and blossomed in recent years, e.g., e-Health,virtual reality, autonomous driving, natural language pro-cessing, interactive gaming, and augmented reality [1]–[5].The quality of experience (QoE) of these emerging appli-cations heavily relies on the underneath communication and

Manuscript received September 26, 2018; revised November 6, 2018;accepted November 24, 2018. Date of publication December 6, 2018; dateof current version May 8, 2019. This work was supported in part by theNatural Sciences and Engineering Research Council of Canada, in part bythe National Natural Science Foundation of China under Grant 61702450and Grant 61629302, and in part by CSC (China Scholarship Council) andCompute Canada. (Corresponding author: Lin Cai.)

Y. Zhang, Y. Li, and L. Cai are with the Department of Electrical andComputer Engineering, University of Victoria, Victoria, BC V8W 3P6, Canada(e-mail: [email protected]; [email protected]; [email protected]).

X. Lan is with the Department of Electrical and Computer Engineering,University of Victoria, Victoria, BC V8W 3P6, Canada, and also withthe School of Information Science and Technology, Southwest JiaotongUniversity, Chengdu 611756, China (e-mail: [email protected]).

J. Pan is with the Department of Computer Science, University of Victoria,Victoria, BC V8W 3P6, Canada (e-mail: [email protected]).

Digital Object Identifier 10.1109/JIOT.2018.2885453

computation platform, which brings a huge challenge to thedesign of mobile devices, especially for the size-limited andlow-power IoT devices. Furthermore, considering the limitednetwork resources and the increasing computation require-ments, processing all the computation tasks locally or at aremote server may be costly and inefficient. One promis-ing solution is to introduce mobile edge computing (MEC),which has computing capabilities and provides an IT serviceenvironment at the edge of networks to take on some com-putation tasks. Using MEC, not only the requirements of IoTdevices on computation capability and power supply can bereduced, but also the computation latency of these tasks can beshortened [6].

In MEC, mobile users and IoT devices can upload theircomputation tasks, especially the latency-sensitive ones, tomobile edge servers, and the mobile edge servers will pro-cess the received computation tasks locally and then send theresults back to the mobile users and IoT devices. This processis referred to as mobile computation offloading [7]. By now,MEC has been extensively studied, including system architec-ture [8]–[11], energy management [12]–[16], data transmis-sion [17]–[22], computation resources optimization [23]–[27],and operation efficiency [28]–[32]. Most of the existing worksfocused on the design of compatible mobile edge serversand efficient computation task processing protocols. A well-established MEC system can support more mobile and IoTapplications. However, the profitability of the MEC system,which is important for the wide deployment of MEC, stilllacks due attention.

Generally, the construction and maintenance costs of anMEC system are high due to its high requirements on bothhardware and software and it has to be widely deployed togain profit. It is difficult for mobile edge servers to generateenough profit in a short term, especially when solely rely-ing on the limited and time-varying computation tasks of themobile users and IoT devices in their early stage. In thispaper, we propose a cost-effective mobile edge-cloud com-puting system to increase the profit of mobile edge servers. Inthis system, each mobile edge server can divide its computa-tion resources into two parts: one part is reserved to generateprofit by processing the computation tasks of mobile users andIoT devices and the rest is wholesaled to the cloud networksas a flexible profit. Note that, when the reserved computationresources are not sufficient to fulfill the requirements of thelocal computation tasks, the mobile edge server needs to buyback some computation resources from the cloud networks

2327-4662 c© 2018 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.

Page 2: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

3456 IEEE INTERNET OF THINGS JOURNAL, VOL. 6, NO. 2, APRIL 2019

at a higher buyback price. Therefore, there exists a tradeoffbetween the wholesale profit and the buyback cost. By design-ing an efficient computation resource management scheme, thetotal profit of the mobile edge server can be increased, espe-cially when the computation tasks of the mobile users and IoTdevices are time-varying.

In this paper, we formulate the computation resourcemanagement problem at the mobile edge server as profitmaximization. Since the time granularities of the wholesaleand the buyback are different, it is difficult to determine thewholesaled and the buyback computation resources simulta-neously. To solve this problem, we first derive the minimalexpected buyback cost by analyzing the relationship amongthe reserved computation resources, the distribution of com-putation workloads, and the buyback cost. Then, we prove thatthe profit maximization problem is convex with respect to thereserved computation resources at each time slot and designa Bisection method-based wholesale scheme to determinethe amount of the wholesaled computation resources effi-ciently. Given the reserved computation resources, we designa fast-convergent realtime buyback scheme (RBS) to adjustthe buyback computation resources according to the real-time computation workloads, such that the total buyback costcan be minimized. Finally, numerical simulations have beenconducted to demonstrate the efficiency of our proposed algo-rithm. The contribution of our works can be summarized inthe following.

1) We propose a cost-effective architecture for mobileedge-cloud computing networks, where each mobileedge server not only serves mobile users and IoT devicesby taking on their computation tasks but also tradeswith the cloud networks by wholesaling and buyingback computation resources based on the time-varyingcomputation workloads.

2) We formulate the computation resource manage-ment problem of the mobile edge server as profitmaximization and derive the minimal expected buybackcost given the reserved computation resources.

3) We propose an efficient wholesale and buyback scheme(EWBS) to determine the wholesaled and the buy-back computation resources according to the expectedand realtime computation workloads, respectively, suchthat the total profit of the mobile edge server can bemaximized.

4) Simulation results show that the total profit of themobile edge server can be increased by the proposedEWBS, especially when computation workloads aretime-varying.

The rest of this paper is organized as follows. Section IIpresents the operation model of the mobile edge-cloud com-puting networks, and formulates the computation resourcemanagement problem as profit maximization. Section III ana-lyzes the distribution of computation workloads from themobile users and IoT devices and the relationship betweenthe reserved computation resources and the expected buy-back cost. In Section IV, an efficient wholesale scheme(EWS) is designed to determine the wholesaled computationresources for the mobile edge servers and an RBS is designed

Fig. 1. Architecture of the mobile edge-cloud computing system.

to determine the optimal buyback computation resourcesbased on the realtime computation workloads. Section Vdemonstrates the operational performance based on simulationresults. Finally, Section VI concludes this paper.

II. SYSTEM MODEL AND PROBLEM FORMULATION

Considering a mobile cloud-edge computing network, thereare several mobile edge servers to process the computationtasks of mobile users, and IoT devices and cloud networks tocollect computation resources from mobile edge servers. Eachmobile edge server can serve as both a computation server formobile users and IoT devices and a flexible computation unitfor the cloud network. As a computation server, the computa-tion tasks of mobile users and IoT devices should be satisfiedwith no compromise, while as a flexible computation unit, thecomputation resources that wholesaled to the cloud networkscan only be adjusted after a given time duration. Given therandomness of computation tasks and the coarse time granu-larity of wholesales, the reserved computation resources maynot be sufficient to complete all the arrived computation tasksin time, so the mobile edge server needs to buy back somecomputation resources from the cloud networks. Note that, thebuyback price is usually higher than the wholesale price. Thesystem model is shown in Fig. 1.

Generally, different mobile edge servers may have differ-ent limited computation resources and their computation tasksare various and time-varying. To satisfy all the computationtasks, each mobile edge server needs to make a decision on thereserved computation resources and the buyback computationresources. Our goal in this paper is to manage the compu-tation resources of each mobile edge server to maximize thetotal profit of the mobile edge server by utilizing the computa-tion resources efficiently. The definitions of the main notationscan be found in Table I.

A. Service Model of Mobile Edge Servers

Let t denote the tth time slot, where one time slot is thesmallest time duration for mobile edge servers to change theamount of the wholesaled computation resources. Divided onetime slot into K time intervals and let k denote the kth timeinterval during one time slot. Here, one time interval is thesmallest time duration for mobile edge servers to changethe amount of the buyback computation resources from the

Page 3: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

ZHANG et al.: EFFICIENT COMPUTATION RESOURCE MANAGEMENT IN MOBILE EDGE-CLOUD COMPUTING 3457

TABLE INOTATION DEFINITIONS

cloud networks.1 At each time slot, each mobile edge serverneeds to determine the amount of the wholesaled computationresources, and at each time interval, the mobile edge serverneeds to determine the amount of the buyback computationresources.

At time slot t, let Ce,t denote the total amount of theavailable computation resources at mobile edge server e, CI

e,tdenote the amount of the reserved computation resources,and CC

e,t denote the amount of the wholesaled computation

1Generally, one time slot is tens of minutes while one time interval ishundreds of milliseconds.

Fig. 2. Computation resource model of the mobile edge server.

resources, respectively. We have

Ce,t ≥ CIe,t + CC

e,t. (1)

It means that the sum of the reserved and the wholesaledcomputation resources cannot exceed the total available com-putation resources at each mobile edge server during any timeslot. That is, because the mobile edge server may hold somecomputation resources for other purposes.

The mobile edge server processes the computation tasks ofmobile users and IoT devices under the first come first serve(FCFS) policy [33]. If the reserved computation resources CI

e,tare not sufficient to complete all the computation tasks intime, the mobile edge server needs to buy back some com-putation resources from the cloud networks. Let CB

e,k denotethe amount of the buyback computation resources at mobileedge server e from the cloud networks during time interval k.The total amount of available computation resources at mobileedge server e during time interval k can be given by

Ce,k = CIe,k + CB

e,k. (2)

Here, CIe,k = CI

e,t since the reserved computation resources areavailable during each time interval. The computation resourcemodel of each mobile edge server is shown in Fig. 2. Notethat, when one mobile edge server wholesales part of itscomputation resources to the cloud networks, the wholesaledcomputation resources will be dedicated to serve the compu-tation tasks from the cloud networks and cannot be used bythe mobile edge server without permission. When the mobileedge server buys back some computation resources from thecloud networks, part of the wholesaled computation resourcescan be released to the mobile edge server or some compu-tation resources from other mobile edge servers or the cloudnetworks can be allocated to the mobile edge server. Thus,the buyback computation resources maybe are from its whole-saled computation resources or/and the computation resourcesof other mobile edge servers and the cloud networks. If thebuyback computation resources are from its wholesaled com-putation resources, the computation tasks will be processedlocally. Otherwise, part of the computation tasks will be trans-ferred to other mobile edge servers or the cloud networksfor processing purposes, such that the buyback process at themobile edge server is realized.

Let We,k denote the amount of computation workloads thatare arrived at mobile edge server e during time interval k andQe,k denote the unprocessed computation workloads at mobileedge server e at time interval k, respectively. We have

Qe,k = max(

0, Qe,k−1 + We,k − Ce,k

). (3)

Page 4: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

3458 IEEE INTERNET OF THINGS JOURNAL, VOL. 6, NO. 2, APRIL 2019

Since the mobile edge server processes the computation work-loads under the FCFS policy, given the available computationresources {Ce,k′ , k′ = k + 1, k + 2 . . .} in upcoming time slotk′, we can derive the computation delay, denoted by De,k, by

De,k ={

m, if∑k′+m−1

k′=k+1 Ce,k < Qe,k ≤ ∑k′+mk′=k+1 Ce,k

1, if Qe,k ≤ Ce,k+1.(4)

It can be found that, if the unprocessed computation work-load Qe,k is larger than

∑k+m−1k′=k+1 Ce,k and no larger than∑k+m

k′=k+1 Ce,k, the unprocessed computation workload Qe,k

will be finished before/at time interval k + m. Thus, the com-putation delay for the computation tasks that are arrived at themobile edge server during time interval k is m. Hence, thecomputation delay De,k depends on the available computationresources and the unprocessed computation workloads at themobile edge server.

B. Computation Tasks of Mobile Users and IoT Devices

In this paper, we assume that the arrival of computationtasks at mobile edge server e follows a Poisson distributionwith an expected value λe,t during time slot t. Thus, the prob-ability for n computation tasks at the mobile edge server isgiven by

P{n} = eλe,t(λe,t)n

n!, n = 0, 1, 2, . . . .

For each computation task, its computation workload fol-lows an exponential distribution with an expected value of Rt.In addition, there exists a deadline for completing the compu-tation workloads that are uploaded to mobile edge server eduring time slot t, denoted by De,t. To guarantee the ser-vice quality of computation tasks at mobile edge server e,the following constraint should be satisfied:

De,t ≥ De,k. (5)

Since De,k depends on the available computation resources{Ce,k′ , k′ ∈ [k + 1, k + m]}, the mobile edge server needs todetermine the amounts of the wholesaled and the buybackcomputation resources.

C. Profit Model of Mobile Edge Servers

In the mobile edge-cloud computing networks, the profitof each mobile edge server includes two parts: 1) the profitof processing computation tasks from mobile users and IoTdevices and 2) the profit of wholesaling computation resourcesto the cloud networks. It means that the more computationtasks processed and more computation resources wholesaled,the more profit the mobile edge servers generated. However,due to the limited available computation resources at eachmobile edge server, there exists a tradeoff between the amountof the reserved computation resources and the wholesaledones.

Let a1 denote the service price of processing a unit com-putation workload at mobile edge servers. The total expectedprofit of serving mobile users and IoT devices at mobile edge

server e during time slot t, denoted by UIe,t, can be given by

UIe,t = a1

K∑k=1

We,k. (6)

This is because all the computation workloads We,k at mobileedge server e will be processed in time.

Let a2 denote the profit of wholesaling a unit computationresource to the cloud networks. The total expected profit of thewholesaled computation resources during time slot t, denotedby US

e,t, can be given by

USe,t = a2KCC

e,t. (7)

To make sure all the computation tasks at the mobile edgeserver can be completed before their deadlines, the reservedcomputation resources may not be sufficient and some com-putation resources should be bought back from the cloudnetworks. Thus, the expenses of each mobile edge serverinclude two parts: 1) the cost of maintaining the normal oper-ation of the mobile edge server and 2) the cost of buying backcomputation resources from the cloud networks. Note that, thefirst part can be treated as a constant while the second part canbe adjusted by managing the computation resources. Thus, weonly consider the second part while omitting the first part inthis paper for optimization purposes.

Let g(CBe,k) denote the buyback cost of mobile edge server e

for repurchasing CBe,k unit computation resources from the

cloud networks during time interval k. To smooth the buy-back computation resources, g(CB

e,k) usually is an increasing

and convex function of CBe,k [34]. Furthermore, to guarantee

the priority of the buyback computation resources, the buy-back price is much higher than the wholesale price and theservice price. Let UB

e,t denote the total buyback cost duringtime slot t. We have

UBe,t =

K∑k=1

g(

CBe,k

). (8)

Specifically, we set g(CBe,k) = c1CB

e,k + c2(CBe,k)

2 in this paper.Let Ue,t denote the total profit of mobile edge server e dur-

ing time slot t. According to the profit and the cost models,we have

Ue,t = UIe,t + US

e,t − UBe,t. (9)

It can be found that the total profit Ue,t depends on the profitof serving mobile users and IoT devices, the wholesaled com-putation resources and the cost of buying back computationresources from the cloud networks. Note that, both UI

e,t andUB

e,t should be estimated when making the decision on CIe,t.

D. Problem Formulation

In this paper, we intend to design an efficient computa-tion resource management scheme for mobile edge serversto maximize their total profit by making a decision on theamounts of the wholesaled and the buyback computationresources at different time granularities, respectively. Sincethe computation resource management and the processing of

Page 5: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

ZHANG et al.: EFFICIENT COMPUTATION RESOURCE MANAGEMENT IN MOBILE EDGE-CLOUD COMPUTING 3459

computation tasks at mobile edge servers are independent,we focus on the computation resource management for eachmobile edge server.

Generally, mobile edge server e can make a decision on{CI

e,t,∀t} at each time slot and then make a decision on{CB

e,k,∀k} at each time interval. The profit maximizationproblem for mobile edge server e can be formulated as

P0 : maxCI

e,t,CBe,k

∑t

Ue,t (10)

s.t. Ce,t ≥ CIe,t + CC

e,t ∀t (11)

De,t ≥ De,k ∀k, t (12)

CBe,k ≥ 0 ∀k. (13)

The objective is to maximize the total profit of the mobile edgeserver. The first constraint defines the available range of thereserved and the wholesaled computation resources. The sec-ond constraint ensures that all the computation tasks should becompleted before their deadlines. The third constraint showsthat, at each time interval, the mobile edge server can buyback computation resources from the cloud networks. It canbe found that both of CI

e,t and CBe,k affect the total profit of

the mobile edge server. However, since the time granularitiesof these variables are different, it is impossible to obtain theoptimal solution for both of them simultaneously.

For the reserved computation resources CIe,t, we have the

following lemma.Lemma 1: The optimal reserved computation resources CI

e,tshould satisfy CI

e,t ≥ min{Ce,t, λe,tRt}.Proof: To satisfy all the computation tasks, the mobile

edge server needs to buy back some computation resourcesfrom the cloud networks when the reserved computationresources are not sufficient. From the definition of computationdelay in (4), we have

k+De,t∑k′=k+1

Ce,k ≥ Qe,k (14)

to ensure De,t ≥ De,k for all the computation tasks arriv-ing at the mobile edge server during time interval k. Thus,the amount of the buyback computation resources CB

e,k shouldsatisfy

k+De,t∑k+1

CBe,k ≥ max

(0, Qe,k − CI

e,kDe,t

). (15)

If λe,tRt ≥ CIe,t, it means that the arrival of computation work-

loads is higher than the service capability of the reservedcomputation resources. To guarantee that all the computationtasks are completed in time, the mobile edge server needsto buy back some computation resources at a higher price.Thus, the value of US

e,t − UBe,t when CI

e,t > λe,tRt is largerthan that when CI

e,t ≤ λe,tRt. However, the total amount ofthe computation resources at mobile edge server e is lim-ited, CI

e,t = Ce,t holds when λe,tRt ≥ Ce,t. Thus, we haveCI

e,t ≥ min{Ce,t, λe,tRt}.In the following sections, we only analyze the system

performance when CIe,t > λe,tRt. To solve this problem, we

first analyze the distribution of computation workloads and therelationship among the computation workloads, the reservedcomputation resources and the minimal expected buyback cost.Then, we prove that the total profit is a concave functionof the amount of the reserved computation resources and aconvex function of the amount of the buyback computationresources based on the queueing model. At last, we propose anEWBS to determine the amount of the reserved computationresources based on the minimal expected buyback cost and anRBS given the reserved computation resources to minimizethe buyback cost.

III. QUEUEING MODEL AND ANALYSIS

Generally, the computation task processing at the mobileedge server during one time slot can be treated as an indepen-dent queueing system. According to the queueing theorem, wefirst derive the distribution of the computation workloads at themobile edge server during one time slot, and then analyze therelationship between the reserved computation resources andthe minimal expected buyback cost.

A. Distribution of Computation Workloads

Given the reserved computation resources CIe,t, the compu-

tation task processing at mobile edge server e during time slott can be modeled as an M/M/1 queueing system [35], in whichthe arrival process of mobile edge server e during time slot tfollows a Poisson process with λe,t while the service time ofcomputation tasks at the mobile edge server follows an expo-nential distribution with μe,t = CI

e,t/Rt. The probability thatmobile edge server e has n computation tasks in its queueingsystem at any time slot t, denoted by Pe

n,t, can be given by

Pen,t =

(λe,t

μe,t

)n

Pe0,t (16)

where

Pe0,t = 1 − λe,t

μe,t. (17)

If the number of computation tasks is n, the amount ofcomputation workloads follows a Gamma(n, 1/Rt) distribu-tion. The corresponding probability density function (PDF) inthe shape-rate parametrization is

f(

x; n, 1/Rt

)= xn−1e

− xRt(

Rt

)n(n − 1)!

(18)

where x ≥ 0.Let X denote the total amount of computation workloads

at mobile edge server e. The cumulative distribution function(CDF), denoted by FX(x), and the PDF, denoted by fX(x), ofcomputation workloads in the queueing system is given by

FX(x) = Pr(X ≤ x) (19)

=∞∑

n=0

Pen,t

∫ x

0f(

x; n, 1/Rt

)dx

= Pe0,tu(x) +

∫ x

0

∞∑n=1

Pen,t

xn−1e− x

Rt(Rt

)n(n − 1)!

dx

Page 6: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

3460 IEEE INTERNET OF THINGS JOURNAL, VOL. 6, NO. 2, APRIL 2019

=(

1 − λe,t

μe,t

)[u(x) + λe,t

λe,t − μe,te

(λe,tμe,t

−1)

xRt

]

fX(x) = ∂FX(x)

∂x

=(

1 − λe,t

μe,t

)[δ(x) + λe,t

μe,tRte

(λe,tμe,t

−1)

xRt

](20)

where u(x) and δ(x) are step function and impulse responsefunction, respectively. Note that, given any amount ofcomputation workloads, we can obtain the correspondingPDF and CDF.

B. Buyback Model

If the computation workload is larger than the servicecapability of the reserved computation resources, part of thecomputation tasks cannot be completed in time. To guaranteethe system performance, the mobile edge server needs to buyback some computation resources from the cloud networks.Comparing to the reserved computation resources, the amountof the buyback computation resources usually is low. Weassume that the buyback computation resources will not affectthe status of the queueing system.

Let X denote the amount of computation workloads thatshould be completed in time. The amount of the buybackcomputation resources at time interval k, denoted by εe,k,satisfies

εe,k ≥{

X − CIe,tDe,t, if X ≥ CI

e,tDe,t

0, otherwise.(21)

It means that the amount of the buyback computation resourcesεe,k is an increasing function of the computation work-loads X and a decreasing function of the reserved computationresources CI

e,t. Given the distributions of computation work-loads in (19) and (20), we can obtain the expected amount ofthe buyback computation resources during [k + 1, k + De,t],denoted by εe,k, which can be given by

εe,k ≥∫ ∞

CIe,tDe,t

fX(x)εe,kdx

= λe,tRt(CI

e,t − λe,tRt

)2e

(λe,t− CI

e,tRt

)De,t

. (22)

It can be found that, εe,k is a decreasing function of thereserved computation resources CI

e,t. Since each computationtask should be completed before its deadline De,t, we have

k+De,t∑k′=k+1

CBe,k ≥ εe,k (23)

where k can be any time interval during time slot t. Accordingto the buyback cost in (8), we have

UBe,t =

K∑k=1

∫ ∞

CIe,tDe,t

fX(x)g(

CBe,k

)dx. (24)

To minimize the buyback cost, we have the following lemma.Lemma 2: Given the reserved computation resources CI

e,t,the minimal buyback cost, denoted by UB

e,t, is given by (25),shown at the bottom of this page.

Proof: Given the reserved computation resources CIe,t, the

amount of the buyback computation resources satisfies (21)and the expected one can be given by (22). To minimize thebuyback cost UB

e,t, we have the following problem:

minCB

e,k

K∑k=1

∫ ∞

CIe,tDe,t

fX(x)g(

CBe,k

)dx

s.t. Constraints (22) and (23) ∀k

CBe,k ≥ 0 ∀k.

Given CIe,t, the value of fX(x) in (20) for any x is a constant.

Since the objective function is an increasing and convex func-tion of CB

e,k and all the constraints are linear, the problem isa convex optimization problem. Since constraint (23) shouldbe satisfied during any time duration [k + 1, k + De,t], buy-ing computation resources back equally is the best solution tominimize the total buyback cost. Thus, the minimal buybackcost can be given by (25).

Note that, for different reserved computation resources, thevalues of UB

e,t are different.

IV. OPTIMAL RESERVATION AND BUYBACK SCHEME

Based on the above analysis, we have derived the rela-tionship between the reserved computation resources and theminimal expected buyback cost. In this section, we first designan EWS for the mobile edge server to manage its reserved andwholesale computation resources at each time slot, such thatthe total expected profit can be maximized. Then, based on therealtime information of computation workloads, we design anRBS to minimize the buyback cost.

A. Efficient Wholesale Scheme

Given the arrival of computation workloads, the profit ofserving the mobile users and IoT devices is a constant accord-ing to (6). That is, because all the computation tasks should becompleted in time. Thus, UI

e,t can be treated as a constant andProblem P0, shown in (10), can be written as the following:

P1 : maxCI

e,t,CBe,k

∑t

USe,t − UB

e,t (26)

UBe,t =

K∑k=1

∫ ∞

CIe,tDe,t

fX(x)g

(x − CI

e,tDe,t

De,t

)dx

= Ke

(λe,t− CI

e,tRt

)De,t

⎛⎜⎝ c1λe,tR2

t(CI

e,t − λe,tRt

)De,t

+ 2c2λe,tR3t CI

e,t((CI

e,t − λe,tRt

)De,t

)2

⎞⎟⎠ (25)

Page 7: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

ZHANG et al.: EFFICIENT COMPUTATION RESOURCE MANAGEMENT IN MOBILE EDGE-CLOUD COMPUTING 3461

s.t. Ce,t ≥ CIe,t + CC

e,t ∀t (27)

Constraints (22) and (23) ∀k (28)

CBe,k ≥ 0 ∀k. (29)

In this problem, the objective is to maximize the profit ofwholesaling computation resources and minimize the buybackcost. The first constraint shows the available range for thereserved and the wholesaled computation resources at eachtime slot. The second and third constraints show the require-ments on the amount of the buyback computation resources ateach time interval.

According to Lemma 1, the reserved computation resourcesCI

e,t satisfies CIe,t ≥ min{Ce,t, λe,tRt}. Furthermore, according

to Lemma 2, given the reserved computation resources CIe,t,

the minimal expected buyback cost can be given by (25). Bynow, Problem P1 can be rewritten as

P1_1 : maxCI

e,t

∑t

USe,t − UB

e,t (30)

s.t. min{

Ce,t, λe,tRt

}≤ CI

e,t ≤ Ce,t ∀t. (31)

It can be found that Ce,t = CIe,t holds when Ce,t ≤ λe,tRt. We

only need to solve Problem P1_1 when Ce,t > λe,tRt.By analyzing the relationship between the objective function∑t US

e,t −UBe,t and the reserved computation resources CI

e,t, wehave the following lemma.

Lemma 3: The objective function∑

t USe,t − UB

e,t is a con-cave function of CI

e,t.Proof: Since the reserved computation resources CI

e,t atdifferent time slots are independent, we just need to prove theconcavity of US

e,t − UBe,t with respect to CI

e,t.1) US

e,t is an increasing and linear function with respect toCC

e,t and CCe,t ≤ Ce,t − CI

e,t always holds. To maximizethe total profit, CC

e,t = Ce,t − CIe,t should be satisfied.

Hence, USe,t is a decreasing and linear function of CI

e,t.2) When CI

e,t > λe,tRt, we have the first and secondderivative of UB

e,t with respect to CIe,t, which are given

by (32) and (33), shown at the bottom of this page. Since[(∂UB

e,t)/(∂CIe,t)] < 0 and [(∂2UB

e,t)/(∂CI2

e,t)] > 0, UBe,t

is a decreasing and convex function of CIe,t.

In summary, the objective function∑

t USe,t − UB

e,t is aconcave function of CI

e,t.

According to Lemma 3, Problem P1_1 is a convexoptimization problem. Thus, there exists a unique optimalsolution for Problem P1_1 [36]–[38], which satisfies thefollowing theorem.

Theorem 1: For Problem P1_1, the global optimal solutionfor CI

e,t satisfies

⎧⎪⎪⎪⎪⎨⎪⎪⎪⎪⎩

CIe,t = λe,tRt, if

∂UBe,t

∂CIe,t

|CIe,t=λe,t Rt

> −a2K

CIe,t = Ce,t, if

∂UBe,t

∂CIe,t

|CIe,t=Ce,t

< −a2K

− ∂UBe,t

∂CIe,t

− a2K = 0, otherwise.

(34)

Proof: Since [(∂2UBe,t)/(∂CI2

e,t)] > 0, [(∂UBe,t)/(∂CI

e,t)]is an increasing function of CI

e,t. According to the extremevalue theorem, [(∂(US

e,t − UBe,t))/(∂CI

e,t)] = −a2K −[(∂UB

e,t)/(∂CIe,t)] = 0 is a sufficient condition for the optimal

solution of Problem P1_1. Thus, according to the value of[(∂UB

e,t)/(∂CIe,t)], we can divide the optimal solution for CI

e,tinto three cases.

1) [(∂UBe,t)/(∂CI

e,t)] > −a2K when CIe,t = λe,tRt.

2) [(∂UBe,t)/(∂CI

e,t)] < −a2K when CIe,t = Ce,t.

3) [(∂UBe,t)/(∂CI

e,t)] ≤ −a2K when CIe,t = λe,tRt and

[(∂UBe,t)/(∂CI

e,t)] ≥ −a2K when CIe,t = Ce,t.

For case i), the optimal solution is λe,tRt since [(∂(USe,t −

UBe,t))/(∂CI

e,t)] < 0 and USe,t − UB

e,t is a decreasing functionof CI

e,t.For case ii), the optimal solution is Ce,t since [(∂(US

e,t −UB

e,t))/(∂CIe,t)] > 0 and US

e,t − UBe,t is an increasing function

of CIe,t.

For case iii), USe,t − UB

e,t increases first and then decreases.According to the extreme value theorem, the maximal valuewill be obtained when −[(∂UB

e,t)/(∂CIe,t)] − a2K = 0.

By calculating the value of [(∂UBe,t)/(∂CI

e,t)], we can clas-sify the optimal solution into one of these three cases inTheorem 1. For cases i) and ii), the optimal solution can beobtained directly. For case iii), an efficient wholesale algorithmshould be designed to find the optimal solution.

Since [(∂2UBe,t)/(∂CI2

e,t)] > 0, [(∂UBe,t)/(∂CI

e,t)] is anincreasing function of CI

e,t in [λe,tRt, Ce,t]. Bisection method isone of most efficient methods to search the optimal solution fora convex problem. Here, we design a Bisection method-based

∂UBe,t

∂CIe,t

= −Kλe,tR2t

De,t

⎡⎢⎣ c1De,t(

CIe,t − λe,tRt

)Rt

+ c1 + 2c2CIe,t(

CIe,t − λe,tRt

)2+

2c2

(CI

e,t + λe,tRt

)Rt

(CI

e,t − λe,tRt

)3De,t

⎤⎥⎦e

(λe,t− CI

e,tRt

)De,t

< 0 (32)

∂2UBe,t

∂CI2e,t

= Kλe,t

⎡⎢⎣ c1De,t

CIe,t − λe,tRt

+ c1(1 + Rt) + 2c2RtCIe,t(

CIe,t − λe,tRt

)2+

2c1 + 2c2

(CI

e,t + λe,tRt + CIe,tR

2t + λe,tR3

t

)

(CI

e,t − λe,tRt

)3De,t

+4c2Rt

(2λe,tRt + CI

e,t

)

(CI

e,t − λe,tRt

)4D2

e,t

⎤⎥⎦e

(λe,t− CI

e,tRt

)De,t

> 0 (33)

Page 8: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

3462 IEEE INTERNET OF THINGS JOURNAL, VOL. 6, NO. 2, APRIL 2019

Algorithm 1: EWS

1: Input: (λe,t, Rt, De,t) for computation tasks,(Ce,t, K, a1, a2, T) for the mobile edge server, and (c1, c2)for the cloud networks;

2: For each time slot t3: Set l = λe,tRt and r = Ce,t;

4: Calculate L = ∂UBe,t

∂CIe,t

|CIe,t=l and R = ∂UB

e,t

∂CIe,t

|CIe,t=r;

5: If L > −a2K6: Set CI

e,t = λe,tRt;7: End if8: If R < −a2K9: Set CI

e,t = Ce,t;10: End if11: If L ≤ −a2K and R ≥ −a2K

12: 1) Calculate L = ∂UBe,t

∂CIe,t

|CIe,t=l and R = ∂UB

e,t

∂CIe,t

|CIe,t=r;

13: 2) Set m = (l + r)/2;

14: 3) Calculate M = ∂UBe,t

∂CIe,t

|CIe,t=m;

15: If M = −a2K16: CI

e,t = m and Break;17: End if18: If M < −a2K19: l = m and return to Step 12;20: End if21: If M > −a2K22: r = m and return to Step 12;23: End if24: End if25: End for26: Output: {CI

e,t, CCe,t = Ce,t − CI

e,t∀t};

algorithm to solve the problem P1_1 in case iii). The proposedEWS can be described in Algorithm 1.

It can be found that, at each time slot, the designedEWS checks the value of [(∂UB

e,t)/(∂CIe,t)] at the end

points of the feasible domain, and then determines thereserved and the wholesaled computation resources when[(∂UB

e,t)/(∂CIe,t)]|CI

e,t=m = −a2K. By Algorithm 1, the optimalreserved and the wholesaled computation resources at eachtime slot have been obtained.

However, the amount of the buyback computation resourcesCB

e,k is obtained based on the minimal expected buyback costUB

e,t, which may not be the optimal solution for the realtimesystem. In the following part, we design a fast-convergentRBS for the mobile edge server to manage its buyback pro-cess at each time interval based on the realtime computationworkloads.

B. Realtime Buyback Scheme

At the mobile edge server, the arrival of computation tasksand their computation workloads are time-varying, even ifboth of them follow the given distributions, respectively. Tominimize the buyback cost, the mobile edge server needsto determine the RBS based on the realtime computationworkloads.

Given the reserved computation resources CIe,t, Problem P0

can be rewritten as

P2 : minCB

e,k

∑t

∑k

g(

CBe,k

)(35)

s.t. De,t ≥ De,k ∀k, t (36)

CBe,k ≥ 0 ∀k. (37)

According to the computation delay defined in (4), the compu-tation delay De,k is a nonincreasing function of the availablecomputation resources Ce,k. Furthermore, constraint (36) canbe rewritten as a linear constraint, as

τ+De,t∑k′=τ+1

CBe,k′ ≥ Qe,k′ − CI

e,k′De,t ∀τ (38)

where τ ∈ [k − De,t, k]. Note that the values of [CBe,τ ,∀τ ] are

constants. By now, Problem P2 can be written as

P2_1 : minCB

e,k

∑t

∑k

g(

CBe,k

)(39)

s.t.τ+De,t∑k′=τ+1

CBe,k′ ≥ Qe,k′ − CI

e,k′De,t ∀τ (40)

CBe,k ≥ 0 ∀k. (41)

It can be found that Problem P2_1 is a convex optimizationproblem since the objective function is convex while all theconstraints are linear [36]. Due to the convexity of g(CB

e,k),

we have g(CBe,k) + g(CB

e,k′) ≥ 2g((CBe,k + CB

e,k′)/2). Using theproperties of convexity, we design a heuristic fast-convergentRBS, named as RBS, which is shown in Algorithm 2.

In the proposed RBS, at first, the computation resourcesare bought back equally to minimize the expected buybackcost, i.e.,

CBe,k′ = Qe,k − CI

e,kDe,t

De,t∀k′ ∈ [k + 1, k + De,t

]. (42)

There may exist a gap between the available computationresources and the required ones. Let �e,k′ denote the gapbetween them at time interval k′. We have

�e,k′ =⎡⎣Qe,k′ − CI

e,kDe,t −τ+De,t∑

k′′=τ+1

CBe,k′′

⎤⎦

+

(43)

where [ · ]+ denotes max(0, ·). If �e,k′ > 0, it means that themobile edge server needs to increase the buyback computationresources before time interval k′ by

Ce,k′ = Ce,k′ + �e,k′

k′ − k∀k′ ∈ [k + 1, k′] (44)

and reduce the buyback computation resources after timeinterval k′ by

Ce,k′ = Ce,k′ − �e,k′

k + De,t − k′ ∀k′ ∈ [k′ + 1, k′ + De,t].

(45)

Otherwise, the computation resources are sufficient tocompleted the unprocessed computation tasks in time. ByAlgorithm 2, the buyback computation resources at timeintervals have been smoothened and the total buyback costcan be minimized.

Page 9: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

ZHANG et al.: EFFICIENT COMPUTATION RESOURCE MANAGEMENT IN MOBILE EDGE-CLOUD COMPUTING 3463

Algorithm 2: RBS

1: Input: (We,k, De,t) for computation tasks, (CIe,t) for the

edge server, and (c1, c2) for the cloud networks;2: For each time interval k3: Set {CB

e,k′ ,∀k′ ∈ [k + 1, k + De,t]} by (42);4: For time interval k′5: Calculate the resource gap �e,k′ by (43);6: If �e,k′ > 07: Update {Ce,k′ , ∀k′ ∈ [k + 1, k′]} by (44);8: Update {Ce,k′ , ∀k′ ∈ [k′ + 1, k′ + De,t]} by (45);9: End if

10: End for11: End for12: Output: {CB

e,k′ , ∀k′ ∈ [k + 1, k + De,t]};

Algorithm 3: EWBS1: For each time slot t2: Calculate and output optimal CI

e,t and CCe,t by Algorithm 1;

3: For each time interval k4: Calculate and output optimal CB

e,k by Algorithm 2;5: End for6: End for.

C. Efficient Wholesale and Buyback Scheme

By now, the EWBS can be summarized as Algorithm 3,which has two different time granularities. At each time slot,the reserved and the wholesaled computation resources CI

e,tand CC

e,t can be calculated by Algorithm 1 based on the dis-tribution of computation workloads and the minimal expectedbuyback cost. Then, given the reserved computation resourcesCI

e,t, the buyback computation resources CBe,k can be updated

by Algorithm 2 based on the realtime computation workloads.In this way, the total profit of the mobile edge server can bemaximized.

V. SIMULATIONS

We evaluate the proposed EWBS in mobile edge-cloudcomputing networks and show some numerical results in thissection. The simulation setting is given as follows. The totalamount of the computation resources at the mobile edge serveris Ce,t = 3.2 GHz, the expected computation workloads ofeach computation task is 100 Kb and each bit needs about2000 cycles computation resources to be processed [39]. Inthis paper, one time slot is one hour and one time intervalis 100 ms, respectively. Thus, K = 3.6 × 104. The max-imal computation delay for each computation task is 2 sand De,t = 2 s/100 ms = 20. The arrivals of computationtasks during one second are λe,t = {3, 5, 10} in nonrush,regular, and rush hours, respectively. The price for process-ing computation tasks is a1 = $0.2764/Gb, the price forwholesaling computation resources during one time slot isa2 = $0.2487/(GHz × hour), and the price for buying backcomputation resources is c1 = $7.6007 × 10−5/(GHz × s)and c2 = $2.0729 × 10−4/(GHz × s)2, respectively.2

2a1 is derived from the price for the pay-as-you-go service at MicrosoftAzure, the wholesale price a2 is 0.5a1 = 0.5(a1 × 3600)/2000, and thebuyback price c1 is 1.1a2 = 1.1a2/3600 and c2 is 3c1, respectively.

(a) (b)

Fig. 3. Concavity of Ue,t with respect to CIe,t and the optimal reserved

computation resources CIe,t for different arrivals of computation tasks λe,t .

(a) Concavity of Ue,t . (b) Optimal CIe,t .

We show the expected values of the proposed EWBS inSection V-A and compare the proposed EWBS with the fol-lowing two schemes in Section V-B: 1) SC1, in which themobile edge server does not wholesale/buy back computationresources to/from the cloud networks and denies the extracomputation tasks when its available computation resourcesare not sufficient and 2) SC2, in which the mobile edge serverdoes not wholesale any computation resources to the cloudnetworks and just buy back computation resources from thecloud networks to complete all the computation tasks in time.

A. Performance With Expected Computation Workloads

To demonstrate the performance of the proposed EWBS,we first use the numerical simulation to verify the concavityof the total profit Ue,t with respect to the reserved computa-tion resources CI

e,t in Fig. 3(a). It can be found that, giventhe arrivals of computation tasks, the total profit Ue,t is aconcave function of the reserved computation resources CI

e,t.Furthermore, with the increase of the arrival rate of compu-tation tasks, the available range for the reserved computationresources CI

e,t will be narrowed and the maximal total profitUe,t will be increased. The proposed EWBS aims at findingthe maximal Ue,t and the corresponding CI

e,t. The relation-ship between the optimal reserved computation resources CI

e,tand the arrival rates of computation tasks λe,t is shown inFig. 3(b). The simulation results show that, with the increaseof the arrival rate of computation tasks, the amount of thereserved computation resources increases. That is, becausethe buyback price is much higher than the wholesale priceand more computation resources should be reserved to dealwith the increased buyback cost. Thus, the mobile edge serverneeds to make a tradeoff between the wholesale profit and thebuyback cost.

Beside the arrival of computation tasks, the maximal com-putation delay affects the total profit of the mobile edge server,since it determines the capability of the mobile edge server todeal with the volatility of computation tasks. With differentmaximal computation delays, the optimal reserved compu-tation resources CI

e,t and the maximal total profit Ue,t areshown in Fig. 4. It can be found that, with the increase ofthe maximal computation delay, the maximal profit of themobile edge server increases while the amount of the reservedcomputation resources decreases. Generally, the maximal com-putation delay is the time duration, in which the computation

Page 10: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

3464 IEEE INTERNET OF THINGS JOURNAL, VOL. 6, NO. 2, APRIL 2019

(a) (b)

Fig. 4. Expected maximal profit Ue,t and the corresponding reserved compu-tation resources CI

e,t with different maximal computation delay De,t . (a) Ue,t .(b) CI

e,t .

tasks can be processed by the mobile edge server. With theincrease of the maximal computation delay, the buyback com-putation resources can be smoothed and the buyback cost canbe reduced. Furthermore, the mobile edge server can reservefewer computation resources due to the low buyback cost, suchthat the total profit can be increased.

B. Performance With Realtime Computation Workloads

To evaluate the realtime performance of the proposedEWBS, each part of the maximal profit of the mobile edgeserver and the comparison with SC1 and SC2 schemes withDe,t = 0.5s and De,t = 2s are shown in Fig. 5. It can befound that, with the increase of computation tasks, the profitby serving mobile users and IoT devices UI

e,t increases, butthe profits for the wholesaled and the buyback computationresources, i.e., US

e,t and −UBe,t, decrease. That is, because UI

e,tis a linear function of the completed computation workloadsand all the accepted computation tasks have to been completed.However, to satisfy all the computation tasks, less computationresources can be wholesaled and more computation resourcesshould be bought back, such that UI

e,t is an increasing functionof λe,t while US

e,t and −UBe,t are decreasing ones.

From Fig. 5(b), it can be found that, the proposed EWBScan increase the total profit comparing with the SC1 and theSC2 schemes (except when λe,t > 9 with De,t = 0.5s), espe-cially when the arrival rate of computation tasks is low. Thatis, because the proposed EWBS can make a better trade-off between the wholesale profit and the buyback cost thanthe SC1 scheme or the SC2 scheme. When λe,t > 9 withDe,t = 0.5s, the SC1 scheme generates the highest profit whilethe proposed EWBS generating similar profit with the SC2scheme. That is, because the proposed EWBS and the SC2scheme can guarantee the computation delay of all the compu-tation tasks while the SC1 scheme denying some computationtasks when its computation resources are not sufficient, whichmay hinder the development of the MEC system.

The blocking probabilities of the SC1 scheme and theexpected and the realtime profit at the mobile edge server areshown in Fig. 6. It can be found that, with the increase of com-putation tasks, the blocking probability for the mobile edgeserver with the SC1 scheme increases. Furthermore, when themaximal computation delay reduces, the blocking probabilityincreases much faster than before. From Fig. 6(b), the gapbetween the expected profit and the realtime profit is very

(a) (b)

Fig. 5. Distribution of the maximal profit at the mobile edge server andthe performance comparison with the SC1 and the SC2 schemes. (a) Profit.(b) Comparison with SC1 and SC2.

(a) (b)

Fig. 6. Blocking probabilities for the SC1 scheme and the relation-ship between the expected and realtime profit at the mobile edge server.(a) Blocking probabilities for SC1. (b) Expected and realtime profit.

(a) (b)

(c)

Fig. 7. Two-minute simulation results include the (a) arrival of compu-tation workloads, (b) cumulative computation workloads, and (c) buybackcomputation resources.

small. With the increase of computation tasks, the total profitincreases.

The above numerical results show the performance of theproposed EWBS in one time slot. To demonstrate the realtimeperformance of the proposed EWBS in details, we extract two-minute simulation results when λe,t = 5 and show the resultsin Fig. 7. It can be found that, with the increase of the maximalcomputation delay De,t, the cumulative computation workloadsat the mobile edge server Qe,k increase, but the amount ofthe buyback computation resources decreases. That is because,

Page 11: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

ZHANG et al.: EFFICIENT COMPUTATION RESOURCE MANAGEMENT IN MOBILE EDGE-CLOUD COMPUTING 3465

when the maximal computation delay is large, the mobile edgeserver has a long time duration to reduce the effects of thecomputation tasks with large computation workloads. Giventhe gap between the expected and the realtime computationworkloads, the buyback cost can be reduced by smoothing thebuyback computation resources into a long time duration.

VI. CONCLUSION

In this paper, we proposed a cost-effective architecturefor the mobile edge-cloud computing networks, in which themobile edge server can wholesale and buy back computationresources to/from the cloud networks to maximize their profitwhile ensuring all the computation tasks can be completedin time. The computation resource management problem inmobile edge-cloud computing networks has been formulatedas profit maximization at the mobile edge server. To solvethis problem, we first analyzed the distribution of computationworkloads at the mobile edge server and derived the rela-tionship between the minimal expected buyback cost and thereserved computation resources. Then, we proposed an EWSbased on the expected computation workloads and an RBSbased on the realtime arrival of the computation workloadsto maximize the total profit of the mobile edge server. Thenumerical simulations have been conducted to demonstratethe efficiency of the proposed EWBS, which can increasethe total profit of the mobile edge server, especially when thecomputation tasks are time-varying.

Our proposed EWBS can improve the profitability of themobile edge servers in mobile edge-cloud computing networksunder FCFS policy. It would be interesting to extend theproposed algorithm to more general mobile edge-cloud com-puting networks with multiple classes of computation tasksand different service priorities, such that the QoE of mobileedge servers can be further improved. Another interestingextension is to joint consider the computation resource man-agement among the mobile users, the mobile edge servers andthe cloud networks with communication costs, such that boththe utilization of computation resources and the QoE can beimproved.

REFERENCES

[1] N. Abbas, Y. Zhang, A. Taherkordi, and T. Skeie, “Mobile edge com-puting: A survey,” IEEE Internet Things J., vol. 5, no. 1, pp. 450–465,Feb. 2018.

[2] L. Cai, J. Pan, L. Zhao, and X. Shen, “Networked electric vehicles forgreen intelligent transportation,” IEEE Commun. Stand. Mag., vol. 1,no. 2, pp. 77–83, Jul. 2017.

[3] Y. Li, K. Sun, and L. Cai, “Cooperative device-to-device communicationwith network coding for machine type communication devices,” IEEETrans. Wireless Commun., vol. 17, no. 1, pp. 296–309, Jan. 2018.

[4] J. Chen et al., “Narrowband Internet of Things: Implementations andapplications,” IEEE Internet Things J., vol. 4, no. 6, pp. 2309–2314,Dec. 2017.

[5] X. Peng et al., “BOAT: A block-streaming app execution schemefor lightweight IoT devices,” IEEE Internet Things J., vol. 5, no. 3,pp. 1816–1829, Jun. 2018.

[6] Y. Mao, C. You, J. Zhang, K. Huang, and K. B. Letaief, “A sur-vey on mobile edge computing: The communication perspective,” IEEECommun. Surveys Tuts., vol. 19, no. 4, pp. 2322–2358, 4th Quart., 2017.

[7] S. E. Mahmoodi, R. N. Uma, and K. P. Subbalakshmi, “Optimal jointscheduling and cloud offloading for mobile applications,” IEEE Trans.Cloud Comput., to be published, doi: 10.1109/TCC.2016.2560808.

[8] N. Cheng et al., “Air-ground integrated mobile edge networks:Architecture, challenges, and opportunities,” IEEE Commun. Mag.,vol. 56, no. 8, pp. 26–32, Aug. 2018.

[9] H. Liu et al., “Mobile edge cloud system: Architectures, challenges, andapproaches,” IEEE Syst. J., vol. 12, no. 3, pp. 2495–2508, Sep. 2018.

[10] T. G. Rodrigues, K. Suto, H. Nishiyama, N. Kato, and K. Temma,“Cloudlets activation scheme for scalable mobile edge computing withtransmission power control and virtual machine migration,” IEEE Trans.Comput., vol. 67, no. 9, pp. 1287–1300, Sep. 2018.

[11] J. Ren, H. Guo, C. Xu, and Y. Zhang, “Serving at the edge: A scalableIoT architecture based on transparent computing,” IEEE Netw., vol. 31,no. 5, pp. 96–105, Aug. 2017.

[12] W. Zhang et al., “Energy-optimal mobile cloud computing understochastic wireless channel,” IEEE Trans. Wireless Commun., vol. 12,no. 9, pp. 4569–4581, Sep. 2013.

[13] C. You, K. Huang, and H. Chae, “Energy efficient mobile cloud comput-ing powered by wireless energy transfer,” IEEE J. Sel. Areas Commun.,vol. 34, no. 5, pp. 1757–1771, May 2016.

[14] R. Deng, R. Lu, C. Lai, T. H. Luan, and H. Liang, “Optimal workloadallocation in fog-cloud computing toward balanced delay and powerconsumption,” IEEE Internet Things J., vol. 3, no. 6, pp. 1171–1181,Dec. 2016.

[15] X. Lin, Y. Wang, Q. Xie, and M. Pedram, “Task scheduling with dynamicvoltage and frequency scaling for energy minimization in the mobilecloud computing environment,” IEEE Trans. Surveys Comput., vol. 8,no. 2, pp. 175–186, Mar./Apr. 2015.

[16] J. Zhang et al., “Energy-latency trade-off for energy-aware offloadingin mobile edge computing networks,” IEEE Internet Things J., vol. 5,no. 4, pp. 2633–2645, Aug. 2018.

[17] M. Li, P. Si, and Y. Zhang, “Delay-tolerant data traffic to software-defined vehicular networks with mobile edge computing in smart city,”IEEE Trans. Veh. Technol., vol. 67, no. 10, pp. 9073–9086, Oct. 2018.

[18] Y. Gu, Z. Chang, M. Pan, L. Song, and Z. Han, “Joint radio and com-putational resource allocation in IoT fog computing,” IEEE Trans. Veh.Technol., vol. 67, no. 8, pp. 7475–7484, Aug. 2018.

[19] S. Sardellitti, G. Scutari, and S. Barbarossa, “Joint optimization of radioand computational resources for multicell mobile-edge computing,”IEEE Trans. Signal Process., vol. 1, no. 2, pp. 89–103, Jun. 2015.

[20] Q. Yuan et al., “Toward efficient content delivery for automated driv-ing services: An edge computing solution,” IEEE Netw., vol. 32, no. 1,pp. 80–86, Jan./Feb. 2018.

[21] T. G. Rodrigues, K. Suto, H. Nishiyama, and N. Kato, “Hybrid methodfor minimizing service delay in edge cloud computing through VMmigration and transmission power control,” IEEE Trans. Comput.,vol. 66, no. 5, pp. 810–819, May 2017.

[22] J. Ren, Y. Zhang, N. Zhang, D. Zhang, and X. Shen, “Dynamic channelaccess to improve energy efficiency in cognitive radio sensor networks,”IEEE Trans. Wireless Commun., vol. 15, no. 5, pp. 3143–3156,May 2016.

[23] X. Lyu, H. Tian, C. Sengul, and P. Zhang, “Multiuser joint task offload-ing and resource optimization in proximate clouds,” IEEE Trans. Veh.Technol., vol. 66, no. 4, pp. 3435–3447, Apr. 2017.

[24] Y. Wang, M. Sheng, X. Wang, L. Wang, and J. Li, “Mobile-edge com-puting: Partial computation offloading using dynamic voltage scaling,”IEEE Trans. Commun., vol. 64, no. 10, pp. 4268–4282, Oct. 2016.

[25] F. Wang, J. Xu, X. Wang, and S. Cui, “Joint offloading and comput-ing optimization in wireless powered mobile-edge computing systems,”IEEE Trans. Wireless Commun., vol. 17, no. 3, pp. 1784–1797,Mar. 2018.

[26] J. Zheng, Y. Cai, Y. Wu, and X. S. Shen, “Dynamic computa-tion offloading for mobile cloud computing: A stochastic game-theoretic approach,” IEEE Trans. Mobile Comput., to be published,doi: 10.1109/TMC.2018.2847337.

[27] Y. Wu, K. Ni, C. Zhang, L. Qian, and D. H. Tsang, “NOMA assistedmulti-access mobile edge computing: A joint optimization of computa-tion offloading and time allocation,” IEEE Trans. Veh. Technol., to bepublished, doi: 10.1109/TVT.2018.2875337.

[28] H. Guo, J. Liu, J. Zhang, W. Sun, and N. Kato, “Mobile-edge computa-tion offloading for ultra-dense IoT networks,” IEEE Internet Things J.,to be published, doi: 10.1109/JIOT.2018.2838584.

[29] Y. Kim, J. Kwak, and S. Chong, “Dual-side optimization for cost-delaytradeoff in mobile edge computing,” IEEE Trans. Veh. Technol., vol. 67,no. 2, pp. 1765–1781, Feb. 2018.

[30] X. Chen, “Decentralized computation offloading game for mobilecloud computing,” IEEE Trans. Parallel Distrib. Syst., vol. 26, no. 4,pp. 974–983, Apr. 2015.

Page 12: Efficient Computation Resource Management in Mobile Edge ...cai/iot19-edge.pdf · mobile users and IoT devices and the relationship between the reserved computation resources and

3466 IEEE INTERNET OF THINGS JOURNAL, VOL. 6, NO. 2, APRIL 2019

[31] X. Chen, L. Jiao, W. Li, and X. Fu, “Efficient multi-user computationoffloading for mobile-edge cloud computing,” IEEE/ACM Trans. Netw.,vol. 24, no. 5, pp. 2795–2808, Oct. 2016.

[32] J. Ren, Y. Guo, D. Zhang, Q. Liu, and Y. Zhang, “Distributed and effi-cient object detection in edge computing: Challenges and solutions,”IEEE Netw., vol. 32, no. 6, pp. 137–143, Nov./Dec. 2018.

[33] L. F. Bittencourt, J. Diaz-Montes, R. Buyya, O. F. Rana, andM. Parashar, “Mobility-aware application scheduling in fog computing,”IEEE Cloud Comput., vol. 4, no. 2, pp. 26–35, Mar./Apr. 2017.

[34] I. Menache, A. Ozdaglar, and N. Shimkin, “Socially optimal pricing ofcloud computing resources,” in Proc. 5th Int. ICST Conf. Perform. Eval.Methodol. Tools (ICST), 2011, pp. 322–331.

[35] S. Sthapit, J. Thompson, N. M. Robertson, and J. Hopgood,“Computational load balancing on the edge in absence ofcloud and fog,” IEEE Trans. Mobile Comput., to be published,doi: 10.1109/TMC.2018.2863301.

[36] S. Boyd and L. Vandenberghe, Convex Optimization. Cambridge, U.K.:Cambridge Univ. Press, 2004.

[37] Y. Zhang, J. Chen, L. Cai, and J. Pan, “EV charging network design withtransportation and power grid constraints,” in Proc. IEEE INFOCOM,2018, pp. 2492–2500.

[38] Y. Zhang, S. He, and J. Chen, “Data gathering optimization by dynamicsensing and routing in rechargeable sensor networks,” IEEE/ACM Trans.Netw., vol. 24, no. 3, pp. 1632–1646, Jun. 2016.

[39] X. Hu, K.-K. Wong, and K. Yang, “Wireless powered cooperation-assisted mobile edge computing,” IEEE Trans. Wireless Commun,vol. 17, no. 4, pp. 2375–2388, Apr. 2018.

Yongmin Zhang (S’12–M’15) received the Ph.D.degree in control science and engineering fromZhejiang University, Hangzhou, China, in 2015.

He was a Visiting Student with the CaliforniaInstitute of Technology, Pasadena, CA, USA. He iscurrently a Post-Doctoral Research Fellow with theDepartment of Electrical and Computer Engineering,University of Victoria, Victoria, BC, Canada. Hiscurrent research interests include resource manage-ment and optimization in wireless networks, smartgrid, and mobile computing.

Dr. Zhang was a recipient of the Best Paper Award of IEEE PIMRC 2012and the IEEE Asia–Pacific Outstanding Paper Award 2018.

Xiaolong Lan (S’18) received the B.E. degreein mathematics and applied mathematics from theChengdu University of Technology, Chengdu, China,in 2012. He is currently pursuing the Ph.D. degree atthe School of Information Science and Technology,Southwest Jiaotong University, Chengdu.

Since 2017, he has been a visiting Ph.D.Student with the University of Victoria, Victoria,BC, Canada. His current research interests includebuffer-aided communication and energy-harvestingwireless communication.

Yue Li (S’18) received the B.E. and M.E. degreesin electrical engineering from the Beijing Instituteof Technology, Beijing, China, in 2006 and 2008,respectively, and the Ph.D. degree in electricaland computer engineering from the University ofVictoria, Victoria, BC, Canada, in 2018.

From 2008 to 2013, he was a StandardsPreresearch Engineer with the Wireless ResearchDepartment, Huawei, Shenzhen, China. He has beenclosely involved in 3GPP standards’ evolvement andholds numerous patents in WCMDA, LTE-A, and

5G systems. He is currently a Post-Doctoral Fellow with the Departmentof Electrical and Computer Engineering, University of Victoria. His currentresearch interests include next-generation cellular systems, wireless networkdesign and optimization, and wireless system modeling and performanceanalysis.

Lin Cai (S’00–M’06–SM’10) received the M.A.Sc.and Ph.D. degrees in electrical and computer engi-neering from the University of Waterloo, Waterloo,ON, Canada, in 2002 and 2005, respectively.

Since 2005, she has been with the Department ofElectrical and Computer Engineering, University ofVictoria, Victoria, BC, Canada, where she is cur-rently a Professor. Her current research interestsinclude communications and networking, with afocus on network protocol and architecture designsupporting emerging multimedia traffic over wire-

less, mobile, ad hoc, and sensor networks.Dr. Cai was a recipient of the NSERC Discovery Accelerator Supplement

Grants in 2010 and 2015, respectively, and the Best Paper Award of IEEEICC 2008 and IEEE WCNC 2011. She has served as a TPC SymposiumCo-Chair for IEEE Globecom’10 and Globecom’13, an Associate Editor forthe IEEE TRANSACTIONS ON WIRELESS COMMUNICATIONS, the IEEETRANSACTIONS ON VEHICULAR TECHNOLOGY, the EURASIP Journal onWireless Communications and Networking, the International Journal of SensorNetworks, and the Journal of Communications and Networks. She is aDistinguished Lecturer of the IEEE VTS Society.

Jianping Pan (S’96–M’98–SM’08) received thebachelor’s and Ph.D. degrees in computer sciencefrom Southeast University, Nanjing, China.

He was a Post-Doctoral Researcher with theUniversity of Waterloo, Waterloo, ON, Canada. Heis currently a Professor of computer science withthe University of Victoria, Victoria, BC, Canada.He was also with the Fujitsu Labs, Tokyo, Japan,and NTT Labs, Tokyo. His area of specializationis computer networks and distributed systems, andhis current research interests include protocols for

advanced networking, performance analysis of networked systems, and appliednetwork security.

Dr. Pan has been serving on the Technical Program Committee ofmajor computer communications and networking conferences, including IEEEINFOCOM, ICC, Globecom, WCNC, and CCNC. He was the Ad Hocand Sensor Networking Symposium Co-Chair of IEEE Globecom 2012and an Associate Editor of the IEEE TRANSACTIONS ON VEHICULAR

TECHNOLOGY. He is a Senior Member of the ACM.