Towards Energy Efficient XPath Evaluation in Wireless Sensor - - PowerPoint PPT Presentation

towards energy efficient xpath evaluation in wireless
SMART_READER_LITE
LIVE PREVIEW

Towards Energy Efficient XPath Evaluation in Wireless Sensor - - PowerPoint PPT Presentation

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup Towards Energy Efficient XPath Evaluation in Wireless Sensor Networks N. Hoeller, C. Reinke, J. Neumann, S. Groppe, C. Werner, and V. Linnemann


slide-1
SLIDE 1

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Towards Energy Efficient XPath Evaluation in Wireless Sensor Networks

  • N. Hoeller, C. Reinke, J. Neumann, S. Groppe, C. Werner,

and V. Linnemann

Institute of Information Systems University of Luebeck

6th International Workshop on Data Management for Sensor Networks, 2009

1 / 27

slide-2
SLIDE 2

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Outline

Motivation XML in Wireless Sensor Networks Basics and Environmental Work Challenges Contribution XPath Evaluation Experiments and Results Test Environment and Evaluation Standard XML Programming Environment

2 / 27

slide-3
SLIDE 3

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Communication in Wireless Sensor Networks

  • Exchangeability problem
  • Complex programming requires expert skills
  • Handling communication formats during programming
  • is often even more complex
  • can cause programming errors
  • may result into unstable programs
  • may result into extra deployment costs

3 / 27

slide-4
SLIDE 4

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

XML in Sensor Networks

  • XML...
  • is a highly exchangeable data format
  • encourages using different sensor node products

(Application Layer, GSN approach)

  • simplifies connecting to sensor networks (e.g. WWW <->

sensor network)

  • is supported by standardized query languages (e.g.

XQuery, XSLT)

  • is self-descriptive and supports heterogeneous data in

sensor networks

  • is the key feature towards Service-Oriented Sensor

Networks (AESOP’s TALE)

4 / 27

slide-5
SLIDE 5

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

AESOP’s TALE Project Overview

5 / 27

slide-6
SLIDE 6

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Limitations & Goals

  • XML is verbose
  • Sensor node memory and energy consumption is still a

bottleneck

  • Typical sensor node platform 32-64kB RAM and 128-256kB

Flash

  • =

⇒ compress XML but let it be dynamically accessible (XOBE Template Objects Compression / WICON 2008)

  • Complex sensor node programming
  • Transparent integration of XML in the programming

language (XOBE / INSS 2008)

  • Support Service-Oriented Sensor Networks
  • Open Issue: Query Processing on compressed XML

6 / 27

slide-7
SLIDE 7

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Summary of Design Decisions

  • How to access XML data for evaluation?
  • direct access vs. navigation/reevaluation
  • How to evaluate XPath queries efficiently?
  • XML compression includes serialized SAX events
  • evaluation is done by a mealy machine simulation
  • How to store XPath results?
  • crucial for memory efficiency
  • runtime vs. memory demand
  • example: ancestor axes
  • adaptable marker structure
  • How to optimize the XPath evaluation?
  • result delivery, template caching, heterogenous aggregation

7 / 27

slide-8
SLIDE 8

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Evaluation Environment

  • Sensor Node Platform
  • iSense core modules (Jennic 32bit RISC) , Pacemates

(Philips LPC 2196)

  • available RAM 96kB (15kB Heap and 81kB Program)
  • Evaluation Test Cases
  • Status Delivery, XPathmark Functional Test

8 / 27

slide-9
SLIDE 9

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Status Delivery XML Memory Usage

  • Tasks A5, A6, A9, A10 include ancestor axis evaluation
  • Tasks A3, A4 include descendant axis evaluation

9 / 27

slide-10
SLIDE 10

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

General Program Memory Demand

Program Functionality Memory Demand in bytes XML Framework 7744 XPath Engine 18734 XPathMark Program 704 Debug Routines 668

Figure: Memory Consumption Query Task A1 //L/* XPathMark

10 / 27

slide-11
SLIDE 11

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Summary

  • XML integration in sensor network programming
  • XML compression
  • Native XPath Evaluation on sensor nodes is possible
  • Outlook
  • Continuous Query Support
  • SOAP Support
  • Optimized Memory Management

11 / 27

slide-12
SLIDE 12

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Thank you! Any questions?

12 / 27

slide-13
SLIDE 13

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

XML OBjEcts Sensor Network Programming

XOBE Sensor Networks integrates into existing Sensor Node Progamming Languages (e.g. Embedded C) It provides...

  • Transparency
  • Stability
  • Efficiency

13 / 27

slide-14
SLIDE 14

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

XML OBjEcts Sensor Network Programming

Transparency

  • Using XML directly within

the programming language

xml<status> var; while(true) { var = <status sensorid=’1’> <temp> {readTempSens()} </temp> </status>; send(var);}

14 / 27

slide-15
SLIDE 15

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

XML OBjEcts Sensor Network Programming

Transformation Requirements

  • Eliminate the XML
  • verhead
  • Represent XML in target

language

  • Allow dynamic

accessability

  • Allow query processing
  • Provide automatic XML

transformation into compressed format

15 / 27

slide-16
SLIDE 16

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Transformation Tasks

  • 1. Transform / Compress XML assignments (and XML

queries) during compiletime

sensor = <btsysinfo> <timestamp>{time}</timestamp> <bat>{battery}</bat> {sensor} </btsysinfo>;

  • 2. Verify / Update transformation during runtime (e.g.

important for DDL)

16 / 27

slide-17
SLIDE 17

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

XML Templates: From XML fragments to data binding

  • Split up XML fragments into dynamic and static parts
  • Define static parts (TEMPLATE) by finding repeating

structures

  • Compress static parts
  • Manage dynamic parts separately and link them to static

parts

  • Verify and update templates during runtime

<btsysinfo> <timestamp>@1</timestamp> <bat>@2</bat> @3 </btsysinfo>

17 / 27

slide-18
SLIDE 18

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

XML Template Transformation Example

for (int i=1; i <=n; i++) { sensor = <btsysinfo> <timestamp>{getTime()}</timestamp> <bat>{getBattery()}</bat> {sensor} </btsysinfo>; }

18 / 27

slide-19
SLIDE 19

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

XML to XML Template Object Transformation

Schema Analyzation XML Identifier Separation Generic Template Structure Generation XOBE XML Fragment Compile Time XML Schema/ DTD Runtime XML Template Object Generation Assignment Rewriting XML Template Object Generation Assignment Interpreting XML Template Changed? Cross References? Generate new XML Template XML Template Object Program Fragment

  • r

Webclient Adapt XML Template no yes yes no XPath native XML XML Fragment toString()

19 / 27

slide-20
SLIDE 20

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Further Optimizations

  • Areas of optimization
  • Element / Attribute Name Management
  • Template Storage
  • Query to Template Translation

20 / 27

slide-21
SLIDE 21

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Backup

21 / 27

slide-22
SLIDE 22

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Backup

22 / 27

slide-23
SLIDE 23

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Backup

23 / 27

slide-24
SLIDE 24

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Backup

24 / 27

slide-25
SLIDE 25

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Backup

25 / 27

slide-26
SLIDE 26

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Backup

26 / 27

slide-27
SLIDE 27

Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup

Backup

27 / 27