首页 > 解决方案 > How does BUNDLE help to improve webRTC connection/performance? By how much roughly?

问题描述

According to the doc here:

One obvious benefit of doing this is reducing the ICE negotiation time as the number of ICE candidates is reduced.

https://webrtcstandards.info/sdp-bundle/

BUNDLE is able to improve the performance. However, I fail to see how it can do so. Let's assume that this is the scenario I am in:

  1. Forced TURN x 2 on some URL's 80 and 443 port
  2. 1 to 1 connection. Let's not talk about conferencing situations.
  3. Starting from scratch: ICE tricking, sdp offer... all the way to media stream in.
  4. Audio and video goes 2 way.

I understand that bundle will mux audio and video into a single stream and send it over, so it can probably reduce the trickling time, at least by 1/2.

How about the part after sdp received by both parties and starts to send streams? Does it improve the connection time there too, compare to balance mode?

标签: performancewebrtcbundle

解决方案


理论上,ICE 会调整用于连接检查的 stun 请求(隐藏在 RFC 5245 中的某处)。我强烈怀疑这是否有实际效果。

使用 bundle 的主要论点是您只需要在 NAT 中打一个洞,并且不会遇到音频打孔但视频没有打孔的奇怪情况。


推荐阅读