In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "how the video chat function penetrates NAT". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
This paper only introduces the principle of NAT penetration and does not focus on the specific NAT types, so a relatively simple full cone is selected for discussion. As shown in the following figure, clients An and B access the network through NAT A (corresponding to the public network address eA) and NAT B (eB), respectively. Both An and B only know their own private network IP address, but do not know the public network address of eA,eB, so An and B cannot simply establish a connection with each other. There is a large amount of video data, and they cannot all be transferred through the server. Therefore, it is necessary to set up a Server on the public network to assist An and B to establish a connection.
The steps to establish a connection between An and B are as follows
1. A sends a packet to Server to inquire about the public network address of NAT A.
2. Server returns eA to A (A has sent a message to Server, so Server can find A, see "what's going on with NAT")
3. B sends a packet to Server to inquire about the public network address of NAT B (A can send a text message to B through the IM system and initiate a query to Server together with B)
4. Server returns eB to B
5. Server returns NAT B public network address eB to A
6. Server returns NAT A public network address eA to B
At this point, An and B both get the corresponding external network address of the other party and can deliver data directly to the other party. For example, if A sends data to B, An only needs to send data to eB, and NAT B will forward the data to B.
The above are just basic principles, and there are still many details to be dealt with.
This is the end of the content of "Video chat function how to penetrate NAT". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.