A data transmission control method, device, equipment, storage medium and product

By dynamically adjusting the encoding code rate and hybrid retransmission code rate based on network code rate limit information and hybrid retransmission limit information during data transmission, the problem of hybrid automatic retransmission request occupies bandwidth resources, and improves the reliability of data transmission Sex and efficiency.

CN115987462BActive Publication Date: 2025-02-18BIGO TECH PTE LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211546450.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2025-02-18
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

Hybrid automatic resend requests occupy a large amount of bandwidth resources during data transmission, resulting in poor data transmission effect and prone to problems such as frame dropout and empty broadcast.

Method used

By obtaining the network code rate limit information, preset mixed retransmission limit information and success rate limit information of the transmission link, the preset code rate is determined, and the actual code rate and the actual mixed retransmission limit information are based on the actual code rate and the actual mixed retransmission limit information during the encoding process. Determine the hybrid retransmission bit rate limit information, so as to reasonably allocate bandwidth resources and perform hybrid retransmission processing.

Benefits of technology

Ensure sufficient encoding rate before encoding, ensure sufficient transmission success rate after encoding, allocate bandwidth resources more reasonably, effectively improve data transmission effect, and reduce frame drops and empty play situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115987462B_ABST
    Figure CN115987462B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a data transmission control method, device, equipment, storage medium and product. The technical solution provided by the embodiments of the present application determines a preset encoding rate according to network rate limit information, preset hybrid retransmission limit information and success rate limit information, encodes the data to be encoded based on the preset encoding rate to obtain an encoded data packet, determines hybrid retransmission rate limit information according to the actual encoding rate of the encoder during the encoding process and the actual hybrid retransmission limit information, and performs hybrid retransmission processing on the encoded data packet based on the hybrid retransmission rate limit information, ensures a sufficient encoding rate based on the preset encoding rate before encoding, and ensures a sufficient transmission success rate based on the hybrid retransmission rate limit information after encoding, so as to more reasonably allocate bandwidth resources and effectively improve the data transmission effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of coding technology, and in particular, to a data transmission control method, device, equipment, storage medium and product. Background Art

[0002] During the transmission of media data, data packets are easily lost due to transmission link congestion, multipath fading, data packet damage, etc. In order to ensure the reliability of data transmission, hybrid retransmission processing is generally performed on data packets based on hybrid automatic repeat request (HARQ) including automatic repeat request (ARQ) and forward error correction (FEC).

[0003] Although hybrid automatic retransmission request can effectively recover lost media data packets, too many automatic retransmission requests and forward error correction redundant packets will occupy a large amount of bandwidth resources, resulting in the accumulation of media data packets, which is prone to frame loss and blank playback of media data, resulting in poor data transmission effect. Summary of the invention

[0004] The embodiments of the present application provide a data transmission control method, apparatus, device, storage medium and product to solve the technical problem in the related art that hybrid automatic retransmission request occupies a large amount of bandwidth resources and the data transmission effect is poor, so as to reasonably allocate bandwidth resources and effectively improve the data transmission effect.

[0005] In a first aspect, an embodiment of the present application provides a data transmission control method, including:

[0006] Obtaining network rate limitation information corresponding to the transmission link, and determining a preset encoding rate based on the network rate limitation information and preset hybrid retransmission limitation information and success rate limitation information;

[0007] Based on the preset encoding bit rate, encoding the data to be encoded is performed by an encoder to obtain an encoded data packet;

[0008] Acquire an actual encoding bit rate of the encoder during the encoding process, and determine hybrid retransmission bit rate limit information corresponding to the hybrid retransmission strategy based on the actual encoding bit rate and actual hybrid retransmission limit information;

[0009] The encoded data packet is sent, and hybrid retransmission processing is performed on the encoded data packet based on the hybrid retransmission rate limiting information.

[0010] In a second aspect, an embodiment of the present application provides a data transmission control device, including a preset bit rate determination module, a coding processing module, a retransmission bit rate determination module and a data transmission control module, wherein:

[0011] The preset bit rate determination module is configured to obtain network bit rate limitation information corresponding to the transmission link, and determine the preset encoding bit rate based on the network bit rate limitation information and preset hybrid retransmission limitation information and success rate limitation information;

[0012] The encoding processing module is configured to perform encoding processing on the data to be encoded through an encoder based on the preset encoding bit rate to obtain an encoded data packet;

[0013] The retransmission rate determination module is configured to obtain an actual encoding rate of the encoder during the encoding process, and determine the hybrid retransmission rate limit information corresponding to the hybrid retransmission strategy based on the actual encoding rate and the actual hybrid retransmission limit information;

[0014] 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 rate limiting information.

[0015] In a third aspect, an embodiment of the present application provides a data transmission control device, including: a memory and one or more processors;

[0016] The memory is used to store one or more programs;

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the data transmission control method as described in the first aspect.

[0018] In a fourth aspect, an embodiment of the present application provides a non-volatile storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the data transmission control method as described in the first aspect.

[0019] In the fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and at least one processor of the device reads and executes the computer program from the computer-readable storage medium, so that the device performs the data transmission control method as described in the first aspect.

[0020] The embodiments of the present application determine a preset encoding rate according to network rate limitation information, preset hybrid retransmission limitation information and success rate limitation information, encode the data to be encoded based on the preset encoding rate to obtain an encoded data packet, determine hybrid retransmission rate limitation information according to the actual encoding rate of the encoder during the encoding process and the actual hybrid retransmission limitation information, and perform hybrid retransmission processing on the encoded data packet based on the hybrid retransmission rate limitation information. By ensuring a sufficient encoding rate based on the preset encoding rate before encoding and ensuring a sufficient transmission success rate based on the hybrid retransmission rate limitation information after encoding, bandwidth resources are allocated more reasonably and the data transmission effect is effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a flow chart of a data transmission control method provided by an embodiment of the present application;

[0022] Figure 2 It is a schematic diagram of a hybrid retransmission rate limiting information determination process provided by an embodiment of the present application;

[0023] Figure 3 is a structural schematic diagram of a data transmission control device provided in an embodiment of the present application;

[0024] Figure 4 It is a structural diagram of a data transmission control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The above process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The above process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0026] The data transmission control method provided by the present application can be applied to the code control, encoding and transmission process in the live data transmission link, and is intended to reasonably allocate bandwidth resources and effectively improve the data transmission effect by ensuring sufficient encoding bit rate based on the preset encoding bit rate before encoding, and ensuring sufficient transmission success rate based on the hybrid retransmission bit rate limit information after encoding. When allocating bandwidth resources, traditional data transmission control generally uses the value corresponding to the estimated bandwidth*(1-link packet loss rate) as the encoding guidance bit rate to calculate the preset frame rate and resolution. However, this scheme does not consider the effectiveness of the hybrid automatic retransmission request strategy. In fact, in scenarios where there are requirements for transmission delay, too many automatic retransmission requests and forward error correction redundant packets will occupy a large amount of bandwidth resources, resulting in the accumulation of media data packets, and it is easy to cause frame loss and broadcast space in media data playback, and the data transmission effect is poor. Based on this, a data transmission control method of an embodiment of the present application is provided, which has solved the technical problem of poor data transmission effect of the existing data transmission control method.

[0027] Figure 1 A flow chart of a data transmission control method provided in an embodiment of the present application is given. The data transmission control method provided in an embodiment of the present application can be executed by a data transmission control device, which can be implemented by hardware and / or software and integrated in a data transmission control device.

[0028] The following description is made by taking the data transmission control method executed by the data transmission control device as an example. Figure 1 , the data transmission control method comprises:

[0029] S101: Obtain network rate limitation information corresponding to a transmission link, and determine a preset encoding rate based on the network rate limitation information and preset hybrid retransmission limitation information and success rate limitation information.

[0030] The network bit rate limit information corresponding to the transmission link provided by this solution can be provided by a set congestion control module, which can collect the link bandwidth, transmission packet loss rate, etc. corresponding to the transmission link in real time, and control the sending window to send the encoded data packet based on the set congestion control algorithm. Optionally, the network bit rate limit information corresponding to the transmission link can be determined based on the link bandwidth corresponding to the transmission link.

[0031] Among them, the network bit rate limit information can be understood as the maximum encoding bit rate for image encoding under the bandwidth resources currently owned by the transmission link, which is estimated by the congestion control module based on the collected network conditions of the transmission link. The preset hybrid retransmission limit information can be understood as the restriction on the execution of the hybrid retransmission strategy by the pre-configured hybrid retransmission module (for example, limiting the upper limit of the bit rate corresponding to the hybrid retransmission strategy), and the success rate limit information can be understood as the lower limit of the success rate of the transmission link to successfully send data packets (for example, the lower limit value of the success rate), and the success rate limit information can be set based on the actual business scenario.

[0032] Exemplarily, the network rate limit information corresponding to the transmission link (which can be determined by the real-time link bandwidth of the transmission link) and the transmission packet loss rate are obtained from the congestion control module, and the preset encoding rate is calculated according to the network rate limit information obtained above, the preset hybrid retransmission limit information and the preset success rate limit information.

[0033] In a possible embodiment, the data transmission control method provided by the present scheme, when determining the preset coding rate based on network rate limitation information and preset mixed retransmission limitation information and success rate limitation information, can be based on the network rate limitation information and the rate constraints corresponding to the preset retransmission rate, the preset forward error correction rate and the success rate lower limit value, to solve the maximum preset coding rate that meets the rate constraint conditions.

[0034] The hybrid retransmission strategy provided by the present solution includes an automatic repeat request (ARQ) strategy and a forward error correction (FEC) strategy, and correspondingly, the preset hybrid retransmission restriction information includes a preset retransmission code rate and a preset forward error correction code rate. Among them, the preset retransmission code rate can be understood as a code rate limit corresponding to the automatic repeat request strategy preset before encoding, and the preset forward error correction code rate can be understood as a code rate limit corresponding to the forward error correction strategy preset before encoding.

[0035] Exemplarily, after determining the network rate limit information corresponding to the transmission link, obtain the preset retransmission rate, the preset forward error correction rate and the lower limit of the success rate, and determine the current rate constraint based on the network rate limit information, the preset retransmission rate, the preset forward error correction rate and the lower limit of the success rate. Further, solve the maximum preset encoding rate that meets the above-mentioned rate constraint. This solution determines the maximum preset encoding rate based on the network rate limit information and the rate constraints corresponding to the preset retransmission rate, the preset forward error correction rate and the lower limit of the success rate, determines the maximum preset encoding rate before the encoding process, and allocates more bandwidth resources to the encoder for encoding based on the network conditions before the encoding process, thereby improving the image encoding quality.

[0036] In a possible embodiment, when the encoding process of the to-be-encoded data is triggered at time t, the preset encoding bit rate provided by the present solution may be determined based on the following optimization problem O1: in is the preset encoding bit rate, that is, the optimization problem O1 is to solve the maximum preset encoding bit rate under the bit rate constraint.

[0037] In a possible embodiment, the bit rate constraint provided by this solution can be determined based on the following formula:

[0038]

[0039] in, is the preset encoding bit rate, To estimate the transmission success rate information, is the preset lower limit of the transmission success rate, is the preset retransmission rate, is the preset forward error correction code rate, is the network bit rate restriction information. Among them, C11-C14 are different restriction conditions corresponding to the bit rate constraint conditions, C11 is the transmission success rate restriction condition, and C12-C14 are the bit rate restriction conditions corresponding to the hybrid retransmission strategy.

[0040] In a possible embodiment, the estimated transmission success rate information provided by this solution can be determined based on the following formula:

[0041]

[0042] in, is the preset retransmission success rate information corresponding to the case of only automatic repeat request (ARQ), It is the preset forward error correction success rate information corresponding to the case of only forward error correction (FEC).

[0043] In one embodiment, the preset retransmission success rate information provided by the present solution can be determined based on the preset retransmission code rate, the preset encoding code rate and the transmission packet loss rate, that is, in The preset forward error correction success rate information can be determined based on the preset retransmission code rate, the preset encoding code rate and the transmission packet loss rate, that is,

[0044] In one possible embodiment, r The expansion of (·) can be:

[0045]

[0046] In a possible embodiment, the preset retransmission success rate information provided by this solution can be determined based on the following formula:

[0047]

[0048] in, is the preset maximum number of retransmissions, is the transmission packet loss rate, is the effective proportion of retransmission packets corresponding to the automatic retransmission strategy, which can be determined according to the automatic retransmission request strategy (can be obtained by statistical calculation in the sending window), is the maximum number of retransmissions in the current business scenario, which is generally determined by the set delay requirement. This solution sets it to a constant. It can be understood as the maximum transmission success probability that the automatic repeat request strategy can achieve under the maximum number of retransmissions.

[0049] It needs to be explained that the preset retransmission success rate information and preset retransmission success rate information The corresponding derivatives can be obtained by taking the derivatives: and Since the success rate is less than or equal to 1, the estimated transmission success rate information can be determined and preset retransmission success rate information And preset retransmission success rate information The relationship between is monotonic.

[0050] Then for the preset retransmission code rate Taking the derivative we get:

[0051]

[0052] because Greater than or equal to 0 (greater than 0 in most scenarios), so the retransmission success rate information is preset and preset retransmission rate The relationship between is also monotonic.

[0053] In a possible embodiment, taking the RS (Reed Solomon) error correction code algorithm as an example, P f The expansion of (·) can be:

[0054]

[0055] In a possible embodiment, the preset forward error correction success rate information provided by this solution can be determined based on the following formula:

[0056]

[0057] in, Indicates rounding down, crMTU is the upper limit of the link packet rate, and MTU is the packet size or average packet size of the data packet (encoded data packet) in the transmission link. Packet loss rate When the forward error correction code rate is constant and both greater than or equal to 0, the forward error correction code rate is preset The larger the value, the higher the probability of successful transmission, that is, the preset forward error correction success rate information With the preset FEC bit rate is a monotonic relationship. Then, due to the estimated transmission success rate information and preset retransmission success rate information And preset forward error correction success rate information All are monotonic relationships, with preset retransmission success rate information Preset forward error correction success rate information and preset retransmission rate Preset FEC bit rate are monotonically related, then the estimated transmission success rate information and preset retransmission rate And preset forward error correction code rate The same monotonic relationship can be determined for the optimization problem As it is a convex problem, the optimization problem O1 can be solved by the Lagrange dual method to obtain the maximum preset coding rate that meets the rate constraint. For example, the optimization problem O1 can be solved by using a packaged convex optimization problem parsing library such as MATLAB's CVX and Optimization Toolbox to quickly and accurately determine the preset coding rate.

[0058] S102: Based on a preset encoding bit rate, an encoder encodes the data to be encoded to obtain an encoded data packet.

[0059] Exemplarily, after determining the preset encoding bit rate, the preset encoding bit rate is sent to the encoder, and the encoder obtains the data to be encoded that needs to be encoded from the encoding queue, and encodes the data to be encoded based on the preset encoding bit rate (so that the actual encoding bit rate of the encoder is consistent with or close to the preset encoding bit rate) to obtain an encoded data packet.

[0060] In a possible embodiment, the data transmission control method provided by the present scheme, based on a preset coding rate, encodes the data to be encoded by an encoder to obtain a coded data packet, including: using the preset coding rate as the upper limit of the coding rate, encoding the data to be encoded by an encoder to obtain a coded data packet.

[0061] Exemplarily, after obtaining the data to be encoded that needs to be encoded, the encoder uses a preset encoding rate as the upper limit of the encoding rate for encoding the data to be encoded, and encodes the data to be encoded to obtain an encoded data packet. For example, the code control module in the encoder determines the encoding frame rate and resolution with the preset encoding rate as the upper limit of the encoding rate, and the encoding module in the encoder encodes the data to be encoded according to the encoding frame rate and resolution determined by the code control module to obtain an encoded data packet.

[0062] This solution determines the maximum preset encoding bit rate before encoding, encodes the data to be encoded with the maximum preset encoding bit rate as the encoding bit rate upper limit, sets the encoding bit rate upper limit for the code control and encoding modules, so that the encoder performs image encoding under the limitation of the current maximum available preset encoding bit rate, thereby improving the image encoding quality.

[0063] S103: Acquire the actual encoding bit rate of the encoder during the encoding process, and determine the hybrid retransmission bit rate limitation information corresponding to the hybrid retransmission strategy based on the actual encoding bit rate and the actual hybrid retransmission limitation information.

[0064] When the encoder provided by the present solution encodes the data to be encoded based on the preset encoding rate, there may be a situation where the actual encoding rate is inconsistent with the preset encoding rate. When the encoder encodes the data to be encoded, the actual encoding rate in the encoding process is recorded. At the same time, the hybrid retransmission module controls the corresponding actual hybrid retransmission restriction information in the transmission process of the encoded data packet based on the set hybrid retransmission strategy.

[0065] Exemplarily, the actual encoding bit rate of the encoder during the encoding process and the actual mixed retransmission limit information corresponding to the mixed retransmission module during the control of the sending process of the encoded data packet are obtained, and the mixed retransmission bit rate limit information corresponding to the mixed retransmission strategy is determined based on the actual encoding bit rate and the actual mixed retransmission limit information.

[0066] In one possible embodiment, Figure 2 As shown in a schematic diagram of a hybrid retransmission rate limit information determination process, the data transmission control method provided by this scheme is based on the actual coding rate and the actual hybrid retransmission limit information, and when determining the hybrid retransmission rate limit information corresponding to the hybrid retransmission strategy, it includes:

[0067] S1031: Based on the success rate constraints corresponding to the actual encoding code rate, the actual retransmission code rate, and the actual forward error correction code rate, solve the maximum target transmission success rate that meets the success rate constraints.

[0068] S1032: Determine hybrid retransmission rate limit information corresponding to the hybrid retransmission strategy based on the target transmission success rate.

[0069] The hybrid retransmission strategy provided by this solution includes an automatic repeat request strategy and a forward error correction strategy. Correspondingly, the actual hybrid retransmission restriction information includes the actual retransmission code rate corresponding to the automatic repeat request strategy and the actual forward error correction code rate corresponding to the forward error correction strategy.

[0070] Exemplarily, the actual coding code rate, the actual retransmission code rate, and the actual forward error correction code rate are obtained, and the current success rate constraint is determined based on the actual coding code rate, the actual retransmission code rate, and the actual forward error correction code rate, and the maximum target transmission success rate that meets the above success rate constraint is solved, and based on the maximum target transmission success rate, the mixed retransmission code rate limitation information corresponding to the mixed retransmission strategy under the success rate constraint is determined.

[0071] In one possible embodiment, the data transmission control method provided by the present scheme, when determining the hybrid retransmission code rate limit information corresponding to the hybrid retransmission strategy based on the target transmission success rate, includes: 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.

[0072] Exemplarily, after determining the maximum target transmission success rate, the actual retransmission code rate and the actual forward error correction code rate corresponding to the maximum target transmission success rate are determined under the success rate constraint condition, and the actual retransmission code rate and the actual forward error correction code rate corresponding to the maximum target transmission success rate are determined as the retransmission code rate upper limit and the forward error correction code rate upper limit corresponding to the hybrid retransmission strategy. This scheme determines the maximum target transmission success rate 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 determines the hybrid retransmission code rate limit information corresponding to the hybrid retransmission strategy according to the maximum target transmission success rate, so as to improve the success rate of data transmission while ensuring the coding quality, and effectively improve the data transmission effect.

[0073] In a possible embodiment, the target transmission success rate provided by this solution can be determined based on the following optimization problem O2: in is the target transmission success rate, that is, the optimization problem O1 is to solve the maximum target transmission success rate under the success rate constraint.

[0074] In a possible embodiment, the success rate constraint provided by this solution can be determined based on the following formula:

[0075]

[0076] in, is the actual retransmission bit rate, is the actual forward error correction code rate, is the actual encoding bit rate, Network rate limit information.

[0077] In a possible embodiment, the target transmission success rate provided by this solution can be determined based on the following formula:

[0078]

[0079] in, is the actual retransmission success rate information corresponding to the case of only automatic retransmission request, is the actual forward error correction success rate information corresponding to the case of only forward error correction;

[0080] The actual retransmission success rate information provided by this solution can be determined based on the following formula:

[0081]

[0082] in, is the preset maximum number of retransmissions, is the transmission packet loss rate, It is the effective ratio of retransmitted packets corresponding to the automatic retransmission strategy.

[0083] The actual forward error correction success rate information provided by this solution can be determined based on the following formula:

[0084]

[0085] in, Indicates rounding down, cr MTU The upper limit of the link packet rate.

[0086] Referring to the relationship between the success rate 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 Lagrange dual method to obtain the maximum target transmission success rate that meets the success rate constraint.

[0087] S104: Send the encoded data packet, and perform hybrid retransmission processing on the encoded data packet based on the hybrid retransmission rate limiting information.

[0088] Exemplarily, a coded data packet is sent to a set server, and the server transcodes the coded data packet and sends the corresponding video data to each user terminal (such as a viewer terminal), and can confirm whether packet loss occurs according to the confirmation information (ACK information) returned by the server. When sending the coded data packet, the coded data packet is subjected to hybrid retransmission processing according to the hybrid retransmission bit rate limit information.

[0089] In one possible embodiment, the data transmission control method provided by the present scheme, when performing hybrid retransmission processing on a coded data packet based on hybrid retransmission rate limit information, includes: in the event of packet loss, determining whether to resend the data packet based on the retransmission rate upper limit corresponding to the hybrid retransmission rate limit information and the real-time data transmission rate; and generating and sending a redundant data packet corresponding to the coded data packet based on the forward error correction rate upper limit corresponding to the hybrid retransmission rate limit information.

[0090] Exemplarily, when it is determined that packet loss occurs according to the confirmation information returned by the server, the real-time data transmission rate of the current data link is obtained, and it is determined whether to resend the data packet according to the comparison between the retransmission rate upper limit corresponding to the hybrid retransmission rate limit information and the real-time data transmission rate. For example, when the retransmission rate upper limit is less than the real-time data transmission rate, it is determined to resend the data packet, and when the retransmission rate upper limit is greater than the real-time data transmission rate, it is determined not to resend the data packet.

[0091] At the same time, the hybrid retransmission module generates a redundant data packet corresponding to the coded data packet based on the set forward error correction strategy and the forward error correction rate upper limit corresponding to the hybrid retransmission rate limit information, and sends it to the set server.

[0092] This solution determines whether to resend a data packet based on the upper limit of the retransmission bit rate and the real-time data transmission rate, and adjusts the number of data retransmissions in real time according to the bandwidth conditions, thereby reducing the situation where the transmission link accumulates and causes playback jams. At the same time, redundant data packets corresponding to the encoded data packets are generated based on the upper limit of the forward error correction bit rate, and the bit rate of the redundant data packets is adjusted in real time according to the bandwidth conditions, effectively combating the jitter generated by the network and improving the transmission quality.

[0093] In the above, by determining the preset encoding rate according to the network bit rate limit information, the preset hybrid retransmission limit information and the success rate limit information, encoding the data to be encoded based on the preset encoding rate to obtain an encoded data packet, and determining the hybrid retransmission rate limit information according to the actual encoding rate of the encoder during the encoding process and the actual hybrid retransmission limit information, and performing hybrid retransmission processing on the encoded data packet based on the hybrid retransmission rate limit information, by ensuring a sufficient encoding rate based on the preset encoding rate before encoding, and by ensuring a sufficient transmission success rate based on the hybrid retransmission rate limit information after encoding, bandwidth resources are allocated more reasonably, and the data transmission effect is effectively improved. This scheme uses a bandwidth allocation strategy based on a two-stage optimization problem. Before encoding, the preset encoding rate is determined with the goal of maximizing the bit rate, and after encoding, the hybrid retransmission rate limit information is determined with the goal of maximizing the probability of successful transmission. This coordinates the work of the encoder and data transmission, and can effectively improve bandwidth utilization and reduce frame loss, freezes, etc. in real-time streaming media transmission scenarios.

[0094] Figure 3 Schematic diagram of a data transmission control device provided in an embodiment of the present application. Figure 3 The data transmission control device includes a preset code rate determination module 31, a coding processing module 32, a retransmission code rate determination module 33 and a data transmission control module 34.

[0095] Among them, the preset bit rate determination module 31 is configured to obtain the network bit rate limitation information corresponding to the transmission link, and determine the preset encoding bit rate based on the network bit rate limitation information and the preset hybrid retransmission limitation information and success rate limitation information; the encoding processing module 32 is configured to encode the data to be encoded by the encoder based on the preset encoding bit rate to obtain an encoded data packet; the retransmission bit rate determination module 33 is configured to obtain the actual encoding bit rate of the encoder during the encoding process, and determine the hybrid retransmission bit rate limitation information corresponding to the hybrid retransmission strategy based on the actual encoding bit rate and the actual hybrid retransmission limitation information; 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 bit rate limitation information.

[0096] In the above, by determining the preset encoding rate according to the network rate limitation information, the preset hybrid retransmission limitation information and the success rate limitation information, encoding the data to be encoded based on the preset encoding rate to obtain an encoded data packet, and determining the hybrid retransmission rate limitation information according to the actual encoding rate of the encoder during the encoding process and the actual hybrid retransmission limitation information, and performing hybrid retransmission processing on the encoded data packet based on the hybrid retransmission rate limitation information, by ensuring a sufficient encoding rate based on the preset encoding rate before encoding, and by ensuring a sufficient transmission success rate based on the hybrid retransmission rate limitation information after encoding, bandwidth resources are allocated more reasonably, and the data transmission effect is effectively improved.

[0097] Based on the above embodiment, the preset bit rate determination module 31 is configured to solve the maximum preset encoding bit rate that meets the bit rate constraint conditions based on the network bit rate limitation information and the bit rate constraints corresponding to the preset retransmission bit rate, the preset forward error correction bit rate and the success rate lower limit.

[0098] Based on the above embodiment, the code rate constraint condition is determined based on the following formula:

[0099]

[0100] in, is the preset encoding bit rate, To estimate the transmission success rate information, is the preset lower limit of the transmission success rate, is the preset retransmission rate, is the preset forward error correction code rate, It is the network bit rate limit information.

[0101] Based on the above embodiment, the estimated transmission success rate information is determined based on the following formula:

[0102]

[0103] in, is the preset retransmission success rate information corresponding to the case of only automatic retransmission request, is the preset forward error correction success rate information corresponding to the case of only forward error correction;

[0104] The preset retransmission success rate information is determined based on the following formula:

[0105]

[0106] in, is the preset maximum number of retransmissions, is the transmission packet loss rate, The effective proportion of retransmission packets corresponding to the automatic retransmission strategy;

[0107] The preset forward error correction success rate information is determined based on the following formula:

[0108]

[0109] in, Indicates rounding down, cr MTU The upper limit of the link packet rate.

[0110] On the basis of the above embodiment, the encoding processing module 32 is configured to use a preset encoding bit rate as the upper limit of the encoding bit rate, and to perform encoding processing on the data to be encoded through an encoder to obtain an encoded data packet.

[0111] On the basis of the above embodiment, when the retransmission rate determination module 33 determines the hybrid retransmission rate limit information corresponding to the hybrid retransmission strategy based on the actual encoding rate and the actual hybrid retransmission limit information, it is configured as follows:

[0112] Based on the success rate constraints corresponding to the actual encoding rate, the actual retransmission rate, and the actual forward error correction rate, the maximum target transmission success rate that meets the success rate constraints is solved;

[0113] The hybrid retransmission code rate limit information corresponding to the hybrid retransmission strategy is determined based on the target transmission success rate.

[0114] On the basis of the above embodiment, when the retransmission code rate determination module 33 determines the hybrid retransmission code rate limit information corresponding to the hybrid retransmission strategy based on the target transmission success rate, it 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 strategy.

[0115] Based on the above embodiment, the success rate constraint condition is determined based on the following formula:

[0116]

[0117] in, is the actual retransmission rate, is the actual forward error correction code rate, is the actual encoding bit rate, Network rate limit information.

[0118] Based on the above embodiment, the target transmission success rate is determined based on the following formula:

[0119]

[0120] in, is the actual retransmission success rate information corresponding to the case of only automatic retransmission request, is the actual forward error correction success rate information corresponding to the case of only forward error correction;

[0121] The actual retransmission success rate information is determined based on the following formula:

[0122]

[0123] in, is the preset maximum number of retransmissions, is the transmission packet loss rate, The effective proportion of retransmission packets corresponding to the automatic retransmission strategy;

[0124] The actual forward error correction success rate information is determined based on the following formula:

[0125]

[0126] in, Indicates rounding down, cr MTU The upper limit of the link packet rate.

[0127] On the basis of the above embodiment, when the data transmission control module 34 performs hybrid retransmission processing on the encoded data packet based on the hybrid retransmission rate limiting information, it is configured as follows:

[0128] In the event of packet loss, determine whether to resend the data packet based on the retransmission rate upper limit corresponding to the hybrid retransmission rate limit information and the real-time data transmission rate;

[0129] Based on the forward error correction code rate upper limit corresponding to the hybrid retransmission code rate limit information, a redundant data packet corresponding to the encoded data packet is generated and sent.

[0130] It is worth noting that in the embodiment of the above-mentioned data transmission control device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0131] The embodiment of the present application also provides a data transmission control device, which can integrate the data transmission control device provided in the embodiment of the present application. Figure 4 Schematic diagram of a data transmission control device provided by an embodiment of the present application. Figure 4 The data transmission control device includes: an input device 43, an output device 44, a memory 42 and one or more processors 41; the memory 42 is used to store one or more programs; when one or more programs are executed by one or more processors 41, the one or more processors 41 implement the data transmission control method provided in the above embodiment. The above-mentioned data transmission control device, equipment and computer can be used to execute the data transmission control method provided in any of the above embodiments, and have corresponding functions and beneficial effects.

[0132] The embodiment of the present application also provides a non-volatile storage medium storing computer executable instructions, which are used to execute the data transmission control method provided in the above embodiment when executed by a computer processor. Of course, the non-volatile storage medium storing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the data transmission control method provided above, can also execute the related operations in the data transmission control method provided in any embodiment of the present application. The data transmission control device, equipment and storage medium provided in the above embodiment can execute the data transmission control method provided in any embodiment of the present application. For technical details not described in detail in the above embodiment, please refer to the data transmission control method provided in any embodiment of the present application.

[0133] On the basis of the above embodiments, the embodiments of the present application also provide a computer program product. The essence of the technical solution of the present application or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer program product is stored in a storage medium, including a number of instructions for enabling 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 each embodiment of the present application.

Claims

1. A data transmission control method, characterized in that: include: Obtaining network rate restriction information corresponding to the transmission link, and solving a maximum preset encoding rate that meets the rate restriction conditions based on the network rate restriction information and the rate restriction conditions corresponding to the preset retransmission rate, the preset forward error correction rate, and the success rate lower limit value; Based on the preset encoding bit rate, encoding the data to be encoded is performed by an encoder to obtain an encoded data packet; Acquire an actual encoding bit rate of the encoder during the encoding process, and determine hybrid retransmission bit rate limit information corresponding to the hybrid retransmission strategy based on the actual encoding bit rate and actual hybrid retransmission limit information; Sending the encoded data packet, and performing hybrid retransmission processing on the encoded data packet based on the hybrid retransmission rate limiting information; The bit rate constraint is determined based on the following formula: in, is the preset encoding bit rate, To estimate the transmission success rate information, is the preset lower limit of the transmission success rate, is the preset retransmission rate, is the preset forward error correction code rate, Network bit rate limit information; The estimated transmission success rate information is determined based on the following formula: in, is the preset retransmission success rate information corresponding to the case of only automatic retransmission request, is the preset forward error correction success rate information corresponding to the case of only forward error correction; The preset retransmission success rate information is determined based on the following formula: in, is the preset maximum number of retransmissions, is the transmission packet loss rate, The effective proportion of retransmission packets corresponding to the automatic retransmission strategy; The preset forward error correction success rate information is determined based on the following formula: in, Indicates rounding down, cr MTU The upper limit of the link packet rate.

2. The data transmission control method according to claim 1, characterized in that: The step of encoding the data to be encoded by an encoder based on the preset encoding bit rate to obtain an encoded data packet includes: The preset encoding bit rate is used as the upper limit of the encoding bit rate, and the data to be encoded is encoded by the encoder to obtain an encoded data packet.

3. The data transmission control method according to claim 1, characterized in that: The determining, based on the actual encoding bit rate and the actual hybrid retransmission limit information, the hybrid retransmission bit rate limit information corresponding to the hybrid retransmission strategy includes: Based on the success rate constraints corresponding to the actual encoding code rate, the actual retransmission code rate, and the actual forward error correction code rate, solving the maximum target transmission success rate that meets the success rate constraints; The hybrid retransmission code rate limitation information corresponding to the hybrid retransmission strategy is determined based on the target transmission success rate.

4. The data transmission control method according to claim 3, characterized in that: The determining of the hybrid retransmission rate limiting information corresponding to the hybrid retransmission strategy based on the target transmission success rate includes: The actual retransmission code rate and the actual forward error correction code rate corresponding to the target transmission success rate are determined as the retransmission code rate upper limit and the forward error correction code rate upper limit corresponding to the hybrid retransmission strategy.

5. The data transmission control method according to claim 3, characterized in that: The success rate constraint is determined based on the following formula: in, is the actual retransmission rate, is the actual forward error correction code rate, is the actual encoding bit rate, Network rate limit information.

6. The data transmission control method according to claim 5, characterized in that: The target transmission success rate is determined based on the following formula: in, is the actual retransmission success rate information corresponding to the case of only automatic retransmission request, is the actual forward error correction success rate information corresponding to the case of only forward error correction; The actual retransmission success rate information is determined based on the following formula: in, is the preset maximum number of retransmissions, is the transmission packet loss rate, The effective proportion of retransmission packets corresponding to the automatic retransmission strategy; The actual forward error correction success rate information is determined based on the following formula: in, Indicates rounding down, cr MTU The upper limit of the link packet rate.

7. The data transmission control method according to claim 1, characterized in that: The performing hybrid retransmission processing on the encoded data packet based on the hybrid retransmission rate limiting information includes: In the event of packet loss, determining whether to resend the data packet based on the retransmission rate upper limit corresponding to the hybrid retransmission rate limit information and the real-time data transmission rate; Based on the forward error correction code rate upper limit corresponding to the hybrid retransmission code rate limit information, a redundant data packet corresponding to the encoded data packet is generated and sent.

8. A data transmission control device, characterized in that: It includes a preset code rate determination module, a coding processing module, a retransmission code rate determination module and a data transmission control module, wherein: The preset bit rate determination module is configured to obtain network bit rate restriction information corresponding to the transmission link, and based on the network bit rate restriction information and bit rate constraints corresponding to the preset retransmission bit rate, the preset forward error correction bit rate and the success rate lower limit value, solve the maximum preset encoding bit rate that meets the bit rate constraint conditions; The encoding processing module is configured to perform encoding processing on the data to be encoded through an encoder based on the preset encoding bit rate to obtain an encoded data packet; The retransmission rate determination module is configured to obtain an actual encoding rate of the encoder during the encoding process, and determine the hybrid retransmission rate limit information corresponding to the hybrid retransmission strategy based on the actual encoding rate and the actual hybrid retransmission limit information; 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 limiting information; The bit rate constraint is determined based on the following formula: in, is the preset encoding bit rate, To estimate the transmission success rate information, is the preset lower limit of the transmission success rate, is the preset retransmission rate, is the preset forward error correction code rate, Network bit rate limit information; The estimated transmission success rate information is determined based on the following formula: in, is the preset retransmission success rate information corresponding to the case of only automatic retransmission request, is the preset forward error correction success rate information corresponding to the case of only forward error correction; The preset retransmission success rate information is determined based on the following formula: in, is the preset maximum number of retransmissions, is the transmission packet loss rate, The effective proportion of retransmission packets corresponding to the automatic retransmission strategy; The preset forward error correction success rate information is determined based on the following formula: in, Indicates rounding down, cr MTU The upper limit of the link packet rate.

9. A data transmission control device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the data transmission control method according to any one of claims 1 to 7.

10. A non-volatile storage medium storing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to execute the data transmission control method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the data transmission control method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Data packet transmission method and device, equipment and storage medium

    CN114390006A

  • Data transmission method and device, electronic equipment and storage medium

    CN114401208A