Vehicle Communication and Networking · Middleware standard
Data Distribution ServiceDDS
Also known as OMG DDS, DDSI-RTPS, DDS-RTPS, data-centric publish-subscribe, DCPS
An Object Management Group (OMG) standard for data-centric publish-subscribe middleware, in which applications exchange typed data on named topics and quality-of-service policies control reliability, durability, timing and resource use.
Explanation
DDS defines a Data-Centric Publish-Subscribe (DCPS) model. DomainParticipants create Publishers with DataWriters and Subscribers with DataReaders on Topics, whose data types are usually described in IDL. Participants discover each other automatically, and DataWriters and DataReaders are matched when their topic, type and QoS policies are compatible. The current DDS specification is version 1.4 (formal, March 2015).
Interoperability between vendors comes from the DDS Interoperability Wire Protocol, DDSI-RTPS (Real-Time Publish-Subscribe), version 2.5 (formal, April 2022), typically carried over UDP/IP. Implementations include RTI Connext DDS, eProsima Fast DDS and Eclipse Cyclone DDS. ROS 2 was built primarily on DDS/RTPS, and its default middleware is Fast DDS.
DDS is powerful but configuration-heavy. Incompatible QoS settings prevent endpoints from matching, and where multicast is unavailable, alternative discovery modes such as discovery servers are needed. Security is provided by optional plug-ins for participant authentication, access control and data encryption.
How it works
Discovery runs in two phases. In participant discovery, each DomainParticipant periodically announces itself, by default on well-known multicast addresses derived from the domain ID. In endpoint discovery, participants exchange information about their DataWriters and DataReaders and match compatible pairs. Samples then flow directly from writers to readers using reliable or best-effort RTPS messaging, with history caches sized according to QoS.
Automotive applications
- ROS 2-based automated-driving prototypes
- Distributing sensor data between perception, fusion and planning processes
- Distributed control in aerospace, defence and industrial systems
- Multi-vendor systems requiring wire-level interoperability
Example
A LiDAR driver publishes point clouds on the topic lidar_front with best-effort reliability and keep-last-1 history, and the object-detection process subscribes with matching QoS. A logging tool that requests reliable delivery would not match this best-effort writer, which is a common configuration error.
An illustrative example: any figures in it are worked numbers, not measurements.
Standard details
- Standard
- OMG Data Distribution Service (DDS)
- Edition
- Version 1.4 (formal/15-04-10), March 2015
- Publication status
- Formal (published) specification
- Scope
- Defines the data-centric publish-subscribe API and behaviour, including QoS policies, for distributed real-time applications.
- How this was checked
- Wire-level interoperability is specified separately in DDSI-RTPS 2.5 (formal, April 2022).
References
- About the Data Distribution Service Specification Version 1.4 (opens in a new tab)
- About the DDS Interoperability Wire Protocol Specification Version 2.5 (opens in a new tab)
- Fast DDS documentation: 5. Discovery (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.