Communication in ROS and ROS2
ROS uses either TCP/ IP or UDP communication protocol. Different ROS nodes can be run on different machines with different network (not same subnet mask) only with one master provided that each machine can communicate bidirectionally.
Now ROS2 uses DDS for communication. In DDS language, different ROS2 nodes can interact with each other only if they belong to the same domain participant i.e. they are in the same network.
Does that mean, that ROS nodes can communicate with each other even if they are in different network whereas ROS2 nodes can only communicate if they are in the same network ?