摘要
NAT把一个区域的IP地址映射到另一个区域的IP地址,为主机之间提供透明的路由,所以它能有效地解决IPv4地址紧缺问题,但同时也给P2P通信带来了极大的困难,穿透NAT已经成为P2P应用必须面对和解决的问题。基于Internet的P2P技术和NAT的基本原理,文章分析了NAT对P2P的影响,介绍了几种穿透NAT的技术,并分析了其各自的特点,指出了影响NAT穿透的关键因素,给出了简单又健壮性很好的UDP Hole Punching技术以实现NAT的穿越,并以此为基础提出一种利用应用程序协助完成的TCP穿透NAT的方案。
Network Address Translation(NAT) is a method by which IP address is mapped from one realm to another, in an attempt to provide transparent routing to hosts. Although it can resolve the problem of IP address exhaustion, it brings some difficulties on Peer-to-Peer communication. Bases on the technology of internet Peer-to-Peer and NAT theory, this paper analyzes the NAT impact on P2P, introduces several NAT traversal techniques, analyses the characteristics respectively and points out the key factors affecting NAT traversal. The UDP Hole Punching technology and a solution on NAT traversal of TCP communications are also discussed in the paper.
出处
《电力系统通信》
2008年第7期60-64,共5页
Telecommunications for Electric Power System