xinhui hu*, stefan schmid’, andrea richa* and anja feldmann

40
Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann*Arizona State University ’Telekom Innovation Laboratories & TU Berlin

Upload: others

Post on 12-Apr-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann’

*Arizona State University ’Telekom Innovation Laboratories & TU Berlin

Page 2: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Outline

Motivation

Related Work

System Model and Problem Formulation

Algorithm

Performance Evaluation

Conclusion

Page 3: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Motivation

3

Virtual Networking of Cloud Resources

Europe

Asia

Europe

Asia

Page 4: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Research Challenges

When and where to migrate a service?

Offline/online algorithm! Offline: every day the same

Online: no knowledge of the future requests

Economical dimension: Migration comes at costs: contracts!

4

Page 5: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Our Perspective Migration contracts

Contracts with more bandwidth or longer duration are cheaper! (discounts)

Which contract (bandwidth, duration) to buy?

Objective

Find the optimal migration contracts in virtual networks for two pricing models:

Pay-as-You-Come: “pay in advance even if not needed”

Pay-as-You-Go: “pay for what you use only”

5

Page 6: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Contribution

We present two optimal offline algorithms for migration contracts in virtual networks for Pay-as-You-Come and Pay-as-You-Go pricing models (PAYC and PAYG)

We present two online algorithms for Pay-as-You-Come and Pay-as-You-Go pricing models (ONC and ONG)

6

Page 7: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Outline

Motivation

Related Work

System Model and Problem Formulation

Algorithm

Performance Evaluation

Conclusion

Page 8: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Related Work

Online Model but without Economics:

D. Arora, M. Bienkowski, A. Feldmann, G. Schaffrath, and S. Schmid, “Online strategies for intra and inter provider service migration in virtual networks,” Proc. IPTComm, 2011

CloudNet Prototype (with NTT DoCoMo):

G. Schaffrath, C. Werle, P. Papadimitriou, A. Feldmann, R. Bless, A. Greenhalgh, A. Wundsam, M. Kind, O. Maennel, and L. Mathy, “Network virtualization architecture: proposal and initial prototype,” Proc. ACM VISA, 2009.

Much more literature on economical aspects of cloud pricing

8

Page 9: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Outline

Motivation

Related Work

System Model and Problem Formulation

Algorithm

Performance Evaluation

Conclusion

Page 10: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Cost Model

Access cost: latency associated with satisfying request remotely

Migration cost: cost of migrating server from current location to location of request (cost = service interruption time, depends on bandwidth)

Contract cost: cost of buying/renting resources (different discounts are provided for different contract bandwidths and durations)

10

L R remote access

L R server migration

L requests service

provided by server

Contract bandwidth

and duration?

USA Japan

server

Page 11: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Pricing Model

Pay-as-You-Come: pay for the resource in advance, before resource is utilized

if not used, it’s your fault! (like MPLS )

Pay-as-You-Go: pay for the resource after resource is utilized

only if actually utilized (like EC2)

11

Page 12: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Data Model

Contract durations: = {d1, d2, …, dk}, d1≤d2 ≤ … ≤dk

Contract bandwidths: ={b1, b2, …, bq}, b1 ≤ b2 ≤ … ≤bq

Discount function: f Linear

Non-linear: e.g., sqrt, log, …

For example, a twice as long contract may cost only 50% more, and doubling the reserved bandwidth may cost only 30% more.

Request sequence: <r1, t1>, <r2, t2>, … <ri, ti> represents the ith request from ri at time ti

Two sites: L (e.g., USA) and R (e.g., Japan)

12

D

B

Page 13: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

An example

13

i i+1 i+7 i+3

L R

d=7, b=50Mbps

Page 14: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Problem Formulation

Given requests <r1, r2, …, rn> at respective times <t1, t2, …, tn>, we aim to

minimize

where Access cost:

Migration cost:

Contract cost: Pay-as-You-Come:

Pay-as-You-Go:

14

Page 15: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Outline

Motivation

Related Work

System Model and Problem Formulation

Algorithm

Performance Evaluation

Conclusion

Page 16: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Main Results

Optimal algorithms (based on novel dynamic programming approaches) PAYC for Pay-as-You-Come pricing model in

PAYG for Pay-as-You-Go pricing model in

Online algorithms ONC for Pay-as-You-Come pricing model

ONC for Pay-as-You-Go pricing model

Experimental evaluation

k = # of available durations

q = # of available bandwidths

Page 17: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Data structure for PAYC

Dynamic Progr. Matrix

Description

Total cost matrix in PAYC, an entry C[i,j,k], where i,j ∈[n] and k ∈{(s, s’)|s, s’ ∈{L, R}}, denotes the minimum total cost for satisfying all requests from ri to rj for a scenario where at the beginning of the ith request the server is at node s and at the end of request j the server is at node s’

Combined access cost and migration cost matrix for bandwidth bm,

AMm[i, j,(s,s’)] stores the combined access and migration costs for the best migration strategy that satisfies the sequence of requests from ri to rj

17

4n nC

4( )m n nAM

Page 18: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

PAYC: Satisfying one request

service request from node s at time t, and server size S

If the server is also located at s then no cost

Else, either pay

access cost or

pay server migration cost S/bm and d1-day contract cost f(d1,bm), for some bandwidth bm and smallest contract duration d1

18

Page 19: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

PAYC: Satisfying multiple requests multiple requests from time ti to time tj

Buy a long contract dv to cover the interval, where v ∈ [k]

Split the contract at uth request

i i+1 j-1 j …

f(dv,bm)

i i+1 j-1 j u+1 u

s

s’ s s’’

… …

Page 20: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Optimal algorithm: PAYC

20

Page 21: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Data structure for PAYG

Dyn. Progr. Matrix

Description

Total cost matrices in PAYC, an entry C[i,j,k], where i,j ∈[n] and k ∈{(s, s’)|s, s’ ∈{L, R}}, denotes the minimum total cost for satisfying all requests from ri to rj for a scenario where at the beginning of the ith request the server is at node s and at the end of request j the server is at node s’

Access cost matrix for bandwidth bm

Number of migrations matrix for bandwidth bm

21

4n nC

4( )m n nA

4( )m n nN

Page 22: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

PAYG: One request

22

Similar dynamic programming approach as PAYC is used in PAYG.

The main difference is how to update the cost for multiple requests.

Initialization:

Access cost: m ∈[q]

Total cost:

Migration cost:

Page 23: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

PAYG: Multiple requests multiple requests from time ti to time tj

Split the contract at uth request

i i+1 j-1 j u+1 u

s’ s s’’

… …

The optimal result is given by:

Page 24: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Optimal algorithm: PAYG

24

Page 25: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Online algorithm: ONC

We do an amortization by migrating only when the access cost(C) exceeds the migration cost.

If no contract is available for current migration, ONC checks if a longer contract would have been better for the past requests.

— Otherwise, ONC checks whether a shorter contract should be chosen.

25

Page 26: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Online algorithm: ONG

A counter C1 records the number of the migrations performed so far while C2 denotes the total access costs.

If the access cost C2 reaches the migration cost plus

marginal migration contract costs (i.e., f(C1+1, b)-f(C1,

b), for bandwidth b), ONG migrates the server, increments counter C1, and resets counter C2.

26

Page 27: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Outline

Motivation

Related Work

System Model and Problem Formulation

Algorithm

Performance Evaluation

Conclusion

Page 28: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Simulation Setting

Duration set: D={1, 30, 60, 100}

Bandwidth set (Mbps): B={50, 100}

Server size: S = 250M

Unit access cost: 5

Request number: n=1500 requests

Discount function:

28

log /50 11.5 6i jd b

linf

/ 50 6sqrt i jf d b

log log( / 50) 6i jf d b

Page 29: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Simulation Setting

Request model:

29

• Requests alternate between the two virtual sites

• Markov process: stay at current site according to an exponential

distribution with parameter λ, then change with probability p

Page 30: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Cost distribution for PAYC and PAYG

30

Page 31: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Contract Distribution

31

Page 32: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Competitive ratio

32

Page 33: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Outline

Motivation

Related Work

System Model and Problem Formulation

Algorithm

Performance Evaluation

Conclusion

Page 34: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Conclusion and Future Work

Conclusion We have studied online migration in virtual networks from

an economical perspective and in two pricing models: Pay-as-You-Come and Pay-as-You-Go

We have presented optimal algorithms for each pricing model

We have discussed online algorithms for each pricing model

Future Work Extend to live migration

Extend to more complicated virtual networks (more than two sites

34

Page 35: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Questions ?

Page 36: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Backup slides

36

Page 37: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Optimal algorithm: PAYC

37

time ti, request from ri

One request:

request from

ri at time ti

Pay access cost if request is from remote location (ri !=s’)

If s != s’ then, for bandwidth bm, pay migration cost

S/bm and d1-day contract cost f(d1,bm)

s Server location s’

Access+Migration cost: m ∈[q]

Total cost:

Page 38: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Cost distribution for PAYC Observation

The total cost and the access cost decrease for larger lambda

The migration and contract stay much more stable

Reason

Requests originating from one site for longer time periods render it worthwhile to migrate and buy longer contracts

38

Page 39: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Cost distribution for PAYG Observation:

The total cost is lower than that of PAYC

The migrations constitute a larger share of the overall costs

Reason:

the contract cost is given by the number of migrations and the amount of leased bandwidth under the discount function

39

Page 40: Xinhui Hu*, Stefan Schmid’, Andrea Richa* and Anja Feldmann

Number of migrations and effect of discount function

The experiments are derived under flin discount

function

40