CN108737349A - A kind of processing method and processing device of VoP - Google Patents

A kind of processing method and processing device of VoP Download PDF

Info

Publication number
CN108737349A
CN108737349A CN201710272196.3A CN201710272196A CN108737349A CN 108737349 A CN108737349 A CN 108737349A CN 201710272196 A CN201710272196 A CN 201710272196A CN 108737349 A CN108737349 A CN 108737349A
Authority
CN
China
Prior art keywords
data packet
values
vop
scaled
voice data
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.)
Granted
Application number
CN201710272196.3A
Other languages
Chinese (zh)
Other versions
CN108737349B (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201710272196.3A priority Critical patent/CN108737349B/en
Publication of CN108737349A publication Critical patent/CN108737349A/en
Application granted granted Critical
Publication of CN108737349B publication Critical patent/CN108737349B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/764Media network packet handling at the destination 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Abstract

The invention discloses a kind of processing method and processing devices of VoP, determine the TS_STRIDE values of the type of data packet of the first VoP received and the first voice data packet header compressed packet of corresponding first voice data Packet type, according to the TS_SCALED values of the first voice data packet header compressed packet of setting quantity, and first voice data packet header compressed packet TS_STRIDE values, in setting quantitative range, the time stamp T S values of the first voice data packet header compressed packet are determined successively, until the TS values determined can restore to obtain correct first VoP.I.e. by repeatedly attempting to determine correct TS values, the accuracy rate according to the TS values reduction VoP determined is improved.

Description

A kind of processing method and processing device of VoP
Technical field
The present invention relates to wireless communication technology field more particularly to a kind of processing method and processing devices of VoP.
Background technology
In long term evolution (Long Term Evolution, LTE) mobile communications network, voice communication, which uses, is based on network Between interconnection agreement carry voice (Voice over Internet Protocol, VoIP) technology, i.e., press on wireless links VoP is transmitted according to (Internet Protocol, the IP) data packet format of interconnection agreement between network.
When based on voip technology transmitting audio data packet, adaptive multi-rate (Adaptive Multi- are used first Rate, AMR) scheme carries out compressed encoding, and it is then encapsulated into IP data packets and is transmitted, since AMR schemes are by VoP It is carried on real-time transport protocol (Real-time Transport Protocol, RTP) and User Datagram Protocol (User Datagram Protocol, UDP) on, for speech payload, the heading of the VoP through AMR compressions accounts for very Big bandwidth cost is (for example, the voice data of internet protocol version 4 (Internet Protocol Version 4, IPv4) The heading of packet accounts for 40 bytes, the voice number of internet protocol version 6 (Internet Protocol Version 6, IPv6) 60 bytes are accounted for according to the heading of packet), this brings prodigious waste to radio open resource, i.e., additional message header overhead is very big, Cause bandwidth availability ratio relatively low.
LTE system is compressed by the heading to VoP, can effectively improve the utilization rate of bandwidth of air-interface.Its In, robust header compression (Robust Header Compression, ROHC) compression scheme is more commonly used heading pressure Contracting method, when being compressed to the heading of VoP using ROHC schemes, using the timestamp that is scaled down of transmission Ratio (Timestamp Scaled, TS_SCALED) value replaces sending original timestamp (Timestamp, TS) value, can be by language The heading of sound data packet is compressed to the degree of 1 to 3 byte, and bandwidth availability ratio may be up to 90% or more, and decompressor is according to association Quotient good definite value timestamp multiple (Timestamp Stride, TS_STRIDE) and the offset relative to TS-STRIDE that has preserved Amount can restore original TS values, and which reduces the numbers for needing transmission bit, to achieve the purpose that compression.
VoP generally takes not affirmation mode (Unacknowledged in accessing fidonetFido in LTE system Mode, UM) transmission, due to unstable quality of eating dishes without rice or wine, the VoP for taking UM patterns to transmit, on wireless links The case where being frequently present of packet loss.If packet loss is happened at voice quiet period and voice activation phase when mutually turning, VoP RTP packets TS value increment non-sequential in head is incremented by, and then TS values when decompression current speech data packet is caused to restore mistake, restores mistake Current speech data packet also results in the reduction mistake of subsequent voice data packet, leads to error diffusion so that VoP Restoring accuracy rate reduces.
Invention content
The object of the present invention is to provide a kind of processing method and processing devices of VoP, to improve reduction VoP Accuracy.
The purpose of the present invention is what is be achieved through the following technical solutions:
In a first aspect, providing a kind of processing method of VoP, in the method, the first voice received is determined First voice data packet header compressed packet of the type of data packet of data packet and the corresponding first voice data Packet type TS_STRIDE values, according to the TS_SCALED values and described first of the first voice data packet header compressed packet of setting quantity The TS_STRIDE values of voice data packet header compressed packet determine the first voice number successively in the setting quantitative range According to the time stamp T S values of Header compression message, until the TS values determined can restore to obtain correct first VoP.
Wherein, type of data packet includes broadband voice data packet and narrowband speech data packet, and broadband voice data packet head The TS_STRIDE values of compressed packet are different with the TS_STRIDE values of narrowband speech data packet head compressed packet.
In the embodiment of the present invention, the TS_SCALED values of the first voice data packet header compressed packet by setting quantity, with And the TS_STRIDE values of first voice data packet header compressed packet, in the setting quantitative range, by using setting The TS_SCALED values of first voice data packet header compressed packet of quantity gradually determine TS values, are gone back one by one according to determining TS values Former first VoP, until the TS values determined can restore to obtain correct first VoP, i.e., by multiple It attempts to determine correct TS values, improves the accuracy rate according to the TS values reduction VoP determined.
Preferably, the TS_SCALED values of the first voice data packet header compressed packet of the setting quantity use such as lower section Formula determines:
Determine that the TS_SCALED values of second speech data Header compression message, the second speech data packet are to receive The VoP for receiving before first VoP and correctly restoring;According to formula TS_SCALEDi=TS_ SCALEDi-n+ n+p determines at least one TS_SCALED values of first voice data packet header compressed packet;Wherein, TS_ SCALEDiFor the TS_SCALED values of first voice data packet header compressed packet, TS_SCALEDi-nFor second voice The TS_SCALED values of data packet head compressed packet, p are 0 to 8 positive integer determined according to the speech sample period, i and n difference For positive integer, and n is less than i, and n is the reception of the reception sequence number and the second speech data packet of first VoP The difference of sequence number.
In the embodiment of the present invention, by the TS_SCALED values of the VoP correctly restored, according to a language In the quantitative range that the sound sampling period determines, the TS_SCALED values for determining first VoP are gradually attempted, in voice In the case of data packet normal transmission, according to formula TS_SCALEDi=TS_SCALEDi-n+ n+p, first voice determined It is certain there are one being correct in the TS_SCALED values of data packet head compressed packet, on the correct basis for determining TS_SCALED values On, it may be determined that correct TS values, and then improve the accuracy rate according to the TS values reduction VoP determined.
Preferably, in the setting quantitative range, the TS of first voice data packet header compressed packet is determined successively Value, until the TS values determined can restore to obtain correct first VoP, including:
The initial value of p is set as 0, by the way that p is gradually added 1, gradually determines first voice data packet header compression report The TS values of text, until the TS values determined can restore to obtain correct first VoP.
Preferably, the TS values determined can restore to obtain correct first VoP refer to:
The first VoP that the TS values determined restore can be verified by CRC check and UDP.
In the embodiment of the present invention, due to the verification limited bits used when CRC check, CRC check error-prone, therefore, Can be by CRC check even if restoring the first obtained VoP, the first VoP restored is also likely to be Mistake, the present invention increases UDP verifications on the basis of CRC check, that is, passes through CRC check and UDP to improve false drop rate The secondary verification of verification so that the accuracy rate higher of the first VoP restored.
Preferably, first VoP is the voice received when mutually turning voice activation phase and voice quiet period Data packet.
Second aspect, provides a kind of processing unit of VoP, and described device includes determination unit and processing unit, Wherein:
Determination unit, the type of data packet for determining the first VoP received and corresponding first language The TS_STRIDE values of first voice data packet header compressed packet of sound type of data packet, wherein type of data packet includes broadband language Sound data packet and narrowband speech data packet, and the TS_STRIDE values and narrowband speech number of broadband voice data packet head compressed packet It is different according to the TS_STRIDE values of Header compression message.
Processing unit, for the TS_SCALED values according to the first voice data packet header compressed packet for setting quantity, and The TS_STRIDE values for first voice data packet header compressed packet that the determination unit determines, in the setting quantity model In enclosing, the time stamp T S values of first voice data packet header compressed packet are determined successively, until the TS values determined can be also Original obtains correct first VoP.
Preferably, the determination unit is used to determine the first voice data packet header of the setting quantity in the following way The TS_SCALED values of compressed packet:
Determine that the TS_SCALED values of second speech data Header compression message, the second speech data packet are to receive The VoP for receiving before first VoP and correctly restoring;According to formula TS_SCALEDi=TS_ SCALEDi-n+ n+p determines at least one TS_SCALED values of first voice data packet header compressed packet;Wherein, TS_ SCALEDiFor the TS_SCALED values of first voice data packet header compressed packet, TS_SCALEDi-nFor second voice The TS_SCALED values of data packet head compressed packet, p are 0 to 8 positive integer determined according to the speech sample period, i and n difference For positive integer, and n is less than i, and n is the reception of the reception sequence number and the second speech data packet of first VoP The difference of sequence number.
Preferably, the processing unit in the following way in the setting quantitative range, determines described first successively The TS values of voice data packet header compressed packet, until the TS values determined can restore to obtain correct first VoP:
The initial value of p is set as 0, by the way that p is gradually added 1, gradually determines first voice data packet header compression report The TS values of text, until the TS values determined can restore to obtain correct first VoP.
Preferably, the TS values that the processing unit is determined can restore to obtain correct first VoP refer to:
The first VoP that the TS values determined restore can be verified by CRC check and UDP.
Preferably, first VoP of the processing unit processes is in voice activation phase and voice quiet period The VoP received when mutually turning.
Description of the drawings
Fig. 1 is a kind of existing workflow schematic diagram of dual-mode base station;
Fig. 2 is a kind of process flow figure of VoP provided in an embodiment of the present invention;
Fig. 3 is a kind of TS_SCALED values of the first voice data of determination packet header provided in an embodiment of the present invention compressed packet Method flow diagram;
Fig. 4 is a kind of VoP schematic diagram that VoP receiving terminal receives provided in an embodiment of the present invention;
Fig. 5 is the VoP schematic diagram after a kind of reduction provided in an embodiment of the present invention;
Fig. 6 is a kind of VoP process chart provided in an embodiment of the present invention;
Fig. 7 is a kind of processing unit of VoP provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is retouched in detail It states, it is clear that described embodiments are only a part of the embodiments of the present invention, is not whole embodiment.Based on the present invention In embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
In LTE system, using IP data packet formats come when transmitting VoP, voice message format as shown in Figure 1, Voice message includes heading and payload, and heading is by IP packet head point, UDP headings part and RTP headings Part forms, and payload is voice to be transmitted, as shown in Figure 1 using IP data packet formats come when transmitting VoP Heading accounts for 40 or 60 bytes, and message header overhead is quite big.In order to reduce message header overhead, the utilization rate of bandwidth of air-interface is improved, LTE system compresses the heading of VoP.It is following only to use ROHC schemes to report in the embodiment of the present invention Literary head carries out compression and is described in detail.
When being compressed to RTP headings using ROHC compression schemes, sends the TS_SCALED values being scaled down and replace Original TS values are sent, the heading of VoP can be compressed to the degree of 1 to 3 byte, wherein compression ratio is highest VoP is the UO-0 packets under bidirectional optimistic mode (O patterns).In the case where TS_SCALED values change, need to use The compressed package of bigger transmits the variation of TS_SCALED values, can be used and sends the extended packet that UOR-2 data packets carry more slab Transmit the variation of TS_SCALED values.For example, continuously transmitting 3 packets, TS differs TS phases between 320, SN2 and SN3 between SN1 and SN2 packets Poor 2560, it sends the first packet and the second packet uses UO-0 packets, the TS_SCALED values of the second packet are 2, when sending SN2 packets, TS_ SCALED values become as 2+8=10, and therefore, it is necessary to be had using minimum based on window on the basis of TS_SCALED reference values are 2 The method that effect position is encoded (Window-Base Least Significant Bits, WLSB) is sent, at this point, only needing Want 3 bytes that can represent the variation of difference between TS.This when voice quiet period and voice activation phase mutually turning more frequent, Better compression efficiency and bandwidth availability ratio can be obtained.Continuous n times (N is generally set>3) after identical TS differences repeat after, Extended packet, which is carried, by UOR-2 notifies the variation of TS_STRIDE values.
In LTE system, in the voice activation phase of user's communication, per 20ms transmission primaries VoPs, in user's communication The voice quiet period of pause sends a voice silence data packet per 160ms, in order to save bandwidth, voice silence data packet meeting Some sampled points (usually abandoning preceding 7 sampled points) are abandoned, in the interim voice number for being inserted into voice quiet period once in a while of voice activation According to the voice activation phase (when i.e. voice quiet period mutually turns with the voice activation phase) is turned after packet again, the variation of TS_STRIDE values is less than N (N>3), if at this time eating dishes without rice or wine that packet loss occurs, the TS value increment non-sequential in the RTP headings of VoP is incremented by, voice Data packet sender only by changing variation of the TS_SCALED values to embody TS differences when, VoP recipient, which still presses, to be increased It is incorrect to add 1 to submit TS_SCALED values, and TS values reduction mistake, restores mistake when can cause to decompress current speech data packet Current speech data packet also result in the reduction mistake of subsequent voice data packet, lead to error diffusion so that VoP Reduction accuracy rate reduce.
When due to turning the voice activation phase again after the VoP of the interim voice quiet period of insertion once in a while of voice activation, By increasing by 1, to submit TS_SCALED values be incorrect to VoP recipient, can cause VoP reduction mistake and Error diffusion problem, in order to improve the reduction accuracy rate of VoP, the embodiment of the present invention provides a kind of VoP Processing method.
Fig. 2 show a kind of process flow figure of VoP provided in an embodiment of the present invention, as shown in Fig. 2, Including:
S101:Determine the type of data packet of the first VoP received and corresponding first voice data Packet type The first voice data packet header compressed packet TS_STRIDE values.
Wherein, type of data packet includes broadband voice data packet and narrowband speech data packet, and broadband voice data packet head The TS_STRIDE values of compressed packet are different with the TS_STRIDE values of narrowband speech data packet head compressed packet.
It should be noted that the first VoP is the language received when mutually turning voice activation phase and voice quiet period Sound data packet, voice activation phase and voice quiet period, which are mutually subcontracted, to be included the voice activation phase and is converted to voice quiet period or voice quiet period Be converted to the voice activation phase.Wherein, it is voice activation phase, user's communication pause during user's communication, when user's communication continues For voice quiet period, the conversion of voice activation phase and voice quiet period also is understood as be user's communication during converse continue and it is logical Talk about the conversion to pause.
In the embodiment of the present invention, voice message is compressed using ROHC schemes, is substantially in voice message head Including the TS values of RTP headings part compressed, TS values and compressed TS values (i.e. TS_ are given in RFC3095 agreements SCALED the relationship between), shown in following formula:
TS=TS_SCALED*TS_SCALED+TS_OFFSET, wherein TS_OFFSET values are definite value.
In the embodiment of the present invention, when VoP receiving terminal restores VoP, TS values need to be determined, and determine TS values Key be to determine TS_SCALED values and TS_SCALED values.
In the embodiment of the present invention, by determining that the type of data packet of the first VoP received is broadband voice number According to packet or narrowband speech data packet, and then determine the TS_STRIDE values of the first voice data packet header compressed packet received.Tool Body, by parsing the first VoP received, the first VoP payload is obtained, according to the first VoP Frame type (Frame Type, FT) field in payload size and the first VoP payload, determines the first voice data The type of data packet of packet is broadband voice data packet or narrowband speech data packet, however, it is determined that the data packet class of the first VoP Type is broadband voice data packet, then can determine the TS_STRIDE values corresponding to broadband voice data packet, such as can be by the first voice The TS_STRIDE values of data packet head compressed packet are determined as 320, however, it is determined that the type of data packet of the first VoP is narrowband VoP then can determine the TS_STRIDE values corresponding to narrowband speech data packet, such as can be then by the first VoP The TS_STRIDE values of head compressed packet are determined as 160.
S102:According to the TS_SCALED values and the first voice of the first voice data packet header compressed packet of setting quantity The TS_STRIDE values of data packet head compressed packet determine the first voice data packet header compression report successively in setting quantitative range The TS values of text, until the TS values determined can restore to obtain correct first VoP.
In the embodiment of the present invention, in the case where the TS_STRIDE values of the first voice data packet header compressed packet determine, really The key of the TS values of fixed first voice data packet header compressed packet is to determine the TS_ of the first voice data packet header compressed packet SCALED values, the present invention is by setting quantitative range, repeatedly attempting the TS_ of determining first voice data packet header compressed packet SCALED values, and then determine TS values, until the TS values determined can restore to obtain correct first VoP, overcome The low problem of the reduction accuracy rate of VoP caused by TS_SCALED values is determined by way of being directly incremented by 1.
In the embodiment of the present invention, the TS_SCALED values for setting the first voice data packet header compressed packet of quantity specifically may be used It is determined by the way of as shown in Figure 3:
S201:Determine that the TS_SCALED values of second speech data Header compression message, second speech data packet are to receive The VoP for receiving before first VoP and correctly restoring.
In the embodiment of the present invention, VoP receiving terminal received in-order VoP, second speech data packet can be with It is the previous VoP of the first VoP, can also be preceding N (N is more than or equal to 1) a language of the first VoP Sound data packet.If second speech data packet is the previous VoP of the first VoP, i.e., VoP does not occur The voice data provided in the present invention can also be used at this point, the prior art both can be used to restore the first VoP in packet loss Packet processing method restores the first VoP.Emphasis is that (N is more than by the preceding N of the first VoP with the second data packet below It is described in detail equal to 1) a VoP.
S202:According to formula TS_SCALEDi=TS_SCALEDi-n+ n+p determines the first voice data packet header compressed packet At least one TS_SCALED values.
Wherein, TS_SCALEDiFor the TS_SCALED values of the first voice data packet header compressed packet, TS_SCALEDi-nFor The TS_SCALED values of second speech data Header compression message, p are the positive integer determined according to the speech sample period, and i and n divide Not Wei positive integer, and n be less than i, n be the first VoP reception sequence number and second speech data packet reception sequence number Difference.
In the embodiment of the present invention, the value of p can be determined as 8 according to the speech sample period.Assuming that second speech data packet is The first two VoP of first VoP then can determine the reception sequence number and the second voice of the first VoP The difference of the reception sequence number of data packet is 2, and then can determine the TS_SCALED values for calculating the first voice data packet header compressed packet Formula be:
TS_SCALEDi=TS_SCALEDi-2+ 2+p can be determined directly by the second speech data packet correctly restored Go out TS_SCALEDi-2Value, therefore, 9 TS_SCALED can be calculated by above-mentioned formulaiValue.
In the embodiment of the present invention, multiple TS_SCALED can be obtained by above-mentioned calculation formulaiValue, and assisted according to RFC3095 View is it is found that TS values meet following relational expression with TS_SCALED and TS_STRIDE values:
TS=TS_SCALED*TS_STRIDE+TS_OFFSET, wherein TS_OFFSET are definite value, therefore, by determining TS_ SCALED and TS_STRIDE values, you can determine TS values.
In the embodiment of the present invention, according to formula TS_SCALEDi=TS_SCALEDi-2+ 2+p can determine multiple TS_SCALEDi Value, therefore can determine multiple TS values, the present invention by setting quantitative range, determining the first voice data packet header compression report successively The TS values of text, until the TS values determined can restore to obtain correct first VoP.A kind of possible embodiment In, the initial value of p can be set as 0, by the way that p is gradually added 1, gradually determine first voice data packet header compressed packet TS values, until the TS values determined can restore to obtain correct first VoP.
In the embodiment of the present invention, the TS values determined can restore to obtain correct first VoP refer to:It determines The first VoP that the TS values gone out restore can pass through authentication check.
In a kind of embodiment, the TS values determined can restore to obtain correct first VoP refer to:It determines The first VoP that the TS values gone out restore can pass through CRC check.
In another embodiment, the TS values determined can restore to obtain correct first VoP refer to:Really The first VoP that the TS values made restore further is verified by UDP on the basis of by CRC check.
In the embodiment of the present invention, due to the verification limited bits used when CRC check, CRC check error-prone, therefore, Can be by CRC check even if restoring the first obtained VoP, the first VoP restored is also likely to be Mistake, the present invention increases UDP verifications on the basis of CRC check, that is, passes through CRC check and UDP to improve false drop rate The secondary verification of verification so that the accuracy rate higher of the first VoP restored.
In the embodiment of the present invention, the first VoP mainly restored below with the TS values determined can pass through It is described in detail for CRC check and UDP verifications.
It should be noted that the first VoP is mutual in voice activation phase and voice quiet period in the embodiment of the present invention The VoP received when turning.
Voice data packet processing method provided by the invention is described in detail with a specific example below.
It should be noted that currently based on voip technology transmit VoP, be usually encapsulated as IPv6 data packets into Row transmission, is illustrated with being encapsulated as IPv6 data packets below.
Assuming that VoP receiving terminal, receives 7 VoPs from 0x8633 to 0x863a, as shown in figure 4, long The VoP that degree is 66 is the data packet in the voice activation phase, and the VoP that length is 12 and 17 is in voice The data packet of quiet period, UO-0 and UOR-2 indicate different data packet formats respectively, wherein 0x8637 VoPs are in language Sound quiet period and activation phase lose when converting.
Fig. 5 shows that VoP receiving terminal goes back the VoP in Fig. 4 for receiving according to the prior art The VoP schematic diagram that original obtains, specific reduction process are as described below:
As seen from Figure 4, packet loss does not occur from 0x8633 to 0x8634, SN is sequentially incremented by 1, TS_SCALE and is sequentially incremented by 1, therefore the TS_STRIDE values of VoP 0x8633, TS_ can be calculated by two VoPs of 0x8633 and 0x8634 OFFSET values and TS_SCALED1 values are as follows respectively:
TS_STRIDE=0x041d24d4-0x041d2394=0x140=320;
TS_OFFSET=0x041d24d4%TS_STRIDE=0x114=276;
TS_SCALED1=TS1/TS_STRIDE=215683, wherein TS1 indicates the TS values of data packet 0x8633;
And the SN values of VoP 0x8633 are as shown in Figure 5:SN1=0x0a43;
In turn, it can restore to obtain VoP 0x8633 and 0x8634 by the above-mentioned value correctly restored.
For third the VoP 0x8635, format UOR-2 received, it may be determined that VoP 0x8635 TS_SCALED values be:TS_SCALED3=215686, therefore the TS values of VoP 0x8635 can be calculated:TS3= 215686*320+276=0x4182d94, and then correctly restore VoP 0x8635.
For the 4th the VoP 0x8636, format UOR-2 received, it may be determined that VoP 0x8636 TS_SCALED values be:TS_SCALED4=215694, therefore the TS values of VoP 0x8636 can be calculated:TS4= 215694*320+276=0x41d3294, and then correctly restore VoP 0x8636.
Since VoP 0x8637 loses, and the VoP 0x8637 lost is that kind of data packet connects Receiving end is unclear, and according to the prior art, receiving terminal is for the 6th VoP 0x8638 that the format that receives is UO-0 The TS values of VoP 0x8638 can be calculated according to the 4th VoP 0x8636 reduction:TS6=(215694+ 2) * 320+276=0x41d3514, and the 5th VoP 0x8637 may be UOR-2 packets in practice, TS_SCALED values It has been updated to the value of non-(215694+2), therefore may have been malfunctioned by the TS values that the above method restores, the language restored is caused The 0x8638 errors of sound data packet, and then cause the verification of subsequent voice data packet that packet loss or CRC is unsuccessfully caused accidentally to verify and pass through, Subsequent voice data packet continuation CRC check unsuccessfully causes more packet losses after update reference value.
The voice data packet processing method provided through the embodiment of the present invention handles above-mentioned voice quiet period and the activation phase turns The process of packet loss when changing, as shown in Figure 6, it is assumed that VoP receiving terminal receives data packet format in voice quiet period and is The second speech data packet a (i-2) of UOR-2, and normally submit, subsequently receive the first voice number that data packet format is UO-0 According to packet a (i), current speech data packet SN values are calculated according to Least Significant Bit (Least SignificantBit, LSB) algorithm, are sentenced Disconnected a (i-1) voice data packet loss.
After judging a (i-1) voice data packet loss, by parsing the first VoP, the first voice data is obtained Packet payload, in the case where it is byte-aligned or efficiency comes first to determine RTP data packet formats, according to the first VoP payload Frame type (Frame Type, FT) field in length and the first VoP payload, determines that the first VoP is Broadband voice data packet or narrowband speech data packet.
Specifically, if FT fields and the first VoP payload length are matched with following table middle width strip VoP It is determined as broadband voice data packet, if FT fields and the first VoP payload length and narrowband speech data packet in following table Matching is then determined as narrowband speech data packet.
Wherein, it is the FT and payload of broadband/narrowband speech data packet in the case of efficiency comes first that table 1, which is RTP data packet formats, Length corresponds to table, and table 2 is the FT and payload of broadband/narrowband speech data packet in the case that RTP data packet formats are byte-aligned Length corresponds to table.
Table 1 is as follows:
Table 2 is as follows:
If determining that the first VoP is broadband voice data packet by the correspondence in above table, by first The TS_STRIDE values that VoP carries are set as 320, however, it is determined that the first VoP is narrowband speech data packet, then The TS_STRIDE values that first VoP carries are set as 160.
Fig. 6 is mainly described in detail for by data packet a (i-2) restoring data packet a (i).
According to formula TS_SCALEDi=TS_SCALEDi-2The initial value of p is set as 0, restores the first voice number by+2+p CRC check is carried out according to the packet header of packet a (i), and then to the data packet head of reduction, judges the CRC check being calculated and with first CRC check and whether equal is carried in VoP a (i), if equal, further to the VoP of reduction progress UDP Verification, if verification passes through, it is determined that the first VoP of correct reduction.If the first VoP of reduction only passes through CRC Verification or by CRC check but the step of cannot be verified by UDP, then add 1 to continue the above the value of p, until determining energy The first VoP enough verified by CRC check and UDP.
For example, for the example of above-mentioned loss VoP 0x8637, the voice number provided through the embodiment of the present invention According to packet processing method, the process of reduction VoP 0x8638 is as follows:
First, the speech payload of parsing VoP 0x8638:11110100 0110, it is efficiency comes first, FT fields are 1000=0x8, therefore can be identified as broadband voice data packet, therefore, it may be determined that the TS_STRIDE values of VoP 0x8638 are 320。
Secondly, the initial value of p is set to the 0 TS values for gradually calculating VoP 0x8638.
As p=0, calculated TS values are:TS6=(215694+2) * 320+276=0x41d3514, and then calculate It CRC check and is differed for the CRC check and 4 carried in 1, with VoP 0x8638, therefore, as p=0, CRC check Failure.
By p value plus 1, calculated TS values are:TS6=(215694+2+1) * 320+276=0x41d3654, and then calculate Go out CRC check and is differed for the CRC check and 4 carried in 7, with VoP 0x8638, therefore, as p=1, the schools CRC Test failure.
P value is continued to add 1, calculated TS values are:TS6=(215694+2+2) * 320+276=0x41d3794, in turn It calculates CRC check and is differed for the CRC check and 4 carried in 1, with VoP 0x8638, therefore, as p=2, CRC check fails.
P value is continued to add 1, calculated TS values are:TS6=(215694+2+3) * 320+276=0x41d38d4, in turn Calculate CRC check and be 4, it is identical as the CRC check and 4 carried in VoP 0x8638, therefore, as p=3, CRC It verifies successfully.
Finally, by the following method calculate UDP verification and:
CheckSum fields in the UDP message packet header of reduction are reset, however, it is determined that the voice data packet length of reduction is Odd bytes zero padding is then even bytes by odd bytes, by the VoP of reduction by the cumulative summation of two bytes, obtains four Byte value, however, it is determined that high two byte of nybble numerical value is not zero, then by high two byte of nybble numerical value and low two byte Value addition obtain a nybble numerical value again, repeat the above steps until nybble numerical value high two byte be 0, will obtain High two byte be 0 nybble numerical value negated by bit, obtain UDP verification and be 0x2d0e, by the UDP being calculated verify It is identical with the UDP verifications and relatively determination carried in VoP 0x8638, therefore, above example is determined as p=3 TS values can correctly restore VoP 0x8638, based on the above, receiving terminal can correctly restore the 7th VoP and 8 VoPs.
Processing method based on the VoP that above-described embodiment provides, the embodiment of the present invention provide a kind of voice data The processing unit of packet, Fig. 7 show the structural schematic diagram of the processing unit of VoP provided in an embodiment of the present invention, such as scheme Shown in 7, which includes determination unit 101 and processing unit 102, wherein:
Determination unit 101, the type of data packet for determining the first VoP received and corresponding first language The TS_STRIDE values of first voice data packet header compressed packet of sound type of data packet, wherein type of data packet includes broadband language Sound data packet and narrowband speech data packet, and the TS_STRIDE values and narrowband speech number of broadband voice data packet head compressed packet It is different according to the TS_STRIDE values of Header compression message.
Processing unit 102 is used for the TS_SCALED values of the first voice data packet header compressed packet according to setting quantity, And the TS_STRIDE values of the first voice data packet header compressed packet of the determination of determination unit 101, in setting quantitative range, The TS values of the first voice data packet header compressed packet are determined successively, until the TS values determined can restore to obtain correct first VoP.
In the embodiment of the present invention, determination unit 101 is additionally operable to determine the first voice number of setting quantity in the following way According to the TS_SCALED values of Header compression message:
Determine that the TS_SCALED values of second speech data Header compression message, second speech data packet are to receive first The VoP for receiving before VoP and correctly restoring, according to formula TS_SCALEDi=TS_SCALEDi-n+ N+p determines at least one TS_SCALED values of the first voice data packet header compressed packet.
Wherein, TS_SCALEDiFor the TS_SCALED values of the first voice data packet header compressed packet, TS_SCALEDi-nFor The TS_SCALED values of second speech data Header compression message, p are 0 to 8 positive integer determined according to the speech sample period, i It is respectively positive integer with n, and n is less than i, n is the reception of the reception sequence number and second speech data packet of the first VoP The difference of sequence number.
Specifically, processing unit 102 is being set in quantitative range in the following way, the first VoP is determined successively The TS values of head compressed packet, until the TS values determined can restore to obtain correct first VoP:
The initial value of p is set as 0, by the way that p is gradually added 1, gradually determines the first voice data packet header compressed packet TS values, until the TS values determined can restore to obtain correct first VoP.
Specifically, the TS values that processing unit 102 is determined can restore to obtain correct first VoP refer to:
The first VoP that the TS values determined restore can be verified by CRC check and UDP.
In the embodiment of the present invention, the first VoP of the processing of processing unit 102 is quiet with voice in the voice activation phase The VoP that the silent phase receives when mutually turning.
In the embodiment of the present invention, the TS_SCALED values of the first voice data packet header compressed packet by setting quantity, with And first voice data packet header compressed packet TS_STRIDE values, in setting quantitative range, by using the of setting quantity The TS_SCALED values of one voice data packet header compressed packet gradually determine TS values, and the first language is restored one by one according to determining TS values Sound data packet, until the TS values determined can restore to obtain correct first VoP, i.e., by repeatedly attempting to determine Correct TS values improve the accuracy rate according to the TS values reduction VoP determined.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of processing method of VoP, which is characterized in that including:
Determine the of the type of data packet of the first VoP received and the corresponding first voice data Packet type The timestamp multiple TS_STRIDE values of one voice data packet header compressed packet;
Wherein, type of data packet includes broadband voice data packet and narrowband speech data packet, and broadband voice data packet head compresses The TS_STRIDE values of message are different with the TS_STRIDE values of narrowband speech data packet head compressed packet;
According to the timestamp ratio TS_SCALED values of the first voice data packet header compressed packet of setting quantity and described the The TS_STRIDE values of one voice data packet header compressed packet determine first voice successively in the setting quantitative range The time stamp T S values of data packet head compressed packet, until the TS values determined can restore to obtain correct first voice data Packet.
2. the method as described in claim 1, which is characterized in that the first voice data packet header compressed packet of the setting quantity TS_SCALED values determine in the following way:
Determine that the TS_SCALED values of second speech data Header compression message, the second speech data packet are described in reception The VoP for receiving before first VoP and correctly restoring;
According to formula TS_SCALEDi=TS_SCALEDi-n+ n+p determines first voice data packet header compressed packet at least One TS_SCALED value;
Wherein, TS_SCALEDiFor the TS_SCALED values of first voice data packet header compressed packet, TS_SCALEDi-nFor institute State the TS_SCALED values of second speech data Header compression message, p be according to the speech sample period determine 0 to 8 it is just whole Number, i and n are respectively positive integer, and n is less than i, and n is the reception sequence number of first VoP and second voice The difference of the reception sequence number of data packet.
3. method as claimed in claim 2, which is characterized in that it is described in the setting quantitative range, successively determine described in The TS values of first voice data packet header compressed packet, until the TS values determined can restore to obtain correct first voice data Packet, including:
The initial value of p is set as 0, by the way that p is gradually added 1, gradually determines first voice data packet header compressed packet TS values, until the TS values determined can restore to obtain correct first VoP.
4. method as claimed in claim 3, which is characterized in that the TS values determined can restore to obtain correct first VoP refers to:
The first VoP that the TS values determined restore can be verified by CRC check and UDP.
5. method according to any one of claims 1-4, which is characterized in that first VoP is in voice activation The VoP that phase receives when mutually turning with voice quiet period.
6. a kind of processing unit of VoP, which is characterized in that including:
Determination unit, the type of data packet for determining the first VoP received and the corresponding first voice number According to the timestamp multiple TS_STRIDE values of the first voice data packet header compressed packet of Packet type, wherein type of data packet includes Broadband voice data packet and narrowband speech data packet, and the TS_STRIDE values and narrowband of broadband voice data packet head compressed packet The TS_STRIDE values of voice data packet header compressed packet are different;
Processing unit, for the timestamp ratio TS_SCALED according to the first voice data packet header compressed packet for setting quantity The TS_STRIDE values for first voice data packet header compressed packet that value and the determination unit determine, in the setting In quantitative range, the time stamp T S values of first voice data packet header compressed packet are determined successively, until the TS values determined It can restore to obtain correct first VoP.
7. device as claimed in claim 6, which is characterized in that the determination unit in the following way determine described in set The TS_SCALED values of first voice data packet header compressed packet of fixed number amount:
Determine that the TS_SCALED values of second speech data Header compression message, the second speech data packet are described in reception The VoP for receiving before first VoP and correctly restoring;
According to formula TS_SCALEDi=TS_SCALEDi-n+ n+p determines first voice data packet header compressed packet at least One TS_SCALED value;
Wherein, TS_SCALEDiFor the TS_SCALED values of first voice data packet header compressed packet, TS_SCALEDi-nFor institute State the TS_SCALED values of second speech data Header compression message, p be according to the speech sample period determine 0 to 8 it is just whole Number, i and n are respectively positive integer, and n is less than i, and n is the reception sequence number of first VoP and second voice The difference of the reception sequence number of data packet.
8. device as claimed in claim 7, which is characterized in that the processing unit is in the following way in the setting quantity In range, the TS values of first voice data packet header compressed packet are determined successively, until the TS values determined can restore To correct first VoP:
The initial value of p is set as 0, by the way that p is gradually added 1, gradually determines first voice data packet header compressed packet TS values, until the TS values determined can restore to obtain correct first VoP.
9. device as claimed in claim 8, which is characterized in that the TS values that the processing unit is determined can restore to obtain just The first true VoP refers to:
The first VoP that the TS values determined restore can be verified by CRC check and UDP.
10. such as claim 6-9 any one of them devices, which is characterized in that first language of the processing unit processes Sound data packet is the VoP received when mutually turning voice activation phase and voice quiet period.
CN201710272196.3A 2017-04-24 2017-04-24 Voice data packet processing method and device Active CN108737349B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710272196.3A CN108737349B (en) 2017-04-24 2017-04-24 Voice data packet processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710272196.3A CN108737349B (en) 2017-04-24 2017-04-24 Voice data packet processing method and device

Publications (2)

Publication Number Publication Date
CN108737349A true CN108737349A (en) 2018-11-02
CN108737349B CN108737349B (en) 2020-08-28

Family

ID=63934402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710272196.3A Active CN108737349B (en) 2017-04-24 2017-04-24 Voice data packet processing method and device

Country Status (1)

Country Link
CN (1) CN108737349B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111328104A (en) * 2018-12-14 2020-06-23 华为技术有限公司 Data packet decompression method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101366261A (en) * 2006-01-06 2009-02-11 高通股份有限公司 Method and apparatus for enhancing rohc performance when encountering silence suppression
CN104320810A (en) * 2014-11-07 2015-01-28 大唐移动通信设备有限公司 Header compression method and device and decompression method and device
CN105791228A (en) * 2014-12-22 2016-07-20 中兴通讯股份有限公司 Method and device for compressing timestamp
US20160315991A1 (en) * 2014-01-13 2016-10-27 Lg Electronics Inc. Apparatuses and methods for transmitting or receiving a broadcast content via one or more networks
US20170085615A1 (en) * 2015-09-23 2017-03-23 Qualcomm Incorporated Call continuity in high uplink interference state
US20170091014A1 (en) * 2015-09-24 2017-03-30 Qualcomm Incorporated Timestamp repair mechanism in case of decompression failure

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101366261A (en) * 2006-01-06 2009-02-11 高通股份有限公司 Method and apparatus for enhancing rohc performance when encountering silence suppression
US20160315991A1 (en) * 2014-01-13 2016-10-27 Lg Electronics Inc. Apparatuses and methods for transmitting or receiving a broadcast content via one or more networks
CN104320810A (en) * 2014-11-07 2015-01-28 大唐移动通信设备有限公司 Header compression method and device and decompression method and device
CN105791228A (en) * 2014-12-22 2016-07-20 中兴通讯股份有限公司 Method and device for compressing timestamp
US20170085615A1 (en) * 2015-09-23 2017-03-23 Qualcomm Incorporated Call continuity in high uplink interference state
US20170091014A1 (en) * 2015-09-24 2017-03-30 Qualcomm Incorporated Timestamp repair mechanism in case of decompression failure

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111328104A (en) * 2018-12-14 2020-06-23 华为技术有限公司 Data packet decompression method and device

Also Published As

Publication number Publication date
CN108737349B (en) 2020-08-28

Similar Documents

Publication Publication Date Title
EP1222789B1 (en) Robust header compression in packet communications
US10631202B2 (en) Header compression optimization method during and after handovers in cellular communication network
US7907609B2 (en) Method and apparatus for enhancing RoHC performance when encountering silence suppression
US7876695B2 (en) Communication station and method providing flexible compression of data packets
KR101722719B1 (en) Backward looking robust header compression receiver
JP5084842B2 (en) Improved header compression in wireless communication networks
EP1626517A2 (en) Method and apparatus for transmitting/receiving VoIP packets with UDP checksum in an mobile communication system
EP1786170A2 (en) Header compression in voice packets
CN107209713B (en) Method and system for on-demand file repair
CN109219078A (en) Voice loss treating method and device
US20040165585A1 (en) Packet transmission apparatus and packet transmission method
WO2000079764A1 (en) Robust delta encoding with history information
EP1482668A1 (en) PACKET TRANSMITTER, PACKET RECEIVER AND PACKET TRANSMISSION METHOD
CN108737349A (en) A kind of processing method and processing device of VoP
US20040165542A1 (en) Packet transmitter and packet transmitter method
CN108574684A (en) A kind of method and apparatus of decompression
CN109936864A (en) A kind of method and apparatus across building head compressed context in the switching of station
US20040136380A1 (en) Packet transmitter, packet receiver and packet transmission method
EP1482700A1 (en) Packet transmitter and packet transmission method
KR100918961B1 (en) Method for compressing dynamic area and deciding ncb in wireless communication network
Zhang WLC04-2: Performance of Robust Header Compression for VoIP in 1xEV-DO Revision A System

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant