26
Department of Computer Science Odin – Smart Middleware for Mobile Services Andrew Meads [email protected]

Odin – Smart Middleware for Mobile Services

  • Upload
    cyrah

  • View
    61

  • Download
    0

Embed Size (px)

DESCRIPTION

Odin – Smart Middleware for Mobile Services. Andrew Meads [email protected]. Overview. Background Motivating Examples Challenges Odin Middleware Odin-Based Service Examples. Background. Traditional mobile app:. Request. Response. Background. Today’s smartphones are: - PowerPoint PPT Presentation

Citation preview

Page 1: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Odin – Smart Middleware for Mobile Services

Andrew Meads

[email protected]

Page 2: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Overview• Background• Motivating Examples• Challenges• Odin Middleware• Odin-Based Service Examples

COMPSCI 732

Page 3: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Background• Traditional mobile app:

COMPSCI 732

Request

Response

Page 4: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Background• Today’s smartphones are:

– Ubiquitous– Powerful– “Always” Connected

COMPSCI 732

What novel mobile apps can we come up with that make use of this?

Page 5: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Background• Mobile service:

COMPSCI 732

Context

Page 6: Odin – Smart Middleware for Mobile Services

Department of Computer Science

COMPSCI 732

Motivation: Patient Monitoring• Location

from GPS

• Vital Signs from BAN

• Contact medical professionals in emergency

• Monitor in real-time• Control & give Feedback

Page 7: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Motivation: Mobile Media

COMPSCI 732

• Media tagged with Context data

• Synchronize with external repository

• Consumers obtain media from any source

Page 8: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Motivation: Social Networking

COMPSCI 732

• Friends share data real-time

in a P2P fashion

Page 9: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Challenges• All these motivating examples sound cool, but:

– How do we discover mobile services?– How do we connect to them?– How do we remain connected?– How does a smartphone handle excessive

demand?– What happens when the battery runs low?– Etc…

COMPSCI 732

Page 10: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Challenges: Mobility

COMPSCI 732

Page 11: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Challenges: Reachability• Service reachability is an issue where a

device’s connection is via a mobile (e.g. 3G) network– Mobile network operators (MNOs) sometimes discard

traffic that originates outside of the mobile network– MNOs typically do not assign well-known addresses

to devices, or charge a premium for this service

COMPSCI 732

• Client sends message

• MNO Firewall blocks request

• Service doesn’t receive message

Page 12: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Challenges: Scalability

COMPSCI 732

• Smartphones and 3G networks don’t scale to meet the demands of large numbers of clients

Page 13: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Challenges: Availability• A mobile service’s availability is affected by

both its hosting device’s power and network status

COMPSCI 732

=

Page 14: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Odin• How does Odin help solve these issues?

– Compare this…

COMPSCI 732

Page 15: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Odin

COMPSCI 732

• How does Odin help solve these issues?– Compare this… to this.

• Odin introduces the concept of a Surrogate, which provides addional computational power and manages device – client communication.

Page 16: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Odin: Overview

COMPSCI 732

• Middleware, in general, is a layer of software that sits between the application and platform (OS + hardware)

• Middleware promotes reuse, portability, and interoperability

Application

Odin (device)

Mobile device

Application

Middleware

Platform

Application

Jini

Mobile service

Application

Odin (intermediary)

Jini

Intermediary Client

Page 17: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Odin: Jini Foundation• Jini is a service-oriented architecture specification and

implementation• Jini offers a programming model that leverages Java and extends

it to address the “eight fallacies of distributed computing”

COMPSCI 732

Client Service

Registry 1. Register2. Discover

3. Consume

• Logically centralised, physically distributed lookup service

• Protocol independent• Mobile code• Leasing mechanism• Distributed event

mechanism

http://www.jini.org

Page 18: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Odin: Jini Surrogate Architecture• The Jini Surrogate Architecture (JSA) specification

arose to allow devices that cannot run Jini to expose their services to Jini clients

COMPSCI 732

Client Surrogate Host

Registry 2. Register3. Discover

4. ConsumeDevice

Interconnect

1. Surrogate Registration

Surrogate

Page 19: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Odin: Surrogate and Interconnect• Odin’s primary benefits over stock JSA include:

– A multi-channel interconnect– A smart Surrogate cloud

COMPSCI 732

Client

Registry

Surrogate Host

DeviceSurrogate

Page 20: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Odin: Reachability over 3G Networks

COMPSCI 732

Response

RequestHTTP Keep-Alive

Response (client request attached)

Keep-Alive (response attached)

Device Surrogate Host

ClientFirewall

Page 21: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Odin: Vertical Handover• Proactive (in response to the detection of a

superior network)

COMPSCI 732

Device Surrogate Host

Interconnect

Page 22: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Odin: Vertical Handover• Reactive (in response to failure)

COMPSCI 732

Device Surrogate Host

Interconnect

Page 23: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Odin: Surrogate Migration

COMPSCI 732

Device

Surrogate Host One

Surrogate Host Two

C1

C2

C3

C3

C4Surrogate

“Migrate”

Page 24: Odin – Smart Middleware for Mobile Services

Department of Computer Science

COMPSCI 732

Odin: Context Awareness

Page 25: Odin – Smart Middleware for Mobile Services

Department of Computer Science

iStalker: A Mobile Social Networking Service

COMPSCI 732

Main MenuCan view friends, locations, etc. Each “friend” has their own service providing info.

DetailsCan view details for all friends, even when their phones are off. Their Surrogate will still exist.

MapCan view friend’s locations on a map. Location data is provided as a service.

iPhone ProcessesBackground process communicates with the Surrogate.

Page 26: Odin – Smart Middleware for Mobile Services

Department of Computer Science

Health Monitoring Service

COMPSCI 732

Vital Sign Monitorprovided by Zephyr

Group AwarenessView health, status, and location of multiple people

Detailed Health MonitorView vital sign informaion