M2M, IOT, Device Managment: COAP/LWM2M to rule them all?
- 2. WHOAMI?
Software Engineer at Sierra Wireless,
implementing various protocols for AirVantage
cloud service
Apache Software Foundation member
Eclipse committer on Californium and Wakaama
- 12. COAP:RESTFULTHINGS!
REST paradigm for things:
coap://myhouse.local/lamps/7/status
HTTP like verbs: GET, POST, PUT, DELETE
Content negotiation
Web goodies: but in a compact binary format!
- 13. CO:CONSTRAINED
.0 1 2 3
.01234567890123456789012345678901
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Ver|T| TKL | Code | MessageID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Token(ifany,TKLbytes)...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options(ifany)...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|11111111| Payload(ifany)...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- 15. COAP:BONUS
Observe for streaming changing values
Local group communication (multicast)
HTTP <=> CoAP proxy
Web like Caching
Resource directory
All the Web model for IoT!
- 16. COAP:SECURITY
DTLS: TLS on Datagram
Works with PSK (pre-share-key) or full PKI
Here be dragons!
The real implementation complexity
- 23. OMA-DM
An Open Mobile Alliance standard for Device Management
Targets mobile phone terminals but can be used for M2M
Mean to be used by mobile network operators.
- 25. OMA-DM
HTTP/XML based, with a binary XML (WBXML) encoding.
Weird phone features gets in the way: every
communication the device gives its language (ex: EN_en)
Binary SMS for wakeup and bootstraping.
- 30. LWM2MSMS
SMS can be used for waking-up the device.
Or any GET/POST/PUT/DELETE.
The device can reply by SMS or UDP (return-path).
- 40. PROTOCOLHELL
Each protocol must be secured.
And synchronized:
You can’t trigger an update with a protocol, while you are
rebooting the device using another.
- 41. PROTOCOL CONVERGENCE
M2M/IoT is not a simple problem.
Security and provisioning are really the
hardest ones.
Try hard to reduce the number of
protocols to make your life easier!
- 44. ONEPROTOCOL?
CoAP with LWM2M provides efficient device management and
application protocol.
It can be the only protocol of your device to rule them all!