摘要
通过对NAT的原理分析,对位于NAT设备后的两个内网主机之间相互通信的问题提出了解决方法。分析了UDP穿透NAT的基本原理后,给出了简单健壮性很好的UDP Hole Punching技术以实现NAT的穿越。最后提出一种NAT端口映射保持的自适应算法,解决了NAT中动态端口地址映射的保持问题。
The principle of NAT and the impact of NAT on P2P are discussed.To realize peer-to-peer communication,a solution of UDP Hole Punching is used to establish UDP connections between hosts which behind different NATs.Because UDP is a connectionless protocol,the address mapping within the NAT is dynamic.In order to maintain the dynamic address mapping within the NAT,a self-adaptive algorithm is proposed.
出处
《科学技术与工程》
2010年第34期8582-8585,共4页
Science Technology and Engineering