What is IoT device management? LwM2M, TR-069 and USP
Short answer: IoT device management is the set of tasks that keep a fleet of connected devices configured, monitored and up to date, from first connection until the device is retired. Three open standards cover most of the protocol side: OMA SpecWorks' Lightweight M2M (LwM2M), the Broadband Forum's TR-069 and its User Services Platform (USP). LwM2M is designed around lightweight protocols and an efficient data model, TR-069 manages customer premises equipment from an auto-configuration server, and USP is a messaging protocol for consumer electronics, IoT and home devices, with its own transports. Choose the protocol your devices and your management platform already share.
How IoT devices are provisioned, configured, monitored, updated and decommissioned, and the standards that do it: LwM2M, TR-069 and USP.
This article covers what device management covers across a device's life, the device capabilities NIST asks for, and how LwM2M, TR-069 and USP compare It does not cover vendor platforms and their prices, cellular plan management beyond the SIM, and the security design of any one product
IoT device management is the work of keeping connected devices configured, monitored and up to date after they leave the factory, until the day each one is retired. It covers five jobs: provisioning, configuration, monitoring, software updates and decommissioning. Three open standards carry most of that work between a device and a management server: OMA SpecWorks’ Lightweight M2M (LwM2M), the Broadband Forum’s TR-069 and the Broadband Forum’s User Services Platform (USP). This guide explains what each job involves, what the standards say about it, how the three protocols differ and what to check before you choose one. It sits in the industrial IoT guides, and it links out to the firmware update guide, which covers how a software update is signed and rolled back, and to the IoT SIM card guide, which covers the connectivity identity a device carries.
The three protocols at a glance
| Protocol | Written by | Model | Messaging | Transport |
|---|---|---|---|---|
| LwM2M (Lightweight M2M) | OMA SpecWorks | LwM2M Server and LwM2M Client, with a Bootstrap Server | Request and response, inspired by the RESTful model based on CoAP | RESTful model inspired by CoAP |
| TR-069 (CPE WAN Management Protocol) | Broadband Forum | Auto-Configuration Server (ACS) and Customer Premises Equipment (CPE) | Remote procedure calls (RPC) encoded as SOAP | SOAP over HTTP |
| USP (User Services Platform, TR-369) | Broadband Forum | Controller and Agent | USP Record, defined in Protocol Buffers v3 | WebSocket, STOMP, MQTT and UNIX domain socket bindings |
The table is a summary of the specifications named in the sources below. Each protocol has its own version history, so check the version a device supports before you plan around it.
What device management covers
A connected device goes through the same stages whatever its purpose. It is provisioned, so the management system knows it exists and can reach it. It is configured, so it knows what to send and how often. It is monitored, so someone can see whether it is online and behaving. It is updated, so its software can be fixed and improved. And it is decommissioned, so the platform stops expecting it and the records can be closed.
Each stage needs a way to address the device and a way to change its state. A management server needs to read a value, write a value, start an operation such as a reboot, and receive notices when something changes. The three protocols differ in how they carry those messages and in which devices they were written for.
Provisioning and first contact
Provisioning is the first time a device is registered with a management system. In TR-069, the device reaches its auto-configuration server, and the document’s introduction has a section titled Auto-Configuration and Dynamic Service Provisioning. The specification’s executive summary describes the protocol as one for communication between a customer premises device and an auto-configuration server, which encompasses secure auto-configuration as well as other management functions in one framework.
In LwM2M, provisioning starts with the Bootstrap interface. The LwM2M specification describes four interfaces: Bootstrap, Client Registration, Device Management and Service Enablement, and Information Reporting. A Bootstrap Server sets up a device before it registers with the LwM2M Server. The specification says the registration retry mechanisms for the Bootstrap Server are implementation dependent, so retry behavior depends on the device’s implementation.
USP handles discovery and onboarding differently. A USP Agent is an endpoint that exposes service elements to one or more Controllers, and a Controller manipulates those elements through one or more Agents. The specification describes ways an Agent can find its Controller, including DHCP, mDNS and DNS.
Configuration
Configuration is the part of device management that changes what a device does. A management server writes settings, reads them back and checks that they took effect. The NIST framework for IoT device cybersecurity lists this as a capability in its own right. NIST IR 8259A describes the Device Configuration capability as one in which the configuration of the IoT device’s software can be changed, and such changes can be performed by authorized entities only. Its common elements include the ability to change the device’s software configuration settings, and the ability to restrict configuration changes to authorized entities.
The same NIST document lists six capabilities in its core cybersecurity baseline for IoT devices: device identification, device configuration, data protection, logical access to interfaces, software update, and cybersecurity state awareness. The protocol’s own rules on who may change a setting matter as much as the setting itself.
In TR-069, configuration is done through remote procedure calls, and GetParameterValues is the method that reads values back. In LwM2M, settings are held as resources inside objects, and the Device Management and Service Enablement interface is where a server works with them. The protocols use different names for the same idea: a value the device exposes that a server can read or set.
Monitoring and reporting
Monitoring is how a team learns what the fleet is doing. The simplest signal is whether a device has registered recently. A richer signal is the device’s own status, such as its firmware version, its network details and its error counters.
LwM2M separates this into its own interface. The Information Reporting interface is used by a server to observe changes in a resource on a registered client and receive notifications when new values are available. Under the Observe operation, the server subscribes to a resource, and the client sends a Notify message when the observed state changes and the observation’s conditions, such as its minimum and maximum periods, are met. The Device object in LwM2M provides a range of device-related information that a server can query, along with reboot and factory reset functions.
USP calls the equivalent mechanism Notifications. The specification defines a notification as a Request from an Agent that conveys information about an Event to a Controller. TR-069 uses an Inform message, which the CPE sends to report Events to the ACS.
Software updates
A management protocol carries the instruction to update a device, but the update itself is a file the device has to fetch, check and install. Each standard has a way to start that process, and the rest of the work sits in the device’s firmware and in the cryptographic checks it runs before installing anything. The firmware update guide covers signing, verification and rollback in detail.
TR-069 has a Download method. Its revision history also refers to a RequestDownload RPC in the Amendment 6 (2020) entry. In LwM2M, the Firmware Update object (Object ID 5) contains a Package URI resource, which gives the URI from where the device can download the firmware, and the object follows a firmware update state machine as the update runs.
The NIST framework expects the same thing from the device side. Its Software Update capability says the device’s software can be updated by authorized entities only using a secure and configurable mechanism. Its common elements include the ability to verify and authenticate an update before installing it. A management server can deliver an update, but the device decides whether to trust it.
Reboots matter here too. A device often has to restart to finish an update, and LwM2M defines a Reboot resource in the Device object, which restarts the device to restore it from an unexpected firmware failure. TR-069 has a Reboot method in its RPC list.
The protocols give a few tools for this. In LwM2M, a client that no longer needs to be available to its server should send a De-register operation, and the server then removes the registration information. The specification gives a LwM2M Device factory reset as an example of when a client no longer needs to be available. TR-069 supports a factory reset with a FactoryReset method in its RPC list.
NIST places identity at the center of this. Its Device Identification capability describes a unique logical identifier, usually used for automated device management and monitoring, and a unique physical identifier. The NIST document says the physical identifier can distinguish the device from all others whenever the logical identifier is unavailable, such as during device deployment and decommissioning, or after a device failure. A decommissioning record should therefore carry the physical identifier as well as any logical one, so the right hardware is retired.
A practical order, which the standards do not set, is to stop sending new work to the device, de-register it or reset it, remove its access to the platform, and then close the record. Each step is a point at which a device can be missed. The IoT SIM card guide covers the connectivity side of the record.
LwM2M in more detail
LwM2M, from OMA SpecWorks, is the protocol to look at first for constrained devices. The specification says it defines the application layer communication protocol between a LwM2M Server and a LwM2M Client, and between the Bootstrap Server and the Client. It says the device management protocol was designed to make use of lightweight protocols and an efficient data model. Its messaging layer is inspired by the RESTful design model based on CoAP, and interactions are request and response between clients and servers. Uniform Resource Identifiers identify the objects and resources a server can read or change.
The data model is the main idea to understand. The specification defines an object as a collection of logically related resources, and each object has a number. The Firmware Update object and the Device object are two standard examples.
TR-069 in more detail
TR-069 is the CPE WAN Management Protocol. The Broadband Forum’s document says it is intended for communication between a CPE and an Auto-Configuration Server (ACS), and that it defines a mechanism that encompasses secure auto-configuration of a CPE, while also incorporating other CPE management functions into a common framework. The document specifies the generic requirements of the management protocol methods, and says other documents specify the managed objects, or data models, for specific types of devices or services.
Its messages are SOAP over HTTP, and its operations are called remote procedure calls. The specification lists them in an annex, with methods that include GetParameterValues, Download, Reboot and FactoryReset. Because the data models are separate documents, a TR-069 deployment depends on which data model a device implements.
USP in more detail
USP, the User Services Platform, is specified in TR-369 by the Broadband Forum. Its purpose section says it is designed for consumer electronics and IoT, home network and gateways, smart Wi-Fi systems, and for deploying and managing other value-added services and applications. The specification describes an architecture of endpoints, service elements and data models, and it uses Controllers and Agents to exchange messages between them.
The specification describes bindings for WebSocket, STOMP, MQTT and UNIX domain sockets, and it marks the CoAP binding as obsolete. A device speaks USP over one of these bindings, so check which one it uses before you plan a migration.
Does USP replace TR-069?
The USP specification does not say that it replaces TR-069. Its executive summary lists “Simple migration from the CPE WAN Management Protocol [1] (CWMP)” as one of the benefits of USP, and it says the migration works through the same data model and data modeling tools. That describes a route between the two. The text does not say that TR-069 is withdrawn.
For a fleet already managed over TR-069, the practical question is whether the devices and the management platform support USP, and what is needed to run both during a transition. TR-069 runs over SOAP over HTTP, and USP runs over the bindings listed above, so a migration needs a plan for both. Check the device’s firmware and the platform’s supported protocols before you commit to either.
LwM2M or TR-069
The choice depends on the devices. The LwM2M specification describes lightweight protocols for constrained devices, which suits devices with limited resources. TR-069 suits the customer premises devices it was written for. USP suits a wider set of consumer and home devices and gives a path from TR-069. When a platform supports more than one, the deciding factor is usually the device’s firmware, since a device can only speak the protocols it has been built with.
A few checks help before you decide. Confirm the protocol versions the device implements, because each specification has amendments and a device may implement an earlier one. Confirm which data model the device uses, because two devices that speak the same protocol can expose different parameters. Confirm how the platform handles the update, reboot and de-register steps described above, because those are the steps that decide whether a fleet can be kept current.
Sources
- OMA SpecWorks, Lightweight Machine to Machine Technical Specification: Core, version 1.2.2, LwM2M architecture, interfaces, object model, De-register, Device and Firmware Update objects
- Broadband Forum, TR-069 CPE WAN Management Protocol, Amendment 6 Corrigendum 1, ACS and CPE, auto-configuration, SOAP and RPC methods
- Broadband Forum, TR-369 User Services Platform (USP), Issue 1 Amendment 5, USP purpose, Agents and Controllers, transport bindings, migration from TR-069
- NIST IR 8259A, Core Cybersecurity Feature Baseline for Securable IoT Devices, the six device capabilities, Device Configuration, Software Update and Device Identification
Common questions
What does IoT device management mean?
IoT device management is the work of keeping connected devices configured, monitored and up to date after they are installed. It covers provisioning a new device, changing its settings, reading its status, installing software updates and retiring it at the end of its life. The protocols named in this guide carry the messages for those tasks between the device and a management server.
What is the difference between LwM2M and TR-069?
Both let a central server manage a device, but they were written for different devices. LwM2M, from OMA SpecWorks, is designed around lightweight protocols and an efficient data model, and its messages are inspired by the RESTful model of CoAP. TR-069, from the Broadband Forum, is a SOAP-based protocol between a customer premises device and an auto-configuration server.
Does USP replace TR-069?
The USP specification does not say that it replaces TR-069. It describes a simple migration from TR-069 by using the same data model and data modeling tools. Systems that still run TR-069 will need their own plan for moving devices across, because the two protocols run over different message formats and transports.
What does decommissioning an IoT device involve?
The protocol side is a de-register message, which tells the management server that the device no longer needs to be available, and a factory reset where the device is wiped. NIST notes that a unique physical identifier can distinguish a device from all others when its logical identifier is unavailable, such as during decommissioning, so the right hardware can still be identified.
Written by Hamza Rivera. Facts in this article follow the editorial policy: each one is behavior that is well established or set by the standard named in the text. A confirmed error is fixed in the article and its Updated date changes.