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

Double network bandwidth consumption than rostopic bw! ROS1 with VPN

asked 2023-07-29 06:41:50 -0600

JeyP4 gravatar image

updated 2023-07-29 17:23:28 -0600

Hi

I see expected network bandwidth consumption on physical private LAN. But I see double network bandwidth consumption with a VPN (globalprotect). The VPN is being used to connect nodes through internet. I attach a snap below: image description Is there anyone observing the same issue? Any solution? (Sorry if it is a VPN specific issue)

Master:
export ROS_IP=10.72.111.47
export ROS_MASTER_URI=http://10.72.111.47:11311
(e.g.) rosrun image_publisher image_publisher /opt/ros/noetic/share/rviz/images/splash.png


Slave
export ROS_IP=10.72.111.59
export ROS_MASTER_URI=http://10.72.111.47:11311
edit retag flag offensive close merge delete

Comments

Please tell us:

  1. How many images per second are you trying to publish?
  2. Please edit your description to show us some exact output from the "rostopic bw" command.
  3. What exactly are you measuring with this "system monitor"?
Mike Scheutzow gravatar image Mike Scheutzow  ( 2023-07-29 15:54:07 -0600 )edit

Thanks @Mike Scheutzow. I made an important observation and performed a major edit in the issue. Double bandwidth consumption is only observed with VPN use.

JeyP4 gravatar image JeyP4  ( 2023-07-29 17:25:47 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-07-30 07:38:12 -0600

Mike Scheutzow gravatar image

VPNs work by wrapping one IP packet with another IP packet. What you're seeing is the network stack counting each VPN packet twice: the 1st time when it arrives, and the 2nd time when the "unwrapped" packet is sent back into the network stack for delivery to your app.

This is just a VPN artifact - the bandwidth "on the wire" is not really doubled.

edit flag offensive delete link more

Comments

@Mike Scheutzow.

The problem is that it is consuming double 4G bandwidth. image description

My doubt is VPN encryption overhead, but I don't know how to change the encryption protocol of Globalprotect app!!

JeyP4 gravatar image JeyP4  ( 2023-07-30 11:05:19 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2023-07-29 06:41:50 -0600

Seen: 144 times

Last updated: Jul 30 '23