OpenGXT homePlan a pilot line
Menu

Does a small plant need a unified namespace, and how small can it be?

The reader questionWhat is a unified namespace, and what is the smallest version worth building for one plant or one line?

A miniature wall of wooden pigeonholes, each holding a tiny model machine, with a small clerk on a step sliding one more machine into the last empty slot.

A unified namespace is an architecture pattern, not a published standard. Every system on the plant floor publishes its current data to one shared place, usually an MQTT broker, under one naming hierarchy, and every application reads from there instead of from the machines. A small plant does not need a large platform to get the benefit. The smallest useful version is one broker, one naming convention based on the ISA-95 equipment hierarchy, one payload convention and one named owner, built for one line and extended only when a second consumer or a second line needs it.

This article separates what a unified namespace is from what it is often sold as, gives a five-question test for whether your plant needs one now, and sets out the minimum version in enough detail to build it. It is written for IT/OT leads, controls engineers and operations leaders at single-site and small multi-site manufacturers.

What a unified namespace is

A unified namespace (often shortened to UNS) is one shared, named, current picture of the plant that any authorized application can read. Machines and systems publish into it; reports, boards and other software subscribe to it. Nothing connects directly to anything else.

In practice it has five parts:

  1. A broker. Usually an MQTT broker: a server that receives messages from publishers and passes them to subscribers. MQTT is an OASIS standard; version 5.0 is dated March 7, 2019.
  2. A hierarchy. Every value gets a path, such as example-co/casper/packaging/line-2/filler/state, built from the levels of the plant: enterprise, site, area, line, cell or machine, then the value’s name.
  3. A payload convention. Every message on a given kind of path has the same shape: value, timestamp, unit and quality, in an agreed encoding.
  4. Current state. The latest value for each path is kept by the broker, so a new application sees the plant as it is now, not only the changes that happen after it connects.
  5. An owner. One person or team decides how paths are named and approves additions, and a written document records the rules.

The first four are technology. The fifth is the one that decides whether the namespace is still “unified” a year later.

Point to point: 12 links Shared namespace: 7 connections Filler PLC Capper torque Power meter Air flow meter Shift report Maintenance Energy report Filler PLC Capper torque Power meter Air flow meter Broker Shift report Maintenance Energy report
Fictional example based on the Line 2 filler signals used across this site: four sources and three consumers. Links are counted as possible integrations, not network cables.

The arithmetic in the figure is the whole argument for the pattern. With direct integrations, every new consumer needs a link to every source it uses, and every new source needs a link to every consumer. With a shared namespace, each new source or consumer adds one connection. In the figure’s fictional example, four sources and three consumers give up to 12 direct links but 7 broker connections; add a fourth consumer and the counts become 16 and 8.

What a unified namespace is not

A unified namespace is not a standard, not a historian, not a data lake and not a product. Mixing these up is the main reason small plants either overbuild it or dismiss it.

Not a standard

As of November 2026, no standards body publishes a unified namespace specification. The term comes from practitioners and software vendors, not from a standards committee. What a namespace is built from is standardized: MQTT by OASIS, the equipment hierarchy by ISA-95 (also published as IEC 62264), the Sparkplug topic and payload rules by the Eclipse Foundation, and OPC UA by the OPC Foundation. So when someone asks whether your design “complies with the UNS standard”, the honest answer is that there is none, and the useful question is which of the underlying standards it follows.

Not a historian or a data lake

A namespace holds the current state of the plant and passes changes along. It does not keep last month. History lives in a historian or a time-series store that subscribes to the namespace and writes everything it receives. A data lake is broader still: a store of raw and processed data from many systems, kept for analysis.

Unified namespace Historian Data lake
Holds The latest value of every path, plus changes as they happen Every value over time, by tag Raw and processed data from many systems
Typical question What is Line 2 doing now? What did Line 2 do last Tuesday? How do changeovers relate to supplier lots over a year?
Fed by Gateways and applications publishing Subscribing to the namespace or polling sources Batch loads from historians, ERP, quality systems
Main risk if missing Every new report needs its own integration No trend, no comparison, no audit trail Analysis is done in spreadsheets

A small plant needs the first two long before the third. The namespace makes the historian easy to feed; the historian makes the namespace useful for anything beyond live boards.

Not a product you buy

Several vendors sell software that helps build a namespace, and some of it is good. But buying a broker or a platform does not give you a namespace, in the same way that buying a filing cabinet does not give you a filing system. The naming rules, the payload convention and the owner are the namespace. The software only holds it.

Not a replacement for OPC UA at the machine

OPC UA servers on controllers and MQTT brokers in the middle solve different problems. OPC UA gives a client a browsable, typed model of one server. A namespace gives many applications one place to find data from many sources. Many designs read machines over OPC UA and publish into MQTT at the gateway. OPC UA itself also has a broker-based mode: OPC UA Part 14, PubSub, whose release 1.05.06 is dated October 22, 2025, describes publishing through “standard messaging protocols like MQTT” with JSON encoding for cloud integration.

Why the pattern appeals to plants of any size

The appeal is fewer integrations, one place to look and one set of names. Those benefits do not depend on plant size. What depends on size is how soon the integration count hurts.

A plant with one line and one report can live with a direct connection for years. The pain starts with the second consumer. Maintenance wants a view of motor temperatures. The energy lead wants kWh per case. Quality wants the reject count next to the inspection data. If each request becomes a new connection to the same PLC, the PLC carries more polling clients, and each client names the same signal differently.

The UK’s National Cyber Security Centre makes a related point in its secure connectivity principles for OT. It advises preferring “protocols that support open standards and interoperability”, because that “can help reduce the number of bespoke data flows between environments, thereby decreasing complexity within your architecture.” A namespace is one way to apply that advice: one outbound flow from the gateway instead of one per application.

There is also a human benefit that rarely appears in vendor material. When every signal has one name, people stop arguing about whose number is right. The filler’s good count is example-co/casper/packaging/line-2/filler/good-count in the shift report, the maintenance view and the energy report alike.

Does a small plant need one now? A five-question test

A small plant needs a namespace when more than one application uses the same machine data, or soon will. If one application reads one line and nothing else is planned, you need the naming rules now and the broker later.

Answer these five questions for the next 12 months:

  1. How many applications will read machine data? One means a direct connection is fine. Two or more means a broker starts to pay off.
  2. How many kinds of source are there? PLCs, CNC controls, meters, test stands, a quality database. More kinds means more value in one naming scheme.
  3. Will a second line or site follow the first? If yes, design the hierarchy so the second line fits without renaming the first.
  4. Who will own the names? If nobody can be named, start with a smaller scope until someone can.
  5. Will any application write back to machines? Commands change the security picture. A namespace that only carries readings is much simpler to secure.
Situation What to build now
One line, one application, no second consumer planned The naming convention and a namespace document; a broker is optional
One line, two or more applications One broker, the naming convention, a payload convention and an owner: the minimum version below
Several lines, one site The minimum version, with areas and lines filled in as they connect
Two or more sites The minimum version per site, plus rules for the enterprise level and how sites connect
Any application writes to machines Separate command topics, strict access control and a written approval for each writable value

Even in the first row, write the naming convention now. Renaming signals after reports and dashboards depend on them is the most expensive change in this whole subject.

Example (fictional). A fictional plastics molder runs six injection presses and wants one thing for now: a shift report of cycles, rejects and stops per press. Its answers to the five questions are one application, two kinds of source (the press controllers and a power meter), a second building planned in two years, the maintenance supervisor as owner, and no writes. The table puts it in the first row. It writes a one-page naming convention with the levels example-plastics, its site name, molding, a cell for each press and the value names, and has the gateway use those names from the first day. When the maintenance team asks for mold temperatures a year later, the plant adds a broker and both applications subscribe to names that already exist.

The smallest version worth building

The minimum version has four parts: one broker, one naming convention tied to the ISA-95 equipment hierarchy, one payload convention, and one named owner with a namespace document. Each can be small; none can be skipped.

One broker

Pick one MQTT broker and decide where it runs. The choice depends on where the consumers are.

  • A broker at the plant keeps local consumers, such as andon boards and line displays, working when the internet connection drops. It adds a server to maintain on the plant network.
  • A hosted broker is simpler to run and suits plants whose consumers are mostly hosted software. The gateway connects to it outbound, so no inbound port opens on the plant network. Local displays then depend on the internet connection, unless the gateway also serves them.

Either way, protect it the same way. Use TLS, give every client its own credentials, and use the broker’s access control lists to limit which topics each client may publish and subscribe to. The non-normative security chapter of the Sparkplug specification describes access control lists as the way an MQTT server specifies “which MQTT topics any MQTT Client can subscribe and/or publish on.”

One naming convention

Every path follows the same levels in the same order. Use ISA-95 style levels: enterprise, site, area, line, cell or machine, then the value’s name. The next chapter covers the rules in detail.

One payload convention

Every message carries the same fields in the same encoding. The two common choices are a plain JSON convention you define, or Sparkplug B, which defines both the topic structure and a binary payload with birth and death messages. Our article on Sparkplug B or plain MQTT compares them in depth. For a minimum version, either works if it is written down and applied everywhere.

One owner and one document

Name the person who approves new paths and changes to existing ones. Give them a namespace document with the levels, the allowed names at each level, the payload fields, units and examples. Every new signal goes into the signal inventory with its path before it is published.

What the minimum leaves out on purpose

The minimum version is small because it refuses several things that larger designs include. It has no command paths, so nothing in the namespace can change a machine. It has one broker, not a cluster or a chain of bridged brokers. It carries values and simple context, not typed object models. It keeps no history of its own; a historian subscribes to it. And it does no calculation inside the broker: OEE, energy per unit and similar results are computed by the applications that subscribe, and published back under their own paths only if another application needs them.

Each of those can be added later without renaming anything. Adding them first is how small plants end up maintaining a platform instead of a namespace.

Example (fictional). A fictional beverage bottler builds the minimum version for its Line 2 filler. The broker is hosted; the gateway on the plant network reads the filler’s OPC UA tags, the capper’s torque monitor, the line’s electricity meter and the compressed-air flow meter, and publishes outbound. The naming convention has six levels: example-co, casper, packaging, line-2, the cell (filler, capper, power-meter, air-meter) and the value name. The payload is JSON with four fields: value, timestamp in UTC, unit and quality. The owner is the plant’s controls engineer, who keeps a two-page namespace document. On the first test shift, example-co/casper/packaging/line-2/filler/good-count reads 40,580 at 14:00 and .../filler/reject-count reads 632, matching the filler’s own counters.

Naming the hierarchy: ISA-95 levels in topic paths

Use the ISA-95 equipment hierarchy as the spine of every path, write the rules down, and keep them boring: lowercase, hyphens, no spaces, no units in names, and no level skipped.

Where the levels come from

ISA describes ISA-95, also published as IEC 62264, as “an international set of standards aimed at integrating logistics systems with manufacturing control systems.” Part 1 (ANSI/ISA-95.00.01-2025) covers “how physical assets of a manufacturing enterprise are organized”, and ISA notes that “this equipment hierarchy model can also be applied across discrete, continuous and logistics industries.” The standard itself is a purchased document, so the exact level names are worth checking against your copy. In practice most plants use enterprise, site, area, line and cell or machine.

The hierarchy matters because it is the one structure that operations, maintenance and IT already share. A plant manager thinks in areas and lines. A historian is easier to query by line. A second site fits under the same enterprise level without renaming anything.

Rules that save trouble later

MQTT topics are text strings with levels separated by /. The MQTT 5.0 specification states that topic names “are case sensitive”, that “ACCOUNTS and Accounts are two different Topic Names”, and that “/finance is different from finance”. Those three facts produce most naming bugs. Practical rules:

  • Lowercase only, words joined by hyphens. line-2, not Line2 or line_2 in one place and LINE-2 in another.
  • No leading or trailing slash. A leading slash creates a different topic and an empty first level.
  • No spaces, and never + or # in a name. Those two characters are MQTT wildcards.
  • Units in the payload, not in the name. capper/torque, with the unit in the message, so the name survives a change of unit.
  • Fixed depth. Every path to a value has the same number of levels. If a machine has no cell, repeat the machine name rather than skipping a level.
  • Stable names for machines. Use the plant’s asset name or number, not the machine builder’s model name, which changes when the machine is replaced.

Wildcards are why the hierarchy pays off

MQTT subscriptions can use two wildcards. The specification defines # as a wildcard that “matches any number of levels within a topic” and + as a single-level wildcard. With a consistent hierarchy, one subscription gets exactly what an application needs:

  • example-co/casper/packaging/line-2/# returns everything on Line 2.
  • example-co/casper/packaging/+/filler/state returns the filler state on every line in packaging.

Those two patterns only work if every line is named the same way. That is the practical meaning of “unified”.

Topic path (plain MQTT)Example valueUnitRetained
example-co/casper/packaging/line-2/filler/staterunningnoneYes
example-co/casper/packaging/line-2/filler/good-count40580bottlesYes
example-co/casper/packaging/line-2/filler/reject-count632bottlesYes
example-co/casper/packaging/line-2/filler/fault-code0 (no active fault)noneYes
example-co/casper/packaging/line-2/filler/line-speed120bottles per minuteYes
example-co/casper/packaging/line-2/capper/torqueA torque readingas set in the namespace documentYes
example-co/casper/packaging/line-2/power-meter/energyA cumulative readingkWhYes
example-co/casper/packaging/line-2/air-meter/flowA flow readingcfmYes
example-co/casper/packaging/line-2/gateway/statusonline or offlinenoneYes
Fictional example: part of a namespace for the Line 2 filler, using the levels from the topic namespace builder's default example. Counts are the end-of-shift values at 14:00; the Sparkplug B form of the same filler data is spBv1.0/casper-packaging/DDATA/line-2/filler.

If you choose Sparkplug B

Sparkplug fixes the topic structure as namespace/group_id/message_type/edge_node_id/[device_id], so the ISA-95 levels have to fit into the group, edge node and device. The Sparkplug topic chapter notes that “plant floor applications may group Sparkplug Edge Nodes based on logical cell or manufacturing line requirements.” A common mapping puts site and area in the group, the line in the edge node and the cell in the device, with the value name inside the payload. Deeper levels can travel in the metric name, which Sparkplug allows to contain /, as in its own Node Control/Rebirth. Try your plant’s levels in the topic namespace builder, which shows both forms side by side.

Things that do not sit on a line

Compressors, boilers, chillers, the main electricity meter and the wastewater pump serve many lines. Give them an area of their own, such as utilities, at the same level as packaging. Do not invent a fake line to fit them in, and do not hang them under whichever line was connected first.

Payload and state rules that make the namespace trustworthy

A namespace is only as useful as its least reliable message. Four rules make values trustworthy: keep the latest value retained, timestamp at the source in UTC, carry unit and quality with every value, and publish online status so consumers know when a value is stale.

Keep the current value retained

MQTT brokers can store the last message on each topic and give it to anyone who subscribes later. In the MQTT 5.0 specification, when a client publishes with the retain flag set, the server must “store the Application Message” so it “can be delivered to future subscribers whose subscriptions match its Topic Name.” Retained state topics are what make the namespace a current picture: a board that restarts at 09:15 sees that the filler is running without waiting for the next change.

Use retained messages for state, counters and setpoints. Do not use them for events, such as “fault occurred”, because a new subscriber would receive an old event as if it were new.

Timestamp at the source

Every value carries the time it was read, set by the gateway from a synchronized clock, in UTC. The time a message reached the broker is not the time the machine changed state, especially after the gateway has been buffering through an outage. Our article on store and forward at the edge covers how buffered values are replayed with their original timestamps.

Carry unit and quality

Put the unit in every message, or in a published metadata topic that every consumer reads. Add a quality field that says whether the value is good, uncertain or stale. A count of zero from a machine that is running is a different fact from a count of zero because the gateway lost its connection to the PLC.

A plain JSON payload for one value, here the fictional Line 2 good count at the end of first shift, might look like this:

{"value": 40580, "unit": "bottles", "ts": "2026-11-20T21:00:00Z", "quality": "good"}

The timestamp is 14:00 Mountain Standard Time written in UTC. Write the convention once in the namespace document, with the field names, the timestamp format and the allowed quality values, and validate messages against it. The NCSC’s guidance asks for exactly that: “schemas should be applied to these data flows.”

Publish context, not only readings

A count without the product it belongs to is half a fact. The most useful topics in a small namespace are often not machine readings at all, but context: the product running, the order number, the crew, and the reason for each stop. Give context its own branch under the line, such as example-co/casper/packaging/line-2/context/product, published by whoever knows it: an operator screen, the plant’s scheduling system, or the changeover routine in the PLC.

Treat context like state: retained, timestamped, with an owner. Treat stop reasons like events: not retained, each one carrying the start time, the duration and the reason code. That split lets a report line up every count and every stop with the product that was running at the time.

Example (fictional). On the fictional Line 2 first shift, the operator screen publishes a stop reason of “waiting on caps from the warehouse” for the idle period that started at 10:41 and lasted 26 minutes. At 12:18 the changeover to 1-liter bottles starts, and the context topic example-co/casper/packaging/line-2/context/product changes to the 1-liter product when the changeover begins. The shift report reads both branches and shows the changeover took 38 minutes against a 25-minute standard, 13 minutes over, without anyone typing the times into a spreadsheet.

Publish online status

When a gateway disconnects, its last values stay retained on the broker and look current. Consumers need to know they are not. MQTT’s Will message handles this: a client registers a message with the broker when it connects, and the broker publishes it if the client disappears without a clean disconnect. A retained gateway/status topic set to “online” on connection and “offline” by the Will message tells every consumer which values to treat as stale. Sparkplug B builds the same idea into its birth and death certificates.

Mistakes that break a first namespace

Most first namespaces fail in the same few ways, and none of them is a technology problem. Each one comes from skipping a rule because it seemed too small to matter on one line.

  • Each integrator names their own branch. The gateway vendor uses one style, the energy contractor another, and the namespace ends up as three namespaces under one broker. The fix is one document and one owner who approves every new path.
  • Names copied from the PLC. Tag names such as Tag_0147 or Filler_Cnt_Good_DINT describe memory, not the plant. Map them to plant names at the gateway and keep the original address in the signal inventory.
  • Publishing every poll. A gateway that publishes every value every second, whether it changed or not, multiplies traffic and history for no gain. Publish on change, with a periodic refresh only where a consumer needs a heartbeat.
  • Retained events. A retained “fault occurred” message is replayed to every new subscriber, which then reports a fault that ended hours ago.
  • No status topic. Without online and offline status, a board shows the last known values from a dead gateway as if they were live.
  • Mixed units under one name. One line’s temperature in Fahrenheit and another’s in Celsius under the same value name will break every cross-line report. Fix the unit per value name in the document.
  • Using the broker as a database. Retained messages hold one value per topic. Anything that needs last week belongs in a historian.

Every item on this list is cheap to prevent on the first line and expensive to fix on the fifth.

Signs you have outgrown the minimum

The minimum version stops being enough when the number of sites, consumers or writers grows, or when people start keeping private copies of the namespace. Each sign has a specific next step.

  • A second site. Each site gets its own broker or its own part of a shared one, under the same enterprise level. Decide how sites connect, who owns the enterprise level, and whether a site keeps running when the link between sites is down. Our page on multi-site operations describes comparing lines across plants on one data model.
  • More consumers than the owner can track. When nobody can say who subscribes to what, add per-client credentials and topic permissions if you have not already, and keep a consumer list in the namespace document.
  • Applications that need to share the load. MQTT 5.0 adds shared subscriptions, which the specification describes as “useful where several consuming Clients share the processing of the publications in parallel.” That is a sign of scale, not a starting requirement.
  • An acquisition or a second naming scheme. When a newly acquired plant arrives with its own tag names, map them rather than rename them overnight. ISA-95 Part 7, the Alias Service Model, deals with exactly this: “associating and mapping aliases (equivalent identifiers)” between systems.
  • Writes and commands. Once applications send commands back to machines, separate command paths from data paths, restrict who may publish to them, and require a written approval for each writable value.
  • Richer models. When people want typed objects (a filler with its standard set of values) rather than loose values, look at Sparkplug templates or OPC UA information models instead of inventing a model of your own.

None of these needs to be designed on day one. What the minimum version must do is leave room for them: an enterprise level that is not hard-coded to one site, and a document that can grow.

What it costs: the drivers vendor pages leave out

The cost of a namespace is mostly people’s time, not software. Survey, naming, documentation and upkeep cost more over a few years than the broker. No reliable public benchmark exists for these costs, so plan them by driver rather than by a headline figure.

Cost driver What it consists of How to keep it small
Survey and naming Walking each line, listing signals, agreeing the levels and names Start with one line and the signals the first report needs
Gateways One per line or area, plus drivers for each protocol Group machines on one gateway where the network allows
Broker hosting A server or a hosted service, backups, updates, monitoring One broker per site until a real need for more appears
Security Certificates, credentials, access lists, logging, reviews Read-only data paths at first; no commands until needed
Documentation The namespace document, signal inventory, data-flow diagram Write them as part of each connection, not afterwards
History Storage for every value the historian keeps Size it before buying; publish on change, not on every poll
Change control Approving new paths and renames, keeping the document current One owner, one form, one place to record changes
Training Teaching people to find and use paths Short guides per screen and a printed copy of the hierarchy

History is the line item most often underestimated. A namespace that publishes every value every second produces far more data than one that publishes on change. The data volume estimator shows the effect of tag count, sample interval and retention on storage before you commit.

There is also a cost of not doing it, which belongs in the same conversation. Every point-to-point integration has to be maintained, re-tested when a PLC program changes, and explained to the next person. That cost is real even when it never appears as a purchase order.

A namespace should not lock the plant in, either. Its value depends on the data staying readable by any application the plant chooses. Our open data commitments describe how exports in open formats and a written exit plan keep it that way.

A one-line starting plan

Start with one line, one broker, one naming convention, one payload convention and one owner, and prove it on a real shift before adding anything. The steps below are the order that avoids renaming later.

  1. List the shift questions for the first line and the signals that answer them.
  2. Write the naming convention: the levels, the allowed characters, the rules from this article and examples for three signals.
  3. Choose the payload convention: a JSON shape you define, or Sparkplug B. Write the fields, units and timestamp format.
  4. Name the owner and put their name on the namespace document.
  5. Choose where the broker runs and set up TLS, one credential per client and topic permissions.
  6. Connect the first line through a gateway that reads each machine in its own protocol and publishes outbound. For machines without OPC UA, see our guide to getting data from older machines.
  7. Publish online status through a Will message or Sparkplug death certificates.
  8. Test each signal against the machine over a full shift and record the result.
  9. Add the second consumer by subscription only. If it needs a new connection to a machine, the namespace is missing something; fix the namespace instead.

Checklist before you call it a namespace

  • Every path follows the same levels in the same order
  • Names are lowercase with hyphens, no spaces, no wildcards, no units
  • Every message has value, timestamp in UTC, unit and quality
  • State topics are retained; events are not
  • Each gateway publishes online and offline status
  • Each client has its own credentials and topic permissions
  • One owner approves new paths, and the document is current
  • A second application can be added without touching a machine

The work behind these steps is what our machine connectivity service covers, including the topic namespace document as a named deliverable. If you want to test the levels for your own plant first, the topic namespace builder produces both plain MQTT and Sparkplug B paths from them.

Working on this at your plant?

If this article describes a problem on one of your lines, tell us about it. We start with one line, its signals and the question you ask after every shift.