CN103718532A - Data transmission method, apparatus and terminal device - Google Patents

Data transmission method, apparatus and terminal device Download PDF

Info

Publication number
CN103718532A
CN103718532A CN201380000354.XA CN201380000354A CN103718532A CN 103718532 A CN103718532 A CN 103718532A CN 201380000354 A CN201380000354 A CN 201380000354A CN 103718532 A CN103718532 A CN 103718532A
Authority
CN
China
Prior art keywords
transmission
link
transmission link
transmission quality
quality
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
Application number
CN201380000354.XA
Other languages
Chinese (zh)
Inventor
邹现军
庄志山
吴小生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN103718532A publication Critical patent/CN103718532A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a data transmission method, an apparatus and a terminal device, and relates to the technological field of communication network. According to the invention, voice or video call quality can be improved when the transmission quality of the core network is unstable, particularly in the case of inter-operator. A communication transmission link is established a calling client and a called client; the communication transmission link comprises a point-to-point (P2P) transmission link and a relay transmission link; transmission quality of the P2P transmission link and that of the relay transmission link are detected when the calling client and the called client employ the P2P transmission link transmit audio and video data; the audio and video data is transmitted by switching the P2P transmission link to the relay transmission link when the transmission quality gap value between the P2P transmission link and the relay transmission link is bigger than or equal to a first preset threshold. The invention is suitable for switching transmission links.

Description

A kind of data transmission method, device and terminal equipment
Technical field
The present invention relates to communication technical field, relate in particular to a kind of data transmission method, device and terminal equipment.
Background technology
Voice over internet protocol (Voice over Internet Protocol, when VOIP) client is carried out voice or video calling, conventionally after client is initiated VOIP calling, by interactive mode, connect foundation (Interactive Connectivity Establishment, ICE) etc. technology is carried out detection of connectivity, sets up the transmission that data transmission link carries out voice or video data.When setting up data transmission link, in order to save server bandwidth resource and to process resource, in the situation that all successfully setting up, multilink conventionally can select point-to-point (Peer To Peer according to priority algorithm, P2P) transmission link is as data transmission link, discharge the repeated link between client and Stun (Simple Traver sal of User Datagram Protocol through Network Address Translators) server, wherein, Stun is a kind of User Datagram Protoco (UDP) (User Datagram Protocol, UDP) Data firewall passes through standard.Between the client that P2P transmission link refers to communicate by letter, directly by the Internet, carry out the transmission link of voice, video data, do not need to take the bandwidth resources of server and process resource.
Yet, when adopting P2P transmission link to carry out voice or video data transmitting, when core network transmission quality is unstable, particularly, under the scene of cross operator, can cause the Quality Down of voice or video data transmitting.
Summary of the invention
Embodiments of the invention provide a kind of data transmission method, device and terminal equipment, can improve the transmission quality of voice or video data.
First aspect, the invention provides a kind of data transmission method, comprising:
Calls customer end and called party client end are set up communications link; Described communications link comprises: point-tor point P 2 P transmission link and repeated link;
When described calls customer end and described called party client end adopt described P2P transmission link transmission tone video data, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link;
When the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link and transmits.
In the possible embodiment of the first, in conjunction with first aspect, the transmission quality of the described P2P transmission link of described detection and the transmission quality of described repeated link comprise:
Detect the transmission quality of described P2P transmission link; When the transmission quality of described P2P transmission link is more than or equal to the second predetermined threshold value, detect the transmission quality of described repeated link; Or,
Detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link simultaneously.
In the possible embodiment of the second, in conjunction with first aspect or in conjunction with the possible embodiment of the first in first aspect, described, described audio, video data is switched to from described P2P transmission link after described repeated link transmits, also comprise:
When described calls customer end and described called party client end adopt described repeated link to transmit described audio, video data, detect the transmission quality of described P2P transmission link;
When the transmission quality of described P2P transmission link is less than or equal to the 3rd predetermined threshold value, described audio, video data is switched to described P2P transmission link from described repeated link and transmits.
In the possible embodiment of the second, in conjunction with any possible embodiment in first aspect, described transmission quality comprises the propagation delay time of packet loss or the transmission link of transmission link.
Second aspect, the invention provides a kind of data transmission device, is contained in calls customer end, and described device comprises:
Communications link establishment unit, for setting up communications link with called party client end, described communications link comprises: point-tor point P 2 P transmission link and repeated link;
Detecting unit, when adopting the described P2P transmission link transmission tone video data of described communications link establishment unit foundation at described calls customer end and described called party client end, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link;
Switch unit, for when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link and transmits.
At the possible embodiment of the first, in conjunction with second aspect, described detecting unit, comprising:
First detection module, when adopting the described P2P transmission link transmission tone video data that described communications link establishment unit sets up at described calls customer end and described called party client end, detects the transmission quality of described P2P transmission link; Described first detection module, while being also more than or equal to the second predetermined threshold value for the transmission quality when described P2P transmission link, detects the transmission quality of described repeated link.
At the possible embodiment of the second, in conjunction with the possible embodiment of the first in second aspect,
Described first detection module, also, for described audio, video data being switched to from described P2P transmission link at described switch unit after described repeated link transmits, detects the transmission quality of described P2P transmission link;
Described switch unit, while being also less than or equal to the 3rd predetermined threshold value for the transmission quality when described P2P transmission link, being switched to described P2P transmission link by described audio, video data from described repeated link and transmitting.
In the third possible embodiment, in conjunction with second aspect, described detecting unit, comprising:
The second detection module, when adopting the described P2P transmission link transmission tone video data of described communications link establishment unit foundation at described calls customer end and described called party client end, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link simultaneously.
In the 4th kind of possible embodiment, in conjunction with the third possible embodiment in second aspect, described in
The second detection module, also, for described audio, video data being switched to from described P2P transmission link at described switch unit after described repeated link transmits, detects the transmission quality of described P2P transmission link;
Described switch unit, while being also less than or equal to the 3rd predetermined threshold value for the transmission quality when described P2P transmission link, being switched to described P2P transmission link by described audio, video data from described repeated link and transmitting.
In the 5th kind of possible embodiment, in conjunction with any possible embodiment in second aspect, described transmission quality comprises the propagation delay time of packet loss or the transmission link of transmission link.
The third aspect, the invention provides a kind of terminal equipment, comprising:
Memory, for storing the information that comprises program;
Processor, with described memory coupling, carries out for controlling described program, comprising: set up communications link with called party client end, described communications link comprises: point-tor point P 2 P transmission link and repeated link; When described terminal equipment and described called party client end adopt the described P2P transmission link transmission tone video data that described communications link establishment unit sets up, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link; And when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link and transmits.
In the possible embodiment of the first, in conjunction with the third aspect, described processor, for:
When described terminal equipment and described called party client end adopt described P2P transmission link transmission tone video data, detect the transmission quality of described P2P transmission link; When the transmission quality of described P2P transmission link is more than or equal to the second predetermined threshold value, detect the transmission quality of described repeated link; Or,
When described terminal equipment and described called party client end are set up described P2P transmission link transmission tone video data, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link simultaneously.
In the possible embodiment of the second, in conjunction with the third aspect or in conjunction with the possible embodiment of the first in the third aspect, described processor, also for:
When described terminal equipment and described called party client end adopt described repeated link to transmit described audio, video data, detect the transmission quality of described P2P transmission link;
When the transmission quality of described P2P transmission link is less than or equal to the 3rd predetermined threshold value, described audio, video data is switched to described P2P transmission link from described repeated link and transmits.
In the third possible embodiment, in conjunction with any possible embodiment in the third aspect, it is characterized in that, described transmission quality comprises the propagation delay time of packet loss or the transmission link of transmission link.
The embodiment of the present invention provides a kind of data transmission method, when adopting P2P transmission link transmission tone video data at calls customer end and called party client end, detects the transmission quality of P2P transmission link and the transmission quality of repeated link; When the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link to be transmitted, make at core network transmission quality unstable, particularly under the scene of cross operator, audio, video data is switched to described repeated link from described P2P transmission link and transmits, thus the transmission quality of raising voice or video data.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of a kind of data transmission method that Fig. 1 provides for the embodiment of the present invention 1;
The flow chart of the another kind of data transmission method that Fig. 2 A and Fig. 2 B provide for the embodiment of the present invention 1;
The flow chart of the another kind of data transmission method that Fig. 3 provides for the embodiment of the present invention 1;
The block diagram of a kind of data transmission device that Fig. 4 provides for the embodiment of the present invention 2;
The block diagram of the another kind of data transmission device that Fig. 5 provides for the embodiment of the present invention 2;
The block diagram of a kind of terminal equipment that Fig. 6 provides for the embodiment of the present invention 2.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, " first " in the embodiment of the present invention, " second " etc. are also not used in sequence, but the differentiation of carrying out for convenience of description.
Embodiment 1
The embodiment of the present invention provides a kind of data transmission method, and the executive agent of the method is calls customer end, and as shown in Figure 1, the method comprises:
Step 101, calls customer end and called party client end are set up communications link, and described communications link comprises: P2P transmission link and repeated link.
Calls customer end is for initiating the client of VOIP phone, and called party client end is the client of answering VOIP phone.
P2P directly carries out transfer of data at the two ends that refer in embodiments of the present invention communicate by letter, and does not need the transmission link through transit server.While adopting P2P transmission link to carry out audio frequency and video call, do not need to take server resource and the network bandwidth, but can be subject to the impact of the quality of core net.Repeated link refers to need to be through the transmission link of transit server.While adopting repeated link to carry out audio frequency and video call, because Relay Server is arranged at Border Gateway Protocol (the Border Gateway Protocol of operator conventionally, BGP) in machine room, therefore the quality of core net is relatively stable, but adopts repeated link to carry out when audio frequency and video are conversed taking server resource and the network bandwidth.
Optionally, after setting up P2P transmission link and repeated link, in order to save server bandwidth resource and to process resource, in the situation that all successfully setting up, multilink according to priority algorithm, select P2P transmission link as data transmission link by meeting, but unlike the prior art, the embodiment of the present invention does not discharge the transmission link except P2P transmission link, retain repeated link, so that when adopting P2P transmission link to carry out audio frequency and video call, when the quality of core net is unstable, P2P transmission link can be switched to repeated link, to improve the quality of audio frequency and video call.
Step 102, when calls customer end and called party client end employing P2P transmission link transmission tone video data, detects the transmission quality of P2P transmission link and the transmission quality of repeated link.
Wherein, the detailed process that detects the transmission quality of P2P transmission link and the transmission quality of repeated link for example can be following two kinds: the transmission quality that 1, first detects P2P transmission link, when the transmission quality of P2P transmission link is bad, then detect the transmission quality of repeated link; 2, detect the transmission quality of P2P transmission link and the transmission quality of repeated link simultaneously.
Optionally, transmission quality can comprise the propagation delay time of packet loss or the transmission link of transmission link.Packet loss refers to that in test, institute's lost data packets quantity accounts for the ratio of sent data packet number, conventionally at throughput scope build-in test.Propagation delay time refers to that one end of communicating pair (for example calls customer end and called party client end) sends packet to the other side and receives the needed time of packet that the other side returns.
It should be noted that, while detecting the transmission quality of P2P transmission link or repeated link, can be the transmission quality detecting in the time period, detects the packet loss of transmission link or the propagation delay time of transmission link in a period of time; The length of time period can preset.
Optionally, the transmission quality of detection P2P transmission link comprises: the first propagation delay time that detects the first packet loss or the detection P2P transmission link of P2P transmission link;
The transmission quality that detects repeated link, comprising: the second propagation delay time that detects the second packet loss or the detection repeated link of repeated link.
Step 103, when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, is switched to described repeated link by described audio, video data from described P2P transmission link and transmits.
Wherein, when transmission quality comprises the packet loss of transmission link, the first predetermined threshold value can be packet loss switching threshold; When transmission quality comprises the propagation delay time of transmission link, the first predetermined threshold value can be time delay switching threshold.
Optionally, when the difference of the transmission quality of the transmission quality when described P2P transmission link and described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to before described repeated link transmits from described P2P transmission link, also comprises: the difference of calculating the transmission quality of described P2P transmission link and the transmission quality of described repeated link; Whether the difference that judges the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value.
Further alternative, the difference of calculating the transmission quality of described P2P transmission link and the transmission quality of described repeated link can comprise: calculate the packet loss difference of the first packet loss of P2P transmission link and the second packet loss of repeated link, or calculate the propagation delay time difference of the first propagation delay time of P2P transmission link and the second propagation delay time of repeated link.
Whether the difference that judges the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value comprises: judge whether packet loss difference is more than or equal to packet loss switching threshold, or judge whether propagation delay time difference is more than or equal to time delay switching threshold.
Further alternative, when packet loss difference is more than or equal to packet loss switching threshold, or, when propagation delay time difference is more than or equal to time delay switching threshold, audio frequency and video calls is switched to repeated link from P2P transmission link and is about to audio, video data and from P2P transmission link, is switched to repeated link and transmits.
It should be noted that, before execution step 103, can also obtain in advance the configuration information that transmission link switches, described configuration information at least can comprise the first predetermined threshold value, for example: packet loss switching threshold and time delay switching threshold.Whether described configuration messages carries out the switching of transmission link for decision-making.
The embodiment of the present invention provides a kind of data transmission method, when adopting P2P transmission link transmission tone video data at calls customer end and called party client end, detects the transmission quality of P2P transmission link and the transmission quality of repeated link; When the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link to be transmitted, make at core network transmission quality unstable, particularly under the scene of cross operator, audio, video data is switched to described repeated link from described P2P transmission link and transmits, thus the transmission quality of raising voice or video data.
The embodiment of the present invention provides another kind of data transmission method, and the method is 2A and accompanying drawing 2B description with reference to the accompanying drawings.As shown in Figure 2 A, the method comprises:
Step 201, calls customer end sends to expanding communication and presentation protocol (Extensible Messaging and Presence Protocol, XMPP) server (Server) request message obtain the configuration information that transmission link switches.
In various embodiments of the present invention, configuration information can comprise: the first predetermined threshold value, the second predetermined threshold value, the 3rd predetermined threshold value and statistics duration, specifically can comprise: packet loss switching threshold, time delay switching threshold, the first packet loss check that threshold value, the first time delay check that threshold value, the second packet loss check that threshold value, the second time delay check threshold value and statistics duration.Wherein, configuration information can arrange according to practical experience.For example, the first packet loss checks that threshold value can be 5%, the first time delay checks that threshold value can be 50 milliseconds, the second packet loss checks that threshold value can be 2%, the second time delay checks that threshold value can be 20 milliseconds, and packet loss switching threshold can be 2%, and time delay switching threshold can be 30 milliseconds, statistics duration can be 20 seconds, and statistics duration is the length of the time period of detecting.Certainly, the present invention is the value of parameters in limitation arrangement information not, and parameters can also be set to other value.
Optionally, when configuration information is used for switching transmission link, adopt, for example, when current transmission link meets one or more Parameter Conditions in configuration information, current transmission link is switched to the transmission that another transmission link carries out audio, video data.
Client is voip client end, comprises calls customer end and called party client end, for initiating or answer VOIP phone.
XMPP Server can be called signal server, for client registration or forwarded call signaling.
Step 202, XMPP Server receives the request message of the configuration information that obtains transmission link switching, and the configuration information of preservation is sent to calls customer end.
Step 203, calls customer end obtains the configuration information that transmission link switches.
Step 204, calls customer end is initiated VOIP audio call.
Step 205, calls customer end sends the request message that obtains address list to Stun Server.
Calls customer end sends the request message that obtains address list to Stun Server, its object is to carry out detection of connectivity with called party client end, to set up transmission link.
Step 206, Stun Server sends address list to calls customer end.
Optionally, address list comprises that local address, fire compartment wall mapping address and Stun Server or Turn Server are the relay address that calls customer end distributes.Wherein, local address refers to Intranet local network agreement (Internet Protocol, the IP) address set of calls customer end, so that communicate by letter with called party client end; When fire compartment wall mapping address refers to that client is connected with outer net, Intranet IP and public network IP are shone upon mutually, and the different port of same public network IP can be mapped to Intranet different IP port; Stun Server or Turn Server are that the relay address that calls customer end distributes refers to, when the transmission link of setting up between calls customer end and called party client end is repeated link, provide the address of the server of relay services.
Step 207, calls customer termination is received the address list that Stun Server sends.
Step 208, calls customer end is initiated XMPP call request signaling to called party client end.
XMPP call request signaling comprises address list that calls customer end obtains and the signaling address of called party client end.The signaling address of called party client end can be connected to the address of called party client end for XMPP signaling.
Optionally, calls customer end sends XMPP call request signaling to XMPP Server, after XMPP Server receives XMPP call request signaling, according to the signaling address of the called party client end in XMPP call request signaling, XMPP call request signaling is transmitted to called party client end.
Step 209, called party client termination is received XMPP call request signaling, obtains address list.
Called party client end sends the request message that obtains address list to XMPP Server, XMPP Server is transmitted to Stun Server by this request message, by Stun Server, called party client end address list to be obtained is sent to called party client end.
The address list that called party client end obtains comprises local address, the relay address that outer net mapping address and Stun Server or Turn Server are its distribution.Local address refers to the Intranet local ip address collection of called party client end.
The object that called party client end obtains address list is to carry out detection of connectivity with calls customer end, to set up transmission link.
Step 210, called party client end sends to calls customer end by the address list of acquisition.
Called party client end can send to XMPP Server by the address list of acquisition by communication Transport-info signaling, and by XMPP Server, the Transport-info signaling receiving is transmitted to calls customer end.
Step 211, after calls customer termination is received the address list of called party client end transmission, calls customer end and called party client end are set up communications link, and communications link comprises: P2P transmission link and repeated link.
Optionally, calls customer end and called party client end receive respectively the address list that the other side sends, and then according to the address list receiving, carry out detection of connectivity.Detection of connectivity is that data interaction formula connects a part of setting up ICE consensus standard standard, be that client sends the packet of prescribed form to a plurality of addresses of the other side, see which bar passage can set up, then in the passage of setting up, by priority rule, select the transmission link that priority is the highest.
It should be noted that, when P2P transmission link is successfully established, in order to save server bandwidth resource and to process resource, in the situation that multilink is all successfully set up, by meeting, according to priority algorithm, select P2P transmission link as data transmission link.In the embodiment of the present invention using P2P transmission link after the transmission link of transmission tone video data, still can retain repeated link.
P2P directly carries out transfer of data at the two ends that refer in embodiments of the present invention communicate by letter, and does not need the transmission link through transit server.While adopting P2P transmission link to carry out audio, video data transmission, do not need to take server resource and the network bandwidth, but can be subject to the impact of the quality of core net.Repeated link refers to need to be through the transmission link of transit server.While adopting repeated link to carry out audio frequency and video call, because Relay Server is arranged in the BGP machine room of operator conventionally, therefore the quality of core net is relatively stable, but adopts repeated link to carry out when audio frequency and video are conversed taking server resource and the network bandwidth.
Step 212, called party client end is selected to receive calls, and calls customer end and called party client end adopt P2P transmission link transmission tone video data.
Optionally, in the present embodiment, after called party client end selects to connect phone, to XMPP Server, send session establishment Session-accept signaling, XMPP Server is transmitted to calls customer end by the Session-accept signaling receiving, calls customer end and called party client end can adopt P2P transmission link to carry out audio, video data transmission like this, adopt P2P transmission link to carry out audio frequency and video call.
As shown in Figure 2 B:
Step 213, calls customer end and called party client end adopt in P2P transmission link transmission tone video data process, and calls customer end detects the transmission quality of P2P transmission link.
The transmission quality that detects P2P transmission link comprises the first packet loss that detects described P2P transmission link or the first propagation delay time that detects described P2P transmission link.
The transmission quality that detects P2P transmission link specifically can comprise: in statistics duration, calls customer end sends audio, video data bag by P2P transmission link continuously to called party client end, after called party client termination radio reception video packets of data, respond, the first packet loss of the number ratio calculation P2P transmission link of the audio, video data bag that the audio, video data bag number that calls customer end sends by the called party client end receiving and calls customer end send, or, the time interval between the audio, video data bag that the audio, video data bag that calls customer end sends according to the called party client end receiving and calls customer end send is calculated the first propagation delay time of P2P transmission link
Further alternative, the transmission quality of the P2P transmission link detecting is preserved.
Step 214, calls customer end judges whether the transmission quality of described P2P transmission link is more than or equal to the second predetermined threshold value; When the transmission quality of described P2P transmission link is more than or equal to the second predetermined threshold value, execution step 215; When the transmission quality of described P2P transmission link is less than the second predetermined threshold value, calls customer end continues execution step 213.
In each the present embodiment of the present invention, the second predetermined threshold value comprises that the first packet loss checks that threshold value or the first time delay check threshold value, and wherein, the first packet loss checks that threshold value for example can check that threshold value for example can be 50 milliseconds for 5%, the first time delay.
Whether the transmission quality that judges P2P transmission link is more than or equal to the second predetermined threshold value comprises: judge whether described the first packet loss is more than or equal to described the first packet loss and checks threshold value; Or, judge whether described the first propagation delay time is more than or equal to described the first time delay and checks threshold value.
In step 213, detected the first packet loss of P2P transmission link, when carrying out this step, can judge whether the first packet loss is more than or equal to described the first packet loss and checks threshold value, whether the first packet loss that for example, judgement detects is more than or equal to 5%.
In step 213, detect the first propagation delay time of P2P transmission link, when carrying out this step, can judge whether the first propagation delay time is more than or equal to described the first time delay and checks threshold value, whether the first propagation delay time that for example, judgement detects is more than or equal to 50 milliseconds.
When the transmission quality of described P2P transmission link is less than the second predetermined threshold value, can continues to detect the transmission quality of P2P transmission link, or after a period of time, continue to detect again the transmission quality of P2P transmission link.
Step 215, calls customer end detects the transmission quality of repeated link.
When the transmission quality of described P2P transmission link is more than or equal to the second predetermined threshold value, trigger the detection of the transmission quality of repeated link.The transmission quality that detects repeated link comprises the second packet loss that detects described repeated link or the second propagation delay time that detects described repeated link.
The transmission quality that detects repeated link refers in statistics duration, client is given out a contract for a project to opposite end continuously by repeated link, this bag can be common ping packet, packet loss and propagation delay time for detection of transmission link, opposite end makes an immediate response after receiving request bag, client is by the respond packet number of receiving and second packet loss of asking the number ratio calculation repeated link of bag, or client is calculated the second propagation delay time of repeated link according to the time interval between respond packet and transmission bag.
Step 216, calls customer end calculates the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link.
Optionally, the difference of the transmission quality of the described P2P transmission link of described calculating and the transmission quality of described repeated link comprises: the packet loss difference of calculating described the first packet loss and described the second packet loss; Or, calculate the propagation delay time difference of described the first propagation delay time and described the second propagation delay time.
Step 217, calls customer end judges whether the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value.
Optionally, described the first predetermined threshold value comprises described packet loss switching threshold or described time delay switching threshold, and wherein, packet loss switching threshold can be for example 2%, and time delay switching threshold for example can be 30 milliseconds.
In this step, describedly judge that whether the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, comprising: judge whether described packet loss difference is more than or equal to described packet loss switching threshold; Or, judge whether described propagation delay time difference is more than or equal to described time delay switching threshold.
In step 213, detected the first packet loss of P2P transmission link, in step 215, detected the second packet loss of repeated link, when carrying out this step, can judge whether described packet loss difference is more than or equal to described packet loss switching threshold, for example, judge whether packet loss difference is more than or equal to 2%.
In step 213, detect the first propagation delay time of P2P transmission link, in step 215, detected the second propagation delay time of repeated link, when carrying out this step, can judge whether propagation delay time difference is more than or equal to described time delay switching threshold, for example, judge whether propagation delay time difference is more than or equal to 30 milliseconds.
Step 218, when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is less than the first predetermined threshold value, calls customer end continues to adopt P2P transmission link transmission tone video data.
Step 219, when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, calls customer end is switched to described repeated link by described audio, video data from described P2P transmission link and transmits.
In this step, the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, comprising: described packet loss difference is more than or equal to described packet loss switching threshold; Or described propagation delay time difference is more than or equal to described time delay switching threshold.
The transmission link of the packet of audio frequency and video call is switched to repeated link from P2P transmission link, and the packet of subsequent sound video calling transmits by repeated link.
Step 220, in calls customer end and called party client end employing repeated link transmission tone video data process, calls customer end detects the transmission quality of P2P transmission link.
Optionally, this step is identical with the manner of execution of step 213, and transmission quality comprises the propagation delay time of packet loss or the transmission link of transmission link.For example, the transmission quality of detection P2P transmission link comprises the first packet loss that detects described P2P transmission link or the first propagation delay time that detects described P2P transmission link.
Step 221, calls customer end judges whether the transmission quality of described P2P transmission link is less than or equal to the 3rd predetermined threshold value.
The 3rd predetermined threshold value comprises that the second default packet loss checks that threshold value or the second default time delay check threshold value.While detecting the first packet loss of P2P transmission link in step 220, in this step, can judge whether the first packet loss is less than or equal to the second packet loss and checks threshold value; While detecting the first propagation delay time of P2P transmission link in step 220, in this step, can judge whether the first propagation delay time is less than or equal to the second time delay and checks threshold value.
Step 222, when the transmission quality of described P2P transmission link is less than or equal to described the 3rd predetermined threshold value, calls customer end is switched to described P2P transmission link by described audio, video data from described repeated link and transmits.
Optionally, when the first packet loss is less than or equal to the second packet loss, check threshold value, or the first propagation delay time is when being less than or equal to the second time delay and checking threshold value, and audio frequency and video call is switched to described P2P transmission link from described repeated link.Because P2P transmission link does not need to take the bandwidth resources of server and processes resource, therefore when the transmission quality of P2P transmission link reaches certain predetermined threshold value, after the transmission quality of P2P transmission link recovers to stablize, can adopt again P2P transmission link to carry out audio, video data transmission, to save bandwidth resources and to process resource.
Step 223, when the transmission quality of described P2P transmission link is greater than described the 3rd predetermined threshold value, calls customer end continues to adopt repeated link to carry out audio, video data transmission.
The embodiment of the present invention provides a kind of data transmission method, by detecting the link-quality of P2P transmission link and the link-quality of repeated link, when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, audio, video data is switched to described repeated link transmission from described P2P transmission link, making can be unstable at core network transmission quality, particularly under the scene of cross operator, employing P2P transmission link is carried out to audio, video data transmission to be switched to and adopts repeated link to carry out audio, video data transmission, to improve voice or video speech quality.In addition, when the transmission quality of P2P transmission link recovers to stablize, audio, video data is switched to P2P transmission link from repeated link and transmits, to save bandwidth resources and to process resource.
The embodiment of the present invention provides another kind of data transmission method, it should be noted that, in the data transmission method that the present embodiment provides, step 301-step 311 is identical with step 201-step 211 in the data transmission method shown in accompanying drawing 2, specifically can be referring to step 201-step 211 in the data transmission method shown in accompanying drawing 2, at this, do not repeat one by one, and in accompanying drawing 3, no longer describe, as shown in Figure 3, the method comprises:
Step 312, called party client end is selected to receive calls, and calls customer end and called party client end adopt described P2P transmission link transmission tone video data.
Optionally, in the present embodiment, after called party client end selects to connect phone, to XMPP Server, send session establishment Session-accept signaling, XMPP Server is transmitted to calls customer end by the Session-accept signaling receiving, and calls customer end and called party client end can adopt described P2P transmission link transmission tone video data like this.
Step 313 in statistics duration, detects the transmission quality of P2P transmission link and the transmission quality of described repeated link simultaneously.
For example adding up duration can be 20 seconds.
Transmission quality comprises the propagation delay time of packet loss or the transmission link of transmission link.
The transmission quality that detects P2P transmission link comprises the first packet loss or the first propagation delay time that detects described P2P transmission link.
When detecting the transmission quality of P2P transmission link, detect the transmission quality of repeated link.The transmission quality that detects repeated link comprises: the second propagation delay time that detects the second packet loss or the repeated link of described repeated link.
Step 314, calculates the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link.
Optionally, the difference of the transmission quality of the described P2P transmission link of described calculating and the transmission quality of described repeated link comprises: the packet loss difference of calculating described the first packet loss and described the second packet loss; Or, calculate the propagation delay time difference of described the first propagation delay time and described the second propagation delay time.
Step 315, judges whether the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value.
Optionally, described the first predetermined threshold value comprises described packet loss switching threshold or described time delay switching threshold, and wherein, packet loss switching threshold can be for example 2%, and time delay switching threshold for example can be 30 milliseconds.
In this step, describedly judge that whether the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, comprising: judge whether described packet loss difference is more than or equal to described packet loss switching threshold; Or, judge whether described propagation delay time difference is more than or equal to described time delay switching threshold.
Step 316, when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is less than the first predetermined threshold value, continues to adopt P2P transmission link to carry out audio, video data transmission.
Step 317, when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, is switched to described repeated link by described audio, video data from described P2P transmission link and transmits.
The transmission link of the packet of audio frequency and video call is switched to repeated link from P2P transmission link, and the packet of subsequent sound video calling transmits by repeated link.
It should be noted that, in step 313-step 317, detect the transmission quality of P2P transmission link and the transmission quality of repeated link simultaneously, and the difference of calculating the transmission quality of described P2P transmission link and the transmission quality of described repeated link, and to switch to the execution flow process of repeated link and the execution flow process of step 312 be concurrent execution by P2P transmission link, at employing P2P transmission link, carry out audio, video data transmission and detect at the very start the transmission quality of P2P transmission link and the transmission quality of repeated link simultaneously, and the follow-up operations such as judgement.
It should be noted that after step 317, can also carry out the step 221-step 224 in accompanying drawing 2, P2P transmission link is carried out the detection of transmission quality, when the transmission quality of P2P transmission link is less than or equal to the 3rd predetermined threshold value, audio frequency and video call is switched to P2P transmission link from repeated link, to save bandwidth resources and to process resource.Specifically can, referring to the step 221-step 224 in accompanying drawing 2, in accompanying drawing 3, no longer describe.
The embodiment of the present invention provides a kind of data transmission method, by detect the transmission quality of P2P transmission link and repeated link simultaneously, calculate the link-quality of P2P transmission link and the link-quality of repeated link, when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link transmission from described P2P transmission link, making can be unstable at core network transmission quality, particularly under the scene of cross operator, employing P2P transmission link is carried out to audio, video data transmission to be switched to and adopts repeated link to carry out audio, video data transmission, to improve the transmission quality of voice or video data.
Embodiment 2
The embodiment of the present invention provides a kind of data transmission device, and as shown in Figure 4, this device is contained in calls customer end, and this device comprises: communications link establishment unit 401, detecting unit 402, switch unit 403;
Communications link establishment unit 401, for setting up communications link with called party client end, described communications link comprises: point-tor point P 2 P transmission link and repeated link;
Detecting unit 402, when adopting the described P2P transmission link transmission tone video data of described communications link establishment unit foundation at described calls customer end and described called party client end, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link;
Transmission quality comprises the propagation delay time of packet loss or the transmission link of transmission link.Detecting unit 401 is for detection of the first propagation delay time of the first packet loss or the P2P transmission link of P2P transmission link, and detecting unit 401 is for detection of the second propagation delay time of the second packet loss or the repeated link of repeated link.
Switch unit 403, for when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link and transmits.
Further alternative, as shown in Figure 5, described detecting unit 402 comprises: first detection module 4021;
Described first detection module 4021, when adopting the described P2P transmission link transmission tone video data that described communications link establishment unit sets up at described calls customer end and described called party client end, detects the transmission quality of described P2P transmission link; Described first detection module 4021, while being also more than or equal to the second predetermined threshold value for the transmission quality when described P2P transmission link, detects the transmission quality of described repeated link.
Further alternative, when the transmission quality of described P2P transmission link is less than the second predetermined threshold value, continue to detect the transmission quality of P2P transmission link, or every a period of time, continue again to detect the transmission quality of P2P transmission link.
Further alternative, described the second predetermined threshold value comprises that described the first packet loss checks that threshold value or described the first time delay check threshold value;
Described first detection module 4021 for, when described the first packet loss is more than or equal to described the first packet loss, check threshold value, or described the first propagation delay time is when being more than or equal to described the first time delay and checking threshold value, detects the transmission quality of repeated link.
Further alternative, described switch unit is switched to described audio, video data after described repeated link transmits from described P2P transmission link, and described first detection module 4021 is also for detection of the transmission quality of described P2P transmission link.
When the transmission quality of described P2P transmission link is less than or equal to the 3rd predetermined threshold value, described switch unit 403, also transmits for described audio, video data is switched to described P2P transmission link from described repeated link.
Further alternative, described detecting unit 402 comprises: the second detection module 4022;
Described the second detection module 4022, when adopting the described P2P transmission link transmission tone video data of described communications link establishment unit foundation at described calls customer end and described called party client end, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link simultaneously.
It should be noted that, in detecting unit 402, can only comprise any module in first detection module 4021 and the second detection module 4022, in accompanying drawing 5, with first detection module 4021 with empty wire frame representation, take and illustrate that first detection module 4021 and the second detection module 4022 are optional module, certainly can also, with empty wire frame representation the second detection module 4022, in accompanying drawing 5, no longer illustrate.
Further alternative, when described detecting unit 402 comprises the second detection module 4022, described the second detection module 4022 can also be for: at described switch unit, described audio, video data is switched to from described P2P transmission link after described repeated link transmits, detects the transmission quality of described P2P transmission link;
Described switch unit 403, while being also less than or equal to the 3rd predetermined threshold value for the transmission quality when described P2P transmission link, being switched to described P2P transmission link by described audio, video data from described repeated link and transmitting.
Further alternative, the first predetermined threshold value comprises packet loss switching threshold or time delay switching threshold.
Described audio, video data is being switched to from described P2P transmission link before described repeated link transmits, is calculating the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link; Calculate the packet loss difference of described the second packet loss and described the first packet loss; Or, calculate the propagation delay time difference of described the second propagation delay time and described the first propagation delay time.
Whether the difference that judges the transmission quality of described P2P transmission link and the transmission quality of described repeated link is greater than the first predetermined threshold value.Judge whether described packet loss difference is greater than described packet loss switching threshold; Or, judge whether described propagation delay time difference is greater than described time delay switching threshold;
Described switch unit 403 for, when described packet loss difference is greater than described packet loss switching threshold, or described propagation delay time difference is greater than described time delay switching threshold, described audio, video data is switched to described repeated link from described P2P transmission link and transmits.
Optionally, when described transmission quality comprises the packet loss of transmission link, described the first predetermined threshold value comprises packet loss switching threshold, and described the second predetermined threshold value comprises that the first packet loss checks threshold value, and described the 3rd predetermined threshold value comprises that the second packet loss checks threshold value;
When described transmission quality comprises the propagation delay time of transmission link, described the first predetermined threshold value comprises time delay switching threshold, and described the second predetermined threshold value comprises that the first time delay checks threshold value, and described the 3rd predetermined threshold value comprises that the second time delay checks threshold value.
It should be noted that, in accompanying drawing 4 and accompanying drawing 5 shown devices, the specific implementation process of its modules and the contents such as information interaction between modules, due to the inventive method embodiment based on same inventive concept, can, referring to embodiment of the method, at this, not repeat one by one.
The embodiment of the present invention provides a kind of device that switches transmission link, by detecting unit, when described calls customer end and described called party client end adopt the described P2P transmission link transmission tone video data that described communications link establishment unit sets up, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link; Switch unit, for when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link to be transmitted, making can be unstable at core network transmission quality, particularly under the scene of cross operator, employing P2P transmission link is carried out to audio, video data transmission and switch to and adopt repeated link to carry out audio, video data transmission, to improve voice or video speech quality.In addition, when the transmission quality of P2P transmission link recovers to stablize, audio, video data transmission is switched to P2P transmission link from repeated link, to save bandwidth resources and to process resource.
The embodiment of the present invention also provides a kind of terminal equipment, and as shown in Figure 6, this terminal equipment comprises: memory 601, processor 602;
Memory 601, for storing the information that comprises program;
Processor 602, with memory 601 couplings, for controlling the execution of described program, specifically comprises: set up communications link with called party client end, described communications link comprises: point-tor point P 2 P transmission link and repeated link; When described terminal equipment and described called party client end adopt the described P2P transmission link transmission tone video data that described communications link establishment unit sets up, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link; And when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link and transmits.
It should be noted that, this terminal equipment can be equivalent to the calls customer end equipment in aforementioned each embodiment.
Further alternative, described processor 602, also, for when described terminal equipment and described called party client end adopt described P2P transmission link transmission tone video data, detects the transmission quality of described P2P transmission link; When the transmission quality of described P2P transmission link is more than or equal to the second predetermined threshold value, detect the transmission quality of described repeated link; Or,
When described terminal equipment and described called party client end are set up described P2P transmission link transmission tone video data, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link simultaneously.
Further alternative, described transmission quality comprises packet loss or the propagation delay time of transmission link;
Described processor 602 for, detect the first packet loss or first propagation delay time of described P2P transmission link;
Described processor 602 for, detect the second packet loss or second propagation delay time of described repeated link.
Further alternative, when the difference of the transmission quality of the transmission quality when described P2P transmission link and described repeated link is more than or equal to the first predetermined threshold value, before described processor 602 is switched to described repeated link by audio frequency and video call from described P2P transmission link, described processor 602 also for, calculate the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link, described processor 602 is specifically for calculating the packet loss difference of described the first packet loss and described the second packet loss; Or, calculate the propagation delay time difference of described the first propagation delay time and described the second propagation delay time.
Described processor 602 also for, judge whether the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value.
Further alternative, described the first predetermined threshold value comprises described packet loss switching threshold or described time delay switching threshold;
Described processor 602 for, judge whether described packet loss difference is more than or equal to described packet loss switching threshold; Or, judge whether described propagation delay time difference is more than or equal to described time delay switching threshold; Described processor 602 for, when described packet loss difference is more than or equal to described packet loss switching threshold; Or described propagation delay time difference is more than or equal to described time delay switching threshold, audio frequency and video call is switched to described repeated link from described P2P transmission link.
Further alternative, at described switch unit, described audio, video data is switched to from described P2P transmission link after described repeated link transmits, described processor 602, also, for when described terminal equipment and described called party client end adopt described repeated link to transmit described audio, video data, detect the transmission quality of described P2P transmission link;
When the transmission quality of described P2P transmission link is less than or equal to the 3rd predetermined threshold value, described audio, video data is switched to described P2P transmission link from described repeated link and transmits.
When the transmission quality of described P2P transmission link is greater than described the 3rd predetermined threshold value, continue to adopt repeated link to carry out audio, video data transmission.
The 3rd predetermined threshold value comprises that the second default packet loss checks that threshold value or the second default time delay check threshold value.
It should be noted that, in accompanying drawing 6 shown devices, the specific implementation process of its modules and the contents such as information interaction between modules, due to the inventive method embodiment based on same inventive concept, can, referring to embodiment of the method, at this, not repeat one by one.
The embodiment of the present invention provides a kind of device that switches transmission link, by processor when described terminal equipment and described called party client end adopt the described P2P transmission link transmission tone video data that described communications link establishment unit sets up, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link to be transmitted, make to improve voice or video speech quality.In addition, when the transmission quality of P2P transmission link recovers to stablize, audio, video data transmission is switched to P2P transmission link from repeated link, to save bandwidth resources and to process resource.
It should be noted that, device embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.Those of ordinary skills, in the situation that not paying creative work, are appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, can certainly comprise that application-specific integrated circuit (ASIC), dedicated cpu, private memory, special-purpose components and parts etc. realize by specialized hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk USB flash disk of computer, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Acces s Memory), magnetic disc or CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) method described in each embodiment of execution the present invention.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually referring to, each embodiment stresses is the difference with other embodiment.Especially, for device and system embodiment, because it is substantially similar in appearance to embodiment of the method, so describe fairly simplely, relevant part is referring to the part explanation of embodiment of the method.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection range with claim.

Claims (14)

1. a data transmission method, is characterized in that, comprising:
Calls customer end and called party client end are set up communications link; Described communications link comprises: point-tor point P 2 P transmission link and repeated link;
When described calls customer end and described called party client end adopt described P2P transmission link transmission tone video data, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link;
When the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link and transmits.
2. method according to claim 1, is characterized in that, the transmission quality of the described P2P transmission link of described detection and the transmission quality of described repeated link comprise:
Detect the transmission quality of described P2P transmission link; When the transmission quality of described P2P transmission link is more than or equal to the second predetermined threshold value, detect the transmission quality of described repeated link; Or,
Detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link simultaneously.
3. method according to claim 1 and 2, is characterized in that, described, described audio, video data is switched to from described P2P transmission link after described repeated link transmits, and also comprises:
When described calls customer end and described called party client end adopt described repeated link to transmit described audio, video data, detect the transmission quality of described P2P transmission link;
When the transmission quality of described P2P transmission link is less than or equal to the 3rd predetermined threshold value, described audio, video data is switched to described P2P transmission link from described repeated link and transmits.
4. according to the method described in any one in claim 1-3, it is characterized in that, described transmission quality comprises the propagation delay time of packet loss or the transmission link of transmission link.
5. a data transmission device, is contained in calls customer end, it is characterized in that, described device comprises:
Communications link establishment unit, for setting up communications link with called party client end, described communications link comprises: point-tor point P 2 P transmission link and repeated link;
Detecting unit, when adopting the described P2P transmission link transmission tone video data of described communications link establishment unit foundation at described calls customer end and described called party client end, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link;
Switch unit, for when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link and transmits.
6. device according to claim 5, is characterized in that, described detecting unit, comprising:
First detection module, when adopting the described P2P transmission link transmission tone video data that described communications link establishment unit sets up at described calls customer end and described called party client end, detects the transmission quality of described P2P transmission link; Described first detection module, while being also more than or equal to the second predetermined threshold value for the transmission quality when described P2P transmission link, detects the transmission quality of described repeated link.
7. device according to claim 6, is characterized in that,
Described first detection module, also, for described audio, video data being switched to from described P2P transmission link at described switch unit after described repeated link transmits, detects the transmission quality of described P2P transmission link;
Described switch unit, while being also less than or equal to the 3rd predetermined threshold value for the transmission quality when described P2P transmission link, being switched to described P2P transmission link by described audio, video data from described repeated link and transmitting.
8. device according to claim 5, is characterized in that, described detecting unit, comprising:
The second detection module, when adopting the described P2P transmission link transmission tone video data of described communications link establishment unit foundation at described calls customer end and described called party client end, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link simultaneously.
9. device according to claim 8, it is characterized in that, described the second detection module, also, for described audio, video data being switched to from described P2P transmission link at described switch unit after described repeated link transmits, detects the transmission quality of described P2P transmission link;
Described switch unit, while being also less than or equal to the 3rd predetermined threshold value for the transmission quality when described P2P transmission link, being switched to described P2P transmission link by described audio, video data from described repeated link and transmitting.
10. according to the device described in any one in claim 5-9, it is characterized in that, described transmission quality comprises the propagation delay time of packet loss or the transmission link of transmission link.
11. 1 kinds of terminal equipments, is characterized in that, comprising:
Memory, for storing the information that comprises program;
Processor, with described memory coupling, carries out for controlling described program, comprising: set up communications link with called party client end, described communications link comprises: point-tor point P 2 P transmission link and repeated link; When described calls customer end and described called party client end adopt the described P2P transmission link transmission tone video data that described communications link establishment unit sets up, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link; And when the difference of the transmission quality of described P2P transmission link and the transmission quality of described repeated link is more than or equal to the first predetermined threshold value, described audio, video data is switched to described repeated link from described P2P transmission link and transmits.
12. terminal equipments according to claim 11, is characterized in that, described processor, for:
When described calls customer end and described called party client end adopt described P2P transmission link transmission tone video data, detect the transmission quality of described P2P transmission link; When the transmission quality of described P2P transmission link is more than or equal to the second predetermined threshold value, detect the transmission quality of described repeated link; Or,
When described calls customer end and described called party client end are set up described P2P transmission link transmission tone video data, detect the transmission quality of described P2P transmission link and the transmission quality of described repeated link simultaneously.
13. according to the terminal equipment described in claim 11 or 12, it is characterized in that, described processor, also for:
When described calls customer end and described called party client end adopt described repeated link to transmit described audio, video data, detect the transmission quality of described P2P transmission link;
When the transmission quality of described P2P transmission link is less than or equal to the 3rd predetermined threshold value, described audio, video data is switched to described P2P transmission link from described repeated link and transmits.
14. according to the terminal equipment described in any one in claim 10-13, it is characterized in that, described transmission quality comprises the propagation delay time of packet loss or the transmission link of transmission link.
CN201380000354.XA 2013-03-26 2013-03-26 Data transmission method, apparatus and terminal device Pending CN103718532A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013073183 2013-03-26

Publications (1)

Publication Number Publication Date
CN103718532A true CN103718532A (en) 2014-04-09

Family

ID=50409503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380000354.XA Pending CN103718532A (en) 2013-03-26 2013-03-26 Data transmission method, apparatus and terminal device

Country Status (1)

Country Link
CN (1) CN103718532A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306867A (en) * 2014-06-05 2016-02-03 掌赢信息科技(上海)有限公司 Method, device and system for improving end-to-end video transmission quality
CN105516640A (en) * 2015-12-15 2016-04-20 Tcl集团股份有限公司 Method and system for detecting abnormality of video communication conversation
CN105553868A (en) * 2015-09-21 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Data transmission method and device and terminal
CN105592094A (en) * 2015-12-30 2016-05-18 深圳市有信网络技术有限公司 Internet telephone link establishing method and system
CN105897478A (en) * 2016-04-12 2016-08-24 腾讯科技(深圳)有限公司 Chain decision method and decision device
CN106792798A (en) * 2016-11-28 2017-05-31 北京奇虎科技有限公司 Line detection method and device that mobile terminal remote is assisted
CN106791685A (en) * 2016-12-31 2017-05-31 深圳市愚公科技有限公司 A kind of remote audio-video transmission method and device
CN107979507A (en) * 2017-11-21 2018-05-01 广州视源电子科技股份有限公司 A kind of data transmission method, device, equipment and storage medium
CN108111556A (en) * 2016-11-24 2018-06-01 深圳市优朋普乐传媒发展有限公司 A kind of data transmission method and system
WO2018107432A1 (en) * 2016-12-15 2018-06-21 瞬已网络科技(上海)有限公司 Real-time video transmission method of multipath network
WO2018127062A1 (en) * 2017-01-06 2018-07-12 腾讯科技(深圳)有限公司 Link adjustment method, server, and data storage medium
CN108650482A (en) * 2018-05-14 2018-10-12 平安科技(深圳)有限公司 A kind of response method and equipment of video calling service
CN109495599A (en) * 2018-11-16 2019-03-19 深圳市网心科技有限公司 Data transmission method and system, electronic device and computer readable storage medium
CN109756555A (en) * 2018-11-13 2019-05-14 北京码牛科技有限公司 Big data processing method and processing device based on Internet of Things
CN110536093A (en) * 2019-08-05 2019-12-03 华为技术有限公司 A kind of method, apparatus and system selecting backbone network in audio-video real-time Transmission
CN110545566A (en) * 2019-09-11 2019-12-06 腾讯科技(深圳)有限公司 link switching method, device, equipment and storage medium
CN111212257A (en) * 2020-01-17 2020-05-29 北京字节跳动网络技术有限公司 Control method and device for distributed video conference and related equipment
WO2020191864A1 (en) * 2019-03-27 2020-10-01 网宿科技股份有限公司 Method, system and device for determining transmission quality of node, and server
US10917497B2 (en) 2019-03-27 2021-02-09 Wangsu Science & Technology Co., Ltd. Method, system, device and server for determining transmission quality of node
CN112822743A (en) * 2018-01-02 2021-05-18 西安万像电子科技有限公司 Link switching method and device
CN114915748A (en) * 2021-02-09 2022-08-16 华为技术有限公司 Method, system and related device for dynamically switching audio and video communication modes

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549613A (en) * 2003-05-19 2004-11-24 �ʼҷ����ֵ��ӹɷ����޹�˾ Method and apparatus for soft switching between P2P communication mode and traditional communication mode in radio communication system
CN101102310A (en) * 2007-07-25 2008-01-09 中国科学院沈阳计算技术研究所有限公司 SIP soft switching system supporting P2P media transmission and its implementation method
US20080313351A1 (en) * 2007-06-14 2008-12-18 Alcatel Lucent Device for managing the receipt by terminals of multimedia content transmitted by infrastructures that implement different transmission techniques
CN101420434A (en) * 2008-12-03 2009-04-29 深圳市众方信息科技有限公司 P2P method for supporting VoIP communication
CN102025594A (en) * 2009-09-14 2011-04-20 中国科学院声学研究所 Dynamic route adjusting method and system under NAT environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549613A (en) * 2003-05-19 2004-11-24 �ʼҷ����ֵ��ӹɷ����޹�˾ Method and apparatus for soft switching between P2P communication mode and traditional communication mode in radio communication system
US20080313351A1 (en) * 2007-06-14 2008-12-18 Alcatel Lucent Device for managing the receipt by terminals of multimedia content transmitted by infrastructures that implement different transmission techniques
CN101102310A (en) * 2007-07-25 2008-01-09 中国科学院沈阳计算技术研究所有限公司 SIP soft switching system supporting P2P media transmission and its implementation method
CN101420434A (en) * 2008-12-03 2009-04-29 深圳市众方信息科技有限公司 P2P method for supporting VoIP communication
CN102025594A (en) * 2009-09-14 2011-04-20 中国科学院声学研究所 Dynamic route adjusting method and system under NAT environment

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306867A (en) * 2014-06-05 2016-02-03 掌赢信息科技(上海)有限公司 Method, device and system for improving end-to-end video transmission quality
CN105553868A (en) * 2015-09-21 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Data transmission method and device and terminal
CN105516640A (en) * 2015-12-15 2016-04-20 Tcl集团股份有限公司 Method and system for detecting abnormality of video communication conversation
CN105516640B (en) * 2015-12-15 2019-11-12 Tcl集团股份有限公司 A kind of detection method and system of video communication session exception
CN105592094A (en) * 2015-12-30 2016-05-18 深圳市有信网络技术有限公司 Internet telephone link establishing method and system
CN105897478A (en) * 2016-04-12 2016-08-24 腾讯科技(深圳)有限公司 Chain decision method and decision device
WO2017177824A1 (en) * 2016-04-12 2017-10-19 腾讯科技(深圳)有限公司 Link decision method and decision device
US10652138B2 (en) 2016-04-12 2020-05-12 Tencent Technology (Shenzhen) Company Limited Link decision-making method and decision-making device
CN105897478B (en) * 2016-04-12 2019-02-05 腾讯科技(深圳)有限公司 A kind of method and decision device of link decisions
CN108111556A (en) * 2016-11-24 2018-06-01 深圳市优朋普乐传媒发展有限公司 A kind of data transmission method and system
CN106792798B (en) * 2016-11-28 2020-09-11 北京奇虎科技有限公司 Mobile terminal remote assistance connection detection method and device
CN106792798A (en) * 2016-11-28 2017-05-31 北京奇虎科技有限公司 Line detection method and device that mobile terminal remote is assisted
WO2018107432A1 (en) * 2016-12-15 2018-06-21 瞬已网络科技(上海)有限公司 Real-time video transmission method of multipath network
US11057299B2 (en) 2016-12-15 2021-07-06 Caton Technology (Shanghai) Limited Real-time video transmission method for multipath network
CN106791685A (en) * 2016-12-31 2017-05-31 深圳市愚公科技有限公司 A kind of remote audio-video transmission method and device
CN108282251A (en) * 2017-01-06 2018-07-13 腾讯科技(深圳)有限公司 A kind of link method of adjustment, device and server
CN108282251B (en) * 2017-01-06 2021-03-16 腾讯科技(深圳)有限公司 Link adjustment method and device and server
US10686941B2 (en) 2017-01-06 2020-06-16 Tencent Technology (Shenzhen) Company Ltd Link adjustment method, server, and storage medium
WO2018127062A1 (en) * 2017-01-06 2018-07-12 腾讯科技(深圳)有限公司 Link adjustment method, server, and data storage medium
CN107979507A (en) * 2017-11-21 2018-05-01 广州视源电子科技股份有限公司 A kind of data transmission method, device, equipment and storage medium
WO2019100475A1 (en) * 2017-11-21 2019-05-31 广州视源电子科技股份有限公司 Data transmission method, apparatus and device, and storage medium
CN112822743B (en) * 2018-01-02 2023-12-19 西安万像电子科技有限公司 Link switching method and device
CN112822743A (en) * 2018-01-02 2021-05-18 西安万像电子科技有限公司 Link switching method and device
CN108650482B (en) * 2018-05-14 2020-12-11 平安科技(深圳)有限公司 Response method and device for video call service
CN108650482A (en) * 2018-05-14 2018-10-12 平安科技(深圳)有限公司 A kind of response method and equipment of video calling service
CN109756555A (en) * 2018-11-13 2019-05-14 北京码牛科技有限公司 Big data processing method and processing device based on Internet of Things
CN109495599A (en) * 2018-11-16 2019-03-19 深圳市网心科技有限公司 Data transmission method and system, electronic device and computer readable storage medium
CN109495599B (en) * 2018-11-16 2023-09-19 深圳市网心科技有限公司 Data transmission method and system, electronic device and computer readable storage medium
WO2020191864A1 (en) * 2019-03-27 2020-10-01 网宿科技股份有限公司 Method, system and device for determining transmission quality of node, and server
US10917497B2 (en) 2019-03-27 2021-02-09 Wangsu Science & Technology Co., Ltd. Method, system, device and server for determining transmission quality of node
CN110536093A (en) * 2019-08-05 2019-12-03 华为技术有限公司 A kind of method, apparatus and system selecting backbone network in audio-video real-time Transmission
CN110545566A (en) * 2019-09-11 2019-12-06 腾讯科技(深圳)有限公司 link switching method, device, equipment and storage medium
CN110545566B (en) * 2019-09-11 2021-04-27 腾讯科技(深圳)有限公司 Link switching method, device, equipment and storage medium
CN111212257A (en) * 2020-01-17 2020-05-29 北京字节跳动网络技术有限公司 Control method and device for distributed video conference and related equipment
CN114915748A (en) * 2021-02-09 2022-08-16 华为技术有限公司 Method, system and related device for dynamically switching audio and video communication modes

Similar Documents

Publication Publication Date Title
CN103718532A (en) Data transmission method, apparatus and terminal device
EP2905944A1 (en) Webpage real-time communication method and system, and terminal
US9628758B2 (en) Communication channel management for real-time applications
CN110417915B (en) Push message transmission method and device, storage medium and electronic equipment
US20150350723A1 (en) Video Communication Method, Home Terminal, and Home Server
JP6505831B2 (en) Establish and maintain VOIP calls
CN105516640B (en) A kind of detection method and system of video communication session exception
US20120033616A1 (en) Mobile terminal and peer-to-peer mode based data transmission method thereof
WO2007127843A2 (en) Sms-initiated voip
CN105580338A (en) Presence and on-device proxying
US20130065588A1 (en) Transmitting data over multiple networks
CN106027599B (en) Data transmission channel establishing method, system and server
JP2009194674A (en) Communication terminal device and control method of communication terminal device
JP6101997B2 (en) Communication system for establishing a real-time communication session
US11637874B2 (en) Communications apparatus, systems, and methods for preventing and/or minimizing session data clipping
US20110286365A1 (en) Method for Connection Preservation
US20130067083A1 (en) Transmitting Data Over Multiple Networks
CN113890950A (en) VOIP terminal network detection method and device and VOIP terminal
CN104796564A (en) Method and device for processing message business based on IP telephone
CN104735753A (en) Communication method, user equipment and network side equipment
KR20150097986A (en) System for evaluating communication quality of communication apparatus assortatively, control method thereof, and recording medium for recording program for executing the control method
US9124693B2 (en) Method and system for on-hold messaging for off network calls
US10911534B2 (en) Method and system for selecting a communication connection candidate for transmission of a media stream
US10159027B2 (en) Media degradation recovery during a communication session
CN112367493B (en) Data transmission control method, device, mobile terminal and storage medium

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: 20140409