Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twilio reports high packet loss on participant. But in GMeet it's fine. #1986

Open
CyranMS opened this issue Feb 16, 2023 · 14 comments
Open
Assignees

Comments

@CyranMS
Copy link

CyranMS commented Feb 16, 2023

Hi all,
For multiple weeks now, we have gotten a lot of angry customer complaints that the audio quality is horrible. Has anyone else noticed this? The audio quality is so bad that we can't continue the meetings. When we switch to Google Meet then, their network analysis reports packet loss of 0% on audio. Meanwhile, Twilio blames it on the participant's internet and packet loss. I noticed this now multiple times that Twilio reports >5% packet loss (sometimes around 10-20%), but it's fine on GMeet (packet loss <1%). Any reasons that could be the issue?

Cases:

  1. RM1bace1ffac5418a834c373ebd35baff6
  2. RM53702baf166107f0b5e5242a2d8725d0
  3. RMd478e214d94e15745de4231da3df3059
@shadowfool
Copy link

shadowfool commented Feb 16, 2023

We've had some similar complaints recently - as of around the last week of January.

@CyranMS
Copy link
Author

CyranMS commented Feb 24, 2023

Any updates? @manjeshbhargav @PikaJoyce @seancoleman2

@kNoAPP
Copy link

kNoAPP commented Feb 24, 2023

Hello, we have also been experiencing problems with audio, especially when joining the call. Users sometimes (like 5-10% of time time) can't be heard after joining. But can hear everyone else. These issues started occurring in the last couple weeks.

@manjeshbhargav
Copy link
Collaborator

Hi @CyranMS ,

Thanks for the report. I checked our internal logs for the Room SID you shared with me, and I did not see a lot of packet loss reported by our media server. The SDK however did not send any logs. Have you by any chance set insights: false in ConnectOptions? If so, can you set it to true and share some room sids where this is reproduced?

@manjeshbhargav manjeshbhargav self-assigned this Feb 28, 2023
@CyranMS
Copy link
Author

CyranMS commented Mar 1, 2023

Thanks for getting back! The issue is that Twilio reports high packet loss and handles high packet loss way worse than Google Meet. Probably you have access to all our rooms anyway, so here is the link to the dashboard with it here. Where they use Google Meet in these cases then they do not get high packet loss communicated and the audio quality is way better. Are there any plans to improve this? @manjeshbhargav

@masterminh219
Copy link

Hey, can someone please share where I can get the Packet Loss from CLient side ? I dont want to access the dashboard but I want to integrate it to our system so our CS can reach out to them if needed

I used getStats but now it returns empty array

@vipulSoni458
Copy link

We are also getting the same high packet loss issues. Even though participant network quality is excellent and its passes all twilio network test but still there are lot of glitch in audio and video in session. Please look into this issue as its really impacting the customer experience and our business. Thank you

@CyranMS
Copy link
Author

CyranMS commented Mar 9, 2023

Any update @manjeshbhargav?

@CyranMS
Copy link
Author

CyranMS commented Apr 13, 2023

Any update and any plans to improve this?

@anna-vasilko
Copy link
Contributor

Hi all,
So far our QE team was not able to reproduce described audio issues when testing in various environments including when simulating poor networks by introducing high packet loss or low up/down bandwidth. I am afraid there is not enough info to root cause the issue at this point.

Can any of you reproduce the issue consistently? If so, please provide exact reproduction steps, participant sids and browser logs for the impacted users.

@vbabenko
Copy link

vbabenko commented Jun 22, 2023

@anna-vasilko Yes, we can reproduce it, try to perform POLQA tests, and compare it with Google Meet. Check the audio quality when you increase the package loss from 0-20%.
With increasing package loss you will notice significant problems with audio in Twilio, but Google Meet handles it on acceptable level

@spalmertwilio
Copy link

I am not seeing high packet loss when using the latest version and I am checking using our video insights in the Twilio console, the Room Monitor https://www.twilio.com/docs/video/troubleshooting/javascript-room-monitor and Chrome's built in WebRTC internals chrome://webrtc-internals/ even when simulating poor network conditions.

Whenever Media Quality is an issue we recommend reflecting on the app's use case and the settings used in the following areas:

  • If the publisher (local user) is publishing at a large/high quality and whether the receiver (remote user) can easily handle the video stream from the publisher(s).
  • If the remote user is using an old device, low powered device, or is using a low bandwidth network, the Network Bandwidth Profile API settings will help the receiver.
  • Subscribe end-users to remote tracks efficiently.
  • Simulcast (all three layers sent), Adaptive Simulcast (only layer(s) the remote users can receive and all are using will be sent), Simulcast disabled aka unicast.
  • Sensible network settings, don't pin to media region when participants are located somewhere else. Use gll.
  • Use diagnostic tools to pinpoint signaling and media connectivity issues and make them available to your end users, please see the diagnostic section of Twilio Docs to look for Video Insights, Room Monitor, Video Diagnostic Application.

Quality Improvement Recommendations Checklist For Group Rooms (Not for Peer-to-Peer or WebRTC Go Rooms)

I also recommend reviewing

For those who can reproduce the issue consistently, will you please check for packet loss in one of the Twilio tools or in the Browser tools? If it is present on one of those tools, please submit a support ticket and include the exact reproduction steps, participant sids, and browser logs for the impacted users.

@vbabenko
Copy link

vbabenko commented Aug 4, 2023

Hi @spalmertwilio @anna-vasilko
Thank you for your detailed answer and all these useful links.
But we use Twilio for a really long time and we went through architectural review, and optimizations and have implemented all those mentioned APIs and we passed due diligence. We adjust bandwidth usage based on Preflight tests, Network Quality APIs, etc.
Context:
We use Adaptive Simulcast for 3+ participants, in most cases we use 640x480p@24fps per video. Grid view (max 6 participants), network options are "auto", GLL, TrackSwitchOff is based on network quality, etc.

I've submitted multiple support tickets but the answer is always the same...
However, Twilio's performance is dependent on the quality of network conditions. The issue in this case lies in how media servers handle package losses

Could you please run some professional tests to simulate real network issues such as package order variations, bitrate spikes, controlled package losses, delays, low receiver/sender networks, etc? These tests will help you identify any problems and drops in audio quality. The chrome dev tool is not the appropriate tool for these tests.

Thank you,

@spalmertwilio
Copy link

Thank you @vbabenko for the response. Do you mind sharing one of your support ticket numbers with me so that I may investigate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants