pTunes : Runtime Parameter Adaptation for Low-power MAC Protocols

45
pTunes: Runtime Parameter Adaptation for Low-power MAC Protocols Marco Zimmerling, Federico Ferrari, Luca Mottola * , Thiemo Voigt * , Lothar Thiele Computer Engineering and Networks Lab, ETH Zurich * Swedish Institute of Computer Science (SICS)

description

pTunes : Runtime Parameter Adaptation for Low-power MAC Protocols. Marco Zimmerling , Federico Ferrari, Luca Mottola * , Thiemo Voigt * , Lothar Thiele Computer Engineering and Networks Lab, ETH Zurich * Swedish Institute of Computer Science (SICS). TexPoint fonts used in EMF. - PowerPoint PPT Presentation

Transcript of pTunes : Runtime Parameter Adaptation for Low-power MAC Protocols

Page 1: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

pTunes: Runtime Parameter Adaptationfor Low-power MAC Protocols

Marco Zimmerling, Federico Ferrari, Luca Mottola*, Thiemo Voigt*, Lothar Thiele

Computer Engineering and Networks Lab, ETH Zurich*Swedish Institute of Computer Science (SICS)

Page 2: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

2

Configuring a MAC Protocol is Not EasyApplicationRequirements End-to-end

Reliability

End-to-endLatency

NetworkLifetime

Page 3: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

3

Configuring a MAC Protocol is Not EasyApplicationRequirements

Low-powerMAC protocol

OFF time

End-to-endReliability

End-to-endLatency

NetworkLifetime

?

Page 4: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

4

A Real-world ExampleAdaptive ControlApplication

TinyOS LPL

Ceriotti et al., IPSN’11

250 ms

?500 ms100 ms 100 ms

Final LPLwake-up interval

Current practice: • Experience• Field trials• Over-provision

Page 5: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

5

A Real-world ExampleAdaptive ControlApplication

TinyOS LPL

Ceriotti et al., IPSN’11

250 ms

?500 ms100 ms 100 ms

Final LPLwake-up interval

Current practice: • Experience• Field trials• Over-provision

• Requires expert knowledge • Deployment-specific• Time-consuming• Sub-optimal performance

Page 6: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

6

Adapting a MAC Protocol is Even Harder100

PRR

(%)

0t

Sam

plin

g ra

te(1

/min

)

0t

10

Need to adapt at runtime to changes in• Topology (e.g., node failures, disconnects)• Wireless link quality (e.g., interference)• Traffic load (e.g., varying sampling rate)

Page 7: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

7

pTunes in a Nutshell

Sensor NetworkBase Station

ApplicationRequirements Network State

MAC Parameters

Network-widePerformance

Model

OptimizationTrigger

Solver

starts

used by

used by

Page 8: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

8

1. pTunes framework for runtime adaptability of existing low-power MAC protocols

2. Flexible modeling approach3. Efficient runtime support to “close the loop”

Contributions

Page 9: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

9

pTunes in a Nutshell

Sensor NetworkBase Station

Network State

MAC Parameters

Network-widePerformance

Model

OptimizationTrigger

Solver

starts

used by

used by

ApplicationRequirements

Page 10: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

10

• pTunes targets data collection scenarios– Tree routing– Low-power MAC

• Example requirements specification

Application Requirements

Network lifetimeEnd-to-end reliability greater than 95 %End-to-end latency below 1 second

Subject to:Maximize:

Page 11: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

11

• pTunes targets data collection scenarios– Tree routing– Low-power MAC

• Example requirements specification

Application Requirements

Network lifetimeEnd-to-end reliability greater than 95 %End-to-end latency below 1 second

Subject to:Maximize:

pTunes determines at runtime MAC parameterswhose performance meets the requirements

Page 12: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

12

pTunes in a Nutshell

Sensor NetworkBase Station

Network State

MAC Parameters

Network-widePerformance

Model

OptimizationTrigger

Solver

starts

used by

used by

ApplicationRequirements

Page 13: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

13

Network-wide Performance Model

Network-widePerformance

Model

MAC parameters

Tree topologyLink qualityTraffic load

Network lifetime

End-to-end reliability

End-to-end latency

A

B

A

B

Page 14: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

14

Network-wide Performance Model

Network-widePerformance

Model

MAC parametersNetwork lifetime

End-to-end reliability

End-to-end latency

Using the model, pTunes can predict how changes in the MAC parameters affect performance

Tree topologyLink qualityTraffic load

A

B

Page 15: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

15

Network-wide Performance Model

Network-widePerformance

Model

MAC parametersNetwork lifetime

End-to-end reliability

End-to-end latency

Using the model, pTunes can predict how changes in the MAC parameters affect performanceA

B

Tree topologyLink qualityTraffic load

Page 16: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

16

Layered Modeling ApproachApplication-level

Protocol-independent

Protocol-specific

Sender-initiated: X-MAC Receiver-initiated: LPP

S

R

S

R

t

t t

t

Page 17: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

17

Layered Modeling ApproachApplication-level

Protocol-independent

Protocol-specific

Sender-initiated: X-MAC Receiver-initiated: LPP

Only the lowest layer must be changed to adaptthe model in pTunes to a given MAC protocol

S

R

S

R

t

t t

t

Page 18: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

18

Layering in Action:X-MAC End-to-end Reliability

Application-level(source-sink paths)

Protocol-independent(child-parent link)

X-MAC-specific(single transmission)

OFF time

ON timemax. no. of retransmission

Page 19: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

19

pTunes in a Nutshell

Sensor NetworkBase Station

Network State

MAC Parameters

Network-widePerformance

Model

OptimizationTrigger

Solver

starts

used by

used by

ApplicationRequirements

Page 20: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

20

• Piggybacking introduces a dependence on the rate and the reliability of application traffic

• Running a dissemination protocol concurrently may degrade the reliability of application traffic

Communication Support to Close the Loop

Need to decouple network state collection and MAC parameter dissemination from application data traffic

Page 21: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

21

The Need for Consistency

B

A

C B

A

C

A reports B and resulting in a loop that never existed for real

B

A

C

B reports A as parent,

Need to collect consistent snapshotsof network state from all nodes

Page 22: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

22

Closing the Loop: Our Solution

t

Period

Application operation Application operation

Collect networkstate snapshots

Disseminate newMAC parameters

• Phases consist of non-overlapping slots, one for each node• Each slot corresponds to a distinct Glossy network flood

Page 23: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

23

• Temporal decoupling from application• Timeliness– Fast collection and dissemination

• Consistency– Snapshots taken at all nodes at the same time– Simultaneous transition to new MAC parameters

• Energy efficiency (44-node TelosB testbed)

Our Solution Achieves

Period Excess Radio Duty Cycle1 minute 0.35 %5 minutes 0.07 %

Page 24: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

24

• Implementation– Sensor nodes: Contiki, Rime stack, X-MAC, LPP– Base station: Java, ECLiPSe

Testbed Evaluation: Setup

• 44-node TelosB testbed― Channel 26, max. transmit power

BaseStation

Page 25: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

25

• Metrics– Projected network lifetime: measured in software

and computed based on 2000 mAh @ 3V batteries– End-to-end reliability: packet sequence numbers– End-to-end latency: packet time stamps

• Requirements specification

• Compare to static MAC parameters determined using pTunes and extensive experiments

Testbed Evaluation: Methodology

Network lifetimeEnd-to-end reliability greater than 95 %End-to-end latency below 1 second

Subject to:Maximize:

Page 26: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

26

1. Our X-MAC and LPP models are very accurate

Testbed Evaluation: Overview

Page 27: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

27

1. Our X-MAC and LPP models are very accurate2. pTunes provides higher bandwidth against

increasing traffic and prevents queue overflows

Testbed Evaluation: Overview

Page 28: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

28

1. Our X-MAC and LPP models are very accurate2. pTunes provides higher bandwidth against

increasing traffic and prevents queue overflows3. pTunes achieves up to three-fold lifetime gains

Testbed Evaluation: Overview

Page 29: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

29

1. Our X-MAC and LPP models are very accurate2. pTunes provides higher bandwidth against

increasing traffic and prevents queue overflows3. pTunes achieves up to three-fold lifetime gains4. Adaptation to traffic fluctuations5. Adaptation to changes in link quality6. Interaction with routing

Testbed Evaluation: Overview

Page 30: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

30

Adaptation to Traffic FluctuationsEnd-to-end reliability [%]greater than 95 %

End-to-end latency [sec]below 1 second

Network lifetime [days]

X-MAC OFF time [msec]

Page 31: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

31

Adaptation to Traffic FluctuationsEnd-to-end reliability [%]greater than 95 %

End-to-end latency [sec]below 1 second

Network lifetime [days]

X-MAC OFF time [msec]

Static 1

Page 32: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

32

Adaptation to Traffic FluctuationsEnd-to-end reliability [%]greater than 95 %

End-to-end latency [sec]below 1 second

Network lifetime [days]

X-MAC OFF time [msec]

Static 1Static 2

Page 33: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

33

Adaptation to Traffic FluctuationsEnd-to-end reliability [%]greater than 95 %

End-to-end latency [sec]below 1 second

Network lifetime [days]

X-MAC OFF time [msec]

Static 1Static 2pTunes

Page 34: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

34

Adaptation to Traffic FluctuationsEnd-to-end reliability [%]greater than 95 %

End-to-end latency [sec]below 1 second

Network lifetime [days]

X-MAC OFF time [msec]pTunes satisfies end-to-end requirements at high

traffic while extending network lifetime at low traffic

Static 1Static 2pTunes

Page 35: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

35

Adaptation to Changes in Link Quality

BaseStation

Interferer jams using modulated carrier: 1 ms ON / 10 ms OFF

Page 36: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

36

Adaptation to Changes in Link QualityEnd-to-end reliability [%]greater than 95 %

Page 37: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

37

Adaptation to Changes in Link QualityEnd-to-end reliability [%]greater than 95 %

Static 1

Page 38: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

38

Adaptation to Changes in Link QualityEnd-to-end reliability [%]greater than 95 %

Static 1pTunes

Page 39: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

39

Adaptation to Changes in Link QualityEnd-to-end reliability [%]greater than 95 %

pTunes reduces packet loss by 80 % during periods of controlled wireless interference

Static 1pTunes

Page 40: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

40

Interaction with Routing

BaseStation

Turn off 8 nodes × within the sink’s neighborhood

×

×

××

×

××

×

Page 41: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

41

Interaction with RoutingEnd-to-end reliability [%]greater than 95 %

Total number of parentswitches

Page 42: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

42

Interaction with RoutingEnd-to-end reliability [%]greater than 95 %

Total number of parentswitches

Static 1

Page 43: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

43

Interaction with RoutingEnd-to-end reliability [%]greater than 95 %

Total number of parentswitches

Static 1pTunes

Page 44: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

44

Interaction with RoutingEnd-to-end reliability [%]greater than 95 %

Total number of parentswitches

pTunes helps the routing protocol quickly recover from node failures, thus reducing packet loss by 70 %

Static 1pTunes

Page 45: pTunes :  Runtime Parameter Adaptation for Low-power MAC Protocols

45

Conclusions• pTunes framework for runtime adaptability of

existing low-power MAC protocols• Flexible modeling approach• Efficient system support to “close the loop”• Testbed experiments demonstrate that– pTunes aids in meeting the requirements of real-

world applications as the network state changes– pTunes eliminates the need for time-consuming,

and yet error-prone, manual MAC configuration