1 / 25

declarative sensor networks

declarative sensor networks. David Chu Computer Science Division EECS Department UC Berkeley. DBLunch UC Berkeley 2 March 2007. Leach's Storm Petrel. context. Sensor Networks 10’s – 100’s – 1000’s – 10,000’s. context. Sensor Networks early experiences. motivation.

nessa
Download Presentation

declarative sensor networks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. declarativesensor networks David Chu Computer Science Division EECS Department UC Berkeley DBLunch UC Berkeley 2 March 2007

  2. Leach's Storm Petrel context Sensor Networks 10’s – 100’s – 1000’s – 10,000’s

  3. context Sensor Networks early experiences

  4. motivation programming sensor networks is difficult! building entire sensor systems is even harder!!

  5. inspiration s e n s o rn e t w o r k s network design data management

  6. inspiration : data management • declarative is widely used in data management • relational databases • spreadsheets • abstract “what” from “how” • (Sensor-Network-As-Database)

  7. inspiration : network design • declarative is new idea in networking • compact • flexible • analyzable, optimizable • Internet Routing, Overlays built declaratively • (the P2 project)

  8. inspiration s e n s o rn e t w o r k s ( DSN ) network design data management

  9. what we did • adapted declarative language • built compiler & runtime for sensornets • wrote declarative examples

  10. 10x6 topology 30x2 topology … from original Trickle paper … DSN specification P. Levis, N. Patel, D. Culler, S. Shenker. "Trickle: A Self-Regulating Algorithm for Code Propagation and Maintenance in Wireless Sensor Networks." NSDI 2004.

  11. agenda • language overview • declarative sensornet examples • system architecture • feasibility assessment • application to landslide detection

  12. brief language overview Rule1: implies don’t care join Rule2: Fact: Built-ins:

  13. S C1 Z C2 D S C D a full example : tree

  14. and others… link estimator localization tracking geographic routing* *fallback routing not shown

  15. arch : compiler Snlog Compiler/Optimizer store(…) :- prod(…), cons(…). … path(…) :- link(…), dest(…). … Snlog Program Snlog Frontend Execution Planner nesC Backend GenericPredicateTemplate … … nesC Templates RuntimeTemplate … … Generated nesC code Database Operators Built-in Predicates nesC Compiler Runtime Components Type system Network support DSN Runtime Support Binary Image

  16. tupleready sendready sendready tupleready arch : runtime Join Join Proj runtime daemon tupleready … … … … … … … Sel Ag Proj tupleready mac daemon push interfaces database operators (compiler’s library) Join Sel Agg Proj pull interfaces table (compiler generated) thread of control builtin (user’s library) event signal the network

  17. implementation challenges • predictable execution → dynamic vs. static allocation • memory constraints → memory footprint optimizations no temporary tables, join/agg operator choice • asynchrony → rule-level atomicity priorities

  18. evaluation

  19. evaluating tree-collection messages sent (similar performance) hop-counts

  20. lines of code

  21. compiled size TelosB mote code space = 48KB, data space = 10KB

  22. VLDB 2006 demo

  23. current efforts • energy-based optimization • send or store • language semantics clarity • non-monotonic logic

  24. conclusion • sensor networks → data + communication • several examples of functional programs • feasible for today’s hardware platforms • preparing for landslide deployment

  25. thanks collaborators Joe Hellerstein, Scott Shenker, Ion Stoica Arsalan Tavakoli, Lucian Popa Phil Levis

More Related