1 / 22

Scaling Down

Scaling Down. Robert Grimm New York University. Announcements. Assignment 4 after spring break But Send me result (as file) of converting http://www.cs.nyu.edu/rgrimm/teaching/sp03-web/sexp-test.txt to complete assignment 3 Linked in from course home page. Scaling Down in One Slide.

hansel
Download Presentation

Scaling Down

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. Scaling Down Robert Grimm New York University

  2. Announcements • Assignment 4 after spring break • But • Send me result (as file) of convertinghttp://www.cs.nyu.edu/rgrimm/teaching/sp03-web/sexp-test.txtto complete assignment 3 • Linked in from course home page

  3. Scaling Down in One Slide • Target devices (roughly) • Small form factor • Battery operated • Wireless communications • Strategies • Use proxies • Avoid communications

  4. The PalmPilot in the Late 90s(Think October 1997) • 16 MHz Motorola DragonBall 68328 • 1-2 MB of SRAM • 32 KB Heap, 32 KB relative jump maximum • Grayscale display (1-2 bits per pixel) • Wireless modem • Metricom Ricochet at 19200 bps

  5. Top Gun WingmanA Web Browser for the PalmPilot • Implemented as a proxy service • Communication between proxy and servers • HTTP • HTML, GIF, JPG • Communication between proxy and PalmPilots • Customized protocol • Application-level framing • Pre-arranged text objects, native bit maps

  6. Cluster-based platform for proxy-based services Transformation Distillation, filtering, format conversion Aggregation Collecting and collating data from various sources Caching Both original and transformed content Customization Service tailored for user’s needs or device characteristics Introducing TACC

  7. Front ends Accept requests, look up users,enqueue tasks Workers Process tasks Are atomic and restartable Manager Balances load across workers, starts and reaps workers User profile database Persistently stores user state TACC Architecture

  8. Top Gun Wingman on TACC • HTML and image processors • Convert to pre-arranged text objects, native bit maps • Aggregators • Perform queries for users • Zip, PalmOS, and Doc processors • Expand zip archives • But pass through PalmOS databases • Including AportisDoc e-books

  9. Top Gun Wingman Performance Wingman and Netscapeat 19200 and 57600 bps Wingman, Palmscape, HandWebat 57600 bps

  10. Advantages of the Proxy Approach • Performance • Isolation of complexity • (Mostly) client-independent back end • Transparent functionality upgrades • Backward compatibility • Support for standard servers and content • Middleware availability • Reusable platform for available and robust services • Any disadvantages?

  11. Assembled from off-the-shelf components 4Mhz, 8bit Atmel CPU 4 K RAM, 128 KB ROM 917 MHz RFM radio 50 kbs 512 K EEPROM Optional sensors Light, temperature, magnetic field, acceleration, sound, power Serial bus The Berkeley Mote (circa 2002)

  12. Energy Is Precious • Transmitting 1 bit  executing 800 instructions • In 2000 (with a less powerful CPU) • CPU 5 mA • RFM Rx 4.5 mA • RFM Tx 7 mA • Also in 2000, 1 battery pack lasts for • 35 hours at peak load • 1 year at minimum load

  13. Typical Uses for Motes • Monitor sensor output of collection of motes • Building integrity during earthquakes • Biological habitat monitoring • Temperature and power usage in data centers • Common requirements • Extract data from network • Summarize data

  14. TAG: Tiny Aggregation • Provides declarative interface to data collection • Distributes and executes queries across network • Power-efficient • Returns stream of results • Unlike table-based queries for databases

  15. Ad-Hoc Routing for Motes • Requirements • Deliver queries to all nodes • Provide one or more routes back to root of network • Tree-based scheme • Repeated broadcasts, starting at root mote • Each mote assigns itself • A level representing distance from root • A parent, that is, the sender of broadcast • Periodic repetition for topology maintenance • Account for mobility, loss (e.g., battery drainage)

  16. TAG Queries • SELECT {agg(expr), attrs} FROM sensors WHERE {selpreds} GROUP BY {attrs} HAVING {havingPreds} EPOCH DURATION {i} • SELECT AVG(Volume), room FROM sensors WHERE floor = 6 GROUP BY room HAVING AVG(volume) > threshold EPOCH DURATION 30s

  17. Aggregates • Structure: agg implemented by three functions • f: merge partial state records • i: initialize state record for single value • e: evaluate aggregate from partial state record • Taxonomy • Duplicate sensitivity • Exemplary or summary • Monotonic • Partial state • Distributive, algebraic, holistic, unique, content-sensitive

  18. Distribution Flood network with query(using tree-based routing scheme) Specify interval for receivingresults Somewhat less than parent’s Periodic collection Listen for partial staterecords Perform sensing & processing Pass up to parent TAG in Action

  19. Grouping • Each mote is exactly in one group • Groups based on one or more attributes • State maintained separately for each group • Records tagged with group • Motes merge and forward records for other groups • Motes update records for their own group • Optimization for some monotonic aggregates • Inject HAVING clause into network • Suppress storage and transmission for unsatisfactory groups

  20. More Techniques • Snooping to eliminate unnecessary aggregates • Works for monotonic, exemplary aggregates • Hypothesis testing to further suppress aggregates • Works for monotonic, exemplary aggregates • Also works for summary aggregates • Caching to overcome losses • Works for all aggregates, but smears values • Propagating to many parents to overcome losses • Works for duplicate insensitive aggregates • Also works for linearly decomposable aggregates

  21. Performance Simulation for a realisticenvironment Measured countfor prototype implementation

  22. Discussion • High-level interface to TAG • Is easier to program • Allows for optimizations in network • Partial computation • Compensation for lossy communications • However, effectiveness depends on properties of aggregate • Remember the taxonomy? • Are these techniques limited to sensor networks?

More Related