Background technology
When IP phone is conversed, the packet loss of the time delay of network, the restriction of bandwidth, transfer of data and shake etc., all can be very large on the communication quality impact of VoIP.In order to ensure the communication quality of IP network phone, in general, after IP communication starts, carry out communication and network condition is detected, the compensation scheme adapted is provided according to network condition, thus obtain good communication efficiency.In prior art, due to the difference of network condition and detection algorithm, the detection of this network condition, the general air time needing to consume is even longer from 100 milliseconds to several seconds, then is optimized adjustment for VoIP communicates targetedly according to detecting the network condition information obtained.
As shown in Figure 1, give transmitting terminal A and receiving terminal B in prior art and carry out communication process when VoIP communicates, after starting call, the voice data message of transmitting terminal A sends to receiving terminal B through transmission network, transmitting terminal A and receiving terminal B carries out network condition detection respectively, and phase mutual feedback testing result; According to the network condition detected, carry out adaptive optimization adjustment, thus improve communication quality.Above-mentioned communication process is continued until end of conversation.According to the scene of VoIP application, transmitting terminal can be one or more, and receiving terminal also can be one or more.As in Fig. 1, receiving terminal B is also sociable, send voice data message to transmitting terminal, so now in this communication process, receiving terminal B becomes transmitting terminal, and transmitting terminal A also becomes receiving terminal, carries out above-mentioned communication process equally.
The main Problems existing of communication process of the prior art is in a period of time after starting call, wait for due to needs and network condition is detected, probably need the time period of wait 100 milliseconds to several seconds, within this time period, also there is no described network condition, therefore cause in the call incipient stage, can not optimize communicate quality effectively.Specifically, when the network bandwidth is not high, if employ the coded system of high code rate, the packet loss phenomenon of communication incipient stage will be caused; Or when shaking larger, not adjusting corresponding jitter buffer, the speech play frame losing etc. of communication incipient stage can be caused.These all can reduce quality and the effect of IP phone communication.Owing to conversing, the detection therefore used and optimization can not significantly reduce ongoing speech quality, therefore can have influence on rapidity and the accuracy of detection, also can have influence on the effect of optimization of communication.
Summary of the invention
Just in order to solve exist in above-mentioned prior art owing to carrying out inspection optimization after call starts, make call the incipient stage, communication quality can not effectively be optimized; Also make to detect and optimize and can not significantly reduce ongoing speech quality, have influence on rapidity and the accuracy of detection, also have influence on the technical problem of the effect of optimization of communication.
A kind of method improving VoIP communication quality provided by the invention, it, before VoIP call, is first measured network condition, and is optimized.After starting call, namely according to the result measured and optimize, for applicable compensation is done in call, preferably communication efficiency can be reached above.
Specifically provide a kind of system improving VoIP communication quality, it has transmitting terminal and receiving terminal, also has detection messages generation module, and for before call starts, detection data as required and detection method generate and detect data message; Transport module, for by described detection data message, sends through transmission network; Detection module, in receiving terminal and transmitting terminal Sampling network condition, receives the detection feedback information of the other side simultaneously; Optimize module, according to detecting the described network condition obtained, the adjustment parameter of receiving terminal and the parameter of transmitting terminal, optimize the speech quality of VoIP before call starts.
Described network condition comprises: one or more data of bandwidth, time delay, packet loss, shake; The parameter of described receiving terminal comprises: receive adopt Discarded Packets compensation algorithm, jitter buffer algorithms work, PLC algorithm parameter one or more; The parameter of described transmitting terminal comprises: speech coding parameters, audio effect processing parameter, send one or more of Discarded Packets compensation algorithm parameter of transmission.
The system of the improvement VoIP communication quality further provided, also has speech simulation playing module, plays analog voice to receiving terminal, helps to detect sound effect; Detect described sound effect to comprise: the time delay of speech play, miss rate one or more.
The detection module of described transmission network and optimization module also before the call, coordinate described transmitting terminal and described receiving terminal to carry out detecting and optimizing.
The system of the improvement VoIP communication quality further provided, its detection data needed and detection method, comprise initiatively and the network condition of intrusive mood detects, and comprises one or more in bandwidth, time delay, shake and packet loss.
Present invention also offers a kind of method improving VoIP communication quality, before call starts, detected parameters as required and detection method, generate and detect data message; By described detection data message, send through transmission network; Receiving terminal matches with transmitting terminal and jointly carries out Sampling network condition, and mutually carries out the feedback detecting feedback information; According to detecting the network condition obtained, the adjustment parameter of receiving terminal and the parameter of transmitting terminal, optimize the speech quality of VoIP.
Described network condition comprises: one or more data of bandwidth, time delay, packet loss, shake; The parameter of described receiving terminal comprises: receive adopt Discarded Packets compensation algorithm, jitter buffer algorithms work, PLC algorithm parameter one or more; The parameter of described transmitting terminal comprises: speech coding parameters, audio effect processing parameter, send one or more of Discarded Packets compensation algorithm parameter of transmission.
The method improving VoIP communication quality of the present invention, also has and plays analog voice to receiving terminal, helps the step detecting sound effect.Detect described sound effect to comprise: the time delay of speech play, miss rate one or more.
The method improving VoIP communication quality of the present invention, also has the detection module of described transmission network and optimizes module before call starts, coordinating described transmitting terminal and described receiving terminal to carry out the step detecting and optimize.
The detection data needed described in the method for the VoIP of improvement communication quality of the present invention and detection method, comprise initiatively and the bandwidth detection of intrusive mood, and the network condition of described active and intrusive mood detects, and comprises one or more in bandwidth, time delay, shake and packet loss.
The system and method improving VoIP communication quality of the present invention, owing to just having carried out detection and the optimization of network condition before call starts, make in the call incipient stage, communication quality has effectively been optimized; And call start before detection and optimize need not consider detect and optimization method whether reduce ongoing speech quality, the detection mode of active and intrusive mood can be adopted, detect the problem of network fast and exactly, thus, also make the quality communicated be optimized significantly and improve.
Embodiment
Existing VoIP system before the call, can not detect network condition before the call in detail.On the basis of existing technology, a kind of system improving VoIP communication quality provided by the invention, it has (as shown in Figure 2): detection messages generation module 1, for before call starts, the parameter detected as required and method, generate suitable detection data message.
Transmitting terminal transport module 2, for the detection data message that will generate, through transmission network 3, sends to receiving terminal; This transmission transport module 2 controls the Internet Transmission compensation method of message, such as packet loss retransmission process etc.
Transmitting terminal detection module 4, for detecting relevant network condition, the data such as such as bandwidth, time delay, packet loss, shake, receive the detection feedback information of receiving terminal simultaneously, and coordinate receiving terminal jointly to carry out Sampling network condition, such as measure the network RTT(parameter relevant to network delay) etc.
Transmitting terminal optimizes module 5, and according to detecting the network condition obtained, the relevant parameter of adjustment transmitting terminal, optimizes the communication effect of VoIP.This relevant parameter comprises: voice (sound) coding parameter, audio effect processing parameter, send Discarded Packets compensation algorithm parameter etc. of transmission, but be not limited to above these.
Speech simulation playing module 6, due to also do not start call, transmitting terminal send be not for play voice data message, receiving terminal plays analog voice by speech simulation playing module 6.This speech simulation playing module 6 simulates playing process, to help to measure sound effect, such as measures the miss rate of speech play, PLC(message dropping is hidden) effect etc.
Receiving terminal transport module 7, for controlling the Internet Transmission compensation method of receiving terminal.
Receiving terminal detection module 8, for the angle Sampling network condition from receiving terminal, coordinates transmitting terminal to detect together simultaneously.
Receiving terminal optimizes module 9, and according to detecting the network condition obtained, the relevant parameter of adjustment receiving terminal, optimizes the communication effect of VoIP.This relevant parameter comprises: receive adopt Discarded Packets compensation algorithm, jitter buffer algorithms work, PLC algorithm parameter etc., but be not limited to above these.
If VoIP system also relates to the auxiliary of transmission network, the detection module 10 of the transmission network of the system of this improvement VoIP communication quality and optimization module 11 also can before the call, coordinate transmitting terminal and receiving terminal to carry out detecting and optimizing.
The system of this improvement VoIP communication quality, before starting call, adds and detects data message Sampling network condition and the step of feedback detection data.
As shown in Figure 3, the method concrete steps of this improvement VoIP communication quality are as follows:
Before call starts:
1, transmitting terminal A and receiving terminal B establishes a communications link;
2, the parameter that detects as required of transmitting terminal and method, generate suitable detection data message, by the detection data message generated, through transmission network, sends to receiving terminal;
3, receiving terminal matches with transmitting terminal and jointly carries out Sampling network condition, and mutually carries out the feedback detecting feedback information;
4, according to detecting the network condition obtained, the relevant parameter of adjustment receiving terminal and transmitting terminal, optimizes the communication effect of VoIP.The relevant parameter of transmitting terminal comprises: voice (sound) coding parameter, audio effect processing parameter, send Discarded Packets compensation algorithm parameter etc. of transmission, but be not limited to above these.The relevant parameter of receiving terminal comprises: the Discarded Packets compensation parameter, PLC algorithm parameter etc. of employing, but be not limited to above these.
Before not starting call, receiving terminal detects sound effect by speech simulation.Such as detect the miss rate of speech play, PLC(message dropping hidden) effect etc.
Also there is the step of the Internet Transmission compensation method controlling transmitting terminal and receiving terminal.
If VoIP system also relates to the auxiliary of transmission network, the detection module of the transmission network of the system of this improvement VoIP communication quality and optimization module also can before the call, coordinate transmitting terminal and receiving terminal to carry out detecting and optimizing.
Compared to existing technology, the detection before call and optimization, can improve the communication quality just started when conversing.For network jitter, if network jitter is very large, reach the scene of 400ms, prior art generally adopts the jitter buffer of acquiescence, such as 100ms.When just having started to converse, prior art starts to play after the speech data cushioning 100ms, runs into shake when reaching the speech data of 400ms, just needs to wait for that 400ms could continue to play, or abandon the speech data shaken more than 100ms, and broadcasting below.Process howsoever, the transmission of speech data all can be discontinuous, sounds and can feel card.
The system and method improving VoIP communication quality of the present invention, before call starts, detect through network condition, known shake reaches 400ms, just adopting the jitter buffer of 400ms when starting to converse, just starting to play, although time delay can increase a bit after the speech data cushioning 400ms, but speech play is more continuous comparatively speaking, and user will obtain better speech quality.
In addition, the network condition in the prior art in order to make shake large also can be smooth, sets excessive jitter buffer.Under the network condition that shake is little, unnecessary time delay will be added, reduce communication quality.The system and method improving VoIP communication quality of the present invention can be more intelligent the suitable jitter buffer of employing, reach better communication quality.
For other network condition data, as packet loss, time delay, bandwidth, and under more complicated integrated condition, hinge structure of the present invention, can optimize the communication quality of VoIP faster, reach better communication efficiency.
On the other hand, prior art is after call starts, and carries out detecting and optimization process, and detection and the optimisation technique of employing are limited, in order to better measure and optimize, can not have influence on ongoing call.
The system and method improving VoIP communication quality of the present invention proposes to detect before the call and optimize VoIP communication quality, can adopt more detection and optimisation technique, and need not worry to affect communication quality.For Network Packet Loss, if user access network is packet loss not, backbone network exists certain packet loss, and (bandwidth consumed due to voice communication is very little relative to the bandwidth of Backbone Transport, the change of VoIP code check can't appreciable impact packet loss): prior art detects when conversing, the method on voice data transmission impact is very limited can only be adopted to detect, and the methods larger on communication impact such as intrusive mood can not be adopted to detect, thus have influence on the accuracy of detection.
The system and method improving VoIP communication quality of the present invention, before call starts, just start to detect and optimize, except can adopting existing detection technique, can also attempt adopting the bandwidth measurement technology of more active and intrusive mood, such as path train, mgrp etc., and need not worry that detection can have influence on call.In conjunction with initiatively and the detection technique of intrusive mood, the bottleneck of Network Packet Loss can be detected more rapidly and accurately, thus obtain better effect of optimization.
The present invention's application is not limited to above-mentioned enumerated property, and all improvement to these technology and conversion all should belong in the claimed scope of the present invention.