towards energy efficient xpath evaluation in wireless
play

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


  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

  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

  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

  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

  5. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup AESOP’s TALE Project Overview 5 / 27

  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

  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

  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

  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

  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

  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

  12. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup Thank you! Any questions? 12 / 27

  13. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup X ML OB j E cts Sensor Network Programming XOBE Sensor Networks integrates into existing Sensor Node Progamming Languages (e.g. Embedded C) It provides... • Transparency • Stability • Efficiency 13 / 27

  14. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup X ML OB j E cts 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

  15. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup X ML OB j E cts Sensor Network Programming Transformation Requirements • Eliminate the XML overhead • Represent XML in target language • Allow dynamic accessability • Allow query processing • Provide automatic XML transformation into compressed format 15 / 27

  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

  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

  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

  19. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup XML to XML Template Object Transformation XOBE XML Fragment XML Fragment Compile Time Schema Analyzation XML Schema/ DTD XML Identifier Separation Generic Template Structure Generation XML Template Object Generation Assignment Rewriting Runtime XML Template Object XML Template Object Generation Assignment Interpreting XML Template no Changed? Program Fragment XPath or yes Webclient Cross References? yes no toString() native XML Generate new Adapt XML Template XML Template 19 / 27

  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

  21. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup Backup 21 / 27

  22. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup Backup 22 / 27

  23. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup Backup 23 / 27

  24. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup Backup 24 / 27

  25. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup Backup 25 / 27

  26. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup Backup 26 / 27

  27. Motivation Basics and Environmental Work Contribution Experiments and Results Summary Backup Backup 27 / 27

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend