The document introduces IBM MessageSight, an appliance that provides secure connectivity between Internet of Things (IoT) devices, mobile applications, and enterprise systems. MessageSight uses the MQTT protocol which is optimized for low bandwidth and unreliable networks. It can handle large volumes of messages and connections from IoT devices and mobile apps. The document discusses use cases and how MessageSight can integrate with other IBM products and be deployed quickly and easily.
Introduction to MessageSight - gateway to the internet of things and mobile messaging
1. Introduction to MessageSight
Gateway to the Internet of Things and Mobile Messaging
Bernard Kufluk, MessageSight Product Manager
Bryan Boyd, IBM IoT Developer
5. The world is changing…
50Bn Connected Devices by 2020
Tablets outnumbered PC
sales in 4Q 2013
4Q 2013, Dept store
1.8Bn New Smartphones in 2013 drives 32% of sales online
6. New Customer Interaction Points for the 21st Century
Devices & Mobiles will be the touch points that drive new revenue streams
7. The Internet of Things is everywhere…
Smart Scales:
Track health in
outpatients
Connected car:
Tracks location, status of
car parts
Mobile:
Mobile payments
Smart Deliveries:
Track parcel
Monitor and open garage
door remotely on arrival
Heating and Air
Conditioning:
Maximum efficiency using
weather predictions and
remote control
Building Security:
Facial recognition, remote
notification
Smart Meter:
Track and
control usage
HealthCare:
Monitor patients at
home
Vending Machine:
Stock reporting,
temperature, shelf life
Container Tracking:
End to end tracking,
prevent tampering
8. Mobile Is Changing Interactions Across
Industries
Mobile banking
transactions grew at
138%CAGR
from 0.3B in 2008
to 9.4B in 2012
25% of all
online search for
travel comes from
a mobile device
1/3of citizens
access the U.S.
federal government
website by logging in
from phones or
tablets
9. And Ultimately Changing How Individuals Are
Getting Things Done
62%use
devices for
work related
email
47%use
devices to read
and write docs
41%use
devices to
access work
related apps
10. Introducing IBM MessageSight
Connecting the Enterprise to the Internet of Things and Mobile
• Purpose-built messaging appliance
• Secure, Easy to deploy, Simple to manage
• Developer-friendly support for JavaScript APIs, WebSockets,
Android, and iOS
• Optimized for wireless communications and massive scale
Internet of Things and Mobile at edge of enterprise
12. Automotive Use Case
Service Revenue Optimization
Business Challenge: Optimize utilization of service resources and
and reduce mean-time-to-repair though real-time predictive failure
analysis and service logistics pre-staging
Data Sources
Engine Control Module
In-dash Head Unit
via Wireless Networks
Real-time Logistics
Optimization
(Parts & Skilled Labor)
Real-time
Analytics
Operational
Decision
Management
IBM MessageSight gives you the ability to securely and reliably integrate
millions of vehicles into a centralized large-scale monitoring and control
infrastructure while minimizing data and operational costs as well as server
build out.
13. Automotive Use Case
Value-add Mobile Services
Business Challenge: Tap new revenue streams of value-add vehicle
services based on secure and reliable mobile integration with the vehicle
Data Sources/Destinations
Mobile Users & Vehicles
Decision
Management
System
“I forgot to lock my car!”
“It’s starting to rain, roll up my car windows!”
“Start my car a/c before I leave work”
IBM MessageSight provides secure and reliable connectivity between mobile
apps with vehicles on a large scale in a cost effective manner.
Reliability is critical in consumer-centric applications where trust, safety and
value-add protection are keys to customer satisfaction and revenue opportunity.
14. Energy and Utilities Use Cases
Smarter Home, Smart Grid
Business Challenges: Improve energy awareness and use in the home.
Improve ability of the grid to respond without more infrastructure and powerlines
Smart Meters
Solar Panels
Appliances
Electric Car
Decision
Management
Business Process
Management
Data
Integration
Homeowner
Power Grid
Monitor
Utilization
Data
Usage Data
Change
demand
15. HealthCare Use Case
In-home Patient Monitoring
Business Challenge: Allow at-risk patients to continue to live at home in
familiar surroundings, decreasing care costs while maintaining
situational responsiveness of caregivers
Emergency Services Relatives/Caregivers
Heating System Sensors
Basement Water Sensors
Heart/Vital Signs Monitors
At-Risk Patient Community
Homes Monitored by Sensors
Patient Management
Application
IBM MessageSight provides secure and reliable connectivity between, sensors,
mobile apps with vehicles on a large scale. Security and reliability are critical in
healthcare applications where trust, safety and piece of mind are keys to
customer satisfaction and revenue.
16. Financial Services Use Case
Mobile Banking
Business Challenge: Provide secure and reliable “Push” delivery of
confidential data in real time directly to the handset without having to
send that data through insecure and/or costly 3rd-party services
6) App wakes and gets
data direct from
MessageSight
Mobile Banking
Customer Handsets
1) Banking Server
triggered to notify
customer with
confidential data
Mobile Banking
Application Server
2) If handset is online and app is
running, data is delivered
immediately, reliably, and
securely
3) If app not online, send wake up
to WorkLight (containing no
confidential data)
5) Wake up app
3rd-party Native
Notification Service
(eg APNS)
4) WorkLight sends
to native
notification WorkLight
IBM MessageSight provides secure and reliable bi-directional interactivity for
mobile apps on a large scale. Backend applications no longer have to wait be
“polled” by clients and can proactively engage customers for smarter results
in real time.
17. Secure Customer Instant Messaging
Cross Industry
Business Challenge: Allow your customer to engage with your company
securely, and seamlessly through private Instant Messaging across
different platforms
Mobile Customer
Using Branded App
Messaging
Application
Controller
Customer
On Web site
IBM MessageSight provides secure and reliable bi-directional interactivity for
mobile apps and for HTML5 web applications on a large scale.
19. • Extends IBM Messaging family with secure,
easy to deploy appliance-based messaging
gateway
• Optimized for massive scale Internet of Things
and Mobile use cases at edge of enterprise
• Exploits hardware acceleration for high
performance
• Can extend existing messaging infrastructure
or be used standalone
Designed for
Things
Developer
Friendly
Scale For
the Internet
Of Things
And Mobile
Easy to
Integrate
Secure
And
Easy to
Deploy
IBM MessageSight
IBM MessageSight
20. IBM MessageSight
Optimized for Wireless with MQTT
• Open Royalty Free Specifications being standardized by OASIS
under Paho
– Sponsors: Cisco, Blackberry, Kaazing, Red Hat, VMware, IBM, etc.
• Efficient two-way messaging protocol designed for
constrained devices, low-bandwidth, unreliable networks
• Three qualities of service:
0 – at most once delivery
1 – assured delivery but may be duplicated
2 – once and once only delivery
• Built-in constructs to support loss of contact between client
and server.
“Last will and testament” to publish a message if the client goes offline
“durable” subscriptions
• Retain messages for fast access to last data
Designed for
Things
M2M and Mobile
21. MQTT: Optimized for Wireless
Optimizing network with event-driven notification
Action HTTP MQTT
Get single piece of data 302 bytes 69 bytes (<4 times)
Send single piece of data 320 bytes 47 bytes (<6 times)
Get 100 pieces of data 12600 bytes 2445 bytes (<5 times)
Send 100 pieces of data 14100 bytes 2126 bytes (<6 times)
Characteristics HTTP MQTT
Style Document-centric, request/response Data-centric, publish/subscribe
Verbs GET/POST/POST/DELETE, complex spec Pub/Sub/Unsub, simple protocol, easy to
learn
Message size Large message, lots of data in headers 2 bytes in minimum header
Quality of Service None, requires custom coding in application 3 levels – best-effort, at-least-once, exactly
once
Data distribution No distribution mechanism (1-to-1 only) Fully supported. 1-to-none, 1-to-1, 1-to-n.
22. Dynamic Demos
Demo: “Whiteboard”
http://m2m.demos.ibm.com/whiteboard
“Latency demo”, optimized for mobile browsers
A shared drawing canvas: all drawing actions are published on a MQTT
topic, all whiteboard clients are subscribed to this topic.
23. IBM MessageSight
Secure and Easy to Deploy
• 2U form factor rack-optimized appliance
• Hardened appliance; DMZ ready
• No user accessible Operating
System
• Signed and encrypted firmware
• No user installed software
• Multiple network interfaces:
• 8 x 1GbE ports
• 4 x 40GbE ports
• Deploy in less than 30 minutes!
• SSL and TLS support: SSL v3 and TLS 1.0, 1.1
and 1.2
• Client Certificates
• FIPS 140-2 Level (1-certified cryptographic
module)
• Fine-grained messaging authorization
policies which restrict access based on
combinations of:
– User or group, Client identifier, Protocol,
Network interface, Listening address and/or
port, Client IP address or range, Destination
(topic and queue) name
Secure
And
Easy to
Deploy
24. Built-in dashboard with common metrics on the Web
UI
Various built-in queries available through Web UI and
CLI
Ability to publish Monitoring/Metrics data to an
administrative topic
Topic subtree: “$SYS/ResourceStatistics”
This enables simplified and more flexible integration with
existing monitoring tools / applications as well as the ability
to build custom monitoring apps / dashboards
IBM MessageSight
Simple to Manage
Secure
And
Easy to
Deploy
25. IBM MessageSight
Developer Friendly
Developer-friendly APIs and libraries
MQTT 3.1 clients and libraries for a variety of platforms (C and
Java- Based APIs)
Clients for Google Android and Apple iOS
JavaScript API for HTML5-based applications using Websockets
PhoneGap MQTT plug-ins with JavaScript API for use with IBM
Worklight, Apache Cordova, and Adobe PhoneGap
JMS 1.1 client libraries
JEE/JCA Support
Extended to support Shared Subscriptions
“MessageSight for developers” Virtual machine
Makes it easy to develop applications
Developer
Friendly
26. function connect(form) {
try {
client = new Messaging.Client(hostName, port, clientId);
} catch (exception) {
alert("Exception:"+exception);
}
client.onMessageArrived = onMessageArrived;
client.onConnectionLost = connectionLostCallback;
client.connect({onSuccess: onSuccessCallback});
}
Create client
Set callbacks
Connect to
the server
function doSend(form) {
if (form.textMessage.value == "") {
message = new Messaging.Message("");
} else {
message = new Messaging.Message(form.textMessage.value);
}
message.destinationName = form.topicName.value;
client.send(message);
}
Create Message
object
Set Topic
Send the
message
function onMessageArrived(message) {
var form = document.getElementById("basic");
form.receivedMessage.value = message.payloadString;
}
Show the payload
in a field
Connect
Publish
function subscribe(form) {
client.subscribe(form.subscribeTopicName.value);
}
Subscribe to
A topic
Subscribe
Receive
26
IBM MessageSight
JavaScript API example
27. IBM MessageSight
Easy to Integrate
• Integration with application servers using Java Connector Architecture (JCA)
– Integration with Message Driven Beans (MDBS)
– Shared Subscription for scalability
– Support for TLS/SSL security
– Local and XA transaction support
– HA-aware
• Built-in Connectivity with WebSphere MQ
– One appliance can connect to multiple WebSphere MQ queue managers
• IBM Integration Bus support
– Through the JMS nodes/out of box patterns
• IBM InfoSphere Streams
• MQTT Operator to consume data from MessageSight
• Single Sign-on support with LTPA
• Ability to get notified when subscribers are disconnected
• Allows to use alternate communications mechanism to reach them
Easy to
Integrate
28. IBM MessageSight
Appliance Connectivity Summary
MessageSight [Primary]
MessageSight [Standby]
Mobile
Andriod
Mobile
iOS
Mobile
Tablet
MQTT
MQTT
MQTT over
websockets
MQTT over
websockets
MQTT
MQTT
MQTT
DMZ
Sensor
(Embedded C)
Sensor
Sensor
JEE Server
(WAS)
JEE Server
(WAS)
Resource
Adapter
JMS Java
Application
MQTT
MQ
C
Applicatio
n
IBM MQ
System Admin
Browser
Internet Intranet
29. IBM MessageSight
IBM MessageSight: Scale for the Internet of Things and Mobile
• Exploits hardware acceleration for high performance
• One appliance can handle
– 1M Concurrent Connections
• For instance, one appliance can handle all the
cars circulating in Manhattan in a day
– 15M non-persistent msg/sec
• For fan-out streaming of data
– 400K persistent msg/sec
• When assured delivery matters
– Predictable latency in the microseconds under load
• Quick response time for end user
• High availability pairs through RDMA interconnections
• These numbers refer to specific scenarios. For more details, please read our detailed performance report
Scale For
the Internet
Of Things
And Mobile
30. Use Case: Enabling Real-time analytics
Smarter Decisions
Powerful
analytics
High speed processing of big data
IBM InfoSphere
Streams
Real-time data Smarter actions
IBM MessageSight
Internet Scale
device connectivity
33. What was the hill?
• “As Bob, I want to deploy MessageSight to my cloud and get it running in 30 minutes”
• “As Bob, I want to deploy MessageSight to my cloud and get it running in 30 minutes”
– Bob - our MessageSight administrator, in charge of installing and
configuring MessageSight
• “As Bob, I want to deploy MessageSight to my cloud and get it running in 30 minutes”
– MessageSight – I want to get the rapid, bidirectional, secure,
reliable mobile and sensor connectivity to my enterprise
systems
• “As Bob, I want to deploy MessageSight to my cloud and get it running in 30 minutes”
– Cloud – public or private cloud infrastructure
• “As Bob, I want to deploy MessageSight to my cloud and get it running in 30
minutes”
– Let’s get on with it!
34. What did we make?
• MessageSight Virtual Edition that can be rapidly deployed to public and
private clouds
• Can be deployed:
– To virtual bare metal servers in SoftLayer, IBM’s cloud hosting company
– On any VMware infrastructure using VMware ESXi
• Including PureApplication System
35. SoftLayer at a Glance
More than
22 million
domains
hosted—roughly one
domain for every person
in the 10 largest U.S.
cities
Hundreds
of configuration
options
More than
130 million
online game players
are playing games
running on SoftLayer
More than
100,000
devices managed
for 21,000 customers
in 140 countries
Predictable
bare metal
performance
Speed of deployment
Dedicated servers:
hours, not days
Shared servers :
minutes
37. Where do you get it?
• Available on PassPortAdvantage
• Three media packs
– Image for SoftLayer Bare Metal
– Image for SoftLayer CCI [Non-production only]
– VMware Image
• Priced per PVU
• Developer edition available from DeveloperWorks
– For VMware
– For SoftLayer Cloud Compute Instance (CCI)
38. How does it scale?
Example Configuration
Mem
(GB)
CPU
cores Network
Simultaneous
Connections
SoftLayer Bare Metal
Big 80 20 10GbE 320K
Vmware
Minimum configration 16* 4** 10GbE 64K
Medium 64 16 10GbE 256K
Physical
Hardware appliance 40GbE 1M
* 16GB is minimum recommendation for production....4GB is absolute minimum for development
** 4 CPU is minimum recommendation for production...2 CPU is absolute minimum for development
39. Internet of Things Deployment Options
MessageSight
Appliance
MessageSight
Virtual Appliance
MessageSight
Virtual SoftLayer
Internet of Things
Foundation
Cloud On Premises
Client-
Managed
Hosted and
Managed
IBM CONFIDENTIAL
40. When to choose Cloud?
• IBM MessageSight and IBM Internet of Things Foundation share many of the same
use cases
– Providing connectivity to devices
• When considering which to use, look at the following aspects:
• I need to have tight control over
security
• I want to manage my own IT
infrastructure
• I want to host the system in my
Datacenter
• I have (regulatory) restrictions on
where my data can live
• I want guaranteed performance
(dedicated hardware)
• I want to manage my initial
investment as CapEx
• I want someone else to manage the IT
infrastructure
• I just want to get going quickly
• IT is not part of my core business
strength
• I want someone else to worry about
scaling to meet demand
• My data can live anywhere
• I want to manage my investment as
OpEx (Rental)
IBM MessageSight
Virtual Edition
IBM MessageSight
41. What was the hill?
• “I need to gather data from non-MQTT devices so that I can get new
insights by connecting things that were never connected before”
• “I need to gather data from non-MQTT devices so that I can
get new insights by connecting things that were never connected before”
– Legacy sensors which cannot change to MQTT
– Industry specific protocols
42. What did we make?
• A protocol plug-in point in MessageSight
• Gives the ability for IBM and trusted third-parties to extend the protocols supported by the
appliance
• There is a plug-in protocol SDK to develop plug-ins
– Protocols must be written in Java
• Plug-ins run in an isolated environment to ensure robustness
• The plug-in sends and receives data through MessageSight transport
component
• The plug-in uses a messaging interface into the MessageSight engine
• The common engine ensures any-to-any communication between protocols
• Integrated into MessageSight configuration and security models
• Plugins do not get direct network access
– Sample HTTP style plugin
• Intended for:
– Legacy sensors which cannot be changed to MQTT
– Industry-specific protocols
– Co-existence with initial versions of IoT deployments
44. OAuth 2.0
Use an OAuth authorisation server
• such as DataPower or WorkLight to authorise clients
Oauth Authorisation Server
Security & Integration Gateway
IBM DataPower Appliance
Check
token
IBM MessageSight
Send
credentials
OAuth
Token
Connect
with
token
Systems
of record
45. Additional messaging capabilities: Expiry and Discard
• Administrative control of maximum message
time-to-live
– Automatic expiration of messages beyond
configured time, even with MQTT
• Choose the maximum messages behavior
– When a subscriber cannot keep up
IBM CONFIDENTIAL
• Reject new messages
• Discard old messages
46. MQTT Shared Subscriptions
• When you are treating an MQTT topic as an inbox of work to complete
– You want to distribute the work between multiple subscribers
– You want redundancy so that if one subscriber goes down, the others continue
to process the work
/inbox/todo
Client 1
Client 2
Client 3
47. Enhanced monitoring - SNMP
You can now use standard monitoring tooling to monitor the appliance
through SNMP.
48. Other updates
– Increased capacity
• More subscriptions, more messages
– Simplified high-availability configuration
– Translation
• Chinese (traditional and simplified), Japanese, German and French
50. “Based on IBM MessageSight, the
Sprint Velocity Service Bus is a new
communications architecture that
lets smartphones, tablets and other
devices communicate through the
cloud.” 1
3. Unlock command sent to
car, door unlocks
Automotive
1. Owner pushes start
button on app
SPRINT VELOCITY℠
2. Sprint authenticates
user
“Key-fob “ response time
&
Driver preferences in the cloud
Connected car
“Now, Sprint's newly announced
partnership with IBM will allow
connected vehicles to communicate
with other connected devices while
using far less bandwidth and
power.” says Bob Johnson,
director of connected vehicle
development at Sprint
Press Release: http://www-03.ibm.com/press/us/en/pressrelease/41441.wss
1 M2M Evolution Magazine: http://bit.ly/1dCBA7M
video
51. Smart energy usage and metering
51
Making it possible for its customers to
manage different devices from a single
remote control on a tablet, computer or
smartphone.
Using MessageSight to ensure reliability of
messages to control lighting, heating, alarm
and other home functions
Lyse Smart AS provides heating, lighting and
security solutions for 60,000 customers in
130,000 households across Norway
Collecting information from households
regarding power consumption and smart
metering
53. European Bank finds new opportunities with
MessageSight
Using MQTT Push technology to drive personalised loans and
savings tailored for the consumer direct to their mobile
Used MessageSight to scale to meet customer demand as
usage exceeds 50,000 users, now testing for 500,000 users
Pushes exclusive offers at frequently used stores
–innovatively driven from banking transaction data
Uses MQTT
–To ensure security, confidentiality and assured delivery
–For lightweight responsiveness
Technical solution:
– Message originates in CICS
– Uses MQ for transport to MessageSight
– MessageSight then securely pushes notification to client
device using MQTT
54. Automotive: Trucks with group chat
Uses MessageSight to enable Instant
Messaging between cabs
Topics enable group chat
Saves cost, enables community
Uses a mobile application built in WorkLight
Uses WorkLight push notification to wake
inactive devices
Enables a Connected Truck platform for the
future
55. Live Grand Slam Tennis Scores with IBM MessageSight
Wimbledon use MessageSight for their scoring system to provide live scores to
millions of fans using different devices.
During this years event the team
updated their scoring solution to
use MessageSight:
176,000 concurrent clients
connected to MessageSight during
the final
Scoreboard loaded 60% faster
than flash based original solution
Gave sub-second response
time compared with 3-5s previous
Reduced hardware from 30
Power7 LPARs to 6 MessageSight
Appliances spread across 3 sites
59. IBM MessageSight: Next Steps
• Development community on developerWorks
– https://www.ibmdw.net/messaging/messagesight/
• MessageSight for Developers virtual machine
– Downloadable for free
– For rapid prototyping or explore functionality
• Videos:
– http://www.youtube.com/user/IBMmessagingMedia
Try it
Today!
60. Summary: IBM MessageSight
• The gateway to the Internet of Things for the enterprise
• Fast, lightweight, secure, reliable messaging for Mobile
64. WebSphere Technical University and Digital Experience Europe 2014
Your feedback is valuable - please complete your session or lab evaluation!
Session number
A8
Provide your evaluations by:
Evaluation forms:
Fill out a form at the end of each session
Paper forms are located in each of the session or lab rooms
Place the completed form in the tray as you exit the room
- Or –
Complete the session survey on Event Connect Portal:
ibmeventconnect.eu/euxdx
Select Sessions, then Session Finder, and complete the survey
68. IBM MessageSight: What’s In It for IoT Developers
Secure
And
Open
Optimized
for Wireless
Networks
Extreme
Efficiency
Orders of
Magnitude
Improvements
• Secure communications with many options including client side
certificates
• MQTT protocol is open and being standardized.
• Clients available on 40+ platforms
• Lightweight: small headers means reduced data costs
• Very power efficient: Ideal for battery powered sensors
• Designed to handle unreliable networks
• Reduces server built out by connecting huge amount of
sensors in a single chassis : >1,000,000 per chassis
• Ideal to feed data to real-time analytics
* Source: Power Profiling: HTTPS Long Polling vs. MQTT with SSL, on Android - http://stephendnicholas.com/archives/1217
69. IBM MessageSight: What’s In It for Mobile Developers
Bi-directional,
Secure,
Cross
Platform
Optimized
for Wireless
Networks
Extreme
Efficiency
Orders of
Magnitude
Improvements
• Bi-directional Interactivity for Mobile: Engage customers directly without
leaving your app
• Enables Mobile Instant Messaging
• Dramatically reduce reliance on costly SMS
• Deliver confidential notifications directly to the handset
• Use same technology on HTML5-based Web Sites
• More bandwidth efficient *: reduce network consumption and cost
needed to serve your customers; engage them more rapidly
• More power efficient: Deliver value-add data services without excess
drain on handset batteries
• Reduces server built out by optimizing mobile messaging in a single
chassis
• Dependable low latency: Response time consistent regardless of load
• Supports up to 1,000,000 per chassis: More reach with less server build
out
* Source: Power Profiling: HTTPS Long Polling vs. MQTT with SSL, on Android - http://stephendnicholas.com/archives/1217
70. IBM MessageSight Summary
Connecting the Enterprise to the Internet of Things and Mobile
• A low-latency, reliable and scalable messaging server – designed
specifically for M2M and Mobile scenarios
• The DMZ-ready appliance form factor provides strong security and easy
deployment
• Enables the next generation of applications with event-driven, near-real-
time communications