Inferensys

Glossary

OPC UA Pub/Sub

An extension of the OPC Unified Architecture that enables secure, brokerless, one-to-many data distribution from industrial sensors to multiple consuming applications using multicast UDP or MQTT.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
DECOUPLED INDUSTRIAL DATA DISTRIBUTION

What is OPC UA Pub/Sub?

OPC UA Pub/Sub is an extension of the OPC Unified Architecture that replaces the client-server model with a publish-subscribe pattern, enabling secure, brokerless, one-to-many data distribution from industrial sensors to multiple consuming applications using multicast UDP or MQTT.

OPC UA Pub/Sub decouples data producers from consumers by allowing a single publisher to broadcast encrypted, time-sensitive telemetry to an unlimited number of subscribers without a central broker. This contrasts with the traditional client-server model, where each connection requires a dedicated session, creating a bottleneck for high-frequency sensor data distribution across edge nodes and cloud gateways.

The specification defines two transport protocols: UDP multicast for deterministic, low-latency local-area distribution on the factory floor, and MQTT with broker support for wide-area cloud integration. Each message is cryptographically signed, ensuring data integrity and authenticity, while the built-in DataSetMetaData structure allows subscribers to interpret payloads without prior configuration, enabling true plug-and-produce interoperability.

ARCHITECTURAL CAPABILITIES

Key Features of OPC UA Pub/Sub

OPC UA Pub/Sub decouples industrial data producers from consumers, enabling scalable, one-to-many communication without the overhead of a centralized broker for time-critical applications.

01

Brokerless Multicast UDP

Enables direct, one-to-many data distribution at the network edge without a message broker intermediary. This eliminates the single point of failure and latency introduced by broker-based architectures.

  • Transport Mapping: Uses UDP/IP multicast to send a single datagram to multiple subscribing nodes simultaneously.
  • Deterministic Latency: Ideal for closed-loop control where sub-millisecond jitter is non-negotiable.
  • Network Efficiency: Dramatically reduces bandwidth consumption compared to multiple client-server connections.
  • Discovery: Receivers use standard network discovery mechanisms to locate multicast streams without prior configuration.
< 1 ms
Typical Jitter
Layer 2
OSI Model
02

MQTT Broker Integration

Provides a secure, stateful transport option for wide-area network communication and cloud ingestion. This mapping bridges the gap between the factory floor and enterprise IT systems.

  • Full MQTT 5.0 Support: Leverages features like session expiry, shared subscriptions, and user properties for robust telemetry.
  • JSON and UADP Encoding: Supports both verbose, human-readable JSON and the highly efficient, binary UADP format over MQTT topics.
  • Stateful Awareness: Unlike pure UDP, MQTT's quality of service levels guarantee delivery for critical alarm and event data.
  • Firewall Friendly: Uses standard outbound TCP connections, simplifying secure IT/OT convergence without complex firewall rules.
QoS 0,1,2
Delivery Guarantees
03

UADP Message Encoding

A highly optimized, binary message encoding designed for minimal wire footprint and maximum processing speed. UADP is the key to achieving true real-time performance on resource-constrained edge hardware.

  • Zero-Copy Processing: Network messages can be parsed directly from the wire buffer without memory duplication.
  • Field-Level Security: Individual data fields within a single message can be encrypted and signed independently.
  • Compact Payload: Reduces message size by up to 80% compared to JSON, conserving bandwidth on high-speed machine networks.
  • Schema On-The-Wire: The message structure is self-describing, allowing decoders to parse data without external schema lookups.
~80%
Bandwidth Savings vs JSON
04

Time-Sensitive Networking (TSN) Alignment

OPC UA Pub/Sub is the application-layer protocol designed to exploit IEEE 802.1 TSN standards. This convergence guarantees bounded low latency over standard Ethernet for safety-critical motion control.

  • IEEE 802.1Qbv: Uses scheduled traffic shapers to ensure Pub/Sub frames are transmitted in deterministic time windows.
  • Frame Preemption: Allows a high-priority Pub/Sub control frame to interrupt a lower-priority bulk data frame mid-transmission.
  • Stream Reservation: Network bandwidth is reserved end-to-end for specific Pub/Sub data streams, preventing packet loss under congestion.
  • Converged Network: Enables a single physical Ethernet cable to carry both real-time control traffic and best-effort IT data.
IEEE 802.1
Standard Family
05

Publisher-Subscriber Security

Implements a decentralized security model that scales to massive sensor networks without a central key broker. Security is embedded directly into the message, not just the transport session.

  • Group Key Distribution: A security key server distributes symmetric keys to authorized publishers and subscribers out-of-band.
  • Message-Level Signing: Each UADP message carries a cryptographic signature, allowing subscribers to verify data integrity and origin.
  • Field-Level Encryption: Sensitive data fields within a message can be selectively encrypted, allowing non-sensitive metadata to remain visible for routing.
  • Rotation Policies: Keys are automatically rotated based on time or message count, limiting the exposure window of any single compromised key.
AES-256
Encryption Standard
06

DataSetMetaData Discovery

Allows subscribers to dynamically discover the structure, encoding, and semantics of published data without prior configuration. This enables plug-and-produce interoperability in flexible manufacturing lines.

  • Self-Describing Payloads: Publishers periodically broadcast metadata describing the exact field names, data types, and engineering units of their DataSets.
  • Dynamic Binding: A subscriber can automatically configure its internal data model to match a newly discovered publisher without manual engineering.
  • Version Management: Metadata includes version identifiers, allowing subscribers to gracefully handle schema evolution and backward compatibility.
  • Semantic Context: Metadata can reference external information models, linking raw sensor values to their meaning in a manufacturing ontology.
Plug & Produce
Interoperability Level
COMMUNICATION ARCHITECTURE COMPARISON

OPC UA Pub/Sub vs. OPC UA Client-Server

A technical comparison of the two communication paradigms defined by the OPC UA standard, contrasting the traditional point-to-point model with the newer one-to-many publish-subscribe extension for industrial data distribution.

FeatureOPC UA Client-ServerOPC UA Pub/Sub

Communication Model

Point-to-point, request-reply

One-to-many, decoupled publish-subscribe

Connection Topology

Direct session between client and server

Publisher sends to network; subscribers listen anonymously

Transport Protocols

TCP/IP with binary encoding, HTTPS with XML/JSON

Multicast UDP, MQTT, AMQP, or brokerless UDP

Session State

Built-in Security

Session encryption, user authentication, certificate exchange

Payload-level encryption and signing via JSON Web Tokens or PKI

Deterministic Delivery

Scalability for 10,000+ Subscribers

Bandwidth Efficiency for Identical Data to Many Consumers

Linear bandwidth growth per consumer

Constant bandwidth regardless of subscriber count

Network Infrastructure Requirement

Routable TCP/IP between each client-server pair

Multicast-enabled network or MQTT broker

Typical Use Case

Supervisory control, configuration, historical data access

Real-time sensor telemetry broadcast to multiple analytics and monitoring systems

Standard Part

OPC UA Part 4 (Services) and Part 6 (Mappings)

OPC UA Part 14 (Pub/Sub)

Time-Sensitive Networking (TSN) Compatibility

OPC UA PUB/SUB

Frequently Asked Questions

Clear answers to the most common technical questions about the OPC UA Pub/Sub extension for industrial data distribution.

OPC UA Pub/Sub is an extension of the OPC Unified Architecture that enables brokerless, one-to-many data distribution from industrial sensors to multiple consuming applications. Unlike the client-server model, Pub/Sub decouples publishers from subscribers. A publisher sends a dataset to a configured multicast address or MQTT broker without knowing who is listening. Subscribers express interest by joining the multicast group or subscribing to an MQTT topic. This architecture eliminates the single-point-of-failure and throughput bottleneck of a central server, making it ideal for high-speed, deterministic factory-floor communication where a single sensor value must reach dozens of controllers, HMIs, and cloud gateways simultaneously.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.