Skip to content

Why the ROS 1 Master Disappeared: ROS 2 Jazzy DDS Architecture and the RMW Layer

Explore why ROS 2 Jazzy replaced the ROS 1 roscore master with DDS discovery, covering SPDP/SEDP protocols, domain port formulas, RMW, and QoS rules.

Contents

Key takeaways

  1. ROS 2 is not an operating system kernel; it is a distributed middleware and tooling ecosystem that replaced ROS 1’s single-point-of-failure roscore with OMG Data Distribution Service (DDS) peer-to-peer discovery.
  2. DDS participants find one another without a central broker through a two-phase protocol: SPDP (multicast participant heartbeat announcements) followed by SEDP (unicast endpoint type and QoS matching).
  3. Network isolation relies on ROS_DOMAIN_ID, which maps to UDP ports via 7400 + 250 × domainId; keeping domain IDs between 0 and 101 avoids collisions with the Linux kernel’s ephemeral port range.
  4. The ROS Middleware Interface (RMW) decouples rclcpp and rclpy application code from specific DDS vendors, allowing seamless switching between eProsima Fast DDS, Eclipse Cyclone DDS, and Zenoh.

Engineers building their first autonomous robot typically ask two foundational questions. First: “Why use ROS at all instead of writing a single Python script that reads sensors and drives motors?” Second: “Why did the robotics industry abandon ROS 1 and migrate to ROS 2?”

The answer to the first question follows directly from hardware concurrency. As detailed in our guide to 2WD mobile robot hardware layers and five core components, even a compact rover runs a 10 Hz LiDAR driver, a 30 Hz camera pipeline, a 100 Hz IMU filter, a 200 Hz microcontroller serial bridge, SLAM, and path planning simultaneously. Writing custom TCP/UDP sockets, serialization formats, and thread synchronization from scratch turns a robotics project into an ad-hoc networking project.

The answer to the second question comes down to production reliability and fault tolerance. While native Python 3 support and modern C++17 APIs are welcome upgrades, the structural reason ROS 2 was created was to eliminate roscore, the single point of failure (SPOF) at the center of ROS 1. In ROS 1, if the central rosmaster process crashed or became unreachable over WiFi, nodes could no longer discover new peers or recover broken connections. Rebooting a crashed master is acceptable on a laboratory workbench, but unacceptable when a heavy autonomous mobile robot is navigating next to human workers. ROS 2 solved this not by patching roscore, but by replacing the entire custom transport stack with the industrial Data Distribution Service (DDS) standard.

What ROS 2 Actually Is and Why the ROS 1 Central Master Model Failed

Despite its name, ROS 2 (Robot Operating System 2) is not an operating system kernel. It is a distributed communication middleware, a standardized ontology of robotics message types (sensor_msgs, geometry_msgs, nav_msgs), and an integrated diagnostic and build ecosystem (rviz2, rqt, ros2 bag, colcon) executing on top of a host operating system such as Ubuntu 24.04 LTS. When evaluating when to learn and adopt ROS 2 for Physical AI systems, understanding this middleware layer is what separates fragile prototypes from field-ready robots.

ROS 1 operated on a centralized switchboard model. Before a camera node could stream /image_raw to a perception node, the camera had to register its IP address, port, and topic name with roscore. The subscriber queried roscore to look up the publisher’s address and then opened a direct TCPROS socket.

Architectural DimensionROS 1 (Noetic and earlier)ROS 2 (Jazzy Jalisco LTS)
Node Discovery & BrokerCentralized roscore / rosmaster (Single Point of Failure)Fully distributed peer-to-peer DDS discovery (no master process)
Underlying TransportCustom TCPROS and UDPROS implementationsOMG standard DDS / RTPS (UDP default, shared memory & TCP options)
Real-Time & QoS ControlBest-effort or TCP stream without fine-grained contractsPer-topic Quality of Service (Reliability, Durability, Deadline, History)
Multi-Robot IsolationName collisions on shared master; complex multi-master relaysInstant network partitioning via ROS_DOMAIN_ID and namespaces
Node Lifecycle ManagementUnmanaged OS process startup/shutdown onlyDeterministic Managed Lifecycle nodes (Unconfigured → Inactive → Active)
Security ArchitectureNone by default (plaintext topics open to any local socket)SROS2 built on OMG DDS Security (authentication, encryption, access control)
Languages & Build SystemPython 2/3 transition, C++11/14, catkin build toolPython 3.12 (rclpy), C++17 (rclcpp), colcon + ament

As explained in the ROS 2 on DDS design specification, the Open Source Robotics Foundation chose not to invent another custom robotics transport protocol. Instead, ROS 2 adopted the OMG Data Distribution Service (DDS) specification—a real-time publish-subscribe middleware proven for over two decades in avionics, naval combat systems, railway signaling, and autonomous vehicles. Eliminating the central switchboard meant every node needed a deterministic way to discover peers on the wire, and DDS already standardized that exact distributed discovery protocol.

How Nodes Find Each Other Without a Master: SPDP, SEDP, and the Domain Port Formula

When a ROS 2 process boots and creates a DDS participant, it executes a two-stage automatic discovery handshake on the network without contacting any central server:

  1. SPDP (Simple Participant Discovery Protocol) — Upon startup, each participant periodically broadcasts a compact heartbeat packet to a well-known UDP multicast address (by default 239.255.0.1). This announcement carries the participant’s globally unique identifier (GUID), its domain ID, and the unicast IP/port locators where it can be reached directly.
  2. SEDP (Simple Endpoint Discovery Protocol) — Once two participants learn of each other’s existence through SPDP, they establish a direct unicast exchange to advertise their local endpoints (Publishers/DataWriters and Subscribers/DataReaders). SEDP compares topic names, ROS IDL message type hashes, and Quality of Service (QoS) policies. If all three match, data begins flowing directly between the two endpoints.

This two-phase mechanism provides graceful degradation and fault isolation. If a camera driver crashes and restarts, or if a subscriber node is launched ten seconds before its publisher, SEDP automatically matches the endpoints as soon as both are alive. The trade-off is that multicast discovery packets constantly traverse the local subnet. If ten engineers in a lab launch robots on the same WiFi router without configuration, every participant discovers every other robot’s topics.

ROS 2 controls this discovery blast radius through two environment variables: ROS_DOMAIN_ID and ROS_AUTOMATIC_DISCOVERY_RANGE.

# Isolate each robot or team member into a dedicated DDS domain (safe range: 0–101)
export ROS_DOMAIN_ID=11

# Restrict discovery packets to the local machine (essential for single-PC simulation or CI)
# Valid options: SUBNET (default) | LOCALHOST | OFF | SYSTEM_DEFAULT
export ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST

# Inspect the discovered computation graph and middleware health without any central master
ros2 node list
ros2 topic list -t
ros2 doctor --report

Why must ROS_DOMAIN_ID be restricted to 0 through 101 (or 215 through 232) rather than an arbitrary integer? The constraint comes directly from the RTPS (Real-Time Publish-Subscribe) wire protocol formula that maps each domain ID to a block of 250 UDP ports:

Portmulticast=7400+250×domainId+offset\text{Port}_{\text{multicast}} = 7400 + 250 \times \text{domainId} + \text{offset}

Domain 0 occupies UDP ports 7400–7649, and Domain 1 occupies 7650–7899. If an engineer sets ROS_DOMAIN_ID=200, the base port becomes $7400 + 250 \times 200 = 57400$. On Ubuntu Linux, the kernel dynamically assigns ephemeral ports between 32768 and 60999 to outbound sockets (web browsers, SSH sessions, Docker containers). When a DDS domain overlaps the ephemeral range, any random background process can grab one of the domain’s UDP ports first, causing ROS 2 nodes to fail at startup with cryptic transport errors. Keeping ROS_DOMAIN_ID between 0 and 101 keeps all DDS ports safely below 32,768.

The RMW Abstraction Layer: Swapping DDS Vendors Without Touching Application Code

To avoid locking the robotics community into a single middleware vendor, ROS 2 introduces the RMW (ROS Middleware Interface) layer beneath the C(rcl), C++(rclcpp), and Python(rclpy) client libraries. Application nodes call standard ROS 2 APIs (create_publisher, create_subscription), while a dynamically loaded RMW adapter translates those calls into a specific vendor’s wire protocol or shared-memory transport.

According to the official ROS 2 Jazzy guide to working with multiple RMW implementations, three primary middleware backends serve different deployment profiles:

RMW ImplementationROS 2 Jazzy Debian PackageArchitectural StrengthsIdeal Deployment Scenario
eProsima Fast DDSrmw_fastrtps_cppDefault in ROS 2 Jazzy, zero-copy shared memory (SHM), built-in Discovery ServerGeneral single/multi-robot platforms, enterprise WiFi where multicast is restricted
Eclipse Cyclone DDSrmw_cyclonedds_cppCompact codebase, low latency variance, straightforward XML network interface bindingLow-latency control loops, embedded ARM SBCs, wired Ethernet robot buses
Eclipse Zenohrmw_zenoh_cppReplaces UDP multicast flood with routed pub/sub; minimal discovery overhead (>99% reduction)Congested wireless networks, WAN/cloud teleoperation, large-scale fleet bridging
# Check which RMW implementation is currently active in your shell environment
ros2 doctor --report | grep -A3 "middleware"

# Install Eclipse Cyclone DDS and switch the active RMW backend at runtime
sudo apt install ros-jazzy-rmw-cyclonedds-cpp
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp

Because RMW abstracts the transport layer, teams can adapt to challenging radio environments without rewriting node logic. If a warehouse WiFi blocks UDP multicast or suffers from discovery packet storms as robot count grows, operators can enable Fast DDS Discovery Server mode or switch to rmw_zenoh_cpp via an environment variable. When scaling beyond a single ROS 2 domain to heterogeneous multi-vendor fleets, this transport foundation connects directly into multi-robot fleet orchestration with Open-RMF and VDA 5050.

Why Target ROS 2 Jazzy Jalisco: LTS Lifecycle and Stack Alignment

The ROS 2 project publishes a new distribution every May, alternating between 18-month standard releases and 5-year Long Term Support (LTS) releases in even-numbered years. Jazzy Jalisco, released in May 2024, is the active flagship LTS distribution supported with upstream security patches and bug fixes through May 2029.

ROS 2 DistributionRelease DateEnd of Life (EOL)Target Ubuntu LTS OSDefault Python & Gazebo Stack
Humble Hawksbill (LTS)May 2022May 2027Ubuntu 22.04 (Jammy)Python 3.10 / Gazebo Fortress
Iron Irwini (Non-LTS)May 2023Nov 2024 (EOL)Ubuntu 22.04 (Jammy)Python 3.10 / Gazebo Garden
Jazzy Jalisco (LTS)May 2024May 2029Ubuntu 24.04 (Noble)Python 3.12 / Gazebo Harmonic

Standardizing new robotics hardware and curriculum designs on ROS 2 Jazzy provides three concrete advantages:

  • Native Raspberry Pi 5 and Ubuntu 24.04 Alignment: The Raspberry Pi 5’s RP1 southbridge I/O controller and mainline kernel drivers are supported out of the box in Ubuntu 24.04 (Noble Numbat). Jazzy is the native binary (apt) ROS 2 LTS distribution compiled specifically for Ubuntu 24.04.
  • Modern Gazebo Harmonic and ros2_control 4.x Integration: Jazzy pairs directly with Gazebo Harmonic via ros_gz_bridge, alongside updated ros2_control hardware interfaces, Nav2, and slam_toolbox.
  • Built-in Type Hashing and Discovery Scoping: Jazzy enforces runtime message type hash verification during SEDP discovery, supports ros2 service echo introspection, and natively honors ROS_AUTOMATIC_DISCOVERY_RANGE without complex vendor XML files.

Quality of Service (QoS): Enforcing Explicit Contracts Between Publishers and Subscribers

In ROS 1, any subscriber whose topic name and message type matched a publisher automatically connected over TCP, operating under a one-size-fits-all delivery model. In contrast, ROS 2 Jazzy Quality of Service (QoS) settings expose DDS data contracts directly to the developer. A connection between a publisher and a subscriber is established only if the publisher’s offered QoS policy is equal to or stronger than the subscriber’s requested QoS policy.

QoS Policy DimensionAvailable SettingsEngineering Behavior and Trade-Offs
ReliabilityRELIABLE / BEST_EFFORTGuarantees delivery via packet retransmission (RELIABLE) versus dropping lost packets to prioritize the newest sample (BEST_EFFORT)
DurabilityVOLATILE / TRANSIENT_LOCALDetermines whether the publisher caches historical samples to deliver to late-joining subscribers (TRANSIENT_LOCAL)
HistoryKEEP_LAST(depth) / KEEP_ALLBounds the internal queue to the most recent depth messages (KEEP_LAST) or buffers all samples up to resource limits
DeadlineDuration (e.g., 100 ms)Triggers an event callback if consecutive samples fail to arrive within the expected period, enabling hardware fault detection
LivelinessAUTOMATIC / MANUAL_BY_TOPICGoverns how DDS monitors and reports whether a remote publisher process is still alive within a lease duration

The Request-vs-Offered (RxO) compatibility rule is the single most common source of “silent topic failure” for newcomers:

Publisher Offered QoSSubscriber Requested QoSMatch ResultOperational Explanation
RELIABLERELIABLEConnected (Yes)Retransmission and ordering guaranteed (used for /cmd_vel, /map)
RELIABLEBEST_EFFORTConnected (Yes)Publisher offers stronger reliability than requested; match succeeds
BEST_EFFORTBEST_EFFORTConnected (Yes)Low-latency UDP streaming without retransmission queues (used for /scan, /imu/data)
BEST_EFFORTRELIABLERejected (No)Publisher cannot guarantee retransmission; DDS silently blocks the match
# Diagnose a silent subscriber callback by inspecting verbose endpoint QoS profiles
ros2 topic info /scan -v
# Example output:
# Published topics: /scan [sensor_msgs/msg/LaserScan]
#   QoS profile:
#     Reliability: BEST_EFFORT
#     Durability: VOLATILE
#     History (Depth): KEEP_LAST (5)

Why do hardware sensor drivers almost universally publish with BEST_EFFORT rather than RELIABLE? Consider the physics of a moving robot. A 2D LiDAR spinning at 10 Hz emits a fresh scan every 100 ms. If a WiFi burst corrupts packet $k$ and the transport layer spends 70 ms requesting and waiting for a retransmission, the robot has already moved forward—and the newly captured scan $k+1$ gets stuck behind stale data in the receive buffer. For high-rate sensors, sample freshness always outweighs historical completeness. Conversely, a static occupancy grid (/map) or URDF string (/robot_description) is published once at startup and must reach late-joining nodes like RViz2, making RELIABLE paired with TRANSIENT_LOCAL durability mandatory.

Four Ways Distributed DDS Architecture Changes Daily Robotics Development

Replacing the central ROS 1 master with a peer-to-peer DDS graph transforms how engineers structure and debug mobile robots like myros_sketch:

  1. Order-Independent Asynchronous Startup: Hardware drivers, the ESP32-S3 micro-ROS agent, robot_state_publisher, and navigation nodes can boot in any order. As soon as endpoints appear on the domain, SEDP links them automatically.
  2. Instant Multi-Robot Scaling via Namespaces and Domains: Wrapping a launch file in a namespace (/robot1/scan, /robot2/scan) or assigning distinct ROS_DOMAIN_ID values allows identical container images to run across an entire fleet without code changes.
  3. Transparent Offboard Compute Offloading: Because local and remote participants are peers on the same DDS domain, resource-constrained boards like the Raspberry Pi 5 can run only hardware drivers and control bridges while offloading heavy 3D visualization (rviz2) or bag recording to a developer workstation over WiFi.
  4. Treating Domain IDs and QoS Profiles as System Specifications: Because discovery is automatic and QoS mismatches fail silently unless inspected with ros2 topic info -v, teams must document their domain ID allocations and per-topic QoS contracts with the same rigor as electrical pinouts and mechanical CAD drawings.

Common mistakes

  • Assuming nodes must be launched in a strict startup sequence as in ROS 1, repeatedly rebooting processes instead of letting asynchronous DDS discovery match endpoints within a few seconds.
  • Connecting multiple robots to the same WiFi router with the default ROS_DOMAIN_ID=0, causing every robot in the room to subscribe to the same /cmd_vel topic and move simultaneously.
  • Forcing RELIABLE QoS on high-rate sensor streams like cameras and 2D LiDAR over wireless links, triggering retransmission storms that stall real-time control commands.

Pre-flight checklist

  • Have you assigned and documented a unique ROS_DOMAIN_ID (within the safe 0–101 range) for every robot or developer sharing the same local subnet?
  • Have you configured ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST on single-machine simulation workstations to prevent unnecessary multicast discovery traffic on the LAN?
  • Have you verified publisher-subscriber QoS compatibility across sensor streams (best_effort), velocity commands (reliable), and latched maps (transient_local)?
  • Has your entire engineering team locked on the same RMW implementation (Fast DDS, Cyclone DDS, or Zenoh) alongside Ubuntu 24.04 LTS and ROS 2 Jazzy?

Frequently asked questions

Is ROS 2 an actual operating system that replaces Ubuntu Linux?
No. Despite the name Robot Operating System, ROS 2 is a middleware framework, standard message library, and build/diagnostic toolchain that runs on top of a host OS such as Ubuntu 24.04 Linux. Installing ROS 2 does not modify your OS kernel; it provides inter-process communication, coordinate transform tracking (TF2), and tools like RViz2 and ros2 bag.
If there is no central master in ROS 2, how does 'ros2 node list' know which nodes are running?
There is no central registry process storing a master list. Every active DDS participant periodically broadcasts its presence via multicast (SPDP) and exchanges endpoint details via unicast (SEDP). When you run a CLI command, the CLI tool joins the domain as a participant (or queries a local daemon cache) to collect and display the peers discovered on the network.
Why should ROS_DOMAIN_ID be kept between 0 and 101 rather than picking an arbitrary number?
The RTPS wire protocol calculates UDP port numbers using the formula 7400 + 250 × domainId + offset. At domain ID 102 and above, the allocated ports cross 32,900 and overlap with the standard Linux ephemeral port range (32768–60999), which can cause random bind failures if another OS process is already using that port. Above domain ID 232, the calculated port exceeds the 16-bit UDP limit of 65,535.

Sources & verification

  1. ROS 2 Design — ROS on DDS
  2. ROS 2 Jazzy Documentation — Concepts
  3. ROS 2 Jazzy — Working with multiple RMW implementations
  4. ROS 2 Jazzy — About Quality of Service Settings

Last verified: