OPC UA Pub/Sub is a communication model within the OPC Unified Architecture framework that decouples data producers from consumers using a publish-subscribe pattern, eliminating the point-to-point connection overhead of the traditional client-server model. It enables a single publisher to multicast messages to an arbitrary number of subscribers without prior session establishment, drastically improving scalability for Industrial IoT and sensor-to-cloud architectures.
Glossary
OPC UA Pub/Sub

What is OPC UA Pub/Sub?
OPC UA Pub/Sub is an extension of the OPC Unified Architecture that enables scalable, connectionless data distribution using a publish-subscribe pattern, often combined with TSN for deterministic field-level communication.
The specification supports two transport protocols: UDP/IP for non-deterministic, wide-area distribution and Time-Sensitive Networking (TSN) for hard real-time, deterministic field-level communication. By mapping OPC UA data directly to Ethernet frames, Pub/Sub bypasses the TCP/IP stack latency, achieving microsecond-level synchronization required for motion control and high-speed manufacturing lines.
Key Features of OPC UA Pub/Sub
OPC UA Pub/Sub decouples data producers from consumers, enabling scalable, connectionless communication for industrial IoT. These are the core mechanisms that differentiate it from client-server OPC UA.
Brokerless UDP Multicast
Enables direct, one-to-many communication on the local network without a central message broker. Publishers send UADP (UA Datagram Protocol) messages to a multicast group, and subscribers listen in.
- Zero broker infrastructure: Eliminates a central point of failure and reduces latency.
- Ethernet level efficiency: Uses standard Layer 2/Layer 3 multicast, ideal for high-speed machine-to-machine communication.
- Best-effort delivery: No handshake overhead, suitable for cyclic telemetry where occasional packet loss is acceptable.
Example: A single drive controller publishing actual torque values every 1ms to 20 subscriber nodes on a machine cell network.
Brokered MQTT Integration
Maps OPC UA data directly onto MQTT messages for cloud ingestion and wide-area distribution. Uses a central broker to manage subscriptions and ensure delivery.
- JSON encoding: Standard JSON payloads for direct consumption by cloud services like AWS IoT Core or Azure IoT Hub.
- UADP binary over MQTT: Compact binary encoding for bandwidth-constrained WAN links.
- Topic structure: Configurable MQTT topic namespaces derived from the OPC UA information model.
Example: A remote oil well controller publishing wellhead pressure data via MQTT to a central SCADA system over a satellite link.
Time-Sensitive Networking (TSN) Convergence
Combines OPC UA Pub/Sub with IEEE 802.1 TSN to guarantee deterministic delivery over standard Ethernet. This is the foundation for real-time field-level control.
- 802.1Qbv Scheduled Traffic: Time slots are reserved for Pub/Sub frames, preventing collision with best-effort traffic.
- 802.1AS Precision Time Protocol: All publisher and subscriber clocks are synchronized to sub-microsecond accuracy.
- Bumpless redundancy: TSN frame replication and elimination (802.1CB) provides seamless failover.
Example: A motion controller publishing setpoint commands to 50 servo drives with guaranteed 31.25µs cycle time on a converged network carrying video and TCP traffic.
DataSet & DataSetField Abstraction
Defines a structured payload model that decouples the published data from the underlying transport protocol. A DataSet is a collection of DataSetFields representing individual variable values.
- DataSetMetaData: Describes the structure, names, and data types of the payload, enabling late-binding subscribers.
- Field-level encoding: Each field can use different data types (Int32, Float, String) within a single message.
- Versioned schema: DataSet versioning allows subscribers to detect and adapt to structural changes.
Example: A PublisherDataSet containing 'Temperature' (Float), 'Pressure' (Float), and 'ValveState' (Boolean) fields, with metadata published separately for dynamic discovery.
Security Model & Key Management
Implements message-level security independent of the transport, ensuring confidentiality and integrity across untrusted network segments.
- JSON Web Token (JWT): Authenticates publishers and subscribers to MQTT brokers.
- Sign & Encrypt: UADP messages can be signed for integrity and encrypted for confidentiality using asymmetric cryptography.
- SecurityGroup concept: A logical grouping of publishers and subscribers sharing a common security policy and key set.
- Push-based key rotation: Centralized Security Key Service (SKS) pushes new keys to all group members before the old key expires.
Example: A wind farm operator encrypting all turbine telemetry published over a shared carrier network, with keys rotated every 24 hours via SKS.
Connectionless Subscriber Model
Subscribers consume data passively without establishing a session with the publisher. This fundamentally changes the scalability equation compared to client-server OPC UA.
- No session overhead: Publishers do not maintain state for each subscriber, enabling thousands of consumers.
- Late joining: Subscribers can join an active data stream at any time without publisher reconfiguration.
- Network decoupling: Publishers and subscribers do not need to know each other's IP addresses in brokered or multicast modes.
Example: Adding a new analytics dashboard that subscribes to an existing machine telemetry stream without any changes to the PLC publishing the data.
OPC UA Pub/Sub vs. Classic OPC UA Client-Server
A technical comparison of the two OPC UA communication patterns, highlighting the architectural shift from connection-oriented request-response to connectionless publish-subscribe for industrial data distribution.
| Feature | OPC UA Pub/Sub | OPC UA Client-Server |
|---|---|---|
Communication Pattern | Publish-Subscribe (one-to-many) | Request-Response (one-to-one) |
Connection Model | Connectionless (multicast/broker) | Connection-oriented (TCP sessions) |
Transport Protocols | UDP, MQTT, AMQP, TSN Ethernet | TCP/IP, HTTPS |
Session Establishment Overhead | Minimal (no session required) | High (secure channel + session creation) |
Network Scalability | Linear (subscriber count independent) | Degrades with concurrent client count |
Deterministic Delivery | ||
Time-Sensitive Networking (TSN) Integration | ||
Data Encoding | UADP (binary), JSON | UA Binary, JSON |
Security Model | Message-level signing/encryption | Session-level with X.509 certificates |
Typical Use Case | Field-level, controller-to-controller, high-speed telemetry | SCADA, HMI, MES integration, supervisory control |
Discovery Mechanism | Multicast DNS-SD, broker metadata | Local Discovery Server (LDS), GDS |
Stateful Session Requirement | ||
Bandwidth Efficiency (1:N) | High (single transmission per dataset) | Low (N individual responses) |
Suitable for Wireless/Constrained Networks | ||
Standardized in OPC UA Specification | Part 14 | Part 4 (Services), Part 6 (Mappings) |
Frequently Asked Questions
Clear, technically precise answers to the most common questions about the publish-subscribe extension of OPC Unified Architecture, designed for engineers and system architects deploying scalable industrial communication.
OPC UA Pub/Sub is an extension of the OPC Unified Architecture that enables scalable, connectionless data distribution using a publish-subscribe pattern instead of the classic client-server model. Publishers send messages to a message-oriented middleware without establishing direct connections to subscribers, decoupling communication participants. The mechanism works by defining DataSetMessages—structured payloads containing key-value pairs of process variables—which are encoded in formats like UA Binary or JSON and transported over protocols such as UDP multicast, AMQP, or MQTT. Subscribers filter incoming messages based on DataSetClass IDs and WriterGroup IDs, consuming only relevant data. This architecture eliminates the point-to-point connection overhead of traditional OPC UA, enabling one-to-many and many-to-many communication patterns essential for large-scale industrial IoT deployments.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
OPC UA Pub/Sub does not operate in isolation. Its deterministic, connectionless architecture relies on and enables a suite of complementary technologies for virtualized industrial control.
Data Distribution Service (DDS)
A decentralized, data-centric middleware protocol that shares the publish-subscribe paradigm with OPC UA Pub/Sub. While DDS provides a real-time data bus with rich Quality of Service policies, OPC UA Pub/Sub adds standardized information modeling.
- DDS excels in autonomous systems and defense applications.
- OPC UA bridges the gap between DDS's raw data and semantic context.
- Both can coexist in a Unified Namespace architecture.
MQTT Sparkplug
A competing but complementary publish-subscribe specification for IIoT. Sparkplug defines a standard topic namespace and payload on top of MQTT, adding state management and birth/death certificates.
- Key Difference: MQTT Sparkplug is broker-centric; OPC UA Pub/Sub can be broker-less (UDP) or broker-based (AMQP/MQTT).
- Sparkplug is often used for cloud ingestion, while OPC UA Pub/Sub targets the deterministic edge.
Unified Namespace (UNS)
A semantic data architecture that acts as the single source of truth for all industrial data. OPC UA Pub/Sub serves as the primary data injection mechanism into the UNS.
- Publishers push contextualized data directly into the namespace.
- Subscribers discover and consume data without point-to-point binding.
- The UNS eliminates the traditional automation pyramid's rigid hierarchy.
IEC 61499 Function Blocks
An event-driven, distributed control standard that naturally pairs with OPC UA Pub/Sub. IEC 61499 defines portable function blocks that communicate via events and data.
- Pub/Sub provides the ideal transport layer for function block event propagation.
- Together, they enable truly decentralized, hardware-agnostic control logic.
- This combination is the foundation of software-defined manufacturing.
Precision Time Protocol (PTP)
Defined by IEEE 1588, PTP is the synchronization backbone that makes deterministic Pub/Sub possible. It distributes a master clock to all nodes on the network with nanosecond precision.
- Essential for coordinating distributed motion axes.
- Enables isochronous data sampling across multiple publishers.
- PTP is a prerequisite for TSN's time-aware scheduling.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us