Unified namespace: what it is, how the hierarchy works and how to start one
A unified namespace (UNS) is a single, shared place where every system in an operation publishes its current data and reads everyone else’s, organized in one hierarchy that mirrors the business: enterprise, site, area, line, machine. It is an architecture pattern, and no single product or protocol defines it. In most implementations the shared place is an MQTT broker, the hierarchy is the topic tree, and each PLC gateway, historian, MES and dashboard connects to the broker once instead of connecting to each other.
The term was popularized by Walker Reynolds and is now common in manufacturing and industrial IoT writing. This page covers the hierarchy, the usual transport, what the architecture replaces, where it goes wrong and how to begin with one line or one building.
What a unified namespace replaces
The conventional plant is integrated point to point. The SCADA system polls the PLCs, the historian reads from SCADA, the MES queries the historian, and a reporting tool has its own connection to each. Every new consumer needs a new connection, a new tag mapping and usually a firewall change.
The arithmetic is the argument. Six systems that all need each other’s data can require up to 15 separate links (n(n-1)/2). With a hub, the same six need six connections, one each, and a seventh system adds one more.
| Point to point | Unified namespace | |
|---|---|---|
Connections for n systems | Up to n(n-1)/2 | n |
| Where a value’s name is defined | In each integration | Once, in the hierarchy |
| Adding a consumer | A new link to every source it needs | One subscription |
| Who initiates the connection | The reader reaches into the source | Every node connects outward to the hub |
| Finding a value | Ask whoever owns the source system | Browse the tree |
The second row matters as much as the first. In a point-to-point plant the same motor current has a register address in the PLC, a tag name in SCADA and a column name in the historian. In a unified namespace it has one path.
The hierarchy: ISA-95 as the starting point
Most unified namespaces borrow their levels from the equipment hierarchy in ISA-95 (published internationally as IEC 62264), because operations staff already describe the plant that way.
| ISA-95 level | What it means | Example | Topic level |
|---|---|---|---|
| Enterprise | The company | Acme Beverages | acme |
| Site | A plant or campus | Dallas plant | dallas |
| Area | A department or building within the site | Packaging | packaging |
| Work center | A production line, process cell or unit | Line 2 | line-2 |
| Work unit | A machine or cell on the line | Filler | filler |
Below the equipment come the values themselves:
acme/dallas/packaging/line-2/filler/state
acme/dallas/packaging/line-2/filler/bottles-per-minute
acme/dallas/packaging/line-2/capper/torque
acme/dallas/utilities/chiller-1/supply-temp
acme/houston/packaging/line-1/filler/stateISA-95 is a starting point and not a requirement. A hospital campus or a portfolio of commercial buildings has no production lines; campus, building, system and equipment do the same job. What matters is that the levels describe the physical operation, that every branch uses the same levels in the same order, and that the names are ones an operator would recognize.
MQTT topics as the namespace
MQTT is the usual transport because its topic structure is already a hierarchy and its broker is already a hub. A publisher writes to a topic; any number of subscribers receive it, and neither side knows the other exists. The MQTT guide covers the protocol, and the page on MQTT topics and wildcards covers the matching rules that make a well-ordered tree useful:
acme/dallas/# everything at the Dallas plant
acme/+/packaging/+/filler/state the state of every filler, at every siteThree MQTT features carry most of the weight in a unified namespace:
- Outbound connections. Each client opens its own connection to the broker, so nothing on the plant floor has to accept an inbound connection from the business network.
- Report by exception. A publisher sends a value when it changes, so the broker holds the current state without anyone polling for it.
- Retained messages. A broker stores the last retained message on each topic and hands it to a new subscriber immediately, so a consumer that connects at 2 a.m. sees the present state of the plant and does not wait for the next change.
MQTT says nothing about the payload. A plain-MQTT unified namespace needs a written convention: JSON or not, where the timestamp and unit go, whether a topic carries one value or a structured object.
Sparkplug B in a unified namespace
Sparkplug B is the Eclipse specification that removes those open questions for industrial data. It defines a typed Protocol Buffers payload, birth messages in which an edge node announces every metric it will publish, and death messages that tell consumers when its values have gone stale. For a unified namespace that means consumers can discover metrics without a separately maintained tag list and can tell a current value from a stale one.
It comes with a constraint. Sparkplug fixes the topic at five levels:
spBv1.0/group_id/message_type/edge_node_id/device_idAn ISA-95 path of five or six levels does not fit into three identifiers, so the hierarchy is split. The group ID usually carries the site or area, the edge node and device IDs carry the line and machine, and the rest moves into metric names, which may contain / (Filler/Infeed/Speed). A consumer has to decode the payload to see the full path, and the payload is binary, so general MQTT tools cannot read it without a Sparkplug decoder.
Both approaches are in use. Sparkplug B suits sites where several vendors’ gateways and host applications must interoperate. Plain topics with a JSON payload suit sites where the consumers are IT tools that expect readable messages. Some sites run both: Sparkplug from the edge, and a service that republishes the decoded values on plain hierarchical topics.
Where OPC UA and field protocols fit
A unified namespace does not replace the protocols that talk to equipment. PLCs, drives and meters are still read over OPC UA, Modbus or BACnet by a gateway on the plant network, and the gateway publishes what it reads into the namespace. An OPC UA server has a hierarchy of its own, the address space, but it describes one server. The unified namespace is the layer above, where the contents of many servers and devices are placed in one tree. The comparison of OPC UA and MQTT explains why the two are usually paired this way.
What a unified namespace does not do
A broker holds the latest message on each topic and nothing earlier. History comes from a subscriber that stores what it receives: a historian or a time-series database. A unified namespace also does not make data meaningful by itself. A topic called line-2/filler/n7-42 is as opaque as the PLC register it came from.
Common mistakes
- Copying the device structure. Topics such as
gateway-3/plc-12/db4/word6describe the wiring. Consumers want the equipment, and the wiring changes when a PLC is replaced. - Uneven depth. If one site has an area level and another skips it, a filter with
+selects different things at each site. Keep the same levels everywhere, and use a placeholder name where a level does not apply. - Modeling the whole enterprise first. A hierarchy designed for 40 plants before one value is published is usually wrong in ways only real consumers reveal.
- No ownership of branches. Without per-topic authorization any client can publish anywhere, and two publishers on one topic produce a value that flickers between them. Give each publisher write access to its own branch only; the MQTT security page covers the mechanism.
- Bare values. A payload of
42.7with no unit and no timestamp forces every consumer to look up what it means. Put the unit and the source timestamp in the payload or in a documented convention. - Raw data only. If every consumer has to turn status words into “running” and counts into a rate, the integration work has moved, not disappeared. Publish the derived value once, next to the raw one.
- Commands without rules. A namespace everyone can read is safe. One that anyone can write setpoints into is not. Decide which topics accept commands and who may publish to them before the first write.
How to start small
- Pick one line, one utility system or one building, and one question someone actually asks, such as “is line 2 running, and at what rate?”
- Write the hierarchy for that slice down to the value names. One page is enough. Agree the naming rules: lowercase, no spaces, fixed levels.
- Stand up one broker with TLS and per-client credentials. A single broker is enough for a first site.
- Publish the equipment through one gateway, reading the PLCs over their existing protocol. Leave the control system untouched.
- Connect two consumers that did not share data before, for example a dashboard and a data store. The second consumer is the proof: it needed no new integration.
- Add the next line using the same levels. Change the convention now if it was wrong; the cost of renaming grows with every subscriber.
How ControlCom works with a namespace
ControlCom Connect, the hosted platform, has a Namespace page under Visualization in the sidebar. Its documentation describes one browsable tree of everything the organization models: Locations at the top, nested by parent Location, the Assets inside them, nested by parent Asset, and under each Asset its points, which are the Device Variables bound to it and any Virtual Variables calculated from them. Nothing is configured on the page itself. The tree is assembled from the Locations and Assets already modeled, so a point can be found without knowing which device publishes it. Every node carries a namespace path, the trail of names from the root separated by slashes, and selecting a Device Variable shows its data type, unit and MQTT topic with a chart of its history. Filters narrow the tree by Asset type, classification, location, unit or active alarm, and the filtered view is held in the URL so it can be sent to a colleague.
The ControlCom Edge Server, the on-site component, runs an embedded Sparkplug B broker. Its SparkplugB Listener rule accepts spBv1.0 messages from an external publisher and maps each metric to a platform variable, and the MQTT Explorer tool in its web interface shows the broker’s topic tree by group, edge node, device and metric with decoded payloads. Devices you program yourself can publish JSON straight to the platform, as the MQTT documentation describes. The page for controls engineers covers the commissioning workflow around these pieces.
Model your Locations and Assets, bind device variables to them, and the Namespace page in ControlCom Connect shows the whole operation as one tree, from a campus down to a single reading and its history.