If you want to confirm that two nodes are communicating directly, you can run rosnode info on them, to see which TCP sockets they have open, where those sockets are connected, and which topic is using each socket.