IMD SolutionComputing LibraryShop main store

Explainer

When to use the Sparkplug rebirth tag on an edge node

Edge computing and IIoT Published 8 min read

Short answer

The Node Control/Rebirth tag is a manual recovery command with three legitimate uses: metrics added at the edge that the host has not discovered, a host restart with no primary host ID in play, and metric properties that changed at the edge. Configure the primary host ID on every edge node and resynchronization after host restarts happens by itself, so a rebirth you fire by hand marks a configuration gap.

On this page
  1. What does the rebirth tag under Node Control actually do?
  2. When should you write to the Sparkplug rebirth tag?
  3. Should you use the rebirth tag or the edge-side Refresh tag?
  4. How does a primary host ID make rebirths automatic?
  5. How much traffic does one rebirth cost?
  6. What should the rebirth tag never be used for?
  7. How do you know the rebirth worked?
  8. Questions asked

The Node Control/Rebirth tag is a troubleshooting command, not a routine control, and it earns a write in exactly three situations: metrics were added at the edge and the host has not discovered them, the host restarted with no primary host ID in play, or metric properties changed at the edge and the host still shows the old ones. A Sparkplug host builds its tag tree from birth payloads and treats every later data message as a delta, so whatever the birth did not carry never reaches the host. Configure the primary host ID on every edge node and the routine cases resolve themselves; a rebirth fired by hand then marks a configuration gap rather than a normal operating step.

What does the rebirth tag under Node Control actually do? #

Writing true to Node Control/Rebirth is a command from the host to one edge node: republish your node birth payload now, then the device births for everything attached to you, so the host can rebuild its tag tree from scratch.

Sparkplug B is an open specification layered on MQTT that fixes the topic namespace, the payload encoding and the online-state model, with birth and death messages doing the state work. A conforming host does not poll. On connect, the edge node publishes a node birth (NBIRTH) enumerating every metric it intends to report — name, datatype, properties and initial value — and afterwards it publishes data messages only when a value changes. Both the node birth and the node death carry a bdSeq metric that goes up by one each time the node connects, which is how the host matches a death certificate to the right session.

That model creates a hard dependency. If the host missed the birth, or the birth no longer describes what the edge is publishing, the host's tag tree is wrong and nothing in the normal data flow will correct it. The rebirth command is the escape hatch: it appears under the Node Control folder of each edge node in the host's Sparkplug tag tree, and writing true to Node Control/Rebirth tells that one node to republish its node birth followed by the device births for its attached devices.

The command routes by metric alias like any node command. The rebirth metric should arrive in the birth payload with alias 1, and one that shows up with alias 0 — the identifier used for Node Control/Next Server — will not route correctly; why the Rebirth metric arrives without its Sparkplug alias traces that fault.

When should you write to the Sparkplug rebirth tag? #

For three conditions only: metrics were added at the edge and the host tree does not show them, the host restarted without a primary host ID, or metric properties such as units and limits changed at the edge and the host still shows the old ones.

  1. New metrics were added at the edge. The host learns metrics only from birth payloads, so metrics added to the edge node's configuration cannot appear in the host tree until a new birth arrives. A rebirth forces that discovery immediately. The cleaner first move is the transmission-side Refresh tag at the edge, because the edge is the authoritative source of the tag set; use the host-side rebirth when you cannot reach the edge configuration.
  2. The host restarted with no primary host ID in play. Without one, the edge node has no way to know the host went down and came back, so it keeps publishing deltas into a host that never received a birth: metrics are missing entirely or frozen at whatever the host last knew. A rebirth recovers the session once, by hand.
  3. Metric properties changed at the edge. Engineering units, ranges and descriptions travel in the birth payload, not in routine data messages. Change one at the edge and the live value keeps updating while the host shows the old property indefinitely. A rebirth refreshes the host-side property set to match.

Classify the fault before you fire anything. Values updating while metadata is wrong is the properties case. Metrics entirely absent is a missed birth. Everything frozen points at the broker session or the connection, not at the payload. The table is the decision path:

Symptom First move Fallback
New edge metrics absent from the host tree Edge-side Refresh on the transmission Host-side rebirth
Whole node stale after a host restart Configure the primary host ID Rebirth once to recover
Values live, units and ranges wrong Rebirth — properties ship only in births Edge-side Refresh
Node offline everywhere Check the broker session and death handling Rebirth after connectivity is confirmed
One metric of many wrong Fix the edge tag binding Rebirth after the binding is corrected

Should you use the rebirth tag or the edge-side Refresh tag? #

Use the edge-side Refresh tag when you can reach the edge configuration, because the edge node is the authoritative source of the metric set; use the host-side rebirth when you cannot touch the edge or the change is host-side state you need rebuilt.

The rule of thumb: Refresh is the edge asserting "here is my current tag set." Rebirth is the host asking "tell me your tag set again." Refreshing the transmission makes the edge re-evaluate its tag set and republish from the source, which is why it is the first choice whenever the edge is reachable. The host-side rebirth is the fallback for when the edge is out of reach, or when the lost state sits on the host side, as it does after a host restart.

How does a primary host ID make rebirths automatic? #

Configure the primary host ID on every edge node and the node watches the host's STATE topic; when the host application republishes ONLINE after a restart, each watching node republishes its birth certificates on its own, with no operator action.

The host application publishes its state on a retained topic of the form STATE/host_app_id, and an edge node configured with that primary host ID watches it. When the host comes back online, the watching node republishes its birth certificates unprompted and the tree rebuilds itself. That is the whole argument for the setting: put the primary host ID on every edge node at commissioning and you convert a manual recovery step into an automatic one, closing the failure class. Treat every rebirth an operator had to fire by hand as a configuration defect to close out — in practice it is almost always a missing primary host ID.

How much traffic does one rebirth cost? #

One rebirth resends the full metric set of the node and its attached devices — in the example below, 1,450 metrics and about 170 kB of payload, the equivalent of roughly 1,740 single-metric data messages.

Worked example with illustrative inputs; substitute your own counts, because the arithmetic is the decision. Take a node publishing 250 metrics of its own plus three attached devices at 400 metrics each: 250 + 3 × 400 = 1,450 metrics. At 120 bytes per metric in a birth payload, one full rebirth carries 1,450 × 120 B = 174,000 B, which is 174,000 / 1,024 = 169.9 kB, about 170 kB. A routine data message carrying one changed metric is on the order of 100 B, so that single rebirth equals 174,000 / 100 = 1,740 such messages. Schedule it every 60 s and you have added 174,000 B / 60 s = 2,900 B/s, or 2,900 × 8 = 23,200 bit/s ≈ 23.2 kbit/s of steady traffic that carries no new information — before counting the broker fan-out to every subscriber.

What should the rebirth tag never be used for? #

Never as a keepalive, a scheduled refresh or a connection test: online state is carried by the birth and death certificates and the broker's last-will mechanism, and a timed rebirth defeats the report-by-exception model Sparkplug exists to provide.

A rebirth command sent to a disconnected edge node goes nowhere, so confirm the node is online in the host and the broker session is up before assuming a birth-payload problem. Expect a brief metadata churn: downstream consumers subscribed to the host's tag tree see tags re-register while the rebirth lands, so check anything that treats tag re-creation as an event before you fire one in production. Also watch for rebirths you did not ask for: in node-red-contrib-mqtt-sparkplug-plus, including a valid msg.definition in every message triggers a rebirth each time the node processes one, so definitions belong in setup, not in routine publishes.

How do you know the rebirth worked? #

Verify three things after the command: the node's birth payload arrives again on the birth topic, the metric set and properties under the node now match the edge configuration, and values resume updating on change rather than sitting frozen.

Watch the node's birth topic for the republished NBIRTH, then compare the host tree against the edge configuration: metric count, property values, and values updating on change. If the tree is still wrong after a birth demonstrably arrived, the fault is in the edge tag configuration, not in host synchronization — no amount of rebirthing fixes a bad source. And a rebirth that silently does nothing right after the data path moved to a different broker is its own failure mode: read rebirth failing after a broker switch before blaming the edge node.

Questions asked

Does an edge node publish a fresh birth when it reconnects to the broker?

Yes. A new MQTT session is exactly that: the node publishes a new node birth on connect, so a reconnect resynchronizes the host by itself. The manual rebirth command exists for the opposite case, where the node stayed connected while the host lost its copy of the birth.

Can I write false to the rebirth tag to cancel a rebirth?

No. The tag is a trigger, not a state. Writing true fires the republish; writing false does nothing useful, and reading the tag back tells you nothing about the node. Build no logic that treats its value as node status.

Does rebirthing one edge node refresh the whole group?

No. The command is scoped to a single edge node and the devices attached to it. Other nodes in the same group keep their sessions untouched, so each stale node needs its own rebirth or its own reconnect.

Will a rebirth fix a metric that is reading the wrong PLC address?

No. A rebirth republishes the edge node's current configuration, wrong binding included, faithfully and immediately. If one metric of many is wrong while the rest update correctly, the fault is in the edge tag binding; correct it there, then rebirth if you want the host tree refreshed.

Keep reading

  • 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

  • Troubleshooting

    Why Ignition Edge MQTT payloads look like unreadable bytes

    The unreadable characters are Sparkplug B's Protocol Buffers encoding rendered as text, which means the broker delivered the message intact. Fix the subscriber: select the Sparkplug decoder in MQTT.fx or use a Sparkplug-capable release such as MQTT Explorer v0.4.0-beta4. Leave the Edge Transmission format and the broker unchanged.

    Edge computing and IIoT

  • Comparison

    Getting Wonderware Historian data into Ignition Edge for MQTT

    Yes — Ignition Edge can publish this data as MQTT Sparkplug, but through two separate routes. Live values come from the existing DAServer acquisition layer behind a DA-to-UA gateway, because Edge's OPC client is UA-only. History and aggregates come from SQL queries against the Historian Runtime database, using its documented stored procedures.

    Edge computing and IIoT