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.
Retransmission. Extra energy cost. Easier to amortize original energy cost of ... mobile sensors ... But too long => high retransmit cost when packets dropped.
... 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.
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.
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.
Jan 14, 2002 - N. Gavriely et al., âGas Exchange During Combined High and LoW Frequency Tidal Volume Ventilation in Dogs,â in. Progress in Respiration ...
maintaining a good degree of protection. 2. Somewhat smaller capacitor values may be required for additional protection in highâpa war sound reinforcement.
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 ...
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 ...
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-.
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 ...
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 ...
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
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.
This report aims at studying various compression techniques for data ..... The GIF (Graphics Interchange Format) and the UNIX compress utility, both use.
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-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.
establishment and release, VoIP and SS7, Quality of Service- CODEC Methods- ... Kurose and W.Rossâ Computer Networking âa Top down approach, Pearson.
Aug 29, 2005 - data and furthermore predict with some confidence the kinetics of ...... mapping using laser techniques is practically non-intrusive and is ...