limosense – live monitoring in dynamic sensor networks

45
1 LiMoSense – Live Monitoring in Dynamic Sensor Networks Ittay Eyal, Idit Keidar, Raphi Rom Technion, Israel Israeli Networking Day. March 2011

Upload: larue

Post on 24-Feb-2016

54 views

Category:

Documents


2 download

DESCRIPTION

LiMoSense – Live Monitoring in Dynamic Sensor Networks. Ittay Eyal , Idit Keidar , Raphi Rom. Technion , Israel. Israeli Networking Day. March 2011. Outline Background – static average aggregation in sensor networks. LiMoSense . Correctness. Convergence . Dynamic behavior. . - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

1

LiMoSense – Live Monitoring in Dynamic Sensor Networks

Ittay Eyal, Idit Keidar, Raphi Rom

Technion, Israel

Israeli Networking Day. March 2011

Page 2: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

2

Outline• Background – static average

aggregation in sensor networks. • LiMoSense. • Correctness. • Convergence. • Dynamic behavior.

Page 3: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

3

Sensors

Read values and communicate. Light-weight, little energy, error prone.

Page 4: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

4

Sensor NetworkMany sensors (at least thousands). Limited topology.

Similar scenario in cloud monitoring

Page 5: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

5

Average Aggregation

Target: Average of read values. Reason:

Environmental monitoring. Cloud computing load monitoring.

Challenge: Cannot collect the values. Solution: In-network aggregation.

Hierarchical solution ?Not robust.

Page 6: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

6

Static error-free aggregation [1,2]Bidirectional communication gossip

1. D. Kempe, A. Dobra, and J. Gehrke. Gossip-based computation of aggregate information. In FOCS, 2003.2. S. Nath, P. B. Gibbons, S. Seshan, and Z. R. Anderson. Synopsis diffusion for robust aggregation in sensor networks.

In SenSys, 2004.

8

2 3

5

5 3

5

4 4

t=1 t=2 t=3

Page 7: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

7

Static error-free aggregation [1,2]Unidirectional communication gossip

1. D. Kempe, A. Dobra, and J. Gehrke. Gossip-based computation of aggregate information. In FOCS, 2003.2. S. Nath, P. B. Gibbons, S. Seshan, and Z. R. Anderson. Synopsis diffusion for robust aggregation in sensor networks.

In SenSys, 2004.

5, 1

3, 1

4.3, 1.5

3, 0.5Send half:

A

B

v w

in in

in

B BB

B

w v w vv

w w

12,A Av w

(3, 0.5)

Page 8: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

8

Static error-free aggregation [1,2]Unidirectional communication gossip

1. D. Kempe, A. Dobra, and J. Gehrke. Gossip-based computation of aggregate information. In FOCS, 2003.2. S. Nath, P. B. Gibbons, S. Seshan, and Z. R. Anderson. Synopsis diffusion for robust aggregation in sensor networks.

In SenSys, 2004.

5, 1

3, 1

4, y

4, xA

B

v w

(3, 0.5)t

Page 9: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

9

Static error-free aggregation

Realistic? • Monitoring Dynamic input! (restart?)• Cheap sensors Crashes. • Limited battery

Link failure and message loss

Page 10: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

10

LiMoSense – Live Monitoring in Dynamic Sensor Networks

Page 11: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

11

Live error-free aggregationObservation: Invariant:

read sum = Weighted sum

5, 1

3, 1

4.3, 3/2

3, 1/2A

B

3 1 5 1 8 3 1 / 2 4.3 3 / 2 8

Page 12: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

12

Live error-free aggregationObservation: Invariant:

read sum = Weighted sum

Goal: Maintain the invariant after input changes.

Page 13: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

13

Live error-free aggregationEach node stores: 1. Current weighted value. 2. Previously read value.

On read change: update weighted value to fix invariant.

1 newRead prevReadi i i ii

est estw

Weight unchanged.

Page 14: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

14

Live error-free aggregation

1 newRead prevReadi i i ii

est estw

Case 1:

Case 2:

Example: read value 0 1

3, 13, 2

4, 13.5, 2

Before After

Page 15: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

15

Live robust aggregationLost messages lost weight broken Invariant:

3, 1(3, 0.5)

3, 0.5

(3, 0.25)

Page 16: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

16

Live robust aggregationSolution: Send summary, not diff:

3, 1(3, 0.5)

3, 0.5

(3, 0.25)

3, 1(3, 0.5)

3, 0.5

(3, 0.75)

Page 17: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

17

Live robust aggregationSolution: Send summary, not diff: • Lost message:

Fix on next one.• Failed link:

Transfer undo.

3, 1(3, 0.5)

3, 0.5

(3, 0.75)

Page 18: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

18

Live robust aggregationSolution: Send summary, not diff:

3, 1(3, 0.5)

3, 0.5

(3, 0.75)

3, 0.25 3, 1

Linkfail

Undo

Page 19: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

19

Live robust aggregationChallenge: weight infinitySolution: Hybrid push-pull: Ask neighbor to sendback inverse.

3, 1

(3, 0.5)

3, 0.5

(3, 0.75)

Page 20: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

20

Live robust aggregationChallenge: weight infinitySolution: Hybrid push-pull: Ask neighbor to sendback inverse.

3, 1

(3, 0.5)

3, 0.5(3, -0.5)pull

Page 21: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

21

Live robust aggregationCrashed node lost links.

Page 22: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

22

Correctness

Page 23: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

23

Correctness - SafetyTheorem 1: The invariant always holds.

1. On message send/receive. 2. After value change. 3. After add/remove neighbor. 4. After node removal/addition.

Page 24: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

24

Correctness - LivenessTheorem 2: After GST, all estimations converge to the average.

1. Quantization constant and fairness.2. Value propagation. 3. Convergence.

Page 25: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

25

Correctness - Liveness1. Quantization constant and fairness.

Weight is transferred in multiples of q. Note – This does not effect accuracy.

Each node eventually succeeds to send a push message to all of its neighbors.

Page 26: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

26

Correctness - Liveness2. Value propagation.

Lemma: For any time t >= GST and node i, there exists a time t’ > t after which every node j has a component of i with a weight larger than some bound (the bound is dependent on n and q)

Page 27: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

27

Page 28: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

28

Correctness - Liveness3. Convergence.

Define a series GST =t0, t1, t2, ... Where at ti each node has a bounded-from-below portion from each node at ti-1.At each ti, the largest error is smaller than in ti-1, because it's mixed with other values.

Page 29: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

29

Convergence Rate

Page 30: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

30

Convergence

Static convergence rate (exchange gossip): • Static input (after GST). • Dense topology. • Synchronous uniform runs.

Page 31: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

31

Convergence

Static convergence rate (exchange gossip): Assumption:

normal distribution of estimations.

Page 32: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

32

Convergence

Static convergence rate (exchange gossip):

Page 33: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

33

Simulation

Page 34: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

34

Step Function100 nodes. Standard Normal distribution

10 nodes change Values (+10)

Page 35: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

35

Step Function100 nodes. Standard Normal distribution

10 nodes change Values (+10)

Page 36: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

36

Step Function100 nodes. Standard Normal distribution

10 nodes change Values (+10)

Page 37: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

37

Creeping Value Change100 nodes. Standard Normal distribution

Every 10 steps, 10 nodes change Values (+0.01)

Page 38: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

38

Creeping Value Change100 nodes. Standard Normal distribution

Every 10 steps, 10 nodes change Values (+0.01)

Page 39: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

39

100 nodes. Standard Normal distribution

Every 10 steps, 10 nodes change Values (+0.01)

Creeping Value Change

Page 40: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

40

100 nodes. Standard Normal distribution

10 nodes change Values (+10) for 100 steps

Response to Step Function

Page 41: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

41

Response to Step Function100 nodes. Standard Normal distribution

10 nodes change Values (+10) for 100 steps

Page 42: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

42

Dynamic NetworkDisc Graph

t=2500: 10 nodes range decay, 7 lost links

t=5000: Node crash.

Page 43: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

43

Summary• LiMoSense – Live Average Monitoring in

error prone dynamic sensor networks. • Live: aggregate dynamic data reads. • Fault tolerant: Message loss, link failure

and node crash. • Correctness in dynamic asynchronous

settings. • Exponential convergence after GST. • Quick dynamic behavior. Ittay Eyal, Idit Keidar, Raphael Rom. LiMoSense - Live Monitoring in Dynamic Sensor Networks, Technion technical report CCIT #786 March 2011EE.

Page 44: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

44

Good Questions

Page 45: LiMoSense  –  Live  Monitoring in  Dynamic  Sensor Networks

45

Convergence

Static convergence rate (push gossip):