论文部分内容阅读
近年来,基于P2P网络的IP音频流媒体技术得到了迅速的发展和广泛的应用。但是,在P2P网络中,由于NAT设备的普遍存在使得外部主机不能主动向位于NAT后面的主机发起通信,这阻碍了VOIP技术的发展和应用。基于实际开发需求,文章在TURN和STUN协议的基础上总结了一种穿越NAT的解决方案,并建立了相应的通信协议。经测试,该方案可以较好地穿越NAT,有利于提高P2P网络的连通性,为实际应用提供有价值的参考。
In recent years, IP audio streaming media technology based on P2P network has been rapidly developed and widely used. However, in P2P networks, due to the ubiquity of NAT devices, external hosts can not initiate communications to hosts located behind NATs, which hinders the development and application of VOIP technologies. Based on the actual development needs, the article summarizes a solution of traversing NAT based on the TURN and STUN protocols, and establishes the corresponding communication protocol. After testing, the scheme can better traverse NAT, which is beneficial to improve the connectivity of P2P network and provide valuable reference for practical application.