CN117768686A - Data transmission method and system based on hybrid automatic repeat request - Google Patents

Data transmission method and system based on hybrid automatic repeat request Download PDF

Info

Publication number
CN117768686A
CN117768686A CN202311228700.1A CN202311228700A CN117768686A CN 117768686 A CN117768686 A CN 117768686A CN 202311228700 A CN202311228700 A CN 202311228700A CN 117768686 A CN117768686 A CN 117768686A
Authority
CN
China
Prior art keywords
data transmission
video data
network
packet loss
transmission time
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.)
Pending
Application number
CN202311228700.1A
Other languages
Chinese (zh)
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.)
Hangzhou Tuanxing Information Technology Co ltd
Original Assignee
Hangzhou Tuanxing Information Technology 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 Hangzhou Tuanxing Information Technology Co ltd filed Critical Hangzhou Tuanxing Information Technology Co ltd
Priority to CN202311228700.1A priority Critical patent/CN117768686A/en
Publication of CN117768686A publication Critical patent/CN117768686A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a data transmission method and system based on a hybrid automatic repeat request, data transmission equipment based on the hybrid automatic repeat request and a storage medium. According to the technical scheme provided by the embodiment of the application, the network parameters of the current video data transmission network are obtained; under the condition that continuous packet loss occurs in the current video data transmission network is determined, calculating target transmission time and maximum available transmission time required by the current video data transmission network for packet loss data retransmission based on network parameters; and in the case that the target transmission time exceeds the maximum available transmission time, video data transmission is performed based on a forward error correction algorithm. By adopting the technical means, the accurate starting of the forward error correction algorithm can be realized, the occupation of data transmission resources caused by the error starting of the forward error correction algorithm is avoided when the forward error correction algorithm is not needed, the reliability and the stability of video data transmission are improved, and the real-time video experience of a user is improved.

Description

Data transmission method and system based on hybrid automatic repeat request
Technical Field
The embodiment of the application relates to the technical field of data transmission, in particular to a data transmission method and system based on a hybrid automatic repeat request.
Background
Currently, in a video data transmission scenario, packet loss recovery is generally performed based on an HARQ (Hybrid Automatic Repeat reQuest ) algorithm. The HARQ algorithm includes two packet loss recovery modes, namely an ARQ (Automatic Repeat-reQuest) algorithm and an FEC (forward error correction, FEC, forward error correction) algorithm, and is responsible for configuring parameters of the ARQ algorithm and the FEC algorithm and starting time. Since the FEC algorithm adopts a manner of adding redundant data to the encoded data, the amount of encoded data increases. Therefore, the FEC algorithm is usually started when the packet loss rate of video data transmission reaches a threshold value, and the transmission overhead caused by FEC is reduced.
However, even if the packet loss rate parameter reaches the threshold value, the ARQ algorithm is adopted to retransmit the packet loss video data, so that the packet loss data can be recovered, and the video data can be ensured to be played at the receiving end. At this time, the FEC algorithm is enabled to occupy video data transmission resources additionally, so that the data link is congested, and user experience is affected.
Disclosure of Invention
The embodiment of the application provides a data transmission method and system based on a hybrid automatic repeat request, data transmission equipment and a storage medium based on the hybrid automatic repeat request, which can accurately start a forward error correction algorithm to transmit data and solve the problem of occupation of data transmission resources caused by mistakenly starting the forward error correction algorithm in a packet loss scene.
In a first aspect, an embodiment of the present application provides a data transmission method based on a hybrid automatic repeat request, including:
acquiring network parameters of a current video data transmission network;
under the condition that continuous packet loss occurs in the current video data transmission network is determined, calculating target transmission time and maximum available transmission time required by the current video data transmission network for packet loss data retransmission based on network parameters;
and in the case that the target transmission time exceeds the maximum available transmission time, video data transmission is performed based on a forward error correction algorithm.
In a second aspect, an embodiment of the present application provides a data transmission system based on a hybrid automatic repeat request, including:
the acquisition module is configured to acquire network parameters of the current video data transmission network;
the calculating module is configured to calculate target transmission time and maximum available transmission time required by the current video data transmission network for packet loss data retransmission based on network parameters under the condition that continuous packet loss occurs in the current video data transmission network;
and the transmission module is configured to transmit video data based on a forward error correction algorithm in the case that the target transmission time exceeds the maximum available transmission time.
In a third aspect, an embodiment of the present application provides a data transmission device based on a hybrid automatic repeat request, including:
a memory and one or more processors;
the memory is configured to store one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the hybrid automatic repeat request based data transmission method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing computer-executable instructions that, when executed by a computer processor, are configured to perform the hybrid automatic repeat request based data transmission method of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising instructions which, when executed on a computer or a processor, cause the computer or the processor to perform the hybrid automatic repeat request based data transmission method according to the first aspect.
According to the embodiment of the application, the network parameters of the current video data transmission network are obtained; under the condition that continuous packet loss occurs in the current video data transmission network is determined, calculating target transmission time and maximum available transmission time required by the current video data transmission network for packet loss data retransmission based on network parameters; and in the case that the target transmission time exceeds the maximum available transmission time, video data transmission is performed based on a forward error correction algorithm. By adopting the technical means, the target transmission time and the maximum available transmission time of the current video data transmission network are compared to determine whether to use the forward error correction algorithm for video data transmission, so that the accurate starting of the forward error correction algorithm can be realized, the occupation of data transmission resources caused by the error starting of the forward error correction algorithm when the forward error correction algorithm is not needed is avoided, the reliability and the stability of video data transmission are improved, and the real-time video experience of a user is improved.
Drawings
Fig. 1 is a flowchart of a data transmission method based on a hybrid automatic repeat request according to an embodiment of the present application;
fig. 2 is a schematic diagram of video data transmission between a transmitting end and a receiving end in the embodiment of the present application;
fig. 3 is a schematic diagram of a packet loss recovery process based on a hybrid automatic repeat request algorithm in a packet loss scenario in the embodiment of the present application;
FIG. 4 is a flow chart of calculation of target transmission time and maximum available transmission time in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data transmission system based on a hybrid automatic repeat request according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data transmission device based on a hybrid automatic repeat request according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments thereof is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The data transmission method based on the hybrid automatic repeat request aims at determining whether to use a forward error correction algorithm for video data transmission by comparing the target transmission time and the maximum available transmission time of the current video data transmission network when video data transmission is carried out based on the hybrid automatic repeat request algorithm. And further, when the forward error correction algorithm is not needed, the occupation of data transmission resources caused by the error starting of the forward error correction algorithm is avoided, and the reliability and stability of video data transmission are improved.
In a video data transmission scene, for an unstable network environment, a situation of packet loss occurs in an end-to-end transmission link due to congestion, multipath fading, packet damage and the like. Therefore, the streaming media application needs to ensure the reliability of video data transmission by itself, namely, needs to deploy an anti-packet-loss strategy to recover the lost data packet under the packet loss scene.
In the related video data transmission scheme, there are two main methods of packet loss recovery, namely automatic repeat request ARQ and forward error correction FEC. The ARQ algorithm needs a transmitting end to detect the loss of a data packet through various means, and performs one additional transmission on the lost data packet. And the FEC algorithm performs pre-coding in advance according to the detected link packet loss rate, and sends extra data redundancy for recovering lost data packets at a data receiving end. The hybrid automatic repeat request (HARQ) algorithm is a combination of an ARQ algorithm and an FEC algorithm, and besides the base line performance of the ARQ algorithm and the FEC algorithm, the HARQ algorithm is also responsible for configuring parameters and starting time of the ARQ algorithm and the FEC algorithm.
Compared with the mode of detecting packet loss data and retransmitting the packet loss data firstly by the ARQ algorithm, the FEC is a scheme for preprocessing the packet loss data, can improve the timeliness of the recovery of the packet loss data, can increase the redundant part of the packet (reduce the utilization rate) at the same time, and belongs to a strategy of space time exchange. The streaming media scene is often different in real-time requirements according to the requirements of specific users. If the FEC algorithm is started when the packet is lost, the video data transmission link is more likely to be congested due to the increase of the data quantity, and the normal audiovisual experience of a user is affected.
Unlimited enabling of FEC algorithms is obviously an unacceptable transmission overhead for network vulnerable users. The activation of FEC algorithms typically requires that consecutive packet losses be met, round trip delay be greater than a certain threshold, and bandwidth limitations be met at the same time. However, many times, due to the control of the congestion control module or jitter in the arrival of data, the transmission bandwidth is not fully utilized, and the increased data redundancy of the FEC algorithm may still pose a risk of congestion to the video data link. In addition, even if the conditions are met, the requirement of video delay can be met in many times by using the ARQ algorithm, namely, the problem can be solved by starting the ARQ algorithm to retransmit lost packets, and the additional addition of the FEC algorithm can not achieve the improvement of video transmission instantaneity, but also bring additional transmission overhead and congestion risk. For example, if continuous packet loss occurs and the packet loss rate is greater than 2%, the round trip delay is greater than 60ms, or continuous packet loss occurs and the round trip delay is greater than 200ms under the condition that the bandwidth limit is satisfied, the FEC algorithm is turned on. The scheme for starting the FEC algorithm by the fixed parameter decision does not consider the actual delay requirement of a user, and in a scene with a part of large jitter length, even if the condition is met, the ARQ algorithm is enough to complete the recovery and normal play of the lost video data packet, and the FEC algorithm is started again to occupy transmission resources only additionally, so that the congestion of a link is more easily caused, and the user experience is influenced. Based on the data transmission method, the data transmission method based on the hybrid automatic repeat request is provided, and the problem of occupation of data transmission resources caused by error starting of a forward error correction algorithm under a packet loss scene is solved.
Examples:
fig. 1 is a flowchart of a data transmission method based on a hybrid automatic repeat request according to an embodiment of the present application, where the data transmission method based on a hybrid automatic repeat request provided in the embodiment may be performed by a data transmission device based on a hybrid automatic repeat request, and the data transmission device based on a hybrid automatic repeat request may be implemented by software and/or hardware, and the data transmission device based on a hybrid automatic repeat request may be formed by two or more physical entities or may be formed by one physical entity. In general, the data transmission device based on the hybrid automatic repeat request may be a video transmitting end such as a mobile phone, a tablet, a video encoding server, etc.
The following description will be made taking a video transmitting end as an example of a main body for executing a data transmission method based on a hybrid automatic repeat request. Referring to fig. 1, the data transmission method based on the hybrid automatic repeat request specifically includes:
s110, acquiring network parameters of the current video data transmission network.
In the embodiment of the application, when video data transmission is performed based on an HARQ (hybrid automatic repeat request) algorithm, the opening time of an FEC (forward error correction) algorithm in the HARQ algorithm is adjusted as long as network parameters of a real-time data transmission network are combined. According to the method, whether the ARQ (automatic repeat request) algorithm can meet the delay requirement of a user on video data is judged based on the network parameters by acquiring the network parameters of the current video data transmission network, if the ARQ algorithm-based retransmission packet loss data cannot meet the delay requirement of the user on the video data, namely, the recovery of the packet loss data can cause overlarge video playing delay, the watching experience of the user is influenced, the FEC algorithm is required to be started for video data transmission, the timeliness of the recovery of the packet loss data in the scene is guaranteed, and the video playing smoothness is improved.
Specifically, referring to fig. 2, taking downlink data transmission of a live broadcast scenario as an example, a media server is used as a transmitting end, and a viewer client is used as a receiving end. The transmitting end comprises an HARQ module, and the data transmission method based on the hybrid automatic repeat request in the embodiment of the application is executed through the HARQ module. The data packet module of the transmitting end carries out video data coding based on the code rate provided by the code control module, the coded data packet is provided for the data transmitting module, the data transmitting module carries out transmission control through the congestion control module, the video data packet is transmitted to the receiving end, the receiving end carries out data packet receiving based on a Jitter buffer queue (Jitter queue) and carries out decoding rendering playing, and the Jitter buffer queue carries out Jitter length control through the Jitter control module. The timing of the receiving end returns a reply packet (ACK) based on the received data packet, and Jitter information (such as Jitter length) provided by the Jitter control module is added in the ACK. The HARQ module receives the related network parameter information sent by the data sending module, the data packet module, the congestion control module and the like, and further based on the network parameter information, can adaptively process decision of packet loss data, and judges whether to start an FEC algorithm to transmit video data.
Referring to fig. 3, a schematic diagram of packet loss recovery processing according to an embodiment of the present application is provided. Wherein, the switching and parameter configuration of the FEC algorithm and the ARQ algorithm are controlled by the HARQ control unit. In general, the ARQ algorithm keeps an on state, and performs packet loss detection according to an ACK packet fed back by a receiving end, and retransmits packet loss data when determining that data packet loss occurs. On this basis, when the ARQ algorithm retransmits the data packet to the receiving end, the video playing of the receiving end may be blocked due to the overlarge time delay of the retransmission data. Therefore, it is necessary to combine the network parameters of the current video data transmission network to determine whether to perform the FEC algorithm. Under the condition that packet loss occurs at a subsequent receiving end, packet loss recovery can be carried out through redundant information provided by FEC, video data is guaranteed to be recovered in time, and video playing fluency is improved.
It should be noted that, the obtained network parameters of the current video data transmission network may be network parameters such as network jitter, round trip delay, packet loss rate, bandwidth, code rate, etc. of the current video data transmission network.
And S120, calculating target transmission time and maximum available transmission time required by the current video data transmission network for packet loss data retransmission based on the network parameters under the condition that the current video data transmission network is determined to have continuous packet loss.
Because the HARQ module is configured to determine whether retransmission packet loss data based on the ARQ algorithm meets a delay requirement of a user on video data in a current video transmission network, it is required to calculate a transmission time required for retransmitting a data packet using the ARQ algorithm in the scene based on the acquired network parameters, which is defined as a target transmission time, and a maximum available transmission time for retransmitting the data packet using the ARQ algorithm, which is defined as a maximum available transmission time. It can be understood that if the target transmission time is less than or equal to the maximum available transmission time, it is indicated that retransmission of the lost packet data based on the ARQ algorithm is sufficient to recover the data packet, so as to ensure smooth video playback, and the FEC algorithm is not started for subsequent video data transmission. If the target transmission time is longer than the maximum available transmission time, the retransmission of the lost packet data is not faster than the recovery of the data packet to support smooth playing, and video delay of the receiving end is larger, so that video blocking can be caused, and if the bandwidth allows at the moment, the FEC algorithm needs to be started for video data transmission, so that the video data transmitted later can be recovered more timely under the lost packet scene.
Before the data transmission method, whether continuous packet loss occurs in the current video data transmission network needs to be judged, and the FEC algorithm is only suitable for starting to transmit data under the condition of continuous packet loss. If the data packet is lost sporadically, an ARQ algorithm is used for recovering the lost data packet. Therefore, in order to reduce the extra occupation of video data transmission resources by the FEC algorithm, when deciding whether to start the FEC algorithm to transmit video data, the embodiment of the application first determines whether continuous packet loss occurs in the current video data transmission network.
Wherein, confirm that the present video data transmission network appears and loses the packet continuously, including:
and under the condition that the continuous set times detect that the packet loss rate of the current video data transmission network is greater than 0, determining that continuous packet loss occurs in the current video data transmission network.
When the network parameters are acquired, the network parameters contain packet loss rate information. And judging whether the real-time detected packet loss rate information is larger than 0 or not through a decision period started by each FEC algorithm. And continuously setting a decision period to detect that the continuous set times of the packet loss rate of the video data transmission network are larger than 0, and indicating that the current video data transmission network continuously loses packets. For example, if the packet loss rate is greater than 0 in 10 consecutive times, the current video data transmission network is considered to continuously lose packets, otherwise, the current video data transmission network is a discontinuous packet loss scene, the starting decision of the FEC algorithm is directly skipped, and the ARQ algorithm is used for retransmitting the packet loss data.
Under the condition that continuous packet loss occurs in the current video data transmission network is determined, whether the FEC algorithm is started or not can be judged based on the comparison result of the target transmission time and the maximum available transmission time.
Optionally, the network parameters in the embodiments of the present application include jitter estimation values, round trip delay and packet loss rate of the current video data transmission network; referring to fig. 4, calculating a target transmission time and a maximum available transmission time required for packet loss data retransmission by a current video data transmission network based on network parameters includes:
s1201, calculating target transmission time based on round trip delay and packet loss rate;
s1202, calculating the maximum available transmission time based on the jitter estimation value and the round trip delay.
Specifically, the embodiment of the application quantifies the delay requirement of the receiving end according to the size of network jitter, judges whether retransmission packet loss data based on an ARQ algorithm meets the requirement of a user based on the delay requirement and network parameters, and further decides whether to start an FEC algorithm on the premise of continuous packet loss and bandwidth limitation. On the premise of delay permission, transmission overhead brought by an FEC algorithm is reduced as much as possible, and the probability of link congestion is reduced.
In addition, considering that the round trip delay and the packet loss rate are also important parameters affecting the retransmission packet loss data transmission time of the ARQ algorithm, the embodiment of the application calculates the target transmission time by combining the round trip delay and the packet loss rate, and calculates the maximum available transmission time based on the jitter estimated value and the round trip delay. And carrying out the starting decision of the FEC algorithm according to the calculated target transmission time and the maximum available transmission time.
In practical application, the target transmission time can be determined directly based on the round trip delay, can be determined by combining with the historical round trip delay, and can be determined by combining with other network parameters. Likewise, the maximum available transmission time may be determined according to actual network jitter, or may be determined by combining historical jitter information, or may be determined by combining other network parameters. The specific target transmission time and the determination mode of the maximum available transmission time in the embodiment of the present application are not limited in a fixed manner, and are not described in detail herein.
Optionally, calculating the target transmission time based on the round trip delay and the packet loss rate includes:
calculating target transmission time by using a first set formula according to round trip delay, packet loss rate and retransmission packet invalid duty ratio information;
calculating a maximum available transmission time based on the jitter estimate, the round trip delay, comprising:
and calculating the maximum available transmission time by using a second setting formula according to the jitter estimated value, the round trip delay, the set frame interval blocking duration and the jitter variation parameter of the unit period.
For the receiving end of the video data, after receiving the received data packet, the video data is framed and put into the jitter buffer. And then sampling the jitter length of the current jitter buffer area when the ACK packet transmission is triggered each time, and adding the jitter length information into the ACK packet and transmitting the information to a video transmitting end. The ACK may be transmitted according to the actual transmission cycle interval time. By adding a new field in the ACK packet protocol for storing Jitter Length information Jitter Length, setting the field Length according to the actual application scenario, and storing by using uint16_t in the embodiment of the present application.
In the embodiment of the application, an ACK packet with valid Jitter Length information Jitter Length field is received each time as an iteration period, and t represents that the t-th ACK is received. The jitter estimation value is obtained by carrying out weighted moving average filtering estimation based on the real-time jitter length and the set reference parameters. When t=0, jl is obtained by sampling the real-time Jitter Length in the ACK packet 0 By sjl t The filter estimation result of the sending end for the real-time Jitter Length, i.e. the Jitter estimation value, is sjl 0 =jl 0 The method comprises the steps of carrying out a first treatment on the surface of the When t>At 0, EWMA exponentially weighted moving average filtering is carried out on the real-time jitter length, and sjl is obtained through calculation t . Jitter estimation sjl t The calculation formula is as follows:
when t=0:
sjl 0 =jl 0 ,
when t >0:
where α and β represent upward and downward filter coefficients, respectively, in order to reduce the jamming caused by untimely retransmission as much as possible, the present application tends to take a smaller real-time Jitter Length reference value, so α < β, the reference parameter takes the value α=0.125, β=0.25. Through jitter estimation, jitter noise can be reduced as much as possible, so that the subsequent decision result is more accurate. According to the actual jitter estimation requirement, other influencing parameters (such as historical jitter information) and the like can be adaptively introduced to perform jitter estimation.
Jitter estimation value sjl based on the above determination t It is passed into the HARQ module as a network parameter for calculation of the maximum available transmission time. On the other hand, the HARQ module obtains the packet loss rate lr of the current video data transmission network from the congestion control module t Round trip delay RTTrtt t Bandwidth bw of t And obtain the data source stream code rate ds from the data packet module t The network parameters are transmitted to the HARQ module for enabling decision of the FEC algorithm. Wherein the target transmission timeThe calculation formula is as follows:
at the time instant of the t-time,
wherein, kInval is the invalid duty cycle information of the retransmission packet, the specific value of the invalid duty cycle information depends on the retransmission policy setting and the real-time network condition, and the reference value ranges from [0.1 to 0.2].
Maximum available transmission timeThe calculation formula is as follows:
at the time instant of the t-time,
wherein, rtt t And/2 represents unidirectional transmission time, kStuck is a frame interval blocking duration visible to the naked eye of a receiving end user, and is set to 200ms, kDalta is a jitter variation parameter of a unit period, and a reference value is 400ms. Based on the above formula, the target transmission time and the maximum available transmission time can be determined.
It should be noted that, the above calculation formula of the target transmission time and the maximum available transmission time is only one feasible implementation provided in the embodiments of the present application, and in practical application, according to the actual calculation requirement, the corresponding influence coefficient and weight coefficient may be adaptively set in combination with the network parameters required for calculating the target transmission time and the maximum available transmission time to perform weighted calculation.
Optionally, under the condition that the duration of starting the forward error correction algorithm for video data transmission by the current video data transmission network does not reach the set duration, skipping the judgment flow of closing the forward error correction algorithm.
When deciding whether to use the FEC algorithm to transmit video data based on the target transmission time and the maximum available transmission time, if the FEC algorithm is in an on state at this time, judging whether the on time reaches the set duration, if so, judging whether the on time exceeds 5s. If so, continuing to calculate the target transmission time and the maximum available transmission time, if not, keeping skipping the switching decision logic of the current FEC algorithm, and waiting until the next ACK packet is received and then executing the switching decision of the FEC algorithm of the next iteration period. Therefore, frequent switching of the FEC algorithm can be avoided, and stable execution of the algorithm is ensured.
And S130, transmitting video data based on a forward error correction algorithm under the condition that the target transmission time exceeds the maximum available transmission time.
Finally, by comparing the target transmission timesAnd maximum available transmission time->If->The FEC algorithm is not turned on and conversely, FEC may be turned on. Similarly, each time an ACK packet is received, the HARQ module executes a switching decision of an FEC algorithm once so as to ensure the stability and fluency of real-time video data transmission.
Optionally, the network parameters further include a network bandwidth of the current video data transmission network, a data source code rate, and a coding code rate of a forward error correction algorithm; the real-time example of the application further includes:
and performing bandwidth limitation judgment on the network bandwidth based on the network bandwidth, the data source code rate, the coding code rate and the reliability parameters of bandwidth estimation, and closing the forward error correction algorithm to perform video data transmission under the condition that the network bandwidth is determined to not meet the bandwidth limitation.
And setting bandwidth limitation, and under the condition that the real-time network bandwidth meets the bandwidth limitation, performing switching decision of the FEC algorithm, otherwise, considering that the current network bandwidth does not meet the requirement of starting the FEC algorithm, and closing the FEC algorithm to perform video data transmission.
Wherein, the coding rate df of the FEC algorithm t Depending on the FEC algorithm used by the transmitting end, the common FEC scheme and the common code table can be referred to, and the packet loss rate lr of the current video data transmission network can be combined t The value is df t /(1-lr t ). The judging method of the bandwidth limitation comprises the following steps: when ds t +df t ≤kBwParam×bw t And if the current real-time network bandwidth meets the bandwidth limit, the FEC algorithm can be started, otherwise, the current real-time network bandwidth is not met. Here kBwParam is a reliability parameter of bandwidth estimation, and the reference value is 0.9, so that the main purpose of the kBwParam is to avoid the risk that the actual bandwidth is not enough to start the FEC algorithm and congestion is aggravated due to the fact that the bandwidth is estimated too much.
In summary, the transmitting end transmits corresponding network parameters to the HARQ module through each time of receiving the ACK packet. The HARQ module firstly judges whether the continuous packet loss is carried out according to the input network parameters, if the continuous packet loss is carried out, the HARQ module respectively estimates and compares the target transmission time and the maximum available transmission time, and further judges whether the FEC algorithm needs to be started or not, so that the accurate decision of the switching FEC algorithm is realized.
The network parameters of the current video data transmission network are obtained; under the condition that continuous packet loss occurs in the current video data transmission network is determined, calculating target transmission time and maximum available transmission time required by the current video data transmission network for packet loss data retransmission based on network parameters; and in the case that the target transmission time exceeds the maximum available transmission time, video data transmission is performed based on a forward error correction algorithm. By adopting the technical means, the target transmission time and the maximum available transmission time of the current video data transmission network are compared to determine whether to use the forward error correction algorithm for video data transmission, so that the accurate starting of the forward error correction algorithm can be realized, the occupation of data transmission resources caused by the error starting of the forward error correction algorithm when the forward error correction algorithm is not needed is avoided, the reliability and the stability of video data transmission are improved, and the real-time video experience of a user is improved.
Fig. 5 is a schematic structural diagram of a data transmission system based on a hybrid automatic repeat request according to the present application. Referring to fig. 5, the data transmission system based on the hybrid automatic repeat request provided in this embodiment specifically includes: an acquisition module 21, a calculation module 22 and a transmission module 23.
Wherein the acquisition module 21 is configured to acquire network parameters of the current video data transmission network;
the calculating module 22 is configured to calculate a target transmission time and a maximum available transmission time required by the current video data transmission network for packet loss data retransmission based on the network parameters in the case that it is determined that continuous packet loss occurs in the current video data transmission network;
the transmission module 23 is configured to transmit video data based on a forward error correction algorithm in case the target transmission time exceeds the maximum available transmission time.
Specifically, determining that continuous packet loss occurs in the current video data transmission network includes:
and under the condition that the continuous set times detect that the packet loss rate of the current video data transmission network is greater than 0, determining that continuous packet loss occurs in the current video data transmission network.
Specifically, the network parameters include jitter estimation value, round trip delay and packet loss rate of the current video data transmission network;
calculating a target transmission time and a maximum available transmission time required by the current video data transmission network for packet loss data retransmission based on network parameters, comprising:
calculating target transmission time based on the round trip delay and the packet loss rate;
the maximum available transmission time is calculated based on the jitter estimate, the round trip delay.
The method for calculating the target transmission time based on the round trip delay and the packet loss rate comprises the following steps:
calculating target transmission time by using a first set formula according to round trip delay, packet loss rate and retransmission packet invalid duty ratio information;
calculating a maximum available transmission time based on the jitter estimate, the round trip delay, comprising:
and calculating the maximum available transmission time by using a second setting formula according to the jitter estimated value, the round trip delay, the set frame interval blocking duration and the jitter variation parameter of the unit period.
The jitter estimation value is obtained by carrying out weighted moving average filtering estimation based on the real-time jitter length and the set reference parameters.
Specifically, the network parameters further comprise network bandwidth, data source code rate and coding code rate of a forward error correction algorithm of the current video data transmission network;
the data transmission system based on the hybrid automatic repeat request further comprises:
and performing bandwidth limitation judgment on the network bandwidth based on the network bandwidth, the data source code rate, the coding code rate and the reliability parameters of bandwidth estimation, and closing the forward error correction algorithm to perform video data transmission under the condition that the network bandwidth is determined to not meet the bandwidth limitation.
Specifically, the data transmission system based on the hybrid automatic repeat request further comprises:
and under the condition that the time length of starting the forward error correction algorithm for video data transmission of the current video data transmission network does not reach the set time length, skipping the judgment flow of closing the forward error correction algorithm.
The network parameters of the current video data transmission network are obtained; under the condition that continuous packet loss occurs in the current video data transmission network is determined, calculating target transmission time and maximum available transmission time required by the current video data transmission network for packet loss data retransmission based on network parameters; and in the case that the target transmission time exceeds the maximum available transmission time, video data transmission is performed based on a forward error correction algorithm. By adopting the technical means, the target transmission time and the maximum available transmission time of the current video data transmission network are compared to determine whether to use the forward error correction algorithm for video data transmission, so that the accurate starting of the forward error correction algorithm can be realized, the occupation of data transmission resources caused by the error starting of the forward error correction algorithm when the forward error correction algorithm is not needed is avoided, the reliability and the stability of video data transmission are improved, and the real-time video experience of a user is improved.
The data transmission system based on the hybrid automatic repeat request provided by the embodiment of the application can be configured to execute the data transmission method based on the hybrid automatic repeat request provided by the embodiment, and has corresponding functions and beneficial effects.
On the basis of the above practical example, the embodiment of the present application further provides a data transmission device based on a hybrid automatic repeat request, referring to fig. 6, the data transmission device based on a hybrid automatic repeat request includes: processor 31, memory 32, communication module 33, input device 34 and output device 35. The memory is configured as a computer readable storage medium, and is configured to store a software program, a computer executable program, and modules corresponding to the data transmission method based on the hybrid automatic repeat request according to any embodiment of the present application (for example, an acquisition module, a calculation module, and a transmission module in a data transmission system based on the hybrid automatic repeat request). The communication module is configured to perform data transmission. The processor executes various functional applications of the device and data processing by running software programs, instructions and modules stored in the memory, that is, implements the data transmission method based on the hybrid automatic repeat request. The input means may be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the device. The output means may comprise a display device such as a display screen. The data transmission device based on the hybrid automatic repeat request provided by the above embodiment can be configured to execute the data transmission method based on the hybrid automatic repeat request provided by the above embodiment, and has corresponding functions and beneficial effects.
On the basis of the above embodiments, the embodiments of the present application further provide a computer-readable storage medium storing computer-executable instructions that, when executed by a computer processor, are configured to perform a data transmission method based on hybrid automatic repeat request, where the storage medium may be any of various types of memory devices or storage devices. Of course, the computer-readable storage medium provided in the embodiments of the present application, whose computer-executable instructions are not limited to the data transmission method based on the hybrid automatic repeat request as described above, may also perform the relevant operations in the data transmission method based on the hybrid automatic repeat request provided in any embodiment of the present application.
On the basis of the above embodiments, the embodiments of the present application further provide a computer program product, where the technical solution of the present application is essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product, and the computer program product is stored in a storage medium, and includes several instructions to cause a computer device, a mobile terminal or a processor therein to perform all or part of the steps of the hybrid automatic repeat request based data transmission method described in the embodiments of the present application.

Claims (11)

1. A data transmission method based on a hybrid automatic repeat request, comprising:
acquiring network parameters of a current video data transmission network;
under the condition that continuous packet loss occurs in the current video data transmission network is determined, calculating target transmission time and maximum available transmission time required by the current video data transmission network for packet loss data retransmission based on the network parameters;
and transmitting video data based on a forward error correction algorithm in the case that the target transmission time exceeds the maximum available transmission time.
2. The hybrid automatic repeat request based data transmission method as claimed in claim 1, wherein said network parameters comprise jitter estimation value, round trip delay and packet loss rate of the current video data transmission network;
the calculating, based on the network parameters, a target transmission time and a maximum available transmission time required by the current video data transmission network for packet loss data retransmission, includes:
calculating the target transmission time based on the round trip delay and the packet loss rate;
the maximum available transmission time is calculated based on the jitter estimate, the round trip delay.
3. The hybrid automatic repeat request based data transmission method as claimed in claim 2, wherein said calculating said target transmission time based on said round trip delay and said packet loss rate comprises:
calculating the target transmission time by using a first setting formula according to the round trip delay, the packet loss rate and the retransmission packet invalid duty ratio information;
said calculating said maximum available transmission time based on said jitter estimate, said round trip delay, comprising:
and calculating the maximum available transmission time by using a second setting formula according to the jitter estimated value, the round trip delay, the set frame interval blocking duration and the jitter variation parameter of the unit period.
4. The data transmission method according to claim 2, wherein the jitter estimation value is obtained by performing weighted moving average filtering estimation based on a real-time jitter length and a set reference parameter.
5. The hybrid automatic repeat request based data transmission method as claimed in claim 1, wherein said network parameters further comprise a network bandwidth of a current video data transmission network, a data source code rate, and a coding code rate of a forward error correction algorithm;
the method further comprises the steps of:
and judging the bandwidth limitation of the network bandwidth based on the network bandwidth, the data source code rate, the coding code rate and the reliability parameters of bandwidth estimation, and closing a forward error correction algorithm to transmit video data under the condition that the network bandwidth is determined to not meet the bandwidth limitation.
6. The hybrid automatic repeat request based data transmission method of claim 1, further comprising:
and under the condition that the time length of starting the forward error correction algorithm for video data transmission of the current video data transmission network does not reach the set time length, skipping the judgment flow of closing the forward error correction algorithm.
7. The method for data transmission based on hybrid automatic repeat request as claimed in claim 1, wherein said determining that continuous packet loss occurs in the current video data transmission network comprises:
and under the condition that the continuous set times detect that the packet loss rate of the current video data transmission network is greater than 0, determining that continuous packet loss occurs in the current video data transmission network.
8. A data transmission system based on hybrid automatic repeat request, comprising:
the acquisition module is configured to acquire network parameters of the current video data transmission network;
the calculating module is configured to calculate target transmission time and maximum available transmission time required by the current video data transmission network for packet loss data retransmission based on the network parameters under the condition that continuous packet loss occurs in the current video data transmission network;
and the transmission module is configured to transmit video data based on a forward error correction algorithm under the condition that the target transmission time exceeds the maximum available transmission time.
9. A data transmission apparatus based on a hybrid automatic repeat request, comprising:
a memory and one or more processors;
the memory is configured to store one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the hybrid automatic repeat request based data transmission method of any of claims 1-7.
10. A computer readable storage medium storing computer executable instructions which, when executed by a computer processor, are configured to perform a hybrid automatic repeat request based data transmission method according to any of claims 1-7.
11. A computer program product comprising instructions which, when executed on a computer or processor, cause the computer or processor to perform the hybrid automatic repeat request based data transmission method according to any of claims 1 to 7.
CN202311228700.1A 2023-09-21 2023-09-21 Data transmission method and system based on hybrid automatic repeat request Pending CN117768686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311228700.1A CN117768686A (en) 2023-09-21 2023-09-21 Data transmission method and system based on hybrid automatic repeat request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311228700.1A CN117768686A (en) 2023-09-21 2023-09-21 Data transmission method and system based on hybrid automatic repeat request

Publications (1)

Publication Number Publication Date
CN117768686A true CN117768686A (en) 2024-03-26

Family

ID=90309163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311228700.1A Pending CN117768686A (en) 2023-09-21 2023-09-21 Data transmission method and system based on hybrid automatic repeat request

Country Status (1)

Country Link
CN (1) CN117768686A (en)

Similar Documents

Publication Publication Date Title
CN108881970B (en) Method and apparatus for transmission rate control for real-time video streaming systems
CN107231328B (en) Real-time video transmission method, device, equipment and system
US8514755B2 (en) Transmitting and receiving system, transmitting apparatus, transmitting method, receiving apparatus, receiving method, and program
US8411581B2 (en) Method and system for medium access control (MAC) layer specialization for voice and multimedia data streams
US10148598B2 (en) Efficient packet processing at video receiver in multimedia communications over packet networks
EP2493105A1 (en) Method and system for recovering lost media data packets
CN103269260A (en) Data transmission method, data receiving terminal, data sending terminal and data transmission system
JP2004007823A (en) Method and apparatus for data transmission
EP1137217A1 (en) ARQ parameter negociation in a data packet transmission system using link adaptation
CN103686446A (en) Method and system for retransmitting lost packet in video data transmission
CN112769526B (en) Data packet retransmission method, system and storage medium
CN111327962A (en) Play control method, device, equipment and storage medium
CN103354615A (en) Signal intensity based live video data transmission error control method
CN115037416A (en) Data forward error correction processing method, device, electronic equipment and storage medium
CN111163362B (en) Video receiving method and system capable of self-adapting retransmission waiting time
CN110602568B (en) Video stream transmission packet loss retransmission method, device and storage device based on RTP
CN104769958A (en) Retransmission and frame synchronization for error control
US20180331880A1 (en) Method and system for streaming low-delay high-definition video with partially reliable transmission
CN117768686A (en) Data transmission method and system based on hybrid automatic repeat request
CN116094661A (en) Data transmission control method, device, equipment, storage medium and product
CN116318545A (en) Video data transmission method, device, equipment and storage medium
Mukhtar et al. Content-aware and occupancy-based hybrid ARQ for video transmission
CN114866196B (en) Data packet retransmission method, device, electronic equipment and storage medium
CN115001632A (en) Information transmission method and device, electronic equipment and readable storage medium
CN109982080A (en) A kind of method of transmission of video, storage medium, robot and control system

Legal Events

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