0
$\begingroup$

Rosanswers logo

Hi, I want to know the data transferring between master and nodes.

I use Wireshark and set filter to tcp.port == 11311(that is, only to catch data from port 11311) to catch the data packets of master.

The weird thing is, when I execute rxgraph, master sends data to different ports(always increase by 2 or 4; For instance, 11311 send data to 40081, 40085, 40087, ...etc) of rxgraph.

I am wondering why rxgraph keeps opening new port instead of fixing to one port?

Thanks in advance.


Originally posted by Po-Jen Lai on ROS Answers with karma: 1371 on 2012-03-12

Post score: 0


Original comments

Comment by kwc on 2012-03-12:
Due to a bug I cannot post an 'answer', but the reason why it opens so many connections is that it must poll each node to determine status. The Master is not responsible for making connections, as ROS is peer to peer, so determining the graph requires contacting each peer.

Comment by sam on 2012-03-13:
Is rxgraph needs to get a list from master every period of time, and use that list to connect all nodes to draw all relations graph? So when rxgraph get the latest list then it will open new ports to connect to nodes even the list still the same. Is that right?

Comment by kwc on 2012-03-13:
Yes, it has to keep polling, otherwise it cannot find broken connections

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

This is the answer from kwc.

"Due to a bug I cannot post an 'answer', but the reason why it opens so many connections is that it must poll each node to determine status. The Master is not responsible for making connections, as ROS is peer to peer, so determining the graph requires contacting each peer."


Originally posted by Po-Jen Lai with karma: 1371 on 2012-03-12

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.