跳到主要内容

4. 多方 RTP 会话 (Multi-Party RTP Sessions)

4. 多方 RTP 会话 (Multi-Party RTP Sessions)

DTLS 是 client-server protocol, 但 RTP/RTCP sessions 通常在 conference 或 multicast 环境中涉及多方. 为了使用 DTLS-SRTP 支持 multiparty communication, 每一对通信实体必须建立单独的 DTLS association. 例如, 在三方通话中, 将存在三个单独的 DTLS associations: A-B, B-C 和 A-C.

这种方法的优点是每一对 endpoints 共享唯一的 master secret. 但是, 这意味着 N 方 conference 中的一个 endpoint 需要维护 N-1 个单独的 DTLS associations, 因而也需要维护 N-1 组单独的 SRTP keys.

在 central server (例如 RTP mixer 或 translator) 在 endpoints 之间转发流量的场景中, 每个 endpoint 与 central server 建立 DTLS association, 而不是与其他每个 endpoint 建立. 这减少了每个 endpoint 必须维护的 DTLS associations 数量, 但也意味着 central server 可以访问未加密的 media.