P2P即时通信系统关键技术研究及应用
2017-09-29徐文莉熊燕李燕
徐文莉 熊燕 李燕



摘 要:P2P技术因其非中心化、身份对等、可扩展性等优势,在即时通信领域受到重视。基于P2P的即时通信系统,广泛应用于个人通信、商务洽谈、企业管理等领域。为完善系统功能,提高开发效率,对在.NET平台下建立完全对等的P2P拓扑结构,实现局域网通信关键技术及应用方式进行了研究。利用PNRP协议编程实现了对等节点的发现,通过对DirectShow的封装高效完成了音视频数据的采集与压缩,在TCP/UDP协议及多线程技术支持下实现了数据有效传输。实际应用表明,系统架构设计合理,关键技术应用可行。
关键词:即时通信;对等网络;TCP/UDP;PNRP;DirectShow
DOI:10.11907/rjdk.172275
中图分类号:TP319 文献标识码:A 文章编号:1672-7800(2017)009-0151-03
Abstract:Due to its advantages of non-centrality, identity equivalence, scalability, P2P technology has gradually attracted more attention in the field of instant messaging. Instant messaging system has been widely applied in certain areas based on P2P technology, such as personal communication, business negotiation, enterprise management and so on. With the purpose of improving systems function and enhancing development efficiency, some key technologies and application methods of establishing completely equivalent P2P topology in .NET platform are under research and analysis. By programming with PNRP protocol, peer node discovery is realized. The work of collecting and compressing audio and video data with packaged DirectShow is finished as well. In the end, data effective transmission is solved with the support of TCP/UDP protocol and multithread technology. It can be proved that systems architecture is reasonable, and the application of key technology is feasible and effective.
Key Words:instant messaging; P2P; TCP/UDP; PNRP; DirectShow
0 引言
即时通信系统的发展,满足了人们对信息交流实时性、多样性、有效性需求。其中,P2P即时通信系统利用P2P技术及网络通信技术,以计算机网络为载体,以弱化或消除服务器分工为前提,以实现交互双方便捷有效的文字、圖像、音视频信息通信为目的,在计算机网络与通信领域受到广泛关注,主流产品包括MSN、腾讯QQ、Skype等。
局域网即时通信系统具有轻型、高效、便利、易管理等特点,较多服务于校园网、企业网领域,例如建设多人视频会议平台、网络教学平台、企业内部服务平台等,这些系统大多依赖服务端的管理或协调功能运作[1]。本文讨论的即时通信系统是基于.NET平台开发的一种无服务器的完全对等型P2P通信应用软件,重点分析了系统功能实现过程中的对等节点发现、音视频数据采集及传输、网络消息管理等解决方案。……
