School of Computer Science, Sichuan Normal University, Chengdu 610101, China
| Abstract: | NAT (Network Address Translator) technology solves the problem of IP address shortage, but this technology can prevent P2P (Peer-to-Peer) communication between hosts. NAT penetration is the technical means to find a way to allow external datagrams to pass through the NAT device according to the mapping rules of the device, thus establishing a stable P2P connection. In order to ensure that the nodes in a P2P network complete high-quality communication, this paper investigates the entire P2P communication process and proposes an optimisation strategy based on STUN (Simple Traversal of UDP Through NATs) protocol penetration to address the problems of complex and tedious NAT type detection process and low success rate of the penetration process. By reclassifying NAT types, improving NAT type detection methods, introducing network state detection algorithms and optimising the communication flow, the strategy ensures smooth and high-quality communication between nodes in a P2P network. The experimental results show that the STUN protocol-based NAT penetration strategy proposed in this paper has lower resource consumption, stronger anti-interference capability and higher penetration success rate, avoiding performance bottlenecks in the server and providing high-quality network services for the whole communication process. |
| Keywords: | P2P; NAT Type Detection; STUN; Network State Detection Algorithm; NAT Penetration |
| DOI: | 10.57237/j.cst.2023.02.005 |
| [1] | Ordabayeva G K, Othman M, Kirgizbayeva B, et al. A systematic review of transition from IPV4 To IPV6 [C]//Proceedings of the 6th International Conference on Engineering & MIS 2020. 2020: 1-15. |
| [2] | Li X, University C. Analysis on NAT technology and its application [J]. Wireless Internet Technology, 2019. |
| [3] | Livadariu I, Benson K, Elmokashfi A, et al. Inferring carrier-grade NAT deployment in the wild [C]//IEEE INFOCOM 2018-IEEE Conference on Computer Communications. IEEE, 2018: 2249-2257. |
| [4] | Huang F, Yu L, Shen T, et al. The P2P Solution Research and Design Based on NAT Traversing Technology [C] // 2019 IEEE 3rd Advanced Information Management, Communicates, Electronic and Automation Control Conference (IMCEC). IEEE, 2019. |
| [5] | Yue G. Research on C/S Protocol and P2P Protocol in Wireless Communication [C] // Journal of Physics: Conference Series. IOP Publishing, 2020, 1486 (4): 042004. |
| [6] | 冯佳欣, 王建林, 孟丹, 等. 主流NAT穿越技术对比研究[J]. 信息与电脑 (理论版), 2020, 32 (14): 174-176. |
| [7] | Srirama S N, Liyanage M. Tcp hole punching approach to address devices in mobile networks [C]//2014 International Conference on Future Internet of Things and Cloud. IEEE, 2014: 90-97. |
| [8] | Wang Y, Lu Z, Gu J. Research on symmetric NAT traversal in P2P applications [C]//2006 International Multi-Conference on Computing in the Global Information Technology-(ICCGI'06). IEEE, 2006: 59-59. |
| [9] | Wei Y, Yamada D, Yoshida S, et al. A new method for symmetric NAT traversal in UDP and TCP [J]. Network, 2008, 4 (8). |
| [10] | D’Angelo G, Rampone S. A NAT traversal mechanism for cloud video surveillance applications using WebSocket [J]. Multimedia Tools and Applications, 2018, 77 (19): 25861-25888. |
| [11] | 郑浩. 基于STUN协议的NAT穿越技术的研究与应用 [D].武汉理工大学, 2018. |
| [12] | 冯金哲, 殷海兵. 一种Symmetric NAT穿透的新方法 [J]. 计算机应用与软件, 2017, 34 (01): 125-128. |
| [13] | Ashraf S, Muhammad D, Aslam Z. Analyzing challenging aspects of IPv6 over IPv4 [J]. J. Ilm. Tek. Elektro Komput. Dan Inform, 2020, 6 (1): 54-67. |
| [14] | Ghafouri R, Ashrafi A, Vahdat B V. Security consideration of migration to IPv6 with NAT (Network Address Translation) methods [C]//2015 23rd Iranian Conference on Electrical Engineering. IEEE, 2015: 746-749. |
| [15] | 黄佳庆, 闵江, 程文青. 一种利用TURN穿越对称型NAT方案的设计与实现 [J]. 微电子学与计算机, 2009, 26 (04): 255-259. |
We invite active, qualified and high profile scientists and researchers to join as Editorial Board Members.
Join UsScholars with a strong interest in reviewing are invited to join the reviewer panel to ensure the quality of the research to be published.
Join Us