Data Compression Algorithms for Energy-Constrained Devices in Delay Tolerant Networks Christopher Sadler Margaret Martonosi Princeton University

Why do we care about Compression in Sensor Networks? ~2 Million!

Success = Energy Savings Energy = Compute Energy + Transmit Energy

MSP430 Clock Cycles for Same Energy as One Byte Transmitted

10000000 1000000 ~32,000

100000 ~4,000

10000 1000 100 10

Short Range

Med. Range

Long Range

125 m

300 m

15 km

1 CC2420 CC1000

XTend

Radio 2

Unreliability: Retransmission Extra energy cost Easier to amortize original energy cost of compression

Thousands of MSP430 Clock Cycles for Same Energy as One Byte Transmitted

Why do we care about Compression in Sensor Networks? Medium Range Radio (CC1000)

140 ~128,000!

120 100 80 60

~32,000

40 20 0 100%

75%

50%

25%

Percentage of Packets Received Correctly 3

Why do we care about Compression in Sensor Networks? Source

Local Energy Tradeoff: ƒTransmit all data vs. ƒCompress data ƒStore data ƒTransmit compressed data

Downstream Energy Tradeoff: ƒRelay all data vs. ƒRelay compressed data

Downstream Energy Tradeoff: ƒRelay all data vs. ƒRelay compressed data

Sink Savings Accumulate with Hop Count 4

This work „

Propose and evaluate a family of lossless compression algorithms tailored to static and mobile sensors

„

Discuss additional steps for transforming the data that can further reduce energy

„

Evaluate the downstream energy benefits of compression on all subsequent intermediary nodes that receive and forward data 5

Outline „

Design Criteria and LZW Compression ‰ ‰

„ „

What we want in Sensor Compression? How do we adapt LZW to Sensors?

Using Compression to Conserve Energy Conclusions

6

Sensor Network Compression: Energy Savings for Everyone „

Need a general purpose, lossless compression algorithm that can work across the design space Great Duck Island (UCB): Outdoors, Stationary

SensorScope (EPFL): Indoors, Stationary

ZebraNet (Princeton): Outdoors, Mobile 7

Sensor Network Compression: Related Work „

Evaluating Off-the-shelf Algorithms ‰

„

Compression Algorithms for High-Spatial Correlation ‰ ‰

„

Barr & Asanovic 2003 – Energy of Compression on PDAs

Wavelet Compression, Source Coding, etc. Many deployments do not exhibit the required correlation

Data Reduction using Data-Centric Routing and Aggregation ‰ ‰ ‰

Directed Diffusion, etc. Difficult to move uncompressed data to aggregating node Data correlation is necessary for effective aggregation

8

Sensor Network Compression: What do we want? „ „

Low Transmission Overhead Computationally Simple ‰

„

Bounded Memory Footprint ‰

„

Compute energy of compression should not outweigh transmission energy savings To fit in small sensor node memories

Adaptive to general data sets ‰ ‰

Exploit repetition in general input data streams Work on small blocks of data 9

Is a variant of LZW the answer? LZW is a dictionary-based algorithm which encodes new strings based on previously encountered strings. Low Transmission Overhead – Receiver re-builds dictionary on-the-fly => no need to transmit it Computationally Simple Bounded Memory Footprint – Fixed dictionary size Adaptive – Exploits repetition in any input data stream and works on small blocks of data

But not the same LZW we see on desktops 10

Outline „

„ „

Design Criteria and LZW Compression ‰

What we want in Sensor Compression?

‰

How do we adapt LZW to Sensors?

Using Compression to Conserve Energy Conclusions

11

S-LZW: LZW for Sensor Nodes „

Dictionary decisions ‰ ‰

„

How large should we make the dictionary? What do we do if the dictionary fills?

Details in the paper

Data decisions ‰

How much data should we compress at once? „ „

‰ ‰

Longer data streams => better compression learning But too long => high retransmit cost when packets dropped

Can we shape the dictionary to improve compression? Can we shape the data to make it easier to compress?

12

S-LZW Idea 1: Data Size SENSOR DATA – N BYTES GENERATED OVER TIME

528 B Block

528 B Block

(2 Flash Pages)

(2 Flash Pages)

COMP. ALGORITHM

COMP. ALGORITHM

Compressed Data

Compressed Data





… … … …

528 B Block (2 Flash Pages)

COMP. ALGORITHM

Compressed Data



Independent groups of 10 or fewer dependent packets 13

S-LZW Idea 2: Mini-Caching „ „

Exploit fine-grained locality even in short sensor data sequences Proposal: Mini-cache to tightly encode MRU entries ‰

Hit => Saves multiple bits. Miss => Costs just 1 extra escape bit Escape Bit 0

Dictionary Tree 10 Bit Entries

1

MiniCache (N entries)

(Log2 N)+1 Bit Entries 14

S-LZW Idea 3: Data Transforms „

BWT – Reversible method of transforming data used in bzip2 and applicable for all data

„

Proposal: Structured Transform - Create a matrix of readings and transpose it to create runs ‰

Simple, but effective cb 4e 70 62 …

cb d5 d8 db …

d5 4e 46 62 …

4e 4e 4e 4e …

d8 4e 31 62 …

70 46 31 2b …

db 4e 2b 62 …

62 62 62 62 …

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

... ... ... ... 15

Outline „ „

Design Criteria and LZW Compression Using Compression to Conserve Energy ‰ ‰ ‰

„

Local and Downstream Energy The Influence of Unreliable Communications The Effects of Shaping the Data

Conclusions

16

Measurement Methodology: CPU and Radios „

Evaluation Platform: ‰ ‰ ‰

„

3 Real World Datasets… ‰ ‰ ‰

„

TI microcontroller MSP430: 10 kB RAM, 48 kB ROM Off-Chip Flash: 4 Mbit Atmel 3 Radios: Short (CC2420), Medium (CC1000), and Long (XTend) range SensorScope (SS) – Indoor, Stationary Great Duck Island (GDI) – Outdoor, Stationary ZebraNet (ZNet) – Outdoor, Mobile

… And one Compression Benchmark ‰

Geo from the Calgary Corpus (Calgeo) 17

CC2420 (Short Range) 15+% 1.4 Loss

1% 1.2 Loss 1 1.7X 0.8 Gain

1.2

1.2X Gain

1 0.8

0.6

0.6

0.4

0.4

0.2

0.2

0

0

2.6X Gain

Calgeo

ZNet

GDI

SS

Calgeo

ZNet

GDI

SS Data Compressed with S-LZW with Mini-Cache

XTend (Long Range) Lower is better

1.4 Normalized Energy

CPU

Flash

Radio

Local Energy Savings

Model assumes 100% reliability

18

Downstream Energy Savings CC2420 (Short Range)

0.015 0.01 0.005 0

XTend (Long Range)

5 Energy Saved (J)

Energy Saved (J)

0.02

4 3 2 1 0

-0.005 1

2

3

4

5

6

7

Hop Count

ZNet data, Compressed with S-LZW with Mini-Cache

8

9 10

1

2

3

4

5

6

7

8

9 10

Hop Count

Model assumes 100% reliability

19

Coping with Unreliability CC2420 (Short Range)

1. Energy savings increase linearly with hop count

2. At a 90% success rate, we save energy locally GDI Data, Compressed with S-LZW with Mini-Cache

20

Transforms to Improve Performance „

BWT – Reversible method of transforming data through sorting it XTend (Long Range) Top – Radio Energy Middle – Flash Energy Bottom – CPU Energy

7-8% Improvement 2.4X Gain

Normalized against sending the data without compression

3.4X Gain

Model assumes 100% reliability

21

Transforms to Improve Performance „

We can use the Structured Transform to save even more energy with our S-LZW algorithms CC1000 (Med. Range)

cb 4e 70 62 …

cb d5 d8 db …

d5 4e 46 62 …

4e 4e 4e 4e …

d8 4e 31 62 …

70 46 31 2b …

db 4e 2b 62 …

62 62 62 62 …

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

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

Normalized Energy

1

4.5X Savings!

0.8 0.6 0.4 0.2 0 S-LZW

S-LZW-MC8-ST Algorithm

SS

Normalized against sending the data without compression

GDI

Calgeo

Model assumes 100% reliability

22

Algorithms Summary Data Composition? Structured

General

Number of Hops? Few

Many

Radio Range? Short RLE-ST ~1.9X Savings

Number of Hops?

S-LZW-MC8-ST ~2.3X Savings

Medium/ Long S-LZW-MC8-ST ~2.4X Savings

MC – Mini-Cache ST – Structured Transform

Few

Many

Radio Range? Short

S-LZW-MC32 ~1.4X Savings

S-LZW-MC16-BWT

~1.8X Savings

Medium/ Long S-LZW-MC16-BWT

~1.8X Savings

BWT – Unstructured Transform

23

Conclusions „

Success in sensor compression is a metric of energy savings, not compression ratio

„

Some amount of compression almost always saves you energy

„

Sensor LZW (S-LZW) can reduce energy consumption by over 1.5X and simple data transforms can improve savings to more than 2.5X

„

Energy savings multiply as nodes re-send due to unreliable transmissions and as the network grows.

24

Thanks! Any Questions? „

S-LZW Source: www.princeton.edu/~csadler

Compressed

Uncompressed 25

Compression Talk

Retransmission. Extra energy cost. Easier to amortize original energy cost of ... mobile sensors ... But too long => high retransmit cost when packets dropped.

646KB Sizes 2 Downloads 269 Views

Recommend Documents

Data Compression
Data Compression. Page 2. Huffman Example. ASCII. A 01000001. B 01000010. C 01000011. D 01000100. E 01000101. A 01. B 0000. C 0001. D 001. E 1 ...

Talk, Talk, Talk Student Example.pdf
... below to open or edit this item. Talk, Talk, Talk Student Example.pdf. Talk, Talk, Talk Student Example.pdf. Open. Extract. Open with. Sign In. Main menu.

Oscillatory chest compression device
Jan 14, 2002 - (Commued). 602/ 13. See application ?le for complete search history. ..... F. Ohnsorg, “A Cost Analysis of HighiFrequency Chesti ..... mucous and other secretions to build up in a person's lungs. .... mobile unit shoWn in FIG.

Oscillatory chest compression device
Jan 14, 2002 - (63) Continuation of application No. 08/661,931 ... See application ?le for complete search history. Primary ..... Product Brochure, “Percussionaire® Corporation Presents .... Generator 3 may be con?gured as a mobile unit.

Oscillatory chest compression device
Jan 14, 2002 - N. Gavriely et al., “Gas Exchange During Combined High and LoW Frequency Tidal Volume Ventilation in Dogs,” in. Progress in Respiration ...

Protection of compression drivers
maintaining a good degree of protection. 2. Somewhat smaller capacitor values may be required for additional protection in high—pa war sound reinforcement.

Compression
processing sequence in which the dimensional state of the system can be seen to become ..... Bang: when the universe collapses back onto itself. This is a ...

Compression Progress, Pseudorandomness ... - Semantic Scholar
perbolic discounting of future rewards, humans have an additional preference for rewards ... The unifying theme in all of these activities, it is argued, is the active ...

Fractal Image Compression
published by Microsoft Corporation, includes on one ... an iterated function system (IFS), [1]. Use this IFS .... from the fractal file is shown in Figure 3. In Fig-.

Compression only CPR
Mar 31, 2008 - Bystanders who witness the sudden collapse of an adult should activate the emergency medical services (EMS) system and provide ...

1.1.5 Compression Techniques.pdf
As you can see we have some serious issues with the size of sound files. ... that can be easily stored on your computer and portable music device, and easily ...

Fast k-best Sentence Compression
Oct 28, 2015 - in Eq. 5, or it can be obtained by increasing a ki from a non-zero value ..... down approach on the test data (TOP-DOWN + NSS is the extended ...

Multimedia Compression Technologies
Feb 1, 2008 - Body. Standard Bit-rate. Application. ITU-T H.261. 192Kbps. ISDN-Phone. ISO. MPEG-1. 1.5Mbps. CD-ROM. ISO. MPEG-2. 4-8Mbps. SDTV ...

1.1.5 Compression Techniques.pdf
Page 1 of 2. Page 1 of 2. Computer Science 9608 (Notes). Chapter: 1.1 Information representation. Topic: 1.1.5 Compression techniques. 35TLossy and Lossless Compression. We have seen the various ways that you can reduce the size of files, we have als

Matrix Completion Based ECG Compression
Sep 3, 2011 - coder, good tolerance to quantization noise, and good quality reconstruction. ... A full rank matrix of dimensions (n × n) has n2 degrees of freedom and ..... methods for matrix rank minimization,” Tech. Rep., Department of.

Data Compression on DSP Processors
This report aims at studying various compression techniques for data ..... The GIF (Graphics Interchange Format) and the UNIX compress utility, both use.

Universal lossless data compression algorithms
4.1.3 Analysis of the output sequence of the Burrows–Wheeler transform . .... main disadvantages of the PPM algorithms are slow running and large memory.

Data Compression Algorithms for Energy ... - Margaret Martonosi
Data Compression Algorithms for Energy-Constrained Devices in .... 1000000. 10000000. CC2420. CC1000. XTend. Radio. In s tru c tio n. C y c le s fo r. S a m e.

Segmentation-based CT image compression
The existing image compression standards like JPEG and JPEG 2000, compress the whole image as a single frame. This makes the system simple but ...

EC706 MULTIMEDIA COMPRESSION AND ... -
establishment and release, VoIP and SS7, Quality of Service- CODEC Methods- ... Kurose and W.Ross” Computer Networking “a Top down approach, Pearson.

A RAPID COMPRESSION MACHINE - OhioLINK ETD
Aug 29, 2005 - data and furthermore predict with some confidence the kinetics of ...... mapping using laser techniques is practically non-intrusive and is ...