讨论 RTPEngine 的 ICE-lite

跟 ICE-lite 对应的就是 ICE-Full

ICE-lite 仅在 offer 时设置,四选一:

  1. forward
  2. backward
  3. both
  4. off

测试 backward (后向)

RTPEngine 收到的 offer SDP 为

o=- 1545997027 1 IN IP4 172.17.0.5

s=tester

t=0 0

c=IN IP4 172.17.0.5

m=audio 4024 RTP/AVP 0

a=ice-pwd:bd5dfhdfddd8e1bc6

a=ice-ufrag:q25293

a=candidate:1 1 UDP 2130706303 172.17.0.5 4024 typ host

a=candidate:1 2 UDP 2130706302 172.17.0.5 4025 typ host

a=rtcp-mux

调用 rtpengine_offer("ICE=remove ICE-lite=backward rtcp-mux=demux")

得到的是:

o=- 1545997027 1 IN IP4 172.17.0.5

s=tester

t=0 0

m=audio 32958 RTP/AVP 0

c=IN IP4 203.0.113.1

a=rtpmap:0 PCMU/8000

a=sendrecv

a=rtcp:32959

在收到 answer 之后,调用 rtpengine_anwer("无flag")

得到的 sdp 为:

o=- 1545997027 1 IN IP4 172.17.0.5

s=tester

t=0 0

a=ice-lite

m=audio 32566 RTP/AVP 0

c=IN IP4 203.0.113.1

a=rtpmap:0 PCMU/8000

a=sendrecv

a=rtcp:32566

a=rtcp-mux

a=ice-ufrag:TMZC0F2C

a=ice-pwd:wPEWJVJ9KNrWH0YhcOpw53isGN

a=candidate:RDdGWrjNTEEe18Df 1 UDP 2130706431 203.0.113.1 32566 typ host

a=candidate:Mdk7jX69EgZEGFkD 1 UDP 2130706175 2001:db8:4321::1 35040 typ host

返回给主叫

我们注意到 主叫offer 没有 ice-lite 属性,主叫 answer 有 ice-lite 属性

文档是这样描述 backward (后向)的

backward to enable "ICE lite" mode towards the peer that has sent this offer.

ice=>RTPEngine(ice lite)=>rtp


forward 应该是这样:

RTPEngine 收到这样的 offer

o=- 1545997027 1 IN IP4 172.17.0.5

s=tester

t=0 0

c=IN IP4 172.17.0.5

m=audio 4026 RTP/AVP 0

调用 rtpengine_offer("ICE=force ICE-lite=forward")

也就是说

RTP =>RTPEngine (ice lite) =>ice

不知道我讲的对不对


ice-full vs ice-lite

可参考这里:

https://groups.google.com/g/rtpengine/c/cyD2f-hd6sE/m/Fch3_YZpAAAJ

相关推荐
搞科研的小刘选手11 小时前
【福建江夏学院主办】第三届数字媒体、通信与信息系统国际学术会议(DMCIS 2026)
通信·信息系统·学术会议·数字媒体·会议推荐
K成长日志11 天前
BLE链路层空口包--LE Uncoded PHY
物联网·嵌入式·蓝牙·iot·ble·无线·通信
liulilittle12 天前
论双机热备:分布式
服务器·网络·分布式·通信·竞态
liulilittle12 天前
论无知:分布式
服务器·网络·分布式·并发·通信·竞态
liulilittle14 天前
麻将系统架构
服务器·网络·分布式·游戏·系统架构·通信
xixixi7777719 天前
产业全景解读:太空算力、国产芯、国产大模型、6G 空天地、AI 可信身份、后量子安全多线全面突破
人工智能·安全·ai·大模型·数据中心·通信·运营商
liulilittle21 天前
Exhaustive drift-fix simulation V2 — KCC on shared-bottleneck wired path.
开发语言·网络·python·tcp/ip·计算机网络·信息与通信·通信
liulilittle25 天前
KCC 拥塞控制算法缺陷修复记录(26/07/05)
网络·tcp/ip·计算机网络·c·信息与通信·tcp·通信
liulilittle25 天前
KCC 边界缺陷深度分析:六问题根源与解决方案
网络·网络协议·tcp/ip·计算机网络·信息与通信·ip·通信