CN115987462A - Data transmission control method, device, equipment, storage medium and product - Google Patents
Data transmission control method, device, equipment, storage medium and product Download PDFInfo
- Publication number
- CN115987462A CN115987462A CN202211546450.1A CN202211546450A CN115987462A CN 115987462 A CN115987462 A CN 115987462A CN 202211546450 A CN202211546450 A CN 202211546450A CN 115987462 A CN115987462 A CN 115987462A
- Authority
- CN
- China
- Prior art keywords
- rate
- retransmission
- code rate
- information
- preset
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 178
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000012545 processing Methods 0.000 claims abstract description 33
- 238000012937 correction Methods 0.000 claims description 71
- 239000000126 substance Substances 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 9
- 238000012546 transfer Methods 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 10
- 238000005457 optimization Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 6
- 238000009825 accumulation Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000009795 derivation Methods 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000005562 fading Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
The embodiment of the application provides a data transmission control method, a data transmission control device, data transmission control equipment, a data transmission control storage medium and a data transmission control product. The technical scheme provided by the embodiment of the application determines a preset coding rate according to network rate limiting information, preset hybrid retransmission limiting information and success rate limiting information, codes data to be coded based on the preset coding rate to obtain a coded data packet, determines hybrid retransmission rate limiting information according to the actual coding rate of a coder in the coding process and the actual hybrid retransmission limiting information, performs hybrid retransmission processing on the coded data packet based on the hybrid retransmission rate limiting information, ensures enough coding rate based on the preset coding rate before coding, and ensures enough transmission success rate based on the hybrid retransmission rate limiting information after coding, more reasonably allocates bandwidth resources, and effectively improves data transmission effect.
Description
Technical Field
The present disclosure relates to the field of encoding technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a product for controlling data transmission.
Background
In the transmission process of media data, packet loss is likely to occur due to transmission link congestion, multi-path fading, packet damage and the like. In order to ensure the reliability of data transmission, a Hybrid Automatic Repeat reQuest (HARQ) including an ARQ (Automatic Repeat-reQuest) and a FEC (forward error correction) is generally used to perform Hybrid retransmission processing on a data packet.
Although the hybrid automatic repeat request can effectively recover the lost media data packet, the excessive automatic repeat request and the forward error correction redundant packet occupy a large amount of bandwidth resources, which causes transmission accumulation of the media data packet, frame loss, broadcast null and other situations of media data play, and poor data transmission effect.
Disclosure of Invention
The embodiment of the application provides a data transmission control method, a data transmission control device, data transmission control equipment, a data transmission control storage medium and a data transmission control product, so as to solve the technical problems that a hybrid automatic retransmission request occupies a large amount of bandwidth resources and the data transmission effect is poor in the related technology, so that the bandwidth resources are reasonably distributed, and the data transmission effect is effectively improved.
In a first aspect, an embodiment of the present application provides a data transmission control method, including:
acquiring network code rate limiting information corresponding to a transmission link, and determining a preset coding code rate based on the network code rate limiting information, preset hybrid retransmission limiting information and success rate limiting information;
based on the preset coding rate, coding data to be coded through a coder to obtain a coded data packet;
acquiring an actual coding rate of the encoder in a coding process, and determining hybrid retransmission rate limit information corresponding to a hybrid retransmission strategy based on the actual coding rate and actual hybrid retransmission limit information;
and sending the coded data packet, and performing hybrid retransmission processing on the coded data packet based on the hybrid retransmission code rate limiting information.
In a second aspect, an embodiment of the present application provides a data transmission control apparatus, including a preset code rate determining module, an encoding processing module, a retransmission code rate determining module, and a data transmission control module, where:
the preset code rate determining module is configured to acquire network code rate limiting information corresponding to a transmission link, and determine a preset coding code rate based on the network code rate limiting information, preset hybrid retransmission limiting information and success rate limiting information;
the encoding processing module is configured to perform encoding processing on the data to be encoded through an encoder based on the preset encoding rate to obtain an encoded data packet;
the retransmission code rate determining module is configured to acquire an actual coding code rate of the encoder in a coding process, and determine hybrid retransmission code rate limitation information corresponding to a hybrid retransmission strategy based on the actual coding code rate and actual hybrid retransmission limitation information;
and the data transmission control module is configured to send the encoded data packet and perform hybrid retransmission processing on the encoded data packet based on the hybrid retransmission code rate limitation information.
In a third aspect, an embodiment of the present application provides a data transmission control apparatus, including: a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the data transmission control method according to the first aspect.
In a fourth aspect, embodiments provide a non-volatile storage medium storing computer-executable instructions for performing the data transfer control method of the first aspect when executed by a computer processor.
In a fifth aspect, the present application provides a computer program product, which includes a computer program, the computer program being stored in a computer-readable storage medium, and at least one processor of the device reading from the computer-readable storage medium and executing the computer program, so that the device executes the data transmission control method according to the first aspect.
According to the embodiment of the application, the preset coding rate is determined according to the network code rate limiting information, the preset hybrid retransmission limiting information and the success rate limiting information, the coded data is coded based on the preset coding rate to obtain the coded data packet, the hybrid retransmission code rate limiting information is determined according to the actual coding rate of the coder in the coding process and the actual hybrid retransmission limiting information, the hybrid retransmission processing is performed on the coded data packet based on the hybrid retransmission code rate limiting information, the enough coding rate is ensured based on the preset coding rate before coding, the enough transmission success rate is ensured based on the hybrid retransmission code rate limiting information after coding, bandwidth resources are distributed more reasonably, and the data transmission effect is effectively improved.
Drawings
Fig. 1 is a flowchart of a data transmission control method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a hybrid retransmission rate limit information determination process according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data transmission control apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data transmission control device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The above process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes described above may correspond to methods, functions, procedures, subroutines, and the like.
The data transmission control method can be applied to the code control, coding and transmission processes in a live data transmission link, and aims to ensure enough coding code rate based on the preset coding code rate before coding and ensure enough transmission success rate based on the mixed retransmission code rate limiting information after coding so as to reasonably allocate bandwidth resources and effectively improve the data transmission effect. In the conventional data transmission control, when bandwidth resources are allocated, a value corresponding to an estimated bandwidth (1-link packet loss rate) is generally used as a coding guide code rate, and then a preset frame rate and a preset resolution are calculated. However, the effectiveness of the hybrid automatic repeat request strategy is not considered in this solution, and in a scene with a requirement on transmission delay actually, too many automatic repeat requests and forward error correction redundant packets occupy a large amount of bandwidth resources, which causes transmission accumulation of media data packets, and is likely to cause frame loss, broadcast null, and the like of media data broadcast, and the data transmission effect is poor.
Fig. 1 is a flowchart of a data transmission control method according to an embodiment of the present application, where the data transmission control method according to the embodiment of the present application may be executed by a data transmission control device, and the data transmission control device may be implemented by hardware and/or software and integrated in a data transmission control device.
The following description will be given taking as an example a method in which the data transfer control apparatus performs data transfer control. Referring to fig. 1, the data transmission control method includes:
s101: and acquiring network code rate limiting information corresponding to the transmission link, and determining a preset coding code rate based on the network code rate limiting information, the preset hybrid retransmission limiting information and the success rate limiting information.
The network code rate limiting information corresponding to the transmission link provided by the scheme can be provided by a set congestion control module, the congestion control module can acquire the link bandwidth, the transmission packet loss rate and the like corresponding to the transmission link in real time, and a sending window is controlled to send the coded data packet based on a set congestion control algorithm. Optionally, the network code rate limitation information corresponding to the transmission link may be determined based on a link bandwidth corresponding to the transmission link.
The network code rate limiting information can be understood as the maximum coding code rate of image coding under the bandwidth resource currently owned by the transmission link, wherein the maximum coding code rate is estimated by the congestion control module based on the acquired network condition of the transmission link. The preset hybrid retransmission limit information may be understood as a limit (for example, limiting an upper limit of a code rate corresponding to the hybrid retransmission policy) for executing the hybrid retransmission policy on the pre-configured hybrid retransmission module, and the success rate limit information may be understood as a lower limit (for example, a lower limit of a success rate) for successfully sending the data packet by the transmission link, and the success rate limit information may be set based on an actual service scenario.
Illustratively, the network code rate limitation information (which can be determined by the real-time link bandwidth of the transmission link) and the transmission packet loss rate corresponding to the transmission link are obtained from the congestion control module. And calculating the preset coding rate according to the acquired network code rate limiting information, the preset hybrid retransmission limiting information and the preset success rate limiting information.
In a possible embodiment, when determining the preset coding rate based on the network rate limit information and the preset hybrid retransmission limit information and success rate limit information, the data transmission control method provided in this scheme may solve the maximum preset coding rate that meets the rate constraint condition based on the network rate limit information and the rate constraint conditions corresponding to the preset retransmission rate, the preset forward error correction rate, and the success rate lower limit.
The hybrid retransmission strategy provided by the scheme comprises an automatic retransmission request (ARQ) strategy and a Forward Error Correction (FEC) strategy, and correspondingly, the preset hybrid retransmission limiting information comprises a preset retransmission code rate and a preset forward error correction code rate. The predetermined retransmission code rate may be understood as a code rate limit corresponding to an automatic retransmission request policy that is preset before encoding, and the predetermined forward error correction code rate may be understood as a code rate limit corresponding to a forward error correction policy that is preset before encoding.
Illustratively, after determining network code rate limiting information corresponding to a transmission link, a preset retransmission code rate, a preset forward error correction code rate and a lower success rate limit value are obtained, and a current code rate constraint condition is determined according to the network code rate limiting information, the preset retransmission code rate, the preset forward error correction code rate and the lower success rate limit value. Further, the maximum preset coding rate which meets the constraint condition of the coincident code rate is solved. According to the scheme, the maximum preset coding rate is determined based on the network code rate limiting information and the code rate constraint conditions corresponding to the preset retransmission code rate, the preset forward error correction code rate and the lower success rate limit value, the maximum preset coding rate is determined before coding processing, more bandwidth resources are allocated to the encoder for coding processing based on the network condition before coding processing, and the image coding quality is improved.
In a possible embodiment, when the coding processing of the data to be coded is triggered at time t, the preset coding rate provided by the present solution may be determined based on the following optimization problem O1:wherein->The code rate is preset, that is, the optimization problem O1 is to solve the maximum preset code rate under the code rate constraint condition.
In one possible embodiment, the code rate constraint provided by the present scheme may be determined based on the following formula:
wherein the content of the first and second substances,for a predetermined coding rate, in conjunction with a predetermined coding rate>For estimating transmission success rate information, based on the estimated transmission success rate>For a predetermined lower transmission success rate limit>For a predetermined retransmission code rate, is asserted>For presetting a forward error correction code rate, <>Is network code rate restriction information. Wherein, C11-C14 are different limiting conditions corresponding to the code rate constraint conditions, C11 bit transmission success rate limiting conditions, and C12-C14 are code rate limiting conditions corresponding to the hybrid retransmission strategy.
In one possible embodiment, the estimated transmission success rate information provided by the present solution may be determined based on the following formula:
wherein, the first and the second end of the pipe are connected with each other,for the corresponding preset retransmission success rate information in case of only automatic repeat request (ARQ),is the corresponding preset forward error correction success rate information under the condition of only Forward Error Correction (FEC).
In one embodiment, the predetermined retransmission success rate information provided by the present scheme may be determined based on a predetermined retransmission code rate, a predetermined coding code rate and a transmission packet loss rate, that is, the present scheme may be implementedWherein->The packet loss rate is the transmission packet loss rate; the preset forward error correction success rate information can be determined based on the preset retransmission code rate, the preset coding code rate and the transmission packet loss rate, namely ≥ h>
In one possible embodiment, for P r The unfolding of (-) can be:
in one possible embodiment, the predetermined retransmission success rate information provided by the present scheme may be determined based on the following formula:
wherein, the first and the second end of the pipe are connected with each other,for a preset maximum number of retransmissions>For transmission packet loss rate, based on the transmission packet loss rate>The effective occupation ratio of the retransmission packet corresponding to the automatic retransmission strategy can be determined (can be obtained by statistical calculation in a sending window) and/or be determined based on the automatic retransmission request strategy>The maximum retransmission time under the current service scene is generally determined according to the set delay requirement, the scheme is set to be a constant, and then->It can be understood as the maximum transmission success probability that the automatic repeat request strategy can achieve under the maximum retransmission number limit.
It should be explained that the preset retransmission success rate information is respectively processedAnd preset retransmission success rate informationThe derivation is carried out such that the corresponding derivative is in each case->And/or>Since the success rate is less than or equal to 1, it may be determined that the predicted transmission success rate information ≥ is>And preset retransmission success rate information>And preset retransmission success rate information->Is monotonic.
due to the fact thatGreater than or equal to 0 (most scenes are greater than 0), so that the preset retransmission success rate information &>And a predetermined retransmission code rate->Is also monotonic.
In one possible embodiment, the RS (Reed Solomon) error correction code algorithm is taken as an example for P f The unfolding of (-) can be:
in one possible embodiment, the predetermined fec success rate information provided by the present scheme may be determined based on the following formula:
wherein the content of the first and second substances,indicating rounding down, cr MTU For the upper limit of the link data packet code rate, the MTU is the data packet size or the average data packet size of the data packets (coded data packets) in the transmission link. Referring to the relation between the success rate information corresponding to the automatic retransmission request strategy and the retransmission code rate, and judging whether the coding code rate is greater or less than the preset coding code rate>And the transmission packet loss rate->Under the condition that the sum of the preset forward error correction code rates is greater than or equal to 0, presetting a forward error correction code rate->The larger the transmission success rate, the higher the probability of transmission success, i.e. the preset forward error correction success rate informationAnd a predetermined forward error correction code rate->Is a monotonic relationship. Then, the success rate information is based on the predicted transmission success rate>And preset retransmission success rate information->And presetting forward error correction success rate information->Are all monotonous, and preset retransmission success rate information>Presetting forward error correction success rate information->And preset retransmission code rate>Presetting forward error correction code rate->Respectively in a monotonic relationship, then predict the transmission success rate information>And preset retransmission code rate>And a preset forward error correction code rate->Also in a monotonic relationship, the optimization problem can be determined->For the convex problem, the Optimization problem O1 may be solved by a Lagrange dual method to obtain a maximum preset coding rate meeting a code rate constraint condition, for example, the Optimization problem O1 is solved by a packed convex Optimization problem analysis library such as CVX of MATLAB, optimization Toolbox, and the like, so as to quickly and accurately determine the preset coding rate.
S102: and based on the preset coding rate, coding the data to be coded through a coder to obtain a coded data packet.
For example, after the preset coding rate is determined, the preset coding rate is sent to the encoder, the encoder acquires to-be-coded data to be coded from the coding queue, and codes the to-be-coded data based on the preset coding rate (so that the actual coding rate of the encoder is consistent with or close to the preset coding rate) to obtain a coded data packet.
In a possible embodiment, the data transmission control method provided in this scheme, when encoding data to be encoded by an encoder based on a preset encoding rate to obtain an encoded data packet, includes: and with the preset coding rate as the upper limit of the coding rate, coding the data to be coded by the coder to obtain a coded data packet.
For example, after the encoder acquires the data to be encoded, which needs to be encoded, the encoder performs encoding processing on the data to be encoded to obtain an encoded data packet, with a preset encoding rate as an upper limit of the encoding rate for encoding the data to be encoded. For example, a coding control module in the encoder determines a coding frame rate and a resolution by taking a preset coding rate as an upper limit of the coding rate, and the coding module in the encoder performs coding processing on the data to be coded according to the coding frame rate and the resolution determined by the coding control module to obtain a coded data packet.
According to the scheme, the maximized preset coding rate is determined before coding, the maximized preset coding rate is taken as the upper limit of the coding rate to be coded, and the upper limit of the coding rate is set for the code control and coding module, so that the coder codes the image under the limitation of the current maximum available preset coding rate, and the image coding quality is improved.
S103: and acquiring the actual coding rate of the encoder in the coding process, and determining hybrid retransmission rate limit information corresponding to the hybrid retransmission strategy based on the actual coding rate and the actual hybrid retransmission limit information.
When the encoder provided by the scheme is used for encoding the data to be encoded based on the preset encoding rate, the situation that the actual encoding rate is inconsistent with the preset encoding rate may exist, and when the encoder is used for encoding the data to be encoded, the actual encoding rate in the encoding process is recorded at the same time. Meanwhile, the hybrid retransmission module controls corresponding actual hybrid retransmission limit information in the sending processing process of the coded data packet based on the set hybrid retransmission strategy.
Illustratively, the actual coding rate of the encoder in the coding process is obtained, the actual hybrid retransmission limit information corresponding to the hybrid retransmission module in the process of controlling the sending process of the coded data packet is obtained, and the hybrid retransmission rate limit information corresponding to the hybrid retransmission strategy is determined according to the actual coding rate and the actual hybrid retransmission limit information.
In a possible embodiment, as shown in the schematic diagram of the determination process of the hybrid retransmission code rate limitation information provided in fig. 2, the data transmission control method provided in this scheme includes, when determining the hybrid retransmission code rate limitation information corresponding to the hybrid retransmission policy based on the actual coding code rate and the actual hybrid retransmission limitation information, the following steps:
s1031: and solving the maximum target transmission success rate which accords with the success rate constraint condition based on the actual coding code rate and the success rate constraint condition corresponding to the actual retransmission code rate and the actual forward error correction code rate.
S1032: and determining the hybrid retransmission code rate limitation information corresponding to the hybrid retransmission strategy based on the target transmission success rate.
The hybrid retransmission strategy provided by the scheme comprises an automatic retransmission request strategy and a forward error correction strategy, and correspondingly, the actual hybrid retransmission limiting information comprises an actual retransmission code rate corresponding to the automatic retransmission request strategy and an actual forward error correction code rate corresponding to the forward error correction strategy.
Illustratively, an actual coding code rate, an actual retransmission code rate and an actual forward error correction code rate are obtained, a current success rate constraint condition is determined according to the actual coding code rate, the actual retransmission code rate and the actual forward error correction code rate, a maximum target transmission success rate meeting the success rate constraint condition is solved, and hybrid retransmission code rate limitation information corresponding to a hybrid retransmission strategy under the success rate constraint condition is determined according to the maximum target transmission success rate.
In a possible embodiment, when determining, based on a target transmission success rate, hybrid retransmission rate limit information corresponding to a hybrid retransmission policy, a data transmission control method provided in the present disclosure includes: and determining the actual retransmission code rate and the actual forward error correction code rate corresponding to the target transmission success rate as the retransmission code rate upper limit and the forward error correction code rate upper limit corresponding to the hybrid retransmission strategy.
Exemplarily, after determining the maximum target transmission success rate, determining an actual retransmission code rate and an actual forward error correction code rate corresponding to the maximum target transmission success rate under the constraint condition of the success rate, and determining the actual retransmission code rate and the actual forward error correction code rate corresponding to the maximum target transmission success rate as an upper limit of the retransmission code rate and an upper limit of the forward error correction code rate corresponding to the hybrid retransmission strategy. According to the scheme, the maximum target transmission success rate is determined based on the actual coding code rate and the success rate constraint conditions corresponding to the actual retransmission code rate and the actual forward error correction code rate, and the hybrid retransmission code rate limitation information corresponding to the hybrid retransmission strategy is determined according to the maximum target transmission success rate, so that the success rate of data transmission is improved on the premise of ensuring the coding quality, and the data transmission effect is effectively improved.
In one possible embodiment, the target transmission success rate provided by the present solution may be determined based on the following optimization problem O2:wherein->The target transmission success rate is obtained, that is, the optimization problem O1 is the maximum target transmission success rate solved under the success rate constraint condition.
In one possible embodiment, the success rate constraint provided by the present scheme may be determined based on the following formula:
wherein the content of the first and second substances,for the actual retransmission code rate, is asserted>For the actual forward error correction code rate, < >>For the actual coding rate, is>Network code rate restriction information.
In one possible embodiment, the target transmission success rate provided by the present scheme may be determined based on the following formula:
wherein the content of the first and second substances,for the corresponding actual retransmission success rate information in case of only automatic retransmission request,the actual forward error correction success rate information is corresponding to the situation that only forward error correction exists;
the actual retransmission success rate information provided by the scheme can be determined based on the following formula:
wherein the content of the first and second substances,is a preset maximum number of retransmissions->For transmission packet loss rate, based on the transmission packet loss rate>And the effective occupation ratio of the retransmission packet corresponding to the automatic retransmission strategy is obtained.
The actual forward error correction success rate information provided by the scheme can be determined based on the following formula:
wherein the content of the first and second substances,indicating rounding down, cr MTU Is the upper limit of the link data packet code rate.
Referring to the relationship between the power information and the retransmission code rate in the optimization problem O1, the optimization problem O2 is also a convex problem, and can also be solved based on the lagrangian dual method to obtain the maximum target transmission success rate that meets the success rate constraint condition.
S104: and sending the coded data packet, and performing hybrid retransmission processing on the coded data packet based on the hybrid retransmission code rate limiting information.
For example, the encoded data packet is sent to a set server, the server transcodes the encoded data packet and sends corresponding video data to each user terminal (for example, a viewer), and meanwhile, whether packet loss occurs or not can be confirmed according to confirmation information (ACK information) returned by the server. And when the coded data packet is sent, carrying out hybrid retransmission processing on the coded data packet according to the hybrid retransmission code rate limiting information.
In a possible embodiment, when performing hybrid retransmission processing on a coded data packet based on hybrid retransmission rate limit information, a data transmission control method provided by the present scheme includes: under the condition that packet loss occurs, determining whether to resend the data packet or not based on the retransmission code rate upper limit corresponding to the hybrid retransmission code rate limiting information and the real-time data sending rate; and generating and sending a redundant data packet corresponding to the coded data packet based on the forward error correction code rate upper limit corresponding to the hybrid retransmission code rate limiting information.
Illustratively, when determining that packet loss occurs according to the acknowledgement information returned by the server, the sending rate of the data in the current data link is obtained, and whether to resend the data packet is determined according to the comparison condition of the retransmission code rate upper limit corresponding to the mixed retransmission code rate limiting information and the sending rate of the real-time data. For example, when the retransmission code rate upper limit is smaller than the real-time data transmission rate, it is determined to retransmit the data packet, and when the retransmission code rate upper limit is larger than the real-time data transmission rate, it is determined not to retransmit the data packet.
Meanwhile, the hybrid retransmission module generates a redundant data packet corresponding to the encoded data packet according to the forward error correction code rate upper limit corresponding to the hybrid retransmission code rate limiting information based on the set forward error correction strategy, and transmits the redundant data packet to the set server.
According to the scheme, whether the data packet is sent again or not is determined according to the upper limit of the retransmission code rate and the real-time data sending rate, the data retransmission quantity is adjusted according to the bandwidth condition in real time, and the condition that playing is blocked due to accumulation of transmission links is reduced. Meanwhile, a redundant data packet corresponding to the coded data packet is generated based on the upper limit of the forward error correction code rate, the code rate of the redundant data packet is adjusted in real time according to the bandwidth condition, the jitter generated by the network is effectively resisted, and the transmission quality is improved.
The method comprises the steps of determining a preset coding rate according to network rate limit information, preset hybrid retransmission limit information and success rate limit information, coding the coded data based on the preset coding rate to obtain a coded data packet, determining hybrid retransmission rate limit information according to an actual coding rate of a coder in the coding process and the actual hybrid retransmission limit information, performing hybrid retransmission processing on the coded data packet based on the hybrid retransmission rate limit information, guaranteeing enough coding rate based on the preset coding rate before coding, guaranteeing enough transmission success rate based on the hybrid retransmission rate limit information after coding, allocating bandwidth resources more reasonably, and effectively improving data transmission effect. According to the scheme, a bandwidth allocation strategy based on a two-segment optimization problem is adopted, a preset coding code rate is determined by taking a maximized code rate as a target before coding, mixed retransmission code rate limiting information is determined by taking a maximized transmission success probability as a target after coding, the work of a coder and data transmission is coordinated, the bandwidth utilization rate can be effectively improved, and the situations of frame loss, blockage and the like can be reduced in a real-time streaming media transmission scene.
Fig. 3 is a schematic structural diagram of a data transmission control apparatus according to an embodiment of the present application. Referring to fig. 3, the data transmission control apparatus includes a preset code rate determining module 31, an encoding processing module 32, a retransmission code rate determining module 33, and a data transmission control module 34.
The preset code rate determining module 31 is configured to acquire network code rate limiting information corresponding to a transmission link, and determine a preset coding code rate based on the network code rate limiting information, the preset hybrid retransmission limiting information, and the success rate limiting information; the encoding processing module 32 is configured to perform encoding processing on the data to be encoded through the encoder based on a preset encoding rate to obtain an encoded data packet; a retransmission code rate determining module 33, configured to obtain an actual coding code rate of the encoder in the coding process, and determine hybrid retransmission code rate limitation information corresponding to the hybrid retransmission policy based on the actual coding code rate and the actual hybrid retransmission limitation information; and the data transmission control module 34 is configured to send the encoded data packet and perform hybrid retransmission processing on the encoded data packet based on the hybrid retransmission rate limit information.
The method comprises the steps of determining a preset coding rate according to network rate limit information, preset hybrid retransmission limit information and success rate limit information, coding the coded data based on the preset coding rate to obtain a coded data packet, determining hybrid retransmission rate limit information according to an actual coding rate of a coder in the coding process and the actual hybrid retransmission limit information, performing hybrid retransmission processing on the coded data packet based on the hybrid retransmission rate limit information, guaranteeing enough coding rate based on the preset coding rate before coding, guaranteeing enough transmission success rate based on the hybrid retransmission rate limit information after coding, allocating bandwidth resources more reasonably, and effectively improving data transmission effect.
On the basis of the above embodiment, the preset code rate determining module 31 is configured to solve the maximum preset coding code rate meeting the code rate constraint condition based on the network code rate limitation information and the code rate constraint conditions corresponding to the preset retransmission code rate, the preset forward error correction code rate and the lower success rate limit value.
On the basis of the above embodiment, the code rate constraint condition is determined based on the following formula:
wherein the content of the first and second substances,for a predetermined coding rate, in conjunction with a predetermined coding rate>For estimating transmission success rate information, based on the estimated transmission success rate>For a predetermined lower transmission success rate limit>For a predetermined retransmission code rate, is asserted>For presetting a forward error correction code rate, <>Is network code rate restriction information.
On the basis of the above embodiment, the estimated transmission success rate information is determined based on the following formula:
wherein the content of the first and second substances,for the corresponding pre-set retransmission success rate information in case of only automatic retransmission request,the information is corresponding preset forward error correction success rate information under the condition of only forward error correction;
the preset retransmission success rate information is determined based on the following formula:
wherein, the first and the second end of the pipe are connected with each other,for a preset maximum number of retransmissions>In order to transmit packet loss rate, in conjunction with the transmission>The effective occupation ratio of the retransmission packet corresponding to the automatic retransmission strategy is obtained;
the pre-set error correction success rate information is determined based on the following formula:
wherein the content of the first and second substances,indicating rounding down, cr MTU Is the link data packet code rate upper limit.
On the basis of the foregoing embodiment, the encoding processing module 32 is configured to perform encoding processing on the data to be encoded by using a preset encoding rate as an upper limit of the encoding rate, so as to obtain an encoded data packet.
On the basis of the foregoing embodiment, when determining the hybrid retransmission rate limit information corresponding to the hybrid retransmission policy based on the actual coding rate and the actual hybrid retransmission limit information, the retransmission rate determination module 33 is configured to:
solving the maximum target transmission success rate which accords with the success rate constraint condition based on the actual coding code rate and the success rate constraint condition corresponding to the actual retransmission code rate and the actual forward error correction code rate;
and determining the hybrid retransmission code rate limitation information corresponding to the hybrid retransmission strategy based on the target transmission success rate.
On the basis of the above embodiment, when determining the hybrid retransmission code rate restriction information corresponding to the hybrid retransmission policy based on the target transmission success rate, the retransmission code rate determination module 33 is configured to determine the actual retransmission code rate and the actual forward error correction code rate corresponding to the target transmission success rate as the retransmission code rate upper limit and the forward error correction code rate upper limit corresponding to the hybrid retransmission policy.
On the basis of the above embodiment, the success rate constraint condition is determined based on the following formula:
wherein the content of the first and second substances,for the actual retransmission code rate, is asserted>For the actual forward error correction code rate>For the actual coding rate, is>Network code rate restriction information.
On the basis of the above embodiment, the target transmission success rate is determined based on the following formula:
wherein, the first and the second end of the pipe are connected with each other,for the corresponding actual retransmission success rate information in case of only automatic retransmission request,the actual forward error correction success rate information is corresponding to the situation that only forward error correction exists;
the actual retransmission success rate information is determined based on the following formula:
wherein the content of the first and second substances,is a preset maximum number of retransmissions->In order to transmit packet loss rate, in conjunction with the transmission>The effective occupation ratio of the retransmission packet corresponding to the automatic retransmission strategy is obtained;
the actual forward error correction success rate information is determined based on the following formula:
wherein the content of the first and second substances,indicating rounding down, cr MTU Is the link data packet code rate upper limit.
On the basis of the foregoing embodiment, when performing hybrid retransmission processing on the coded data packet based on the hybrid retransmission rate limit information, the data transmission control module 34 is configured to:
under the condition that packet loss occurs, determining whether to resend the data packet or not based on the retransmission code rate upper limit corresponding to the hybrid retransmission code rate limiting information and the real-time data sending rate;
and generating and sending a redundant data packet corresponding to the coded data packet based on the forward error correction code rate upper limit corresponding to the hybrid retransmission code rate limiting information.
It should be noted that, in the embodiment of the data transmission control device, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
The embodiment of the application also provides data transmission control equipment, and the data transmission control equipment can be integrated with the data transmission control device provided by the embodiment of the application. Fig. 4 is a schematic structural diagram of a data transmission control device according to an embodiment of the present application. Referring to fig. 4, the data transmission control apparatus includes: an input device 43, an output device 44, a memory 42, and one or more processors 41; a memory 42 for storing one or more programs; when the one or more programs are executed by the one or more processors 41, the one or more processors 41 are caused to implement the data transmission control method as provided in the above-described embodiments. The data transmission control device, the equipment and the computer provided by the above can be used for executing the data transmission control method provided by any of the above embodiments, and have corresponding functions and beneficial effects.
Embodiments of the present application also provide a non-volatile storage medium storing computer-executable instructions, which when executed by a computer processor, are used to perform the data transmission control method provided by the above embodiments. Of course, the non-volatile storage medium storing the computer-executable instructions provided in the embodiments of the present application is not limited to the data transmission control method provided above, and may also perform related operations in the data transmission control method provided in any embodiments of the present application. The data transmission control device, the apparatus, and the storage medium provided in the foregoing embodiments may execute the data transmission control method provided in any embodiment of the present application, and refer to the data transmission control method provided in any embodiment of the present application without detailed technical details described in the foregoing embodiments.
On the basis of the foregoing embodiments, the embodiments of the present application further provide a computer program product, where a technical solution of the present application, or a part or all or part of the technical solution that contributes to the prior art, may be embodied in the form of a software product, where the computer program product is stored in a storage medium, and includes several instructions to enable a computer device, a mobile terminal, or a processor therein to execute all or part of the steps of the data transmission control method provided in the embodiments of the present application.
Claims (14)
1. A data transmission control method, comprising:
acquiring network code rate limiting information corresponding to a transmission link, and determining a preset coding code rate based on the network code rate limiting information, preset hybrid retransmission limiting information and success rate limiting information;
based on the preset coding rate, coding data to be coded through a coder to obtain a coded data packet;
acquiring an actual coding rate of the encoder in a coding process, and determining hybrid retransmission rate limit information corresponding to a hybrid retransmission strategy based on the actual coding rate and actual hybrid retransmission limit information;
and sending the coded data packet, and performing hybrid retransmission processing on the coded data packet based on the hybrid retransmission code rate limiting information.
2. The method of claim 1, wherein the determining a preset coding rate based on the network rate restriction information and preset hybrid retransmission restriction information and success rate restriction information comprises:
and solving the maximum preset coding rate which accords with the code rate constraint condition based on the network code rate limitation information and the code rate constraint conditions corresponding to the preset retransmission code rate, the preset forward error correction code rate and the lower limit value of the success rate.
3. The data transmission control method of claim 2, wherein the code rate constraint is determined based on the following formula:
wherein the content of the first and second substances,for a predetermined coding rate, is greater or less>For estimating the transmission success rate information, is selected>Is a preset lower limit of transmission success rate>For a predetermined retransmission code rate, is asserted>For presetting forward error correction code rate, based on the preset forward error correction code rate>Is network code rate restriction information.
4. The data transmission control method of claim 3, wherein the estimated transmission success rate information is determined based on the following formula:
wherein the content of the first and second substances,for corresponding preset retransmission success rate information in case of only automatic retransmission requests, ->The information is corresponding preset forward error correction success rate information under the condition of only forward error correction;
the preset retransmission success rate information is determined based on the following formula:
wherein the content of the first and second substances,is a preset maximumNumber of retransmissions>For transmission packet loss rate, based on the transmission packet loss rate>The effective occupation ratio of the retransmission packet corresponding to the automatic retransmission strategy is obtained;
the preset directional error correction success rate information is determined based on the following formula:
5. The data transmission control method according to claim 1, wherein the encoding the data to be encoded by the encoder based on the preset encoding rate to obtain the encoded data packet comprises:
and with the preset coding rate as the upper limit of the coding rate, coding the data to be coded by the coder to obtain a coded data packet.
6. The method of claim 1, wherein the determining hybrid retransmission code rate limitation information corresponding to a hybrid retransmission strategy based on the actual coding code rate and the actual hybrid retransmission limitation information comprises:
based on the actual coding code rate and the success rate constraint conditions corresponding to the actual retransmission code rate and the actual forward error correction code rate, solving the maximum target transmission success rate which meets the success rate constraint conditions;
and determining hybrid retransmission code rate limitation information corresponding to the hybrid retransmission strategy based on the target transmission success rate.
7. The method according to claim 6, wherein the determining the harq rate limitation information corresponding to the harq strategy based on the target transmission success rate includes:
and determining the actual retransmission code rate and the actual forward error correction code rate corresponding to the target transmission success rate as the retransmission code rate upper limit and the forward error correction code rate upper limit corresponding to the hybrid retransmission strategy.
8. The data transmission control method of claim 6, wherein the success rate constraint is determined based on the following formula:
9. The data transmission control method of claim 8, wherein the target transmission success rate is determined based on the following formula:
wherein, the first and the second end of the pipe are connected with each other,for corresponding actual retransmission success rate information in case of only automatic retransmission requests, ->The actual forward error correction success rate information is corresponding to the situation that only forward error correction exists; />
The actual retransmission success rate information is determined based on the following formula:
wherein the content of the first and second substances,is a preset maximum number of retransmissions->For transmission packet loss rate, based on the transmission packet loss rate>The effective occupation ratio of the retransmission packet corresponding to the automatic retransmission strategy is obtained;
the actual forward error correction success rate information is determined based on the following formula:
10. The data transmission control method according to claim 1, wherein the performing hybrid retransmission processing on the coded data packet based on the hybrid retransmission code rate limitation information includes:
under the condition that packet loss occurs, determining whether to resend the data packet or not based on the retransmission code rate upper limit corresponding to the hybrid retransmission code rate limiting information and the real-time data sending rate;
and generating and sending a redundant data packet corresponding to the coded data packet based on the forward error correction code rate upper limit corresponding to the hybrid retransmission code rate limiting information.
11. A data transmission control device is characterized by comprising a preset code rate determining module, a coding processing module, a retransmission code rate determining module and a data transmission control module, wherein:
the preset code rate determining module is configured to acquire network code rate limiting information corresponding to a transmission link, and determine a preset coding code rate based on the network code rate limiting information, preset hybrid retransmission limiting information and success rate limiting information;
the encoding processing module is configured to perform encoding processing on the data to be encoded through an encoder based on the preset encoding rate to obtain an encoded data packet;
the retransmission code rate determining module is configured to acquire an actual coding code rate of the encoder in a coding process, and determine hybrid retransmission code rate limitation information corresponding to a hybrid retransmission strategy based on the actual coding code rate and actual hybrid retransmission limitation information;
and the data transmission control module is configured to send the coded data packet and perform hybrid retransmission processing on the coded data packet based on the hybrid retransmission rate limit information.
12. A data transmission control apparatus characterized by comprising: a memory and one or more processors;
the memory to store one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the data transmission control method of any one of claims 1-10.
13. A non-volatile storage medium storing computer-executable instructions, which when executed by a computer processor, are for performing the data transfer control method of any one of claims 1-10.
14. A computer program product comprising a computer program, characterized in that the computer program realizes the data transmission control method of any of claims 1-10 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211546450.1A CN115987462A (en) | 2022-12-02 | 2022-12-02 | Data transmission control method, device, equipment, storage medium and product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211546450.1A CN115987462A (en) | 2022-12-02 | 2022-12-02 | Data transmission control method, device, equipment, storage medium and product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115987462A true CN115987462A (en) | 2023-04-18 |
Family
ID=85967167
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211546450.1A Pending CN115987462A (en) | 2022-12-02 | 2022-12-02 | Data transmission control method, device, equipment, storage medium and product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115987462A (en) |
-
2022
- 2022-12-02 CN CN202211546450.1A patent/CN115987462A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6699834B2 (en) | Video data redundancy control method and apparatus | |
RU2469482C2 (en) | Method and system for data transfer in data transfer network | |
KR20070114056A (en) | Method and apparatus of handling packet data in a wireless communications system | |
CN114095130A (en) | Unmanned aerial vehicle, ground station thereof and data transmission method | |
CN110391879B (en) | Packet loss recovery method and device for data transmission network and computer equipment | |
MXPA06013436A (en) | Methods and apparatus for hybrid multicast and unicast transmissions in a data network. | |
CN115314479B (en) | Fault-tolerant control method and system for stream media transmission | |
US20160269918A1 (en) | Cross-layer optimization in multimedia communications | |
CN1860711A (en) | Communication method, terminal and base station | |
CN101969372B (en) | Frame loss prediction based cellular network uplink video communication QoS (Quality of Service) optimization method | |
CN103354615A (en) | Signal intensity based live video data transmission error control method | |
CN1391374A (en) | Selective grouping retransmission with time control on transmitter terminal | |
CN109587488A (en) | A kind of choosing method for the long reference frame predicted based on rate-distortion optimization and frame losing | |
CN115987462A (en) | Data transmission control method, device, equipment, storage medium and product | |
CN116094661A (en) | Data transmission control method, device, equipment, storage medium and product | |
CN116920364A (en) | Data processing method, device, electronic equipment and storage medium | |
CN116318545A (en) | Video data transmission method, device, equipment and storage medium | |
JP4217534B2 (en) | Packet transmitting apparatus, packet receiving apparatus, method, and program | |
WO2021164405A1 (en) | Data encoding and decoding methods, and related device and system | |
CN113660067A (en) | HARQ scheduling method and device for NR system | |
CN109690991B (en) | Feedback information sending method, receiving method, device and system | |
CN102594534A (en) | Data transmission method, device and system | |
CN117614590A (en) | Method, device and equipment for determining redundancy code rate based on hybrid retransmission | |
CN1190091C (en) | Dynamic channel allocation combined data retransmitting method in time-division duplex system | |
US20200195408A1 (en) | Puncturing of enhanced mobile broadband |
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 |