Intelligent Environments

37
Intelligent Environments 1 Intelligent Environments Computer Science and Engineering University of Texas at Arlington

description

Intelligent Environments. Computer Science and Engineering University of Texas at Arlington. Databases for Intelligent Environments. Requirements Technologies Evaluation Architecture. Intelligent Environments. Database Requirements. Database Requirements. Data Storage Requirements. - PowerPoint PPT Presentation

Transcript of Intelligent Environments

Page 1: Intelligent Environments

Intelligent Environments 1

Intelligent Environments

Computer Science and Engineering

University of Texas at Arlington

Page 2: Intelligent Environments

Intelligent Environments 2

Databases for Intelligent Environments Requirements Technologies Evaluation Architecture

Page 3: Intelligent Environments

Intelligent Environments 3

Intelligent Environments

Database Requirements

Page 4: Intelligent Environments

Intelligent Environments 4

Database Requirements

Page 5: Intelligent Environments

Intelligent Environments 5

Data Storage Requirements Sensor data

Temperature (15 @ 8 Kbps) Humidity (15 @ 8 Kbps) Gas (15 @ 8 Kbps) Light (15 @ 8 Kbps) Motion (15 @ 8 Kbps) Pressure (100 @ 8 Kbps) Microphone (15 @ 500 Kbps) Camera (15 @ 10 Mbps)

Page 6: Intelligent Environments

Intelligent Environments 6

Data Storage Requirements User data

Multimedia Phone messages/conversations (500 Kbps – 10

Mbps) Music (500 Kbps) TV/Radio broadcasts (500 Kbps – 10 Mbps) Home movies (10 Mbps) Images

Computer Programs Data files Operating systems

Page 7: Intelligent Environments

Intelligent Environments 7

Data Storage Requirements Issues

Query frequency and type Sampling/recording rates

205 sensors (158,900 Kbps) Multimedia recordings

Simultaneous playback Analysis, prediction, decision-making queries

Transaction granularity Historical data, decay Security and privacy Centralized vs. distributed

Page 8: Intelligent Environments

Intelligent Environments 8

Intelligent Environments

Database Technologies

Page 9: Intelligent Environments

Intelligent Environments 9

Database Technologies Commercial

DB2 Empress Informix Oracle MS Access MS SQL Sybase

Free Berkeley DB PostgreSQL MySQL

Page 10: Intelligent Environments

Intelligent Environments 10

DB2 Vendor: IBM Availability: Commercial ($300) www.ibm.com/software/data/db2 Features

Comprehensive

Page 11: Intelligent Environments

Intelligent Environments 11

Empress Vendor: Empress Availability: Commercial ($ call) www.empress.com Features

Designed for embedded, real-time applications

Page 12: Intelligent Environments

Intelligent Environments 12

Informix Vendor: IBM (acquired from

Informix) Availability: Commercial ($ call) www.ibm.com/software/data/

informix Features

Parallel databases Object relational

Page 13: Intelligent Environments

Intelligent Environments 13

Oracle Vendor: Oracle Availability: Commercial ($300) www.oracle.com Features

Comprehensive

Page 14: Intelligent Environments

Intelligent Environments 14

MS Access Vendor: Microsoft Availability: Commerical ($329

with Office Professional) www.microsoft.com/office/access

General purpose Designed for individual users

Page 15: Intelligent Environments

Intelligent Environments 15

MS SQL Vendor: Microsoft Availability: Commercial ($5,000) www.microsoft.com/sql Features

General purpose Designed for enterprise users

Page 16: Intelligent Environments

Intelligent Environments 16

Sybase Vendor: Sybase Availability: Commercial ($1,000) www.sybase.com Features

General purpose

Page 17: Intelligent Environments

Intelligent Environments 17

Berkeley DB Vendor: UC Berkeley Availability: Free www.sleepycat.com Features

Designed for embedded systems applications

Page 18: Intelligent Environments

Intelligent Environments 18

MySQL Vendor: MySQL Availability: Free www.mysql.com Features

General purpose

Page 19: Intelligent Environments

Intelligent Environments 19

PostgreSQL Vendor: Open source effort Availability: Free www.postgresql.org Features

General purpose

Page 20: Intelligent Environments

Intelligent Environments 20

Intelligent Environments

Database Evaluation

Page 21: Intelligent Environments

Intelligent Environments 21

Database Benchmarking Transaction Processing

Performance Council (TPC) www.tpc.org Rigorously-defined benchmarks Independent regulatory body

TPC benchmarks TPC-C, TPC-H, TPC-R, TPC-W

Page 22: Intelligent Environments

Intelligent Environments 22

TPC-C Benchmark Simulates complete computing environment Multiple users executing transactions against a

database Order-entry scenario

Entering and delivering orders Recording payments Checking order status Inventory monitoring

Metrics Transactions per minute (tpmC) Price per transaction ($/tpmC)

Page 23: Intelligent Environments

Intelligent Environments 23

TPC-H Benchmark Decision support benchmark

Examine large volumes of data Answers to critical business questions Complex queries Data modifications

Metrics Composite Query-per-Hour Performance

Metric (QphH@Size, $/QphH@Size) Size of database Single-stream query processing power Concurrent query throughput

Page 24: Intelligent Environments

Intelligent Environments 24

TPC-R Benchmark Decision support benchmark

Similar to TPC-H Advanced knowledge of queries

Allows optimization

Metrics Composite Query-per-Hour

Performance Metric (QphR@Size, $/QphR@Size)

Page 25: Intelligent Environments

Intelligent Environments 25

TPC-W Benchmark Web transactions benchmark

E-commerce scenario Multiple browser sessions Dynamic page generation with database

access and update Simultaneous transaction execution Heterogeneous database tables (sizes,

attributes, relationships) Metrics

Web interactions processed per second (WIPS, $/WIPS)

Page 26: Intelligent Environments

Intelligent Environments 26

TPC Results Best

TPC-C 709,220 tpmC (MS SQL)

TPC-H 100GB: 5578 QphH (Oracle) 300GB: 5976 QphH (Oracle) 1000GB: 25,805 QphH (Oracle) 3000GB: 79,528 QphH (Teradata) 10,000GB: 81,501 QphH (Teradata)

Page 27: Intelligent Environments

Intelligent Environments 27

TPC Results Best

TPC-R 100GB: 4442 QphR (Oracle)

TPC-W 10,000 items: 21,139 WIPS (MS SQL) 100,000 items: 10,439 WIPS (MS SQL)

More results at www.tpc.org

Page 28: Intelligent Environments

Intelligent Environments 28

Other Benchmarks Wisconsin

Relational queries AS3AP

ANSI SQL Scalable and Portable benchmark Mix of transactions, relational queries, and

utility functions Open Source Database Benchmark

(OSDB) Based on AS3AP

Page 29: Intelligent Environments

Intelligent Environments 29

Analysis High-end database transaction processing

power 600,000 tpm = 10,000 tps

Sensor recording transactions 15 temp/hum/gas/light/motion, 100 pres

175 tps 15 cameras (30 fps) / 15 microphones (64 Kbps)

465 tps, or 120,450 tps (one-byte mic transactions)

Multimedia recording transactions Prediction and decision-making queries System information

Page 30: Intelligent Environments

Intelligent Environments 30

Intelligent Environments

Database Architecture

Page 31: Intelligent Environments

Intelligent Environments 31

Database Architecture Issues (again)

Query frequency and type Sensors Multimedia recording and playback Analysis, prediction, decision-making queries User data System information

Transaction granularity Historical data, decay Security and privacy Centralized vs. distributed

Page 32: Intelligent Environments

Intelligent Environments 32

Sensor Database Systems COUGAR project

www.cs.cornell.edu/database/cougar Query processing over ad-hoc sensor

networks Small database component (QueryProxy)

at each sensor Sensor clusters provide local

aggregations (e.g., min, max, mean) Assumes centralized index of all data

sources

Page 33: Intelligent Environments

Intelligent Environments 33

Siemens Netabase “The network is the database.”

Navas and Wynblatt, ACM SIGMOD 2001 Sensor networks

Large number of data sources (105) Volatile data and data organization “Thin” data servers on scaled-down hardware

Netabase approach Query decomposition Characteristic routing (ala IP routing) Local joins Query evaluation

Page 34: Intelligent Environments

Intelligent Environments 34

Siemens Netabase www.netabasesoftware.com

Page 35: Intelligent Environments

Intelligent Environments 35

SmartHomeDatabase Architecture

Page 36: Intelligent Environments

Intelligent Environments 36

SmartHomeDatabase Architecture Centralized vs. distributed?

Answer: Both Central storage of high demand, persistent

data Distributed storage of low demand, dynamic

data Distributed queries Push processing toward sensors

Adaptive, hierarchical organization End-effector autonomy (“smart sensor”)

Page 37: Intelligent Environments

Intelligent Environments 37

UTA MavHome Smart Home