11
Research Article Optimization Strategy of Task Offloading with Wireless and Computing Resource Management in Mobile Edge Computing Xintao Wu , 1 Jie Gan , 2 Shiyong Chen , 1 Xu Zhao , 2 and Yucheng Wu 1 1 School of Microelectronics and Communication Engineering, Chongqing University, Chongqing, China 2 Beijing Smart-Chip Microelectronics Technology Co., Ltd., China Correspondence should be addressed to Shiyong Chen; [email protected] Received 12 August 2021; Accepted 9 October 2021; Published 11 November 2021 Academic Editor: Dr. Saba Bashir Copyright © 2021 Xintao Wu et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. Mobile edge computing (MEC) provides user equipment (UE) with computing capability through wireless networks to improve the quality of experience (QoE). The scenario with multiple base stations and multiple mobile users is modeled and analyzed. The optimization strategy of task ooading with wireless and computing resource management (TOWCRM) in mobile edge computing is considered. A resource allocation algorithm based on an improved graph coloring method is used to allocate wireless resource blocks (RBs). The optimal solution of computing resource is obtained by using KKT conditions. To improve the system utility, a semi-distributed TOWCRM strategy is proposed to obtain the task ooading decision. Theoretical simulations under dierent system parameters are executed, and the proposed semi-distributed TOWCRM strategy can be completed with nite iterations. Simulation results have veried the eectiveness of the proposed algorithm. 1. Introduction With the continuous development of the Internet of things and ubiquitous computing, mobile devices are increasingly running resource-intensive applications, such as interactive games and augmented reality [1, 2]. However, the limited resources of mobile devices cannot fully meet the require- ments of these applications for powerful computing power and high speed. In recent years, many solutions have been proposed to solve the problem. In particular, mobile edge computing (MEC) provides a new way for UEs to complete computing tasks. MEC allows user equipment (UE) to o- load computing tasks to network edge nodes through the wireless cellular network and performs the ooading tasks. This not only satises the expansion demand of userscom- puting capabilities but also compensates for the long delay of cloud computing [3]. It is a good method by using small base stations (SBSs) to meet the data rate demand of applications [4, 5]. As one of the key components of 5G, SBSs can enhance the coverage of local hot spots and increase system capacity. Dense network deployment can improve spectrum utilization and reduce end-to-end delay [6, 7]. However, task ooading not only generates additional overhead but also may cause intercell interference as it shares the same wireless frequencies among small cells, which will signicantly inuence the performance of the net- work [8]. Therefore, a reasonable ooading decision and interference management become the key to achieve ecient computation ooading [9]. A lot of works have been devoted to the research of computation ooading. Most of them have only focused on the process of ooading com- puting tasks from UE to MEC [1018]. Only the optimal o- loading decision is considered in [10, 11]. Researchers only focused on optimizing the communication resources [12, 13] or the computing resources [14, 15]. In some works, the combination of optimizing ooading decisions and resource allocation is used to minimize the latency or enhance the system performance [1618]. Recently, research works by combining task ooading and interference man- agement are proposed to improve the system utility [9, 1921]. However, the scene of one user per base station is studied in [19, 20]. The work about wireless resource alloca- tion does not take the minimum transmission rate require- ment of each user into account [9]. Hindawi Wireless Communications and Mobile Computing Volume 2021, Article ID 8288836, 11 pages https://doi.org/10.1155/2021/8288836

Optimization Strategy of Task Offloading with Wireless and

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Optimization Strategy of Task Offloading with Wireless and

Research ArticleOptimization Strategy of Task Offloading with Wireless andComputing Resource Management in Mobile Edge Computing

Xintao Wu ,1 Jie Gan ,2 Shiyong Chen ,1 Xu Zhao ,2 and Yucheng Wu 1

1School of Microelectronics and Communication Engineering, Chongqing University, Chongqing, China2Beijing Smart-Chip Microelectronics Technology Co., Ltd., China

Correspondence should be addressed to Shiyong Chen; [email protected]

Received 12 August 2021; Accepted 9 October 2021; Published 11 November 2021

Academic Editor: Dr. Saba Bashir

Copyright © 2021 Xintao Wu et al. This is an open access article distributed under the Creative Commons Attribution License,which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Mobile edge computing (MEC) provides user equipment (UE) with computing capability through wireless networks to improvethe quality of experience (QoE). The scenario with multiple base stations and multiple mobile users is modeled and analyzed. Theoptimization strategy of task offloading with wireless and computing resource management (TOWCRM) in mobile edgecomputing is considered. A resource allocation algorithm based on an improved graph coloring method is used to allocatewireless resource blocks (RBs). The optimal solution of computing resource is obtained by using KKT conditions. To improvethe system utility, a semi-distributed TOWCRM strategy is proposed to obtain the task offloading decision. Theoreticalsimulations under different system parameters are executed, and the proposed semi-distributed TOWCRM strategy can becompleted with finite iterations. Simulation results have verified the effectiveness of the proposed algorithm.

1. Introduction

With the continuous development of the Internet of thingsand ubiquitous computing, mobile devices are increasinglyrunning resource-intensive applications, such as interactivegames and augmented reality [1, 2]. However, the limitedresources of mobile devices cannot fully meet the require-ments of these applications for powerful computing powerand high speed. In recent years, many solutions have beenproposed to solve the problem. In particular, mobile edgecomputing (MEC) provides a new way for UEs to completecomputing tasks. MEC allows user equipment (UE) to off-load computing tasks to network edge nodes through thewireless cellular network and performs the offloading tasks.This not only satisfies the expansion demand of users’ com-puting capabilities but also compensates for the long delay ofcloud computing [3]. It is a good method by using small basestations (SBSs) to meet the data rate demand of applications[4, 5]. As one of the key components of 5G, SBSs canenhance the coverage of local hot spots and increase systemcapacity. Dense network deployment can improve spectrumutilization and reduce end-to-end delay [6, 7].

However, task offloading not only generates additionaloverhead but also may cause intercell interference as itshares the same wireless frequencies among small cells,which will significantly influence the performance of the net-work [8]. Therefore, a reasonable offloading decision andinterference management become the key to achieve efficientcomputation offloading [9]. A lot of works have beendevoted to the research of computation offloading. Most ofthem have only focused on the process of offloading com-puting tasks from UE to MEC [10–18]. Only the optimal off-loading decision is considered in [10, 11]. Researchers onlyfocused on optimizing the communication resources [12,13] or the computing resources [14, 15]. In some works,the combination of optimizing offloading decisions andresource allocation is used to minimize the latency orenhance the system performance [16–18]. Recently, researchworks by combining task offloading and interference man-agement are proposed to improve the system utility [9,19–21]. However, the scene of one user per base station isstudied in [19, 20]. The work about wireless resource alloca-tion does not take the minimum transmission rate require-ment of each user into account [9].

HindawiWireless Communications and Mobile ComputingVolume 2021, Article ID 8288836, 11 pageshttps://doi.org/10.1155/2021/8288836

Page 2: Optimization Strategy of Task Offloading with Wireless and

The mobile devices can gather air quality data to analyzethe environmental pollution or collect the image data torealize personal identity authentication from monitoringequipment. The MEC server determines whether the taskis processed locally or offloaded to the server according tothe computing capacity of the mobile device, the size of data,the delay, and the energy consumption requirements. Themain contributions in this article are as follows:

(i) The communication model and the computingmodel in a multibase station and multiuser MECscenario are described. The delay and energy con-sumption in local or remote computing areanalyzed

(ii) The user utility is modeled as the weighted sum ofthe delay ratio and energy consumption ratio. Andthe system utility is defined as the sum of all userutilities. The optimization of the system utility isformulated by combining task offloading, wirelessresource allocation, and computing resourceallocation

(iii) The optimal goal is decomposed into three subprob-lems including wireless resource block allocation(RBA), computing resource allocation (CRA), andtask offloading decision. The RBA is solved by usinga resource allocation algorithm based on animproved graph coloring method. The optimalsolution of CRA is obtained by using KKT condi-tions. In task offloading, a semi-distributed task off-loading with wireless and computing resourcemanagement (TOWCRM) strategy is proposed tooptimize the system utility under the constraintsof computing resources

The rest of this article is organized as follows: the relatedworks are discussed in Section 2. The system model withmultiple cells and multiple users in the MEC scenario isdescribed in Section 3. The optimization of the system utilityis formulated in Section 4. In Section 5, wireless resourceoptimization and computing resource allocation are dis-cussed. A semi-distributed TOWCRM algorithm is pro-posed to optimize offloading tasks. The simulation resultsare given and discussed in Section 6. The conclusion of thiswork is described in Section 7.

2. Related Works

Edge computing could be affected by external environment(such as wireless channel, interferences among mobile users,communication link quality, and the status of the communi-cation channel) during offloading [22]. Therefore, it is veryimportant to establish a suitable environment of offloadingpolicy for computation offloading. In [10, 11], these studiesonly paid attention to task offloading without optimizingcommunication and computing resources. It was assumedthat the capacity of cloud computing is unlimited, and somestudies only focused on the optimization of communicationresources in [12, 13]. For instance, to maximize the network

management profit, an optimal solution algorithm based onthe idea of branch-and-price was put forward to addressjoint resource management for device-to-device (D2D) com-munication [12]. Based on combining resource allocationand task assignment, a low-complexity iteration algorithmwas proposed to minimize the task execution latency of allusers subject to task and resource constraints in [13]. In con-trast, only computing resource was optimized during taskoffloading [14, 15]. A new market-based framework wasproposed to efficiently allocate computing resources of het-erogeneous capacity-limited edge nodes (EN) for multiplecompeting services at the network edge in [14]. In [15], asmart contract that exploited the state-of-the-art machinelearning algorithm was used in a private blockchain networkto allocate the edge computing resources. In [16–18], jointcommunication and computing resource optimization wereconsidered during the task offloading. To minimize the aver-age latency of users to complete tasks, a strongly nonconvexproblem with coupled variables was described as jointly con-sidering the offloading decision, computation, and broad-band resource allocation [16]. In [17], the problem of jointservice caching, computation offloading, transmission, andcomputing resource allocation in a scenario of multiple userswith multiple tasks was formulated to minimize the overallcomputation and delay costs. Moreover, the scenario whereeach user had a computation cost constraint was studied.A semi-distributed heuristic offloading decision algorithm(HODA) was proposed to maximize the system utility,which jointly optimized the offloading decision, communi-cation, and computing resources [18].

In addition, there have been also some works that con-sider the joint optimization of task offloading and interfer-ence management at the same time [19–21]. Taskoffloading was studied in a MEC scenario with a single userper cell in [19, 20]. For example, offloading decision wasmade by considering the effect of intercell interference onsystem performance, where physical resource block (PRB)and computing resource allocation were treated as a jointoptimization problem. The MEC server made the offloadingdecision to maximize the overhead, and the PRB was allo-cated by using a graph coloring algorithm [19]. In [21], theproblem of joint task offloading and resource allocationwas studied to maximize the offloading utility, which wasmodeled by the weighted sum of task completion time anddevice energy consumption. The resource allocation (RA)problem using convex and quasiconvex optimization wasaddressed, and a novel heuristic algorithm was proposed tosolve the task offloading. It could achieve a suboptimal solu-tion in polynomial time. However, there was no consider-ation to minimize interferences among mobile users.

3. System Model

This section describes the system model used in our work.Firstly, the network model is introduced in detail. Then,the corresponding communication model and calculationmodel are derived based on the proposed network model.For simplicity, the key notations used in the article are sum-marized in Table 1.

2 Wireless Communications and Mobile Computing

Page 3: Optimization Strategy of Task Offloading with Wireless and

3.1. Network Model. As shown in Figure 1, a two-layer cellu-lar heterogeneous network composed of a macro cell basestation (MBS) and S small cell base stations is considered[19, 20]. The MEC server is deployed on the side of theMBS and can perform multiple computing tasks at the sametime. S SBSs are connected to the MEC server through opti-cal fiber links like the MBS. Let S = f1, 2,⋯, s,⋯, Sg be the

set of SBSs, and there areM UEs associated with each SBS inits coverage. We denote the set of UEs in the coverage areaof s as Us = fu1s , u2s ,⋯, ums ,⋯, uMs g, where ums represents aUE belonging to s. In addition, for simplicity, the mobilityof users or the handover among cells was not consideredas it was assumed in [23–25]. Similar to many previousworks in cloud computing and mobile networks [26–28], itis a semistatic scenario, which means that the position andtransmission channel conditions remain unchanged duringoffloading a task.

3.2. Communication Model. It is assumed that each UE has atime-sensitive task that requires a lot of computing resourcesto complete. Each UE can perform by offloading the com-puting task to the MEC server through its associated SBSor execute the computing task locally. Therefore, we denotethe offloading variable as xums ∈ f0, 1g. xums = 0 means that umsperforms its task locally. xums = 1 means that the user of umschooses to offload the task to the MEC server via a wirelesslink. The task offloading decision can be expressed as X = ½xums �, which is a matrix of S ×M.

Uplink spectrum multiplexing is used in this model. Thespectrum resources of the entire system are divided into Northogonal RBs, and the RB set is defined as N = f1, 2,⋯,n,⋯,Ng The RB associated table is defined as Ys = fynums g,which is a M ×N matrix, where M is the total numberof UEs in the s-th cell and N is the total number ofRBs. ynums = 1 means that the n-th RB is assigned to ums ;otherwise, ynums = 0. And the RB allocation strategy isdefined as Y = fYsg, s ∈ S.

During uplink transmission, each UE and each SBS havea single antenna for sending and receiving messages. Whenums offloads its task to the MEC server for calculation, inter-ference will occur if there are UEs in other SBSs sharing thesame RB(s) with the current ums . As RBs are assignedorthogonally to users in each cell, there is no interference

Table 1: Summary of key notations.

Notation Description

S Set of SBSs

Us Set of UEs in the coverage area of s

X The task offloading decision

Y The RB association strategy

F Computing resource allocation policy

N Set of RBs

B The bandwidth of every RB

xums The offloading variable

ynums RB assigned variable

Inums The interference intensity

Pums The transmission power of ums

Kums The number of RBs assigned to ums

Humt ,S The channel gain between umt and s

Rrums Uplink data rate from ums to s

CTums Computational task of ums

DumsInput data of computation task CTums

CumsWorkloads of computation task CTums

f locumsLocal computing capability of ums

T locums

Local execution time of task CTums

Trums ,off Transmission time of task CTums

to the MEC server

Trums ,exe Execution time of task CTums

at the MEC server

Elocums

Energy consumption of ums when executing its tasklocally

Erums ,off

Energy consumption of ums when offloading its taskCTums

f rumsComputing resources that the MEC server allocates to

umsf Computing resources of the MEC server

βtums Preference of ums on task completion time

βeums Preference of ums on task energy consumption

Wums User utility of ums

Os The set of offloading UEs under each SBS

Rminums

The minimum rate requirement of ums

R1×Os User benefit matrix

RR1×N Channel benefit matrix

SBS3SBS2

SBS1SBS4

UE

UE SBS MBS with the MEC server

Uplink transmissionInterfere�e cable

Figure 1: Cellular heterogeneous network model in mobile edgecomputing.

3Wireless Communications and Mobile Computing

Page 4: Optimization Strategy of Task Offloading with Wireless and

in intracell. The interference transmission power from umtsharing the n-th RB to the s-th cell can be described as

Inums = 〠S

t=1,t≠s〠M

m=1xumt y

nums

Pumt

Kumt

Humt ,S, ð1Þ

where Pumtrepresents the transmission power of umt , Kumt

stands for the number of RBs assigned to umt , and Humt ,Sdenotes the channel gain between umt and s.

Given the decision matrixX and the RB associated strat-egyY , the uploading rate achieved by ums connected to s canbe obtained by Shannon’s formula as [19]

Rrums

X ,Yð Þ = xums 〠N

n=1ynums B log2

1 +Pums

Hums ,s

KumsInums + σ2� �

0@

1A

,

ð2Þ

where σ2 is the variance of background noise, B is the band-width of each RB, Pums

represents the transmission power ofums , Kums

stands for the number of RB allocated to ums , andHums ,s denotes the channel gain between ums and s.

3.3. Calculation Model. The computing task of ums isdescribed as CTums

= <Dums, Cums

> , in which Dums(in kB) rep-

resents the size of transmission data and Cums(in megacycles)

specifies the workload, i.e., the number of CPU cyclesrequired to complete the computing task. The values ofDums

and Cumscan be obtained by carefully analyzing the off-

loading task [29, 30]. The delay and power consumption oflocal and remote computation will be discussed, respectively.

(1) Local computing: let f locums > 0 represent the local com-puting capacity of ums in terms of the number of CPUcycles/s. The computation time T loc

umsfor the local exe-

cution of the task CTumscan be expressed as

T locums

=Cums

f locums, ð3Þ

and the energy consumption Elocums

is denoted as

Elocums

= k f locums

� �2Cums

, ð4Þ

where kð f locums Þ2is the energy consumption per calculation

cycle and k depends on the energy coefficient on the chiparchitecture. According to the actual measurement, k =10−27 is usually adopted [21].

(2) Remote computing: ums is connected to the corre-sponding s through a wireless network, and its taskis offloaded to the MEC server for calculation. The

computing resources provided by the MEC serverare quantified by the computing capacity f (CPUcycles/s), which can be shared among the relatedUEs. The uplink transmission delay of ums can beexpressed as follows:

Trums ,off =

Dums

Rrums

X ,Yð Þ : ð5Þ

When a computing task CTumsis offloaded to the MEC

server, the MEC server allocates specific computingresources to process the task, which is represented by f rums(CPU cycles/s). And the computing resource allocation pro-file is defined as F = f f rums g. During the execution of the task,it is assumed that the calculation speed assigned by the MECserver to each UE is fixed. The time of the MEC server exe-cuting the task is described as

Trums ,exe

=Cums

f rums: ð6Þ

In addition, a feasible computing allocation strategymust satisfy the constraints of computing resources, whichcan be expressed as

〠s∈S

〠ums ∈Us

xums frums

≤ f : ð7Þ

The total delay of ums for finishing the task is given by thefollowing equation:

Trums

= Trums ,exe + Tr

ums ,off =Cums

f rums+

Dums

Rrums

X ,Yð Þ : ð8Þ

Through the above analysis, the energy consumption ofums during the transmission data can be calculated as

Erums ,off

= Pums× Tr

ums ,off=

PumsDums

Rrums

X ,Yð Þ , ð9Þ

where Pumsrepresents the transmitting power of ums .

We mainly consider the energy consumption and delayof UEs, and the computing energy consumption of theMEC server is omitted. As the amount of data returned tothe mobile users is small, the power consumption andlatency of UE receiving the returned data are omitted.

4. Problem Formulation

In this section, the problem of task offloading, wireless RBs,and computing resource allocation is formulated under thedefinition of user and system utility.

In a mobile cloud computing system, UEs’ preference ismainly manifested in task completion time of βt

umsand

energy consumption of βeums. βt

ums, βe

ums∈ ½0, 1�, and βt

ums+ βe

ums

4 Wireless Communications and Mobile Computing

Page 5: Optimization Strategy of Task Offloading with Wireless and

= 1. The quality of experience (QoE) can be described bycomparing the delay and the power consumption of remotecomputing with that of local execution [18, 21]. The userutility of Wums

for ums can be defined as

Wums= βt

ums

T locums

− Trums

T locums

+ βeums

Elocums

− Erums ,off

Elocums

!xums : ð10Þ

βtums

and βeums

can be determined according to the life of

the remaining battery and the mission completion timerequirements. From the above expression, it is clear that itsuser utilityWums

is equal to 0 when the task of ums is executedlocally (xums = 0). When the task of ums is executed on theMEC server ðxums = 1Þ, its user utility Wums

is larger than 0.Given the offloading policy ofX , the RB allocation strat-

egy ofY , and the calculating resource allocation policy of F ,the system utility can be defined as the sum of all user utili-ties and is expressed as follows:

W X ,Y ,Fð Þ =〠s∈S

〠ums ∈Us

Wums: ð11Þ

To maximize the system utility by jointly optimizing taskoffloading, wireless RBs, and computing resource allocationin mobile edge computing, the optimal goal can be formu-lated as

maxX ,Y ,F

W X ,Y ,Fð Þ

s:t:C1 : xums ∈ 0, 1f g∀ums ∈Us, s ∈ S

C2 : ynums ∈ 0, 1f g∀ums ∈Us, n ∈N , s ∈ S ,

C3 : 〠s∈S

〠ums ∈Us

xums frums

≤ f :

ð12Þ

The constraints in the above formula can be interpretedas follows: constraint C1 in (12) implies that the task can beexecuted locally or offloaded to the MEC server for execu-tion. Constraint C2 in (12) indicates whether the n-th RBis assigned to ums . Constraint C3 in (12) ensures that thesum of computing resources allocated to all offloading UEsdoes not exceed the computing capacity of the MEC server.

Due to the existence of integer variables, the above equa-tion is a mixed integer nonlinear program (MINLP) prob-lem [31]. The equation of (12) can be rewritten as follows:

maxX,Y ,F

W X ,Y ,Fð Þ =maxX

maxY ,F

W X ,Y ,Fð Þ� �

: ð13Þ

From (13), it can be seen that offloading decision, RBallocation, and computing resource allocation are decoupledfrom each other [32].

The original problem can be translated into offloadingdecision and resource allocations. In the next section, we willpresent solutions to both the resource allocations and taskoffloading decision.

5. Resource Optimization and TaskOffloading Strategy

In this section, considering the time delay and energy con-sumption demand of UEs, a resource allocation algorithmbased on improved graph coloring is used to allocate RBs.The solution of computing resources is obtained by usingKKT conditions, and a semi-distributed TOWCRM algo-rithm is adopted to optimize the offloading decision.

The set of offloading UEs for the s-th SBS is defined as Os.

If a feasible task offloading decision is given, the objec-tive function of (12) can be translated as follows:

maxX ,F

W X ,Y ,Fð Þ =maxY ,F

〠s∈S

〠ums ∈Us

βtumsβeums

� �− V X ,Y ,Fð Þ

!,

s:t:C1 : Ynums

∈ 0, 1f g∀ums ∈Us, n ∈N , s ∈ S ,

C2 : 〠s∈S

〠ums ∈Us

xums frums

≤ f ,

ð14Þ

where

V X ,Y ,Fð Þ =〠s∈S

〠ums ∈ϑs

βtumsTrums

T locums

+βeumsErums ,off

Elocums

!: ð15Þ

From (14), it is easy to see that ∑s∈S∑ums ∈Usðβt

ums+ βe

umsÞ is

an exact value for a specific offloading decision of X . TheVðX ,Y ,FÞ can be regarded as the total offloading cost ofall UEs who need to be offloaded. Therefore, the equationof (14) can be equivalent to minimize the total offloadingoverheads.

minY ,F

V X ,Y ,Fð Þ =minY ,F

〠s∈S

〠ums ∈Os

ϕums + ψums

Rrums

X ,Yð Þ +〠s∈S

〠ums ∈Os

ηumsf rums

!

s:t:C1 : Ynums

∈ 0, 1f g∀ums ∈Us, n ∈N , s ∈ S ,

C2 : 〠s∈S

〠ums ∈Os

f rums ≤ f ,

ð16Þ

where ∅ums= βt

umsDums

/T locums, ψums

= βtumsDums

Pums/Eloc

ums, and ηums =

βtumsf locums .It can be seen from (16) that RB allocation and comput-

ing resource allocation are decoupled from each other in thetarget and constraint. We can decouple problem (16) intotwo independent problems, namely, resource block alloca-tion (RBA) and computing resource allocation (CRA), andtheir respective solutions are presented in the followingsections.

5.1. Resource Block Allocation (RBA). Taking the first term in(16) as the objective function, the RB assignment problem ofΓðX ,YÞ can be written as

5Wireless Communications and Mobile Computing

Page 6: Optimization Strategy of Task Offloading with Wireless and

minY

Γ X ,Yð Þ =minY

〠s∈S

〠ums ∈Os

ϕums + ψums

Rrums

X ,Yð Þs:t:ynums ∈ 0, 1f g∀ums ∈Us, n ∈N , s ∈ S:

ð17Þ

Note that in the RB allocation phase, it is assumed thatall UEs are transmitted with a fixed transmission power ofPums

. The transmitted power of each UE is equally distributedover each RB assigned to it. From (17), the minimal value ofΓðX ,YÞ is obtained if the transmission rate of each offload-ing UE is maximized.

In order to better illustrate the transmission quality, theminimum transmission rate (when all UEs of the system areoffloaded, computing resources are equally distributed to allUEs) is expressed as

Rminums

=Dums

× fT locums

× f − Cums× S ×M

: ð18Þ

For the above RBA problem, it can be equivalent to thematching problem of the number of offloading UEs andthe number of RBs. Therefore, a resource allocation algo-rithm based on an improved graph coloring method [19] isproposed to solve the above problem. The algorithm flowis simply described as follows:

(1) Initialization (step 1): in this step, the MEC serversets the RB allocation strategy Y to zeros and con-structs S user benefit matrices as R1×ϑs = frums g,where every user rate is rums = B log2ð1 + ðPums

Hums ,s/σ2ÞÞ, ums ∈ ϑs, s ∈ S: At the same time, each UE alsoconstructs its own channel benefit matrix R R1×N =fynums B log2ð1 + ð Pums

Hums ,s/KumsðInums + σ2ÞÞÞ g, ums ∈ ϑs

, s ∈ S

(2) Orthogonal allocation (step 2): if the number of theoffloading UEs is less than or equal to the numberof RBs, RBs are allocated according to a uniform zerofrequency reuse (UZFR) method [9]. Otherwise, theelements in S user benefit matrices are sorted byrums in descending order, and RBs are assigned tothe first N UEs according to the UZFR method

(3) Allocate the RB with the greatest channel benefit(step3): on the basis of step 2, the MEC server selectsa UE with the best user benefit from the remainingUEs. The selected UE starts to update its own chan-nel benefit matrix according to the RB allocationstrategy at this time and then selects the RB withthe greatest channel benefit as the transmission RB.The MEC server deletes the selected UE from theremaining UEs. Step 3 will be repeated until all off-loading UEs are assigned to RB

(4) Check whether all offloading UEs meet the mini-mum rate (step 4): according to (18), all offloadingUEs will be checked whether they meet the mini-mum transmission rate. If satisfied, the algorithm

terminates. If not, these UEs need to continue toallocate RBs. The set of these UEs is denoted as I ′

(5) RB reallocation (step 5): the MEC server selects a UEwith the best user benefit from UEs that needed tocontinue to allocate RBs. The selected UE starts toupdate its own channel benefit matrix according tothe RB allocation strategy at this time and thenselects the RB with the greatest channel benefit asthe transmission RB. The MEC server deletes theselected UE from UEs that needed to continue toallocate RBs. Repeat step 5 until all UEs that do notmeet the minimum rate are once again assignedto RB

(6) Iterative loop (step 6): step 4 to step 5 will berepeated until all UEs meet the minimum rate or I ′=∅. Then, the algorithm terminates and the RBallocation strategy Y∗ is obtained under the offload-ing decision

The optimal objective function of (17) can be calculatedas

min Γ X ,Yð Þ =min 〠s∈S

〠ums ∈Os

ϕums + ψums

Rrums

X ,Y∗ð Þ : ð19Þ

5.2. Computing Resource Allocation (CRA). From (16), com-puting resource allocation (CRA) is to optimize the secondterm of formula (16) and is expressed as follows:

minF

ϕ X ,Fð Þ

s:t:C1 : 〠s∈S

〠ums ∈Os

f rums ≤ f ,

C2 : f rums > 0,

ð20Þ

where

Φ X ,Fð Þ =〠s∈S

〠ums ∈Os

ηumsf rums

: ð21Þ

From the above equation, it is a convex optimizationproblem. And constraint C2 in (20) is slack based onKarush-Kuhn-Tucker conditions, and it can be solved byusing the KKT conditions.

The equivalent Lagrange function of this problem can beexpressed as

L f rums , β� �

=〠s∈S

〠ums ∈ϑs

ηumsf rums

+ β 〠s∈S

〠ums ∈ϑs

f rums − f

!: ð22Þ

Let β > 0 be the Lagrange operator; the derivatives of theLagrange function of Lð f rums , βÞ can be described as

6 Wireless Communications and Mobile Computing

Page 7: Optimization Strategy of Task Offloading with Wireless and

∂L f rums , β� �∂f rums

= −ηums

f rums

� �2 + β: ð23Þ

By setting the above equation equal to 0, the solution ofoptimal computing resource allocation for problem (20) canbe obtained.

f rums

� �∗=

ffiffiffiffiffiffiffiηumsβ

s, ð24Þ

where

〠s∈S

〠ums ∈ϑs

f rums

� �∗= f : ð25Þ

By substituting (24) into (25) and setting f rums = 0, if umsdoes not belong to ϑs, s ∈ S , the solution of β can beobtained as

β∗ =1f〠s∈S

〠ums ∈ϑs

ffiffiffiffiffiffiffiηums

p !2

: ð26Þ

Substituting (26) into (24), the optimal solution can beobtained as follows:

f rums

� �∗=

fffiffiffiffiffiffiffiηums

p∑s∈S∑ums ∈ϑs

ffiffiffiffiffiffiffiηums

p , ums ∈ ϑs, s ∈ S: ð27Þ

The optimal objective function of (20) can be expressedas

Φ X ,F∗ð Þ =∑s∈S∑ums ∈Os

ffiffiffiffiffiffiffiηums

p� �f

: ð28Þ

5.3. Task Offloading Decision. In the previous section, for agiven task offloading decision X , the solutions of RBA andCRA are obtained. According to (13), (16), (19), and (28),the system utility can be expressed as follows:

W∗ Xð Þ = 〠s∈S

〠ums ∈Us

βtums

+ βeums

� �− Γ X ,Y∗ð Þ −Φ X ,F∗ð Þ:

ð29Þ

Given the RB allocation strategy of Y∗ and computingallocation strategy of F∗, the objective function of (13) canbe written as

maxX

W∗ Xð Þs:t:xums ∈ 0, 1f g∀ums ∈Us, s ∈ S:

ð30Þ

From the above equation, it is not a convex function dueto the fact that X is a binary variable. For the purpose of

solving this nonconvex problem, a semi-distributedTOWCRM algorithm consisting of two stages that can finda local optimum to problem (30) is adopted, as shown inAlgorithm 1. In the first stage, each mobile user indepen-dently optimizes its user utility after optimizing wirelessand computing resource allocation and determines whetherto send an offloading request, including the information onmobile user parameters and the features of computationtask. In the second stage, the MEC server determineswhether the offloading user joins the offloading set by com-paring the system utility, which includes the offloading useror not. Finally, the selected mobile users offload their com-putation tasks.

In stage 1, each UE calculates its own user utility Wums,

according to βtumsððT loc

ums− Tr

umsÞ/T loc

umsÞ + βe

umsððEloc

ums− Er

ums ,offÞ/

ElocumsÞ. Moreover, each UE checks whether its user utility is

larger than zero. If it satisfies, an offloading request is sent.Otherwise, an empty message is sent, which indicates thatlocal computation is adopted.

In stage 2, the MEC server waits until it has collected allthe requests and accepts the top N UEs of user utility in theoffloading request. The initial offloading policyX can be got.The corresponding RB allocation strategy of Y∗ and thecorresponding computing resource allocation of F∗ areobtained, respectively. According to (29), the system utilityof WðX ,Y∗,F∗Þ can be obtained. And let K be the set ofUEs that the server accepts requests but does not accept off-loading. The MEC server selects the UE with maximum userutility in K to add offloading policyX , and the RB allocationstrategy Y and the computing resource allocation F will beupdated. According to (19), the system utility WðX ,Y ,FÞcan be obtained. If WðX ,Y ,FÞ >WðX ,Y∗,F∗Þ, theMEC server removes this UE from the offloading policy.Otherwise, the system utility, RB allocation strategy, andcomputing resource allocation are updated. Finally, this UEis removed from the set K , and steps 21 to 33 will berepeated until the set K is equal to∅. The MEC server formsthe RB allocation strategy and computing resource alloca-tion strategy and starts to send offloading decision to UEs.Receiving this message, UEs start to offload their tasksaccordingly.

6. Simulation Results and Analysis

In a centralized MEC network, it consists of one MBS withthe MEC server and four SBSs are deployed in 100 ∗ 100m2. The MBS is located in the center of the area, and thefour SBSs are placed in the four directions of the area. EachSBS has a coverage area of 30m. The radio communicationparameters follow the Third Generation Partnership Projectspecification [33]. It is assumed that the data size of Dums

is420 kB and the workload of Cums

is 1000 megacycles. TheMATLAB® package is used to carry out the simulations,and the system parameters are summarized in Table 2.

In addition, UEs are randomly distributed in the cover-age of each SBS. If not particularly indicated, the numberof RBs is 10. The system utility performance of the proposed

7Wireless Communications and Mobile Computing

Page 8: Optimization Strategy of Task Offloading with Wireless and

TOWCRM strategy is compared with that of the heuristicjoint task offloading scheduling and resource allocationstrategy (hJTORA) [21].

In order to visually show the resource allocation algo-rithm based on improved graph coloring, Figure 2 showsthe RB allocation of UEs. There is a total of one MBS, fourSBSs, and 10 RBs in the whole system, and there are 10UEs associated with each SBS, among which there are 23

Stage 1: at UEs side1: for each base station s ∈ Sdo2: for each device ums ∈Us do3: Y∗ ⟵ improved graph coloring algorithm4: F∗ ⟵ equation (28)5: Wums

⟵ βtumsðTloc

ums− Tr

ums/Tloc

umsÞ + βe

umsðEloc

ums− Er

ums ,of f/Eloc

umsÞ

6: end for7: end for8: if Wums

> 0 then9: send an offloading request10: else11: send NULL12: end ifStage 2: at the MEC side13: Wait until all requests are accepted14: for ði = 0 ; i <N ; i++Þ do15: xums ⟵ arg max ðWums

Þ, ums ∈Us, s ∈ S .16: set X ⟵X ∪ fxums g17: end for18: Y∗ ⟵ step 3; F∗ ⟵ step419: WðX ,Y∗,F∗Þ⟵ equation (29)20: let K be the set of UEs that the server accepts requests but does not accept offloading21: while ∣K ∣ >0 do22: xk ⟵ arg max ðWkÞ, k ∈ K23: X ⟵X ∪ fxkg24: Y ⟵ step 3; F ⟵ step 4; WðX ,Y ,FÞ⟵ step 1925: if WðX ,Y ,FÞ <WðX ,Y∗,F∗Þ then26: X ⟵X/fxkg27: else28: WðX ,Y∗,F∗Þ =WðX ,Y ,FÞ29: Y∗ =Y

30: F∗ =F

31: end if32: K ⟵K/fkg33: end while34: The MEC server forms RB allocation strategy Y and computing resources F and starts to send offloading decision X to UEs

Algorithm 1: Semi-distributed TOWCRM Algorithm.

Table 2: Basic parameters of system simulation.

Parameters Values

RB bandwidth B 1MHz

Number of resource blocks RB 10

UE transmitted power Pums 20 dBm

UEs preference βtums

= βeums 0.5

Input data size Dums 420 kB

Total number of CPU cycles Cums 1000 megacycles

UE computing capacity f locums 0.7GHz

MEC computing capacity f 100GHz

The background noise σ2 -100 dBm

Pathloss from UE to SBS 140:7 + 36:7log10 rð Þ

�e i

ndex

of R

Bs

u1

1 u1

10 u2

1 u2

10 u3

1 u3

10 u4

1 u4

10

SBS1 SBS2 SBS3 SBS412345678910

�e index of UEs

Figure 2: RB allocation based on improved graph coloring.

8 Wireless Communications and Mobile Computing

Page 9: Optimization Strategy of Task Offloading with Wireless and

offloading UEs. We can observe that the UE covered by thesame SBS does not occupy the same RBs, and the RB isreused by the UEs belonging to different SBS, such as the2-th and the 4-th RB. Some UEs are assigned to multipleRBs, such as u21 and u62. The results of RB allocation showthat the resource matching algorithm is effective.

By performing 1000 times of simulation, Figures 3(a)and 3(b) show the system utility performance with differentDums

or Cums, respectively. From Figures 3(a) and 3(b), the

system utility calculated by the proposed TOWCRM strat-egy is higher than that computed by hJTORA. From

Figure 3(a), it can be seen that the system performance oftwo strategies decreases as the tasks’ input data sizeincreases. From Figure 3(b), the system utility becomeslarger as the tasks’ workload increases. This means that thetask with smaller input data or higher workloads willimprove the value of system utility.

From Figure 4, the proportion of offloading usersdecreases, as the number of user increases. This is mainlybecause the capacity of computing resources and the RBsassigned to each offloaded users decreases, as the numberof users increases. Therefore, more tasks tend to be

00

5

10

15

20

4 8 12 16 20 24 28Total number of users

Syste

m u

tility

32 36 40

TOWCRM, Dusm = 220k

TOWCRM, Dusm = 420k

hJTORA, Dusm = 220k

hJTORA, Dusm = 420k

(a) The system utility with different input data sizes (Dums)

00

5

10

15

4 8 12 16 20 24 28Total number of users

Syste

m u

tility

32 36 40

TOWCRM, Cusm = 1000 M

TOWCRM, Cusm = 1500 M hJTORA, C

usm = 1500 M

hJTORA, Cusm = 1000 M

(b) The system utility with different workloads (Cums)

Figure 3: The system utility against different task input data sizes (Dums) or workloads (Cums

).

0 5 10 15 20 25 30 35 40

100

80

Perc

enta

ge o

f UEs

offl

oade

d (%

)

60

40

Total number of users

RB = 10RB = 20RB = 30

Figure 4: The relationship between the proportion of offloadedUEs and the number of UEs.

Num

ber o

f UEs

offl

oade

d

500

5

10

15

20

25

30

100 150MEC computing power (GHz)

200

TOWCRMhJTORA

Figure 5: Comparison of the number of UEs offloaded againstdifferent MEC computing power.

9Wireless Communications and Mobile Computing

Page 10: Optimization Strategy of Task Offloading with Wireless and

processed locally. In addition, the proportion of offloadedusers will increase with the larger number of RBs in thenetwork.

The number of offloading UEs under different comput-ing power is analyzed, as shown in Figure 5. It can be seenthat the number of users offloaded by the TOWCRM andhJTORA algorithms is increasing with the enhancement ofcomputing power. Because the computing power of MECis stronger, the computation time of the offloading tasksbecomes shorter. Therefore, more UEs will tend to offloadtheir tasks to the MEC server to be processed. Moreover,under the same computing power of the MEC server, thenumber of UEs offloaded by the proposed algorithm is gen-erally higher than that by using hJTORA.

Figure 6 shows the total time for finishing all offloadingtasks and energy consumption obtained using TOWCRMwhen UEs’ preferences to time of βt

umsvary from 0.1 to 0.9.

It can be seen that the time is reduced, and the energy con-sumption is increased as βt

umsbecomes larger. In addition,

when the number of users in the system increases, the totaltime and energy consumption of users will be increased.This is because when more users participate in the competi-tion for limited resources, a longer delay and higher energyconsumption of all offloading UEs will occur.

7. Conclusion

In this article, the scenario of a multicell and multiusermobile-edge computing network is modeled and analyzed.The optimization of the user utility and the system utilityis formulated by combining task offloading and wirelessand computing resource management. The original problemis decomposed into resource block allocation (RBA), com-puting resource allocation (CRA), and task offloading deci-sion. The RBA is solved by using a resource allocationalgorithm based on an improved graph coloring method.The optimal solution of CRA is obtained by using KKT con-

ditions. In task offloading, a semi-distributed TOWCRMstrategy is proposed to optimize the system utility underthe constraints of computing resources. Simulation resultsshow the effectiveness of the scheme under different systemparameters. The transmission power of every user is consid-ered a fixed value and is equal to each other for wirelessresource allocation in this work. The power control of eachuser will be studied to improve the system utility in the nextresearch work.

Data Availability

We derived the writing material from different journals asprovided in the references. A MATLAB tool has been uti-lized to simulate our concept.

Conflicts of Interest

The authors declare that there is no conflict of interestregarding the publication of this paper.

Acknowledgments

This work was supported by the 2020 State Grid Corpora-tion of China Science and Technology Program under Grant5700-202041398A-0-0-00.

References

[1] S. Wang, M. Zafer, and K. K. Leung, “Online placement ofmulti-component applications in edge computing environ-ments,” IEEE Access, vol. 5, pp. 2514–2533, 2017.

[2] S. Wang and S. Dey, “Adaptive mobile cloud computing toenable rich mobile multimedia applications,” IEEE Transac-tions on Multimedia, vol. 15, no. 4, pp. 870–883, 2013.

[3] J. Pan and J. McElhannon, “Future edge cloud and edge com-puting for Internet of things applications,” IEEE Internet ofThings Journal, vol. 5, no. 1, pp. 439–449, 2018.

0.10.6

0.7

0.8

0.9

1

1.1

Tim

e (s)

Ener

gy (J

)

1.2

1.3

1.4

1.5

0.2 0.3 0.4 0.5 0.6Users’ preference to time

0.7 0.8 0.90.16

0.18

0.2

0.22

0.24

0.26

0.28

0.3

Time, total number = 40Time, Total number = 32

Energy, total number = 40Energy, total number = 32

Figure 6: Time and energy consumption of all users obtained using TOWCRM.

10 Wireless Communications and Mobile Computing

Page 11: Optimization Strategy of Task Offloading with Wireless and

[4] S. Bu and F. R. Yu, “Green cognitive mobile networks withsmall cells for multimedia communications in the smart gridenvironment,” IEEE Transactions on Vehicular Technology,vol. 63, no. 5, pp. 2115–2126, 2014.

[5] R. Xie, F. R. Yu, H. Ji, and Y. Li, “Energy-efficient resource allo-cation for heterogeneous cognitive radio networks with femto-cells,” IEEE Transactions onWireless Communications, vol. 11,no. 11, pp. 3910–3920, 2012.

[6] B. Yang, G. Mao, M. Ding, X. Ge, and X. Tao, “Dense small cellnetworks: from noise-limited to dense interference-limited,”IEEE Transactions on Vehicular Technology, vol. 67, no. 5,pp. 4262–4277, 2018.

[7] X. Ge, S. Tu, G. Mao, C. Wang, and T. Han, “5G ultra-densecellular networks,” IEEE Wireless Communications, vol. 23,no. 1, pp. 72–79, 2016.

[8] G. Huang and J. Li, “Interference mitigation for femtocell net-works via adaptive frequency reuse,” IEEE Transactions onVehicular Technology, vol. 65, no. 4, pp. 2413–2423, 2016.

[9] J. Zhang, W. Xia, F. Yan, and L. Shen, “Joint computation off-loading and resource allocation optimization in heterogeneousnetworks with mobile edge computing,” IEEE Access, vol. 6,pp. 19324–19337, 2018.

[10] G. Yang, L. Hou, X. He, D. He, S. Chan, and M. Guizani, “Off-loading time optimization via Markov decision process inmobile-edge computing,” IEEE Internet of Things Journal,vol. 8, no. 4, pp. 2483–2493, 2021.

[11] G. Peng, H. Wu, H. Wu, and K. Wolter, “Constrained multi-objective optimization for IoT-enabled computation offload-ing in collaborative edge and cloud computing,” IEEE Internetof Things Journal, vol. 8, no. 17, pp. 13723–13736, 2021.

[12] C. Yi, S. Huang, and J. Cai, “Joint resource allocation fordevice-to-device communication assisted fog computing,”IEEE Transactions on Mobile Computing, vol. 20, no. 3,pp. 1076–1091, 2021.

[13] C. Guo, W. He, and G. Y. Li, “Optimal fairness-aware resourcesupply and demand management for mobile edge computing,”IEEE Wireless Communications Letters, vol. 10, no. 3, pp. 678–682, 2021.

[14] D. T. Nguyen, L. B. Le, and V. Bhargava, “Price-based resourceallocation for edge computing: a market equilibriumapproach,” IEEE Transactions on Cloud Computing, vol. 9,no. 1, pp. 302–317, 2021.

[15] Y. He, Y. Wang, C. Qiu, Q. Lin, J. Li, and Z. Ming, “Block-chain-based edge computing resource allocation in IoT: a deepreinforcement learning approach,” IEEE Internet of ThingsJournal, vol. 8, no. 4, pp. 2226–2237, 2021.

[16] W. Feng, H. Liu, Y. Yao, D. Cao, and M. Zhao, “Latency-awareoffloading for mobile edge computing networks,” IEEE Com-munications Letters, vol. 25, no. 8, pp. 2673–2677, 2021.

[17] G. Zhang, S. Zhang, W. Zhang, Z. Shen, and L. Wang, “Jointservice caching, computation offloading and resource alloca-tion in mobile edge computing systems,” IEEE Transactionson Wireless Communications, vol. 20, no. 8, pp. 5288–5300,2021.

[18] X. Lyu, H. Tian, C. Sengul, and P. Zhang, “Multiuser joint taskoffloading and resource optimization in proximate clouds,”IEEE Transactions on Vehicular Technology, vol. 66, no. 4,pp. 3435–3447, 2017.

[19] C. Wang, F. R. Yu, C. Liang, Q. Chen, and L. Tang, “Joint com-putation offloading and interference management in wirelesscellular networks with mobile edge computing,” IEEE Trans-

actions on Vehicular Technology, vol. 66, no. 8, pp. 7432–7445, 2017.

[20] H. Zhang, L. I. Hu, S. Chen, and H. E. Xiaofan, “Computingoffloading and resource optimization in ultra dense networkswith mobile edge computation,” Journal of Electronics & Infor-mation Technology, vol. 41, no. 5, 2019.

[21] T. X. Tran and D. Pompili, “Joint task offloading and resourceallocation for multi-server mobile-edge computing networks,”IEEE Transactions on Vehicular Technology, vol. 68, no. 1,pp. 856–868, 2019.

[22] Y. Mao, C. You, J. Zhang, K. Huang, and K. B. Letaief, “A sur-vey on mobile edge computing: the communication perspec-tive,” IEEE Communications Surveys & Tutorials, vol. 19,no. 4, pp. 2322–2358, 2017.

[23] A. Roy, S. K. Das, and A. Misra, “Exploiting information the-ory for adaptive mobility and resource management in futurecellular networks,” Wireless Communications IEEE, vol. 11,no. 4, pp. 59–65, 2004.

[24] L. Ma, F. Yu, V. C. M. Leung, and T. Randhawa, “A newmethod to support UMTS/WLAN vertical handover usingSCTP,” IEEE Wireless Communications, vol. 11, no. 4,pp. 44–51, 2004.

[25] F. Yu and V. Krishnamurthy, “Optimal joint session admissioncontrol in integrated WLAN and CDMA cellular networkswith vertical handoff,” IEEE Transactions on Mobile Comput-ing, vol. 6, no. 1, pp. 126–139, 2007.

[26] X. Chen, L. Jiao, W. Li, and X. Fu, “Efficient multi-user compu-tation offloading for mobile-edge cloud computing,”IEEE/ACM Transactions on Networking, vol. 24, no. 5,pp. 2795–2808, 2016.

[27] D. Huang, P. Wang, and D. Niyato, “A dynamic offloadingalgorithm for mobile computing,” IEEE Transactions on Wire-less Communications, vol. 11, no. 6, pp. 1991–1995, 2012.

[28] J. Liu and Q. Zhang, “Code-partitioning offloading schemes inmobile edge computing for augmented reality,” IEEE Access,vol. 7, pp. 11222–11236, 2019.

[29] X. Chen, “Decentralized computation offloading game formobile cloud computing,” IEEE Transactions on Parallel andDistributed Systems, vol. 26, no. 4, pp. 974–983, 2015.

[30] X. Chen, L. Jiao, W. Li, and X. Fu, “Efficient multiuser compu-tation offloading for mobile-edge cloud computing,”IEEE/ACM Transactions on Networking, vol. 24, no. 5,pp. 2795–2808, 2016.

[31] Y. Pochet and L. A. Wolsey, Production Planning by MixedInteger Programming, Springer Science & Business Media, Ber-lin, Germany, 2006.

[32] Y. Cheng, M. Pesavento, and A. Philipp, “Joint network opti-mization and downlink beamforming for CoMP transmissionsusing mixed integer conic programming,” IEEE Transactionson Signal Processing, vol. 61, no. 16, pp. 3972–3987, 2013.

[33] 3rd Generation Partnership Project, “Further advancementsfor E-UTRA physical layer aspects,” Sophia Antipolis Cedex,France, 2010, 3GPP TR 36.814, E-UTRA Access, Tech. Rep..

11Wireless Communications and Mobile Computing