Svashasan Logo
Simulated data

Robotics and Middleware · Middleware configuration

Quality of ServiceQoS

Also known as QoS policy, QoS profile, DDS QoS, reliability policy, durability policy

IntermediateSource-checked · awaiting technical reviewLast reviewed 6 December 2026

A set of configurable policies that define how middleware delivers data between publishers and subscribers (reliability, history depth, durability, deadline, lifespan and liveliness), trading delivery guarantees against latency and resource use.

Explanation

In DDS and ROS 2, QoS policies are attached to each publisher, subscription and service endpoint. The ROS 2 base profile covers history (keep the last N samples, or keep all), depth, reliability (best effort or reliable), durability (volatile, or transient local, which stores samples for subscribers that join late), deadline, lifespan, liveliness and lease duration. With suitable settings, communication can range from TCP-like reliability to UDP-like best effort.

Predefined profiles cover common cases. The default for publishers and subscriptions is keep last 10, reliable and volatile. The sensor-data profile uses best effort and a smaller queue, so the newest samples arrive promptly even if some are lost. Services are reliable and volatile, so a restarted server does not process stale requests.

Compatibility follows a request-versus-offered model: a connection is made only if what the publisher offers satisfies what the subscription requests, so a reliable subscription will not match a best-effort publisher. Mismatches prevent delivery, so QoS belongs in interface design. In networking generally, QoS also refers to traffic prioritisation and shaping, as in Ethernet priorities and TSN.

How it works

When endpoints match, the middleware compares their policies. If they are compatible, it configures transport behaviour accordingly: reliable connections use acknowledgements and retransmission, history and depth set buffer sizes, deadline and liveliness define the expectations that the application is notified about when violated, and lifespan causes expired samples to be dropped.

Automotive applications

  • Best-effort delivery for high-rate sensor streams
  • Transient-local topics for static maps and configuration
  • Deadline monitoring for safety-relevant data
  • Tuning history depth to bound memory use

Example

A static-map publisher uses reliable, transient-local QoS, so a planning node started later still receives the map. The camera driver uses the sensor-data profile; if the network drops packets, subscribers simply receive the next frame instead of waiting for retransmissions.

An illustrative example: any figures in it are worked numbers, not measurements.

References

  1. Quality of Service settings (ROS 2 documentation source) (opens in a new tab)

    Open Robotics / ROS 2 documentation project · Project documentation · QoS policies; QoS profiles; QoS compatibilities; source of the docs.ros.org rolling page; docs.ros.org blocked automated access · retrieved 6 December 2026

    “With the right set of Quality of Service policies, ROS 2 can be as reliable as TCP or as best-effort as UDP”
  2. About the Data Distribution Service Specification Version 1.4 (opens in a new tab)

    Object Management Group (OMG) · Standard · retrieved 6 December 2026

Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.