35
1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li Yin and Fang Yu ICSI/UCB/USC/UCLA

1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

Embed Size (px)

Citation preview

Page 1: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

1

Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table

Sylvia Ratnasamy, Scott Shenker,

Brad Karp, Ramesh Govindan, Deborah Estrin,

Li Yin and Fang Yu

ICSI/UCB/USC/UCLA

Page 2: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

2

Outline

Background Existing Schemes Data-Centric Storage Conclusion

Page 3: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

3

Background

Sensornet♦ A distributed sensing network comprised of a large number of small sensing devices equipped with

• processor • memory • radio♦ Great volume of data

Data Dissemination Algorithm ♦ Scalable ♦ Self-organizing ♦ Energy efficient

Page 4: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

4

Observations/Events/Queries Observation

♦ Low-level output from sensors♦ E.g. detailed temperature and pressure readings

Event♦ Constellations of low-level observations♦ E.g. elephant-sighting, fire, intruder

Query♦ Used to elicit the event information from sensornets♦ E.g. locations of fires in the network

Images of intruders detected

Page 5: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

5

Existing Schemes

External Storage (ES) Local Storage (LS) Data-Centric Storage (DCS)

Page 6: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

6

External Storage (ES)

Page 7: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

7

Local Storage (LS)

EventData

EventData

Page 8: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

8

Local Storage (LS)

EventData

EventData

Page 9: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

9

Data-Centric Storage (DCS) Events are named with keys DCS provides (key, value) pair DCS supports two operations:

♦ Put (k, v) stores v ( the observed data ) according to the key k, the name of the data♦ Get (k) retrieves whatever value is stored associated with key k

Hash function♦ Hash a key k into geographic coordinates♦ Put() and Get() operations on the same key k hash k to the same location

Page 10: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

10

DCS – Example

(11, 28)Put(“elephant”, data)

(11,28)=Hash(“elephant”)

PDA

Page 11: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

11

DCS – Example

PDA

(11, 28)

(11,28)=Hash(“elephant”)

Get(“elephant”)

Page 12: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

12

DCS – Example – contd..

PDA

elephant

fire

Page 13: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

13

Comparison Study

Metrics♦ Total Messages

• total packets sent in the sensor network

♦ Hotspot Messages• maximal number of packets sent by any particular

node

Page 14: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

14

Comparison Study - contd.. Assume ♦ n is the number of nodes

♦ Asymptotic costs of O(n) for floods

O(n 1/2) for point-to-point routing

O(n1/2)0O(n 1/2)Cost for Storage

O(n1/2)O(n1/2)0Cost for Response

O(n1/2)O(n)0Cost for Query

DSLSES

Page 15: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

15

Comparison Study -contd..

Dtotal, the total number of events detected Q , the number of event types queries for Dq, the number of detected events of event types

No more than one query for each event type, so there are Q queries in total.

Assume hotspot occurs on packets sending to the access point.

Page 16: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

16

Comparison Study – contd..

Hotspot

Total

DCSLSES

nDtotal nDQn q nDnDnQ qtotal

totalDqDQ qDQ

DCS is preferable if Sensor network is large Dtotal >> max[Dq, Q]

)(summarynQnDnQ total

)(2 summaryQ

Page 17: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

17

Geographic Hash Table (GHT)

Builds on

♦ Peer-to-peer Lookup Systems

♦ Greedy Perimeter Stateless Routing

GHT

GPSRPeer-to-peer lookup system

Page 18: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

18

Review GPSR

Greedy forwarding algorithm Perimeter forwarding algorithm

Page 19: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

GHT Home node

to be the node geographically nearest the destination coordinates of the packet

Home perimeter the entire perimeter that encloses the destionation.

Page 20: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

20

Problems

Not robust enough♦ Nodes could move (new home node?)

♦ Home nodes could fail Not scalable

♦ Home nodes could become communication bottleneck

♦ Storage capacity of home nodes

Page 21: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

21

Solutions

Perimeter Refresh Protocol♦ Extension for robustness

♦ Handles nodes failure and topology change Structured Replication

♦ Extension for scalability

♦ Load balance

Page 22: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

22

Perimeter Refresh Protocol

PRP stores a copy of a key-value pair at each node on the home perimeter.

PRP generates refresh packets periodically.

Page 23: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

23

Structured Replication

Use a hierarchical decomposition of the key space.

For a given root r and a given hierarchy depth d, one can compute 4d-1 mirror images of r

Page 24: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

Simulation

Success rate the mean over all queries of the fraction of

events returned in each response, divided by the total number of events known to have been stored in the network for that key.

f the fraction of nodes that remain up for the

entire simulation.

Page 25: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

Simulation

Stable and Static Nodes

Page 26: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

Simulation

Static but Failing Nodes

Page 27: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

27

Simulation

System parameters:N, the number of nodes in the systemT, the number of event types, T = 100Q, the number of event types queried forD

i, the number of detected events of event type

i. Di = 100

Page 28: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

28

Simulation

Three version of DCSNormal DCS (N-DCS): a query returns a

separate message for each detected eventSummarized DCS (S-DCS): A query returns a

single message regardless of the number of detected events

Structured Replication DCS (SR-DCS)

Page 29: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

29

Simulation

Test 1: Varying Q

Page 30: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

30

Simulation

Test 1: Varying Q

Page 31: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

31

Simulation

Test 2: Varying n

Page 32: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

32

Simulation

Test 2: Varying n

Page 33: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

33

Conclusion Advantages:

In DCS, relevant data are stored by name at nodes within the sensornets.

To ensure robustness and scalability, DCS uses Perimeter Refresh Protocol (PRP) and Structured Replication (SR).

Compared with ES and LS, DCS is preferable in large sensornet.

Page 34: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

34

Conclusion

Disadvantages:GHT requires approximate knowledge of a

sensornet's boundariesOnly supports binary events, not range queries.

Page 35: 1 Data-Centric Storage in Sensornets with GHT, A Geographic Hash Table Sylvia Ratnasamy, Scott Shenker, Brad Karp, Ramesh Govindan, Deborah Estrin, Li

35

Questions?

Thanks