CN111818231B - Packet loss compensation method, device, data message transmission system and storage medium - Google Patents

Packet loss compensation method, device, data message transmission system and storage medium Download PDF

Info

Publication number
CN111818231B
CN111818231B CN202010643233.9A CN202010643233A CN111818231B CN 111818231 B CN111818231 B CN 111818231B CN 202010643233 A CN202010643233 A CN 202010643233A CN 111818231 B CN111818231 B CN 111818231B
Authority
CN
China
Prior art keywords
compensation
rate
packet loss
compensation rate
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.)
Active
Application number
CN202010643233.9A
Other languages
Chinese (zh)
Other versions
CN111818231A (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.)
G Net Cloud Service Co Ltd
Original Assignee
G Net Cloud Service 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 G Net Cloud Service Co Ltd filed Critical G Net Cloud Service Co Ltd
Priority to CN202010643233.9A priority Critical patent/CN111818231B/en
Publication of CN111818231A publication Critical patent/CN111818231A/en
Application granted granted Critical
Publication of CN111818231B publication Critical patent/CN111818231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer
    • H04M7/0072Speech codec negotiation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer

Abstract

The application provides a packet loss compensation method, a device, a data message transmission system and a storage medium, wherein the packet loss compensation method is applied to a sending end of a first data message transmission device included in the data message transmission system, the data message transmission system also comprises a second data message transmission device, a receiving end of the second data message transmission device is in communication connection with the sending end, and the method comprises the following steps: receiving network condition feedback information sent by a receiving end based on a previous data message; calculating a compensation rate according to the network condition feedback information; and generating and sending the current data message according to the compensation rate. By detecting the network condition information, generating network condition feedback information according to the network condition information, calculating the compensation rate according to the network condition feedback information, performing packet loss compensation on the data message and sending the data message with a certain redundancy, the effect of packet loss resistance is achieved, and meanwhile, the method is still suitable for the situation of high packet loss rate and low delay.

Description

Packet loss compensation method, device, data message transmission system and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a packet loss compensation method, an apparatus, a data packet transmission system, and a storage medium.
Background
In Voice Over IP (VOIP) communication, Voice data is generally transmitted in a network by using a User Datagram Protocol (UDP). Since the UDP protocol is an unreliable connection, data packets may be lost along with the degradation of network communication quality during data transmission, which may result in the degradation or unavailability of voice communication quality.
In order to solve the problem of packet loss of data packets, the solution method can be divided into two categories: one is to solve the packet loss by recovering the data message, that is, adding information in the data message content to recover the lost data message by a certain mechanism; the other is to solve the packet loss by compensating the data packet, i.e. compensating the lost data packet in some way on the transmission. However, the above method has the following problems: the complexity of the audio data encoder is increased, low latency cannot be guaranteed or it cannot be applied at high packet loss rates.
Disclosure of Invention
An object of the embodiments of the present application is to provide a packet loss compensation method, an apparatus, a data packet transmission system, and a storage medium, so as to solve the problem of data packet loss caused by the degradation of network communication quality during data transmission on the basis of ensuring low latency and high packet loss rate without increasing the complexity of an audio data encoder.
In a first aspect, an embodiment of the present invention provides a packet loss compensation method, which is applied to a sending end of a first data packet transmission device included in a data packet transmission system, where the data packet transmission system further includes a second data packet transmission device, and a receiving end of the second data packet transmission device is in communication connection with the sending end, where the method includes:
receiving network condition feedback information sent by the receiving end based on the previous data message;
calculating a compensation rate according to the network condition feedback information;
and generating and sending the current data message according to the compensation rate.
By detecting the network condition information, generating the network condition feedback information according to the network condition information, calculating the compensation rate according to the network condition feedback information, performing packet loss compensation on the data message and sending the data message with a certain redundancy, the effect of packet loss resistance is achieved on the basis of not increasing the complexity of an audio data encoder, and meanwhile, the method is still suitable for the situation of high packet loss rate and low delay.
In an optional embodiment, the calculating a compensation rate according to the network condition feedback information includes:
initializing a compensation rate value;
and adjusting the initialized compensation rate value according to the network condition feedback information to generate the compensation rate.
By initializing the compensation rate value, the influence of the compensation rate value at the previous moment is removed, the error is reduced, and the accuracy of the generated compensation rate is improved.
In an optional embodiment, the network condition feedback information includes: the adjusting the initialization compensation rate value according to the network condition feedback information comprises:
calculating packet loss rate compensation rate, delay compensation rate and jitter compensation rate;
acquiring a packet loss rate compensation rate weight, a delay compensation rate weight and a jitter compensation rate weight;
and calculating the compensation rate according to the packet loss rate compensation rate, the delay compensation rate, the jitter compensation rate, the packet loss rate compensation rate weight, the delay compensation rate weight and the jitter compensation rate weight.
Due to the difference of the packet loss rate, the delay and the influence of jitter on the audio data message, the compensation rate is obtained by adopting a weighted summation mode, and the accuracy of the calculated compensation rate is improved.
In an optional embodiment, the generating and sending the current data packet according to the compensation rate includes:
calculating the compensation data amount according to the compensation rate;
and acquiring the compensation data message from a sending queue according to the compensation data amount and sending the compensation data message and the data message to be sent to the receiving end.
The required compensation data amount is calculated according to the compensation rate, and the compensation data and the data to be transmitted are transmitted together to form redundant transmission of the data to be transmitted, so that the compensation data message can be rapidly transmitted under the conditions of packet loss, network jitter and the like of a network, better packet loss resistance is achieved, and the audio quality is guaranteed.
In a second aspect, an embodiment of the present invention provides a packet loss compensation method, which is applied to a receiving end of a second data packet transmission device included in a data packet transmission system, where the data packet transmission system further includes a first data packet transmission device, and a sending end of the first data packet transmission device is in communication connection with the receiving end, where the method includes:
receiving a data message sent by the sending end;
and generating network condition feedback information according to the data message, wherein the network condition feedback information is used for indicating the sending end to carry out packet loss compensation.
In an optional embodiment, the data packet includes a sequence number and a timestamp, and the generating network status feedback information according to the data packet includes:
and generating network condition feedback information according to the sequence number and the timestamp.
In a third aspect, an embodiment of the present invention provides a packet loss compensation apparatus, which is applied to a sending end of a first data packet transmission device included in a data packet transmission system, where the data packet transmission system further includes a second data packet transmission device, a receiving end of the second data packet transmission device is in communication connection with the sending end, and the apparatus includes:
the first receiving module is used for receiving network condition feedback information sent by the receiving end based on the previous data message;
the calculation module is used for calculating a compensation rate according to the network condition feedback information;
and the sending module is used for generating and sending the current data message according to the compensation rate.
In a fourth aspect, an embodiment of the present invention provides a packet loss compensation apparatus, which is applied to a receiving end of a second data packet transmission device included in a data packet transmission system, where the data packet transmission system further includes a first data packet transmission device, a sending end of the first data packet transmission device is in communication connection with the receiving end, and the apparatus includes:
the second receiving module is used for receiving the message data sent by the sending end;
and the generating module is used for generating network condition feedback information according to the message data, wherein the network condition feedback information is used for indicating the sending end to perform packet loss compensation.
In a fifth aspect, an embodiment of the present invention provides a data packet transmission system, where the data packet transmission system includes:
a first data packet transmission device, including a sending end, configured to perform the packet loss compensation method according to the first aspect or any possible implementation manner of the first aspect;
a second data message transmission device, comprising a receiving end, configured to perform the packet loss compensation method according to the second aspect or any possible implementation manner of the second aspect.
In a sixth aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores computer program instructions, and the computer program instructions, when read and executed by a computer, perform the steps of the packet loss compensation method according to any one of the foregoing embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a block diagram of a message transmission system according to an embodiment of the present application;
fig. 2 is a flowchart of a packet loss compensation method according to an embodiment of the present application;
fig. 3 is a block diagram of a packet loss compensation apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of another packet loss compensation apparatus according to an embodiment of the present invention.
Icon: 10-a message transmission system; 101-a first data message transmission device; 102-a second data message transmission device; 11, 21-the transmitting end; 111, 211-analyzer; 112, 212-compensator; 113, 213-transmitter; 12, 22-receiving end; 121, 221-receiver; 122, 222-detector; 301-a first receiving module; 300, 400-packet loss compensation means; 302-a calculation module; 303-a sending module; 401-a second receiving module; 402-a generation module.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Fig. 1 is a block diagram of a message transmission system according to an embodiment of the present application, where the message transmission system 10 includes: a first data message transmission device 101 and a second data message transmission device 102.
The first data message transmission device 101 is connected to the second data message transmission device 102 in a communication manner and can interact with each other. The first data packet transmission device 101 and the second data packet transmission device 102 may have the same structure or may have different structures. In this embodiment, the first data packet transmission device 101 and the second data packet transmission device have the same structure.
In this embodiment, the first data packet transmission device 101 includes a sending end 11 and a receiving end 12. Specifically, the transmitting end 11 may include: analyzer 111, compensator 112 and transmitter 113. The receiving end 12 may include: a receiver 121 and a detector 122.
Accordingly, the second data message transmission device 102 comprises a sender 21 and a receiver 22. The transmitting end 21 may include an analyzer 211, a compensator 212, and a transmitter 213. The receiver 22 may include a receiver 221 and a detector 222.
For convenience of subsequent description, the first data packet transmission device 101 is used as a data packet sender, and the second data packet transmission device 102 is used as a data packet receiver. The transmitting end 11 of the first data message transmission device 101 is connected in communication with the receiving end 22 of the second data message transmission device 102.
When performing data message transmission, the receiving end 22 receives the data message transmitted by the transmitter 113 of the transmitting end 11 through the receiver 221. The detector 222 of the receiving end 22 then detects network condition information of the data packet transmission according to the received data packet. The network condition information may specifically include packet loss rate, delay, jitter, and the like. The network condition information is then sent to the analyzer 111 of the transmitting end 11, and the analyzer 111 analyzes the network condition information to obtain a compensation rate, and sends the compensation rate to the compensator 112. The compensator 112 generates a compensation data packet according to the compensation rate, and transmits the compensation data packet to the transmitter 113. The transmitter 113 transmits the compensation data packet to the receiving end 22 together with the data packet to be transmitted. After receiving the data packet, the receiving end 22 repeats the above steps. By detecting the network condition information, packet loss compensation is performed on the data message, and the data message with a certain redundancy is sent, so that the effect of packet loss resistance can be achieved.
It should be noted that the first data packet transmission device 101 may also be used as a data receiving side, and the second data packet transmission device 102 may also be used as a data sending side. At this time, the receiving end 12 of the first data message transmission device 101 is connected to the sending end 21 of the second data message transmission device 102, and the specific interaction manner corresponds to the interaction manner between the sending end 11 of the first data message transmission device 101 and the receiving end 22 of the second data message transmission device 102, so that the same or similar parts can be referred to each other for brevity of the description, and further description is omitted here.
For the convenience of understanding the present solution, the following will describe in detail how to perform packet loss compensation by taking the first data packet transmission device 101 as a data sender and the second data packet transmission device 102 as a data receiver.
Referring to fig. 2, fig. 2 is a flowchart of a packet loss compensation method according to an embodiment of the present application, where the packet loss compensation method includes the following steps:
step S201: the receiving end receives the data message sent by the sending end.
Step S202: and the receiving end generates network condition feedback information according to the data message, wherein the network condition feedback information is used for indicating the transmitting end to carry out packet loss compensation.
Step S203: and the sending end receives the network condition feedback information sent by the receiving end based on the previous data message.
Step S204: and the sending end calculates the compensation rate according to the network condition feedback information.
Step S205: and the sending end generates and sends the current data message according to the compensation rate.
The above-described flow will be described in detail with reference to examples.
Step S201: the receiving end receives the data message sent by the sending end.
In this embodiment, the receiving end 22 of the second data packet transmission device 102 is in communication connection with the transmitting end 11 of the first data packet transmission device 101. The connection mode can be wired connection or wireless connection. The wired connection may be through an optical fiber. The wireless connection may be through 4G, 5G, WiFi, etc.
The transmitting end 11 and the receiving end 22 perform data message transmission through the UDP protocol. The receiver 221 of the receiving end 22 is driven by an internal receiving thread, and receives the data packet sent by the sender 113 of the sending end 11 from the UDP socket.
It should be noted that the form of the data packet may be an audio data packet or a video data packet, and the like, which is not limited in this application. For convenience of description, the following description will use data messages as audio data messages.
Step S202: and the receiving end generates network condition feedback information according to the data message, wherein the network condition feedback information is used for indicating the transmitting end to carry out packet loss compensation.
In this embodiment, after the receiving end 22 receives the audio data packet sent by the sending end 11, the detector 222 of the receiving end 22 analyzes the received audio data packet to generate the network status feedback information.
The network condition feedback information may include at least one of a packet loss rate, a delay time, and a jitter. The transmission condition of the network can be characterized by at least one of packet loss rate, delay and jitter. Accordingly, the detector 222 analyzes the received audio data packet to calculate at least one of packet loss rate, delay and jitter information under the current network transmission condition. In this embodiment, the network condition feedback information includes packet loss rate, delay, and jitter. Accordingly, the transmission condition of the network is characterized by the packet loss rate, the delay and the jitter. The detector 222 analyzes the received audio data packet to calculate packet loss rate, delay and jitter information under the current network transmission condition.
For example, each time 2 seconds is taken as a statistical time interval, the detector 222 analyzes the received audio data packet every 2 seconds, calculates packet loss rate, delay and jitter information of the audio data packet, and these information can feed back the current network transmission status, and then generates network status feedback information and sends the network status feedback information to the sending end 11. And the sending end 11 performs packet loss compensation according to the network condition feedback information. It should be noted that the above-mentioned statistical time interval of 2 seconds is only an exemplary manner of the present embodiment, and is not limited to the present embodiment. The statistical time interval may be 3 seconds, 5 seconds, etc., which is not limited in this application.
Specifically, step S202 may include the following steps:
and generating network condition feedback information according to the sequence number and the timestamp.
In this embodiment of the present application, the detector 222 performs calculation according to the sequence number and the timestamp in the data packet, and generates the network status feedback information.
Specifically, assuming that the detector 222 analyzes a group of received audio data packets with 2 seconds as a statistical time interval, first calculating a packet loss rate of the network according to sequence number information carried in the audio data packets; and then calculating the delay and jitter of the network according to the timestamp information carried in the audio data message. And then the packet loss rate, the delay and the jitter are used as network condition feedback information and sent to the sending end 11. And after the steps are finished, the next group of audio data messages of the next 2 seconds are continuously processed in the same steps, and the process is circulated.
Step S203: and the sending end receives the network condition feedback information sent by the receiving end based on the previous data message.
In this embodiment, the analyzer 111 of the transmitting end 11 receives the network status feedback information sent by the detector 222. It should be noted that the network status feedback information here is the network status feedback information obtained by the receiving end 22 based on the audio data packet that was sent to the receiving end 22 by the sending end 11 last time.
Step S204: and the sending end calculates the compensation rate according to the network condition feedback information.
After receiving the network condition feedback information, the analyzer 111 analyzes and calculates a compensation rate for the current network transmission quality according to the network condition feedback information. When the network transmission quality is better, the generated compensation rate value is lower; on the contrary, when the network transmission quality is poor, the generated compensation rate value is correspondingly increased.
Specifically, step S204 may include the following steps:
firstly, initializing a compensation rate value;
and secondly, adjusting the initialized compensation rate value according to the network condition feedback information to generate the compensation rate.
In the embodiment of the present application, after receiving the network condition feedback information, the analyzer 111 first initializes a compensation rate value. In the embodiment of the present application, it is assumed that the detector 222 performs network condition detection at a statistical time interval of 2 seconds, the compensation rate is determined according to the network condition feedback information, and the network condition feedback information is generated by the detector 222 according to the network transmission quality every 2 seconds, so that the compensation rate is a value that changes continuously according to the network transmission quality. When the compensation rate is calculated each time, the compensation rate value needs to be initialized (e.g., set to zero) first, so as to avoid that the calculated compensation rate value at the current time is affected by the compensation rate value at the previous time, and an error occurs.
By initializing the compensation rate value, the influence of the compensation rate value at the previous moment is removed, the error is reduced, and the accuracy of the generated compensation rate is improved.
And after the compensation rate value is initialized, adjusting the initialized compensation rate value according to the network condition feedback information to generate the compensation rate.
Optionally, the adjusting the initialized compensation rate value according to the network condition feedback information, and the generating the compensation rate may include the following steps:
the first step, calculating a packet loss rate compensation rate, a delay compensation rate and a jitter compensation rate;
secondly, acquiring a packet loss rate compensation rate weight, a delay compensation rate weight and a jitter compensation rate weight;
and thirdly, calculating the compensation rate according to the packet loss rate compensation rate, the delay compensation rate, the jitter compensation rate, the packet loss rate compensation rate weight, the delay compensation rate weight and the jitter compensation rate weight.
In this embodiment, the analyzer 111 calculates a packet loss rate compensation rate, a delay compensation rate, and a jitter compensation rate according to the packet loss rate, the delay, and the jitter.
Firstly, the current packet loss rate is evaluated, and whether the packet loss rate is greater than a threshold value for triggering change is judged. If the packet loss rate is greater than the threshold, calculating the packet loss rate compensation rate by the following formula:
C1=At*L
wherein, C1For the packet loss rate compensation rate, At is a constant value under the current threshold, and L is the packet loss rate.
And then evaluating the current delay to judge whether the delay is greater than a threshold value for triggering change. If the delay is greater than the threshold, calculating a delay compensation rate by the following formula:
C2=D/Bt
wherein, C2For the delay compensation rate, Bt is a constant value under the current threshold, and D is a delay value.
And finally, evaluating the current jitter, and judging whether the jitter is larger than a threshold value for triggering change. If the jitter is greater than the threshold, the delay compensation rate is calculated by the following equation:
C3=J/Wt
wherein, C3For the jitter compensation rate, Wt is a constant value under the current threshold, and J is a delay value.
At this time, the compensation rate may be calculated by the following formula:
C=C1+C2+C3
wherein C is the compensation rate, C1Compensating for packet loss rate, C2For delay compensation rate, C3Is the jitter compensation rate.
It can be understood that the calculation of the packet loss rate compensation rate, the delay compensation rate and the jitter compensation rate does not have a strict sequence, and may be performed simultaneously, or the delay compensation rate or the jitter compensation rate may be calculated first, which is not limited in the present application.
The compensation rate C calculated from the network condition feedback information will directly affect the compensation result of the audio transmission. Whether the calculation of the compensation rate is accurate or not affects the data transmission and compensation effects, and if the calculated compensation rate is larger than the actually required compensation rate, the pressure is brought to network transmission due to excessive audio compensation data; if the calculated compensation rate is smaller than the actually required compensation rate, the audio data message loss caused by the network condition can not be effectively compensated. Considering that the packet loss rate, the delay and the influence of jitter on the audio data message are different, the compensation rate C can be obtained by adopting a weighted summation mode, so that the compensation rate C is more accurate.
Specifically, the calculation formula for obtaining the compensation rate C by using the weighted summation method may be:
C=P1*C1+P2*C2+P3*C3
wherein, P1Compensating the rate weight, P, for packet loss rate2Is the time delay compensation rate weight, P3Is the jitter compensation rate weight.
It should be noted that the packet loss rate compensation rate weight, the time compensation rate weight, and the jitter compensation rate weight may be preset fixed values, or may be adjusted according to the network transmission condition, which is not limited in this application.
Because the influence of the packet loss rate, the delay and the jitter on the audio data message is different, the compensation rate is obtained by adopting a weighted summation mode, and the accuracy of calculating the compensation rate is improved.
Step S205: and the sending end generates and sends the current data message according to the compensation rate.
In the embodiment of the present application, the compensator 112 receives the compensation rate information sent by the analyzer 111, and then calculates the required compensation data amount according to the compensation rate, and the calculation formula is as follows:
Y=C*V
where C is the compensation rate calculated by the analyzer 111, V is the data amount currently required to be transmitted, and Y is the compensation data amount.
Optionally, generating and sending the current data packet according to the compensation rate may include the following steps:
firstly, calculating compensation data quantity according to a compensation rate;
and secondly, acquiring a compensation data message from the transmission queue according to the compensation data amount and transmitting the compensation data message and the data message to be transmitted to the receiving end.
For example, assume that the probe 222 generates network condition feedback information at a statistical time interval of 2 seconds. The detector 222 generates network status feedback information according to the audio data packet sent by the sender 11 in the first 2 seconds, and the analyzer 111 calculates the compensation rate C to be 40% according to the network status feedback information. If the data volume V of the audio data packet to be transmitted in the next 2 seconds is 100 packets, the compensation data volume Y is 40, i.e., 40 packets. The compensator 112 takes out the compensation data packet from the transmission data queue and transmits the compensation data packet to the transmitter 113. The transmitter 113 sends the compensation data packet and the audio data packet to be sent (i.e. the data packet that needs to be sent in the next 2 seconds) to the receiving end 22 as the current audio data packet, and the receiver 221 of the receiving end 22 receives the audio data packet and the compensation data packet at the same time.
The required compensation data amount is calculated according to the compensation rate, and the compensation data and the data to be transmitted are transmitted together to form redundant transmission of the data to be transmitted, so that the compensation data message can be rapidly transmitted under the conditions of packet loss, network jitter and the like of a network, better packet loss resistance is achieved, and the audio quality is guaranteed.
Based on the same inventive concept, the embodiment of the application provides a packet loss compensation device. Referring to fig. 3, fig. 3 is a block diagram of a packet loss compensation apparatus according to an embodiment of the present invention, where the packet loss compensation apparatus 300 is applied to a transmitting end of a first data packet transmission device included in a data packet transmission system, where the data packet transmission system further includes a second data packet transmission device, and a receiving end of the second data packet transmission device is in communication connection with the transmitting end, and the packet loss compensation apparatus 300 may include:
a first receiving module 301, configured to receive network status feedback information sent by the receiving end based on a previous data packet;
a calculating module 302, configured to calculate a compensation rate according to the network condition feedback information;
and a sending module 303, configured to generate and send a current data packet according to the compensation rate.
As an optional implementation, the calculating module 302 is further configured to initialize a compensation rate value;
and adjusting the initialized compensation rate value according to the network condition feedback information to generate the compensation rate.
As an optional implementation, the network condition feedback information includes: the calculating module 302 is further configured to calculate a packet loss compensation rate, a delay compensation rate, and a jitter compensation rate;
acquiring a packet loss rate compensation rate weight, a delay compensation rate weight and a jitter compensation rate weight;
and calculating the compensation rate according to the packet loss rate compensation rate, the delay compensation rate, the jitter compensation rate, the packet loss rate compensation rate weight, the delay compensation rate weight and the jitter compensation rate weight.
As an optional implementation manner, the current data packet includes a compensation data packet and a data packet to be sent, and the sending module 303 is further configured to calculate a compensation data amount according to the compensation rate;
and acquiring the compensation data message from a sending queue according to the compensation data amount and sending the compensation data message and the data message to be sent to the receiving end.
Based on the same inventive concept, the embodiment of the application provides a packet loss compensation device. Referring to fig. 4, fig. 4 is a block diagram of another packet loss compensation apparatus according to an embodiment of the present invention, where the packet loss compensation apparatus 400 is applied to a receiving end of a second data packet transmission device included in a data packet transmission system, where the data packet transmission system further includes a first data packet transmission device, a sending end of the first data packet transmission device is in communication connection with the receiving end, and the packet loss compensation apparatus 400 may include:
a second receiving module 401, configured to receive a data packet sent by the sending end;
a generating module 402, configured to generate network status feedback information according to the data packet, where the network status feedback information is used to instruct the sending end to perform packet loss compensation.
As an optional implementation manner, the data packet includes a sequence number and a timestamp, and the generating module 402 is further configured to generate network status feedback information according to the sequence number and the timestamp.
In addition, a storage medium is provided in an embodiment of the present application, and a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is caused to execute the method provided in any embodiment of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as independent products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (7)

1. A packet loss compensation method, applied to a sending end of a first data packet transmission device included in a data packet transmission system, where the data packet transmission system further includes a second data packet transmission device, a receiving end of the second data packet transmission device is in communication connection with the sending end, and the sending end includes: an analyzer, a compensator, and a transmitter; the receiving end comprises a receiver and a detector, and the method comprises the following steps:
receiving network condition feedback information sent by the receiving end based on the previous data message;
calculating a compensation rate according to the network condition feedback information;
generating and sending a current data message according to the compensation rate;
the calculating a compensation rate according to the network condition feedback information includes:
initializing a compensation rate value;
adjusting the initialized compensation rate value according to the network condition feedback information to generate the compensation rate;
the network condition feedback information includes: the adjusting the initialization compensation rate value according to the network condition feedback information comprises:
calculating packet loss rate compensation rate, delay compensation rate and jitter compensation rate;
acquiring a packet loss rate compensation rate weight, a delay compensation rate weight and a jitter compensation rate weight;
calculating the compensation rate according to the packet loss rate compensation rate, the delay compensation rate, the jitter compensation rate, the packet loss rate compensation rate weight, the delay compensation rate weight and the jitter compensation rate weight; the method comprises the following specific steps:
firstly, evaluating the current packet loss rate, judging whether the packet loss rate is greater than a threshold value for triggering change, and if the packet loss rate is greater than the threshold value, calculating the packet loss rate compensation rate by the following formula:
C1=At*L
wherein, C1For the packet loss rate compensation rate, At is a constant value under the current threshold, L is the packet loss rate,
then evaluating the current time delay, judging whether the time delay is greater than a threshold value for triggering change, and if the time delay is greater than the threshold value, calculating a time delay compensation rate by the following formula:
C2=D/Bt
wherein, C2Bt is a constant value under the current threshold value, D is a delay value,
and finally, evaluating the current jitter, judging whether the jitter is greater than a threshold value for triggering change, and if the jitter is greater than the threshold value, calculating the delay compensation rate by the following formula:
C3=J/Wt
wherein, C3Wt is a constant value under the current threshold value, J is a delay value,
at this time, the compensation rate C is obtained by a weighted summation method:
C=P1*C1+P2*C2+P3*C3
wherein C is the compensation rate, C1Compensating for packet loss rate, C2For delay compensation rate, C3Is the jitter compensation rate; p1Compensating the rate weights for packet loss rate, P2Is a time delay compensation rate weight, P3Is the jitter compensation rate weight; the packet loss rate compensation rate weight, the delay compensation rate weight and the jitter compensation rate weight are preset or adjusted along with the network transmission condition;
the detector analyzes a group of received audio data messages by taking 2 or 3 or 5 seconds as a statistical time interval, and firstly calculates the packet loss rate of the network according to the sequence number information carried in the audio data messages; then, calculating the delay and jitter of the network according to the timestamp information carried in the audio data messages, and sending the packet loss rate, the delay and the jitter to a sending end as network condition feedback information; the current data message comprises a compensation data message and a data message to be sent, and the generating and sending of the current data message according to the compensation rate comprises the following steps:
calculating the compensation data amount according to the compensation rate;
acquiring the compensation data message from a sending queue according to the compensation data amount and sending the compensation data message and the data message to be sent to the receiving end;
the compensator is adopted to receive compensation rate information sent by the analyzer, and then required compensation data amount is calculated according to the compensation rate, wherein the calculation formula is as follows:
Y=C*V
wherein, C is the compensation rate calculated by the analyzer, V is the data amount currently required to be transmitted, and Y is the compensation data amount.
2. Another packet loss compensation method corresponding to the packet loss compensation method in claim 1 is applied to a receiving end of a second data packet transmission device included in a data packet transmission system, where the data packet transmission system further includes a first data packet transmission device, and a transmitting end of the first data packet transmission device is communicatively connected to the receiving end, where the method includes:
receiving a data message sent by the sending end;
and generating network condition feedback information according to the data message, wherein the network condition feedback information is used for indicating the sending end to carry out packet loss compensation.
3. The packet loss compensation method according to claim 2, wherein the data packet includes a sequence number and a timestamp, and the generating the network condition feedback information according to the data packet includes:
and generating network condition feedback information according to the sequence number and the timestamp.
4. A device for implementing the packet loss compensation method according to claim 1, wherein the device is applied to a sending end of a first data packet transmission device included in a data packet transmission system, the data packet transmission system further includes a second data packet transmission device, a receiving end of the second data packet transmission device is in communication connection with the sending end, and the device includes:
the first receiving module is used for receiving network condition feedback information sent by the receiving end based on the previous data message;
the calculation module is used for calculating a compensation rate according to the network condition feedback information;
and the sending module is used for generating and sending the current data message according to the compensation rate.
5. A device for implementing the packet loss compensation method according to claim 2, wherein the device is applied to a receiving end of a second data packet transmission device included in a data packet transmission system, the data packet transmission system further includes a first data packet transmission device, a transmitting end of the first data packet transmission device is communicatively connected to the receiving end, and the device includes:
the second receiving module is used for receiving the data message sent by the sending end;
and the generating module is used for generating network condition feedback information according to the data message, wherein the network condition feedback information is used for indicating the sending end to perform packet loss compensation.
6. A data message transmission system, said data message transmission system comprising:
a first data packet transmission device comprising a transmitting end for performing the packet loss compensation method according to claim 1;
second data message transmission device comprising a receiving end for performing the packet loss compensation method according to claim 2 or 3.
7. A storage medium having stored thereon computer program instructions which, when read and executed by a computer, perform the steps of the packet loss compensation method according to any one of claims 1 to 3.
CN202010643233.9A 2020-07-06 2020-07-06 Packet loss compensation method, device, data message transmission system and storage medium Active CN111818231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010643233.9A CN111818231B (en) 2020-07-06 2020-07-06 Packet loss compensation method, device, data message transmission system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010643233.9A CN111818231B (en) 2020-07-06 2020-07-06 Packet loss compensation method, device, data message transmission system and storage medium

Publications (2)

Publication Number Publication Date
CN111818231A CN111818231A (en) 2020-10-23
CN111818231B true CN111818231B (en) 2021-02-09

Family

ID=72843051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010643233.9A Active CN111818231B (en) 2020-07-06 2020-07-06 Packet loss compensation method, device, data message transmission system and storage medium

Country Status (1)

Country Link
CN (1) CN111818231B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112713967B (en) * 2020-12-30 2022-12-30 北京猿力未来科技有限公司 Data transmission method and device
CN113596229B (en) * 2021-08-17 2022-08-16 深圳云基智能科技有限公司 Digital home smart phone based on cloud architecture

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047626A (en) * 2006-04-30 2007-10-03 华为技术有限公司 Method for transmitting facsimile message
EP2190141A1 (en) * 2003-09-05 2010-05-26 Fujitsu Limited Radio communication apparatus with adaptive modulation and coding
CN103632671A (en) * 2013-06-28 2014-03-12 华为软件技术有限公司 Data encoding method, data decoding method, data encoding device, data decoding device and data communication system
US9356793B1 (en) * 2012-02-09 2016-05-31 Google Inc. System and method for managing load on a downstream server in a distributed storage system
CN105871514A (en) * 2016-05-19 2016-08-17 乐视控股(北京)有限公司 Data transmission method and data transmission device
CN105897378A (en) * 2016-04-06 2016-08-24 上海华为技术有限公司 Method and device of reducing transmission packet loss rate
WO2016191985A1 (en) * 2015-05-29 2016-12-08 Siemens Aktiengesellschaft Method and device for redundant data transmission over multiple wireless links
CN107306361A (en) * 2016-04-22 2017-10-31 华为技术有限公司 Code stream transmission method, device and IP Camera
CN108155971A (en) * 2017-12-26 2018-06-12 重庆金山医疗器械有限公司 Data transmission processing method and oesophagus ph value detecting system data transmission device
CN109524015A (en) * 2017-09-18 2019-03-26 杭州海康威视数字技术股份有限公司 Audio coding method, coding/decoding method, device and audio coding and decoding system
CN109951254A (en) * 2019-03-21 2019-06-28 腾讯科技(深圳)有限公司 A kind of data processing method and device, computer readable storage medium
CN110149452A (en) * 2019-03-27 2019-08-20 杭州叙简科技股份有限公司 A method of it reducing network packet loss rate and promotes call sound effect

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7724761B1 (en) * 2000-03-07 2010-05-25 Juniper Networks, Inc. Systems and methods for reducing reflections and frequency dependent dispersions in redundant links
US9992088B1 (en) * 2014-11-07 2018-06-05 Speedy Packets, Inc. Packet coding based network communication
CN105721333B (en) * 2016-01-21 2019-02-15 全时云商务服务股份有限公司 A kind of data transmission device and method
CN107888455A (en) * 2017-12-04 2018-04-06 北京星河星云信息技术有限公司 A kind of data detection method, device and system
EP3528433B1 (en) * 2018-02-16 2021-02-17 Tata Consultancy Services Limited Data analyses using compressive sensing for internet of things (iot) networks
CN110391879B (en) * 2019-07-15 2020-08-18 湖南大学 Packet loss recovery method and device for data transmission network and computer equipment
CN111314335B (en) * 2020-02-10 2021-10-08 腾讯科技(深圳)有限公司 Data transmission method, device, terminal, storage medium and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2190141A1 (en) * 2003-09-05 2010-05-26 Fujitsu Limited Radio communication apparatus with adaptive modulation and coding
CN101047626A (en) * 2006-04-30 2007-10-03 华为技术有限公司 Method for transmitting facsimile message
US9356793B1 (en) * 2012-02-09 2016-05-31 Google Inc. System and method for managing load on a downstream server in a distributed storage system
CN103632671A (en) * 2013-06-28 2014-03-12 华为软件技术有限公司 Data encoding method, data decoding method, data encoding device, data decoding device and data communication system
WO2016191985A1 (en) * 2015-05-29 2016-12-08 Siemens Aktiengesellschaft Method and device for redundant data transmission over multiple wireless links
CN105897378A (en) * 2016-04-06 2016-08-24 上海华为技术有限公司 Method and device of reducing transmission packet loss rate
CN107306361A (en) * 2016-04-22 2017-10-31 华为技术有限公司 Code stream transmission method, device and IP Camera
CN105871514A (en) * 2016-05-19 2016-08-17 乐视控股(北京)有限公司 Data transmission method and data transmission device
CN109524015A (en) * 2017-09-18 2019-03-26 杭州海康威视数字技术股份有限公司 Audio coding method, coding/decoding method, device and audio coding and decoding system
CN108155971A (en) * 2017-12-26 2018-06-12 重庆金山医疗器械有限公司 Data transmission processing method and oesophagus ph value detecting system data transmission device
CN109951254A (en) * 2019-03-21 2019-06-28 腾讯科技(深圳)有限公司 A kind of data processing method and device, computer readable storage medium
CN110149452A (en) * 2019-03-27 2019-08-20 杭州叙简科技股份有限公司 A method of it reducing network packet loss rate and promotes call sound effect

Also Published As

Publication number Publication date
CN111818231A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
JP5719449B2 (en) System and method for measuring available capacity and narrow link capacity of an IP path from a single endpoint
US8489758B2 (en) Method of transmitting data in a communication system
US8605598B2 (en) Frame loss measurement method, system, and apparatus
JP4491257B2 (en) Controlling the admission of data streams to the network based on end-to-end measurements
US7894367B2 (en) Methods and systems for bandwidth protection
EP1793528B1 (en) Method of monitoring the quality of a realtime communication
US7864695B2 (en) Traffic load density measuring system, traffic load density measuring method, transmitter, receiver, and recording medium
CN111818231B (en) Packet loss compensation method, device, data message transmission system and storage medium
EP2947821A1 (en) Method for detecting network transmission status and related device
US8873590B2 (en) Apparatus and method for correcting jitter
EP3226489A1 (en) Available-band estimation system, available-band estimation method, reception apparatus, and reception apparatus program storage medium
GB2527365A (en) A telecommunication end-point device data transmission controller
US20070177625A1 (en) Packet communication system, packet communication method, transmission apparatus, and storage medium having stored therein computer program
CN109450606B (en) Data transmission control method and device
US8224984B2 (en) Method for quality analysis during transmission of real-time critical data in packet-oriented network
US20100086021A1 (en) Information transmission apparatus, method of controlling the same, and storage medium
JP5533177B2 (en) Packet loss rate estimation device, packet loss rate estimation method, packet loss rate estimation program, and communication system
US8228813B2 (en) Network quality measurement based on quality measurement packet
CN109995603B (en) Method and device for measuring packet loss under Tag model and electronic equipment
KR20170072788A (en) Apparatus and method for estimating packet loss based on machine learning
CN113542215A (en) Method for improving streaming media transmission performance and related device
CN111629281A (en) Online continuous inspection method based on network packet loss rate distribution in video transmission
WO2019155561A1 (en) Channel quality measurement system and channel quality measurement method
JPH05260090A (en) Video transfer system
CN113328903B (en) Method, device and system for detecting transmission quality

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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 100010 room 203-35, 2 / F, building 2, No.1 and 3, Qinglong Hutong, Dongcheng District, Beijing

Patentee after: G-NET CLOUD SERVICE Co.,Ltd.

Address before: Room 1102, Ninth Floor, Pengyuan International Building, Building 4, No. 1 Courtyard, Shangdi East Road, Haidian District, Beijing

Patentee before: G-NET CLOUD SERVICE Co.,Ltd.