计算机工程 ›› 2008, Vol. 34 ›› Issue (12): 112-113.doi: 10.3969/j.issn.1000-3428.2008.12.039

• 网络与通信 • 上一篇    下一篇

一种UDP穿越NAT的新方案

张国印,叶在伟,曲丽君   

  1. (哈尔滨工程大学计算机科学与技术学院,哈尔滨 150001)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-06-20 发布日期:2008-06-20

Novel Solution of Using UDP to Traverse NAT

ZHANG Guo-yin, YE Zai-wei, QU Li-jun   

  1. (College of Computer Science and Technology, Harbin Engineering University, Harbin 150001)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-06-20 Published:2008-06-20

摘要: 网络地址转换是解决IPV4地址紧缺的有效方法,但对P2P技术的应用产生了负面影响。该文分析网络地址转换对P2P网络产生的负面影响,研究NAT端口映射类型及其检测方法,给出了一种用于P2P网络的穿越NAT协议。该协议可以解决P2P网内私网计算机之间建立直接UDP通信的问题,从而改善了P2P网络连通性。

关键词: P2P网络, 网络地址转换, 端口映射

Abstract: Network Address Translation(NAT) is a method by which IP addresses are mapped from one realm to another, in an attempt to provide transparent routing to hosts. It is an efficient solution for the lack of IP address. However, it has negative impact on P2P. The negative impact on P2P caused by the NAT is pointed out. And a method of testing NAT port mapping is presented. A new NAT traversal protocol under P2P network environment is designed. The protocol describes how to establish direct UDP communication between two NAT computers. The performance of the network connectivity is improved.

Key words: P2P network, Network Address Translation(NAT), port mapping

中图分类号: