2006-05-18 10:00 – 14:00 @102a1 esaki laboratory pre-workshop discussion

45
2006-05-18 10:00 – 14:0 0 @102A1 Esaki Laboratory Pre-Workshop Discussion

Post on 20-Dec-2015

220 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

2006-05-18 10:00 – 14:00

@102A1

Esaki Laboratory

Pre-WorkshopDiscussion

Page 2: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Chapter

• Introduction (22 pages)– Overview– Evaluation– Characteristics

• Accident (3 pages)– Accidents already occurred– Accidents we must assume

• Discussion (18 pages)

Page 3: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

INTRODUCTION

• Historical System (weather.hongo)– Overview– Evaluation– Characteristics

• New Approach (live-e.hongo)– Concept (Sensor Abstraction)– System Overview– Characteristics

Page 4: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Live E! Project Overview

• A Sensor Network Infrastructure• E stands for three meanings

– Earth– Environment– Electronics

• Application– Public Service (such as for Natural Disaster)– Business– Education

Page 5: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

INTRODUCTION

• Historical System (weather.hongo)– Overview– Evaluation– Characteristics

• New Approach (live-e.hongo)– Concept (Sensor Abstraction)– System Overview– Characteristics

Page 6: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Historical System

weather.hongo.wide.ad.jpWindows 2003 ServerMSSQL

APP APP APP

Upload with SOAP

Vaisala Sensors

Web Service(SOAP/XML)

WD

WDDBLog

Web Interface

Page 7: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Vaisala Sensor(WXT510)

• Measure Item– Temperature– Humidity– Pressure (Barometer)– RainFall– WindDir– WindSpeed– (CO2)

Serial Interface

iLon100

WXT510

RS232C

Lonworks

Internetweather.hongo

SOAP

WXT510s are connected to weather.hongo through Lonworks.

Page 8: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Behavior of Data Upload

neuron_id WNIID Time Temperature Humidity Pressure RainFall WindDir WindSpeed

TABLE WD

TABLE WDDBLog

CO2

neuron_id Time Temperature Humidity Pressure RainFall WindDir WindSpeed CO2

WeatherDataWrite

Update WD Insert WDDBLog

Vaisala SensorDataData

Current Data Table

Archive Data

Web Service

Each sensor has multiple sensor type

DATA MODEL

Inside weather.hongo

Page 9: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

API (weather.hongo)

neuron_id WNIID Time Temperature Humidity Pressure RainFall WindDir WindSpeed

TABLE WD

TABLE WDDBLog

CO2

neuron_id Time Temperature Humidity Pressure RainFall WindDir WindSpeed CO2

Current Data Table

Archive Data

WeatherDataReadAll WDReadLogWeb Service

Select WD Select WDDBLog

XMLXMLXMLXML

The Latest Sensor Data Archived Sensor Data

Page 10: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Evaluation (weather.hongo)

• The Number of Sensor– About 50.

• Upload Frequency– Temperature, Humidity, Pressure, RainFall

• Every 5 minutes

– WindDir, WindSpeed• Every 20 seconds

• WDDBLog Table Size– Increases about 250,000 rows per day.– Current Row Size is 39,863,725 (2006-05-16 10:12:00)– A Query takes about 40 seconds.

Page 11: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Characteristics (weather.hongo)

• Designed by Echelon.• What the Sensor is:

– Vaisala sensor (at least, sensor on Lonworks)– Each sensor has multiple sensor type.– Sensors can be identified by NeuronID.

• No sensor meta-information– Sensor meta-information (sensor profile) must be prov

ided by other systems.

• Centralized– No scalability, No robustness

Page 12: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

INTRODUCTION

• Historical System (weather.hongo)– Overview– Evaluation– Characteristics

• New Approach (live-e.hongo)– Concept (Sensor Abstraction)– System Overview– Characteristics

Page 13: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

New Approach (live-e.hongo)

• What the Sensor is: (Sensor Abstraction)– Sensor ID of Live E!

• NeuronID is base on Lonworks system.• We must make a new ID system.• Globally-unique

– A single sensor type.• Each sensor must have only one value.• A Multiple sensor must be divided to single sensors.

– Profile• Meta-information that describes sensor.

Page 14: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Sensor ID

• sensor_id– Globally-unique ID– Format (Syntax Rule)

• Domain Name + /SensorModel/Location/SensorType

– Example• live-e.org/WXT510/0300000431b2/Temperature• live-e.unl.im.dendai.ac.jp/WM918/kanda/12/roof/Temperature• live-e.unl.im.dendai.ac.jp/WM918/kanda/12/roof/Humidity• live-e.unl.im.dendai.ac.jp/WM918/kanda/12/roof/Pressure• mew.co.jp/FS-Va-01/aoyama_elementary_school/Temperature

• Semantics– No meaning– Just a String

Page 15: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Sensor Data

• Each sensor has a single value.– The value can be determined by “sensor_id” an

d sampled “time”.

value = F( sensor_id , time)

Ex. The result of GetCurrentData(sensor_id);<d:Data xmlns:d=“http://live-e.org/Ver200603/Data”> <value time=“2006-05-15T02:34:53.000+09:00”>23.5</value><d:Data>

Page 16: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

(Major) Sensor Profile

• sensor_id (Ex. live-e.org/WXT5 ---/Temperature)• sensor_model (Ex. WXT510)• sensor_type (Ex. Temperature)• latitude (Ex. 35.712194)• longitude (Ex. 139.76775)• location (Ex. 東大情報基盤センター )• address (Ex.東京都文京区弥生 2-11-16)

Page 17: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Sensor Profile Example

• GetProfile(“live-e.org/WXT510/ --- /Temperature”);

<p:Profile xmlns:p="http://live-e.org/Ver200603/Profile"> <sensor_id>live-e.org/WXT510/03000005c3a2/Temperature</sensor_id> <sensor_vendor>vaisala</sensor_vendor> <sensor_model>WXT510</sensor_model> <sensor_type>Temperature</sensor_type> <longitude>139.76775</longitude> <latitude>35.712194</latitude> <location> 東大情報基盤センター </location> <address> 東京都文京区弥生 2-11-16</address></p:Profile>

Page 18: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

API (live-e.hongo)

• String GetCurrentDataAll();

• String GetCurrentData(String sensor_id);

• String GetCurrentDataByAreaRect(double,double,double,double);

• String GetCurrentDataByType(String sensor_type);

• String GetCurrentDataOf(String sensor_id_like);

• String GetDataByTimespan(String,Date,Date);

• String GetProfileAll();

• String GetProfile(String sensor_id);

• String GetProfileByAreaRect(double,double,double,double);

• String GetProfileByType(String sensor_type);

Page 19: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

live-e.hongo.wide.ad.jp weather.hongo

APP APP APP

Web Service(SOAP/XML)

Debian EtchPostgreSQL8.1Java+Axis

WM918 FS-Va-01

WXT510

live-e.hongo

Page 20: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Weather Station(WM918)

• Measure Item– Temperature– Humidity– Pressure– RainFall– WindDir– WindSpeed WM918

PCRS232C

Internetlive-e.hongo

SOAP

Page 21: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Field Server (FS-Va-01)

• Measure Item– Temperature– Humidity– Pressure– RainFall– WindDir– WindSpeed– Solar_Radiation– Soil_Moisture– Soil_Temperature– Photo

FS-Va-01

Internetlive-e.hongo

SOAP

DataCenterMatsushita-Denko

Page 22: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Data Upload Protocol

• Protocol– SOAP

• Data Format– XML-like format

<Data> <LiveE-ID>live-e.unl.im.dendai.ac.jp/WM918/kanda/12/roof/Temperature</LiveE-ID> <Time>2006-05-12T04:34:42.0000+09:00</Time> <Value>23.1</Value></Data>・・・ <Data></Data> continues

Page 23: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Behavior of Data Upload

sensor_id time value

TABLE sensor_data_current TABLE sensor_data_log

sensor_id time value

DB_INSERT

Updatesensor_data_current

SensorsDataData

Web Service

data_index

Insertsensor_data_log

Page 24: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Characteristics (live-e.hongo)

• Improved– Sensor Abstraction– Profile Management

• The same as weather.hongo– Directly connected to the Database

• Upload Message Flow• Query Processing

– Centralized• All the sensors are managed in one database• No scalability

Page 25: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Accident

• Accidents Already Occurred– The Accident of New Measure Item– The Accident of Software Update

• Accidents we must assume.– Server Crush– Rigid System

• Difficulty of introducing new architecture or new model.– Database-oriented– Sensors are deployed without managing

Page 26: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

The Accident of New Measure Item

• There is another data archive system.http://www.cnl.k.u-tokyo.ac.jp/~koba/live_e/index.php

– This system collects data by parsing HTML of web interface of weather.hongo.

http://weather.hongo.wide.ad.jp/WDShow/WDShow.aspx

• One day, a new measure item “DayRainFall” was added.– Of course, the HTML structure was changed.

• The archive system went into out of order.

Page 27: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

The Accident of Software Update

• Sensor data upload software had a bug.– It had been already published.– Isi removed the bug.

• Published again• Announced

• One of us deployed the old version.– The fact was found out by human check.– live-e.hongo could not detect it.

WM918

PCRS232C

Internetlive-e.hongo

SOAP

Page 28: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Discussion

Page 29: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Discussion Agenda

1. Evaluate the system in many aspects– Scalability, Robustness, ... , etc.

2. Introduce related work.

3. Determine what we focus on ...• pub-sub? or range query? or any other?

4. Design prototype system

5. Determine what to do at the workshop

Page 30: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Evaluate Point

• Scalability• Robustness• Flexibility• Reliability • Efficiency• Functionality• Availability• Feasibility• Heterogeneity Management• Automation• Simplicity

Page 31: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Scalability

• What is O(N)? N: The Number of Node.

• Resource Capacity VS O(N).– R>>O(N) at N=1,000,000 → Scale– R<O(N) at N=1,000,000 → Does Not Scale

• Current System (live-e.hongo)– Does not scale!!

• What do we need to introduce to obtain scalability?

Page 32: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Robustness (Tolerance)

• What would happen if ... ?– A server crushed.– Disconnected.

• Current System– It must be a disaster.

• Lose the data archived• Out of Service• Cannot collect sensor data• Take time to comeback

• What do we have to do to obtain tolerance?

Page 33: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Flexibility

• Is it easy to extend ... ?– easy to add some functions ?– easy to add resources ? (such as disk space or CPU)

• Current System– Rigid. – Each parts are tightly dependent.– We need lots of energy to remodel.

• How do we design a flexible system?

Page 34: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Reliability

• Is the data correct?– Can we trust the value of sensors?– How deep can we detect irregular behavior?– Who has the responsibility of the data?– Certification

• Current System– Trust all the sensor even if one of them said -324℃

• What do we need to improve reliability?

Page 35: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Efficiency

• Low cost?– Time, Money, Power, Space ...– It is said... The cost is:

• big central > small distributed

• Current System– Unknown

• It is important to think of efficiency when we design system.

Page 36: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Functionality

• Complex Query OK?– Range query

• Current system– Good

• How do we obtain functionality within the system?

Page 37: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Availability

• Is Live E! system opened?• Example of open system

– Internet– DHT

• Current System– Not opend– Only the system manager can control the system.

• How do we provide availability?

Page 38: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Feasibility

• Can we execute the plan?– Human Resource– Money– Law

• We have to consider whether we can do it or not.

Page 39: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Heterogeneity Management

• How do we manage sensors uniformly?– Abstraction?– Namespace Management?

Page 40: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Automation

• What do we need to design system to work automatically?– When software updated.– When resource added.

Page 41: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Simplicity

• Simpler, More User

• Few would like to learn complex access methods.

Page 42: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

RELATED WORK

• Content-Based Network– Publish-Subscribe Service

• DHT (Distributed Hash Table)– i3 (publish-subscribe on DHT)– PHT (range query on DHT)

• Caching

• Live Update

• Sensor Abstraction

Page 43: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

What we focus on ...

• Publish - Subscribe Model

• Range Query

• Data Mining

• The Abstraction of Sensor

• Live Update

Page 44: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

Prototype System

• Depends on what we focus on ...

• Talk about these:– Architecture– Interface and Protocol– Evaluation– Who

Page 45: 2006-05-18 10:00 – 14:00 @102A1 Esaki Laboratory Pre-Workshop Discussion

At the Workshop

• Evaluate the system.– What do you want to do?– I want to do something aggressive.

Ex. Increase virtual sensors until the system fails.