IMD SolutionComputing LibraryShop main store

Explainer

Why MQTT Engine tag hierarchy needs unique Group and Edge Node IDs

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

MQTT Engine identifies every Sparkplug publisher by its Group ID and Edge Node ID pair, and Ignition namespace folders never make that identity unique. Two edge nodes sending the same pair collide across sites. Map the Group ID to the company and the Edge Node ID to plant plus area, and add a per-node suffix where an area holds more than one gateway.

On this page
  1. Why do tags from different sites conflict in MQTT Engine?
  2. What symptoms reveal a Sparkplug identity collision?
  3. What makes each Sparkplug edge node unique?
  4. Does an Ignition namespace folder replace the two IDs?
  5. Where are the Group ID and Edge Node ID actually set?
  6. How do you map company, plant and area onto the two IDs?
  7. What if one area needs more than one edge node?
  8. How do you confirm every publisher is unique?
  9. Questions asked

MQTT Engine does not identify a Sparkplug publisher by where its tags sit in the Ignition namespace. It identifies it by one thing only: the combination of Group ID and Edge Node ID carried in the topics the edge node publishes. Two gateways at different sites transmitting the same pair collide, however cleanly the folders are arranged, and the Designer will let you build that hierarchy without a word of complaint. This article gives the identity rule, the symptoms that expose a collision, and a naming map that keeps company, plant and area visible in the tag tree while every publisher stays unique.

Why do tags from different sites conflict in MQTT Engine? #

Because the only hard requirement is that each MQTT client publishes a unique combination of Group ID and Edge Node ID; two edge nodes using the same pair collide, and no Ignition folder arrangement prevents it. MQTT Engine builds its tag layout from the IDs it receives, so two publishers with the same pair write into one shared node: their values interleave, overwritten writes surface as quality changes, and the heartbeat tags you expected under each node do not display. Nothing on the receiving side can separate them, because on the wire they are the same client. When the collision shows up as a single duplicated tag rather than a whole node, the walk-through for resolving a duplicate tag in an MQTT Engine Sparkplug B namespace covers that narrower case.

What symptoms reveal a Sparkplug identity collision? #

The two symptoms to act on are unusual data-quality color changes on the affected tags and heartbeats that never appear in the node layout, both signs of two publishers writing into one node. Treat them as evidence, not proof: a flaky broker link or a bad payload can paint the same colors. What settles the question is comparing the IDs the transmitters actually send, covered in the last section. Do not confuse this with the opposite failure, a node that drops while its tags still read online; that fault has its own cause, described in why MQTT Engine shows online status after an edge node drops.

What makes each Sparkplug edge node unique? #

The identity is the pair itself, two user-configurable strings, and the combination must be unique across every client in the system, while neither field has to be unique on its own. Both fields are UTF-8 alphanumeric strings. Three characters are reserved and cannot be used: the forward slash, the plus sign and the hash symbol, because MQTT reads them as topic separators and wildcards. Letters and digits are always safe, and an underscore separator as in Plant1_Area3 passes. Keep the format fixed once chosen, since MQTT Engine names its displayed folders from these exact strings.

Does an Ignition namespace folder replace the two IDs? #

No. The Ignition namespace only organizes tags by company, business unit, plant, area or equipment; it never establishes Sparkplug client identity, and blank Group and Node ID fields mean the folders are supplying no uniqueness at all. That is why the Designer accepts any hierarchy you draw without complaint. The folder tree is presentation; validation happens only on the wire, where the broker and MQTT Engine see nothing but the topic strings. A gateway with immaculate folders and a duplicated ID pair is still one client identity publishing twice, and the receiving side cannot repair that.

Where are the Group ID and Edge Node ID actually set? #

On the publishing side: each gateway's MQTT Transmission configuration defines the Sparkplug IDs, and the layout MQTT Engine displays is built from what those transmitters send. A collision is therefore always corrected at the transmitter that duplicates the pair, never by rearranging folders on the receiving gateway. The transmitter behavior is described in the MQTT Transmission Transmitters and Tag Trees documentation for the Ignition 8.x MQTT modules; read it before changing any IDs. To see what a node really sends rather than what its configuration claims, subscribe a test client to the broker and read the group and node strings straight from the arriving topics.

How do you map company, plant and area onto the two IDs? #

Put the company in the Group ID and plant plus area in the Edge Node ID, for example Group ID CompanyA with Edge Node ID Plant1_Area3, which keeps the hierarchy readable while allowing one edge node per area. Worked example, two plants with one area each and one gateway per area. Before the fix, both nodes published Group ID CompanyA with Edge Node ID Plant1: 2 publishers produced 1 unique pair, so 2 - 1 = 1 collision. After the fix, node 1 sends CompanyA with Plant1_Area3 and node 2 sends CompanyA with Plant2_Area1: 2 publishers, 2 unique pairs, 2 - 2 = 0 collisions. MQTT Engine then shows both nodes side by side under one CompanyA group, which is exactly the company-then-plant-then-area tree the multi-site design asked for.

The full rules for the device level below the edge node are in naming Sparkplug B group, edge node and device IDs. If the same enterprise hierarchy must also serve OPC UA, mirror the company-to-area ordering in OPC UA namespace design for multi-site enterprise SCADA so both protocols read the same way.

What if one area needs more than one edge node? #

Append a stable per-node differentiator to the Edge Node ID, for example a node number, as in Plant1_Area3_N1 and Plant1_Area3_N2, because the company-and-area pattern alone allows exactly one edge node per plant-and-area combination. Worked example: area 3 of plant 1 holds a line gateway and a utilities gateway. Both originally sent CompanyA with Plant1_Area3: 2 publishers, 1 unique pair, one collision. With the suffixes, 2 publishers, 2 unique pairs, zero collisions. Draw the differentiator from something that does not change, such as the panel or cell the gateway serves, and never from an address DHCP can reassign.

How do you confirm every publisher is unique? #

Inventory the Group ID and Edge Node ID every MQTT Transmission client actually transmits, count the unique pairs, and that count must equal the number of publishers before you change anything else in the namespace.

  1. List every publishing gateway in the fleet, including test benches and spares still pointed at the plant broker.
  2. Record each node's two IDs, from the transmitter configuration or from the topics arriving at the broker.
  3. Sort the list by pair; every repeated pair is a collision. Correct it at the duplicating transmitter.
  4. Redeploy, then confirm MQTT Engine shows one node per publisher, a heartbeat for each, and steady tag quality.

Arithmetic check for a fleet of 12 publishers: 12 unique pairs passes; 11 unique pairs means exactly one pair is in use twice and one transmitter still needs renaming. Prove a renamed scheme on a bench before touching plant gateways; building a unified namespace lab with Ignition and MQTT Sparkplug B is that setup, and it is where suffix choices get tested against a real tag tree.

Questions asked

Can two edge nodes share the same Group ID?

Yes, and it is the normal pattern: MQTT Engine groups the nodes under the shared Group ID, which is what puts both plants under one company folder. The rule applies to the combination, so every edge node under that shared Group ID must carry a different Edge Node ID.

Does the same Edge Node ID under two different Group IDs collide?

No. The pair is the identity, so Plant1 under CompanyA and Plant1 under CompanyB are two separate clients that never meet. That is what lets a multi-site enterprise keep repeated plant names: the company in the Group ID keeps every combination distinct.

Where does the device ID fit under the edge node?

One level down. Each device ID must be unique within its own edge node, because the device rides on the node's identity. Two devices sharing an ID under one node overwrite each other's metrics, which appears as duplicate tags under a single node rather than the cross-site quality changes an identity collision causes.

The ID fields look blank on the receiving gateway, so where does identity come from?

From the transmitter. The receiving gateway does not generate identity for Sparkplug publishers, so blank fields there change nothing and the folder tree contributes nothing. Subscribe a test client to the broker's Sparkplug topics, record the group and node strings each publisher sends, and correct any repeated pair at the edge gateway that duplicates it.

Keep reading

  • How-to

    Name Sparkplug B group, edge node and device IDs

    Use one Group ID per site (ACME Brewery), one Edge Node ID per aggregation point (Ignition 1), and one Device ID per controller (Wago PLC). Keep forward slash, plus and hash out of the IDs. Write setpoints to the same MQTT Engine tag the PLC publishes: Engine converts the write into a Sparkplug command, Transmission performs it through the local driver, and a DATA message updates the tag.

    Edge computing and IIoT

  • Troubleshooting

    Why a Sparkplug edge node stays stuck in a rebirth loop

    A rebirth loop that never converges means the publisher answers every rebirth correctly and something else then contradicts that birth. With one 0-255 sequence counter per edge node ID, either a second client publishing into the same Group/Edge Node or a bare-name DDATA the birth never defined makes the subscriber reject every cycle. Isolate it with a broker client list and a wildcard capture before touching the publisher.

    Edge computing and IIoT

  • Troubleshooting

    Why MQTT Engine shows online status after an edge node drops

    An Info/Online tag that stays true with Good quality is not proof the edge node is alive: Engine's online state comes from the node's Sparkplug death certificate, and earlier Engine versions marked tags stale only on Engine shutdown. Read Info/Online, tag quality and Store & Forward stored metrics as three separate indicators, retest on Engine 4.0.8 with Ignition 8.0.16 or later, and compare against a node that reports correctly before escalating.

    Edge computing and IIoT

Equipment hierarchy in Historian: groups versus namespace