计算机应用 ›› 2011, Vol. 31 ›› Issue (07): 1980-1983.

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

P2P应用中一种多层NAT穿透解决方案的设计与实现

刘泽阳1,徐武平2   

  1. 1. 青海大学 计算机系,青海 西宁 810016
    2. 武汉大学 计算机学院,武汉 430072
  • 收稿日期:2011-01-11 修回日期:2011-02-25 发布日期:2011-07-01 出版日期:2011-07-01
  • 通讯作者: 徐武平
  • 作者简介:刘泽阳(1990-),男,湖北鄂州人,主要研究方向:网络通信;
    徐武平(1970-),男,湖北武汉人,副教授,博士,主要研究方向:网络与通信、信息管理系统。

Design and implementation of a solution to multilayer NAT traversal in P2P applications

Ze-yang LIU1,Wu-ping XU2   

  1. 1. Department of Computer, Qinghai University, Xining Qinghai 810016, China
    2. School of Computer, Wuhan University, Wuhan Hubei 430072, China
  • Received:2011-01-11 Revised:2011-02-25 Online:2011-07-01 Published:2011-07-01
  • Contact: Wu-ping XU

摘要: 在说明多层NAT各种穿越模型结构的基础上,剖析了多层NAT打孔穿越中存在的问题,提出了根据网络环境适当选取节点作为超级节点,为需要通信的两个节点指定超级节点辅助它们通信的设计思想。然后介绍了具体方案:包括超级节点的动态选取规则, P2P拓扑结构图向拓扑结构表的转换,借助于节点拓扑结构表实现P2P系统任意层次的NAT穿越。最后通过实验验证了多层NAT穿透解决方案的可行性。

关键词: 网络地址翻译, 点对点, 打孔, 穿透, 超级节点

Abstract: In this paper, all kinds of multilayer Network Address Translation (NAT) penetrate models were analyzed. The problem existing in multilayer NAT traversal was discussed. To solve this problem, the idea of selecting a suitable node as super node based on network environment and designating appropriate super node for the two nodes which need to communicate in order to help communication between them was put forward. The dynamic selection rules of super node were designed. The conversion from P2P topological structure to topological table was completed. The NAT penetrates of P2P systems arbitrary levels were realized by node topological table and the experiment verified the feasibility of the solution to multilayer NAT penetrate given in this paper.

Key words: Network Address Translation (NAT), Peer to Peer (P2P), Hole Punching, traversal, supernode