Skip to main content

11. Keepalives (保活机制)

ICE会话建立后,代理需要保持NAT绑定的活跃状态。这通过定期发送keepalive数据包来实现。

建议的keepalive间隔为15秒。Keepalive可以使用STUN绑定指示 (Binding Indications) 来实现。