Fast-DDS icon indicating copy to clipboard operation
Fast-DDS copied to clipboard

Discovery Server issue - [RTCP_MSG_IN Error] Bad RTCP header identifier, closing connection [7223]

Open Jimmy316 opened this issue 6 years ago • 7 comments

When running using a discovery server with TCP option. When a subscriber reconnect we see the following message on the subscriber. [RTCP_MSG_IN Error] Bad RTCP header identifier, closing connection.

Note we don't see this message when the subscriber connects the first time. We see this when the subscriber reconnects. To reproduce we are running the following

  1. Discovery server running inside a docker container (172.17.0.2 for e.g).
  2. A publisher publishing 1024 * 1024 vector (1MB) of uint8_t. in one container.
  3. A subscriber receiving this message on another container.
  4. Kill the subscriber and restart it will sometimes run into this issue.

We noticed if we reduce the payload of the message to less than 65514 we never hit this issue. We are wondering if the reconstruction of the packet is the issue here. Also not sure why we don't see this issue when running on non Discovery Server mode.

Jimmy316 avatar Jan 07 '20 00:01 Jimmy316

Just wanted to add I am testing on Ubuntu 18.04 docker images. I am using Fast RTPS version 1.9.3.

Jimmy316 avatar Jan 07 '20 00:01 Jimmy316

If I leave the subscriber running for sometime I see a similar issue.

Jimmy316 avatar Jan 07 '20 17:01 Jimmy316

I was able to reproduce your issue. We will work on it. Thanks for the report.

richiware avatar Jan 09 '20 06:01 richiware

Thanks for the help. We updated the send and receive buffer size to be slightly larger and were able to get around the issue. When I see this issue I see that there was some packet fragmentation. Let me know if there is anything I can contribute to help fix this issue.

-- Jimmy

Jimmy316 avatar Jan 09 '20 17:01 Jimmy316

Hi Miguel/Richiware

Should I pull in Fast RTPS 1.9.3 to get this fix? Thanks

-- Jimmy

Jimmy316 avatar Jan 13 '20 23:01 Jimmy316

You should pull 1.9.x. #948 fixes this issue in that branch. 1.9.x will be the next 1.9.4.

richiware avatar Jan 14 '20 06:01 richiware

Hi, I run into this issue in version 2.0.0. The message I sent was 102400 bytes. Please give me some advice on how to avoid this.

wutianze avatar Jul 08 '20 14:07 wutianze