CN1946055A - Method for switching medium data transmission path in instant communication - Google Patents
Method for switching medium data transmission path in instant communication Download PDFInfo
- Publication number
- CN1946055A CN1946055A CNA2006100632990A CN200610063299A CN1946055A CN 1946055 A CN1946055 A CN 1946055A CN A2006100632990 A CNA2006100632990 A CN A2006100632990A CN 200610063299 A CN200610063299 A CN 200610063299A CN 1946055 A CN1946055 A CN 1946055A
- Authority
- CN
- China
- Prior art keywords
- pass
- callee
- media
- transfer
- calling party
- 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
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
This invention relates to method for switching media data transmission channels in a prompt communication including: a, after calling and called parties set up communication via a transfer media server, they transmit media data via the server and attempt to pass through NAT, b, if the through is succeeded, then the new media channel communicated by the two parties directly replaces the original transfer channel, otherwise step c is carried out, c, continuing using the original media channel.
Description
Technical field
The present invention relates to the media data transmission in the instant messaging, more particularly, relate to the method that medium data transmission path switches in a kind of instant messaging.
Background technology
Along with the Internet network is popularized and extensive use, a lot of instant communication terminals (comprising hard terminal and software terminal) exchange in real time to the user and to have brought very big convenience.
Real time transport protocol (Real-time Transport Protocol is called for short RTP): data provide the service of the end-to-end transfer with real-time feature, as interactive video audio frequency or the analogue data under multicast or unicast network services.Application program goes up operation RTP so that use its multichannel node and verification service in User Datagram Protoco (UDP) (User Datagram Protocol is called for short UDP) usually; These two kinds of agreements all provide the function of transport layer protocol.But RTP can use with other bottom-layer network or host-host protocol that is fit to.If bottom-layer network provides the multicast mode, RTP can use this multicast table to transmit data to a plurality of destinations so.
Network address translation (abbreviating NAT as) crossing technology: this technology implementation method is for all devices in the private network, shared one or more legal IP address is as exit address, only when device request connects external network,, carry out the outside and connect for this request distributes a legitimate ip address and a port numbers; When this request finished, port numbers and IP address also just were retracted immediately.NAT and port address conversion (abbreviating PAT as) often are used simultaneously, and are called network address port conversion (abbreviating NAPT as).The utilization of NAPT has brought a lot of benefits for IP network, has alleviated the nervous problem in IP address of Internet network under the IPv4 framework, has improved the fail safe of private network inside and managerial.
Existing instant messaging generally takes following two kinds of methods to carry out the media data transmission when carrying out point-to-point communication:
A kind of method is exactly to come the transfer media data by media server between the node.The advantage of this method is between the communication node that turn-on time is shorter; Shortcoming is that media data all needs to carry out transfer through media server, increases the propagation delay time of real-time media data and the disposal ability of media server.
Another kind method is exactly to carry out the point-to-point processing of passing through earlier, re-uses direct-connected point-to-point media channel after passing through successfully.But, if point-to-pointly pass through failure, then need to come the transfer media data by media server, also need one simultaneously and special pass through the processing that server passes through between responsible node message transmission.
The advantage of this method is if pass through successfully, two directly communications of instant communication terminal so, need not pass through media server transfer media data, alleviate the pressure of media server to a certain extent, and reduced the propagation delay time of real-time media data; Shortcoming is to increase the time of call setup between the node, need the time of 5-30s because judge between two nodes whether directly communication, also need to increase by one simultaneously and pass through server and UDP bag simple traversal network address translation (Simple Traversalof UDP over NAT, be called for short STUN) server, increased cost of investment.
Summary of the invention
The technical problem to be solved in the present invention is, defective at above-mentioned two kinds of methods of prior art, the method that medium data transmission path switches in a kind of instant messaging is provided, in the disposal ability that guarantees to have alleviated under the short prerequisite of time of call established media server, improve the real-time of media data transmission and pass through server and these two equipment of STUN server, reduced cost of investment with having reduced.
The technical solution adopted for the present invention to solve the technical problems is: construct the method that medium data transmission path switches in a kind of instant messaging, may further comprise the steps:
A. after the calling and called both sides set up communication by the media server of transfer, use the media server channel transfer media data of described transfer, and in communication, carry out NAT and pass through trial;
If b. pass through successfully, then the new media passage of the direct communication of described calling and called both sides is replaced the media channel of original transfer; Otherwise execution in step c;
C. continue to use the media channel of original transfer to carry out communication.
In method of the present invention, described step a specifically comprises:
A1. the calling party obtains instant communication terminal through the information of passing through address and transfer port address after the NAT device mapping by described media server, and by sip proxy server the described information that gets access to is sent to the callee;
A2. after described callee receives described calling party's invitation by described sip proxy server, obtain the information of passing through address and transfer port address of self to described media server, and by described sip proxy server the described information that gets access to is sent to described calling party equally.
In method of the present invention, among the described step a, described calling and called pass through negotiations process and specifically may further comprise the steps:
A3. described calling party sends command request to described callee and passes through;
If a4. described calling party receives the response message that described callee returns in Preset Time after, continue to send order and notify the other side's this section point to pass through successfully to described callee; Otherwise in Preset Time, continue to send command request and pass through to described callee;
If a5. described callee reports in Preset Time and passes through the result receive the response message that described callee returns in Preset Time after; Otherwise, continue to send order and notify the other side's this section point to pass through successfully to described callee.
In method of the present invention, when pass through the result successfully notify the other side's node and received the other side pass through as a result the time, pass through negotiations process and just successfully finish.
In method of the present invention, before carrying out described step b, also comprise: judge that whether described NAT passes through the time value of trial above the Preset Time value.
In method of the present invention, if the time value of passing through trial at described NAT is then carried out described step c above described Preset Time value; Otherwise carry out described step b.
Implement the method that medium data transmission path switches in the instant messaging of the present invention, in the disposal ability that guarantees to have alleviated under the short prerequisite of time of call established media server, improve the real-time of media data transmission and pass through server and these two equipment of STUN server, reduced cost of investment with having reduced.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the flow chart that medium data transmission path switches in the instant messaging of the present invention;
Fig. 2 is the flow chart that passes through negotiation in the instant messaging of the present invention in the media data transmission;
Fig. 3 is that passing through of Fig. 2 consulted command interaction process schematic diagram;
Fig. 4 is that medium data transmission path switches the schematic diagram of finishing in the instant messaging of the present invention.
Embodiment
The present invention sets up the media channel transmission of media data of back elder generation by transfer in calling both sides, simultaneously between two nodes, pass through trial, if pass through success then switch new media channel, use the media channel of direct communication between the node, otherwise do not do any processing, promptly still use the media channel transmission of media data of original transfer.Following with reference to Fig. 1, Fig. 2, will elaborate.
As shown in Figure 1, step 1: calling party UA1 sends out CRCX (CRCX: connect to media server, from the Call Agent to the gateway, Call Agent is related with the IP address and the udp port of appointment with certain end points with this order, also send in addition and create bind command, set up two connections between end points to the far-end end points.) the command request instant communication terminal is through passing through address and transfer port after network address translation (the being called NAT) device map.
Existing " NAT passes through " technology allows the web application detection whether to have local NAT device.After detecting, application program is configured NAT immediately, and the corresponding mapping of definition solves compatibility issue.
Step 2: after media server received the request of calling party UA1, (CRCX-ACK: communication affirmations that connect, in data communication was transmitted, receiving station issued a kind of transmission control character of dispatching station to send CRCX-ACK to calling party UA1.The data that its expression affirmation is sent have been accepted errorless) response message.The home address of passing through IP address, Port address and media server that comprises transfer port address, calling party UA1 in this response message.
Step 3: after calling party UA1 receives the response message that media server returns, send call request to SIP (SessionInitiation Protocol is called for short SIP, is the communications protocol of a kind of " application layer ") acting server.The information of this call request has comprised has carried media server in the above-mentioned steps 2 by the Invite message header of expansion in the Session Initiation Protocol and has responded all information to calling party UA1.
After step 4:SIP acting server receives the call request of calling party UA1, the call request of calling party UA1 is responded, and to calling party UA1 echo reply.
Step 5:SIP acting server is according to the information of the above-mentioned call request that receives, and the mode of carrying with the Invite message header in the expansion Session Initiation Protocol sends to callee UA2 with the information of above-mentioned call request equally.
Step 6: after callee UA2 receives the request of sip proxy server, the call request of sip proxy server is responded, and to the sip proxy server echo reply.At this moment, callee UA2 just can be known IP address, the Port address information of transfer port address, UA1.
Step 7: simultaneously, it sends ringing information to callee UA2 to sip proxy server.
After step 8:SIP acting server receives the ringing information of callee UA2, send the response message of ring to calling party UA1.
Step 9: callee UA2 sends the MDCX that connects (MDCX: modification connects, the modification request that call direction proxy gateway (also can be the calling party) sends, the connection of foundation before the revising) request of revising by passage lanes to media server.
Step 10: after multimedia server receives the request of callee UA2, send response modification to callee UA2 and connect that MDCX-ACK (MDCX-ACK: revise to connect and confirm, revise connection request side and send to revise and confirm control character to sending by proxy gateway.) information, this information has comprised transfer port address, the IP address of UA2, Port address information.
Step 11: after callee UA2 receives above-mentioned link information, and this information sent to sip proxy server.
After step 12:SIP acting server receives above-mentioned link information, and this information sent to calling party UA1.
Step 13: after calling party UA1 receives above-mentioned information, send the affirmation information of having received to sip proxy server.At this moment, calling party UA1 just can be known IP address, the Port address information of transfer port address, UA2.
After step 14:SIP acting server receives the affirmation information of UA1, transmit the affirmation information of UA1 to callee UA2.At this moment calling party UA1 sets up RTP with callee UA2 by the media server of transfer and is connected, and calling party UA1 and callee UA2 can carry out the voice and video communication.
Step 15: behind call setup, use the media channel transmission of media data of transfer earlier, allow calling party UA1 and callee UA2 pass through trial simultaneously.In passing through cut-and-try process, calling party UA1 and callee UA2 guarantee by 4-Way Handshake both sides pass through synchronously (replenish how to pass through trial in detail, comprise what content, step).If pass through successfully, calling party UA1 directly sets up RTP with callee UA2 and is connected; Otherwise still use the media channel of original transfer to carry out communication.
Need to prove: conversation or communication at this do not have under the situation of end, caller and calledly can not pass through trial, have only when once more communication, just can pass through trial, that is to say if can be provided with and pass through trial in the certain hour in the beginning of communication, arrived Preset Time if pass through the time of trial, but also do not passed through successfully, this time communication just can not be carried out the intelligence switching of passage so.
The negotiations process of successfully passing through is shown in Fig. 2,3.In passing through cut-and-try process, the timing crossing time of ns can be set, if in ns, also do not pass through successfully, then report and pass through the result to server; If pass through in ns successfully, calling party UA1 sends the TRAV_REQ request to callee UA2 and passes through order.Pass through response command when calling party UA1 receives the TRAV_RSP that callee UA2 returns,, then continue to send the TRAV_REQ command request and pass through to callee UA2 if calling party UA1 (for example 1s) in Preset Time does not receive this TRAV_RSP order; If calling party UA1 (for example 1s) in Preset Time receives this TRAV_RSP order, then send the TRAV_RESULT_NOTIFY order to callee UA2 again and notify the other side's this section point to pass through successfully.If calling party UA1 (for example 3s) in Preset Time does not receive the TRAV_RESULT_NOTIFY_ACK order that callee UA2 returns, just report and pass through the result; Otherwise (for example 3s) continue to wait for the result that passes through that the other side's node returns in Preset Time.
Should be noted that: only after having received TRAV_RESULT_NOTIFY, TRAV_RESULT_NOTIFY_ACK message, promptly the result that passes through of this node successfully notifies the other side's node and has received and just thinks under the other side's the situation of passing through the result and pass through successfully.
Here, the request command that passes through of calling party UA1 and callee UA2 is independent, does not have mutual dependence, and the corresponding command separately responds respectively according to request command.
Step 16: calling party UA1 sends DLCX (DLCX: deletion connects, from the Call Agent to the gateway (also can from the gateway to the Call Agent), the connection of setting up before the deletion) request of the media channel of deletion transfer to media server.
Step 17: callee UA2 also sends the DLCX request of the media channel of deletion transfer to media server.
Step 18: after media server receives the request of calling party UA1 and callee UA2, send DLCX-ACK (DLCX-ACK: delete the affirmation control character that the is connected) information of confirming to calling party UA1 and callee UA2 respectively, passage switching is so far finished.
As shown in Figure 2, pass through successfully, after passage was finished, the calling and called both sides are directly communication just, and did not need the media server by transfer.
Therefore, employing the present invention can guarantee to alleviate the disposal ability of media server under the short prerequisite of time of call established, improves the real-time of media data transmission and passes through server and these two equipment of STUN server with having reduced, and has reduced cost of investment.
Claims (6)
1, the method that medium data transmission path switches in a kind of instant messaging is characterized in that, may further comprise the steps:
A. after the calling and called both sides set up communication by the media server of transfer, use the media server channel transfer media data of described transfer, and in communication, carry out NAT and pass through trial;
If b. pass through successfully, then the new media passage of the direct communication of described calling and called both sides is replaced the media channel of original transfer; Otherwise execution in step c;
C. continue to use the media channel of original transfer to carry out communication.
2, method according to claim 1 is characterized in that, described step a specifically comprises:
A1. the calling party obtains instant communication terminal through the information of passing through address and transfer port address after the network address translation (nat) device map by described media server, and by sip proxy server the described information that gets access to is sent to the callee;
A2. after described callee receives described calling party's invitation by described sip proxy server, obtain the information of passing through address and transfer port address of self to described media server, and by described sip proxy server the described information that gets access to is sent to described calling party equally.
3, method according to claim 1 and 2 is characterized in that, among the described step a, described calling and called pass through negotiations process and specifically may further comprise the steps:
A3. described calling party sends command request to described callee and passes through;
If a4. described calling party receives the response message that described callee returns in Preset Time after, continue to send order and notify the other side's this section point to pass through successfully to described callee; Otherwise in Preset Time, continue to send command request and pass through to described callee;
If a5. described callee reports in Preset Time and passes through the result receive the response message that described callee returns in Preset Time after; Otherwise, continue to send order and notify the other side's this section point to pass through successfully to described callee.
4, method according to claim 3 is characterized in that, when pass through the result successfully notify the other side's node and received the other side pass through as a result the time, pass through negotiations process and just successfully finish.
5, method according to claim 1 is characterized in that, before carrying out described step b, also comprises: judge that whether described NAT passes through the time value of trial above the Preset Time value.
6, method according to claim 5 is characterized in that, if the time value of passing through trial at described NAT is then carried out described step c above described Preset Time value; Otherwise carry out described step b.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006100632990A CN1946055A (en) | 2006-10-24 | 2006-10-24 | Method for switching medium data transmission path in instant communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006100632990A CN1946055A (en) | 2006-10-24 | 2006-10-24 | Method for switching medium data transmission path in instant communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1946055A true CN1946055A (en) | 2007-04-11 |
Family
ID=38045273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2006100632990A Pending CN1946055A (en) | 2006-10-24 | 2006-10-24 | Method for switching medium data transmission path in instant communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1946055A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010045834A1 (en) * | 2008-10-21 | 2010-04-29 | 中兴通讯股份有限公司 | Method and system for video monitoring system to implement media traversing network address translation |
CN105245586A (en) * | 2015-09-28 | 2016-01-13 | 深圳竹信科技有限公司 | Point-to-point communication method and system for public and private networks |
CN106534393A (en) * | 2015-09-15 | 2017-03-22 | 中国电信股份有限公司 | Method and system for realizing NAT traversal |
-
2006
- 2006-10-24 CN CNA2006100632990A patent/CN1946055A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010045834A1 (en) * | 2008-10-21 | 2010-04-29 | 中兴通讯股份有限公司 | Method and system for video monitoring system to implement media traversing network address translation |
CN101729862B (en) * | 2008-10-21 | 2011-12-28 | 中兴通讯股份有限公司 | Method and system for passing media through NAT by using video monitoring system |
CN106534393A (en) * | 2015-09-15 | 2017-03-22 | 中国电信股份有限公司 | Method and system for realizing NAT traversal |
CN106534393B (en) * | 2015-09-15 | 2019-09-03 | 中国电信股份有限公司 | Realize the method and system that NAT device passes through |
CN105245586A (en) * | 2015-09-28 | 2016-01-13 | 深圳竹信科技有限公司 | Point-to-point communication method and system for public and private networks |
CN105245586B (en) * | 2015-09-28 | 2018-10-23 | 深圳竹信科技有限公司 | A kind of public and private site point to-point communication method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101860536B (en) | Private network access system based on SIP soft phone and method thereof | |
AU2005201075B2 (en) | Apparatus and method for voice processing of voice over internet protocol (VOIP) | |
JP3891195B2 (en) | Data communication method | |
CN1489354A (en) | Method and system for realizing interworking of telecommunication services among broadband heterogeneous networks | |
CN1633102A (en) | Method and system for realizing network address translation traversal | |
CN1623310A (en) | Communications protocols operable through network address translation (nat) type devices | |
CN1685691A (en) | Fax and modem support in SIP/SIP-T network and interworking of this network with ISUP+/BICC | |
CN110650260B (en) | System and method for intercommunication of network terminal audio internal and external networks | |
CN1929600A (en) | System and method for realizing remote monitoring control by using IP videophone | |
CN101146100B (en) | A Realization Method of SIP VoIP Based on Transmission Protocol SCTP and DCCP | |
CN1411220A (en) | Method and system of realizing IP speech service of private network | |
CN1516409A (en) | Method for making medium stream pass through network address converter | |
CN1553676A (en) | Method for holding common audio-video meeting via various protocol terminals | |
CN114666422A (en) | IPv4/IPv6 protocol exchange method and related equipment | |
CN1777113A (en) | An Architecture for Realizing Integrated Network Services | |
CN1849808A (en) | Interworking of Protocols in Hybrid Multimedia Networks | |
CN1946055A (en) | Method for switching medium data transmission path in instant communication | |
CN1764172A (en) | Multimedia communication proxy system and method capable of crossing network address conversion and firewall | |
CN1232084C (en) | Method for readlizing voice communication between medium gates based on medium gate control protocol | |
CN1976356A (en) | Network address conversion penetrating system, method and user equipment | |
CN101179468A (en) | Method for communication between isomerized network SIP terminal and H.323 terminal | |
CN1863138A (en) | Method for implementing multimedia service NAT transition | |
CN101631145A (en) | Method for predicting NAT equipment port | |
EP1804429B1 (en) | A communication system and method for achieving ip cross-domain intercommunication via an edge media gateway | |
CN1559133A (en) | Network transition device and communication system for real-time communication connection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20070411 |