CN105262853A - Method, device and system for establishing network address translation (NAT) traversal path of peer-to-peer (P2P) connection - Google Patents
Method, device and system for establishing network address translation (NAT) traversal path of peer-to-peer (P2P) connection Download PDFInfo
- Publication number
- CN105262853A CN105262853A CN201510611702.8A CN201510611702A CN105262853A CN 105262853 A CN105262853 A CN 105262853A CN 201510611702 A CN201510611702 A CN 201510611702A CN 105262853 A CN105262853 A CN 105262853A
- Authority
- CN
- China
- Prior art keywords
- path
- establishing
- address
- nat
- another
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000012544 monitoring process Methods 0.000 claims abstract description 63
- 238000007689 inspection Methods 0.000 claims description 122
- 230000004044 response Effects 0.000 claims description 77
- 230000005540 biological transmission Effects 0.000 claims description 19
- 238000010586 diagram Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012913 prioritisation Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/256—NAT traversal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method for establishing the network address translation (NAT) traversal path of a peer-to-peer (P2P) connection, and relates to the selection of a traversal full path between one client and another peer-to-peer network client. The method comprises the steps of S10, selecting an unchecked address of highest priority in a to-be-checked address list as a current checking path; S20, according to the current checking path, sending a path checking request message to another peer-to-peer network client; S30, monitoring the NAT host of a local client; S40, judging whether the NAT host of the local client receives the path checking request message sent by the other peer-to-peer network client or not; S50, on the condition that the local client receives the path checking request message sent by the other peer-to-peer network client, setting the current address as an optimal path; S60, stopping the checking cycle.
Description
Technical field
The present invention relates to communication technical field, particularly relate to method for building up, Apparatus and system that a kind of P2P connects the path that NAT passes through.
Background technology
Because each transmission terminal may be positioned at public network in the application of current P2P (point-to-point transmission), after also may being positioned at various types of NAT, therefore needing to realize dissimilar NAT for various situation and pass through.
ICE (interactive connection establishment) has been acknowledged as NAT traversal scheme first-selected under all NAT environment at present, ICE itself is a kind of framework just, its integrated application STUN, the agreements such as TURN provide a general solution, NAT is passed through work in most suitable situation, to make up the inherent shortcoming being used alone wherein any one and bringing.
But pass through in mechanism at the NAT of ICE, need to collect all possible path, then sort to all paths according to priority, finally according to priority order checks all paths, thus looks for most suitable path for transmission.
When current NAT passes through, the method for Path selection is: check all paths of collecting according to the priority orders sequenced separately, pick out satisfactory path, finally selects the highest path of priority to use.The shortcoming of this method has: asynchronous when one, both sides check path, and a such as side is checking the path of a certain priority, and the other side is not in the route inspection request of monitoring this priority, will cause checking overtime and failed like this; Two, routing algorithm design is bad, the facility that the priority not making full use of path is brought, since all paths are all sort according to priority, so according to priority checking from high in the end, can be optimal path with just determining once be checked through path.
Summary of the invention
The object of this invention is to provide the prioritization scheme that when a kind of NAT passes through, complete trails is selected, solve the efficiency of Path selection when NAT passes through.
Technical scheme provided by the invention is as follows:
The invention discloses the method for building up that a kind of P2P connects the path that NAT passes through, and carry out NAT between another peer-to-peer network client to pass through complete trails and select, comprise step: S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check; S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path; S30 monitors this client NAT main frame; S40 judges whether to receive the route inspection response message that another peer-to-peer network client is sent; If so, next step is performed; S50 sets current address to being optimal path; S60 stops checking circulation.
The present invention also provides another kind of P2P to connect the method for building up in the path that NAT passes through, and carry out NAT between another peer-to-peer network client to pass through complete trails and select, comprise step: S01 collects the candidate site of this client NAT main frame, and priority is set for each described candidate site, transmission comprises the unpaired message of candidate site and priority to another peer-to-peer network client; S02 receives the unpaired message of another peer-to-peer network client, and the unpaired message of another peer-to-peer network client described comprises candidate site and the priority of another peer-to-peer network client NAT main frame; S03 is in conjunction with the unpaired message of this client with another peer-to-peer network client, pairing calculated address pair is carried out according to the candidate site of this client NAT main frame and the candidate site of priority and another peer-to-peer network client NAT main frame and priority, and according to the address identical with another peer-to-peer network client to priority algorithm to described address to sorting, generate examine address to inventory; S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check; S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path; S30 monitors this client NAT main frame; S40 judges whether to receive the route inspection response message that another peer-to-peer network client is sent; If so, next step is performed; S50 sets current address to being optimal path; S60 stops checking circulation.
Further preferred, described candidate site comprises the IP address of candidate site, transmit port and receiving port.
The present invention also provides another kind of P2P to connect the method for building up in the path that NAT passes through, and carry out NAT between another peer-to-peer network client to pass through complete trails and select, comprise step: S01 collects the candidate site of this client NAT main frame, and priority is set for each described candidate site, transmission comprises the unpaired message of candidate site and priority to another peer-to-peer network client; S02 receives the unpaired message of another peer-to-peer network client, and the unpaired message of another peer-to-peer network client described comprises candidate site and the priority of another peer-to-peer network client NAT main frame; S03 is in conjunction with the unpaired message of this client with another peer-to-peer network client, pairing calculated address pair is carried out according to the candidate site of this client NAT main frame and the candidate site of priority and another peer-to-peer network client NAT main frame and priority, and according to the address identical with another peer-to-peer network client to priority algorithm to described address to sorting, generate examine address to inventory; S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check; S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path; S30 monitors this client NAT main frame; S351 judges whether to receive the route inspection request message that another peer-to-peer network client is sent; If so, step S352 is performed; S352 checks response message to another peer-to-peer network client transmit path; Otherwise, perform step S40; S40 judges whether to receive the route inspection response message that another peer-to-peer network client is sent; If so, next step is performed; S50 sets current address to being optimal path; S60 stops checking circulation.
The present invention also provides another kind of P2P to connect the method for building up in the path that NAT passes through, and carry out NAT between another peer-to-peer network client to pass through complete trails and select, comprise step: S01 collects the candidate site of this client NAT main frame, and priority is set for each described candidate site, transmission comprises the unpaired message of candidate site and priority to another peer-to-peer network client; S02 receives the unpaired message of another peer-to-peer network client, and the unpaired message of another peer-to-peer network client described comprises candidate site and the priority of another peer-to-peer network client NAT main frame; S03 is in conjunction with the unpaired message of this client with another peer-to-peer network client, pairing calculated address pair is carried out according to the candidate site of this client NAT main frame and the candidate site of priority and another peer-to-peer network client NAT main frame and priority, and according to the address identical with another peer-to-peer network client to priority algorithm to described address to sorting, generate examine address to inventory; S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check; S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path; S30 monitors this client NAT main frame; S351 judges whether to receive the route inspection request message that another peer-to-peer network client is sent; If so, step S352 is performed; S352 checks response message to another peer-to-peer network client transmit path; Otherwise, perform step S40; S40 judges whether to receive the route inspection response message that another peer-to-peer network client is sent; If so, step S50 is performed; S50 sets current address to be optimal path, and performs step S60 and stop checking and circulate; Otherwise, perform step S451; Step S451, when not hearing the route inspection response message or route inspection request message that another peer-to-peer network client sends, judges that whether the right route inspection request in current address is overtime, if so, execution step S452 further; Otherwise, repeated execution of steps S30; S452 judges that all examine addresses are complete to whether checking, if so, then performs step S60 and stops checking circulation, otherwise repeated execution of steps S10.
The present invention also provides another kind of P2P to connect the method for building up in the path that NAT passes through, and carry out NAT between another peer-to-peer network client to pass through complete trails and select, comprise step: S01 collects the candidate site of this client NAT main frame, and priority is set for each described candidate site, transmission comprises the unpaired message of candidate site and priority to another peer-to-peer network client; S02 receives the unpaired message of another peer-to-peer network client, and the unpaired message of another peer-to-peer network client described comprises candidate site and the priority of another peer-to-peer network client NAT main frame; S03 is in conjunction with the unpaired message of this client with another peer-to-peer network client, pairing calculated address pair is carried out according to the candidate site of this client NAT main frame and the candidate site of priority and another peer-to-peer network client NAT main frame and priority, and according to the address identical with another peer-to-peer network client to priority algorithm to described address to sorting, generate examine address to inventory; S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check; S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path; S30 monitors this client NAT main frame and whether receives UDP message; When this client NAT main frame receives UDP message, according to the path of current check, judge that whether the source address in UDP message is consistent with the path of this client current check; When the source address in UDP message is consistent with the path of current check, perform step S351; S40 judges whether to receive the route inspection response message that another peer-to-peer network client is sent; If so, next step is performed; S50 sets current address to be optimal path, and performs step S60 and stop checking and circulate; S351 judges whether to receive the route inspection request message that another peer-to-peer network client is sent; If so, next step is performed; S352 checks response message to another peer-to-peer network client transmit path; S451, when not hearing the route inspection response message or route inspection request message that another peer-to-peer network client sends, judges that whether the right route inspection request in current address is overtime further, if so, performs next step; Otherwise repeated execution of steps S30; S452 judges that all examine addresses are complete to whether checking, if so, then performs step S60 and stops checking circulation, otherwise repeated execution of steps S10.
The present invention also discloses the apparatus for establishing that a kind of P2P connects the path that NAT passes through, and carry out NAT between another reciprocity apparatus for establishing to pass through complete trails and select, comprise: path selection module, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check; Sending module, for the path according to current check, checks request message to another reciprocity apparatus for establishing transmit path; Monitor module, for monitoring this apparatus for establishing NAT main frame; Judge module, for judging the route inspection response message whether this apparatus for establishing NAT main frame receives another reciprocity apparatus for establishing and send; Optimal path setting module, for when the route inspection response message that monitoring reception sends to another reciprocity apparatus for establishing, setting current address is to being optimal path; Stopping modular, for stopping checking circulation after for optimal path when setting current address.
The present invention also discloses a kind of P2P and connects the apparatus for establishing in path that NAT passes through, and comprising: path selection module, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check; Sending module, for the path according to current check, checks request message to another reciprocity apparatus for establishing transmit path; Monitor module, for monitoring this apparatus for establishing NAT main frame; Judge module, for judging the route inspection response message whether this apparatus for establishing NAT main frame receives another reciprocity apparatus for establishing and send; Optimal path setting module, for when the route inspection response message that monitoring reception sends to another reciprocity apparatus for establishing, setting current address is to being optimal path; Stopping modular, for stopping checking circulation after for optimal path when setting current address; Address, to setting up module, for collecting the candidate site of this apparatus for establishing NAT main frame, and arranges priority for each described candidate site, and transmission comprises the unpaired message of candidate site and priority to another reciprocity apparatus for establishing; Receive the unpaired message of another reciprocity apparatus for establishing, the unpaired message of another reciprocity apparatus for establishing described comprises candidate site and the priority of another reciprocity apparatus for establishing NAT main frame; In conjunction with the unpaired message of this apparatus for establishing with another reciprocity apparatus for establishing, pairing calculated address pair is carried out according to the candidate site of this apparatus for establishing NAT main frame and the candidate site of priority and another reciprocity apparatus for establishing NAT main frame and priority, and according to the address identical with another reciprocity apparatus for establishing to priority algorithm to described address to sorting, generate examine address to inventory.
The present invention also discloses a kind of P2P and connects the apparatus for establishing in path that NAT passes through, and comprising: path selection module, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check; Sending module, for the path according to current check, request message is checked to another reciprocity apparatus for establishing transmit path, described sending module, also for when the route inspection request message that described monitoring module monitoring reception sends to another reciprocity apparatus for establishing, checks response message to another reciprocity apparatus for establishing transmit path; Monitor module, for monitoring this apparatus for establishing NAT main frame; Judge module, for judging the route inspection response message whether this apparatus for establishing NAT main frame receives another reciprocity apparatus for establishing and send, described judge module, also for when not receiving the route inspection response message that another reciprocity apparatus for establishing sends, judges whether to receive the route inspection request message that another reciprocity apparatus for establishing sends further; Optimal path setting module, for when the route inspection response message that monitoring reception sends to another reciprocity apparatus for establishing, setting current address is to being optimal path; Stopping modular, for stopping checking circulation after for optimal path when setting current address.
The present invention also discloses a kind of P2P and connects the apparatus for establishing in path that NAT passes through, and comprising: path selection module, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check; Sending module, for the path according to current check, request message is checked to another reciprocity apparatus for establishing transmit path, described sending module, also for when the route inspection request message that described monitoring module monitoring reception sends to another reciprocity apparatus for establishing, checks response message to another reciprocity apparatus for establishing transmit path; Monitor module, for monitoring this apparatus for establishing NAT main frame; Judge module, for judging the route inspection response message whether this apparatus for establishing NAT main frame receives another reciprocity apparatus for establishing and send, described judge module, also for when not receiving the route inspection response message that another reciprocity apparatus for establishing sends, judges whether to receive the route inspection request message that another reciprocity apparatus for establishing sends further; Optimal path setting module, for when the route inspection response message that monitoring reception sends to another reciprocity apparatus for establishing, setting current address is to being optimal path; Stopping modular, for stopping checking circulation after for optimal path when setting current address; Time-out judge module, during for not hearing route inspection response message or route inspection request message that another reciprocity apparatus for establishing sends when described monitoring module, judges that whether the right route inspection request in current address is overtime; Described monitoring module is also for monitoring this apparatus for establishing NAT main frame when described overtime judge module judged result is no; Checking judge module, during for described overtime judge module judged result for being, judging that all examine addresses are complete to whether checking; Described stopping modular, also for when described inspection judge module judged result is for being, stops checking circulation; Described path selection module also for the highest address of still unchecked priority in select examine address to inventory when described inspection judge module judged result is no to the path as current check.
The present invention also discloses a kind of P2P and connects the apparatus for establishing in path that NAT passes through, and comprising: path selection module, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check; Sending module, for the path according to current check, check request message to another reciprocity apparatus for establishing transmit path, when described sending module is also route inspection request message for described UDP message, check response message to another reciprocity apparatus for establishing transmit path; Monitor module, for monitoring this apparatus for establishing NAT main frame; Judge module, during for judging that when source address submodule judges that whether source address in the UDP message received is consistent with the path of this apparatus for establishing current check, judge UDP type of message, described judge module is specifically for judging the route inspection response message whether this apparatus for establishing NAT main frame receives another reciprocity apparatus for establishing and send, and also for when not receiving the route inspection response message that another reciprocity apparatus for establishing sends, judge whether to receive the route inspection request message that another reciprocity apparatus for establishing sends further; Optimal path setting module, for when described UDP message is route inspection response message, setting current address is to being optimal path; Described monitoring module specifically comprises message monitoring submodule, whether receives UDP message for monitoring this apparatus for establishing NAT main frame; Source address judges submodule, for when monitoring this apparatus for establishing NAT main frame and receiving UDP message, judges that whether the source address in the UDP message received is consistent with the path of this apparatus for establishing current check; Stopping modular, for stopping checking circulation after for optimal path when setting current address; Time-out judge module, during for not hearing route inspection response message or route inspection request message that another reciprocity apparatus for establishing sends when described monitoring module, judges that whether the right route inspection request in current address is overtime; Described monitoring module is also for monitoring this apparatus for establishing NAT main frame when described overtime judge module judged result is no; Checking judge module, during for described overtime judge module judged result for being, judging that all examine addresses are complete to whether checking; Described stopping modular, also for when described inspection judge module judged result is for being, stops checking circulation; Described path selection module also for the highest address of still unchecked priority in select examine address to inventory when described inspection judge module judged result is no to the path as current check.
What the present invention also disclosed a kind of P2P access path sets up system, comprises the apparatus for establishing that at least two above-mentioned P2P connect the path that NAT passes through, and passes through complete trails select for carrying out NAT wherein between any two apparatus for establishing.
The mode that the present invention matches with address, monitors two ports, the inspection of single treatment a pair address simultaneously.Algorithmically according to pre-set priority to all addresses to sorting, from the high address of priority to check, once address is to checking successfully, stop checking, and arrange current address to being optimal path, otherwise continue to check until all addresses are complete to all checking.Compared with prior art, the present invention improves the method efficiency of Path selection when NAT passes through and the efficiency of transmission of file.
Accompanying drawing explanation
Below by clearly understandable mode, accompanying drawings preferred implementation, connects the method for building up in the path that NAT passes through, the above-mentioned characteristic of Apparatus and system, technical characteristic, advantage and implementation thereof to a kind of P2P and is further described.
Fig. 1 is the key step schematic diagram that a kind of P2P of the present invention connects the method for building up in the path that NAT passes through;
Fig. 2 is the entire protocol schematic diagram that a kind of P2P of the present invention connects the method for building up in the path that NAT passes through;
Fig. 3 is the flow chart that a kind of P2P of the present invention connects the method for building up in the path that NAT passes through;
Fig. 4 is the main composition structural representation that a kind of P2P of the present invention connects the apparatus for establishing in the path that NAT passes through;
Fig. 5 be a kind of P2P of the present invention connect the apparatus for establishing in the path that NAT passes through be fully composed structural representation;
Drawing reference numeral illustrates:
100. sending module, 200. path selection module, 300. monitor module, 301. message monitoring submodules, and 302 source addresses judge submodule, 400. judge module, 500. optimal path setting modules, 600. stopping modulars, 700. addresses are to setting up module, 800. overtime judge modules, 900. check judge module.
Embodiment
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, contrast accompanying drawing is illustrated the specific embodiment of the present invention below.Apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings, and obtain other execution mode.
For making simplified form, only schematically show part related to the present invention in each figure, they do not represent its practical structures as product.In addition, be convenient to make simplified form understand, there are the parts of same structure or function in some figure, only schematically depict one of them, or only marked one of them.In this article, " one " not only represents " only this ", also can represent the situation of " more than one ".
Fig. 1 is the key step schematic diagram that a kind of P2P of the present invention connects the method for building up in the path that NAT passes through, as a specific embodiment of the present invention, as shown in Figure 1, a kind of P2P connects the method for building up in the path that NAT passes through, and carry out NAT between another peer-to-peer network client to pass through complete trails and select, comprise step: S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check; S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path; S30 monitors this client NAT main frame; S40 judges whether to receive the route inspection response message that another peer-to-peer network client is sent; If so, next step is performed; S50 sets current address to being optimal path; S60 stops checking circulation.
Fig. 2 is the entire protocol schematic diagram that a kind of P2P of the present invention connects the method for building up in the path that NAT passes through.Above-described embodiment is improved, obtain the method for building up that another kind of P2P connects the path that NAT passes through, and carry out NAT between another peer-to-peer network client to pass through complete trails and select, comprise step: S01 collects the candidate site of this client NAT main frame, and priority is set for each described candidate site, transmission comprises the unpaired message of candidate site and priority to another peer-to-peer network client; S02 receives the unpaired message of another peer-to-peer network client, and the unpaired message of another peer-to-peer network client described comprises candidate site and the priority of another peer-to-peer network client NAT main frame; S03 is in conjunction with the unpaired message of this client with another peer-to-peer network client, pairing calculated address pair is carried out according to the candidate site of this client NAT main frame and the candidate site of priority and another peer-to-peer network client NAT main frame and priority, and according to the address identical with another peer-to-peer network client to priority algorithm to described address to sorting, generate examine address to inventory; S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check; S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path; S30 monitors this client NAT main frame; S40 judges whether to receive the route inspection response message that another peer-to-peer network client is sent; If so, next step is performed; S50 sets current address to being optimal path; S60 stops checking circulation.
Optionally, described candidate site comprises the IP address of candidate site, transmit port and receiving port.
Above-described embodiment is improved, obtain the method for building up that another kind of P2P connects the path that NAT passes through, and carry out NAT between another peer-to-peer network client to pass through complete trails and select, comprise step: S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check; S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path; S30 monitors this client NAT main frame; S40 judges whether to receive the route inspection response message that another peer-to-peer network client is sent; If so, next step is performed; S50 sets current address to be optimal path, and performs step S60 and stop checking and circulate; Otherwise S351 judges whether to receive the route inspection request message that another peer-to-peer network client is sent; If so, next step is performed; S352 checks response message to another peer-to-peer network client transmit path; Otherwise S451, when not hearing the route inspection response message or route inspection request message that another peer-to-peer network client sends, judges that whether the right route inspection request in current address is overtime further, if so, performs next step; Otherwise, repeated execution of steps S30; S452 judges that all examine addresses are complete to whether checking, if so, then performs step S60 and stops checking circulation, otherwise repeated execution of steps S10.
Socket is set at every turn and monitors two right ports of examine address, so just can process the inspection of a pair address simultaneously.
Above-described embodiment is improved, obtain the method for building up that another kind of P2P connects the path that NAT passes through, and carry out NAT between another peer-to-peer network client to pass through complete trails and select, comprise step: S01 collects the candidate site of this client NAT main frame, and priority is set for each described candidate site, transmission comprises the unpaired message of candidate site and priority to another peer-to-peer network client; S02 receives the unpaired message of another peer-to-peer network client, and the unpaired message of another peer-to-peer network client described comprises candidate site and the priority of another peer-to-peer network client NAT main frame; S03 is in conjunction with the unpaired message of this client with another peer-to-peer network client, pairing calculated address pair is carried out according to the candidate site of this client NAT main frame and the candidate site of priority and another peer-to-peer network client NAT main frame and priority, and according to the address identical with another peer-to-peer network client to priority algorithm to described address to sorting, generate examine address to inventory; S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check; S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path; S30 monitors this client NAT main frame; S40 judges whether to receive the route inspection response message that another peer-to-peer network client is sent; If so, next step is performed; S50 sets current address to be optimal path, and performs step S60 and stop checking and circulate; Otherwise S351 judges whether to receive the route inspection request message that another peer-to-peer network client is sent; If so, next step is performed; S352 checks response message to another peer-to-peer network client transmit path; Otherwise S451, when not hearing the route inspection response message or route inspection request message that another peer-to-peer network client sends, judges that whether the right route inspection request in current address is overtime further, if so, performs next step; Otherwise, repeated execution of steps S30; S452 judges that all examine addresses are complete to whether checking, if so, then performs step S60 and stops checking circulation, otherwise repeated execution of steps S10.
The present invention also provides another kind of P2P to connect the method for building up in the path that NAT passes through, and carry out NAT between another peer-to-peer network client to pass through complete trails and select, comprise step: S01 collects the candidate site of this client NAT main frame, and priority is set for each described candidate site, transmission comprises the unpaired message of candidate site and priority to another peer-to-peer network client; S02 receives the unpaired message of another peer-to-peer network client, and the unpaired message of another peer-to-peer network client described comprises candidate site and the priority of another peer-to-peer network client NAT main frame; S03 is in conjunction with the unpaired message of this client with another peer-to-peer network client, pairing calculated address pair is carried out according to the candidate site of this client NAT main frame and the candidate site of priority and another peer-to-peer network client NAT main frame and priority, and according to the address identical with another peer-to-peer network client to priority algorithm to described address to sorting, generate examine address to inventory; S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check; S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path; S30 monitors this client NAT main frame; S351 judges whether to receive the route inspection request message that another peer-to-peer network client is sent; If so, step S352 is performed; S352 checks response message to another peer-to-peer network client transmit path; Otherwise, perform step S40; S40 judges whether to receive the route inspection response message that another peer-to-peer network client is sent; If so, step S50 is performed; S50 sets current address to be optimal path, and performs step S60 and stop checking and circulate; Otherwise, perform step S451; Step S451, when not hearing the route inspection response message or route inspection request message that another peer-to-peer network client sends, judges that whether the right route inspection request in current address is overtime, if so, execution step S452 further; Otherwise, repeated execution of steps S30; S452 judges that all examine addresses are complete to whether checking, if so, then performs step S60 and stops checking circulation, otherwise repeated execution of steps S10.
Above-described embodiment is improved, obtain the method for building up that another kind of P2P connects the path that NAT passes through, and carry out NAT between another peer-to-peer network client to pass through complete trails and select, comprise step: S01 collects the candidate site of this client NAT main frame, and priority is set for each described candidate site, transmission comprises the unpaired message of candidate site and priority to another peer-to-peer network client; S02 receives the unpaired message of another peer-to-peer network client, and the unpaired message of another peer-to-peer network client described comprises candidate site and the priority of another peer-to-peer network client NAT main frame; S03 is in conjunction with the unpaired message of this client with another peer-to-peer network client, pairing calculated address pair is carried out according to the candidate site of this client NAT main frame and the candidate site of priority and another peer-to-peer network client NAT main frame and priority, and according to the address identical with another peer-to-peer network client to priority algorithm to described address to sorting, generate examine address to inventory; S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check; S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path; S30 monitors this client NAT main frame and whether receives UDP message; When this client NAT main frame receives UDP message, according to the path of current check, judge that whether the source address in UDP message is consistent with the path of this client current check; When the source address in UDP message is consistent with the path of current check, perform step S351; S40 judges whether to receive the route inspection response message that another peer-to-peer network client is sent; If so, next step is performed; S50 sets current address to be optimal path, and performs step S60 and stop checking and circulate; S351 judges whether to receive the route inspection request message that another peer-to-peer network client is sent; If so, next step is performed; S352 checks response message to another peer-to-peer network client transmit path; S451, when not hearing the route inspection response message or route inspection request message that another peer-to-peer network client sends, judges that whether the right route inspection request in current address is overtime further, if so, performs next step; Otherwise repeated execution of steps S30; S452 judges that all examine addresses are complete to whether checking, if so, then performs step S60 and stops checking circulation, otherwise repeated execution of steps S10.
Fig. 3 is the flow chart that a kind of P2P of the present invention connects the method for building up in the path that NAT passes through.As shown in Figure 3:
Start;
S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check.
S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path.
S30 monitors this client NAT main frame.
S351 judges whether to receive route inspection request message; If so, then perform step S352 transmit path and check response message; Otherwise perform next step.
S40 judges whether to receive route inspection response message; If so, then perform step S50, and perform step S60; Otherwise, perform step S451.
S451 judges that whether the right route inspection request in current address is overtime; If so, then step S452 is performed; Otherwise repeated execution of steps S30.
S452 judges that all examine addresses are complete to whether checking; If so, then perform step S60 to stop checking circulation; Otherwise, repeated execution of steps S10.
S50 sets current address to being optimal path.
S60 stops checking circulation.
Fig. 4 is the composition schematic diagram that a kind of P2P of the present invention connects the apparatus for establishing in the path that NAT passes through, as another specific embodiment of the present invention, as shown in Figure 4, a kind of P2P connects the apparatus for establishing in the path that NAT passes through, and carry out NAT between another reciprocity apparatus for establishing to pass through complete trails and select, comprise: path selection module 200, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check; Sending module 100, for the path according to current check, checks request message to another reciprocity apparatus for establishing transmit path; Monitor module 300, for monitoring this apparatus for establishing NAT main frame; Judge module 400, for judging the route inspection response message whether this apparatus for establishing NAT main frame receives another reciprocity apparatus for establishing and send; Optimal path setting module 500, for when the route inspection response message that monitoring reception sends to another reciprocity apparatus for establishing, setting current address is to being optimal path; Stopping modular 600, for stopping checking circulation after for optimal path when setting current address.
Fig. 5 be a kind of P2P of the present invention connect the apparatus for establishing in the path that NAT passes through be fully composed structural representation.Above-described embodiment is improved, obtain the apparatus for establishing that another kind of P2P connects the path that NAT passes through, as shown in Figure 5, comprising: path selection module 200, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check; Sending module 100, for the path according to current check, checks request message to another reciprocity apparatus for establishing transmit path; Monitor module 300, for monitoring this apparatus for establishing NAT main frame; Judge module 400, for judging the route inspection response message whether this apparatus for establishing NAT main frame receives another reciprocity apparatus for establishing and send; Optimal path setting module 500, for when the route inspection response message that monitoring reception sends to another reciprocity apparatus for establishing, setting current address is to being optimal path; Stopping modular 600, for stopping checking circulation after for optimal path when setting current address; Address, to setting up module 700, for collecting the candidate site of this apparatus for establishing NAT main frame, and arranges priority for each described candidate site, and transmission comprises the unpaired message of candidate site and priority to another reciprocity apparatus for establishing; Receive the unpaired message of another reciprocity apparatus for establishing, the unpaired message of another reciprocity apparatus for establishing described comprises candidate site and the priority of another reciprocity apparatus for establishing NAT main frame; In conjunction with the unpaired message of this apparatus for establishing with another reciprocity apparatus for establishing, pairing calculated address pair is carried out according to the candidate site of this apparatus for establishing NAT main frame and the candidate site of priority and another reciprocity apparatus for establishing NAT main frame and priority, and according to the address identical with another reciprocity apparatus for establishing to priority algorithm to described address to sorting, generate examine address to inventory.
Above-described embodiment is improved, obtain the apparatus for establishing that another kind of P2P connects the path that NAT passes through, and carry out NAT between another reciprocity apparatus for establishing to pass through complete trails and select, comprise: path selection module 200, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check; Sending module 100, for the path according to current check, checks request message to another reciprocity apparatus for establishing transmit path; Monitor module 300, for monitoring this apparatus for establishing NAT main frame; Judge module 400, for judging the route inspection response message whether this apparatus for establishing NAT main frame receives another reciprocity apparatus for establishing and send; Optimal path setting module 500, for when the route inspection response message that monitoring reception sends to another reciprocity apparatus for establishing, setting current address is to being optimal path; Stopping modular 600, for stopping checking circulation after for optimal path when setting current address; Address, to setting up module 700, for collecting the candidate site of this apparatus for establishing NAT main frame, and arranges priority for each described candidate site, and transmission comprises the unpaired message of candidate site and priority to another reciprocity apparatus for establishing; Receive the unpaired message of another reciprocity apparatus for establishing, the unpaired message of another reciprocity apparatus for establishing described comprises candidate site and the priority of another reciprocity apparatus for establishing NAT main frame; In conjunction with the unpaired message of this apparatus for establishing with another reciprocity apparatus for establishing, pairing calculated address pair is carried out according to the candidate site of this apparatus for establishing NAT main frame and the candidate site of priority and another reciprocity apparatus for establishing NAT main frame and priority, and according to the address identical with another reciprocity apparatus for establishing to priority algorithm to described address to sorting, generate examine address to inventory; Described judge module 400, also for when not receiving the route inspection response message that another reciprocity apparatus for establishing sends, judges whether to receive the route inspection request message that another reciprocity apparatus for establishing sends further; Described sending module 100, also for when the route inspection request message that described monitoring module 300 monitoring reception sends to another reciprocity apparatus for establishing, checks response message to another reciprocity apparatus for establishing transmit path.
Above-described embodiment is improved, obtain the apparatus for establishing that another kind of P2P connects the path that NAT passes through, as shown in Figure 5, comprising: path selection module 200, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check; Sending module 100, for the path according to current check, request message is checked to another reciprocity apparatus for establishing transmit path, described sending module 100, also for when the route inspection request message that described monitoring module 300 monitoring reception sends to another reciprocity apparatus for establishing, checks response message to another reciprocity apparatus for establishing transmit path; Monitor module 300, for monitoring this apparatus for establishing NAT main frame; Judge module 400, for judging the route inspection response message whether this apparatus for establishing NAT main frame receives another reciprocity apparatus for establishing and send, described judge module 400, also for when not receiving the route inspection response message that another reciprocity apparatus for establishing sends, judges whether to receive the route inspection request message that another reciprocity apparatus for establishing sends further; Optimal path setting module 500, for when the route inspection response message that monitoring reception sends to another reciprocity apparatus for establishing, setting current address is to being optimal path; Stopping modular 600, for stopping checking circulation after for optimal path when setting current address.
Above-described embodiment is improved, obtain the apparatus for establishing that another kind of P2P connects the path that NAT passes through, as shown in Figure 5, comprising: path selection module 200, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check; Sending module 100, for the path according to current check, request message is checked to another reciprocity apparatus for establishing transmit path, described sending module 100, also for when the route inspection request message that described monitoring module 300 monitoring reception sends to another reciprocity apparatus for establishing, checks response message to another reciprocity apparatus for establishing transmit path; Monitor module 300, for monitoring this apparatus for establishing NAT main frame; Judge module 400, for judging the route inspection response message whether this apparatus for establishing NAT main frame receives another reciprocity apparatus for establishing and send, described judge module 400, also for when not receiving the route inspection response message that another reciprocity apparatus for establishing sends, judges whether to receive the route inspection request message that another reciprocity apparatus for establishing sends further; Optimal path setting module 500, for when the route inspection response message that monitoring reception sends to another reciprocity apparatus for establishing, setting current address is to being optimal path; Stopping modular 600, for stopping checking circulation after for optimal path when setting current address; Time-out judge module 800, during for not hearing route inspection response message or route inspection request message that another reciprocity apparatus for establishing sends when described monitoring module 300, judges that whether the right route inspection request in current address is overtime; Described monitoring module 300 is also for monitoring this apparatus for establishing NAT main frame when described overtime judge module 800 judged result is no; Checking judge module 900, during for described overtime judge module 800 judged result for being, judging that all examine addresses are complete to whether checking; Described stopping modular 600, also for when described inspection judge module 900 judged result is for being, stops checking circulation; Described path selection module 200 also for the highest address of still unchecked priority in select examine address to inventory when described inspection judge module 900 judged result is no to the path as current check.
Preferably, in above-described embodiment, the apparatus for establishing in the path that P2P connection NAT passes through also comprises address to setting up module 700, for collecting the candidate site of this apparatus for establishing NAT main frame, and priority is set for each described candidate site, transmission comprises the unpaired message of candidate site and priority to another reciprocity apparatus for establishing; Receive the unpaired message of another reciprocity apparatus for establishing, the unpaired message of another reciprocity apparatus for establishing described comprises candidate site and the priority of another reciprocity apparatus for establishing NAT main frame; In conjunction with the unpaired message of this apparatus for establishing with another reciprocity apparatus for establishing, pairing calculated address pair is carried out according to the candidate site of this apparatus for establishing NAT main frame and the candidate site of priority and another reciprocity apparatus for establishing NAT main frame and priority, and according to the address identical with another reciprocity apparatus for establishing to priority algorithm to described address to sorting, generate examine address to inventory.
Above-described embodiment is improved, obtain the apparatus for establishing that another kind of P2P connects the path that NAT passes through, as shown in Figure 5, comprising: path selection module 200, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check, sending module 100, for the path according to current check, check request message to another reciprocity apparatus for establishing transmit path, when described sending module 100 is also route inspection request message for described UDP message, check response message to another reciprocity apparatus for establishing transmit path, monitor module 300, for monitoring this apparatus for establishing NAT main frame, judge module 400, during for judging that when source address submodule 302 judges that whether source address in the UDP message received is consistent with the path of this apparatus for establishing current check, judge UDP type of message, described judge module 400 is specifically for judging the route inspection response message whether this apparatus for establishing NAT main frame receives another reciprocity apparatus for establishing and send, and also for when not receiving the route inspection response message that another reciprocity apparatus for establishing sends, judge whether to receive the route inspection request message that another reciprocity apparatus for establishing sends further, optimal path setting module 500, for when described UDP message is route inspection response message, setting current address is to being optimal path, described monitoring module 300 specifically comprises message monitoring submodule 301, whether receives UDP message for monitoring this apparatus for establishing NAT main frame, source address judges submodule 302, for when monitoring this apparatus for establishing NAT main frame and receiving UDP message, judges that whether the source address in the UDP message received is consistent with the path of this apparatus for establishing current check, stopping modular 600, for stopping checking circulation after for optimal path when setting current address, time-out judge module 800, during for not hearing route inspection response message or route inspection request message that another reciprocity apparatus for establishing sends when described monitoring module 300, judges that whether the right route inspection request in current address is overtime, described monitoring module 300 is also for monitoring this apparatus for establishing NAT main frame when described overtime judge module 800 judged result is no, checking judge module 900, during for described overtime judge module 800 judged result for being, judging that all examine addresses are complete to whether checking, described stopping modular 600, also for when described inspection judge module 900 judged result is for being, stops checking circulation, described path selection module 200 also for the highest address of still unchecked priority in select examine address to inventory when described inspection judge module 900 judged result is no to the path as current check.
Preferably, in above-described embodiment of above-described embodiment, P2P connects the apparatus for establishing in the path that NAT passes through, also comprise address to setting up module 700, for collecting the candidate site of this apparatus for establishing NAT main frame, and priority is set for each described candidate site, transmission comprises the unpaired message of candidate site and priority to another reciprocity apparatus for establishing; Receive the unpaired message of another reciprocity apparatus for establishing, the unpaired message of another reciprocity apparatus for establishing described comprises candidate site and the priority of another reciprocity apparatus for establishing NAT main frame; In conjunction with the unpaired message of this apparatus for establishing with another reciprocity apparatus for establishing, pairing calculated address pair is carried out according to the candidate site of this apparatus for establishing NAT main frame and the candidate site of priority and another reciprocity apparatus for establishing NAT main frame and priority, and according to the address identical with another reciprocity apparatus for establishing to priority algorithm to described address to sorting, generate examine address to inventory.
P2P access path set up a system, comprise the apparatus for establishing that at least two above-mentioned P2P connect the path that NAT passes through, pass through complete trails select for carrying out NAT wherein between any two apparatus for establishing.
It should be noted that above-described embodiment all can independent assortment as required.The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (12)
1. P2P connects the method for building up in path that NAT passes through, and carries out NAT between another peer-to-peer network client and pass through complete trails and select, and it is characterized in that, comprises step:
S10 selects examine address to the highest address of priority still unchecked in inventory to the path as current check;
S20, according to the path of current check, checks request message to another peer-to-peer network client transmit path;
S30 monitors this client NAT main frame;
S40 judges the route inspection response message whether this client NAT main frame receives another peer-to-peer network client and send;
S50 works as the route inspection response message receiving another peer-to-peer network client and send, and setting current address is to being optimal path;
S60 stops checking circulation.
2. P2P as claimed in claim 1 connects the method for building up in the path that NAT passes through, and it is characterized in that,
Also step is comprised before described step S10:
S01 collects the candidate site of this client NAT main frame, and arranges priority for each described candidate site, and transmission comprises the unpaired message of candidate site and priority to another peer-to-peer network client;
S02 receives the unpaired message of another peer-to-peer network client, and the unpaired message of another peer-to-peer network client described comprises candidate site and the priority of another peer-to-peer network client NAT main frame;
S03 is in conjunction with the unpaired message of this client with another peer-to-peer network client, pairing calculated address pair is carried out according to the candidate site of this client NAT main frame and the candidate site of priority and another peer-to-peer network client NAT main frame and priority, and according to the address identical with another peer-to-peer network client to priority algorithm to described address to sorting, generate examine address to inventory.
3. the requesting method of P2P access path as claimed in claim 2, is characterized in that, described candidate site comprises the IP address of candidate site, transmit port and receiving port.
4. the P2P as described in claim 1-3 any one claim connects the method for building up in the path that NAT passes through, and it is characterized in that,
Also step is comprised between described step S30 and S40:
S351 judges whether to receive the route inspection request message that another peer-to-peer network client is sent; If so, next step is performed; Otherwise perform step S40;
S352 checks response message to another peer-to-peer network client transmit path.
5. P2P as claimed in claim 4 connects the method for building up in the path that NAT passes through, and it is characterized in that,
After described step S40, when not hearing the route inspection response message that another peer-to-peer network client is sent, also comprise execution step:
S451 judges that whether the right route inspection request in current address is overtime, if so, performs next step; Otherwise repeated execution of steps S30;
S452 judges that all examine addresses are complete to whether checking, if so, then performs step S60 and stops checking circulation, otherwise repeated execution of steps S10.
6. P2P as claimed in claim 5 connects the method for building up in the path that NAT passes through, and it is characterized in that,
Described step S30 monitors this client NAT main frame and specifically comprises:
Monitor this client NAT main frame and whether receive UDP message;
When this client NAT main frame receives UDP message, according to the path of current check, judge that whether the source address in UDP message is consistent with the path of this client current check;
When the source address in UDP message is consistent with the path of current check, perform step S351.
7. P2P connects the apparatus for establishing in path that NAT passes through, and carries out NAT between another reciprocity apparatus for establishing and pass through complete trails and select, and it is characterized in that, comprising:
Path selection module, for selecting examine address to the highest address of priority still unchecked in inventory to the path as current check;
Sending module, for the path according to current check, checks request message to another reciprocity apparatus for establishing transmit path;
Monitor module, for monitoring the NAT main frame of this apparatus for establishing;
Judge module, for judging the route inspection response message whether the NAT main frame of this apparatus for establishing receives another reciprocity apparatus for establishing and send;
Optimal path setting module, for when the route inspection response message that monitoring reception sends to another reciprocity apparatus for establishing, setting current address is to being optimal path;
Stopping modular, for stopping checking circulation after for optimal path when setting current address.
8. P2P as claimed in claim 7 connects the apparatus for establishing in the path that NAT passes through, and it is characterized in that, also comprises:
Address, to setting up module, for collecting the candidate site of the NAT main frame of this apparatus for establishing, and arranges priority for each described candidate site, and transmission comprises the unpaired message of candidate site and priority to another reciprocity apparatus for establishing; Receive the unpaired message of another reciprocity apparatus for establishing, the unpaired message of another reciprocity apparatus for establishing described comprises candidate site and the priority of the NAT main frame of another reciprocity apparatus for establishing; In conjunction with the unpaired message of this apparatus for establishing with another reciprocity apparatus for establishing, pairing calculated address pair is carried out according to the candidate site of the NAT main frame of this apparatus for establishing and the candidate site of priority and another reciprocity apparatus for establishing NAT main frame and priority, and according to the address identical with another reciprocity apparatus for establishing to priority algorithm to described address to sorting, generate examine address to inventory.
9. P2P connects the apparatus for establishing in the path that NAT passes through as claimed in claim 7 or 8, it is characterized in that:
Described judge module, also for when not receiving the route inspection response message that another reciprocity apparatus for establishing sends, judges whether to receive the route inspection request message that another reciprocity apparatus for establishing sends further; Described sending module, also for when the route inspection request message that described monitoring module monitoring reception sends to another reciprocity apparatus for establishing, checks response message to another reciprocity apparatus for establishing transmit path.
10. P2P as claimed in claim 9 connects the apparatus for establishing in the path that NAT passes through, and it is characterized in that, also comprises:
Time-out judge module, during for not hearing route inspection response message or route inspection request message that another reciprocity apparatus for establishing sends when described monitoring module, judges that whether the right route inspection request in current address is overtime;
Described monitoring module is also for monitoring the NAT main frame of this apparatus for establishing when described overtime judge module judged result is no;
Checking judge module, during for described overtime judge module judged result for being, judging that all examine addresses are complete to whether checking;
Described stopping modular, also for when described inspection judge module judged result is for being, stops checking circulation;
Described path selection module also for the highest address of still unchecked priority in select examine address to inventory when described inspection judge module judged result is no to the path as current check.
11. P2P as claimed in claim 10 connect the apparatus for establishing in the path that NAT passes through, and it is characterized in that, described monitoring module comprises:
Whether message monitoring submodule, receive UDP message for the NAT main frame monitoring this apparatus for establishing;
Source address judges submodule, during for receiving UDP message when the NAT main frame listening to this apparatus for establishing, judges that whether the source address in the UDP message received is consistent with the path of this apparatus for establishing current check;
When described judge module is specifically for judging that when source address submodule judges that source address in the UDP message received is consistent with the path of this apparatus for establishing current check, judge UDP type of message;
When described optimal path setting module is specifically for judging that described UDP message is route inspection response message when described judge module, setting current address is to being optimal path;
When described sending module is specifically for judging that described UDP message is route inspection request message when described judge module, check response message to another reciprocity apparatus for establishing transmit path.
12. 1 kinds of P2P access paths set up system, it is characterized in that, comprising the apparatus for establishing that at least two P2P as described in claim 7-11 any one connect the path that NAT passes through, passing through complete trails selection for carrying out NAT wherein between any two apparatus for establishing.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510611702.8A CN105262853A (en) | 2015-09-23 | 2015-09-23 | Method, device and system for establishing network address translation (NAT) traversal path of peer-to-peer (P2P) connection |
PCT/CN2016/097743 WO2017050109A1 (en) | 2015-09-23 | 2016-08-31 | Path establishment method, apparatus and system for p2p connection nat traversal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510611702.8A CN105262853A (en) | 2015-09-23 | 2015-09-23 | Method, device and system for establishing network address translation (NAT) traversal path of peer-to-peer (P2P) connection |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105262853A true CN105262853A (en) | 2016-01-20 |
Family
ID=55102357
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510611702.8A Pending CN105262853A (en) | 2015-09-23 | 2015-09-23 | Method, device and system for establishing network address translation (NAT) traversal path of peer-to-peer (P2P) connection |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105262853A (en) |
WO (1) | WO2017050109A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017050109A1 (en) * | 2015-09-23 | 2017-03-30 | 上海斐讯数据通信技术有限公司 | Path establishment method, apparatus and system for p2p connection nat traversal |
CN107580081A (en) * | 2017-09-18 | 2018-01-12 | 北京奇艺世纪科技有限公司 | A kind of NAT penetrating methods and device |
CN109951562A (en) * | 2019-03-29 | 2019-06-28 | 深圳市网心科技有限公司 | NAT penetrating method and system, electronic equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179581A (en) * | 2007-12-13 | 2008-05-14 | 北京邮电大学 | Method for performing media transmission using ICE relay candidate address |
CN101471965A (en) * | 2007-12-28 | 2009-07-01 | 华为技术有限公司 | Method for distributing local transmission address, medium gateway and medium gateway controller |
CN101778008A (en) * | 2009-01-12 | 2010-07-14 | 华为技术有限公司 | Method, device and system for performing conduction detection |
CN102075588A (en) * | 2009-11-24 | 2011-05-25 | ***通信集团公司 | Method and system for realizing network address translation (NAT) transversing and equipment |
CN102215121A (en) * | 2010-04-07 | 2011-10-12 | 苹果公司 | Apparatus and method for establishing and utilizing backup communication channels |
CN102281180A (en) * | 2011-07-14 | 2011-12-14 | 冶金自动化研究设计院 | Virtual network interface card (NIC) communication device applied in mutual communication of terminals in different local area networks |
CN103108054A (en) * | 2011-11-11 | 2013-05-15 | ***通信集团公司 | Method for penetrating through transit server and corresponding server and terminal and system |
CN103347099A (en) * | 2013-05-29 | 2013-10-09 | 华为技术有限公司 | Method and system for data interaction, and apparatuses |
CN103516729A (en) * | 2013-10-25 | 2014-01-15 | 深圳创维-Rgb电子有限公司 | Streaming media transmission method and system |
CN103957287A (en) * | 2014-04-25 | 2014-07-30 | 浙江大学城市学院 | Internet of things device P2P connection method based on NAT penetration adapter |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101242360B (en) * | 2008-03-13 | 2010-12-01 | 中兴通讯股份有限公司 | A network address conversion method and system based on priority queue |
CN102035900B (en) * | 2009-09-24 | 2015-05-06 | 日电(中国)有限公司 | NAT (network address translation) traversal method, system and relay server by relay mode |
CN105262853A (en) * | 2015-09-23 | 2016-01-20 | 上海斐讯数据通信技术有限公司 | Method, device and system for establishing network address translation (NAT) traversal path of peer-to-peer (P2P) connection |
-
2015
- 2015-09-23 CN CN201510611702.8A patent/CN105262853A/en active Pending
-
2016
- 2016-08-31 WO PCT/CN2016/097743 patent/WO2017050109A1/en active Application Filing
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179581A (en) * | 2007-12-13 | 2008-05-14 | 北京邮电大学 | Method for performing media transmission using ICE relay candidate address |
CN101471965A (en) * | 2007-12-28 | 2009-07-01 | 华为技术有限公司 | Method for distributing local transmission address, medium gateway and medium gateway controller |
CN101778008A (en) * | 2009-01-12 | 2010-07-14 | 华为技术有限公司 | Method, device and system for performing conduction detection |
CN102075588A (en) * | 2009-11-24 | 2011-05-25 | ***通信集团公司 | Method and system for realizing network address translation (NAT) transversing and equipment |
CN102215121A (en) * | 2010-04-07 | 2011-10-12 | 苹果公司 | Apparatus and method for establishing and utilizing backup communication channels |
CN102281180A (en) * | 2011-07-14 | 2011-12-14 | 冶金自动化研究设计院 | Virtual network interface card (NIC) communication device applied in mutual communication of terminals in different local area networks |
CN103108054A (en) * | 2011-11-11 | 2013-05-15 | ***通信集团公司 | Method for penetrating through transit server and corresponding server and terminal and system |
CN103347099A (en) * | 2013-05-29 | 2013-10-09 | 华为技术有限公司 | Method and system for data interaction, and apparatuses |
CN103516729A (en) * | 2013-10-25 | 2014-01-15 | 深圳创维-Rgb电子有限公司 | Streaming media transmission method and system |
CN103957287A (en) * | 2014-04-25 | 2014-07-30 | 浙江大学城市学院 | Internet of things device P2P connection method based on NAT penetration adapter |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017050109A1 (en) * | 2015-09-23 | 2017-03-30 | 上海斐讯数据通信技术有限公司 | Path establishment method, apparatus and system for p2p connection nat traversal |
CN107580081A (en) * | 2017-09-18 | 2018-01-12 | 北京奇艺世纪科技有限公司 | A kind of NAT penetrating methods and device |
CN109951562A (en) * | 2019-03-29 | 2019-06-28 | 深圳市网心科技有限公司 | NAT penetrating method and system, electronic equipment and storage medium |
CN109951562B (en) * | 2019-03-29 | 2020-12-25 | 深圳市网心科技有限公司 | NAT traversal method and system, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2017050109A1 (en) | 2017-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104735001B (en) | Link discovery method, apparatus and system in software defined network | |
CN102801623B (en) | Multi-access data transmitting method and device | |
CN102710811B (en) | Realize method and the switch of dhcp address safety distribution | |
US10623278B2 (en) | Reactive mechanism for in-situ operation, administration, and maintenance traffic | |
CN105262853A (en) | Method, device and system for establishing network address translation (NAT) traversal path of peer-to-peer (P2P) connection | |
US10813156B2 (en) | Method and apparatus for processing network connection | |
CN107623752B (en) | Network management method and device based on link layer | |
WO2015094040A1 (en) | Method and control node for handling data packets | |
CN107342885A (en) | Method of adjustment, device and the terminal device of terminal MTU | |
CN105337814A (en) | Network equipment connection method, equipment and system | |
CN104580029A (en) | Address distribution method and device | |
CN105634776B (en) | method and device for determining message forwarding interface | |
CN101277225A (en) | Method for analyzing network quality as well as network quality analysis terminal-initiating equipment | |
CN105099805A (en) | Bidirectional forwarding detection method and system | |
US20070230458A1 (en) | Communication Network, Communication Apparatus, Communication Control Method and Communication Control Program | |
CN107104892A (en) | The method and apparatus of network acceleration | |
CN105049543A (en) | P2P communication system and method crossing asymmetric NAT between intelligent routers | |
CN103188154B (en) | A kind of method of network address translation and board | |
CN110176964B (en) | Production test system and method of wireless equipment | |
CN111064814B (en) | VxLAN NAT traversal method, system and gateway based on PCP | |
CN111225080A (en) | Method for acquiring gateway down-hanging equipment information | |
CN110891082A (en) | Method, system and storage medium for connecting P2P port address in alliance chain | |
CN105049300A (en) | Method and device for detecting NAT network type | |
CN108574615B (en) | Content transmission method, device and system based on multipath MPTCP | |
US8630187B1 (en) | Method and system for testing a network switching apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160120 |