CN110913421A - Method and device for determining voice packet number - Google Patents
Method and device for determining voice packet number Download PDFInfo
- Publication number
- CN110913421A CN110913421A CN201811088609.3A CN201811088609A CN110913421A CN 110913421 A CN110913421 A CN 110913421A CN 201811088609 A CN201811088609 A CN 201811088609A CN 110913421 A CN110913421 A CN 110913421A
- Authority
- CN
- China
- Prior art keywords
- tss
- voice
- voice packet
- packets
- packet
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and a device for determining the number of voice packets, wherein a base station receives the voice packets sent by User Equipment (UE), and determines the number corresponding to different types of voice packets in the lost voice packets according to the sequence number N1 and the time stamp T1 of the voice packet received most recently, the sequence number N2 and the time stamp T2 of the currently received voice packet when determining the occurrence of packet loss, thereby improving the accuracy of the evaluation of the network transmission quality.
Description
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a method and an apparatus for determining the number of voice packets.
Background
With the ever-expanding range of network applications, the evaluation of network transmission quality becomes more and more important.
Generally, when evaluating network transmission quality, it is determined according to the number of lost voice packets and the types of the lost voice packets in the process of transmitting voice data between a User Equipment (UE) and a base station.
Currently, the number of lost voice packets is determined as follows: assuming that the currently received voice packet sequence number of the base station is N2 and the last received voice packet sequence number is N1, the number of lost voice packets can be calculated according to the difference between the sequence numbers of the two consecutive received voice packets. If the difference between the sequence numbers of the two voice packets is 0, the number of the lost voice packets is 0, and if the difference between the sequence numbers of the two voice packets is not 0, the difference is the number of the lost voice packets. For example, if the sequence number of the last received voice packet is 2 and the sequence number of the currently received voice packet is 4, the number of the lost voice packets is: 4-2-1 ═ 1.
The above method can only determine the number of lost voice packets, but in some cases, it is necessary to determine the number of each type of the lost voice packets, assuming that the types of the voice packets include type 1 and type 2, for example, when the base station determines a one-way link, N (N is a positive integer) lost voice packets of type 1 may cause one-way, but N lost voice packets of type 2 may not cause one-way, and therefore, determining the number of each type of the lost voice packets is particularly important for the evaluation of the network transmission quality, and the loss of voice packets of different types may make the evaluation result of the network transmission quality inaccurate.
Disclosure of Invention
The invention aims to provide a method and a device for determining the number of voice packets so as to improve the evaluation accuracy of network transmission quality.
The purpose of the invention is realized by the following technical scheme:
in a first aspect, the present invention provides a method for determining a number of voice packets, including:
a base station receives at least two voice packets sent by User Equipment (UE);
the at least two voice packets comprise a first type voice packet and/or a second type voice packet;
when the base station determines that at least one voice packet is lost in the at least two voice packets, determining the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets according to the sequence number N1 and the time stamp T1 of the latest received voice packet and the sequence number N2 and the time stamp T2 of the currently received voice packet, wherein all of N1, N2 and X, Y are integers greater than or equal to 0.
Optionally, when the currently received voice packet is a voice packet of the first type, determining the number X of the first type voice packets and the number Y of the second type voice packets in the lost voice packets according to the sequence number N1 and the timestamp T1 of the last received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet, including:
if T1 and T2 satisfy the following conditions: T2-T1< Tss m or (T2-T1-Tss m)/Tss < (N2-N1-1), then Y ═ 0; if T1, T2 do not satisfy: T2-T1< Tss m or (T2-T1-Tss m)/Tss < (N2-N1-1), then
X=N2-N1-1-Y;
Where Tss represents the timestamp growth.
Optionally, when the currently received voice packet is a voice packet of a second type, determining the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets according to the sequence number N1 and the timestamp T1 of the last received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet, including:
if T1 and T2 satisfy the following conditions: T2-T1< Tss or (T2-T1-Tss)/Tss < (N2-N1-1), then Y ═ 0; if T1, T2 do not satisfy: T2-T1< Tss or (T2-T1-Tss)/Tss < (N2-N1-1), then
X=N2-N1-1-Y;
Where Tss represents the timestamp growth.
Optionally, before determining the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets, the method further includes:
determining the bandwidth size range of the received voice packet in the configuration information according to the payload length of the voice packet received last time and/or the payload length of the currently received voice packet;
the configuration information comprises the corresponding relation between the payload length of the voice packet and the bandwidth size range of the voice packet;
and determining the time stamp increment according to the bandwidth size range, wherein the bandwidth size range and the time stamp increment have a preset corresponding relation.
In a second aspect, the present invention provides an apparatus for determining the number of voice packets, including:
a receiving unit, configured to receive at least two voice packets sent by a user equipment UE; the at least two voice packets comprise a first type voice packet and/or a second type voice packet;
and a processing unit, configured to, when it is determined that at least one of the at least two voice packets acquired by the acquisition unit is lost, determine, according to the sequence number N1 and the timestamp T1 of the last received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet, the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets, where N1, N2, T1, T2, and X, Y are all integers greater than or equal to 0.
Optionally, the processing unit is specifically configured to determine the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets according to the sequence number N1 and the timestamp T1 of the last received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet as follows:
when the currently received voice packet is a voice packet of the first type, if T1 and T2 satisfy the following condition: T2-T1< Tss m or (T2-T1-Tss m)/Tss < (N2-N1-1), then Y ═ 0; if T1, T2 do not satisfy: T2-T1< Tss m or (T2-T1-Tss m)/Tss < (N2-N1-1), then
X=N2-N1-1-Y;
Where Tss represents the timestamp growth.
Optionally, the processing unit is specifically configured to determine the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets according to the sequence number N1 and the timestamp T1 of the last received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet as follows:
when the currently received voice packet is a second type of voice packet, if T1 and T2 satisfy the following condition: T2-T1<Tss or (T2-T1-Tss)/Tss<(N2-N1-1), then Y is 0; if T1, T2 do not satisfy: T2-T1<Tss or (T2-T1-Tss)/Tss<(N2-N1-1), then
X=N2-N1-1-Y;
Where Tss represents the timestamp growth.
Optionally, the processing unit is further configured to:
determining the bandwidth size range of the received voice packet in the configuration information according to the payload length of the voice packet received last time and/or the payload length of the currently received voice packet;
the configuration information comprises the corresponding relation between the payload length of the voice packet and the bandwidth size range of the voice packet;
and determining the time stamp increment according to the bandwidth size range, wherein the bandwidth size range and the time stamp increment have a preset corresponding relation.
In a third aspect, the present invention provides a device for determining the number of voice packets, including:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the method of the first aspect according to the obtained program.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon computer instructions which, when run on a computer, cause the computer to perform the method of the first aspect.
The invention provides a method and a device for determining the number of voice packets, wherein when a base station determines a lost voice packet, the number corresponding to different types of voice packets in the lost voice packet is determined according to the sequence number and the timestamp of the voice packet received last time and the sequence number and the timestamp of the currently received voice packet, so that the evaluation accuracy of the network transmission quality is improved by utilizing the characteristic that the different types of voice packets have different contribution degrees to a network.
Drawings
Fig. 1 is a flowchart of a method for determining the number of voice packets according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a format of a voice message according to an embodiment of the present application;
fig. 3 is a schematic diagram of a format of an RTP packet according to an embodiment of the present application;
fig. 4 is a block diagram of a structure of a device for determining the number of voice packets according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of another apparatus for determining the number of voice packets according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the process of transmitting the voice packet, there are often situations of packet loss, and there are various reasons for the packet loss. For example, on the wired side, a User Datagram Protocol (UDP) is usually adopted for voice packet transmission, and packet loss may occur due to unreliability of UDP transmission between transmissions such as a base station to a Serving GateWay (SGW). On the wireless side, the voice packet is generally transmitted in an Uncertain Mode (UM), and due to jitter of the quality of the air interface, there may be a case of packet loss.
Since the number of packet losses and the contribution degree of different packet loss types to the Mean Opinion Score (MOS) of the network are different, when evaluating the network quality, the number of packet losses and the type of the packet losses need to be determined.
For example, when the base station performs a one-pass determination, due to the difference between packet loss types and numbers, the network quality evaluation may not be accurate enough.
In view of this, embodiments of the present disclosure provide a method and an apparatus for determining a number of voice packets, where a number of lost packets and a number corresponding to a type of the lost packets are calculated by using a sequence number and a timestamp of a voice packet, so that network quality can be more accurately evaluated.
It is to be understood that the terms first, second, etc. in the following description are used for distinguishing between similar elements and not necessarily for describing a sequential or chronological order.
Fig. 1 is a flowchart illustrating a method for determining a number of voice packets according to an embodiment of the present invention, where an execution subject of the method illustrated in fig. 1 may be a device for determining a number of voice packets, such as a base station, a network device, and the like, and referring to fig. 1, the method includes:
s101: the UE sends a voice packet to the base station.
S102: and the base station receives the voice packet sent by the UE.
In the embodiment of the present application, the number of the voice packets received by the base station may be at least two, and the types of the voice packets may be one or two, for example, the two types of voice packets may be referred to as a first type of voice packet and a second type of voice packet.
It is to be understood that, the at least two voice packets may both be a voice packet of the first type, may also both be a voice packet of the second type, and may also be a voice packet of the first type and a voice packet of the second type, which is not limited in this embodiment of the application.
S103: it is determined that there is a lost voice packet.
Specifically, the base station may determine whether the voice packet sent by the UE has a lost voice packet, and because each voice packet has a unique sequence number, if the sequence number of the received voice packet is determined to be incomplete in the received voice packet, the packet loss occurs.
For example, the sequence numbers of the voice packets sent by the UE are 1, 2, and 3.. N, respectively, and the sequence numbers of the voice packets received by the base station are 1, 2, and 4.. N, then it can be determined that packet loss occurs during the transmission of the voice data, and the packet loss number is: 4-2-1 ═ 1.
In the embodiment of the present application, when there is a lost voice packet, the number of the lost voice packet may be at least one.
S104: and determining the number of the different types of voice packets lost according to the sequence number and the time stamp of the voice packet received last time and the sequence number and the time stamp of the currently received voice packet.
The process of the above step S104 will be specifically described below in detail.
It will be appreciated that the most recently received speech packet is the previous speech packet of the currently received speech packet.
Assume that the last received voice packet has a sequence number N1, a timestamp T1, a sequence number N2, a timestamp T2, a number X of first type voice packets and a number Y of second type voice packets in the lost voice packets.
Wherein, N1, N2 and X, Y in the parameters are integers which are not less than 0.
Specifically, in the embodiment of the present application, the size of the bandwidth range used in the transmission process of the voice packet may be determined according to the size of the voice packet, then the timestamp increment Tss is set on the basis of the determined bandwidth range, and finally, the number corresponding to the different types of lost voice packets is determined according to the difference of the timestamps.
It should be noted that the bandwidth range size may include a narrow band or a wide band.
In the process of sending the Voice packet to the base station, the base station analyzes the Voice packet after receiving the Voice packet, and since the Real-time transport Protocol (RTP) message is carried in the Voice Over LTE (VOLTE) based on LTE, and the Voice message is carried on the Internet Protocol (IP)/UDP/RTP, as shown in fig. 2, the payload is a Voice payload.
Fig. 3 is a schematic diagram of a format of an RTP packet according to an embodiment of the present application, where:
v represents: the version number of the RTP protocol takes 2 bits.
P represents: and filling the mark, wherein the filling mark occupies 1 bit, and if the P is 1, filling one or more extra octets which are not part of the payload at the tail part of the message.
X represents: the extension flag takes 1 bit, and if X is 1, an extension header follows the RTP header.
CC represents: counter, takes 4 bits.
M represents: marking, which occupies 1 bit, different payloads have different meanings, and marking the end of one frame for the video; for audio, the beginning of the conversation is marked.
PT represents: the payload type, which occupies 7 bits, is used for explaining the type of the payload in the RTP message.
Sequence number: and the sequence number occupies 16 bits and is used for identifying the sequence number of the RTP message sent by the sender, and 1 is added to the sequence number when one message is sent. The receiving end detects the message loss condition through the sequence number, reorders the messages and recovers the data.
Timestamp (Timestamp): the receiving end calculates delay and delay jitter by using the timestamp and performs synchronous control.
SSRC represents that: the sync source identifier, which takes up 32 bits, is used to identify the sync source.
CSRC represents that: the special source identifier, each CSRC identifier takes 32 bits, and there can be 0-15. Each CSRC identifies all of the contracted sources contained in the RTP packet payload.
Note that the sequence number is usually represented by SN, and the time stamp is represented by Ts.
The following will first describe the details of determining the size of the bandwidth range used in the transmission of the voice packet according to the size of the voice packet.
Specifically, the format of the RTP packet includes the following two formats: (1) efficiency-first format; (2) the byte alignment is shown in tables 1 and 2.
It should be noted that the tables include NarrowBand Adaptive Multi-Rate (AMR-NB) and Wideband Adaptive Multi-Rate (AMR-WB).
TABLE 1RTP packet Format broadband/narrowband Speech payload with efficiency priority
TABLE 2 RTP packet Format for wideband/narrowband Speech payload with byte alignment
It should be understood that the above table is only an illustrative example, and the present invention is not limited thereto.
As can be seen from tables 1 and 2, the table is configured with the corresponding relationship between the payload length of the voice packet and the bandwidth, for example, when the payload length of the received voice packet is 27 bytes, it can be determined that the bandwidth used in the voice packet transmission process is the narrow bandwidth.
It can be understood that, the size of the voice packet referred in the embodiments of the present application is the payload length of the voice packet.
In the embodiments of the present application, it can be understood that: and determining the bandwidth size range of the received voice packet in the configuration information according to the payload length of the voice packet received last time and/or the payload length of the currently received voice packet.
The configuration information includes a corresponding relationship between a payload length of the voice packet and a bandwidth size range of the voice packet.
After the wideband or narrowband is determined, the timestamp increment Tss between two consecutive voice packets may be further set, and the base station may determine whether a voice packet is received within Tss by setting Tss, for example, the transmission delay of a silence packet is long, and the silence packet may not be received at the base station according to the fixed Tss.
Specifically, in the embodiment of the present application, the timestamp increment may be determined according to a preset correspondence. The preset corresponding relation comprises a corresponding relation between the bandwidth range of the voice packet and the time stamp increment. For example, in the embodiment of the present application, the timestamp increment Tss may be set to 320 when the voice packet is wideband voice, and may be set to 160 when the voice packet is narrowband voice.
It is understood that the sampling rate of the narrowband voice packet in the embodiment of the present application is 8KHz, assuming that one voice packet is transmitted every 20ms, i.e., 8000 × 0.02, 160, and the sampling rate of the wideband voice packet is 16KHz, assuming that one voice packet is transmitted every 20ms, i.e., 16000 × 0.02, 320.
It should be noted that the voice packet types in the embodiment of the present application include: silence packets and activation packets. Here, the active packet may be understood as a voice packet containing valid voice data, the silence packet may be understood as a voice packet containing other voice data than the valid voice data, and the time interval of the active packet transmission is relatively short and the time interval of the silence packet transmission is relatively long.
In the last column of tables 1 and 2 can be found: the type of the voice packet is a Silence (SID) packet when the number of bytes of the voice packet in different formats is 7 or 8.
Finally, the number of different types of voice packets determined to be lost according to the difference value of the timestamps is explained in detail.
Specifically, in the embodiment of the present application, determining the number of lost two different types of speech packets according to the sequence number N1 and the timestamp T1 of the last received speech packet and the sequence number N2 and the timestamp T2 of the currently received speech packet may include the following two cases:
it should be understood that, for convenience of description, in the embodiment of the present application, the "silence packet" is referred to as a first voice packet, and the "activation packet" is referred to as a second voice packet, so that X is the number of activation packets, and Y is the number of silence packets.
In the first case:
if the currently received voice packet is a silence packet, i.e., a first type of voice packet, the following calculation may be specifically performed:
if T1 and T2 satisfy the following conditions: T2-T1< Tss m or (T2-T1-Tss m)/Tss < (N2-N1-1), then Y is 0.
If T1, T2 do not satisfy: T2-T1< Tss m or (T2-T1-Tss m)/Tss < (N2-N1-1), then
When the value of Y calculated in this way is positive, an integer is taken down, when Y is negative, 0 is directly taken, and the calculation mode of X is as follows: x is N2-N1-1-Y.
In the second case:
if the currently received voice packet is an active packet, i.e., a second type of voice packet, the following calculation may be specifically performed:
if T1 and T2 satisfy the following conditions: T2-T1< Tss or (T2-T1-Tss)/Tss < (N2-N1-1), then Y is 0.
If T1, T2 do not satisfy: T2-T1< Tss or (T2-T1-Tss)/Tss < (N2-N1-1), then
When the calculated Y is positive, an integer is taken downward, and when Y is negative, 0 is taken, and X is N2-N1-1-Y.
In both cases, X + Y is N2-N1-1.
Before calculating the X and Y values, the magnitude relationship between X + Y and N2-N1-1 can be judged, and if X + Y < N2-N1-1, X is X + 1.
It will be appreciated that if X + Y < N2-N1-1, the silence packets and the activation packets are interchanged.
It should be noted that the sampling interval of the activation packet TS in the embodiment of the present application is TSs × m, and 1< m < 8. The following calculation will be described in detail with m being 8 as an example.
Since the sequence numbers of the received voice packets may not be consecutive at the base station side, the base station may reorder the sequence numbers of the received voice packets to determine the lost voice packets.
Therefore, if T2< T1, i.e., the timestamp flips, then converting T2 yields: t2 ═ T2+0 xfffffffff.
If N2< N1, that is, the sequence number is turned over, N2 is converted to obtain: n2 ═ N2+0 xFFFFF.
The above calculation process is explained in detail by way of example:
assume that the last received voice packet N1 is 0x018f, the payload Length is 32, and T1 is 0x0001a2c 0.
From table 1, it can be determined that the corresponding bandwidth is a narrow band when the payload length is 32, and the N1 voice packet can be determined as an active packet according to the number of bytes of N1.
The RTP packets for the N1 voice packet are as follows:
6060000000003411ff24098807829db2800cbb6be7326084c0240980178000000a0001000000000bbfe0ce34003478398066018f0001a2c09c4f454df3c5ac757006783e107f
the currently received voice packets are N2 ═ 0x0195, Length ═ 32, and T2 ═ 0x0001a 680.
Similarly, N2 is available as a narrow band and as an activation package.
The RTP packets for the N2 voice packet are as follows:
6060000000003411ff24098807829db2800cbb6be7326084c0240980178000000a0001000000000bbfe0ce340034744e806601950001a6809c4f454df3c988a0f00008b37e19
the calculation is carried out by using the formula (T2-T1-160)/160-5.
(N2-N1-1) ═ 5, Y ═ 0, and X ═ 5; thus, 5 active packets, 0 silence packets are lost.
In the embodiment of the application, the number and the type of the lost voice packets in the voice packet transmission process are determined by using the sequence number and the timestamp of the latest received voice packet and the sequence number and the timestamp of the currently received voice packet, so that the number corresponding to different types of voice packets in the lost voice packets is calculated. Compared with the method for determining the packet loss quantity by independently utilizing the sequence numbers of the two received continuous voice packets in the prior art, the method can calculate the quantity of the voice packets of different types by utilizing the characteristic that the voice packets of different types have different contribution values to the network, and can more accurately evaluate the network transmission quality.
Based on the same concept as the above-mentioned voice packet quantity determining method, the embodiment of the present invention further provides a voice packet quantity determining apparatus. Fig. 4 is a block diagram illustrating a structure of a device for determining a number of voice packets according to an embodiment of the present invention, including: receiving unit 101, processing unit 102.
The receiving unit 101 is configured to receive at least two voice packets sent by a user equipment UE.
The at least two voice packets include a voice packet of a first type and/or a voice packet of a second type.
And a processing unit 102, configured to, when it is determined that at least one of the at least two voice packets acquired by the acquisition unit 101 is lost, determine the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets according to the sequence number N1 and the timestamp T1 of the last received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet.
N1, N2, T1, T2 and X, Y are all integers which are not less than 0.
Further, the processing unit 102 is specifically configured to determine the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets according to the sequence number N1 and the timestamp T1 of the last received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet as follows:
when the currently received voice packet is the voice packet of the first type, if T1 and T2 satisfy the following condition: T2-T1<Tss m or (T2-T1-Tss m)/Tss<(N2-N1-1), then Y is 0; if T1, T2 do not satisfy: T2-T1<Tss m or (T2-T1-Tss m)/Tss<(N2-N1-1), then
X=N2-N1-1-Y;
Where Tss represents the timestamp growth.
Further, the processing unit 102 is specifically configured to determine the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets according to the sequence number N1 and the timestamp T1 of the last received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet as follows:
when the currently received voice packet is the voice packet of the second type, if T1 and T2 satisfy the following condition: T2-T1<Tss or (T2-T1-Tss)/Tss<(N2-N1-1), then Y is 0; if T1, T2 do not satisfy: T2-T1<Tss or (T2-T1-Tss)/Tss<(N2-N1-1), then
X=N2-N1-1-Y;
Where Tss represents the timestamp growth.
Further, the processing unit 102 is further configured to:
and determining the bandwidth size range of the received voice packet in the configuration information according to the payload length of the voice packet received last time and/or the payload length of the currently received voice packet, and determining the timestamp increment according to the bandwidth size range.
The configuration information includes a corresponding relationship between a payload length of the voice packet and a bandwidth size range of the voice packet, and a preset corresponding relationship exists between the bandwidth size range and a timestamp increment.
Another apparatus for determining the number of voice packets is provided in an embodiment of the present application, as shown in fig. 5, the apparatus includes:
a memory 202 for storing program instructions.
A transceiver 201 for receiving and transmitting instructions for performing the determining of the number of voice packets under the control of the processor 200.
And the processor 200 is configured to call the program instructions stored in the memory, and execute any method flow described in the embodiments of the present application according to the obtained program. The processor 200 is used to implement the method performed by the processing unit (102) shown in fig. 4.
Wherein in fig. 5, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented in particular by processor 200, and various circuits of memory, represented by memory 202, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface.
The transceiver 201 may be a number of elements, including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 200 is responsible for managing the bus architecture and general processing, and the memory 302 may store data used by the processor 300 in performing operations.
The processor 200 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or a Complex Programmable Logic Device (CPLD).
Embodiments of the present application also provide a computer storage medium for storing computer program instructions for any apparatus described in the embodiments of the present application, which includes a program for executing any method provided in the embodiments of the present application.
The computer storage media may be any available media or data storage device that can be accessed by a computer, including, but not limited to, magnetic memory (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical memory (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs)), etc.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A method for determining the number of voice packets, comprising:
a base station receives at least two voice packets sent by User Equipment (UE);
the at least two voice packets comprise a first type voice packet and/or a second type voice packet;
when the base station determines that at least one voice packet is lost in the at least two voice packets, determining the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets according to the sequence number N1 and the time stamp T1 of the latest received voice packet and the sequence number N2 and the time stamp T2 of the currently received voice packet, wherein all N1, N2 and X, Y are integers greater than or equal to 0.
2. The method according to claim 1, wherein when the currently received voice packet is a first type voice packet, determining the number X of the first type voice packets and the number Y of the second type voice packets in the lost voice packets according to the sequence number N1 and the timestamp T1 of the most recently received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet comprises:
if T1 and T2 satisfy the following conditions: T2-T1< Tss m or (T2-T1-Tss m)/Tss < (N2-N1-1), then Y ═ 0; if T1, T2 do not satisfy: T2-T1< Tss m or (T2-T1-Tss m)/Tss < (N2-N1-1), then
X=N2-N1-1-Y;
Where Tss represents the timestamp growth.
3. The method according to claim 1, wherein when the currently received voice packet is a second type voice packet, determining the number X of the first type voice packets and the number Y of the second type voice packets in the lost voice packets according to the sequence number N1 and the timestamp T1 of the most recently received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet comprises:
if T1 and T2 satisfy the following conditions: T2-T1< Tss or (T2-T1-Tss)/Tss < (N2-N1-1), then Y ═ 0; if T1, T2 do not satisfy: T2-T1< Tss or (T2-T1-Tss)/Tss < (N2-N1-1), then
X=N2-N1-1-Y;
Where Tss represents the timestamp growth.
4. The method according to claim 2 or 3, wherein prior to determining the number X of first speech packets and the number Y of second speech packets in the lost speech packets, the method further comprises:
determining the bandwidth size range of the received voice packet in the configuration information according to the payload length of the voice packet received last time and/or the payload length of the currently received voice packet;
the configuration information comprises the corresponding relation between the payload length of the voice packet and the bandwidth size range of the voice packet;
and determining the time stamp increment according to the bandwidth size range, wherein the bandwidth size range and the time stamp increment have a preset corresponding relation.
5. An apparatus for determining the number of voice packets, comprising:
a receiving unit, configured to receive at least two voice packets sent by a user equipment UE;
the at least two voice packets comprise a first type voice packet and/or a second type voice packet;
and a processing unit, configured to, when it is determined that at least one of the at least two voice packets acquired by the acquisition unit is lost, determine, according to the sequence number N1 and the timestamp T1 of the last received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet, the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets, where N1, N2, T1, T2, and X, Y are all integers greater than or equal to 0.
6. The apparatus according to claim 5, wherein the processing unit is specifically configured to determine the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets according to the sequence number N1 and the timestamp T1 of the last received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet as follows:
when the currently received voice packet is a voice packet of the first type, if T1 and T2 satisfy the following condition: T2-T1<Tss m or (T2-T1-Tss m)/Tss<(N2-N1-1), then Y is 0; if T1 or T2 does not satisfy:T2-T1<Tss m or (T2-T1-Tss m)/Tss<(N2-N1-1), then
X=N2-N1-1-Y;
Where Tss represents the timestamp growth.
7. The apparatus according to claim 5, wherein the processing unit is specifically configured to determine the number X of the first type of voice packets and the number Y of the second type of voice packets in the lost voice packets according to the sequence number N1 and the timestamp T1 of the last received voice packet and the sequence number N2 and the timestamp T2 of the currently received voice packet as follows:
when the currently received voice packet is a second type of voice packet, if T1 and T2 satisfy the following condition: T2-T1< Tss or (T2-T1-Tss)/Tss < (N2-N1-1), then Y ═ 0; if T1, T2 do not satisfy: T2-T1< Tss or (T2-T1-Tss)/Tss < (N2-N1-1), then
X=N2-N1-1-Y;
Where Tss represents the timestamp growth.
8. The apparatus of claim 6 or 7, wherein the processing unit is further to:
determining the bandwidth size range of the received voice packet in the configuration information according to the payload length of the voice packet received last time and/or the payload length of the currently received voice packet;
the configuration information comprises the corresponding relation between the payload length of the voice packet and the bandwidth size range of the voice packet;
and determining the time stamp increment according to the bandwidth size range, wherein the bandwidth size range and the time stamp increment have a preset corresponding relation.
9. An apparatus for determining the number of voice packets, comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the method of any one of claims 1 to 4 according to the obtained program.
10. A computer readable storage medium having stored thereon computer instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811088609.3A CN110913421B (en) | 2018-09-18 | 2018-09-18 | Method and device for determining voice packet number |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811088609.3A CN110913421B (en) | 2018-09-18 | 2018-09-18 | Method and device for determining voice packet number |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110913421A true CN110913421A (en) | 2020-03-24 |
CN110913421B CN110913421B (en) | 2021-10-29 |
Family
ID=69812823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811088609.3A Active CN110913421B (en) | 2018-09-18 | 2018-09-18 | Method and device for determining voice packet number |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110913421B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114205429A (en) * | 2021-12-14 | 2022-03-18 | 深圳壹账通智能科技有限公司 | Voice packet processing method, system, equipment and storage medium based on UDP protocol |
CN114285830A (en) * | 2021-12-21 | 2022-04-05 | 北京百度网讯科技有限公司 | Voice signal processing method and device, electronic equipment and readable storage medium |
Citations (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080151776A1 (en) * | 2006-12-25 | 2008-06-26 | Yoshinobu Kure | Data Communication System, Data Transmitting Apparatus, Data Transmitting Method, and Method for Determining Packet Size and Redundancy |
CN101945427A (en) * | 2009-07-03 | 2011-01-12 | 深圳市融创天下科技发展有限公司 | Efficient streaming media transmission method |
CN101964732A (en) * | 2010-09-02 | 2011-02-02 | 海信集团有限公司 | Method and device for calculating packet loss rate as well as method and device for controlling network transmission |
CN102611894A (en) * | 2012-03-02 | 2012-07-25 | 华为技术有限公司 | Method, device and system for detecting video transmission packet loss |
CN102740064A (en) * | 2012-06-15 | 2012-10-17 | 福建星网视易信息系统有限公司 | Packing method for streaming media transmission in intercom system |
US20130169744A1 (en) * | 2007-01-06 | 2013-07-04 | Samsung Electronics Co., Ltd. | Method and apparatus for controlling intra-refreshing in a video telephony communication system |
CN103312441A (en) * | 2012-03-15 | 2013-09-18 | 华为技术有限公司 | Data packet transmission method and system, transmitting end equipment and receiving end equipment |
US20140185474A1 (en) * | 2011-04-11 | 2014-07-03 | Nokia Siemens Networks Oy | Quality of experience |
CN104243097A (en) * | 2014-09-19 | 2014-12-24 | 东软集团股份有限公司 | Data transmission method and system based on satellite network |
CN105684354A (en) * | 2014-09-30 | 2016-06-15 | 华为技术有限公司 | Apparatus, system and method for acquiring quality of service parameter of voice over internet protocol service |
WO2016145764A1 (en) * | 2015-03-18 | 2016-09-22 | 中兴通讯股份有限公司 | Method and apparatus for packet loss control |
WO2016147667A1 (en) * | 2015-03-19 | 2016-09-22 | Ricoh Company, Limited | Communication control device, communication system, communication control method, and computer program product |
WO2017022211A1 (en) * | 2015-08-03 | 2017-02-09 | パナソニックIpマネジメント株式会社 | Transmission method, reception method, transmission apparatus, and reception apparatus |
WO2017047399A1 (en) * | 2015-09-15 | 2017-03-23 | ソニー株式会社 | Reception device and method, and transmission device and method |
US20170094295A1 (en) * | 2015-09-28 | 2017-03-30 | Cybrook Inc. | Banwidth Adjustment For Real-time Video Transmission |
CN104322017B (en) * | 2012-12-27 | 2017-04-26 | 华为技术有限公司 | Method, device, and system for identifying network packet loss type |
US20170214774A1 (en) * | 2012-12-26 | 2017-07-27 | Realtek Singapore Pte Ltd | Communication traffic processing architectures and methods |
CN107277423A (en) * | 2017-07-28 | 2017-10-20 | 北京小米移动软件有限公司 | The method and device that packet loss is retransmitted |
US20170339217A1 (en) * | 2006-06-30 | 2017-11-23 | Centurylink Intellectual Property Llc | System and Method for Selecting a Content Delivery Network |
CN107710712A (en) * | 2015-06-19 | 2018-02-16 | 华为技术有限公司 | A kind of cluster communication method, device and equipment |
CN107743228A (en) * | 2017-11-24 | 2018-02-27 | 深圳市创维软件有限公司 | Video quality detection method, monitoring device and storage medium |
CN108091350A (en) * | 2016-11-22 | 2018-05-29 | 中国移动通信集团公司 | A kind of speech quality assessment method and device |
CN108389592A (en) * | 2018-02-27 | 2018-08-10 | 上海讯飞瑞元信息技术有限公司 | A kind of voice quality assessment method and device |
CN108401263A (en) * | 2017-02-07 | 2018-08-14 | 大唐移动通信设备有限公司 | A kind of appraisal procedure and device of voice quality |
-
2018
- 2018-09-18 CN CN201811088609.3A patent/CN110913421B/en active Active
Patent Citations (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170339217A1 (en) * | 2006-06-30 | 2017-11-23 | Centurylink Intellectual Property Llc | System and Method for Selecting a Content Delivery Network |
US20080151776A1 (en) * | 2006-12-25 | 2008-06-26 | Yoshinobu Kure | Data Communication System, Data Transmitting Apparatus, Data Transmitting Method, and Method for Determining Packet Size and Redundancy |
US20130169744A1 (en) * | 2007-01-06 | 2013-07-04 | Samsung Electronics Co., Ltd. | Method and apparatus for controlling intra-refreshing in a video telephony communication system |
CN101945427A (en) * | 2009-07-03 | 2011-01-12 | 深圳市融创天下科技发展有限公司 | Efficient streaming media transmission method |
CN101964732A (en) * | 2010-09-02 | 2011-02-02 | 海信集团有限公司 | Method and device for calculating packet loss rate as well as method and device for controlling network transmission |
US20140185474A1 (en) * | 2011-04-11 | 2014-07-03 | Nokia Siemens Networks Oy | Quality of experience |
CN102611894A (en) * | 2012-03-02 | 2012-07-25 | 华为技术有限公司 | Method, device and system for detecting video transmission packet loss |
CN103312441A (en) * | 2012-03-15 | 2013-09-18 | 华为技术有限公司 | Data packet transmission method and system, transmitting end equipment and receiving end equipment |
CN102740064A (en) * | 2012-06-15 | 2012-10-17 | 福建星网视易信息系统有限公司 | Packing method for streaming media transmission in intercom system |
US20170214774A1 (en) * | 2012-12-26 | 2017-07-27 | Realtek Singapore Pte Ltd | Communication traffic processing architectures and methods |
CN104322017B (en) * | 2012-12-27 | 2017-04-26 | 华为技术有限公司 | Method, device, and system for identifying network packet loss type |
CN104243097A (en) * | 2014-09-19 | 2014-12-24 | 东软集团股份有限公司 | Data transmission method and system based on satellite network |
CN105684354A (en) * | 2014-09-30 | 2016-06-15 | 华为技术有限公司 | Apparatus, system and method for acquiring quality of service parameter of voice over internet protocol service |
WO2016145764A1 (en) * | 2015-03-18 | 2016-09-22 | 中兴通讯股份有限公司 | Method and apparatus for packet loss control |
WO2016147667A1 (en) * | 2015-03-19 | 2016-09-22 | Ricoh Company, Limited | Communication control device, communication system, communication control method, and computer program product |
CN107710712A (en) * | 2015-06-19 | 2018-02-16 | 华为技术有限公司 | A kind of cluster communication method, device and equipment |
WO2017022211A1 (en) * | 2015-08-03 | 2017-02-09 | パナソニックIpマネジメント株式会社 | Transmission method, reception method, transmission apparatus, and reception apparatus |
WO2017047399A1 (en) * | 2015-09-15 | 2017-03-23 | ソニー株式会社 | Reception device and method, and transmission device and method |
US20170094295A1 (en) * | 2015-09-28 | 2017-03-30 | Cybrook Inc. | Banwidth Adjustment For Real-time Video Transmission |
CN108091350A (en) * | 2016-11-22 | 2018-05-29 | 中国移动通信集团公司 | A kind of speech quality assessment method and device |
CN108401263A (en) * | 2017-02-07 | 2018-08-14 | 大唐移动通信设备有限公司 | A kind of appraisal procedure and device of voice quality |
CN107277423A (en) * | 2017-07-28 | 2017-10-20 | 北京小米移动软件有限公司 | The method and device that packet loss is retransmitted |
CN107743228A (en) * | 2017-11-24 | 2018-02-27 | 深圳市创维软件有限公司 | Video quality detection method, monitoring device and storage medium |
CN108389592A (en) * | 2018-02-27 | 2018-08-10 | 上海讯飞瑞元信息技术有限公司 | A kind of voice quality assessment method and device |
Non-Patent Citations (2)
Title |
---|
SHIROU MATSUOKA等: "Relationship between packet loss probability and burst parameters for two types of traffic", 《2012 THIRD INTERNATIONAL CONFERENCE ON THE NETWORK OF THE FUTURE (NOF)》 * |
官华,庄越: "Internet实时语音实时传输丢包恢复设计方法研究", 《机电工程与信息技术》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114205429A (en) * | 2021-12-14 | 2022-03-18 | 深圳壹账通智能科技有限公司 | Voice packet processing method, system, equipment and storage medium based on UDP protocol |
CN114285830A (en) * | 2021-12-21 | 2022-04-05 | 北京百度网讯科技有限公司 | Voice signal processing method and device, electronic equipment and readable storage medium |
CN114285830B (en) * | 2021-12-21 | 2024-05-24 | 北京百度网讯科技有限公司 | Voice signal processing method, device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110913421B (en) | 2021-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3757933B2 (en) | Communication device | |
US10454811B2 (en) | Apparatus and method for de-jitter buffer delay adjustment | |
CN1134947C (en) | Adaptive jitter buffering | |
US9264333B1 (en) | Checksum trailer in timing protocols | |
CN107111280B (en) | Communication device, time adjustment method and network system | |
US10805196B2 (en) | Packet loss and bandwidth coordination | |
US20060233116A1 (en) | Information processing apparatus and method, program, and recording medium | |
EP2947821A1 (en) | Method for detecting network transmission status and related device | |
US20180026746A1 (en) | Method and apparatus for removing jitter in audio data transmission | |
JP2004129250A (en) | System and method of calculating reciprocating delay time of real-time protocol packet streams | |
CN110913421B (en) | Method and device for determining voice packet number | |
EP3720071A2 (en) | Benchmarking of delay estimates in a 5g network for quality of service flow setup and monitoring | |
CN112583477B (en) | Delay measurement method, delay measurement system and storage medium | |
EP3883151B1 (en) | Time synchronization method and device | |
WO2020192397A1 (en) | Adjustment method for transmitting apparatus and communication device | |
CN108934034A (en) | A kind of method sending and receiving data packet, equipment and system | |
WO2021175297A1 (en) | Distributed data transmission method, apparatus and system | |
JP2019514282A (en) | Method and apparatus for reducing transmission loss rate | |
CN105656800A (en) | Method and device for transmitting message | |
CN116055023A (en) | Data transmission method and device | |
US20210343304A1 (en) | Method for Improving Voice Call Quality, Terminal, and System | |
JPS59190757A (en) | Packet communication system | |
CN111447148B (en) | RTP data packet ordering method, system and storage medium | |
CN112564995B (en) | Method and base station for reducing voice packet loss statistics | |
CN110636543B (en) | Voice data processing method and device |
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 |