shetal shah krithi ramamritham prashant shenoy€¦ · shetal shah krithi ramamritham prashant...

31
Shetal Shah Krithi Ramamritham Prashant Shenoy

Upload: others

Post on 26-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Shetal ShahKrithi Ramamritham

Prashant Shenoy

Page 2: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

rapid and unpredictable changesstock prices, sensor data

used in on-line decision makingideal world: every change delivered to every user. coherency requirement (c):

E.g. Infosys stock price changes by $ 5

SourceS(t)

RepositoryP(t)

ClientU(t)

ctStU <− )()(

Page 3: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Design a dissemination system for dynamic data -- meet users’ coherence requirements

length of time for which coherency req is mettotal length of observations

Metric:

Fidelity =

Dissemination systems for the web includeAkamai, Dynamai

-- minimize fidelity loss

Page 4: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Source(s), repositories (and clients)

Each repository specifies its coherency requirement Source pushes specific changes to selected repositoriesRepositories cooperate with

each otherthe source

Page 5: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

SourceData Set: p,q,r,s

degree of cooperation: 2

p:0.2, q:0.3 r:0.2

p:0.4, r: 0.3

q: 0.4

q: 0.3

A B

D C

Client

Page 6: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

1. When should a repository disseminate updates ?

– data dissemination problem

2. What should be the logical interconnection between repositories?

– layout problem

3. How much should a repository cooperate?

– cooperation problem

Page 7: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Different users have different coherency req for the same data item.Coherency requirement at a repository should be at least as stringent as that of the dependents.Repositories disseminate only changes of interest.

Source

p:0.2, q:0.3 r:0.2

p:0.4, r: 0.3

q: 0.4

q: 0.3

A B

D C

Client

Page 8: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Source Repository P Repository Q

3.0Pc 5.0Qc

should prevent missed updates!

1.2

1.5

1

1.41.4

1.7

1.4

1 1 1

1

1.7 1.7

11

Page 9: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Source Based (Centralized)Repository Based (Distributed)

Page 10: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

For each data item, source maintainsunique coherency requirements of repositoriesthe last update sent for that coherency

For every change,source finds the maximum coherency for which it must be disseminated

tags the change with that coherencydisseminates (changed data, tag)

Page 11: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Source Repository P Repository Q

3.0Pc 5.0Qc

1.2

1.5

1

1.41.4

1.7

1 1 1

1

1.5

1

1.51.5 1.5

Page 12: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

QQP

A repository P sends changes of interest to the dependent Q if

Page 13: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Source Repository P Repository Q

3.0Pc 5.0Qc

should prevent missed updates!

1.2

1.5

1

1.41.4

1.7

1.4

1 1 1

1

1.7 1.7

11

Page 14: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

QQP

A repository P sends changes of interest to the dependent Q if

P

Page 15: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Source Repository P Repository Q

3.0Pc 5.0Qc

1.2

1.5

1

1.41.4

1.7

1.4

1 1 1

1

1.7 1.7

1.41.4

Page 16: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

1. When should a repository disseminate updates ?– data dissemination problem

2. What should be the logical interconnection between repositories?– layout problem

3. How much should a repository cooperate?- cooperation problem.

Page 17: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Fidelity offered by the layout network depends uponMaximum end-to-end delay for disseminating updates.Overhead (load) of disseminating updates at each repository.

To achieve high fidelity, these delays should be minimized.

Page 18: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Check level by level starting from the source

Each level has a load controller.The load controller tries to find data providers for the new repository(Q).

Insert repositories one by one

Page 19: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Repositories with low preference factor are considered as potential data providers. The most preferred repository with a needed data item is made the provider of that data item. The most preferred repository is made to provide the remaining data items.

Page 20: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Resource Availability factor: Can repository (P) be the provider for one more dependent?

Data Availability Factor: # data items that P can provide for the new repository Q.

Computational delay factor: # dependents P provides for.

Communication delay factor:network delay between the 2 repositories.

QservecanPitemsdataQPdelay

#),(

Page 21: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Single source, 100 repositories.Real time traces of various stocks50-100 data items.Link delay : Computed by a heavy tailed function. Average link delay: 20-30 ms.Computation delay : 12.5 ms/clientRate of change of data-item: 1 change/sec

Page 22: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Dissemination algorithmsNumber of checks at sourceNumber of messages.

Layout algorithm Loss in fidelity

For different coherency requirementsFor different degrees of cooperation

Page 23: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Repository based algorithm requires fewer checks at source

Page 24: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Source based algorithm requires less messages

Page 25: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

The less stringent the coherency requirement,

the better the fidelity

T% of the data items have stringent coherency requirements

Degree of cooperation

Los

s in

fid

elity

%

Page 26: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

too little /nocooperation= >loss of fidelity is high

Los

s in

fid

elity

%

Degree of cooperation

Page 27: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

can hurt

Under high degree of cooperation, computational delays dominate.

Under low degree of cooperation, network delays dominate.

Degree of cooperationDegree of cooperation

Los

s in

fid

elity

%

Page 28: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

1. When should a repository disseminate updates ?– data dissemination problem

2. What should be the logical interconnection between repositories?– layout problem

3. How much should a repository cooperate?- cooperation problem.

Page 29: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

dependentsdelaycompaveragedelaynetworkaverage

ncooperatioofActual

interested

degree

#×=

Page 30: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Without controlled cooperation

With controlled cooperation

Degree of cooperationDegree of cooperation Max degree of cooperation

Page 31: Shetal Shah Krithi Ramamritham Prashant Shenoy€¦ · Shetal Shah Krithi Ramamritham Prashant Shenoy. rapid and unpredictable changes stock prices, sensor data used in on-line decision

Cooperation is essential -- to achieve high fidelityBut, need to control the cooperation offered -- when delays are non-negligible

Selective Peer to Peer Dissemination of Streaming Data!