34
1/21 Adaptive Computation Offloading for Mobile Edge Computing Environment Houssemeddine MAZOUZI Direction Nadjib ACHIR, Khaled BOUSSETTA L2TI, Institut Galilée, Université Paris 13 Journée MAGI Calcul scientifique 3 juillet 2018

Adaptive Computation Offloading for Mobile Edge Computing

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Adaptive Computation Offloading for Mobile Edge Computing

1/21

Adaptive Computation Offloading for Mobile Edge ComputingEnvironment

Houssemeddine MAZOUZIDirection

Nadjib ACHIR, Khaled BOUSSETTA

L2TI, Institut Galilée, Université Paris 13

Journée MAGI Calcul scientifique 3 juillet 2018

Page 2: Adaptive Computation Offloading for Mobile Edge Computing

2/21

Outline

1. Context

2. Mobile Edge Computing (MEC)

3. Computation offloading in MEC

4. Our offloading approach

5. Conclusion

Page 3: Adaptive Computation Offloading for Mobile Edge Computing

3/21

Nowadays Mobile Devices

Page 4: Adaptive Computation Offloading for Mobile Edge Computing

4/21

What is the problem?

⇒ how to extendthe capacityof mobiledevice?

User satisfaction on Galaxy S5. Rating system: (1) Very Dissatisfactory (5) Very Satisfactory [1]

.[1] M. Halpern, Y. Zhu, and V. J. Reddi, “Mobile cpu’s rise to power: Quantifying the impact of generational mobile cpu design trends on performance,

energy, and user satisfaction”, in High Performance Computer Architecture (HPCA), 2016 IEEE International Symposium on, IEEE, 2016, pp. 64–76

Page 5: Adaptive Computation Offloading for Mobile Edge Computing

4/21

What is the problem?

⇒ how to extendthe capacityof mobiledevice?

User satisfaction on Galaxy S5. Rating system: (1) Very Dissatisfactory (5) Very Satisfactory [1]

.[1] M. Halpern, Y. Zhu, and V. J. Reddi, “Mobile cpu’s rise to power: Quantifying the impact of generational mobile cpu design trends on performance,

energy, and user satisfaction”, in High Performance Computer Architecture (HPCA), 2016 IEEE International Symposium on, IEEE, 2016, pp. 64–76

Page 6: Adaptive Computation Offloading for Mobile Edge Computing

5/21

The new emerging computing paradigm: Mobile Cloud Computing

I End-to-end network latency tothe closest AWS data centerusing wired network 20-30 ms,up to 50-150 ms on 4G mobilenetwork.

I Ambiant occlusion requiresend-to-end delays under 20ms !!!!!

I What the hell !! Even thecloud is not enough!

Page 7: Adaptive Computation Offloading for Mobile Edge Computing

5/21

The new emerging computing paradigm: Mobile Cloud Computing

I End-to-end network latency tothe closest AWS data centerusing wired network 20-30 ms,up to 50-150 ms on 4G mobilenetwork.

I Ambiant occlusion requiresend-to-end delays under 20ms !!!!!

I What the hell !! Even thecloud is not enough!

Page 8: Adaptive Computation Offloading for Mobile Edge Computing

5/21

The new emerging computing paradigm: Mobile Cloud Computing

I End-to-end network latency tothe closest AWS data centerusing wired network 20-30 ms,up to 50-150 ms on 4G mobilenetwork.

I Ambiant occlusion requiresend-to-end delays under 20ms !!!!!

I What the hell !! Even thecloud is not enough!

Page 9: Adaptive Computation Offloading for Mobile Edge Computing

6/21

The new emerging computing paradigm: extension

InternetOperator Network

Cloud

Edge Node

Network Latency Reduced Latency through Mobile Edge Computing

Virtual Reality World

Mobile Edge Computing Environment

⇒ Ultra-low latency.

⇒ Small capacity.

Page 10: Adaptive Computation Offloading for Mobile Edge Computing

6/21

The new emerging computing paradigm: extension

InternetOperator Network

Cloud

Edge Node

Network Latency Reduced Latency through Mobile Edge Computing

Virtual Reality World

Mobile Edge Computing Environment

⇒ Ultra-low latency.

⇒ Small capacity.

Page 11: Adaptive Computation Offloading for Mobile Edge Computing

7/21

The new emerging computing paradigm: MEC Challenges

1. Placement of the Edge Server (cloudlet) in the network

2. Selection of the Edge Server for whom a user offloads its computation

3. Model of the mobile application: define the offloadable parts, offloadingcondition, virtualization technology

4. Computing resource allocation at the edge server

5. Bandwidth allocation

Page 12: Adaptive Computation Offloading for Mobile Edge Computing

7/21

The new emerging computing paradigm: MEC Challenges

1. Placement of the Edge Server (cloudlet) in the network

2. Selection of the Edge Server for whom a user offloads its computation

3. Model of the mobile application: define the offloadable parts, offloadingcondition, virtualization technology

4. Computing resource allocation at the edge server

5. Bandwidth allocation

Page 13: Adaptive Computation Offloading for Mobile Edge Computing

8/21

Computation offloading: model of the application

Edge Server

Mobile Device

Task transmitted from to mobile device

Dependencies: data, parameters, ...

Local part Remote part (task)

Remote part (task)

The app computation requirement

The amount of the computation to offload

Determine the remotepart:⇒ At the design time:

static offloadingdecision app

⇒ At the runtime:dynamic offloadingdecision app

Page 14: Adaptive Computation Offloading for Mobile Edge Computing

8/21

Computation offloading: model of the application

Edge Server

Mobile Device

Task transmitted from to mobile device

Dependencies: data, parameters, ...

Local part Remote part (task)

Remote part (task)

The app computation requirement

The amount of the computation to offload

Determine the remotepart:⇒ At the design time:

static offloadingdecision app

⇒ At the runtime:dynamic offloadingdecision app

Page 15: Adaptive Computation Offloading for Mobile Edge Computing

9/21

Large MEC: Computation offloading

edge server

Access Point (WiFi)

Page 16: Adaptive Computation Offloading for Mobile Edge Computing

9/21

Large MEC: Computation offloading

Access Point (WiFi)

Static o oading

decision app

Edge server

Dynamic O oading

decision app

Page 17: Adaptive Computation Offloading for Mobile Edge Computing

9/21

Large MEC: Computation offloading

Access Point (WiFi)

Which user should o oad? How much computation?

And to which edge server?

Page 18: Adaptive Computation Offloading for Mobile Edge Computing

10/21

Our Offloading Policy

⇒ Goal: Determine which user should offload, select an edge server and the amount of thecomputation to offload.

I Allocate the bandwidth to each user.

I minimize the offloading cost: cost = β ∗ Energy + (1− β) ∗ Time

I assumptions:⇒ For static offloading decision: aum,n = 1, the whole computation must be offloaded

to MEC.

⇒ For dynamic offloading decision: aum,n ∈ [0, 1], we must find its optimal value.

Page 19: Adaptive Computation Offloading for Mobile Edge Computing

11/21

Problem Formulation: multi-user multi-edge server offloading

Minimize∑M

m∑Nm

n Zum,n

C1 :∑K

k=1 xum,n,k ≤ 1,∀m ∈M, um,n ∈ Nm ⇒ Each task can be offloadto at most one Edge server

C2 : yum,n −∑K

k=1 xum,n,k ≤ 0, ∀m ∈M, um,n ∈ Nm ⇒ Static offloading Decisionapp must be offloaded

C3 : Tum,n ≤ tum,n ,∀m ∈M, um,n ∈ Nm ⇒ QoS constraint

C4 : xum,n,k ≤ gum,n,k , ∀m ∈M, um,n ∈ Nm, k ∈ K ⇒ Edge server support Constraint

C5 :∑M

m (∑Nm

n xum,n,k ∗ ck) ≤ Fk ,∀k ∈ K ⇒ Edge server capacity

C6 : xum,n,k ∈ {0, 1}, ∀m ∈M, um,n ∈ Nm, k ∈ KC7 : aum,n ∈ [0, 1], aum,n ≥ yum,n , ∀m ∈M, um,n ∈ Nm

This problem is NP-hard.

Page 20: Adaptive Computation Offloading for Mobile Edge Computing

11/21

Problem Formulation: multi-user multi-edge server offloading

Minimize∑M

m∑Nm

n Zum,n

C1 :∑K

k=1 xum,n,k ≤ 1,∀m ∈M, um,n ∈ Nm ⇒ Each task can be offloadto at most one Edge server

C2 : yum,n −∑K

k=1 xum,n,k ≤ 0, ∀m ∈M, um,n ∈ Nm ⇒ Static offloading Decisionapp must be offloaded

C3 : Tum,n ≤ tum,n ,∀m ∈M, um,n ∈ Nm ⇒ QoS constraint

C4 : xum,n,k ≤ gum,n,k , ∀m ∈M, um,n ∈ Nm, k ∈ K ⇒ Edge server support Constraint

C5 :∑M

m (∑Nm

n xum,n,k ∗ ck) ≤ Fk ,∀k ∈ K ⇒ Edge server capacity

C6 : xum,n,k ∈ {0, 1}, ∀m ∈M, um,n ∈ Nm, k ∈ KC7 : aum,n ∈ [0, 1], aum,n ≥ yum,n , ∀m ∈M, um,n ∈ Nm

This problem is NP-hard.

Page 21: Adaptive Computation Offloading for Mobile Edge Computing

12/21

Our proposal: DM2-ECOP algorithm

Page 22: Adaptive Computation Offloading for Mobile Edge Computing

12/21

Our proposal: DM2-ECOP algorithm

Page 23: Adaptive Computation Offloading for Mobile Edge Computing

12/21

Our proposal: DM2-ECOP algorithm

MEC Computation Offloading

manager

Local offloading manager 1 Local offloading manager M

subproblem 1: offloading decision

and cloudlet selection

Lagrangian multipliers

subproblem M: offloading decision

and cloudlet selection

Lagrangian multipliers

Local Offloading Requests Local Offloading Requests

Page 24: Adaptive Computation Offloading for Mobile Edge Computing

13/21

DM2-ECOP: Local offloading manager

1- Estimate the bandwidth allocation to each user using Bianchi model:

wum,n = Bm(πm)πm

I Bm: is the estimated bandwidth at the AP mI πm: is the number of users that offload

2- For each Static offloading decision task, select the cloudlet that minimizesZe

um,n,k + λkck .

Page 25: Adaptive Computation Offloading for Mobile Edge Computing

14/21

DM2-ECOP: Local offloading manager

3- For each Dynamic offloading decision task, compute the offloading priority:

ξum,n = Z lum,n −min

k∈K(Ze

um,n,k); under aum,n = 1

4- Sort dynamic offloading decision apps in decreasing order of ξum,n

5- Select the cloudlet k that minimizes Zeum,n,k + λkck

6- Compute the optimal value of aum,n

7- when the offloaded task is equal to πm, all the remaining apps will be performed locally

Page 26: Adaptive Computation Offloading for Mobile Edge Computing

15/21

DM2-ECOP: find the optimal amount of computation to offload

⇒ For each user, the optimal aum,n is the solution of:

min(Zeum,n,k + Z l

um,n)Subject to: aum,n ∈ [0, 1].

⇒ the optimal value of aum,n is 1 if and only if : ψum,n < µum,n

⇒ Where:I ψum,n =

upum,n

γum,n

I µum,n =wum,n · [κ · f 3um,n

· ck · βum,n + (1− βum,n ) · (ck − fum,n )− βum,n · P idleum,n· fum,n ]

ck · fum,n · (Ptx/rxum,n · βum,n + 1− βum,n )

Page 27: Adaptive Computation Offloading for Mobile Edge Computing

15/21

DM2-ECOP: find the optimal amount of computation to offload

⇒ For each user, the optimal aum,n is the solution of:

min(Zeum,n,k + Z l

um,n)Subject to: aum,n ∈ [0, 1].

⇒ the optimal value of aum,n is 1 if and only if : ψum,n < µum,n

⇒ Where:I ψum,n =

upum,n

γum,n

I µum,n =wum,n · [κ · f 3um,n

· ck · βum,n + (1− βum,n ) · (ck − fum,n )− βum,n · P idleum,n· fum,n ]

ck · fum,n · (Ptx/rxum,n · βum,n + 1− βum,n )

Page 28: Adaptive Computation Offloading for Mobile Edge Computing

16/21

Testbed

Application γum,n upum,n dwum,n tum,n

(GigaCPUcycles)

(Kilobyte) (Byte) (Second)

static offloading decision tasks

FACE 12.3 62 60 5SPEECH 15 243 50 5.1OBJECT 44.6 73 50 13

dynamic offloading decision tasks

Linpack 50 10240 120 62.5CPUBENCH 3.36 80 80 4.21PI BENCH 130 10240 200 163

I 20 access point and 4 edge servers.

I WiFi Bandwidth: 150 Mbps.

I Access delay : 5 ms

I Internet delay: 200 ms

I compared to offloading algorithms:I NCO: Nearest Cloudlet

Offloading.I FCO: Full Offloading to Cloud

Page 29: Adaptive Computation Offloading for Mobile Edge Computing

17/21

Numerical Results: Energy consumption and Completion time

Page 30: Adaptive Computation Offloading for Mobile Edge Computing

18/21

Numerical Results: Optimal aum,n

1 5 10 15 20 25 30 35 40the number of users at the AP

0.00

0.05

0.10

0.15

0.20

0.25

0.30

u m,n

offloading zonenon-offloading zoneLinpackCPUBENCHPI BENCH

1 2 3 4 5 6 7 8 9 10ck/fum, n

0.00

0.05

0.10

0.15

0.20

u m,n

offloading zonenon-offloading zoneLinpackCPUBENCHPI BENCH

Page 31: Adaptive Computation Offloading for Mobile Edge Computing

18/21

Numerical Results: Optimal aum,n

0.00 0.25 0.50 0.75 1.00um, n

0.00

0.05

0.10

0.15

0.20

0.25

0.30

u m,n

offloading zonenon-offloading zoneLinpackCPUBENCHPI BENCH

Page 32: Adaptive Computation Offloading for Mobile Edge Computing

19/21

Conclusion

I Mobile Edge computing is a very powerful approach to extend the mobile’s resource.

I Mobile apps offloading model has an important role on MEC.

I It is very important to consider a dynamic edge server selection.

I Offloading cost model play a key role to determine the efficiency of the offloading policy.

Page 33: Adaptive Computation Offloading for Mobile Edge Computing

20/21

On going work

We are working on:I Dynamic apps partitioning into offloaded part and local part.

I Designing a framework for offloading in MEC.

I Introducing the operator part in the optimization problem (Operator cost and pricingmodel)

Page 34: Adaptive Computation Offloading for Mobile Edge Computing

21/21

Thank you