CN105245586B - A kind of public and private site point to-point communication method and system - Google Patents
A kind of public and private site point to-point communication method and system Download PDFInfo
- Publication number
- CN105245586B CN105245586B CN201510626559.XA CN201510626559A CN105245586B CN 105245586 B CN105245586 B CN 105245586B CN 201510626559 A CN201510626559 A CN 201510626559A CN 105245586 B CN105245586 B CN 105245586B
- Authority
- CN
- China
- Prior art keywords
- network node
- sip server
- communication identifier
- communication
- sent
- 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.)
- Active
Links
Classifications
-
- 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
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- 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
- H04L67/1044—Group management mechanisms
- H04L67/1046—Joining mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Theoretical Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a kind of public and private net Point-to-point Communication Methods, the public and private net includes first network node, second network node, sip server and STUN servers, invitation session is established by using communication identifier, and then obtain the addresses NAT of first network node and the second network node, continuity testing is carried out to establish communication channel using NAT, by using this method, time delay and expense can be reduced, to improve the performance of whole system, the complexity of reduction system, it is a further object to provide a kind of public and private net Point-to-Point Communication Systems.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of public and private site point to-point communication method and system.
Background technology
Usually in the internet context, public network all relies on centromere with private network, private network and the communication of private network internodal data
Point, Centroid receive data from one end, the other end are forwarded the data to again according to routing table, to realize the data of point-to-point
Transmission.As end quantity increases and communication data content increases (such as big file and Streaming Media), the processing capacity of Centroid at
For the bottleneck of whole system.
Invention content
In view of this, an embodiment of the present invention provides a kind of public and private site point to-point communication method and system.
It is an object of the present invention to provide a kind of public and private net Point-to-point Communication Methods, and the public and private net includes first network
Node, the second network node, sip server and STUN servers, the method includes:
The invitation session with communication identifier of the first network node is forwarded to described second by the sip server
Network node, so that second network node obtains the communication identifier according to the invitation session;
The first network node receive success response that second network node is sent via the sip server to
Second network node, which is sent, confirms instruction, and the success response is for described in indicating that second network node successfully obtains
Communication identifier, the confirmation instruction receive the success response for first network node determination;
The first network node sends the first data message with the communication identifier to the STUN servers, with
So that the STUN servers obtain the communication identifier and the institute of the first network node according to first data message
State the first addresses NAT of first network node;
Second network node is sent to the STUN servers with the communication after receiving the confirmation instruction
Second data message of mark, so that the STUN servers obtain the second network section according to second data message
2nd addresses NAT of the communication identifier and second network node of point;
The STUN servers determine the first network node and second network node according to the communication identifier
To be in communication with each other node and the first addresses NAT are sent to second network node and send out the 2nd addresses NAT
It send to the first network node;
The first network node and second network node carry out two-way connectivity test;
The communication port of the first network node and second network node is built after completing two-way connectivity test
It is vertical to complete.
Optionally, the invitation session with communication identifier of the first network node is forwarded to by the sip server
Second network node specifically wraps so that second network node obtains the communication identifier according to the invitation session
It includes:
The first network node initiates the invitation session for second network node, institute to the sip server
It includes communication identifier to state invitation dialogue;
The invitation session is routed to second network node by the invitation session by the sip server;
Second network node obtains the communication identifier in the invitation session and is fed back to the sip server
Success response;
The success response is routed to the first network node by the sip server.
Optionally, the first network node receives the success response of the second network node transmission via the SIP
Server is sent to second network node confirms that instruction specifically includes:
The first network node is sent according to the success response confirms instruction to the sip server, the SIP clothes
Confirmation instruction is sent to second network node by business device.
Optionally, the first network node and second network node progress two-way connectivity test specifically include:
The first network node initiates the continuity testing from the first addresses NAT to the 2nd addresses NAT,
The first test response that second network node is received in preset time then completes the first network node to described the
First continuity testing of two network nodes;
Second network node initiates the continuity testing from the 2nd addresses NAT to the first addresses NAT,
The second test response that the first network node is received in preset time then completes second network node to described the
Second continuity testing of one network node;
The communication of the first network node and second network node after completing two-way connectivity test is logical
Road, which is established, to be completed to specifically include:
When completing first continuity testing and second continuity testing after first network node and described
The communication port of second network node, which is established, to be completed.
Optionally, the preset time is two seconds.
It is a further object to provide a kind of public and private net Point-to-Point Communication System, the public and private net includes the first net
Network node, the second network node, sip server and STUN servers, the system comprises:
Session invitation unit is used for the sip server by the invitation with communication identifier of the first network node
Session is forwarded to second network node, so that second network node obtains the communication according to the invitation session
Mark;
Confirm interactive unit, the success response warp that second network node is sent is received for the first network node
It is sent from the sip server to second network node and confirms instruction, the success response is for indicating second net
Network node successfully obtains the communication identifier, and the confirmation instruction receives the success for first network node determination
Response;
First acquisition unit, being sent to the STUN servers for the first network node has the communication identifier
The first data message so that the STUN servers obtain the first network node according to first data message
First addresses NAT of the communication identifier and the first network node;
Second acquisition unit receives after the confirmation instructs for second network node to the STUN servers
The second data message with the communication identifier is sent, so that the STUN servers are obtained according to second data message
Take the 2nd addresses NAT of the communication identifier and second network node of second network node;
Transmission unit determines the first network node and described for the STUN servers according to the communication identifier
Second network node is to be in communication with each other node and the first addresses NAT are sent to second network node and by described the
Two addresses NAT are sent to the first network node;
Test cell carries out two-way connectivity test for the first network node and second network node;
Channel establishes unit, for the first network node and second network after completing two-way connectivity test
The communication port of node, which is established, to be completed.
Optionally, the session invitation unit be additionally operable to the first network node to the sip server initiation be directed to
The invitation session of second network node, invitation dialogue includes communication identifier, and the sip server is by the invitation meeting
The invitation session is routed to second network node by words, and second network node obtains the institute in the invitation session
It states communication identifier and feeds back success response to the sip server, the success response is routed to described by the sip server
First network node.
Optionally, the confirmation interactive unit is additionally operable to the first network node and sends confirmation according to the success response
Confirmation instruction is sent to second network node by instruction to the sip server, the sip server.
Optionally, the test cell is additionally operable to the first network node and initiates from the first addresses NAT to described
The continuity testing of 2nd addresses NAT, the first test response that second network node is received in preset time are then complete
It is initiated at the first continuity testing of the first network node to second network node and second network node
Continuity testing from from the 2nd addresses NAT to the first addresses NAT, receives the first network in preset time
Second continuity testing of second network node to the first network node is then completed in second test response of node;
The channel is established unit and is additionally operable to after completing first continuity testing and second continuity testing
The communication port of the first network node and second network node, which is established, to be completed.
Optionally, the preset time is two seconds.
By using communication means provided by the invention, time delay and expense can be reduced, to improve the property of whole system
Can, reduce the complexity of system.
Description of the drawings
Fig. 1 is a kind of flow chart of embodiment of public and private net Point-to-point Communication Method provided by the invention;
Fig. 2 is the flow chart of another embodiment of public and private net Point-to-point Communication Method provided by the invention;
Fig. 3 is a kind of flow chart of embodiment of public and private net Point-to-Point Communication System provided by the invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects
It encloses.
Term " first ", " second ", " third " " in description and claims of this specification and above-mentioned attached drawing
Four " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so that the embodiments described herein can be in addition to illustrating or describing herein
Sequence other than appearance is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that covering is non-exclusive
Include to be not necessarily limited to clearly arrange for example, containing the process of series of steps or unit, method, system, product or equipment
Those of go out step or unit, but may include not listing clearly or solid for these processes, method, product or equipment
The other steps or unit having.
In conjunction with shown in Fig. 1, public and private a kind of embodiment of net Point-to-point Communication Method provided by the invention, the public and private net includes
First network node, the second network node, sip server and STUN servers, the method includes:
The invitation session with communication identifier of the first network node is forwarded to institute by S101, the sip server
The second network node is stated, so that second network node obtains the communication identifier according to the invitation session.
SIP (Chinese:Session initiation protocol, English:Session Initiation Protocol) server, STUN (in
Text:The UDP simple traversals of NAT, English:Simple Traversal of UDP over NATs) server, NAT (Chinese:Net
Network address conversion, English:Network Address Translation), all hosts using local address in NAT methods
When being communicated with the external world, its local address will be converted into Global IP addresses on NAT router, could connected with internet
It connects, first network node corresponds to first terminal, and the second network node corresponds to second terminal, and public network uses internet, private network
Refer to intranet, network address translation has been used when being communicated between public network and private network, local address is with being converted into global ip
Location, first network node are wanted to communicate because all in private network with the foundation of the second network node, cannot directly be communicated, be needed
It to use intermediate sip server to initiate invitation session, communication identifier be added in invitation session, communication identifier here is suitable
In label, first network node and the second network node can establish corresponding relationship by this communication identifier, for example, communication mark
It is CALL-ID to know, and invitation session can Xie Dai "Nat=yes"And "Call-ID"Field does not limit specifically, in invitation session
It may include the object invited, that is, want the object communicated, that is, the second network node, first network node will carry
Communication identifier invitation session is sent to sip server, and the invitation session with communication identifier is sent to the second net by sip server
Network node, the second network node can obtain communication identifier by invitation session, and after being carried out according to this communication identifier
Continuous operation.
S102, the first network node receive the success response that second network node is sent and are taken via the SIP
Device be engaged in second network node transmission confirmation instruction, the success response is for indicating that second network node successfully obtains
The communication identifier, the confirmation instruction is taken to receive the success response for first network node determination.
Second network node receive invitation session post-processing arrive communication identifier, the second network node can be to first network
Node sends success response, has got invitation session and communication identifier for prompting, first network node, which receives, successfully to be rung
Should determine instruction be fed back to the second network node again later, inform and have been received by success response, the second network node can be according to true
Determine instruction execution subsequent step.
S103, the first network node send the first datagram with the communication identifier to the STUN servers
Text, so that the STUN servers obtain the communication identifier of the first network node according to first data message
With the first addresses NAT of the first network node.
The STUN servers can obtain communication identifier and first network node by the analysis to the first data message
The first addresses NAT because may include multiple network nodes in the STUN servers root, can by communication identifier into
Row is distinguished, and the STUN servers root can preserve the addresses NAT of multiple network nodes.
S104, second network node are sent to the STUN servers with described after receiving the confirmation instruction
Second data message of communication identifier, so that the STUN servers obtain second net according to second data message
2nd addresses NAT of the communication identifier of network node and second network node.
Second network node sends the second data message to the STUN servers, and the STUN servers can be by the
Two data messages determine the 2nd addresses NAT and the communication identifier of the second network node, and the first net can be obtained by communication identifier
Network node and the second network node are two nodes to be communicated.
S105, the STUN servers determine the first network node and second network according to the communication identifier
Node is to be in communication with each other node and the first addresses NAT are sent to second network node and by the 2nd NAT
Location is sent to the first network node.
First network node and the second network node are determined as communicating node, the first addresses NAT by STUN servers
It is to communicate address pair with the 2nd addresses NAT, the first addresses NAT are sent to second network node by STUN servers institute
And the 2nd addresses NAT are sent to the first network node, so that first network node and the second network node are straight
It connects and proceeds by continuity testing.
S106, the first network node and second network node carry out two-way connectivity test.
2nd addresses NAT of the second network node that first network node is got, the second network node are also got
2nd addresses NAT because first network node and the second network node be required for complete data transmitting-receiving operation, need into
Row two-way connectivity test, i.e., first network node to the second network node transmission needs success, conversely, the second network node to
The transmission of first network node is also required to success, and the first network node may be used and initiate from the first addresses NAT to institute
The continuity testing for stating the 2nd addresses NAT receives the first test response of second network node then in preset time
Complete first continuity testing and second network node hair of the first network node to second network node
The continuity testing from the 2nd addresses NAT to the first addresses NAT is played, first net is received in preset time
Second continuity testing of second network node to the first network node is then completed in second test response of network node,
Here presetting at the time can be set as needed, not limited herein.
S107, the communication of the first network node and second network node is logical after completing two-way connectivity test
Road, which is established, to be completed.
Illustrating first network node and the second network node directly after completion two-way connectivity test can carry out normally
Communication work, transmission data and receive data can be normally carried out.
By using communication means provided by the invention, time delay and expense can be reduced, to improve the property of whole system
Can, reduce the complexity of system.
In conjunction with shown in Fig. 2, the present invention provides a kind of public and private net Point-to-point Communication Method, the public and private net includes the first net
Network node, the second network node, sip server and STUN servers, the method includes:
S201, the first network node initiate the invitation meeting for second network node to the sip server
Words, the invitation dialogue includes communication identifier.
The invitation session is routed to second network node by the invitation session by S202, the sip server.
S203, second network node obtain the communication identifier in the invitation session and to the SIP services
Device feeds back success response.
The success response is routed to the first network node by S204, the sip server.
S205, the first network node send confirmation according to the success response and instruct to the sip server, described
Confirmation instruction is sent to second network node by sip server.
S206, the success response are described true for indicating that second network node successfully obtains the communication identifier
Recognize instruction and receives the success response for first network node determination
S207, the first network node send the first datagram with the communication identifier to the STUN servers
Text, so that the STUN servers obtain the communication identifier of the first network node according to first data message
With the first addresses NAT of the first network node.
S208, second network node are sent to the STUN servers with described after receiving the confirmation instruction
Second data message of communication identifier, so that the STUN servers obtain second net according to second data message
2nd addresses NAT of the communication identifier of network node and second network node.
S209, the STUN servers determine the first network node and second network according to the communication identifier
Node is to be in communication with each other node and the first addresses NAT are sent to second network node and by the 2nd NAT
Location is sent to the first network node.
S210, the first network node initiate to be surveyed from the first addresses NAT to the connectivity of the 2nd addresses NAT
Examination, the first test response that second network node is received in preset time then complete the first network node to institute
State the first continuity testing of the second network node.
S211, second network node initiate to be surveyed from the 2nd addresses NAT to the connectivity of the first addresses NAT
Examination, the second test response that the first network node is received in preset time then complete second network node to institute
State the second continuity testing of first network node.
Optionally, the preset time is two seconds.
S212, when complete first continuity testing and second continuity testing after first network node and
The communication port of second network node, which is established, to be completed.
A kind of public and private net Point-to-point Communication Method presented hereinabove, accordingly, in conjunction with shown in Fig. 3, the present invention also provides
A kind of public and private net Point-to-Point Communication System, the public and private net include first network node, the second network node, sip server with
And STUN servers, the system comprises:
The first network node is had inviting for communication identifier by session invitation unit 301 for the sip server
Please session be forwarded to second network node so that second network node obtained according to the invitation session it is described logical
Beacon is known.
Confirm interactive unit 302, the successful sound that second network node is sent is received for the first network node
It should be sent to second network node via the sip server and confirm instruction, the success response is for indicating described the
Two network nodes successfully obtain the communication identifier, and the confirmation instruction receives described for first network node determination
Success response.
First acquisition unit 303, being sent to the STUN servers for the first network node has the communication
First data message of mark, so that the STUN servers obtain the first network section according to first data message
First addresses NAT of the communication identifier and the first network node of point.
Second acquisition unit 304 is received for second network node and is taken to the STUN after the confirmation instructs
Business device sends the second data message with the communication identifier, so that the STUN servers are according to second datagram
Text obtains the 2nd addresses NAT of the communication identifier and second network node of second network node.
Transmission unit 305, for the STUN servers according to the communication identifier determine the first network node and
Second network node is is in communication with each other node and the first addresses NAT are sent to second network node and by institute
It states the 2nd addresses NAT and is sent to the first network node;
Test cell 306 carries out two-way connectivity test for the first network node and second network node.
Channel establishes unit 307, for the first network node and described second after completing two-way connectivity test
The communication port of network node, which is established, to be completed.
Optionally, the session invitation unit 301 is additionally operable to the first network node and initiates needle to the sip server
To the invitation session of second network node, invitation dialogue includes communication identifier, and the sip server is by the invitation
The invitation session is routed to second network node by session, and second network node obtains in the invitation session
The communication identifier simultaneously feeds back success response to the sip server, and the success response is routed to institute by the sip server
State first network node.
Optionally, the confirmation interactive unit is additionally operable to the first network node and sends confirmation according to the success response
Confirmation instruction is sent to second network node by instruction to the sip server, the sip server.
Optionally, the test cell 306 is additionally operable to the first network node and initiates from the first addresses NAT to institute
The continuity testing for stating the 2nd addresses NAT receives the first test response of second network node then in preset time
Complete first continuity testing and second network node hair of the first network node to second network node
The continuity testing from the 2nd addresses NAT to the first addresses NAT is played, first net is received in preset time
Second continuity testing of second network node to the first network node is then completed in second test response of network node.
Optionally, the preset time is two seconds.
Optionally, the channel establishes unit 307 and is additionally operable to connect when completion first continuity testing and described second
The communication port of the first network node and second network node, which is established, after general character test completes.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit
It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include:Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
One of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, the program can be stored in a kind of computer readable storage medium, on
It can be read-only memory, disk or CD etc. to state the storage medium mentioned.
A kind of public and private site point to-point communication method and system provided by the present invention are described in detail above, for
Those of ordinary skill in the art, the thought of embodiment, has in specific embodiments and applications according to the present invention
Change place, in conclusion the content of the present specification should not be construed as limiting the invention.
Claims (10)
1. a kind of public and private net Point-to-point Communication Method, which is characterized in that the public and private net includes first network node, the second network
Node, sip server and STUN servers, the method includes:
The invitation session with communication identifier of the first network node is forwarded to second network by the sip server
Node, so that second network node obtains the communication identifier according to the invitation session;
The first network node receives success response that second network node is sent via the sip server to described
Second network node, which is sent, confirms instruction, and the success response is for indicating that second network node successfully obtains the communication
Mark, the confirmation instruction receive the success response for first network node determination;
The first network node sends the first data message with the communication identifier to the STUN servers, so that
The STUN servers obtain the communication identifier and described of the first network node according to first data message
First addresses NAT of one network node;
Second network node is sent to the STUN servers with the communication identifier after receiving the confirmation instruction
The second data message so that the STUN servers obtain second network node according to second data message
2nd addresses NAT of the communication identifier and second network node;
The STUN servers determine that the first network node and second network node are phase according to the communication identifier
Mutual communication node and the first addresses NAT are sent to second network node and are sent to the 2nd addresses NAT
The first network node;
The first network node and second network node carry out two-way connectivity test;
The communication port of the first network node and second network node has been established after completing two-way connectivity test
At.
2. according to the method described in claim 1, it is characterized in that, the sip server is by the tool of the first network node
There is the invitation session of communication identifier to be forwarded to second network node, so that second network node is according to the invitation
Communication identifier described in acquisition conversation specifically includes:
The first network node initiates the invitation session for second network node to the sip server, described to invite
It please talk with including communication identifier;
The invitation session is routed to second network node by the sip server;
Second network node obtains the communication identifier in the invitation session and is fed back successfully to the sip server
Response;
The success response is routed to the first network node by the sip server.
3. according to the method described in claim 1, it is characterized in that, the first network node receives second network node
The success response of transmission, which is sent via the sip server to second network node, confirms that instruction specifically includes:
The first network node is sent according to the success response confirms instruction to the sip server, the sip server
Confirmation instruction is sent to second network node.
4. according to the method described in claim 1, it is characterized in that, the first network node and second network node into
The test of row two-way connectivity specifically includes:
The first network node initiates the continuity testing from the first addresses NAT to the 2nd addresses NAT, default
The first test response that second network node is received in time then completes the first network node to second net
First continuity testing of network node;
Second network node initiates the continuity testing from the 2nd addresses NAT to the first addresses NAT, default
The second test response that the first network node is received in time then completes second network node to first net
Second continuity testing of network node;
The communication port of the first network node and second network node after completing two-way connectivity test is built
Vertical completion specifically includes:
The first network node and described second after completing first continuity testing and second continuity testing
The communication port of network node, which is established, to be completed.
5. according to the method described in claim 4, it is characterized in that, the preset time is two seconds.
6. a kind of public and private net Point-to-Point Communication System, which is characterized in that the public and private net includes first network node, the second network
Node, sip server and STUN servers, the system comprises:
Session invitation unit is used for the sip server by the invitation session with communication identifier of the first network node
It is forwarded to second network node, is marked so that second network node obtains the communication according to the invitation session
Know;
Confirm interactive unit, the success response of the second network node transmission is received via institute for the first network node
It states sip server and is sent to second network node and confirm instruction, the success response is for indicating the second network section
It puts and successfully obtains the communication identifier, confirmation instruction is received for first network node determination described successfully to ring
It answers;
First acquisition unit sends to the STUN servers the with the communication identifier for the first network node
One data message, so that the STUN servers are obtained according to first data message described in the first network node
First addresses NAT of communication identifier and the first network node;
Second acquisition unit is received for second network node and is sent to the STUN servers after the confirmation instructs
The second data message with the communication identifier, so that the STUN servers obtain institute according to second data message
State the 2nd addresses NAT of the communication identifier and second network node of the second network node;
Transmission unit determines the first network node and described second for the STUN servers according to the communication identifier
Network node is to be in communication with each other node and the first addresses NAT are sent to second network node and by described second
The addresses NAT are sent to the first network node;
Test cell carries out two-way connectivity test for the first network node and second network node;
Channel establishes unit, for the first network node and second network node after completing two-way connectivity test
Communication port establish complete.
7. system according to claim 6, which is characterized in that the session invitation unit is additionally operable to the first network section
Point initiates the invitation session for second network node to the sip server, and the invitation dialogue includes communication identifier,
The invitation session is routed to second network node, second network by the invitation session by the sip server
Node obtains the communication identifier in the invitation session and feeds back success response, the SIP service to the sip server
The success response is routed to the first network node by device.
8. system according to claim 6, which is characterized in that the confirmation interactive unit is additionally operable to the first network section
Point is sent according to the success response confirms instruction to the sip server, and the confirmation is instructed and sent by the sip server
To second network node.
9. system according to claim 6, which is characterized in that the test cell is additionally operable to the first network node hair
The continuity testing from the first addresses NAT to the 2nd addresses NAT is played, second net is received in preset time
First continuity testing of the first network node to second network node is then completed in first test response of network node
And second network node initiates the continuity testing from the 2nd addresses NAT to the first addresses NAT, default
The second test response that the first network node is received in time then completes second network node to first net
Second continuity testing of network node;
The channel establish unit be additionally operable to when complete first continuity testing and after second continuity testing it is described
The communication port of first network node and second network node, which is established, to be completed.
10. system according to claim 9, which is characterized in that the preset time is two seconds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510626559.XA CN105245586B (en) | 2015-09-28 | 2015-09-28 | A kind of public and private site point to-point communication method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510626559.XA CN105245586B (en) | 2015-09-28 | 2015-09-28 | A kind of public and private site point to-point communication method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105245586A CN105245586A (en) | 2016-01-13 |
CN105245586B true CN105245586B (en) | 2018-10-23 |
Family
ID=55043084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510626559.XA Active CN105245586B (en) | 2015-09-28 | 2015-09-28 | A kind of public and private site point to-point communication method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105245586B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110602149A (en) * | 2019-10-11 | 2019-12-20 | 北京字节跳动网络技术有限公司 | External network access method, system, shunt server and internal network equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1946055A (en) * | 2006-10-24 | 2007-04-11 | 深圳市瑞福特信息技术有限公司 | Method for switching medium data transmission path in instant communication |
CN101044735A (en) * | 2004-06-29 | 2007-09-26 | 达马卡公司 | System and method for peer-to-peer hybrid communications |
CN101453493A (en) * | 2007-12-07 | 2009-06-10 | 友讯科技股份有限公司 | Method for mutually interconnecting network terminal devices through customer proxy |
CN101552848A (en) * | 2009-05-20 | 2009-10-07 | 杭州华三通信技术有限公司 | Session method and apparatus based on session initiation protocol |
US8917311B1 (en) * | 2014-03-31 | 2014-12-23 | Apple Inc. | Establishing a connection for a video call |
-
2015
- 2015-09-28 CN CN201510626559.XA patent/CN105245586B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101044735A (en) * | 2004-06-29 | 2007-09-26 | 达马卡公司 | System and method for peer-to-peer hybrid communications |
CN1946055A (en) * | 2006-10-24 | 2007-04-11 | 深圳市瑞福特信息技术有限公司 | Method for switching medium data transmission path in instant communication |
CN101453493A (en) * | 2007-12-07 | 2009-06-10 | 友讯科技股份有限公司 | Method for mutually interconnecting network terminal devices through customer proxy |
CN101552848A (en) * | 2009-05-20 | 2009-10-07 | 杭州华三通信技术有限公司 | Session method and apparatus based on session initiation protocol |
US8917311B1 (en) * | 2014-03-31 | 2014-12-23 | Apple Inc. | Establishing a connection for a video call |
Also Published As
Publication number | Publication date |
---|---|
CN105245586A (en) | 2016-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2805476B1 (en) | Ice based nat traversal | |
US9497411B2 (en) | Establishing a connection for a video call | |
CN103108089B (en) | Connection establishment management method of network system and related system thereof | |
EP2645679B1 (en) | Method and apparatus for message transmission | |
JP7023989B2 (en) | Generating transfer entries | |
CN105721570B (en) | Data peer-to-peer transmission method and device | |
CN101822026B (en) | Method and device for establishing connection between packet-oriented communication terminals through network address translation unit | |
JP6434063B2 (en) | Communication control device and program | |
JP4705167B2 (en) | Method and system for translating network address translation or firewall equipment | |
CN108702394A (en) | Media session between network endpoint | |
CN104092789B (en) | Session-aware network address translation penetration method | |
CN111800341B (en) | Cross-router terminal communication method and device | |
CN101834775A (en) | Media stream transmission method, system and user terminal | |
CN106330605A (en) | Message processing method and device | |
CN105376338B (en) | Interpretation method and device between a kind of IPv4 and IPv6 | |
CN105245586B (en) | A kind of public and private site point to-point communication method and system | |
JP6101997B2 (en) | Communication system for establishing a real-time communication session | |
EP2302874B1 (en) | Communication system, terminal device, and communication method for RTP/RTCP data transmission over a NAT | |
Tseng et al. | Can: A context-aware NAT traversal scheme | |
CN114301867A (en) | Method and system for enhancing communication between IPv 6-only SIP client and IPv4-only server or client | |
CN103873600B (en) | A kind of network address conversion penetrating method and apparatus | |
US10158604B2 (en) | Method for addressing messages in a computer network | |
CN108235428A (en) | Realize method, MME equipment and the PGW equipment of UE registrations P-CSCF | |
CN111064814A (en) | VxLAN NAT traversal method, system and gateway based on PCP | |
CN102377834B (en) | Network address translation equipment and communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |