BACK_TO_LOG
Protocols 13 Dec 2025

What Is Sparkplug B? The MQTT Standard Behind the Unified Namespace

Sparkplug B is the specification built on MQTT that adds structure and context to industrial data — the foundation of a real Unified Namespace architecture.

What Is Sparkplug B? The MQTT Standard Behind the Unified Namespace
RECURSO DESCARGABLE

Hassle-free automation?

Checklist: 10 Steps to Digitize Your Plant

Avoid costly implementation errors

100% Spam-Free

What is Sparkplug B? #

Sparkplug B is an open specification built on top of MQTT that standardizes how industrial devices publish their state: it defines a fixed topic structure, encodes data in Protobuf instead of text JSON, and adds connection-state handling through birth/death certificates. It is the missing piece that lets plain MQTT support a real Unified Namespace architecture, instead of every integrator inventing its own payload format.

The scaling problem with OPC UA #

OPC UA (Unified Architecture) is excellent. It is secure, semantic and standard. But it has one fatal flaw in the age of big data: it works on a client-server (request-response) model.

Imagine 1,000 sensors. With OPC UA your SCADA has to constantly ask each one: "any new data?". That generates brutal network traffic and couples the systems together. If the SCADA goes down, nobody sees anything.

B2B alternative

Move beyond restrictive licensing

See why iGromi OS is a modern alternative to legacy SCADA and MES systems.

The New Standard: Edge AI

The industry no longer buys expensive per-tag licences or depends on slow clouds. Modern plants process data locally at < 5ms with full autonomy, even with no internet.

View Architecture Matrix

Enter MQTT: report by exception #

MQTT works on publish/subscribe. Sensors (publishers) only send data when SOMETHING CHANGES. If temperature is steady, the network stays silent. This cuts bandwidth consumption by as much as 95%.

So what is MQTT missing? Context. (This is where Sparkplug B comes in) #

Plain MQTT is payload-agnostic. You can send JSON, XML or a photo of a cat. The subscriber has no idea what "45.2" means. Temperature? Pressure? Speed?

Sparkplug B is a specification built ON TOP of MQTT that defines:

  • A standard topic structure: spBv1.0/Group/Node/Device.
  • Efficient encoding: It uses Google Protobufs instead of text JSON, compressing the payload further.
  • State management: The concept of a birth certificate and a death certificate. When a device connects, it sends its full definition. When it disconnects abruptly (power cut), the broker tells everyone "device X has died", thanks to the Last Will and Testament (LWT) message.

What is a Unified Namespace (UNS)? #

A Unified Namespace is an architecture where the MQTT broker, speaking Sparkplug B, is the centre of the plant's data universe: the ERP subscribes to production data, the MES publishes work orders, the PLC publishes machine states — everyone reading and writing the same place instead of point-to-point integrations.

All decoupled. You can restart the ERP and the plant keeps producing and publishing. It is the definitive architecture for resilience.

Does a Unified Namespace replace an industrial Data Lake? #

No — they solve different problems. A Data Lake is a repository that accumulates raw data to analyze later: great for historians, machine learning and long-term reporting, but with minutes or hours of latency. A Unified Namespace delivers the data as it happens, so SCADA, MES and alerts can act on it in real time.

In practice they're not competitors: the UNS is the plant's live source of truth, and one of its subscribers can be the very Data Lake that archives that same stream for historical analysis.

KEYWORDS:

#MQTT#Sparkplug B#OPC-UA#UNS#que es sparkplug b#unified namespace#que es un unified namespace#unified namespace vs data lake
Sebastián Carrillo

Sobre el Autor

Lead Hardware Engineer

Sebastián Carrillo

Traduce el código en tornillos apretados. Lidera instalaciones en faena y diseña los gateways industriales de iGromi, resolviendo problemas donde el polvo y la vibración entran en juego.

¿Te resultó útil? Comparte con tu equipo

Ayúdanos a llegar a más ingenieros y gerentes de planta que puedan beneficiarse de este contenido.

ENGINEERING_BULLETIN

Stay Ahead of Industria 4.0

Join 5,000+ managers and experts. Get technical analysis, OEE guides and Edge architectures straight to your inbox. Cero spam.

FREE_DOWNLOAD

The Definitive Productivity Guide

Learn to measure OEE and catch micro-stoppages, with a technical PDF and an interactive checklist.

Looking for an automated solution?