Научная статья на тему 'OPTIMIZATION OF MOBILE DEVICE ENERGY CONSUMPTION IN A FOG-BASED MOBILE COMPUTING OFFLOADING MECHANISM'

OPTIMIZATION OF MOBILE DEVICE ENERGY CONSUMPTION IN A FOG-BASED MOBILE COMPUTING OFFLOADING MECHANISM Текст научной статьи по специальности «Математика»

CC BY
82
14
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
QUEUING SYSTEM / FOG COMPUTING / CLOUD COMPUTING / QUEUING THEORY / OPTIMIZATION / LAPLACE-STIELTJES TRANSFORM

Аннотация научной статьи по математике, автор научной работы — Daraseliya Anastasia V., Sopin Eduard S.

The offloading of computing tasks to the fog computing system is a promising approach to reduce the response time of resource-greedy real-time mobile applications. Besides the decreasing of the response time, the offloading mechanisms may reduce the energy consumption of mobile devices. In the paper, we focused on the analysis of the energy consumption of mobile devices that use fog computing infrastructure to increase the overall system performance and to improve the battery life. We consider a three-layer computing architecture, which consists of the mobile device itself, a fog node, and a remote cloud. The tasks are processed locally or offloaded according to the threshold-based offloading criterion. We have formulated an optimization problem that minimizes the energy consumption under the constraints on the average response time and the probability that the response time is lower than a certain threshold. We also provide the numerical solution to the optimization problem and discuss the numerical results.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «OPTIMIZATION OF MOBILE DEVICE ENERGY CONSUMPTION IN A FOG-BASED MOBILE COMPUTING OFFLOADING MECHANISM»

Research article

UDC 004.75

PACS 02.50.FZ, 02.60.Pn,

DOI: 10.22363/2658-4670-2021-29-1-53-62

Optimization of mobile device energy consumption in a fog-based mobile computing offloading mechanism

Anastasia V. Daraseliya1, Eduard S. Sopin1,2

1 Peoples' Friendship University of Russia (RUDN University) 6, Miklukho-Maklaya St., Moscow, 117198, Russian Federation 2 Federal Research Center "Computer Science and Control" of the Russian Academy of Sciences (FRC CSC RAS) 44-2, Vavilova St., Moscow 119333, Russian Federation

(received: March 5, 2021; accepted: March 12, 2021)

The offloading of computing tasks to the fog computing system is a promising approach to reduce the response time of resource-greedy real-time mobile applications. Besides the decreasing of the response time, the offloading mechanisms may reduce the energy consumption of mobile devices. In the paper, we focused on the analysis of the energy consumption of mobile devices that use fog computing infrastructure to increase the overall system performance and to improve the battery life. We consider a three-layer computing architecture, which consists of the mobile device itself, a fog node, and a remote cloud. The tasks are processed locally or offloaded according to the threshold-based offloading criterion. We have formulated an optimization problem that minimizes the energy consumption under the constraints on the average response time and the probability that the response time is lower than a certain threshold. We also provide the numerical solution to the optimization problem and discuss the numerical results.

Key words and phrases: queuing system, fog computing, cloud computing, queuing theory, optimization, Laplace-Stieltjes transform

1. Introduction

In recent years, fog computing has received attention from the scientific and industrial community. Many papers were related to opportunities and challenges of fog, focusing primarily on the networking context of the Internet of Things (IoT) [1]. Another one of the most popular topics and pressing research issue is the compromise between the energy-efficiency and the response time in offloading of mobile application tasks to fog computing infrastructure. The paper [2] presents the results of a study on energy consumption, execution delay and payment cost of offloading processes in a fog computing network in terms of queuing theory. Research in [3] focuses on energy-efficient task

© Daraseliya A.V., Sopin E.S., 2021

This work is licensed under a Creative Commons Attribution 4.0 International License http://creativecommons.org/licenses/by/4.0/

offloading, whose main idea is taking into account both energy consumption and schedule delay under fog devices. Energy efficient offloading is also a vital task in the context of the Internet of Things concept [4].

In our previous paper [5], we developed an analytical framework for response time analysis that takes into account the variation of tasks in terms of processing volume. Then in the paper [6], we analyze the two-parameter offloading mechanism that takes into account both the computing complexity and the data size to be transferred in case of offloading. In [7] we derived the cumulative distribution function of the response time in terms of Laplace-Stieltjes Transform. In the current work, we solve the optimization problem by minimizing energy efficiency, subject to the average time constraint and taking into account the probability that the time exceeds a given threshold.

2. Mathematical model

We consider a distributed computing system that consist of mobile devices (MDs), a fog node and a remote cloud. MDs run real-time applications that require significant amount of computational resources. For each task, a MD makes a decision, whether it will be offloaded to the fog node or processed locally. The capacity of the fog node is limited, which means if there are too many tasks offloaded, then some of the offloaded tasks are redirected to the remote cloud to prevent the fog node congestion. In terms of queuing theory, the considered system can be represented as shown in the figure 1.

Figure 1. Mathematical model in terms of queuing network

Assume there are M MDs, each of them generating a flow of tasks with exponentially distributed interarrival times according to Poisson's law with intensity A^, i = 1, ...,M. Each task is characterized by the amount of processing volume required and the data size to be transferred in case of

offloading. We assume that the processing volume (measured in millions of instructions, MI) and the data size (measured in MB) are independent random variables with CDFs Wi (x) and Si (x), probability density functions (PDF) wi (x) and si (x) respectively. MDs process locally served tasks in the FCFS mode with constant serving rate ^i, i = 1,..., M (measured in MIPS).

We propose the offloading mechanism that implies offloading tasks that are "heavy" in terms of processing volume and "light" in terms of data size. Splitting to "heavy" and "light" tasks are done by the threshold Ow on the processing volume and the threshold Os on the data size. Hence, the offloading probability ni 0 on the i-th. MD is evaluated [6], [7] according to the following formula

oo Os

*i,o = J wi(x)dx J si(y)dy = (1-Wi(0w))Si(0s). (1)

0

If a task is processed locally, then the response time consists of processing time on an MD only. If a task is offloaded to the fog node, then the total response time is the sum of task transmission time to the fog node through wireless network, the processing time on the fog node and the transmission time back to the MD. If the fog node is overloaded and an offloaded task is sent to the remote cloud, then the processing time at the fog is replaced by the transmission time between the fog node and the remote cloud, the processing time on the cloud and the transmission time back to the fog node.

We assume that the wireless network provides total bitrate R, which is used to transmit the data of tasks one-by-one in FCFS order, so the transmission time is obtained as the fraction of the data size of a task and total bitrate R. On the other side, the transmission time between the fog node and the cloud is assumed constant.

The fog node provide computational resources by means of virtual machines (VMs), each of them having the constant serving rate \F. The total number of VMs at the fog node is N. The constant serving rate of VMs at the cloud is greater than , and amount of computational resources (VMs) at the remote cloud is assumed to be large enough, so that it cannot be overloaded.

3. The response time analysis 3.1. CDFs of the response time components

The service process at MD i is modeled in terms of a queuing system

M

M/G/1 with arrival intensity Ai, ^ Xi = X. The distribution function of the

i=l

processing volume on a MD can be determined by conditional CDF WMD i (x) as follows

WMD,i (X) =

f wi (Pw) + (wi(x) - Wi(Ow))(1 - Si (Os)) 1 - *i,o

Wi (x)

x > Ow,

(2)

x < O

1 - Ki,o

Having obtained the distribution function of the processing volume WMD i x), we can find the serving time at a MD. By virtue of the fact that the serving rate on the i-th MD is constant and being , its CDF is easily obtained as TMD i (x) = WMD i x). The average serving time at MD i can be found through integration using the CDF TMD i.

If a task is offloaded to the distributed computing infrastructure, it is first transferred through the wireless network to the fog node. The delays in wireless networks are obtained analogously, by employing M/G/l queue. The arrival intensity XF is the sum of the offloading intensities from all MDs

M

XF = ^ Xi0. The CDF Str ¿(x) of the file size to be transmitted is

i=1 ' '

Str, (x) = Uh0(l-W, (Ow))Si (x), X<°s' (3)

{1, x > Os,

and the service time distribution in the wireless network is Ttr i (x) =

Str>i (Rx).

At the fog node, there are N VMs to serve offloaded tasks, so the service process may be modeled by M/G/N/0 queue, where the blocked customers are redirected to the next layer — remote cloud. The arrival intensity is the same as for wireless network — XF. The service time is determined by

1 .(wz(x)-Wz (Ow ))Si (Os), x>Ow,

WF>i (x) = i (4)

.0, x < Ow.

The service time is simply processing volume divided by the service rate , so the CDF of the service time at the fog node is

tf,i № = Wp>г(vFx), (5)

Tp(x) = TF% (x). (6)

af

The probability that a task is redirected to the remote cloud nF is obtained from Erlang formula for M/G/N/0 queues as

= 0^ f^- (XfTf)k

where tf is the average serving time at the fog node, which can be easily evaluated from the CDF TF(x). The service time distribution Tc(x) at the cloud is

Tc>i (x)=Wc>i (jicx). (8)

3.2. The average response time

The total response time is the conditional sum of processing and transmission delays. A task from i-th MD is processed locally with probability 1 — ^i0 on the fog node with probability ni 0 (1 — nF) and on the cloud with probability ni 0nF. In [7], we derived the Laplace-Stieltjes Transforms (LST) for all delay components for the case of Gamma distribution of both processing volume and data size, and obtain the LST of the total response time.

First, we derived the LST TMD i(s) of the service time at the MD i as

o

TMd,i(s)=[e-sx d(TMD, i(x))= 1 ' "

1 — *i , o

Vi

0

— (1 — e-7f (1 + — ^ + &) Pi °w (s6w + Pi) + ffiw

(s5w + )2

,,) + ,,2s 1

- (9)

$s ) ) (sSw +Vi)2 J

with the the LST of <^md i the sojourn time distribution on mobile device i

( \ s(1 — Pi)

Umd ' i(s) =-TVT^-r^, (10)

s — \ + Ai1MD,i(s) 0MD , i (S) = TMD , i (s)uMD , i (S). (11)

Then we obtained the LST TF i(s) and Tc i (s) of the service time distribution at the fog node and cloud, respectively. LST TF i (s) of the service time distribution at the fog node is derived from CDF

o

TF i(8)= [e-s* d(TF i(X)) = e-(^) ^°w(s5r + ^H 5w . (12)

' J ' Ow(s°w +Vi)2

0

LST of the service time distribution in the cloud is obtained by analogy with

TF, i (s).

The LST utr i (s) of the waiting time distribution and the LST $tr i(s) of sojourn time in the wireless network are:

Utr,i (s) = -, ^ &tr,i (s) = Ttr,i (S)Utr, i(S). (13)

S — AF + \Flt r, i (s)

Having obtained the LST of all these delay component distributions, we made use of the convolution formula and obtain the LST r(s) of the response time distribution of a task from MD i:

Ti (S) = (1— )^MD,i (s) + *i,0 (1 — ^F)TF,i(S)^^r,i (s) +

+ ^i,0 *pTc,i (s)tfr,i (s)Tpc (s). (14)

After this we used numerical Reverse LST r(s) to evaluate the CDF r(s) of the response time.

Actually, the average response time can be calculated as

m ^

T = Y, t m' n t>. (15>

^ (fi)

The resulting expressions allow to get the probability n(T) that the response time is lower than a threshold T

n(T) = T(T). (16)

4. The energy consumption analysis

In this section, we present the formulas for the average power consumption of MDs obtained at an earlier stage of research [6].

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

The energy consumption for tasks processed on MD is proportional to the processing volumes of tasks, therefore the average energy consumption Epr,' during locally executing on ¿-th MD can be evaluated as follows:

Epr,' P-pr,'^MD,', (17)

where Ppr>i is the power consumption (W) during the processing of the ¿-th MD, which is considered constant for simplicity of calculations.

The average file size transmitted by i-th MD, can be calculated through integration using CDF Stri (x) from the previous section.

The energy consumption during transmitting is also proportional to the transmission time, so the average energy consumption Etr ' of the i-th VD during task transmission is

Etr,' = ■ (18)

Then the average energy consumption for any ¿-th MD is the weighted sum of processing and transmission energies:

E' = (1- K'fi)Epr,' + K',0Etr,f (19)

At the end, we can evaluate the average energy consumption for a task from an arbitrary MD as follows

m ^

E=Yir\E- ■ (20)

fe0 (SA')

5. Optimization problem

In order to find the minimum energy consumption E under constraints on the average response time and the probability n(T) that the response time is lower than a threshold T, we formulate the optimization problem as follows:

M i=0

T =

M

T

i=0

M £ ^

3=1

M

£ \

^3=1

n(T) < n.

■ Ei ^ min,

r, < T,

(21)

6. Numerical results

In this section, we presented the numerical results of our study. The main metric of interest here is the minimum power consumption E for a task from an arbitrary MD under the constraints from the optimization problem.

We consider a system with M = 20 homogeneous MDs that run the same applications, so the distributions of processing volume and data size of tasks are also the same. The fog nodes can run maximum N = 8 VMs. All values of parameters used in the section are gathered in table 1.

Table 1

Parameter values for the numerical analysis

Parameter Value

M 20

N 8

R 150 Mbps

K 2 tasks/s

lh 4 MIPS

Vf 6 MIPS

Vc 10 MIPS

0.25

0.75

tFG 0.5 s

P ± pr 16 W

Ptr 0.2 W

Figure 2 shows the probability n(T) as a function of processing volume threshold with the response time threshold T = 0.5. The power consumption graph begins to descend only at values of n* = 0.94 and above. This shows that only with a very high threshold value of the probability n(T) that the response time is lower than a threshold T, there will be a gain in terms of energy costs.

0.76

w

§ 0.74

I

i <>.72 o o

| 0.70

0 Oh

1 068 ^ 0.66

0.64

0.90 0.92 0.94 0.96 0.98

Probability threshold II *

Figure 2. Dependence of the minimum power consumption E ^ min on the threshold value

n*, T = 0.5

7. Conclusions

In the paper, we focused on the analysis of the reducing energy consumption of MD's that use fog computing infrastructure to increase the performance and to improve the battery life of mobile devices. We have formulated and solved the problem of energy consumption optimization using constraints on the average response time and the probability that the response time is lower than a certain threshold, on the basis of which we offer some recommendations for offloading the system.

Acknowledgments

This paper has been supported by the RUDN University Strategic Academic Leadership Program (recipient Sopin E., mathematical model development). The reported study was funded by RFBR, project number 20-07-01052 (recipient Daraseliya A., optimization problem). The reported study was funded by RFBR, project number 19-07-00933 (recipient Sopin E., numerical analysis).

References

[1] M. Chiang and T. Zhang, "Fog and IoT: an overview of research opportunities," IEEE Internet of Things Journal, vol. 3, no. 6, pp. 854-864,

2016. DOI: 10.1109/JI0T.2016.2584538.

[2] Z. Chang, Z. Zhou, T. Ristaniemi, and Z. Niu, "Energy efficient optimization for computation offloading in fog computing system," in GLOBECOM 2017 — 2017 IEEE Global Communications Conference,

2017, pp. 1-6. DOI: 10.1109/GL0C0M.2017.8254207.

[3] Y. Jiang, Y. Chen, S. Yang, and C. Wu, "Energy-efficient task offloading for time-sensitive applications in fog computing," IEEE Systems Journal, vol. 13, no. 3, pp. 2930-2941, 2019. DOI: 10.1109/JSYST.2018.2877850.

[4] Q. Li, J. Zhao, Y. Gong, and Q. Zhang, "Energy-efficient computation offloading and resource allocation in fog computing for Internet of Everything," China Communications, vol. 16, no. 3, pp. 32-41, 2019. DOI: 10.12676/j.cc.2019.03.004.

[5] E. S. Sopin, A. V. Daraseliya, and L. M. Correia, "Performance analysis of the offloading scheme in a fog computing system," in 2018 10th International Congress on Ultra Modern Telecommunications and Control Systems and Workshops (ICUMT), 2018, pp. 1-5. DOI: 10.1109/ICUMT. 2018.8631245.

[6] E. Sopin, K. Samouylov, and S. Shorgin, "The analysis of the computation offloading scheme with two-parameter offloading criterion in fog computing," pp. 11-20, 2019. DOI: 10.1007/978-3-030-34914-1_2.

[7] E. Sopin, N. Zolotous, K. Ageev, and S. Shorgin, "Analysis of the response time characteristics of the fog computing enabled real-time mobile applications," Lecture Notes in Computer Science, vol. 12525, pp. 764-779, 2020. DOI: 10.1007/978-3-030-65726-0_9.

For citation:

A. V. Daraseliya, E. S. Sopin, Optimization of mobile device energy consumption in a fog-based mobile computing offloading mechanism, Discrete and Continuous Models and Applied Computational Science 29 (1) (2021) 53-62. DOI: 10.22363/2658-4670-2021-29-1-53-62.

Information about the authors:

Daraseliya, Anastasia V. — PhD student of Department of Applied Probability and Informatics of Peoples' Friendship University of Russia (RUDN University) (e-mail: avdaraseliya@sci.pfu.edu.ru, phone: +7(495)9550927, ORCID: https://orcid.org/0000-0002-6603-2596)

Sopin, Eduard S. — Candidate of Physical and Mathematical Sciences, Assistant professor of Department of Applied Probability and Informatics of Peoples' Friendship University of Russia (RUDN University); Senior Researcher of Institute of Informatics Problems of Federal Research Center "Computer Science and Control" Russian Academy of Sciences (e-mail: sopin-es@rudn.ru, phone: +7(495)9550927, ORCID: https://orcid.org/0000-0001-9082-2152)

УДК 004.75

PACS 02.50.Rz, 02.60.Pn,

DOI: 10.22363/2658-4670-2021-29-1-53-62

Оптимизация энергопотребления мобильных устройств в системе туманных вычислений

А. В. Дараселия1, Э. С. Сопин1,2

1 Российский университет дружбы народов ул. Миклухо-Маклая, д. 6, Москва, 117198, Россия 2 Федеральный исследовательский центр «Информатика и управление» РАН ул. Вавилова, д. 44, кор. 2, Москва, 119333, Россия

Выгрузка задач мобильных вычислений в систему туманных вычислений представляется многообещающим подходом для снижения времени отклика ресурсоёмких мобильных приложений, функционирующих в режиме реального времени. Помимо снижения времени отклика, механизмы выгрузки вычислений помогут также снизить энергопотребление мобильных устройств. В этой статье мы проводим анализ энергопотребления мобильных устройств, которые используют инфраструктуру туманных вычислений для повышения производительности и увеличения времени их автономной работы. Рассматривается трёхуровневая вычислительная система, состоящая из непосредственно мобильного устройства, узла системы туманных вычислений и удалённого облака. Задачи мобильных вычислений могут быть обработаны локально на устройстве или быть выгружены в соответствии с пороговым критерием выгрузки. Сформулирована и решена задача оптимизации энергопотребления при наличии ограничений на среднее время отклика и на вероятность того, что время отклика ниже определённого порога.

Ключевые слова: система массового обслуживания, туманные вычисления, облачные вычисления, оптимизация, преобразование Лапласа-Стилтьеса

i Надоели баннеры? Вы всегда можете отключить рекламу.