Replies: 3 comments 6 replies
-
Hi @ploe24, thanks for using Fast DDS.
you are right, that section does not describe a TCP connection over WAN using Discovery Server as discovery mechanism.
You should just forward the physical port (your first |
Beta Was this translation helpful? Give feedback.
-
@EduPonz @JesusPoderoso Yesterday we installed FastDDS 2.13.2, the latest pre-compiled build for Win x64 available, from the eProsima download section, but there seems to be something wrong with the lib.
So we ended up with FastDDS 2.12.1, which we are using now and it works fine. Anyway, coming back to my initial question :) Our setup is like the third case in the graphics here and we re-created the XML config as suggested by @JesusPoderoso for our discovery server and our pubs/subs using the API functions. The DS sits in our DMZ (all ports forwarded) and the participant discovery works as before. But still no data transfer and the Writers and Readers are not matching :( For my further understanding, is it mandatory to use FastDDS-Router (this software)? Or is a communication over WAN/Internet also possible without it? TIA :-) Edit: In 6.3.3. WAN or Internet Communication over TCPv4 it looks like there is no "FastDDS Router" involved, but also no public discovery server. So the "Initial Peers" setup won't work for us, right? Because this is what we tried using the config as suggested
|
Beta Was this translation helpful? Give feedback.
-
Now everything works as expected, even with DS :) |
Beta Was this translation helpful? Give feedback.
-
Hello,
right now we have our own DS with a public IP.
There are two LANs containing X participants each (Subscribers and Publishers).
All participants connecting to the DS via its public IP and port. The DS recognizes the participants, but the DataReaders and -Writers do not match (even they share the same topic and data types) and therefore no data is transmitted. So besides the successful discovery process nothing seems to happen.
After doing some research we stumbled upon "eProsima DDS Router" to connect and direct data from multiple LANs across the Internet/over WAN.
Is there no other way?
The section 6.3.3. WAN or Internet Communication over TCPv4 describes a communication over WAN. But is it a point-2-point connection of one publisher and one subscriber or can you use a DS in this case and use X subscribers in combination with Y publishers?!
The example mentions that the publisher acts as TCP "server" to start the process while the "client" (subscriber) has the address of the server in its "Initial peer" list. How does it work when having multiple subscribers and publishers?
How would a connection like this look like when having a public IP DS "in the middle"?
Very much appreaciated if somebody could enlighten me, how to configure our DDS setup or at least point in the right direction where to continue and what could have went wrong.
One more question: what ports have to be forwarded in our public router (in front of the DS)? Only the port, where the server is listening on (something like 16166) or do we have to care about the RTPS ports (7400, 7401 and 7402)?
Thanks in advance
If more information is needed please let me know.
The code for the server, pubs and subs is mainly from the eProsima Discovery Server example with some little modifications and addresses adapted to our network config.
Beta Was this translation helpful? Give feedback.
All reactions