Industrial IoT

MQTT and Sparkplug: Modern Data Transport in Industrial IoT

MQTT and Sparkplug: Modern Data Transport in Industrial IoT

In industrial IoT projects, the data path from devices to the cloud must be reliable and scalable. MQTT (Message Queuing Telemetry Transport) has become the most common carrier for this path.

Why Choose MQTT?

  • Lightweight: Runs with minimal bandwidth and processing power; ideal for resource-constrained field devices.
  • Publish/Subscribe: Producers and consumers communicate without knowing each other, keeping the system flexible and loosely coupled.
  • Quality of Service (QoS): Offers three delivery guarantee levels, 0, 1, and 2; the most suitable can be selected per application.
  • Session persistence: When a connection drops, messages are queued and can be delivered later.

What Is Sparkplug?

MQTT defines the rules for transporting messages but not how data should be represented. Sparkplug fills that gap: it is an open specification that enables industrial data to be carried over MQTT with a standard information model. Sparkplug A and Sparkplug B versions exist; B offers more advanced features.

What Sparkplug Provides

  • Unified Namespace: All field data is collected in one consistent namespace; access to data becomes independent of device protocols.
  • Automatic device discovery: When a new device joins the network, it announces itself with a "BIRTH" message and the system updates automatically.
  • State monitoring: "DEATH" messages enable immediate detection of devices going offline.
  • Standardized data model: Consistent data structures for similar device types lower integration costs.

Practical Architecture Recommendations

  1. Collect field traffic at the edge with an MQTT broker (e.g., data platforms with an embedded broker).
  2. Connect field devices to the edge broker first, not directly to the cloud; this provides bandwidth and cost control.
  3. Match QoS levels to criticality: high reliability for alarm data, lightweight delivery for telemetry.
  4. Apply TLS encryption and certificate-based authentication.
  5. Subscribe upper-layer consumers (SCADA, analytics, cloud) to the unified namespace.

MQTT transports the data; Sparkplug gives it meaning. Together, they are today's most practical way to build a scalable, maintainable data infrastructure for industrial IoT.

Conclusion

The MQTT + Sparkplug architecture is an ideal starting point for greenfield projects in new plants. In existing plants, a gradual migration can be achieved by combining it with OPC UA gateways. What matters is designing the data model and security layers correctly from the start.