SlideShare a Scribd company logo
© Waher Data AB, 2018.
Smart City Lecture 4
Harmonizing the Internet of Things
© Waher Data AB, 2018.
1. Recapture
© Waher Data AB, 2018.
Smart City / Society
 Automation
 Open Data
 Transport
 Traffic (C-ITS)
 Parking
 Utilities
 Health Care
 Law enforcement
 Schools
 Libraries
 Waste management
 Citizens?
 …
Smart for whom?
© Waher Data AB, 2018.
Vision of a Smart City
 Ubiquitous access to interoperable
sensors and things.
 Ubiquitous access to data and
information from society’s authorities.
 Access to smart services in all niches of
society.
 Definition of ownership of information.
 Protection of Privacy, by design and by
default.
 Market for access to things and data.
Ex-Director of National Intelligence
James R. Clapper
http://www.popsci.com/clapper-americas-greatest-threat-is-internet-things
”America's greatest
threat is the
Internet of Things”
Feb 9, 2016
© Waher Data AB, 2018.
Vulnerabilities
 National Security
 Exploiting
 Surveillance
 Logistics
 Utilities
 Health Care
 Traffic (C-ITS)
 Residential systems
 Law enforcement
 Waste management
 Schools
 Parking
 Libraries
 Monitoring citizens
 …
© Waher Data AB, 2018.
What must Governments do?
Governments must make sure to provide
a strong foundation on which smart
services can be built.
 Broadband access were
infrastructure projects.
 Giving access to broadband for
everyone was a strategy.
 Likewise, Smart City Infrastructure
must be defined, required in RFPs, and
provided to everyone.
© Waher Data AB, 2018.
Options?
Sealed secure systems?
or
Open, Interoperable, but vulnerable
systems?
or is it possible to have:
Open, Interoperable & secure systems?
© Waher Data AB, 2018.
2. Openness + Security
For Things
© Waher Data AB, 2018.
Strong Foundation
Things are “stupid” and need help with:
 Decision Support
 Ownership
 Owner consent
 Lifecycle
 Transfer of ownership
 Decommissioning
 Discovery
 Interoperability
 Data
 Operationsc
© Waher Data AB, 2018.
IoT Harmonization (IEEE 1451-99)
 Sensor Data
 Control Operations
 Localization (M2M, M2H)
 Tokens for distributed transactions
 Decision Support (for devices)
 Provisioning (for owners)
 Peer-to-Peer communication
 End-to-end encryption
 Concentrator/Bridge (“Thing of things”)
 Discovery
 Ownership
 Clock Synchronization
 Secure Account Creation
 Legal Identities
 Contracts
 Automated provisioning
 Economic feedback
https://gitlab.com/IEEE-SA/XMPPI/IoT
© Waher Data AB, 2018.
Backbone
 Efficiency
 Interoperability
 Global scalability
 Bridges technologies
vs
© Waher Data AB, 2018.
Interoperability
© Waher Data AB, 2018.
Horizontal Markets
Loose coupling permits new roles:
© Waher Data AB, 2018.
Features Summary
Blockchain CoAP HTTP LWM2M MQTT XMPP IoT
Harmonization
Identities ✓ ✓ ✓ ✓ ✓
Authentication ✓ ✓ ✓ ✓ ✓
Authorization ✓ ✓ ✓
Encryption ✓ ✓ ✓ ✓ ✓ ✓
End-to-End Encryption ✓ ✓
Consent ✓ ✓
Decentralized ✓ ✓ ✓ ✓
By design ✓ ✓ ✓
Asynchronous Messages ✗ ✓ ✓ ✓ ✓
Request / Response ✗ ✓ ✓ ✓ ✓ ✓
Publish / Subscribe ✗ ✓ ✓✓✓ ✓✓✓
Federation ✗ ✓ ✓ ✓ ✓
Broker ✗ ✓ ✓ ✓
Serverless ✗ ✓ ✓ ✓
P2P7 ✗ ✓ ✓
Personal ✓ ✓✓✓ ✓✓ ✓✓ ✓ ✓✓✓✓ ✓✓✓✓
Interoperability ✗ ✓✓ ✓✓ ✓✓✓ ✓ ✓ ✓✓✓
Plurality ✓ ✓✓✓✓✓ ✓✓✓✓✓ ✓✓ ✓✓ ✓✓✓✓✓ ✓✓✓✓✓
Law ✓✓✓✓ ✗ ✓ ✓ ✗ ✓ ✓✓✓✓
Transparency ⋆⋆ ⋆⋆⋆⋆ ⋆⋆⋆⋆ ⋆⋆⋆ ⋆⋆ ⋆⋆ ⋆⋆⋆⋆
Privacy ✗ ✓ ✓ ✓ ✓ ✓✓ ✓✓✓✓
11 21 20 19 10 32 41
© Waher Data AB, 2018.
3. Harmonizing the IoT
for the Smart City / Society
© Waher Data AB, 2018.
Failed expectations
Development of IoT not as projected
 What is missing?
Ericsson, 2010: (about 2020) IoT Analytics, 2018: (about 20B, if you stretch)
© Waher Data AB, 2018.
Driving forces of the Smart Society
 Local support and knowledge
 Access to data and things
 Cross fertilization of domains
 Reuse of existing equipment
 Openness and transparency
 Simple and quick integration
 Standardized interfaces
 Economy
© Waher Data AB, 2018.
Dilemma
Would you publish your things on the Internet?
 You would add risk to your solution
 You would degrade the performance
 Competitors could do what you do
 But cheaper
(they don’t have to buy equipment)
A crucial element is missing, for IoT to boom.
© Waher Data AB, 2018.
Standards
Interoperability is based on standards.
Standards are required for:
 Communication
 Representation
 Operation
 Security
 Privacy
 Discovery
 Decision support
 Economic feedback models
© Waher Data AB, 2018.
IEEE IoT Harmonization WG
Goals of the group is to:
 Harmonize IoT technologies
 Use XMPP as backbone to bridge IoT islands
 Standardize use of XMPP
 Sensor Data
 Control
 Concentrator
 Thing Registries
 Provisioning
 Economic feedback models
 Smart Contracts
 Counting of usage
https://standards.ieee.org/project/1451-99.html
© Waher Data AB, 2018.
Openness
Any attempt to harmonize technologies must be:
 Globally scalable
 Decentralized
 No centralized authority
 Support processing on the edge
 Federated
 Division of responsibilities
 Open
 Support ad hoc networks
XMPP has proved track record
© Waher Data AB, 2018.
Security
XMPP Provides:
 Strong global identities
 Authenticated access to network
 Consent-based authorization (for access)
 Ubiquitous (Transport) Encryption
IoT Harmonization adds:
 Secure/Managed identity creation
 Defines Ownership
 Decision Support for things
 Detailed authorization for things (for operations)
 Peer-to-Peer Communication
 End-to-End Encryption
Data Protection by design & by default
© Waher Data AB, 2018.
Flexibility
Any attempt to harmonize technologies must also
support common patterns:
 Asynchronous messaging
 Request / Response
 Event Subscription (Observe)
 Multicasting
 Publish / Subscribe
 Federation
 Edge Computing
IEEE IoT Harmonization is built on XMPP
© Waher Data AB, 2018.
4. XMPP
© Waher Data AB, 2018.
What is XMPP?
eXtensible Messaging and
Presence Protocol
 Standardized by the IETF
 RFC 6120
 RFC 6121
 RFC 6122
 Originally developed in the late 1990-ies.
 Instant Messaging
 “Jabber”
 Based on XML
© Waher Data AB, 2018.
Basic features
Some basic features of XMPP include:
 Global scalability (federation)
 Extensibility (namespaces)
 Robustness (20 years of operation)
 Open (public & free)
 Standardized
 Secure
 Interoperable
© Waher Data AB, 2018.
Communication
 Brokers
 Accounts
 Rosters
 Routing
 Federation
 Topology insensitive
 Server-less
 Peer-to-peer
 Authentication
 SASL
 Encryption
 TLS
 E2E
© Waher Data AB, 2018.
Communication Patterns
Intrinsic patterns:
 Asynchronous messages (message)
 Request/Response (iq)
 Publish/Subscribe (presence)
Extended
 Publish/Subscribe
 Personal Eventing (extended by XEP-0163)
 Publish-Subscribe (extended by XEP-0060)
 Multicasting (extended by XEP-0045)
 etc.
© Waher Data AB, 2018.
Security
Standard layers of security:
 Authentication (SASL)
 Encryption (TLS)
 Consent-based Authorization
 Blocking
 Spam reporting
 Provisioning
 End-to-end encryption
© Waher Data AB, 2018.
5. Communication
Patterns
© Waher Data AB, 2018.
Asynchronous Messages
© Waher Data AB, 2018.
Asynchronous Messages
 Spontaneous communication
 From anyone to anyone (Peers)
 Parties identified
 Full duplex
 Quality of Service
 At most once (“Unacknowledged”)
 At least once (“Acknowledged”)
 Exactly once (“Assured”, “Reliable Messaging”)
 Can be used to build any other pattern
Examples: CoAP, XMPP, IoT Harmonization
© Waher Data AB, 2018.
Request / Response
© Waher Data AB, 2018.
Request / Response
 Limited Client / Server roles
 Client initiates communication
 Server identified
 No requirement to identify client
 Half duplex
 Polling
 Event-based communication from server
difficult
Examples: HTTP, CoAP, LWM2M, XMPP,
IoT Harmonization
© Waher Data AB, 2018.
Event Subscription (“Observe”)
© Waher Data AB, 2018.
Event Subscription (“Observe”)
 Combines Req./Resp. & Asynch. Msg.
 Client initiates subscription
 Server initiates updates
 Client determines conditions
 Server does not have to know client use case
 More efficient than polling
Examples: CoAP, LWM2M, IoT Harmonization
© Waher Data AB, 2018.
Multicast
© Waher Data AB, 2018.
Multicast
 Group membership
 Often only security mechanism
 Group encryption difficult
 Anyone in group can send a message
 Everyone in a group receives messages
 Detailed authorization difficult
 Synchronizing events
 Clocks
 Updates
 Multicast Streaming (like IP-TV)
 Discovery in ad hoc networks
Examples: CoAP, XMPP, IoT Harmonization
© Waher Data AB, 2018.
Publish / Subscribe
© Waher Data AB, 2018.
Publish / Subscribe
 Publishers send messages
 Subscribers receive messages
 Degree of separation between actors
 Authorization on Topics or Nodes
 Efficient if Subscriber:Publisher ratio high
 Mass distribution
 Syndication
 Inefficient if Subscriber:Publisher ratio low
 Emulation of Asynch. Msg or Req./Resp.
 Difficult to federate a topic/node tree
Examples: MQTT, XMPP, IoT Harmonization
© Waher Data AB, 2018.
Queue
© Waher Data AB, 2018.
Queue
 Publishers send work items
 Workers collaborate processing items
 One worker per item
 Degree of separation between actors
 Authorization on Topics or Nodes
 Load balancing
 Mostly used in high-load back-ends
Examples: AMQP, IoT Harmonization
© Waher Data AB, 2018.
Federated brokers
© Waher Data AB, 2018.
Federated brokers
 Global scalability
 Divide & Conquer (federations/domains)
 Brokers cooperate
 Each domain controls its part of the network
 Cross-domain cooperation easy
 Decentralization
 Resilience
 Global distributed identities
 Solves Topology Problem
Examples: XMPP, IoT Harmonization, (SMTP)
© Waher Data AB, 2018.
Decentralization / Edge Computing
© Waher Data AB, 2018.
Decentralization / Edge Computing
 Processing done at the source
 Permits centralized processing (if required)
 Cloud used for support
 Identity
 Transport
 Discovery
 Decision Support (Orchestration, Provisioning)
 Protects Privacy
 Enforces Ownership of Information
 Distributes processing power
 Scalable
Examples: XMPP, IoT Harmonization
© Waher Data AB, 2018.
6. Infrastructure Services
© Waher Data AB, 2018.
IoT Harmonization Services
 Thing Registry
 Ownership
 Discovery
 Decision Support
 Provisioning
 Orchestration
 Tokens
 Distributed operations
 Smart Contracts
 Legal identities
 Automation of provisioning
 Economic feedback
© Waher Data AB, 2018.
Ownership & Discovery
© Waher Data AB, 2018.
iotdisco URI
iotdisco:MAN=waher.se;
MODEL=MIoT%20ConcentratorXmpp2;
PURL=https%3A%2F%2Fgithub.com%2FPeterWaher%2FMIoT;
SN=7321c0de2e6848c28420a8afa3d2ef0f;
#V=2;
COUNTRY=Sverige;
REGION=Stockholm;
CITY=Stockholm;
AREA=Hammarby;
STREET=Hammarby%20Kaj;
STREETNR=10D;
APT=GOTO10;
ROOM=Annexet;
CLASS=Sensor;
TYPE=MIoT%20Sensor;
KEY=c9d4743f959a10b…4eda99d9ba6b8;
R=provisioning.extas.is
https://www.iana.org/assignments/uri-schemes/prov/iotdisco.pdf
© Waher Data AB, 2018.
Decision Support
© Waher Data AB, 2018.
Distributed Transactions
 Tokens
 User identities
 Service identities
 Device identities
 Challengeable
 PKI based
 Public key registered with broker
 Broker issues token
 Private key used to respond to challenges
 Multiple tokens can be distributed
 Authorization on original, not intermediate, identity
© Waher Data AB, 2018.
Clock Synchronization
 Synchronization of events across Internet
 Across multiple networks & time-bases
 High-frequency clocks
 < 1 ms precision in stable conditions
 Adaptation during network/clock reconfigurations
© Waher Data AB, 2018.
Smart Contracts
 Legal identities
 Smart Contracts
 Owner defines rules for access
 Automation of Provisioning
 Zero configuration
 Signing smart contract gives access
 Economic Feedback
 Billing based on usage
© Waher Data AB, 2018.
Connectivity
 Direct to XMPP network
 TCP
 HTTP (BOSH)
 Web-socket
 UDP (experimental)
 Via Concentrator (“Thing of Things”)
 Embedded
 Gateway
 Bridge protocols
 Bridge patterns
 System Integration
© Waher Data AB, 2018.
PLC
 Embeds logical/embedded devices
 One connection to XMPP network
© Waher Data AB, 2018.
Protocol/Pattern bridge
 Connecting other technologies
 Adding security
 Adding interoperability
© Waher Data AB, 2018.
System Integration
 Integration with Back-end systems
© Waher Data AB, 2018.
7. Representation
© Waher Data AB, 2018.
Sensor Data
 Loosely coupled representation
 M2M & M2H
 Meta-data describing information
 Localizable
© Waher Data AB, 2018.
Control Operations
 Loosely coupled representation
 M2M & M2H
 Meta-data
 Localizable
© Waher Data AB, 2018.
8. Operation
© Waher Data AB, 2018.
Simple Sensor Data Request
https://gitlab.com/IEEE-SA/XMPPI/IoT
© Waher Data AB, 2018.
Slow Responses
https://gitlab.com/IEEE-SA/XMPPI/IoT
© Waher Data AB, 2018.
Scheduled / Queued responses
https://gitlab.com/IEEE-SA/XMPPI/IoT
© Waher Data AB, 2018.
Fragmented responses
© Waher Data AB, 2018.
Example: Simple Readout
https://gitlab.com/IEEE-SA/XMPPI/IoT
© Waher Data AB, 2018.
Event Subscription
https://gitlab.com/IEEE-SA/XMPPI/IoT
© Waher Data AB, 2018.
Fragmented events
© Waher Data AB, 2018.
Example: Simple Event Subscription
https://gitlab.com/IEEE-SA/XMPPI/IoT
© Waher Data AB, 2018.
Example: Publish (PEP)
https://gitlab.com/IEEE-SA/XMPPI/IoT
© Waher Data AB, 2018.
Example: Subscriber Event (PEP)
https://gitlab.com/IEEE-SA/XMPPI/IoT
© Waher Data AB, 2018.
Example: Simple Control Operations
https://gitlab.com/IEEE-SA/XMPPI/IoT
© Waher Data AB, 2018.
9. Events
© Waher Data AB, 2018.
Smart City Lectures*
1. How to build a Smart City (Oct 4th)
2. Privacy in the Smart City (Oct 18th)
3. An Open and/or Secure Smart City (Oct 25th)
4. Harmonizing the Internet of Things (Nov 8th)
5. Introduction to Encryption (Nov 15th)
6. Earning by Sharing in the Smart City (Nov 22th)
7. …
8. …
(*) Funded by Swedish Internet Fund.
© Waher Data AB, 2018.
Smart City Labs*
1. Sensors and actuators (Oct 10th)
2. Connect and chat with your device (Oct 17th)
3. Publishing data from your sensor (Oct 24th)
4. Publishing and discovering devices (Nov 7th)
5. Controlling actuators (Nov 14th)
6. Decision Support for your devices (Nov 21th)
7. …
8. …
(*) Funded by Swedish Internet Fund.
© Waher Data AB, 2018.
 Raspberry Pi & Arduino
 Sensors, Actuators, Controllers,
Concentrators, Bridges
 Protocols:
MQTT, HTTP, CoAP, LWM2M, XMPP
 Interoperability
 Social Interaction
 Decision Support
 Product Lifecycle
 IoT Service Platforms
 IoT Harmonization
 Security
 Privacy
Amazon
Packt
Microsoft Store
Contact: https://waher.se/, https://littlesister.se/
Mastering Internet of Things
© Waher Data AB, 2018.
10. Open Discussion
Ownership?
Privacy?
Security?
Surveillance?
Interoperability?
Cool stuff?
Qué?
Where’s the Money?
Who pays?
What could go wrong?
Little Sister?
Harmonization?

More Related Content

PPTX
Smart City Lecture 3 - An Open And/Or Secure Smart City
PPTX
IoT Security
PPTX
Smart City Lecture 2 - Privacy in the Smart City
PPTX
Smart City Lecture 5 - Introduction to Encryption
PPTX
Smart City Lecture 6 - Earning by Sharing in the Smart City
PPTX
Cross domain autonomous cooperation cross-domain autonomous cooperation
PPTX
Smart City Lecture 1: How to build a Smart City
PPTX
Smart City Lab 1 - Sensors and Actuators
Smart City Lecture 3 - An Open And/Or Secure Smart City
IoT Security
Smart City Lecture 2 - Privacy in the Smart City
Smart City Lecture 5 - Introduction to Encryption
Smart City Lecture 6 - Earning by Sharing in the Smart City
Cross domain autonomous cooperation cross-domain autonomous cooperation
Smart City Lecture 1: How to build a Smart City
Smart City Lab 1 - Sensors and Actuators

What's hot (20)

PDF
Cloud Customer Architecture for IoT
PDF
DWS16 - Connected things forum - David Vasquez, Verizon Enterprise Solutions
PPTX
Enterprise, Architecture and IoT
PPTX
IoT World Forum Press Conference - 10.14.2014
PPTX
Blockchain for telcos: The TRUST Layer the future needs.
PDF
Global IoT Portfolio & Partners Ecosystem
PPTX
IOTprotocols and overview (SSI)
PDF
Oies IoT World Europe 20170615
PDF
Blockchain Technology In IOT
PDF
Internet of Things (IoT) as a Driver for the Circular Economy – Innovation, Q...
PDF
IoT security reference architecture
PDF
Blockchain, AI, IOT, Crypto Challenges and opportunities for the Energy Oil a...
PPTX
Cisco Lightning Talk
PDF
Vodafone Internet of Things
PDF
Small startup, big impact in IoT by Mensur Đogić
PDF
Rapid Prototyping for IoT
PDF
Iot tunisia forum 2017 security, confidentiality and privacy in iot
PDF
iDate: AI and blockchain
PPTX
Blockchain Hype & Realities, Dean Bubley, TADSummit 2018
PPTX
Blockchain Technology and its role in the process of public sector innovation
Cloud Customer Architecture for IoT
DWS16 - Connected things forum - David Vasquez, Verizon Enterprise Solutions
Enterprise, Architecture and IoT
IoT World Forum Press Conference - 10.14.2014
Blockchain for telcos: The TRUST Layer the future needs.
Global IoT Portfolio & Partners Ecosystem
IOTprotocols and overview (SSI)
Oies IoT World Europe 20170615
Blockchain Technology In IOT
Internet of Things (IoT) as a Driver for the Circular Economy – Innovation, Q...
IoT security reference architecture
Blockchain, AI, IOT, Crypto Challenges and opportunities for the Energy Oil a...
Cisco Lightning Talk
Vodafone Internet of Things
Small startup, big impact in IoT by Mensur Đogić
Rapid Prototyping for IoT
Iot tunisia forum 2017 security, confidentiality and privacy in iot
iDate: AI and blockchain
Blockchain Hype & Realities, Dean Bubley, TADSummit 2018
Blockchain Technology and its role in the process of public sector innovation
Ad

Similar to Smart City Lecture 4 - Harmonizing the Internet of Things (20)

PPTX
IoT Security
PDF
De wondere wereld van cloud en sddc 26 nov 2013 ht v1.1
PDF
Combating Mobile Device Theft with Blockchain
PPTX
Privacy for IoT with XMPP
PDF
RISE OF THE MACHINES: IRM IN AN IOT WORLD
PDF
Hortonworks Hybrid Cloud - Putting you back in control of your data
PDF
ECI - The Elastic Network - winds of change
PPT
Cloud computing present
PDF
Building Blockchain Projects on Enterprise Ethereum [Webinar]
PPTX
01-Chapter 01-Introduction to CASB and Netskope.pptx
PDF
A Robust finger Print Authentication Scheme viaBlockchain to retrieve Citizen...
PDF
The Inside Story: Leveraging the IIC's Industrial Internet Security Framework
PDF
ION Hangzhou - Developing the Internet of Things (Morning Keynote)
PDF
Blockchain & Telecommunication Services Provider
PPTX
Building a Hybrid Cloud The Real Deal
PDF
Intro blockchain beyond confidential compute. views from oasis labs, ibm and...
PPTX
Open Source Telecom Software Landscape by Alan Quayle
PDF
Smart Cities, Smart Cars, Smart Living
PDF
Walking through the fog (computing) - Keynote talk at Italian Networking Work...
PPTX
Jun 15 privacy in the cloud at financial institutions at the object managemen...
IoT Security
De wondere wereld van cloud en sddc 26 nov 2013 ht v1.1
Combating Mobile Device Theft with Blockchain
Privacy for IoT with XMPP
RISE OF THE MACHINES: IRM IN AN IOT WORLD
Hortonworks Hybrid Cloud - Putting you back in control of your data
ECI - The Elastic Network - winds of change
Cloud computing present
Building Blockchain Projects on Enterprise Ethereum [Webinar]
01-Chapter 01-Introduction to CASB and Netskope.pptx
A Robust finger Print Authentication Scheme viaBlockchain to retrieve Citizen...
The Inside Story: Leveraging the IIC's Industrial Internet Security Framework
ION Hangzhou - Developing the Internet of Things (Morning Keynote)
Blockchain & Telecommunication Services Provider
Building a Hybrid Cloud The Real Deal
Intro blockchain beyond confidential compute. views from oasis labs, ibm and...
Open Source Telecom Software Landscape by Alan Quayle
Smart Cities, Smart Cars, Smart Living
Walking through the fog (computing) - Keynote talk at Italian Networking Work...
Jun 15 privacy in the cloud at financial institutions at the object managemen...
Ad

More from Peter Waher (20)

PPTX
Tokenization of sustainable real estate in Smart Cities - Monetization as bas...
PPTX
Interoperabilidad e Internet
PPTX
Globally Scalable Mobile Digital ID using IEEE P1451.99
PPTX
New business opportunities in smart societies and industry 4.0
PPTX
IEEE Standards Impact in IoT and 5G, Day 2 - Architectural Requirements for S...
PPTX
IEEE Standards Impact in IoT and 5G, Day 1, Session 3 - Smart contracts, Mone...
PPTX
IEEE Standards Impact in IoT and 5G, Day 1, Session 2 - Communication & Opera...
PPTX
IEEE Standards Impact in IoT and 5G, Day 1, Session 1 - Introduction & Overview
PPTX
Smart contracts for certification of smart devices
PPTX
Federated and legal identities in industrial and financial applications
PPTX
Secure interoperation across cyber physical systems in smart societies with i...
PPTX
Smart City Lab 6 - Decision Support for your Devices
PPTX
Smart City Lab 5 - Controlling Actuators
PPTX
Smart City Lab 4 - Publishing and Discovering Devices
PPTX
Smart City Lab 3 - Publishing Data from your Sensor
PPTX
Smart City Lab 2 - Connect and Chat with your Device
PPTX
XMPP and IoT - an overview
PPTX
XMPP IoT Sensor Data (XEP-0323)
PPTX
Web 3.0 & IoT (English)
PPTX
XSF - XMPP Standards Foundation
Tokenization of sustainable real estate in Smart Cities - Monetization as bas...
Interoperabilidad e Internet
Globally Scalable Mobile Digital ID using IEEE P1451.99
New business opportunities in smart societies and industry 4.0
IEEE Standards Impact in IoT and 5G, Day 2 - Architectural Requirements for S...
IEEE Standards Impact in IoT and 5G, Day 1, Session 3 - Smart contracts, Mone...
IEEE Standards Impact in IoT and 5G, Day 1, Session 2 - Communication & Opera...
IEEE Standards Impact in IoT and 5G, Day 1, Session 1 - Introduction & Overview
Smart contracts for certification of smart devices
Federated and legal identities in industrial and financial applications
Secure interoperation across cyber physical systems in smart societies with i...
Smart City Lab 6 - Decision Support for your Devices
Smart City Lab 5 - Controlling Actuators
Smart City Lab 4 - Publishing and Discovering Devices
Smart City Lab 3 - Publishing Data from your Sensor
Smart City Lab 2 - Connect and Chat with your Device
XMPP and IoT - an overview
XMPP IoT Sensor Data (XEP-0323)
Web 3.0 & IoT (English)
XSF - XMPP Standards Foundation

Recently uploaded (20)

PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPT
tcp ip networks nd ip layering assotred slides
PPTX
artificial intelligence overview of it and more
PPTX
innovation process that make everything different.pptx
PDF
Testing WebRTC applications at scale.pdf
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
DOCX
Unit-3 cyber security network security of internet system
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PDF
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PPTX
Digital Literacy And Online Safety on internet
Job_Card_System_Styled_lorem_ipsum_.pptx
SASE Traffic Flow - ZTNA Connector-1.pdf
Tenda Login Guide: Access Your Router in 5 Easy Steps
Module 1 - Cyber Law and Ethics 101.pptx
Unit-1 introduction to cyber security discuss about how to secure a system
tcp ip networks nd ip layering assotred slides
artificial intelligence overview of it and more
innovation process that make everything different.pptx
Testing WebRTC applications at scale.pdf
Slides PPTX World Game (s) Eco Economic Epochs.pptx
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Design_with_Watersergyerge45hrbgre4top (1).ppt
Unit-3 cyber security network security of internet system
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PptxGenJS_Demo_Chart_20250317130215833.pptx
522797556-Unit-2-Temperature-measurement-1-1.pptx
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
The New Creative Director: How AI Tools for Social Media Content Creation Are...
INTERNET------BASICS-------UPDATED PPT PRESENTATION
Digital Literacy And Online Safety on internet

Smart City Lecture 4 - Harmonizing the Internet of Things

  • 1. © Waher Data AB, 2018. Smart City Lecture 4 Harmonizing the Internet of Things
  • 2. © Waher Data AB, 2018. 1. Recapture
  • 3. © Waher Data AB, 2018. Smart City / Society  Automation  Open Data  Transport  Traffic (C-ITS)  Parking  Utilities  Health Care  Law enforcement  Schools  Libraries  Waste management  Citizens?  … Smart for whom?
  • 4. © Waher Data AB, 2018. Vision of a Smart City  Ubiquitous access to interoperable sensors and things.  Ubiquitous access to data and information from society’s authorities.  Access to smart services in all niches of society.  Definition of ownership of information.  Protection of Privacy, by design and by default.  Market for access to things and data.
  • 5. Ex-Director of National Intelligence James R. Clapper http://www.popsci.com/clapper-americas-greatest-threat-is-internet-things ”America's greatest threat is the Internet of Things” Feb 9, 2016
  • 6. © Waher Data AB, 2018. Vulnerabilities  National Security  Exploiting  Surveillance  Logistics  Utilities  Health Care  Traffic (C-ITS)  Residential systems  Law enforcement  Waste management  Schools  Parking  Libraries  Monitoring citizens  …
  • 7. © Waher Data AB, 2018. What must Governments do? Governments must make sure to provide a strong foundation on which smart services can be built.  Broadband access were infrastructure projects.  Giving access to broadband for everyone was a strategy.  Likewise, Smart City Infrastructure must be defined, required in RFPs, and provided to everyone.
  • 8. © Waher Data AB, 2018. Options? Sealed secure systems? or Open, Interoperable, but vulnerable systems? or is it possible to have: Open, Interoperable & secure systems?
  • 9. © Waher Data AB, 2018. 2. Openness + Security For Things
  • 10. © Waher Data AB, 2018. Strong Foundation Things are “stupid” and need help with:  Decision Support  Ownership  Owner consent  Lifecycle  Transfer of ownership  Decommissioning  Discovery  Interoperability  Data  Operationsc
  • 11. © Waher Data AB, 2018. IoT Harmonization (IEEE 1451-99)  Sensor Data  Control Operations  Localization (M2M, M2H)  Tokens for distributed transactions  Decision Support (for devices)  Provisioning (for owners)  Peer-to-Peer communication  End-to-end encryption  Concentrator/Bridge (“Thing of things”)  Discovery  Ownership  Clock Synchronization  Secure Account Creation  Legal Identities  Contracts  Automated provisioning  Economic feedback https://gitlab.com/IEEE-SA/XMPPI/IoT
  • 12. © Waher Data AB, 2018. Backbone  Efficiency  Interoperability  Global scalability  Bridges technologies vs
  • 13. © Waher Data AB, 2018. Interoperability
  • 14. © Waher Data AB, 2018. Horizontal Markets Loose coupling permits new roles:
  • 15. © Waher Data AB, 2018. Features Summary Blockchain CoAP HTTP LWM2M MQTT XMPP IoT Harmonization Identities ✓ ✓ ✓ ✓ ✓ Authentication ✓ ✓ ✓ ✓ ✓ Authorization ✓ ✓ ✓ Encryption ✓ ✓ ✓ ✓ ✓ ✓ End-to-End Encryption ✓ ✓ Consent ✓ ✓ Decentralized ✓ ✓ ✓ ✓ By design ✓ ✓ ✓ Asynchronous Messages ✗ ✓ ✓ ✓ ✓ Request / Response ✗ ✓ ✓ ✓ ✓ ✓ Publish / Subscribe ✗ ✓ ✓✓✓ ✓✓✓ Federation ✗ ✓ ✓ ✓ ✓ Broker ✗ ✓ ✓ ✓ Serverless ✗ ✓ ✓ ✓ P2P7 ✗ ✓ ✓ Personal ✓ ✓✓✓ ✓✓ ✓✓ ✓ ✓✓✓✓ ✓✓✓✓ Interoperability ✗ ✓✓ ✓✓ ✓✓✓ ✓ ✓ ✓✓✓ Plurality ✓ ✓✓✓✓✓ ✓✓✓✓✓ ✓✓ ✓✓ ✓✓✓✓✓ ✓✓✓✓✓ Law ✓✓✓✓ ✗ ✓ ✓ ✗ ✓ ✓✓✓✓ Transparency ⋆⋆ ⋆⋆⋆⋆ ⋆⋆⋆⋆ ⋆⋆⋆ ⋆⋆ ⋆⋆ ⋆⋆⋆⋆ Privacy ✗ ✓ ✓ ✓ ✓ ✓✓ ✓✓✓✓ 11 21 20 19 10 32 41
  • 16. © Waher Data AB, 2018. 3. Harmonizing the IoT for the Smart City / Society
  • 17. © Waher Data AB, 2018. Failed expectations Development of IoT not as projected  What is missing? Ericsson, 2010: (about 2020) IoT Analytics, 2018: (about 20B, if you stretch)
  • 18. © Waher Data AB, 2018. Driving forces of the Smart Society  Local support and knowledge  Access to data and things  Cross fertilization of domains  Reuse of existing equipment  Openness and transparency  Simple and quick integration  Standardized interfaces  Economy
  • 19. © Waher Data AB, 2018. Dilemma Would you publish your things on the Internet?  You would add risk to your solution  You would degrade the performance  Competitors could do what you do  But cheaper (they don’t have to buy equipment) A crucial element is missing, for IoT to boom.
  • 20. © Waher Data AB, 2018. Standards Interoperability is based on standards. Standards are required for:  Communication  Representation  Operation  Security  Privacy  Discovery  Decision support  Economic feedback models
  • 21. © Waher Data AB, 2018. IEEE IoT Harmonization WG Goals of the group is to:  Harmonize IoT technologies  Use XMPP as backbone to bridge IoT islands  Standardize use of XMPP  Sensor Data  Control  Concentrator  Thing Registries  Provisioning  Economic feedback models  Smart Contracts  Counting of usage https://standards.ieee.org/project/1451-99.html
  • 22. © Waher Data AB, 2018. Openness Any attempt to harmonize technologies must be:  Globally scalable  Decentralized  No centralized authority  Support processing on the edge  Federated  Division of responsibilities  Open  Support ad hoc networks XMPP has proved track record
  • 23. © Waher Data AB, 2018. Security XMPP Provides:  Strong global identities  Authenticated access to network  Consent-based authorization (for access)  Ubiquitous (Transport) Encryption IoT Harmonization adds:  Secure/Managed identity creation  Defines Ownership  Decision Support for things  Detailed authorization for things (for operations)  Peer-to-Peer Communication  End-to-End Encryption Data Protection by design & by default
  • 24. © Waher Data AB, 2018. Flexibility Any attempt to harmonize technologies must also support common patterns:  Asynchronous messaging  Request / Response  Event Subscription (Observe)  Multicasting  Publish / Subscribe  Federation  Edge Computing IEEE IoT Harmonization is built on XMPP
  • 25. © Waher Data AB, 2018. 4. XMPP
  • 26. © Waher Data AB, 2018. What is XMPP? eXtensible Messaging and Presence Protocol  Standardized by the IETF  RFC 6120  RFC 6121  RFC 6122  Originally developed in the late 1990-ies.  Instant Messaging  “Jabber”  Based on XML
  • 27. © Waher Data AB, 2018. Basic features Some basic features of XMPP include:  Global scalability (federation)  Extensibility (namespaces)  Robustness (20 years of operation)  Open (public & free)  Standardized  Secure  Interoperable
  • 28. © Waher Data AB, 2018. Communication  Brokers  Accounts  Rosters  Routing  Federation  Topology insensitive  Server-less  Peer-to-peer  Authentication  SASL  Encryption  TLS  E2E
  • 29. © Waher Data AB, 2018. Communication Patterns Intrinsic patterns:  Asynchronous messages (message)  Request/Response (iq)  Publish/Subscribe (presence) Extended  Publish/Subscribe  Personal Eventing (extended by XEP-0163)  Publish-Subscribe (extended by XEP-0060)  Multicasting (extended by XEP-0045)  etc.
  • 30. © Waher Data AB, 2018. Security Standard layers of security:  Authentication (SASL)  Encryption (TLS)  Consent-based Authorization  Blocking  Spam reporting  Provisioning  End-to-end encryption
  • 31. © Waher Data AB, 2018. 5. Communication Patterns
  • 32. © Waher Data AB, 2018. Asynchronous Messages
  • 33. © Waher Data AB, 2018. Asynchronous Messages  Spontaneous communication  From anyone to anyone (Peers)  Parties identified  Full duplex  Quality of Service  At most once (“Unacknowledged”)  At least once (“Acknowledged”)  Exactly once (“Assured”, “Reliable Messaging”)  Can be used to build any other pattern Examples: CoAP, XMPP, IoT Harmonization
  • 34. © Waher Data AB, 2018. Request / Response
  • 35. © Waher Data AB, 2018. Request / Response  Limited Client / Server roles  Client initiates communication  Server identified  No requirement to identify client  Half duplex  Polling  Event-based communication from server difficult Examples: HTTP, CoAP, LWM2M, XMPP, IoT Harmonization
  • 36. © Waher Data AB, 2018. Event Subscription (“Observe”)
  • 37. © Waher Data AB, 2018. Event Subscription (“Observe”)  Combines Req./Resp. & Asynch. Msg.  Client initiates subscription  Server initiates updates  Client determines conditions  Server does not have to know client use case  More efficient than polling Examples: CoAP, LWM2M, IoT Harmonization
  • 38. © Waher Data AB, 2018. Multicast
  • 39. © Waher Data AB, 2018. Multicast  Group membership  Often only security mechanism  Group encryption difficult  Anyone in group can send a message  Everyone in a group receives messages  Detailed authorization difficult  Synchronizing events  Clocks  Updates  Multicast Streaming (like IP-TV)  Discovery in ad hoc networks Examples: CoAP, XMPP, IoT Harmonization
  • 40. © Waher Data AB, 2018. Publish / Subscribe
  • 41. © Waher Data AB, 2018. Publish / Subscribe  Publishers send messages  Subscribers receive messages  Degree of separation between actors  Authorization on Topics or Nodes  Efficient if Subscriber:Publisher ratio high  Mass distribution  Syndication  Inefficient if Subscriber:Publisher ratio low  Emulation of Asynch. Msg or Req./Resp.  Difficult to federate a topic/node tree Examples: MQTT, XMPP, IoT Harmonization
  • 42. © Waher Data AB, 2018. Queue
  • 43. © Waher Data AB, 2018. Queue  Publishers send work items  Workers collaborate processing items  One worker per item  Degree of separation between actors  Authorization on Topics or Nodes  Load balancing  Mostly used in high-load back-ends Examples: AMQP, IoT Harmonization
  • 44. © Waher Data AB, 2018. Federated brokers
  • 45. © Waher Data AB, 2018. Federated brokers  Global scalability  Divide & Conquer (federations/domains)  Brokers cooperate  Each domain controls its part of the network  Cross-domain cooperation easy  Decentralization  Resilience  Global distributed identities  Solves Topology Problem Examples: XMPP, IoT Harmonization, (SMTP)
  • 46. © Waher Data AB, 2018. Decentralization / Edge Computing
  • 47. © Waher Data AB, 2018. Decentralization / Edge Computing  Processing done at the source  Permits centralized processing (if required)  Cloud used for support  Identity  Transport  Discovery  Decision Support (Orchestration, Provisioning)  Protects Privacy  Enforces Ownership of Information  Distributes processing power  Scalable Examples: XMPP, IoT Harmonization
  • 48. © Waher Data AB, 2018. 6. Infrastructure Services
  • 49. © Waher Data AB, 2018. IoT Harmonization Services  Thing Registry  Ownership  Discovery  Decision Support  Provisioning  Orchestration  Tokens  Distributed operations  Smart Contracts  Legal identities  Automation of provisioning  Economic feedback
  • 50. © Waher Data AB, 2018. Ownership & Discovery
  • 51. © Waher Data AB, 2018. iotdisco URI iotdisco:MAN=waher.se; MODEL=MIoT%20ConcentratorXmpp2; PURL=https%3A%2F%2Fgithub.com%2FPeterWaher%2FMIoT; SN=7321c0de2e6848c28420a8afa3d2ef0f; #V=2; COUNTRY=Sverige; REGION=Stockholm; CITY=Stockholm; AREA=Hammarby; STREET=Hammarby%20Kaj; STREETNR=10D; APT=GOTO10; ROOM=Annexet; CLASS=Sensor; TYPE=MIoT%20Sensor; KEY=c9d4743f959a10b…4eda99d9ba6b8; R=provisioning.extas.is https://www.iana.org/assignments/uri-schemes/prov/iotdisco.pdf
  • 52. © Waher Data AB, 2018. Decision Support
  • 53. © Waher Data AB, 2018. Distributed Transactions  Tokens  User identities  Service identities  Device identities  Challengeable  PKI based  Public key registered with broker  Broker issues token  Private key used to respond to challenges  Multiple tokens can be distributed  Authorization on original, not intermediate, identity
  • 54. © Waher Data AB, 2018. Clock Synchronization  Synchronization of events across Internet  Across multiple networks & time-bases  High-frequency clocks  < 1 ms precision in stable conditions  Adaptation during network/clock reconfigurations
  • 55. © Waher Data AB, 2018. Smart Contracts  Legal identities  Smart Contracts  Owner defines rules for access  Automation of Provisioning  Zero configuration  Signing smart contract gives access  Economic Feedback  Billing based on usage
  • 56. © Waher Data AB, 2018. Connectivity  Direct to XMPP network  TCP  HTTP (BOSH)  Web-socket  UDP (experimental)  Via Concentrator (“Thing of Things”)  Embedded  Gateway  Bridge protocols  Bridge patterns  System Integration
  • 57. © Waher Data AB, 2018. PLC  Embeds logical/embedded devices  One connection to XMPP network
  • 58. © Waher Data AB, 2018. Protocol/Pattern bridge  Connecting other technologies  Adding security  Adding interoperability
  • 59. © Waher Data AB, 2018. System Integration  Integration with Back-end systems
  • 60. © Waher Data AB, 2018. 7. Representation
  • 61. © Waher Data AB, 2018. Sensor Data  Loosely coupled representation  M2M & M2H  Meta-data describing information  Localizable
  • 62. © Waher Data AB, 2018. Control Operations  Loosely coupled representation  M2M & M2H  Meta-data  Localizable
  • 63. © Waher Data AB, 2018. 8. Operation
  • 64. © Waher Data AB, 2018. Simple Sensor Data Request https://gitlab.com/IEEE-SA/XMPPI/IoT
  • 65. © Waher Data AB, 2018. Slow Responses https://gitlab.com/IEEE-SA/XMPPI/IoT
  • 66. © Waher Data AB, 2018. Scheduled / Queued responses https://gitlab.com/IEEE-SA/XMPPI/IoT
  • 67. © Waher Data AB, 2018. Fragmented responses
  • 68. © Waher Data AB, 2018. Example: Simple Readout https://gitlab.com/IEEE-SA/XMPPI/IoT
  • 69. © Waher Data AB, 2018. Event Subscription https://gitlab.com/IEEE-SA/XMPPI/IoT
  • 70. © Waher Data AB, 2018. Fragmented events
  • 71. © Waher Data AB, 2018. Example: Simple Event Subscription https://gitlab.com/IEEE-SA/XMPPI/IoT
  • 72. © Waher Data AB, 2018. Example: Publish (PEP) https://gitlab.com/IEEE-SA/XMPPI/IoT
  • 73. © Waher Data AB, 2018. Example: Subscriber Event (PEP) https://gitlab.com/IEEE-SA/XMPPI/IoT
  • 74. © Waher Data AB, 2018. Example: Simple Control Operations https://gitlab.com/IEEE-SA/XMPPI/IoT
  • 75. © Waher Data AB, 2018. 9. Events
  • 76. © Waher Data AB, 2018. Smart City Lectures* 1. How to build a Smart City (Oct 4th) 2. Privacy in the Smart City (Oct 18th) 3. An Open and/or Secure Smart City (Oct 25th) 4. Harmonizing the Internet of Things (Nov 8th) 5. Introduction to Encryption (Nov 15th) 6. Earning by Sharing in the Smart City (Nov 22th) 7. … 8. … (*) Funded by Swedish Internet Fund.
  • 77. © Waher Data AB, 2018. Smart City Labs* 1. Sensors and actuators (Oct 10th) 2. Connect and chat with your device (Oct 17th) 3. Publishing data from your sensor (Oct 24th) 4. Publishing and discovering devices (Nov 7th) 5. Controlling actuators (Nov 14th) 6. Decision Support for your devices (Nov 21th) 7. … 8. … (*) Funded by Swedish Internet Fund.
  • 78. © Waher Data AB, 2018.  Raspberry Pi & Arduino  Sensors, Actuators, Controllers, Concentrators, Bridges  Protocols: MQTT, HTTP, CoAP, LWM2M, XMPP  Interoperability  Social Interaction  Decision Support  Product Lifecycle  IoT Service Platforms  IoT Harmonization  Security  Privacy Amazon Packt Microsoft Store Contact: https://waher.se/, https://littlesister.se/ Mastering Internet of Things
  • 79. © Waher Data AB, 2018. 10. Open Discussion Ownership? Privacy? Security? Surveillance? Interoperability? Cool stuff? Qué? Where’s the Money? Who pays? What could go wrong? Little Sister? Harmonization?