Industrial IoT4 min read

Unified Namespace Explained: MQTT, Sparkplug B and Your Plant

A plain-English guide to the Unified Namespace (UNS): why factories are moving to it, how MQTT and Sparkplug B fit, and how a small plant can start.

By CrimsonEdge Systems team

If you've followed industrial IoT in 2026, you've heard "Unified Namespace" everywhere. Analyst landscapes describe plants shifting toward a UNS built on MQTT and Sparkplug B, and vendors now design products around it. Behind the buzzword is a simple idea that solves a real problem.

The problem: spaghetti integration

In a typical plant, every system talks to every other system through its own connection. The MES polls the PLCs. The ERP pulls from the MES. A dashboard reads the historian. Each new tool means new point-to-point links, and soon nobody knows where the "true" machine status lives.

This follows the classic ISA-95 pyramid: data climbs level by level, from sensors to control to MES to ERP. It works, but it's slow to change and expensive to extend.

The idea: one place for current state

A Unified Namespace is a single hub where every system publishes its current data, organised the way your business is organised, and where any system can subscribe to what it needs.

  • A machine gateway publishes plant1/line2/press-04/state = running.
  • The MES publishes the current work order for that line.
  • The quality system publishes the latest inspection result.

A dashboard, an analytics tool or an AI assistant simply subscribes. Nobody needs to know where the data came from, only its name.

How MQTT fits

The UNS is the architecture; MQTT is usually the transport. MQTT is a lightweight publish/subscribe protocol where devices publish to topics on a broker, and subscribers receive updates. It suits a UNS because:

  • publishers and subscribers are decoupled, so adding a new consumer touches nothing else
  • retained messages mean a new subscriber immediately gets the latest value
  • it works well over unreliable networks

Our earlier comparison, MQTT vs OPC UA vs Modbus, explains how these protocols work together: Modbus and OPC UA read the machines, MQTT distributes the data.

The gap MQTT leaves, and Sparkplug B

Plain MQTT says nothing about what a message means: no units, no data types, no standard way to know if the sender is still alive, and almost total freedom in naming topics. In a big plant that freedom becomes chaos.

Sparkplug B, an open specification maintained by the Eclipse Foundation, adds:

  • A fixed topic structure for groups, edge nodes and devices.
  • A standard payload encoded with Protocol Buffers, carrying names, data types and timestamps.
  • Birth and death certificates. When a device connects it publishes a "birth" listing all its metrics; if it drops off, the broker publishes a "death" message using MQTT's Last Will feature. Every subscriber knows what's online.
  • Report by exception. Values are published when they change, which keeps traffic low.

Sparkplug B runs on any MQTT 3.1.1 or later broker. The broker doesn't decode the payloads; clients do.

Designing your namespace

The most important decision is the naming hierarchy. Many plants follow ISA-95 levels:

enterprise/site/area/line/cell/signal
acme/chennai/machining/line2/lathe-04/spindle-load

Rules that save pain later:

  1. Agree on the hierarchy before the first machine goes live. Renaming topics after dashboards depend on them is painful.
  2. Use lowercase and no spaces.
  3. Separate raw from derived data, e.g. .../raw/current vs .../state.
  4. Document units and meaning in one place, or let Sparkplug carry them.

How a small plant can start

You don't need an enterprise platform:

  1. Run an MQTT broker on a small industrial PC or server on-site.
  2. Add one gateway that reads three to five machines (via Modbus, OPC UA or clamp-on sensors; see retrofitting legacy machines).
  3. Publish machine state and a few key signals using your agreed naming.
  4. Connect one dashboard and one alert.

Once that works, every new system plugs into the same hub. Use our free MQTT data usage calculator to size bandwidth if any sites are on cellular links.

TipA UNS also makes AI projects easier. An AI assistant can read well-named, current data from one place instead of needing access to every PLC. See MCP on the factory floor.

When a UNS isn't worth it (yet)

If you have a handful of machines and one dashboard, a full namespace is overkill; a simple MQTT setup is enough. The UNS pays off when you have several systems that all need the same data, or plan to add more.

CrimsonEdge Systems designs and builds Unified Namespace setups, from gateways to dashboards. See our hardware and IoT services or contact us.

Sources

Frequently asked questions

Is a Unified Namespace a product I can buy?

No. It's an architecture: a single, well-organised place where every system publishes its current data and any system can subscribe. You build it with an MQTT broker, a topic naming convention and gateways that connect your machines.

Do I need Sparkplug B for a Unified Namespace?

Not strictly. Plain MQTT with JSON payloads and a strict naming convention works for many small plants. Sparkplug B adds a standard payload format and device online/offline state, which helps as you add more vendors and devices.

Will a UNS replace my SCADA or MES?

No. SCADA and MES keep doing their jobs. They become publishers and subscribers in the namespace, so they share data through one hub instead of many point-to-point links.

  • #industrial-iot
  • #unified-namespace
  • #mqtt
  • #sparkplug-b
  • #manufacturing

Related articles