middleware for pervasive computing: a survey - cs.umd.edu€¦middleware oss-port common system...

29
Middleware for pervasive computing: A Survey Vaskar Raychoudhury, Jiannong Cao, Mohan Kumar, Diqiang Zhang Presented by: Yunus Basagalar

Upload: hatu

Post on 21-Apr-2018

226 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Middleware for pervasive computing: A Survey

Vaskar Raychoudhury, Jiannong Cao, Mohan Kumar, Diqiang Zhang

Presented by: Yunus Basagalar

Page 2: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Pervasive computing

Page 3: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Pervasive computing

• Vast number of heterogeneous devices

• Huge amounts of data

• Highly dynamic environments

• No global view of resources

Page 4: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Middleware for pervasive computing

• Hide heterogeneity

• Hide complexity

• Ease resource management

• Ease programmer’s burden

Pervasive Computing Middleware

App 1

App 2

App n

Hardware and software resources: Operating systems, sensors etc.

Page 5: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Goal

• Design dimensions

• Common services

• Categorization

Page 6: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Pervasive Computing Middleware

Cro

ss-layer Sup

po

rt Common System Services

Service Manager Context Manager

Runtime Support

Reliability Manager

Security Manager

Reference Model User Applications

Processing Communication Storage

Operating Systems

Network Protocols

Programming Abstraction

Hardware Services

Sensor

Sensor

Page 7: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Design dimensions

Page 8: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Programming Abstractions

• Abstraction level – Node level

• Environment as a distributed system

– System level • Environment as a single virtual system

• Programming paradigm – Component-based

• Model-View-Controller (MVC) model

– Context-based • Context changes trigger events in the application

– Decentralized

Page 9: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

System architecture

• Mode of system control

– Centralized

– Decentralized

• Mode of interaction

– Any communication primitive is fine

• Message passing, Publish/Subscribe etc.

Page 10: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Design dimensions

Page 11: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Pervasive Computing Middleware

Cro

ss-layer Sup

po

rt Common System Services

Service Manager Context Manager

Runtime Support

Reliability Manager

Security Manager

Reference Model User Applications

Processing Communication Storage

Operating Systems

Network Protocols

Programming Abstraction

Hardware Services

Sensor

Sensor

Page 12: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Context Manager

Context management service

• Gathering raw data

• Event-driven

– Asynchronous

– Good for constraints

• Query-based

– SQL-like interface

– Synchronous

Context Acquisition

Context Fusion

Context Storage

Context Reasoning

Context Modeling

Page 13: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Context Acquisition

Context Manager

Context management service

• Aggregate readings

– Highly-correlated

– Redundant

• Conserve resources

– Energy

– Bandwidth

Context Fusion

Context Storage

Context Reasoning

Context Modeling

Page 14: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Context Storage

Context Fusion

Context Acquisition

Context Manager

Context management service

• Large heterogeneous data – Redundancy – Inconsistency

• Frequent updates – Updates for related objects

• Dynamic environments – Sources leave – Consumer interest change

Context Reasoning

Context Modeling

Page 15: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Context Manager

Context Modeling

Context Storage

Context Fusion

Context Acquisition

Context management service

• Represents context

• Purpose

– Deriving high-level context

– Reasoning

– Querying current and history

– Extending existing context types

Context Reasoning

Page 16: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Context Modeling

Context Manager

Context Storage

Context Fusion

Context Acquisition

Context management service • Key-value

o <temperature, 25 °C>

– Limited in expressiveness

• Logic-based o (Temperature, Room A, is, 25 °C)

Allow some reasoning

• Object-oriented Encapsulation, inheritance, reusability

– Nontrivial to extend

• Markup o Tags with attributes and content

Adapt content with respect to device

– No reasoning, no relationships

• Ontology-based o Resource Description Framework

Good for inferring context

– Limited for inexact reasoning

Context Reasoning

Page 17: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Context Reasoning

Context Modeling

Context Manager

Context Storage

Context Fusion

Context Acquisition

Context management service

• Infer implicit higher-level context from explicit lower-level ones

• Exact reasoning – Inputs must be present and precise

• Inexact Reasoning – Allows imprecise contexts

– High computation overhead

– Not suitable for accuracy critical applications

Page 18: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Pervasive Computing Middleware

Cro

ss-layer Sup

po

rt Common System Services

Service Manager Context Manager

Runtime Support

Reliability Manager

Security Manager

Reference Model User Applications

Processing Communication Storage

Operating Systems

Network Protocols

Programming Abstraction

Hardware Services

Sensor

Sensor

Page 19: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Service management service

• Acquired context might require an action

• Discover services needed by the action

• Compose services to execute the action

Page 20: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Service management service: Discovery

• Resource rich • Static • Reliable

• Resource constrained • Dynamic • Unreliable

✗ ✔

Page 21: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Service management service: Composition

• Describing services

– Providers advertise atomic services

• Specifying composition plan

– Low-level requests: specify workflows

– High-level requests: specify a goal to be achieved

• Selecting service provider

– Same service from multiple providers

– Choose the one that suits better

Page 22: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Service management service: Composition

• Architecture – Centralized composition

• Easy to implement

• Single-point of failure

– Distributed composition • Difficult to implement

• Highly redundant

• What if provider dies in the ongoing workflow – Static technique

– Dynamic technique

Hybrid composition

Page 23: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Pervasive Computing Middleware

Cro

ss-layer Sup

po

rt Common System Services

Service Manager Context Manager

Runtime Support

Reliability Manager

Security Manager

Reference Model User Applications

Processing Communication Storage

Operating Systems

Network Protocols

Programming Abstraction

Hardware Services

Sensor

Sensor

Page 24: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Reliability in context management

• Problem: Noisy and incomplete data

– Inconsistencies

– Mistakes in reasoning

• Preprocess raw data in sensor layer

– Deploy statistical and probabilistic techniques

• Context inconsistency detection

• Context inconsistency resolution

– Keep history and drop outliers

– Assign quality values to context data

Page 25: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Reliability in service management

• Problem: Dynamic environment

– Hard to follow where services are

• Directory-less

– Advertisement rate

– Announcement diameter

• Directory-based

– Pick K relatively static and reliable nodes

– Form the backbone with these nodes

– Store and replicate directory over the backbone

Page 26: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Security in context management

• Sharing context data might breach privacy

– Health situation passed on unwanted parties

• Access control

– Determine who can access which data

• Pseudonymity/anonymity

Page 27: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Security in service management

• Prove yourself to access services

– Bluetooth

– Universal Plug and Play

• Mutual authentication

• Secure communication channel

Page 28: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Future Research

• Data is getting larger and larger

– Efficient ways to store and query

• Detect user intention based on situation

• Privacy and security is not studied well

– It is highly required in such open environments

• Predicting user’s individual and social behavior

Page 29: Middleware for pervasive computing: A Survey - cs.umd.edu€¦Middleware oss-port Common System Services ... –Querying current and history –Extending existing context types Context

Thank you!

Questions/Comments