Optimal Closest Policy with QoS and Bandwidth Constraints for - - PowerPoint PPT Presentation

optimal closest policy with qos and bandwidth constraints
SMART_READER_LITE
LIVE PREVIEW

Optimal Closest Policy with QoS and Bandwidth Constraints for - - PowerPoint PPT Presentation

Intro Framework Complexity ORP Conclusion Optimal Closest Policy with QoS and Bandwidth Constraints for Placing Replicas in Tree Networks Veronika Rehn-Sonigo GRAAL team, LIP Ecole Normale Sup erieure de Lyon France August 2007


slide-1
SLIDE 1

Intro Framework Complexity ORP Conclusion

Optimal Closest Policy with QoS and Bandwidth Constraints for Placing Replicas in Tree Networks

Veronika Rehn-Sonigo

GRAAL team, LIP ´ Ecole Normale Sup´ erieure de Lyon France

August 2007

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 1/ 35

slide-2
SLIDE 2

Intro Framework Complexity ORP Conclusion

Introduction and motivation

Replica placement in tree networks Set of clients (tree leaves): requests with QoS constraints, known in advance Internal nodes may be provided with a replica; in this case they become servers and process requests (up to their capacity limit) How many replicas required? Which locations? Total replica cost?

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 2/ 35

slide-3
SLIDE 3

Intro Framework Complexity ORP Conclusion

Introduction and motivation

Replica placement in tree networks Set of clients (tree leaves): requests with QoS constraints, known in advance Internal nodes may be provided with a replica; in this case they become servers and process requests (up to their capacity limit) How many replicas required? Which locations? Total replica cost?

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 2/ 35

slide-4
SLIDE 4

Intro Framework Complexity ORP Conclusion

Introduction and motivation

Replica placement in tree networks Set of clients (tree leaves): requests with QoS constraints, known in advance Internal nodes may be provided with a replica; in this case they become servers and process requests (up to their capacity limit) How many replicas required? Which locations? Total replica cost?

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 2/ 35

slide-5
SLIDE 5

Intro Framework Complexity ORP Conclusion

Introduction and motivation

Replica placement in tree networks Set of clients (tree leaves): requests with QoS constraints, known in advance Internal nodes may be provided with a replica; in this case they become servers and process requests (up to their capacity limit) How many replicas required? Which locations? Total replica cost?

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 2/ 35

slide-6
SLIDE 6

Intro Framework Complexity ORP Conclusion

Rule of the game

Handle all client requests, and minimize cost of replicas → Replica Placement problem Several policies to assign replicas

W = 10 5 4 3 1 2 2 3

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 3/ 35

slide-7
SLIDE 7

Intro Framework Complexity ORP Conclusion

Rule of the game

Handle all client requests, and minimize cost of replicas → Replica Placement problem Several policies to assign replicas

W = 10 5 4 3 1 2 2 3

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 3/ 35

slide-8
SLIDE 8

Intro Framework Complexity ORP Conclusion

Rule of the game

Handle all client requests, and minimize cost of replicas → Replica Placement problem Several policies to assign replicas

W = 10 5 4 3 1 2 2 3

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 3/ 35

slide-9
SLIDE 9

Intro Framework Complexity ORP Conclusion

Rule of the game

Handle all client requests, and minimize cost of replicas → Replica Placement problem Several policies to assign replicas

W = 10 5 4 3 1 2 2 3

Closest

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 3/ 35

slide-10
SLIDE 10

Intro Framework Complexity ORP Conclusion

Rule of the game

Handle all client requests, and minimize cost of replicas → Replica Placement problem Several policies to assign replicas

W = 10 5 3 1 2 2 3 4

Upwards

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 3/ 35

slide-11
SLIDE 11

Intro Framework Complexity ORP Conclusion

Rule of the game

Handle all client requests, and minimize cost of replicas → Replica Placement problem Several policies to assign replicas

W = 10 5 3 1 2 2 3 2 3 4

Multiple

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 3/ 35

slide-12
SLIDE 12

Intro Framework Complexity ORP Conclusion

Outline

1

Framework

2

Complexity results

3

Optimal Replica Placement Algorithm

4

Conclusion

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 4/ 35

slide-13
SLIDE 13

Intro Framework Complexity ORP Conclusion

Outline

1

Framework

2

Complexity results

3

Optimal Replica Placement Algorithm

4

Conclusion

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 5/ 35

slide-14
SLIDE 14

Intro Framework Complexity ORP Conclusion

Definitions and notations

Distribution tree T , clients C (leaf nodes), internal nodes N Client v ∈ C:

Sends r(v) requests per time unit (number of accesses to a single object database) Quality of service q(v) (response time)

Node j ∈ N:

Can contain the object database replica (server) or not Processing capacity W Storage cost scj

Tree edge: l ∈ L (communication link between nodes)

Communication time comml Bandwidth limit BWl

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 6/ 35

slide-15
SLIDE 15

Intro Framework Complexity ORP Conclusion

Definitions and notations

Distribution tree T , clients C (leaf nodes), internal nodes N Client v ∈ C:

Sends r(v) requests per time unit (number of accesses to a single object database) Quality of service q(v) (response time)

Node j ∈ N:

Can contain the object database replica (server) or not Processing capacity W Storage cost scj

Tree edge: l ∈ L (communication link between nodes)

Communication time comml Bandwidth limit BWl

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 6/ 35

slide-16
SLIDE 16

Intro Framework Complexity ORP Conclusion

Definitions and notations

Distribution tree T , clients C (leaf nodes), internal nodes N Client v ∈ C:

Sends r(v) requests per time unit (number of accesses to a single object database) Quality of service q(v) (response time)

Node j ∈ N:

Can contain the object database replica (server) or not Processing capacity W Storage cost scj

Tree edge: l ∈ L (communication link between nodes)

Communication time comml Bandwidth limit BWl

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 6/ 35

slide-17
SLIDE 17

Intro Framework Complexity ORP Conclusion

Definitions and notations

Distribution tree T , clients C (leaf nodes), internal nodes N Client v ∈ C:

Sends r(v) requests per time unit (number of accesses to a single object database) Quality of service q(v) (response time)

Node j ∈ N:

Can contain the object database replica (server) or not Processing capacity W Storage cost scj

Tree edge: l ∈ L (communication link between nodes)

Communication time comml Bandwidth limit BWl

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 6/ 35

slide-18
SLIDE 18

Intro Framework Complexity ORP Conclusion

Problem instances (1/2)

Goal: place replicas to process client requests Client i ∈ C: Servers(i) ⊆ N set of servers responsible for processing its requests ri,s: number of requests from client i processed by server s (

s∈Servers(i) ri,s = ri)

R = {s ∈ N| ∃i ∈ C , s ∈ Servers(i)}: set of replicas

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 7/ 35

slide-19
SLIDE 19

Intro Framework Complexity ORP Conclusion

Problem instances (2/2)

Minimize

s∈R scs under the constraints:

Server capacity: ∀s ∈ R,

i∈C|s∈Servers(i) ri,s ≤ Ws

QoS: ∀i ∈ C, ∀s ∈ Servers(i),

l∈path[i→s] comml ≤ qi.

Link capacity: ∀l ∈ L

i∈C,s∈Servers(i)|l∈path[i→s] ri,s ≤ BWl

Restrict to case where scs = W: Replica Counting problem on homogeneous platforms.

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 8/ 35

slide-20
SLIDE 20

Intro Framework Complexity ORP Conclusion

Problem instances (2/2)

Minimize

s∈R scs under the constraints:

Server capacity: ∀s ∈ R,

i∈C|s∈Servers(i) ri,s ≤ Ws

QoS: ∀i ∈ C, ∀s ∈ Servers(i),

l∈path[i→s] comml ≤ qi.

Link capacity: ∀l ∈ L

i∈C,s∈Servers(i)|l∈path[i→s] ri,s ≤ BWl

Restrict to case where scs = W: Replica Counting problem on homogeneous platforms.

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 8/ 35

slide-21
SLIDE 21

Intro Framework Complexity ORP Conclusion

Problem instances (2/2)

Minimize

s∈R scs under the constraints:

Server capacity: ∀s ∈ R,

i∈C|s∈Servers(i) ri,s ≤ Ws

QoS: ∀i ∈ C, ∀s ∈ Servers(i),

l∈path[i→s] comml ≤ qi.

Link capacity: ∀l ∈ L

i∈C,s∈Servers(i)|l∈path[i→s] ri,s ≤ BWl

Restrict to case where scs = W: Replica Counting problem on homogeneous platforms.

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 8/ 35

slide-22
SLIDE 22

Intro Framework Complexity ORP Conclusion

Outline

1

Framework

2

Complexity results

3

Optimal Replica Placement Algorithm

4

Conclusion

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 9/ 35

slide-23
SLIDE 23

Intro Framework Complexity ORP Conclusion

Complexity results

Homogeneous platform: Replica Counting problem, no bandwidth constraints No QoS With QoS Closest polynomial [Cidon02,Liu06] polynomial [Liu06] Upwards NP-complete [Be06] NP-complete [Be06] Multiple polynomial [Be06] NP-complete [Be07] Heterogeneous platforms: all problems are NP-complete New result: Homogeneous platforms with bandwidth and QoS constraints: Closest remains polynomial [Re07]

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 10/ 35

slide-24
SLIDE 24

Intro Framework Complexity ORP Conclusion

Complexity results

Homogeneous platform: Replica Counting problem, no bandwidth constraints No QoS With QoS Closest polynomial [Cidon02,Liu06] polynomial [Liu06] Upwards NP-complete [Be06] NP-complete [Be06] Multiple polynomial [Be06] NP-complete [Be07] Heterogeneous platforms: all problems are NP-complete New result: Homogeneous platforms with bandwidth and QoS constraints: Closest remains polynomial [Re07]

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 10/ 35

slide-25
SLIDE 25

Intro Framework Complexity ORP Conclusion

Complexity results

Homogeneous platform: Replica Counting problem, no bandwidth constraints No QoS With QoS Closest polynomial [Cidon02,Liu06] polynomial [Liu06] Upwards NP-complete [Be06] NP-complete [Be06] Multiple polynomial [Be06] NP-complete [Be07] Heterogeneous platforms: all problems are NP-complete New result: Homogeneous platforms with bandwidth and QoS constraints: Closest remains polynomial [Re07]

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 10/ 35

slide-26
SLIDE 26

Intro Framework Complexity ORP Conclusion

Outline

1

Framework

2

Complexity results

3

Optimal Replica Placement Algorithm

4

Conclusion

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 11/ 35

slide-27
SLIDE 27

Intro Framework Complexity ORP Conclusion

Dealing with Bandwidth Constraints

Optimal Closest policy Homogeneous platform QoS constraints Bandwidth constraints Base: optimal algorithm of Liu et al. for homogeneous data grids with QoS constraints Provided extensions: Bandwidth constraints C ∩ N = ∅

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 12/ 35

slide-28
SLIDE 28

Intro Framework Complexity ORP Conclusion

Dealing with Bandwidth Constraints

Optimal Closest policy Homogeneous platform QoS constraints Bandwidth constraints Base: optimal algorithm of Liu et al. for homogeneous data grids with QoS constraints Provided extensions: Bandwidth constraints C ∩ N = ∅

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 12/ 35

slide-29
SLIDE 29

Intro Framework Complexity ORP Conclusion

Basic idea: computation of the minimal necessary number of replicas in a subtree

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 13/ 35

slide-30
SLIDE 30

Intro Framework Complexity ORP Conclusion

Basic idea: computation of the minimal necessary number of replicas in a subtree Case 1: too many requests

r : 3 5 4 W = 10

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 13/ 35

slide-31
SLIDE 31

Intro Framework Complexity ORP Conclusion

Basic idea: computation of the minimal necessary number of replicas in a subtree Case 1: too many requests

  • i r(i) = 12

r : 3 5 4 W = 10

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 13/ 35

slide-32
SLIDE 32

Intro Framework Complexity ORP Conclusion

Basic idea: computation of the minimal necessary number of replicas in a subtree Case 1: too many requests

1 replica

  • i r(i) = 12

r : 3 5 4 W = 10

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 13/ 35

slide-33
SLIDE 33

Intro Framework Complexity ORP Conclusion

Basic idea: computation of the minimal necessary number of replicas in a subtree Case 2: QoS constraints

r : 3 5 4 W = 10 q : 1 3 2

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 13/ 35

slide-34
SLIDE 34

Intro Framework Complexity ORP Conclusion

Basic idea: computation of the minimal necessary number of replicas in a subtree Case 2: QoS constraints

1 replica q(i) < hops r : 3 5 4 W = 10 q : 1 3 2

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 13/ 35

slide-35
SLIDE 35

Intro Framework Complexity ORP Conclusion

Basic idea: computation of the minimal necessary number of replicas in a subtree Case 3: bandwidth constraints

r : 3 5 4 b : 5 2 W = 10 4 4

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 13/ 35

slide-36
SLIDE 36

Intro Framework Complexity ORP Conclusion

Basic idea: computation of the minimal necessary number of replicas in a subtree Case 3: bandwidth constraints

1 replica b(l) < r(i) r : 3 5 4 b : 5 2 W = 10 4 4

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 13/ 35

slide-37
SLIDE 37

Intro Framework Complexity ORP Conclusion

Basic idea: computation of the minimal necessary number of replicas in a subtree 1 replica 1 replica 2 replicas

r : 3 5 4 q : 1 3 2 W = 10 b : 5 2 4 4

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 13/ 35

slide-38
SLIDE 38

Intro Framework Complexity ORP Conclusion

ORP - Optimal Replica Placement Algorithm

Preparation Tree transformation Step 1 Bottom up computation of the contribution of client requests

r : q : 1 3 2 3 5 4 b : 5 6 2 6 2 2 4 4

C(v, i) : the contribution of node v on its i-th ancestor e(v, i) : children of v that have to be equipped with a replica to minimize the contribution on the i-th ancestor of v (respecting some additional constraints).

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 14/ 35

slide-39
SLIDE 39

Intro Framework Complexity ORP Conclusion

ORP - Optimal Replica Placement Algorithm

Preparation Tree transformation Step 1 Bottom up computation of the contribution of client requests Step 2 Top down replica placement

procedure Place-replica (v, i) if v ∈ C then return; end place a replica at each node of e(v, i); forall c ∈ children(v) do if c ∈ e(v, i) then Place-replica(c,0); else Place-replica(c,i+1); end end

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 15/ 35

slide-40
SLIDE 40

Intro Framework Complexity ORP Conclusion

Complexity and Optimality

Theorem (i) Algorithm ORP runs in polynomial time. (ii) Algorithm ORP returns an optimal solution to the Replica Placement problem with fixed W , QoS and bandwidth constraints, if there exists a solution.

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 16/ 35

slide-41
SLIDE 41

Intro Framework Complexity ORP Conclusion

Outline

1

Framework

2

Complexity results

3

Optimal Replica Placement Algorithm

4

Conclusion

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 17/ 35

slide-42
SLIDE 42

Intro Framework Complexity ORP Conclusion

Conclusion

Replica Placement optimization problem with QoS and bandwidth constraints. Restriction to Closest/Homogeneous instances Polynomial runtime Optimality Interplay of different-nature constraints Completion of the study on complexity of Closest/Homogeneous. Future work Consider the problem with several object types Extension with more complex objective functions

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 18/ 35

slide-43
SLIDE 43

Intro Framework Complexity ORP Conclusion

Conclusion

Replica Placement optimization problem with QoS and bandwidth constraints. Restriction to Closest/Homogeneous instances Polynomial runtime Optimality Interplay of different-nature constraints Completion of the study on complexity of Closest/Homogeneous. Future work Consider the problem with several object types Extension with more complex objective functions

Veronika.Rehn@ens-lyon.fr August 2007 Optimal Closest Policy 18/ 35