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
Three-dimensional spatial geo-fencing is a new application based on location-based services (LBS, Location Based Services), which can provide real-time, three-dimensional location change-based related services to fence associates, and its core is to judge the location relationship between target points and fence area, which can be abstracted as point and space figure location relationship discrimination in geometry and mathematics, i.e., point inclusion problem. At present, the mainstream ray method has singularity problem in boundary judgment, and although many improved algorithms have been proposed, most of them are limited to two-dimensional form, which cannot meet the demand of high-precision position discrimination for complex spatial three-dimensional environment. Therefore, this paper starts from the idea of solving a system of linear equations, transforms the judgment of the position relationship between points and polyhedral fences into the judgment of the position relationship between points and planes, and proposes a new algorithm of 3D geo-fencing based on linear equations, which can quickly and accurately complete the judgment of the position relationship between target points and fences. Firstly, the complex polyhedral fence is pre-processed and formed
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.
hi@scite.ai
10624 S. Eastern Ave., Ste. A-614
Henderson, NV 89052, USA
Copyright © 2024 scite LLC. All rights reserved.
Made with 💙 for researchers
Part of the Research Solutions Family.