Adaptive Caching Algorithms with Optimality Guarantees for NDN - - PowerPoint PPT Presentation

adaptive caching algorithms with optimality guarantees
SMART_READER_LITE
LIVE PREVIEW

Adaptive Caching Algorithms with Optimality Guarantees for NDN - - PowerPoint PPT Presentation

Adaptive Caching Algorithms with Optimality Guarantees for NDN Networks Stratis Ioannidis and Edmund Yeh A Caching Network Nodes in the network store content items (e.g., files, file chunks) 1 Adaptive Caching Networks w. Optimality Guarantees


slide-1
SLIDE 1

Adaptive Caching Algorithms with Optimality Guarantees for NDN Networks

Stratis Ioannidis and Edmund Yeh

slide-2
SLIDE 2

A Caching Network

Adaptive Caching Networks w. Optimality Guarantees 1

Nodes in the network store content items (e.g., files, file chunks)

slide-3
SLIDE 3

A Caching Network

Adaptive Caching Networks w. Optimality Guarantees 2

Nodes generate requests for content items ?

slide-4
SLIDE 4

A Caching Network

Adaptive Caching Networks w. Optimality Guarantees 3

Requests are routed towards a content source ?

slide-5
SLIDE 5

Adaptive Caching Networks w. Optimality Guarantees 4

Responses routed over reverse path

A Caching Network

slide-6
SLIDE 6

Adaptive Caching Networks w. Optimality Guarantees 5

?

A Caching Network

Nodes have caches with finite capacities

slide-7
SLIDE 7

Adaptive Caching Networks w. Optimality Guarantees 6

? Nodes have caches with finite capacities

A Caching Network

slide-8
SLIDE 8

Adaptive Caching Networks w. Optimality Guarantees 7

Requests terminate early upon a cache hit ?

A Caching Network

slide-9
SLIDE 9

Adaptive Caching Networks w. Optimality Guarantees 8

?

Example: Named Data Networks

Webserver User cache-enabled routers

slide-10
SLIDE 10

Optimal Content Allocation

Adaptive Caching Networks w. Optimality Guarantees 9

Q: How should items be allocated to caches so that routing costs are minimized?

slide-11
SLIDE 11

Optimal Content Allocation

Adaptive Caching Networks w. Optimality Guarantees 10

Challenge: Caching algorithm should be  adaptive, and  distributed.

slide-12
SLIDE 12

Adaptive Caching Networks w. Optimality Guarantees 11

 Cache item on every node in the reverse path  Evict using a simple policy, e.g., LRU, LFU, FIFO etc. ?

A Simple Algorithm: Path-Replication

[Cohen and Shenker 2002] [Jacobson et al. 2009]

 Distributed  Adaptive  Popular!

slide-13
SLIDE 13

But…

Adaptive Caching Networks w. Optimality Guarantees 12

Path Replication combined with traditional eviction policies (LRU, LFU, FIFO, etc.) is arbitrarily suboptimal.

slide-14
SLIDE 14

Path Replication + LRU is Arbitrarily Suboptimal

Adaptive Caching Networks w. Optimality Guarantees 13

? ?

Cost of PR+LRU: Cost when caching :  When M is large, PR+LRU is arbitrarily suboptimal!  True for any strategy (LRU,LFU,FIFO,RR) that ignores upstream costs

requests per sec

slide-15
SLIDE 15

 Formal statement of offline problem  NP-Hard [Shanmugam et al. IT 2013]  Path Replication +LRU, LFU, FIFO, etc. is arbitrarily suboptimal  Distributed, adaptive algorithm, within a constant approximation from optimal offline allocation  Path Replication+novel eviction policy  Great performance under 20+ network topologies

Our Contributions

Adaptive Caching Networks w. Optimality Guarantees 14

slide-16
SLIDE 16

Problem Formulation Distributed Adaptive Algorithms Evaluation

Overview

Adaptive Caching Networks w. Optimality Guarantees 15

slide-17
SLIDE 17

Problem Formulation Distributed Adaptive Algorithms Evaluation

Overview

Adaptive Caching Networks w. Optimality Guarantees 16

slide-18
SLIDE 18

Model: Network

Adaptive Caching Networks w. Optimality Guarantees 17

Network represented as a directed, bi-directional graph

slide-19
SLIDE 19

Model: Edge Costs

Adaptive Caching Networks w. Optimality Guarantees 18

Each edge has a cost/weight 5

Edge costs:

slide-20
SLIDE 20

Model: Node Caches

Adaptive Caching Networks w. Optimality Guarantees 19

Node has a cache with capacity

Node capacities: Edge costs:

slide-21
SLIDE 21

Model: Cache Contents

Adaptive Caching Networks w. Optimality Guarantees 20

Node capacities: Edge costs:

Items stored and requested form the item catalog

slide-22
SLIDE 22

Model: Cache Contents

Adaptive Caching Networks w. Optimality Guarantees 21

Node capacities: Edge costs:

For and , let if stores

  • .w.

Then, for all ,

slide-23
SLIDE 23

Model: Designated Sources

Adaptive Caching Networks w. Optimality Guarantees 22

Node capacities: Edge costs:

For each and , there exists a set of nodes (the designated sources of ) that permanently store . I.e., if then

, for all

slide-24
SLIDE 24

Model: Demand

Adaptive Caching Networks w. Optimality Guarantees 23

Node capacities: Edge costs:

A request is a pair such that:

, for all

 is an item in  is a simple path in such that . Requests are always satisfied! ?

slide-25
SLIDE 25

Model: Demand

Adaptive Caching Networks w. Optimality Guarantees 24

Node capacities: Edge costs:

Demand : set of all requests ? Request arrival process is Poisson with rate

Request rates:

: demand

, for all

slide-26
SLIDE 26

Model: Routing Costs & Caching Gain

Adaptive Caching Networks w. Optimality Guarantees 25

Node capacities: Edge costs:

?

Request rates:

: demand

, for all

Worst case routing cost: 5 3 4 6 ? Request

slide-27
SLIDE 27

Model: Routing Costs & Caching Gain

Adaptive Caching Networks w. Optimality Guarantees 26

Node capacities: Edge costs:

?

Request rates:

: demand

, for all

5 4 6 ? Cost due to intermediate caching: Worst case routing cost: Request 3

slide-28
SLIDE 28

Model: Routing Costs & Caching Gain

Adaptive Caching Networks w. Optimality Guarantees 27

Node capacities: Edge costs:

?

Request rates:

: demand

, for all

5 3 4 6 ? Cost due to intermediate caching: Worst case routing cost: Caching Gain: Request

slide-29
SLIDE 29

Caching Gain Maximization

Adaptive Caching Networks w. Optimality Guarantees 28

Node capacities: Edge costs: Request rates:

: demand

, for all

Caching Gain:

The global allocation strategy is the binary matrix ?

5 3 4 6 ?

slide-30
SLIDE 30

Caching Gain Maximization

Adaptive Caching Networks w. Optimality Guarantees 29

Node capacities: Edge costs: Request rates:

: demand

, for all

?

5 3 4 6 ?

Caching Gain:

Maximize: Subject to:

, for all , for all and , for all and

slide-31
SLIDE 31

Offline Problem

Adaptive Caching Networks w. Optimality Guarantees 30

Maximize: Subject to:

, for all , for all and , for all and

Shanmugam, Golrezaei, Dimakis, Molisch, and Caire. Femtocaching: Wireless Content Delivery Through Distributed Caching Helpers. IT, 2013  NP-hard  Submodular objective, matroid constraints  Greedy algorithm gives ½-approximation ratio  1-1/e ratio can be achieved through pipage rounding method [Ageev and Sviridenko, J. of Comb. Opt., 2004]

slide-32
SLIDE 32

Pipage Rounding [Ageev & Sviridenko 2004]

Adaptive Caching Networks w. Optimality Guarantees 31

Maximize: Subject to:

, for all , for all and , for all and

slide-33
SLIDE 33

Pipage Rounding [Ageev & Sviridenko 2004]

Adaptive Caching Networks w. Optimality Guarantees 32

Maximize: Subject to:

for all , for all and , for all and

Think:   All are independent Bernoulli random variables. Expected CG Satisfied in expectation

slide-34
SLIDE 34

Pipage Rounding [Ageev & Sviridenko 2004]

Adaptive Caching Networks w. Optimality Guarantees 33

Maximize: Subject to:

for all , for all and , for all and

 Key idea: There exists a concave function such that

slide-35
SLIDE 35

Pipage Rounding [Ageev & Sviridenko 2004]

Adaptive Caching Networks w. Optimality Guarantees 34

Maximize: Subject to:

for all , for all and , for all and

 Key idea: There exists a concave function such that  Algorithm Sketch: Maximize ; round solution to obtain discrete solution .

slide-36
SLIDE 36

Problem Formulation Distributed Adaptive Algorithms Evaluation

Overview

Adaptive Caching Networks w. Optimality Guarantees 35

slide-37
SLIDE 37

Projected Gradient Ascent

Adaptive Caching Networks w. Optimality Guarantees 36

Time is divided into slots

slide-38
SLIDE 38

Projected Gradient Ascent

Adaptive Caching Networks w. Optimality Guarantees 37

Each node keeps track of its own marginal distribution 0.5 0.9 0.6

slide-39
SLIDE 39

Projected Gradient Ascent

Adaptive Caching Networks w. Optimality Guarantees 38

During a slot, estimates by collecting measurements through passing packets. 0.5 0.9 0.6

slide-40
SLIDE 40

Projected Gradient Ascent

Adaptive Caching Networks w. Optimality Guarantees 39

At the conclusion of the -th slot, updates its marginals through: 0.5 0.9 0.6 0.6 0.7 0.7

slide-41
SLIDE 41

Projected Gradient Ascent

Adaptive Caching Networks w. Optimality Guarantees 40

After updating , node places random items in its cache, independently

  • f other nodes, so that:

0.6 0.7 0.7 , for all

slide-42
SLIDE 42

Gradient Estimation

Adaptive Caching Networks w. Optimality Guarantees 41

How can estimate in a distributed fashion? 0.5 0.9 0.6 5 3 4 6

slide-43
SLIDE 43

Gradient Estimation

Adaptive Caching Networks w. Optimality Guarantees 42

When request is generated, create a new control message 0.5 0.9 0.6 ? 5 3 4 6

slide-44
SLIDE 44

Gradient Estimation

Adaptive Caching Networks w. Optimality Guarantees 43

Forward control message over path until: ? 5 3 4 6 0.6 0.2 0.7 0.5 0.9 0.6 0.5 0.9 0.6

slide-45
SLIDE 45

Gradient Estimation

Adaptive Caching Networks w. Optimality Guarantees 44

Send control message over reverse path, collecting sum of edge costs. ? 5 3 4 6 0.6 0.2 0.7 0.5 0.9 0.6 0.5 0.9 0.6

+3 +8

Each node on reverse path, sniffs upstream costs, and maintains average per item . Forward until: Average at end of slot is estimate of

slide-46
SLIDE 46

Randomized Placement

Adaptive Caching Networks w. Optimality Guarantees 45

How can place exactly items in its cache, so that marginals are satisfied? 0.5 0.9 0.6 5 3 4 6

slide-47
SLIDE 47

Randomized Placement

Adaptive Caching Networks w. Optimality Guarantees 46

Suppose that I give you a such that . Is there a way to select exactly items at random, so that the probability that item is selected is ? = 0.82 = 0.77 = 0.77 = 0.64

slide-48
SLIDE 48

Randomized Placement: Sketch of Algorithm

Adaptive Caching Networks w. Optimality Guarantees 47

Triplets:

slide-49
SLIDE 49

Theorem: For , Projected Gradient Ascent leads to an allocation such that where an optimal solution to the offline problem.

Convergence

Adaptive Caching Networks w. Optimality Guarantees 48

slide-50
SLIDE 50

Adaptive Caching Networks w. Optimality Guarantees 49

Projected Gradient Ascent (vs. Path Replication)

 Distributed  Adaptive  Constant Approximation to Optimal

? 5 3 4 6 0.6 0.2 0.7 0.5 0.9 0.6 0.5 0.9 0.6

+3 +8

❌ Overhead for control traffic ❌ Overhead to retrieve content at end of timeslot ❌ Not so simple…

slide-51
SLIDE 51

Adaptive Caching Networks w. Optimality Guarantees 50

Path-Replication + Greedy Eviction Policy

5 3 4 6  Each node maintains an estimate for the (sub)gradient  At any point in time, caches “top” items, with highest gradients

slide-52
SLIDE 52

Adaptive Caching Networks w. Optimality Guarantees 51

Path-Replication + Greedy Eviction

5 3 4 6 + 6 + 10 + 13 + 18  A response carrying the item adds weights on the reverse path, and reports them to intermediate nodes.  Greedy Eviction: if becomes one of the top items, evict item with smallest gradient, and cache . ? Intuition: Greedily cache item with best “upstream gain” Frank-Wolfe Algorithm, PSEPHOS Algorithm [I.,Chaintreau, Massoulie,SIGMETRICS 2010]  Weights are used to update estimate of .

slide-53
SLIDE 53

Problem Formulation Distributed Algorithms Evaluation

Overview

Adaptive Caching Networks w. Optimality Guarantees 52

slide-54
SLIDE 54

Multiple Topologies

Adaptive Caching Networks w. Optimality Guarantees 53

y-axis: ratio to offline solution

slide-55
SLIDE 55

Joint caching & routing PR+Greedy Eviction guarantees Delay vs. Throughput Optimality Broader resource management applications Open Questions

Adaptive Caching Networks w. Optimality Guarantees 54

slide-56
SLIDE 56
  • S. Ioannidis and E. Yeh, “Adaptive Caching Networks with

Optimality Guarantees.” Proc. ACM SIGMETRICS, Antibes Juan-les-Pins, June 14-18, 2016, pp. 113-124.

Reference

Adaptive Caching Networks w. Optimality Guarantees 55

slide-57
SLIDE 57

Thank you!