The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and...

49
11/05/08 Sensys 2008 The β-Factor: Measuring Wireless Link Burstiness Kannan Srinivasan, Maria A. Kazandjieva, Saatvik Agarwal, Philip Levis Stanford Information Networks Group Stanford University

Transcript of The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and...

Page 1: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008

The β-Factor: Measuring Wireless Link Burstiness

Kannan Srinivasan, Maria A. Kazandjieva, Saatvik Agarwal, Philip Levis

Stanford Information Networks Group Stanford University

Page 2: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 2

Mirage , Channel 26

35% perfect links

Link Dynamics

*

* Intel Berkeley Mirage Testbed

Page 3: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 3

Mirage, Channel 26

No perfect links

Link Dynamics

Page 4: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 4

Mirage, Channel 26

No perfect links

Link Dynamics

  Links are bursty

Page 5: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 5

Problem Statement   Links are bursty

  Burstiness affects protocol performance

  Need a way to measure it   Towards better understanding of wireless network

protocol behavior

Page 6: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 6

In this talk

  Introduce burstiness metric: β   How useful is β?   Causes of burstiness

Page 7: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 7

In this talk

  Introduce burstiness metric: β   How useful is β?   Causes of burstiness

Page 8: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 8

Links and Burstiness Metric   Need a scalar metric

  Perfectly bursty link   Link with a long string of consecutive successes or

a long string of failures   β = 1.0

  Independent link   Link with independent packet events   β = 0.0

Page 9: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 9

Conditional Packet Delivery Function (CPDF)‏

0 1

C(k)=Prob(packet success/fate of past packets)‏

Consecutive Failures Consecutive Successes

2 3 -1 -2 -3 k

. . . . . . . . . . . .

Page 10: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 10

CPDF: Perfectly Bursty Link

0 1

C(k)=Prob(packet success/fate of past packets)‏

Consecutive Failures Consecutive Successes

2 3 -1 -2 -3 k

. . . . . . . . . . . .

0.0

1.0

. . . . . .

. . . . . .

  A link with a single burst of success or failure

Page 11: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 11

CPDF: Independent Link

A synthetic independent link with PRR=90%

0 1

C(k)=Prob(packet success/fate of past packets)‏

Consecutive Failures Consecutive Successes

2 3 -1 -2 -3 k

. . . . . . . . . . . .

0.0

0.9

  A link with independent packet events

. . . . . . . . . . . .

Page 12: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 12

CPDF of an Empirical Link

Average PRR

Not statistically significant

Consecutive Failures Consecutive Successes k

Page 13: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 13

Burstiness: The β-Factor

  Use KW distance   distance from perfectly bursty CPDF   independent links can have low distance

  For β:   compare distance of a link to the distance of an

independent link with same PRR

  β code available at http://sing.stanford.edu/srikank/betacalc.py

Page 14: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 14

Burstiness: The β-Factor

  β>0: Bursty link

  β=0: Independent link

  β<0: Oscillatory link

Page 15: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 15

The β-Factor: Examples

Independent link’s CPDF

k k

Independent link’s CPDF

Real Link Synthetic Independent Link

Page 16: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 16

  β is plotted only for intermediate links

The β Distribution on Mirage

Page 17: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 17

85% links have β > 0.8

The β Distribution on Mirage

Page 18: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 18

Increasing IPI decreases burstiness

The β Distribution on Mirage

Page 19: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 19

About 20% of links are around 0

The β Distribution on Mirage

Page 20: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 20

About 20% of links are around 0

The β Distribution on Mirage

  500ms: a good choice for independent reception

Page 21: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 21

In this talk

  Introduce burstiness metric: β   How useful is β?   Causes of burstiness

Page 22: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 22

How useful is β?‏   Opportune Transmissions

  Naïve algorithm   On success, send next packet soon   On failure, wait

  Similar in principle to:   Many MAC protocols do this

  How long to wait?   too long: underutilize link   too short: wasteful use of channel   β gives us this value: 500ms

Page 23: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 23

Opportune Transmissions (OppTx)‏   Replay data trace

  Compare PRR of OppTx with Fixed Rate transmissions

Fixed Tx (100ms)‏

Data Trace (10ms)

OppTx ( backoff of 100ms)

Page 24: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 24

Opportune Transmissions (OppTx)‏ PRR Improvements

PR

R

Backoff=500ms

Page 25: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 25

Opportune Transmissions (OppTx)‏ PRR Improvements

PR

R Highly bursty low PRR links improve most

Backoff=500ms

Page 26: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 26

CTP and β

  Modified No-Ack Time to 500ms

  Compare transmission costs of modified CTP with CTP with default No-Ack Time (Immediate~16-31ms)‏

  Ran an experiment on 80 Mirage nodes   Packet every 10s from every node   Count

receptions upon first packet at the root (allow for topology discovery)‏

Page 27: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 27

CTP and β: Single-Hop Performance

  50% of the links don't improve   Only 10% of links improve above 15%

Page 28: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 28

Immediate Opportune Reduction

-7dBm -15dBm 4.73 6.71 4.02 5.65 15% 15%

CTP and β: End-to-End Performance   Compute transmission cost

  (total # txs)/(# uniquely rcvd pkts at sink)

  More end-to-end improvement (~15%) than anticipated   CTP uses links that improve

Page 29: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 29

CTP and β: Take Away

  Improving a few links can improve end-to-end performance

  Trading-off Latency (No free lunch!)   CTP-OppTx: 4s at -7dBm and 25s at -15dBm   CTP-Immediate: 1s

Page 30: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 30

In this talk

  Introduce burstiness metric: β   How useful is β?   Causes of burstiness

Page 31: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 31

Why look for causes?

  Can we generalize the results?   Results could be due to Mirage

  A common cause allows generalization

  Could it be the channel variations?

Page 32: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 32

Causes of Burstiness: RSSI

Noise Floor

Variable Attenuator

Page 33: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 33

Causes of Burstiness: RSSI

1.5dB

Noise Floor

Variable Attenuator

Page 34: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 34

Causes of Burstiness: RSSI

1.5dB

Noise Floor

  Small variations in signal affects link PRR

Variable Attenuator

Page 35: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 35

Causes of Burstiness: RSSI

  RSSI is stable over short time spans   RSSI varies over longer durations

IPI=10ms IPI=15s

  Variation in signal strength is a possible cause of burstiness!

Page 36: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 36

External Noise Reduces Burstiness

Channel 26 Channel 16

85%

15%

Page 37: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 37

  Introduced a new burstiness metric

  Showed a way to use it to improve protocol performance

  Burstiness is caused by channel variations   Applicable to other link layers   Paper shows for 802.11: Roofnet

Summary

Page 38: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 38

  As a community, come up with more metrics   Stanford Wireless Analysis Tool (SWAT) in demo

  Report these metrics in our evaluations   “We tested protocol X on a Network with α=45, β=0.6 and σ=-10”

Moving Forward

Page 39: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 39

Thank You!

Questions or Comments?

Beta code: http://sing.stanford.edu/srikank/betacalc.py SWAT tool: http://sing.stanford.edu/swat

Page 40: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 40

Back-Up Slides

Page 41: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 41

KW Distance: How Far From Being Bursty?

KW Distance (or simply distance) = average(d-1, d1…d7)‏

d1 d2 d3 d4 d5 d6 d7

d-1

Page 42: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 42

β Calculation

Page 43: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 43

Burstiness: The β-Factor   β can be negative!

Independent link’s CPDF

Page 44: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 44

Roofnet

Page 45: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 45

Measuring Burstiness: Related Work   µ: the G-E model parameter

Page 46: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 46

End-to-end OppTx

Backoff=500ms

Page 47: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 47

End-to-end OppTx: Lower Power

Only 2-4% overall improvement

Backoff=500ms

Page 48: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 48

Opportune Transmissions (OppTx)‏ PRR Improvements

Optimal

Backoff=500ms

Page 49: The β-Factor: Measuring Wireless Link Burstiness · 2014-11-10 · 11/05/08 Sensys 2008 26 CTP and β Modified No-Ack Time to 500ms Compare transmission costs of modified CTP with

11/05/08 Sensys 2008 49

Opportune Transmissions (OppTx)‏ PRR Improvements

Backoff=500ms

Nearly perfect

PRR = 0.85