CN101399636B - Method for packet loss compensation, device and system implementing packet loss compensation - Google Patents

Method for packet loss compensation, device and system implementing packet loss compensation Download PDF

Info

Publication number
CN101399636B
CN101399636B CN200810198318XA CN200810198318A CN101399636B CN 101399636 B CN101399636 B CN 101399636B CN 200810198318X A CN200810198318X A CN 200810198318XA CN 200810198318 A CN200810198318 A CN 200810198318A CN 101399636 B CN101399636 B CN 101399636B
Authority
CN
China
Prior art keywords
frame
discarded packets
buffering area
current data
data frame
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.)
Expired - Fee Related
Application number
CN200810198318XA
Other languages
Chinese (zh)
Other versions
CN101399636A (en
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.)
Guangdong Gao Xin Touchplus information Corp
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
Priority to CN200810198318XA priority Critical patent/CN101399636B/en
Publication of CN101399636A publication Critical patent/CN101399636A/en
Priority to PCT/CN2009/073764 priority patent/WO2010025684A1/en
Application granted granted Critical
Publication of CN101399636B publication Critical patent/CN101399636B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding

Abstract

The embodiment of the invention discloses a packet loss compensation method, a device for realizing the packet loss compensation and a system thereof. The method is used for data frame transmission, and comprises the following steps: frame loss conditions of the data frame are obtained; according to the frame loss conditions and the packet loss compensation algorithm, packet loss compensation processing is carried out on the data frame, and the data processed by packet loss compensation are compressed, encoded and then stored; wherein, in the packet loss compensation algorithm, when the stored encoded data are needed, the data are decoded. By adopting the scheme provided by the embodiment of the method, as an encoding and decoding procedure is added when the data are stored in a static state space, the quantity of the stored data is reduced, and the requirement of the method for the static state space is lowered.

Description

The Apparatus and system of a kind of method of Discarded Packets compensation and realization Discarded Packets compensation
Technical field
The present invention relates to the data communication field, relate in particular to a kind of method of Discarded Packets compensation and the Apparatus and system of realization Discarded Packets compensation.
Background technology
G.711 voice coding/decoding algorithms is that (Pulse Code Modulation, PCM) technology to the compression coding technology of 8K sample rate voice, are the most widely used voice coding/decoding algorithms on the current public telephone network to a kind of employing pulse code modulation.At voice over the Internet protocol (Voice over Internet Protocol, VoIP) in the processing procedure, usually with the speech data of 10ms as the handled minimum interval of encoding and decoding G.711, because in the middle of network, exist the packet loss that many situations cause, so G.711 appendix I provides a kind of effective Discarded Packets compensation algorithm for the user.
The described Discarded Packets compensation algorithm of current G.711 appendix I is based on 10ms as a data frame length.Two bigger data buffer zone history[390 are set in the middle of whole design] * 16bit, pitchbuf[390] * 16bit.Buffering area history[390 wherein] in preserved the 48.75ms that has play data, be used for contingent 1~6 bag of losing is next compensated, also be used for the data result of buffer memory 3.75ms simultaneously, level and smooth to carry out better voice.Buffering area pitchbuf[390] just in packet loss, just carry out computing, when packet loss not, do not do any change, the dateout during packet loss is not upgraded it yet simultaneously.
In realizing process of the present invention, the inventor finds, in such scheme, history and pitchbuf are the static data spaces, in the middle of the scheme of multichannel encoding and decoding simultaneously, these two buffering areas can only be the service of this passage, can not be public by other passage or calculating institute.Therefore, when number of active lanes more for a long time, will all distribute the static data space for each passage, a plurality of like this passages will take a lot of static spaces.
Summary of the invention
Technical problem to be solved by this invention is, a kind of Apparatus and system that is used for the method for Discarded Packets compensation and realizes Discarded Packets compensation is provided.Can save the data space that needs in the Discarded Packets compensation.
For this reason, on the one hand, embodiments of the invention provide a kind of lost packet compensation method, and described method is used for the transmission of Frame, comprising:
Obtain the frame loss condition of Frame;
According to described frame loss condition and Discarded Packets compensation algorithm Frame is carried out the Discarded Packets compensation processing, and will carry out storing behind the compressed encoding through the described Frame that Discarded Packets compensation is handled, this step comprises:
When described frame loss condition is that current data frame is not frame losing, when the last data frame of described current data frame is frame losing, according to first processing policy described current data frame is carried out described Discarded Packets compensation and handle;
To carry out being stored in first buffering area behind the compressed encoding through the current data frame that Discarded Packets compensation is handled;
Wherein, describedly according to first processing policy described current data frame is carried out described Discarded Packets compensation and handles and comprise:
Described current data frame is decoded;
The Frame that is stored in described first buffering area is decoded;
According to decoded Frame in described first buffering area decoded Frame of described current data frame is carried out smoothly;
To delaying time through the Frame after level and smooth.
On the other hand, embodiments of the invention provide a kind of device of realizing Discarded Packets compensation, and described device is used for carrying out Discarded Packets compensation according to the packet drop of data frame transfer, and this device comprises:
Acquisition module is used to obtain the frame loss condition of Frame;
Processing module is used for according to described frame loss condition and Discarded Packets compensation algorithm Frame being carried out the Discarded Packets compensation processing, wherein, in the Discarded Packets compensation algorithm, when needing to use the Frame of storing behind the coding, described Frame is decoded;
The code storage module, the Frame that is used for handling through Discarded Packets compensation carries out storing behind the compressed encoding;
Wherein, described processing module comprises first processing module, and being used for described frame loss condition is that current data frame is not frame losing, when the last data frame of current data frame is frame losing, according to first processing policy described current data frame is carried out Discarded Packets compensation and handles;
Described code storage module comprises first coding module, is used for the current data frame of handling through described Discarded Packets compensation is carried out being stored in first buffering area behind the compressed encoding;
Wherein, described first processing policy comprises:
Current data frame is decoded;
The Frame that is stored in first buffering area is decoded;
According to decoded Frame in first buffering area decoded Frame of current data frame is carried out smoothly;
To delaying time through the Frame after level and smooth.
On the other hand, embodiments of the invention provide a kind of system that realizes Discarded Packets compensation, and described system is used for carrying out Discarded Packets compensation according to the packet drop of data frame transfer, and described system comprises:
Acquisition module is used to obtain the frame loss condition of Frame;
Coding/decoding module, be used for Frame being carried out the Discarded Packets compensation processing according to described frame loss condition and Discarded Packets compensation algorithm, and will carry out storing behind the compressed encoding through the Frame that Discarded Packets compensation is handled, wherein, in the Discarded Packets compensation algorithm, when needing to use the Frame of coding back storage, described Frame is decoded;
Wherein, described coding/decoding module comprises:
Processing module is used for according to described frame loss condition and Discarded Packets compensation algorithm Frame being carried out the Discarded Packets compensation processing, wherein, in the Discarded Packets compensation algorithm, when needing to use the Frame of storing behind the coding, described Frame is decoded;
The code storage module, the Frame that is used for handling through described Discarded Packets compensation carries out storing behind the compressed encoding;
Described processing module comprises first processing module, and being used for described frame loss condition is that current data frame is not frame losing, when the last data frame of current data frame is frame losing, according to first processing policy described current data frame is carried out Discarded Packets compensation and handles;
Described code storage module comprises first coding module, is used for the current data frame of handling through described Discarded Packets compensation is carried out being stored in first buffering area behind the compressed encoding;
Wherein, described first processing policy comprises:
Current data frame is decoded;
The Frame that is stored in first buffering area is decoded;
According to decoded Frame in first buffering area decoded Frame of current data frame is carried out smoothly;
To delaying time through the Frame after level and smooth.
The scheme that adopts the embodiment of the invention to provide owing to during in static space, increased an encoding-decoding process in storage, makes data quantity stored reduce, and has saved in this method the demand to static space.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a specific embodiment of lost packet compensation method in the embodiment of the invention;
Fig. 2 is the schematic flow sheet of another specific embodiment of lost packet compensation method in the embodiment of the invention;
Fig. 3 is a schematic flow sheet of realizing a specific embodiment of Discarded Packets compensation device in the embodiment of the invention
Fig. 4 is the schematic flow sheet of a specific embodiment of processing module among Fig. 3;
Fig. 5 is the schematic flow sheet of a specific embodiment of code storage module among Fig. 3.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
In order to reduce the static storage that corresponding buffering area takies in the Discarded Packets compensation algorithm, a kind of lost packet compensation method is provided in the embodiment of the invention, be used for the transmission of Frame, as shown in Figure 1, this method comprises:
101, obtain the frame loss condition of Frame.
102, according to described frame loss condition and Discarded Packets compensation algorithm Frame is carried out the Discarded Packets compensation processing; Wherein, in the Discarded Packets compensation algorithm, when needing to use the Frame of coding back storage, described Frame is decoded.
103, will carry out storing behind the compressed encoding through the described Frame that Discarded Packets compensation is handled.。
Based on appendix I G.711 the lost packet compensation method described in the embodiment of the invention is described further below.
In the present embodiment, the Frame of the storage of indication in above-mentioned 103, the data of storing among the buffering area history of definition and the pitchbuf in can being meant G.711.The needed static storage of decoding is 817*16bit in G.711, and the space that 390*2*16bit is wherein arranged is first buffering area (or being called history) and second buffering area (or being called pitchbuf), and all the other are the memory block of its dependent variable.The compressed encoding of indication specifically can be in this example the 16bit digital coding is converted to the 8bit data among the A.If original buffering area be with the digital signal of 16bit (Digital Signal Processor DSP) realizes, so can be by the mode of combination storage through the data behind the coding, with the 8bit storage in the DSP of 16bit.So just buffering area history and pitchbuf memory space respectively can be deducted half, reach the purpose of saving memory space.
As shown in Figure 2, be the realization flow figure of lost packet compensation method in the embodiment of the invention.In this flow process, according to the situation difference of frame losing, carry out different processing, the black curve with 6 band arrows among the figure illustrates 6 kinds of different handling processes.And be called for short the history buffering area with H.
0, when the former frame of judging present frame and present frame is not frame losing, handles by flow process 0.Specifically comprise: use the new Frame that receives to upgrade the data of storing among the history, and this Frame is carried out decoding output again after the time-delay of 3.75ms.
1,, but when previous frame is frame losing, handles by flow process 1 when judging that present frame is not frame losing.Specifically comprise: the Frame to current reception is decoded;
The Frame that is stored among the history is decoded;
According to the result after the data decode of storing among the history, the decoded Frame of current data frame is carried out smoothly, to obtain better voice quality;
Then the Frame after level and smooth is carried out the time-delay of 3.75ms, so that export;
Simultaneously, the Frame after level and smooth is carried out compressed encoding, as the 16bit Frame is encoded to the 8bit Frame;
Frame behind the coding is stored among the history.
2,, and when being frame losing for the first time, handle by flow process 2 when judging that present frame is frame losing.Specifically comprise:
According to the Frame among the Data Update pitchbuf among the history, i.e. the consistency of the Frame of storing among pitchbuf and the history during maintenance packet loss first time;
Next the Frame among the pitchbuf (or history) after upgrading is decoded, decoded Frame can be stored in the extra buffer, as defines a pitchbuf_tmp[390] extra buffer.
Utilize the Frame of storing in the extra buffer again, calculate the primitive period phase, and the Frame of last 1/4 primitive period phase length in the extra buffer is saved in buffering area lastq[30] in the middle of, and the Frame of this 1/4 primitive period phase length carried out smoothly;
The Frame of 1/4 primitive period phase length after level and smooth is covered corresponding position in the extra buffer, and the data computation in the extra buffer after the utilization covering goes out 10ms offset data frame;
The 10ms data of the compensation that obtained in the last step are carried out 3.75ms time-delay back output;
Frame in the extra buffer is carried out being saved among history and the pitchbuf behind the compressed encoding, be stored in as mode in the corresponding stored zone of DSP with assembly coding.
3, when judging that present frame is the second time or frame losing for the third time, handle by flow process 3.Specifically comprise:
The data of storing among the history are decoded,, therefore also the Frame of storing among the pitchbuf is decoded because the Frame among this moment history and the pitchbuf is identical;
Decoded providing stored in the extra buffer, carried out corresponding renewal then, its renewal process is slightly different with the mode in the flow process 2, the relevant regulations in specifically can participating in G.711;
The 10ms offset data frame that data computation in the extra buffer after utilize upgrading makes new advances, and after the Frame that decodes among this offset data frame and the history superposeed, do smoothing processing;
The above-mentioned Frame of doing after the smoothing processing is carried out 3.75ms time-delay back output;
To store among history and the pitchbuf behind the above-mentioned Frame compressed encoding of doing after the smoothing processing.
4, when judging that present frame is fourth, fifth or six frame losing, handle by flow process 4.Specifically comprise:
The Frame of storing among the history is decoded, and this decoded result can store in the extra buffer, because the data among this moment history and the pitchbuf are identical, therefore also the Frame of storing among the pitchbuf is decoded;
Calculate the corresponding compensation result according to decoded Frame, and the Frame of integral body is carried out smoothing processing according to this compensation result;
To carry out 3.75ms time-delay back output through the Frame after the smoothing processing;
To store among history and the pitchbuf behind the above-mentioned Frame compressed encoding of doing after the smoothing processing.
5, when judging that present frame is the 7th time even more during the frame losing of high order, handles by flow process 6.Promptly surpass 6 times for continuous packet loss, it is " 0 " that the current frame data frame is all replenished, but still need to export with behind this complete " 0 " Frame time-delay 3.75ms, and use this dateout frame update history and pitchbuf, because Frame is complete " 0 ", can not carry out smoothly this output data frame this moment.
Wherein, in a certain idiographic flow branch in above-mentioned compensation method, all Frames of storing among history and the pitchbuf are not to need to establish a capital, just can finish the Discarded Packets compensation of this time such as a part of Frame that may only need to store among history and the pitchbuf, therefore the Frame that also can only need this part carries out the encoding and decoding processing, handle and needn't need the Frame of history and pitchbuf storage all to carry out encoding and decoding all, this just need optionally carry out encoding and decoding and handle to the Frame of storage, such as judging before storage, whether this partial data frame needs coding.This optionally coding and decoding processing method can increase certain algorithm complex, but owing to do not need the Frame of all storages is all carried out the encoding and decoding processing, therefore carrying out efficient can make moderate progress.
Adopt above-mentioned lost packet compensation method,, make data quantity stored reduce, saved in this method demand static space owing to during in static space, increased an encoding-decoding process in storage.
On the other hand, corresponding with above-mentioned lost packet compensation method, the embodiment of the invention also provides a kind of device of realizing Discarded Packets compensation, and as shown in Figure 3, this device comprises: acquisition module 1 is used to obtain the frame loss condition of Frame; Processing module 2 is used for according to described frame loss condition and Discarded Packets compensation algorithm Frame being carried out the Discarded Packets compensation processing, wherein, in the Discarded Packets compensation algorithm, when needing to use the Frame of storing behind the coding, described data is decoded; Code storage module 3, the Frame that is used for handling through Discarded Packets compensation carries out storing behind the compressed encoding.
Wherein, described processing module 2 can comprise part or all of (being to comprise whole situations as shown in Figure 4) in the following module:
First processing module 20, be used for when described frame loss condition be that current data frame is not frame losing, and the last data frame of current data frame carries out Discarded Packets compensation according to first processing policy to current data frame and handles when being frame losing; First coding module is used for the current data frame of handling through Discarded Packets compensation is carried out being stored in first buffering area behind the compressed encoding.
First processing policy comprises: current data frame is decoded; The data that are stored in first buffering area are decoded; According to decoded data in first buffering area decoded data of current data frame are carried out smoothly; To delaying time through the data after level and smooth.
Second processing module 22, be used for when described frame loss condition be current data frame when being frame losing for the first time, according to second processing policy current data frame is carried out Discarded Packets compensation and handles;
Second processing policy comprises: according to Data Update second buffering area of described first buffering area; Frame to described first buffering area is decoded, and obtains the primitive period phase according to decoded Frame; The Frame of the last 1/4 primitive period phase length of the data in second buffering area after upgrading is carried out smoothly; Frame after level and smooth is replaced the Frame of corresponding last 1/4 primitive period phase length in described second buffering area; Go out the Frame of needs compensation according to the data computation after replacing; The described Frame of compensation that needs is delayed time.
The 3rd processing module 24, be used for when described frame loss condition be that current data frame is for the second time or during frame losing for the third time, according to the 3rd processing policy current data frame is carried out Discarded Packets compensation and handles;
The 3rd processing policy comprises: the Frame to described first buffering area or second buffering area is decoded; Decoded Frame is upgraded accordingly; Calculate the offset data frame according to the Frame after upgrading; Decoding in the described offset data frame and first buffering area is obtained to carry out smoothly the line delay of going forward side by side after the Frame stack.
The manages module 26 everywhere, be used for when described frame loss condition be current data frame when being fourth, fifth or six frame losing, according to the everywhere the reason strategy current data frame carried out Discarded Packets compensation handle;
The manages strategy everywhere comprises: the Frame to described first buffering area or second buffering is decoded; Calculate the corresponding compensation result according to decoded Frame, the overall data frame is carried out delaying time after the smoothing processing.
Accordingly, code storage module 3 comprised as one or more (Fig. 5 comprises whole situations) in the lower module:
Second coding module 30 is used for the current data frame of handling through Discarded Packets compensation is carried out being stored in first buffering area and second buffering area behind the compressed encoding;
The 3rd coding module 32 is used for the current data frame of handling through Discarded Packets compensation is carried out being stored in first buffering area and second buffering area behind the compressed encoding;
The 4th coding module 34 is used for the current data frame of handling through Discarded Packets compensation is carried out being stored in first buffering area and second buffering area behind the compressed encoding.
Wherein, above-mentioned processing module 2 and code storage module 3 can realize that this coding/decoding module 4 and acquisition module 1 can be physically separated devices, and can form a kind of system that realizes Discarded Packets compensation, as shown in Figure 6 by independent coding/decoding module 4.
Adopt above-mentioned Discarded Packets compensation device and system, owing to during in static space, increased an encoding-decoding process, because the Frame of storing in the static space has been carried out compressed encoding in storage, make the memory space of Frame reduce, reduced in this method demand static space.
Device embodiment described above only is schematically, and wherein said unit as the separating component explanation can or can not be physically to separate also, promptly can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of module to realize the purpose of present embodiment scheme according to the actual needs.Those of ordinary skills promptly can understand and implement under the situation of not paying performing creative labour.
Through the above description of the embodiments, those skilled in the art can be well understood to each execution mode and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware.Based on such understanding, the part that technique scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the computer-readable recording medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, perhaps network equipment etc.) carry out the described method of some part of each embodiment or embodiment.
Above-described execution mode does not constitute the qualification to this technical scheme protection range.Any at above-mentioned execution mode spirit and principle within done modification, be equal to and replace and improvement etc., all should be included within the protection range of this technical scheme.

Claims (9)

1. lost packet compensation method, described method is used for the transmission of Frame, it is characterized in that, and described method comprises:
Obtain the frame loss condition of Frame;
According to described frame loss condition and Discarded Packets compensation algorithm described Frame is carried out the Discarded Packets compensation processing, and will carry out storing behind the compressed encoding through the Frame that described Discarded Packets compensation is handled, this step comprises:
When described frame loss condition is that current data frame is not frame losing, when the last data frame of described current data frame is frame losing, according to first processing policy described current data frame is carried out described Discarded Packets compensation and handle;
To carry out being stored in first buffering area behind the compressed encoding through the current data frame that Discarded Packets compensation is handled;
Wherein, describedly according to first processing policy described current data frame is carried out described Discarded Packets compensation and handles and comprise:
Described current data frame is decoded;
The Frame that is stored in described first buffering area is decoded;
According to decoded Frame in described first buffering area decoded Frame of described current data frame is carried out smoothly;
To delaying time through the Frame after level and smooth.
2. the method for claim 1, it is characterized in that, describedly according to described frame loss condition and Discarded Packets compensation algorithm described Frame is carried out Discarded Packets compensation and handle, and the step that will carry out storing behind the compressed encoding through the Frame of described Discarded Packets compensation processing also comprises:
When described frame loss condition is a described current data frame when being frame losing for the first time, according to second processing policy described current data frame is carried out Discarded Packets compensation and handle;
To carry out being stored in first buffering area and second buffering area behind the compressed encoding through the current data frame that described Discarded Packets compensation is handled;
Wherein, describedly according to second processing policy described current data frame is carried out Discarded Packets compensation and handles and to comprise:
Frame according to described first buffering area upgrades second buffering area;
Frame to second buffering area after the described renewal is decoded, and obtains the primitive period phase according to decoded Frame;
The data of the last 1/4 primitive period phase length of the Frame in second buffering area after upgrading are carried out smoothly;
Data after level and smooth are replaced the data of corresponding last 1/4 primitive period phase length in described second buffering area, the Frame after obtaining replacing;
Calculate the Frame of needs compensation according to the Frame after replacing;
The described Frame of compensation that needs is delayed time.
3. the method for claim 1, it is characterized in that, describedly according to described frame loss condition and Discarded Packets compensation algorithm described Frame is carried out Discarded Packets compensation and handle, and the step that will carry out storing behind the compressed encoding through the Frame of described Discarded Packets compensation processing also comprises:
When described frame loss condition is that current data frame is for the second time or during frame losing for the third time, according to the 3rd processing policy described current data frame is carried out Discarded Packets compensation and handle;
To carry out being stored in first buffering area and second buffering area behind the compressed encoding through the current data frame that described Discarded Packets compensation is handled;
Wherein, describedly according to the 3rd processing policy current data frame is carried out Discarded Packets compensation and handles and to comprise:
Frame to described first buffering area or second buffering area is decoded;
Decoded Frame is upgraded accordingly;
Calculate the offset data frame according to the Frame after upgrading;
Decoding in the described offset data frame and first buffering area is obtained to carry out smoothly the line delay of going forward side by side after the Frame stack.
4. the method for claim 1, it is characterized in that, describedly according to described frame loss condition and Discarded Packets compensation algorithm described Frame is carried out Discarded Packets compensation and handle, and the step that will carry out storing behind the compressed encoding through the Frame of described Discarded Packets compensation processing also comprises:
When described frame loss condition is a described current data frame when being fourth, fifth or six frame losing, according to the everywhere the reason strategy described current data frame carried out Discarded Packets compensation handle;
To carry out being stored in first buffering area and second buffering area behind the compressed encoding through the current data frame that described Discarded Packets compensation is handled;
Wherein, described according to the everywhere the reason strategy current data frame is carried out Discarded Packets compensation handle and comprise:
Frame to described first buffering area or second buffering area is decoded;
Calculate the corresponding compensation result according to decoded Frame, the overall data frame is carried out delaying time after the smoothing processing.
5. device of realizing Discarded Packets compensation, described device is used for carrying out Discarded Packets compensation according to the packet drop of data frame transfer, it is characterized in that described device comprises:
Acquisition module is used to obtain the frame loss condition of Frame;
Processing module is used for according to described frame loss condition and Discarded Packets compensation algorithm Frame being carried out the Discarded Packets compensation processing, wherein, in the Discarded Packets compensation algorithm, when needing to use the Frame of storing behind the coding, described Frame is decoded;
The code storage module, the Frame that is used for handling through described Discarded Packets compensation carries out storing behind the compressed encoding;
Wherein, described processing module comprises first processing module, and being used for described frame loss condition is that current data frame is not frame losing, when the last data frame of current data frame is frame losing, according to first processing policy described current data frame is carried out Discarded Packets compensation and handles;
Described code storage module comprises first coding module, is used for the current data frame of handling through described Discarded Packets compensation is carried out being stored in first buffering area behind the compressed encoding;
Wherein, described first processing policy comprises:
Current data frame is decoded;
The Frame that is stored in first buffering area is decoded;
According to decoded Frame in first buffering area decoded Frame of current data frame is carried out smoothly;
To delaying time through the Frame after level and smooth.
6. device as claimed in claim 5 is characterized in that,
Described processing module also comprises second processing module, be used for when described frame loss condition be described current data frame when being frame losing for the first time, according to second processing policy described current data frame is carried out Discarded Packets compensation and handles;
Described code storage module comprises second coding module, is used for the current data frame of handling through described Discarded Packets compensation is carried out being stored in first buffering area and second buffering area behind the compressed encoding;
Wherein, described second processing policy comprises:
Frame according to described first buffering area upgrades second buffering area;
Frame to described first buffering area is decoded, and obtains the primitive period phase according to decoded Frame;
The data of the last 1/4 primitive period phase length of the Frame in second buffering area after upgrading are carried out smoothly;
Data after level and smooth are replaced the data of corresponding last 1/4 primitive period phase length in described second buffering area;
Calculate the Frame of needs compensation according to the Frame after replacing;
The described Frame of compensation that needs is delayed time.
7. device as claimed in claim 5 is characterized in that,
Described processing module also comprises the 3rd processing module, be used for when described frame loss condition be that described current data frame is for the second time or during frame losing for the third time, according to the 3rd processing policy described current data frame is carried out Discarded Packets compensation and handles;
Described code storage module comprises the 3rd coding module, is used for the current data frame of handling through described Discarded Packets compensation is carried out being stored in first buffering area and second buffering area behind the compressed encoding,
Wherein, described the 3rd processing policy comprises:
Frame to described first buffering area or second buffering area is decoded;
Decoded Frame is upgraded accordingly;
Calculate the offset data frame according to the Frame after upgrading;
Decoding in the described offset data frame and first buffering area is obtained to carry out smoothly the line delay of going forward side by side after the Frame stack.
8. device as claimed in claim 5 is characterized in that,
Described processing module comprises that also the manages module everywhere, be used for when described frame loss condition be current data frame when being fourth, fifth or six frame losing, according to the everywhere the reason strategy described current data frame carried out Discarded Packets compensation handle;
Described code storage module comprises the 4th coding module, is used for the described current data frame of handling through Discarded Packets compensation is carried out being stored in first buffering area and second buffering area behind the compressed encoding,
Wherein, described manage strategy everywhere and comprise:
Frame to described first buffering area or second buffering is decoded;
Calculate the corresponding compensation result according to decoded Frame, the overall data frame is carried out delaying time after the smoothing processing.
9. system that realizes Discarded Packets compensation, described system is used for carrying out Discarded Packets compensation according to the packet drop of data frame transfer, it is characterized in that described system comprises:
Acquisition module is used to obtain the frame loss condition of Frame;
Coding/decoding module, be used for Frame being carried out the Discarded Packets compensation processing according to described frame loss condition and Discarded Packets compensation algorithm, and will carry out storing behind the compressed encoding through the Frame that Discarded Packets compensation is handled, wherein, in the Discarded Packets compensation algorithm, when needing to use the Frame of coding back storage, described Frame is decoded;
Wherein, described coding/decoding module comprises:
Processing module is used for according to described frame loss condition and Discarded Packets compensation algorithm Frame being carried out the Discarded Packets compensation processing, wherein, in the Discarded Packets compensation algorithm, when needing to use the Frame of storing behind the coding, described Frame is decoded;
The code storage module, the Frame that is used for handling through described Discarded Packets compensation carries out storing behind the compressed encoding;
Described processing module comprises first processing module, and being used for described frame loss condition is that current data frame is not frame losing, when the last data frame of current data frame is frame losing, according to first processing policy described current data frame is carried out Discarded Packets compensation and handles;
Described code storage module comprises first coding module, is used for the current data frame of handling through described Discarded Packets compensation is carried out being stored in first buffering area behind the compressed encoding;
Wherein, described first processing policy comprises:
Current data frame is decoded;
The Frame that is stored in first buffering area is decoded;
According to decoded Frame in first buffering area decoded Frame of current data frame is carried out smoothly;
To delaying time through the Frame after level and smooth.
CN200810198318XA 2008-09-04 2008-09-04 Method for packet loss compensation, device and system implementing packet loss compensation Expired - Fee Related CN101399636B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200810198318XA CN101399636B (en) 2008-09-04 2008-09-04 Method for packet loss compensation, device and system implementing packet loss compensation
PCT/CN2009/073764 WO2010025684A1 (en) 2008-09-04 2009-09-04 Method for packet loss compensation, apparatus and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810198318XA CN101399636B (en) 2008-09-04 2008-09-04 Method for packet loss compensation, device and system implementing packet loss compensation

Publications (2)

Publication Number Publication Date
CN101399636A CN101399636A (en) 2009-04-01
CN101399636B true CN101399636B (en) 2011-07-06

Family

ID=40517920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810198318XA Expired - Fee Related CN101399636B (en) 2008-09-04 2008-09-04 Method for packet loss compensation, device and system implementing packet loss compensation

Country Status (2)

Country Link
CN (1) CN101399636B (en)
WO (1) WO2010025684A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399636B (en) * 2008-09-04 2011-07-06 华为技术有限公司 Method for packet loss compensation, device and system implementing packet loss compensation
CN102480760B (en) * 2010-11-23 2014-09-10 中兴通讯股份有限公司 Intersystem link protocol frame dropping processing and frame-compensating distinguishing method and device
CN107919996A (en) * 2016-10-10 2018-04-17 大唐移动通信设备有限公司 A kind of data pack transmission method and equipment
CN108111702B (en) * 2017-12-07 2020-07-07 杭州闪目科技有限公司 Method for automatically compensating voice packet loss of VOIP system
CN113035207B (en) * 2021-03-03 2024-03-22 北京猿力未来科技有限公司 Audio processing method and device
CN114415600B (en) * 2022-01-11 2024-01-23 重庆三电智能科技有限公司 Frame loss compensation position algorithm for bus type servo driver

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901431A (en) * 2006-07-04 2007-01-24 华为技术有限公司 Lost frame hiding method and device
CN101030951A (en) * 2007-02-08 2007-09-05 华为技术有限公司 Drop-out compensating method and compensator
JP2008005394A (en) * 2006-06-26 2008-01-10 Kddi Corp Communication terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007274568A (en) * 2006-03-31 2007-10-18 Oki Electric Ind Co Ltd Packet loss compensation method, packet transmitting apparatus, and packet receiving apparatus
CN101399636B (en) * 2008-09-04 2011-07-06 华为技术有限公司 Method for packet loss compensation, device and system implementing packet loss compensation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008005394A (en) * 2006-06-26 2008-01-10 Kddi Corp Communication terminal
CN1901431A (en) * 2006-07-04 2007-01-24 华为技术有限公司 Lost frame hiding method and device
CN101030951A (en) * 2007-02-08 2007-09-05 华为技术有限公司 Drop-out compensating method and compensator

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JP特开2008005394A 2008.01.10
TELECOMMUNICATION STANDARDIZATION SECTOR OF ITU.A high quality low-complexity algorithm for packet loss concealment with G.711.《ITU-T G.711 Appendix I》.1999,全文. *

Also Published As

Publication number Publication date
CN101399636A (en) 2009-04-01
WO2010025684A1 (en) 2010-03-11

Similar Documents

Publication Publication Date Title
CN101399636B (en) Method for packet loss compensation, device and system implementing packet loss compensation
US6044089A (en) System and method for scaleable audio transmission over a network
CA2141901C (en) Dynamic compression-rate selection arrangement
EP1730939B1 (en) Virtual call center
US7599834B2 (en) Method and apparatus of voice mixing for conferencing amongst diverse networks
CN1110791C (en) Method and apparatus in coding digital information
AU2006244646A1 (en) Integrated architecture for the unified processing of visual media
WO2008027841A3 (en) Digital video content customization
CN101964188B (en) Voice signal coding and decoding methods, devices and systems
CN101636990B (en) Method of transmitting data in a communication system
EP1890472A4 (en) A method, system and terminal for providing ring-back tone in real time
AU2002311565A1 (en) Load balancing devices and method therefor
CN101790754B (en) System and method for providing amr-wb dtx synchronization
CN101536088A (en) System and method for providing redundancy management
US20060159185A1 (en) Method and Device for Changing an Encoding Mode of Encoded Data Streams
US20070107507A1 (en) Mute processing apparatus and method for automatically sending mute frames
CN108738007B (en) Audio transmission method, equipment and system
EP1230596B1 (en) Stable operation of media gateway
CN105743911A (en) Method for improving mixing capacity of video session system
CN102355484A (en) Audio data transmission method
US10390309B1 (en) System and method for optimizing power consumption in mobile devices
CN101854224A (en) Error correcting coding method, device and system, and forwarding control method and device
CN103503462A (en) Real-time transcoding method and device
CN107979482A (en) A kind of information processing method, device, transmitting terminal, debounce moved end, receiving terminal
US6944160B1 (en) Method and apparatus for multiplexing voice over ATM or IP data communication channels

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180712

Address after: 511400 room 204-1, building 1, Guangdong Pharmaceutical University, No. 280 outer ring road, Panyu District, Guangzhou, Guangdong.

Patentee after: Guangdong Gao Xin Touchplus information Corp

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110706

Termination date: 20190904