The application of Peer-to-Peer (P2P) in the Instant Message System improves many problems of Client/Server (C/S) frame. It releases the server to a certain extent and increase transfer rate. However, P2P system has a typical problem that can't setup connection normally when being blocked in the Network Address Translation (NAT) environment.This system is designed based on a university network construction project. Provided the solution to the problem with the main UDP Hole Punching supporting and relaying as a secondary assistance. Through this solution realized the NAT detection module, NAT traversal module and other modules of the system. Solve the problem caused by NAT, and has improved some weakness of the university network. The system has worked well till now and has achieved the initial goals.%点对点(P2P)技术应用于即时通信系统后,改善了原有客户端/服务器(C/S)架构存在的很多问题,从某种程度上解放了服务器,提高了传输速率.然而P2P系统在网络地址转换(NAT)g境下存在受到阻碍而无法正常建立连接的典型问题.本系统来自校园网的实际建设项目,提出以UDP Hole Punching为主Relaying方式为辅的穿透解决方案,根据该方案实现了NAT探测模块和NAT穿透模块等系统关键模块,解决了由于NAT影响通信受阻的问题,改善了校园网中的不足.系统运行良好、性能稳定,基本达到了预期目标.
展开▼