P2P网络中UPnP穿越NAT的研究与实现
Research and Implementation of Traversing NAT Using UPnP under P2P Network Environment
Abstract
nAT的存在使得P2P通信存在极大的障碍,因此穿透nAT已经成为P2P应用必须面对和解决的问题。为此,介绍一种使用uPnP技术穿越nAT的技术,该方法主要是利用uPnP中自动端口映射技术来构建一种静态传输映射来实现,并给出采用简单、稳定而且易于实现的uPnP中自动端口映射技术穿透nAT的实例。 The existing of NAT proves a great obstacle to the P2P communication,so how to traverse NAT has become a problem to be faced and solved in the application of the P2P.Therefore,introduces a technique of the using UPnP to traverse NAT.This method mainly uses the auto-port-mapping in the UPnP employed to build a static-transmitting-mapping to achieve the traversing.It also gives a good example to show how to use the auto-port-mapping technique,which is the simpler,stabler and more achievable in the UPnP to traverse NAT.