Architecture
IoT Device Management: Provisioning, Updates and Fleet Health
Updated February 18, 2016By the CalliArc team
Key takeaway
The hard parts of IoT are lifecycle, not telemetry: giving each device a unique identity at manufacture, updating firmware safely over the air with automatic rollback, and knowing when a device has gone quiet. A fleet you cannot update is a fleet with permanent vulnerabilities.
Connecting a device and receiving readings is a weekend project. Operating ten thousand of them in places you cannot visit, for a decade, is the actual engineering problem — and it's usually discovered after the pilot succeeds.
Identity and provisioning
- Each device needs a unique identity and credential, ideally provisioned during manufacture and stored in secure hardware.
- Never ship a shared credential or a default password across the fleet — that's the pattern behind the largest IoT botnets.
- Support credential rotation and revocation, so a compromised or decommissioned device can be cut off.
- Plan ownership transfer and factory reset for devices that change hands.
Updates are non-negotiable
- Over-the-air firmware update must exist from the first shipped unit. Devices you cannot patch become liabilities the moment a vulnerability appears.
- Verify signatures before applying, and keep an A/B partition or equivalent so a failed update rolls back automatically.
- Stage rollouts across the fleet — a bad update applied everywhere simultaneously can brick thousands of devices at once.
- Handle power loss mid-update; it will happen at scale.
- Expect long tails of old firmware from devices that were offline for months, and keep the server tolerant of them.
Connectivity and data
- Assume intermittent connectivity: buffer locally and send when possible, with enough local storage for a realistic outage.
- Batch and compress where bandwidth is metered — cellular data costs multiply across a fleet.
- Use a lightweight protocol suited to constrained devices, over TLS, with certificate validation actually enabled.
- Timestamp at the device with a synchronised clock, because arrival order is not event order.
Fleet visibility
- Heartbeats and last-seen tracking, with alerting on devices that go quiet — silence is the most common failure signal.
- Report battery, signal strength, storage, and firmware version, so failures can be diagnosed remotely.
- Group devices by site, model, and firmware for targeted action.
- Remote diagnostics and log retrieval, because a site visit may cost more than the device.
- Plan end of life: how devices are decommissioned, and how long the service will keep supporting them. Customers will ask, and regulators increasingly do too.