ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

how to monitor network usage

asked 2023-01-12 10:26:07 -0600

Mingjie gravatar image

updated 2023-01-12 10:29:54 -0600

Hi! We are using ROS1 Noetic on Ubuntu 20.04 with regular desktop version.

We have some processes using internet, for example, - streaming some topics content to a commercial cloud server, - Ntrip RTK for gps correction.

Now we want to monitor the bandwidth and data usage, so in Ubuntu System Monitor, there's a section "Network History" contains Total Received and Total Sent.

So our question is, Does this total received/sent value include only those interaction with Internet, like the 2 processes mentioned above? Or does this total value also include the data flow within ROS, like node publish/subscribe: node_A -> topic_1 -> node_B?

We have very limited knowledge of network. If System Monitor is not the right tool, is there a better tool to monitor the data usage?

Thank you!

edit retag flag offensive close merge delete

Comments

Try using :

htop

Davies Ogunsina gravatar image Davies Ogunsina  ( 2023-01-12 20:26:38 -0600 )edit

I did a simple test for my question about System Monitor: I found that it does not include the publish/subscribe.

Mingjie gravatar image Mingjie  ( 2023-01-16 10:14:56 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
2

answered 2023-01-14 11:07:21 -0600

updated 2023-01-14 11:07:36 -0600

You can use the command line tool rostopic bw to check the bandwidth used by a certain topic. Documentation

edit flag offensive delete link more
2

answered 2023-01-13 17:32:09 -0600

billy gravatar image

One possible solution: Using psutil package in python, you can monitor individual ports/adapters for traffic, so if you want to monitor just the port to your internet router that is simple.

To answer your direct question about System Monitor, wouldn't it be simple to test this by getting data with and without that access to internet active?

edit flag offensive delete link more
0

answered 2023-01-12 20:28:37 -0600

Davies Ogunsina gravatar image

try using :

htop

edit flag offensive delete link more

Comments

1

I think htop only gives cpu and ram usage, but not nework usage.

Mingjie gravatar image Mingjie  ( 2023-01-13 13:09:43 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2023-01-12 10:26:07 -0600

Seen: 190 times

Last updated: Jan 14 '23