Data transmission packet loss recovery method and device, equipment and storage medium
By gradually exploring the source code rate and filtering the target recovery packets when the transmission link is congested, the network congestion problem caused by ARQ and FEC algorithms is solved, and an optimized user experience is achieved to ensure the packet loss recovery effect while avoiding network congestion.
Patent Information
- Application Number
- CN202411122908.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-12-10
AI Technical Summary
Directly using the ARQ algorithm and FEC algorithm to send retransmitted packets and redundant packets will increase additional transmission traffic, resulting in a surge in the transmission code rate of the data sending end in a short period of time, aggravating network congestion and affecting user experience.
When the transmission link congestion is detected, the network status information and packet loss statistics are obtained, and the current maximum transmission code rate is determined based on the historical maximum transmission code rate, and the source code rate is gradually explored, and the target recovery packet is selected through the filtering conditions to calculate its Restore the code rate to ensure that the send code rate does not exceed the current maximum send code rate to avoid aggravating network congestion.
Effectively balance the source code rate and the recovery code rate against packet loss, ensure the packet loss recovery effect while avoiding the intensification of network congestion and optimizing the user experience.
Smart Images

Figure CN119109561A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a method, device, equipment and storage medium for recovering packet loss from data transmission. Background Art
[0002] With the rapid development of network technology and regional network construction, the real-time performance of audio and video communications has been significantly improved, and various applications based on real-time audio and video have gradually become the main communication tools for users. However, due to abnormal network fluctuations and other sudden factors, packet loss can easily occur during data transmission, resulting in reduced audio quality and frequent freezes during user communications. Therefore, in order to improve the user's audio and video experience, various audio and video anti-packet loss technologies have begun to be applied to various audio and video communication scenarios, such as ARQ (Automatic Repeat-reQuest) algorithm and FEC (forward error correction, FEC) algorithm.
[0003] However, when network congestion causes packet loss, directly sending retransmission packets and redundant packets based on the ARQ algorithm and FEC algorithm will increase additional sending traffic, which can easily cause the sending bit rate of the data sender to surge in a short period of time, aggravating network congestion and affecting user experience, which needs to be improved. Summary of the invention
[0004] The embodiments of the present application provide a data transmission packet loss recovery method, apparatus, device and storage medium, which solves the problem that directly sending retransmission packets and redundant packets based on ARQ algorithm and FEC algorithm will increase additional sending traffic, easily cause the sending code rate of the data sending end to surge in a short period of time, aggravate network congestion, and affect user experience. It achieves an effective balance between the source code rate and the recovery code rate against packet loss, avoids aggravating network congestion while ensuring the packet loss recovery effect, and optimizes user experience.
[0005] In a first aspect, an embodiment of the present application provides a method for recovering from packet loss in data transmission, the method comprising:
[0006] When it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the current maximum transmission bit rate of the data packet to be sent is determined according to the network status information and the historical maximum transmission bit rate;
[0007] The currently set source bit rate is adjusted down to a first bit rate value based on a preset ratio, and a first recovery bit rate is determined according to the network status information and the packet loss statistical information;
[0008] When the sum of the first bit rate value and the first recovery bit rate is greater than the current maximum sending bit rate, determining a target recovery packet to be sent according to the network status information, the packet loss statistical information and a preset screening condition, and calculating a second recovery bit rate corresponding to the target recovery packet;
[0009] When the sum of the first code rate value and the second recovery code rate is less than or equal to the current maximum sending code rate, the target recovery packet is sent to the data receiving end.
[0010] In a second aspect, an embodiment of the present application further provides a transmission packet loss recovery device, the device comprising:
[0011] An acquisition module, configured to acquire network status information and packet loss statistics information sent by a data receiving end when it is detected that a transmission link meets a congestion condition;
[0012] A maximum bit rate determination module, configured to determine a current maximum transmission bit rate of a data packet to be transmitted according to the network status information and a historical maximum transmission bit rate;
[0013] A signal source bit rate adjustment module, configured to adjust the currently set signal source bit rate down to a first bit rate value based on a preset ratio;
[0014] A first recovery bit rate determination module, configured to determine a first recovery bit rate according to the network state information and the packet loss statistical information;
[0015] A second recovery code rate determination module is configured to determine a target recovery packet to be sent according to the network status information, the packet loss statistics information and a preset screening condition, and calculate a second recovery code rate corresponding to the target recovery packet when the sum of the first code rate value and the first recovery code rate is greater than the current maximum sending code rate;
[0016] The packet loss recovery module is configured to send the target recovery packet to the data receiving end when the sum of the first bit rate value and the second recovery bit rate is less than or equal to the current maximum sending bit rate.
[0017] In a third aspect, an embodiment of the present application further provides a transmission packet loss recovery device, the device comprising:
[0018] one or more processors;
[0019] a storage device configured to store one or more programs,
[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement the data transmission packet loss recovery method described in the embodiment of the present application.
[0021] In a fourth aspect, an embodiment of the present application further provides a non-volatile storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are configured to execute the data transmission packet loss recovery method described in the embodiment of the present application.
[0022] In a fifth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor of the device reads and executes the computer program from the computer-readable storage medium, so that the device executes the data transmission packet loss recovery method described in the embodiment of the present application.
[0023] In an embodiment of the present application, when it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the current maximum sending code rate of the data packet to be sent is determined according to the network status information and the historical maximum sending code rate; the currently set source code rate is lowered to a first code rate value based on a preset ratio, and the first recovery code rate is determined according to the network status information and the packet loss statistics information; when the sum of the first code rate value and the first recovery code rate is greater than the current maximum sending code rate, the target recovery packet to be sent is determined according to the network status information, the packet loss statistics information and the preset screening conditions, and the second recovery code rate corresponding to the target recovery packet is calculated; when the sum of the first code rate value and the second recovery code rate is less than or equal to the current maximum sending code rate, the target recovery packet is sent to the data receiving end. In the above scheme, by determining the current maximum sending code rate of the data packet to be sent according to the network status information and the historical maximum sending code rate, the feasible current maximum sending code rate in the case of congestion in the transmission link can be effectively evaluated, and a reliable reference can be provided for the subsequent lowering of the appropriate source code rate; by lowering the source code rate to the first code rate value based on a preset ratio, the source code rate is gradually lowered, and by determining that the sum of the first code rate value and the first recovery code rate is greater than the current maximum sending code rate, it is effectively determined that directly sending the recovery packet will aggravate the network congestion, and by adding preset filtering conditions to select the target recovery packet to be sent, the recovery code rate required for packet loss recovery is reduced, and the source code rate and the recovery code rate against packet loss are effectively balanced, while ensuring the packet loss recovery effect, avoiding aggravating network congestion and optimizing user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A flowchart of a data transmission packet loss recovery method provided in an embodiment of the present application;
[0025] Figure 2 A flowchart of a data transmission packet loss recovery method including a process of selectively determining a retransmission packet provided in an embodiment of the present application;
[0026] Figure 3A schematic diagram of a sorting result obtained after arranging the priority sending order of retransmission packets provided in an embodiment of the present application;
[0027] Figure 4 A flowchart of a data transmission packet loss recovery method including a process of selectively determining retransmission packets and redundant packets provided in an embodiment of the present application;
[0028] Figure 5 A schematic diagram of filtering an original data packet to obtain a target data packet provided in an embodiment of the present application;
[0029] Figure 6 A flowchart of a data transmission packet loss recovery method including a process of determining a current maximum transmission bit rate provided in an embodiment of the present application;
[0030] Figure 7 A flowchart of a data transmission packet loss recovery method including a minimum bit rate threshold for down-probing source bit rate provided in an embodiment of the present application;
[0031] Figure 8 A flowchart of a data transmission packet loss recovery method including a process of lowering the signal source bit rate again provided in an embodiment of the present application;
[0032] Fig. 9 A structural block diagram of a transmission packet loss recovery device provided in an embodiment of the present application;
[0033] Fig.10 A schematic diagram of the structure of a transmission packet loss recovery device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present application, rather than to limit the embodiments of the present application. It should also be noted that, for ease of description, only parts related to the embodiments of the present application are shown in the accompanying drawings, rather than all structures.
[0035] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0036] The data transmission packet loss recovery method provided in the embodiment of the present application can be used when congestion and packet loss occur simultaneously in the transmission link. In the process of gradually reducing the source bit rate of the probe signal, the recovery bit rate of anti-packet loss can be reasonably coordinated to gradually alleviate network congestion, and anti-packet loss recovery can be performed using lower traffic to ensure call quality. The method can be applied to audio and video scenarios with high real-time requirements. Related application scenarios include video calls, online conferences, video live broadcasts, etc. The several application scenarios listed above are only exemplary and explanatory. In actual applications, the network packet loss recovery method can also be used in real-time communications in other scenarios, and the embodiment of the present application does not limit this.
[0037] In the data transmission packet loss recovery method provided in the embodiment of the present application, the executor of each step can be a computer device, which refers to any electronic device with data calculation, processing and storage capabilities, such as mobile phones, PCs (Personal Computers), tablet computers and other terminal devices, and can also be servers and other devices, which are not limited in the embodiment of the present application.
[0038] In the related art, commonly used anti-packet loss technologies include ARQ algorithm and FEC algorithm. Among them, the ARQ algorithm can be the data sending end sending retransmission packets based on the confirmation information sent by the data receiving end or the set timeout mechanism. The FEC algorithm can be the data sending end sending additional redundant packets when the estimated packet loss occurs. Packet loss in the network can generally be divided into random packet loss and packet loss caused by network congestion. For random packet loss scenarios, the ARQ algorithm and FEC algorithm can be used directly to calculate the appropriate number of retransmissions and redundancy based on the packet loss rate and round-trip delay, and send the corresponding retransmission packets and redundant packets to the data receiving end. For packet loss scenarios caused by network congestion, on the one hand, the sending bit rate of the data receiving end often exceeds the capacity that the network transmission link can carry. The data sending end needs to reduce the source bit rate of sending the original data packet to alleviate congestion, but too low a source bit rate will affect the sound quality in network communication. On the other hand, it is necessary to send additional retransmission packets and redundant packets for packet loss recovery based on ARQ algorithm, FEC algorithm, etc., but this will further increase the sending code rate of the data sending end, and the sending of retransmission packets and redundant packets is often instantaneous. The sending code rate of the data sending end may surge in a short period of time, which will aggravate the congestion of the network and cause more serious packet loss. Therefore, it is necessary to reasonably balance the source code rate of sending the original data packet and the recovery code rate against packet loss. Based on this, the embodiments of the present application provide a data transmission packet loss recovery method, device, equipment and storage medium, which are intended to ensure the effect of packet loss recovery while avoiding aggravating network congestion and optimizing user experience.
[0039] Figure 1A flowchart of a data transmission packet loss recovery method provided in an embodiment of the present application. The data transmission packet loss recovery method is applied to a data sending end, such as Figure 1 As shown, the following steps are included:
[0040] Step S101: When it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the current maximum transmission rate of the data packet to be sent is determined according to the network status information and the historical maximum transmission rate.
[0041] Among them, the congestion condition can be used to determine whether the load of the network transmission link exceeds the inherent processing power and capacity of the network, resulting in continuous congestion of the transmission link. In one embodiment, the congestion condition can be satisfied by detecting that the real-time packet loss rate is greater than the preset packet loss rate threshold and the size increases successively within a preset number of consecutive set periods, or detecting that the real-time round-trip delay is greater than the preset delay threshold and the size increases successively within a preset number of consecutive set periods, wherein the set period can be the protocol period for receiving the network status information fed back by the data receiving end, and the preset packet loss rate threshold and the preset delay threshold can be adaptively set by the developer according to the network conditions and transmission requirements of different application scenarios, which are not limited in this application. In one embodiment, the congestion condition can also be set in combination with the changes and trends of other network status information such as the receiving code rate fed back by the data receiving end and the round-trip delay difference between continuously transmitted data packets in a preset time window, which are not limited in this application. The network status information may be reference information for characterizing the network performance status fed back in real time by the data receiving end according to the data transmission status. The network status information may include real-time packet loss rate, real-time round-trip delay, delay jitter, and maximum receiving code rate, etc. According to different application scenarios and transmission protocols, the data receiving end may feed back corresponding network status information, which is not limited in this application. The packet loss statistics information may be the relevant information of the lost data packet determined by the data receiving end based on the received data packet and the packet transmission information statistics, including the data packet sequence number, quantity, and sending time of the lost data packet. The historical maximum sending code rate may be the maximum sending code rate of one or more histories closest to the current time recorded before the transmission link transmission congestion is detected. The current maximum sending code rate may be the maximum rate at which the data transmitting end can send data in the current unit time. The data packet to be sent may include the original data packet that the data transmitting end needs to send and the recovery packet for packet loss recovery. In one embodiment, the network status information may include real-time network delay, real-time packet loss rate, real-time delay jitter, and maximum receiving code rate, etc., and the current maximum sending code rate of the data packet to be sent may be determined in combination with one or more of them and the historical maximum sending code rate. In one embodiment, the historical maximum transmission code rate can be adjusted based on the real-time network delay and the change rate of the real-time packet loss rate in the continuous set period to obtain the current maximum transmission code rate. In one embodiment, the current maximum transmission code rate can be calculated based on the maximum receiving code rate, the historical maximum transmission code rate and the set weight coefficient. Of course, the foregoing is only an exemplary description, and the developer can also determine the current maximum transmission code rate based on other network status information and the set congestion control algorithm, etc., which is not limited in this application.
[0042] Step S102: lowering the currently set source bit rate to a first bit rate value based on a preset ratio, and determining a first recovery bit rate according to network status information and packet loss statistics information.
[0043] Among them, the source code rate can be the transmission code rate of the original data packet in the data sending end, which is used to characterize the transmission rate of the original data packet. The first recovery code rate can be the transmission code rate of the retransmission packet and / or redundant packet in the data sending end, which is used to characterize the transmission rate of the retransmission packet and / or redundant packet. The preset ratio can be the downward range of the source code rate when the transmission link is congested. For example, the preset ratio can be 5%. Each time the source code rate is lowered, the source code rate needs to be reduced by 5%, and the subsequent packet loss recovery calculation is performed based on the first code rate value obtained by reducing the source code rate by 5%. Of course, the developer can also make adaptive adjustments to the preset ratio according to the network conditions and transmission requirements of the actual application scenario, which is not limited in this application. After the source code rate is lowered, the first recovery code rate can be evaluated based on the network status information and packet loss statistics. In one embodiment, the data transmitting end may use the ARQ algorithm to recover packet loss, and the packet loss statistics information may include the packet sequence number of the lost data packet. The data transmitting end may determine the total size of the retransmission packet according to the sequence number of the part of the data packet, and use the retransmission code rate calculated based on the total size of the retransmission packet and the preset sending time interval as the first recovery code rate. In one embodiment, the data transmitting end may use the FEC algorithm to recover packet loss, and the network status information may include the real-time packet loss rate. The data transmitting end may calculate the redundancy based on the real-time packet loss rate and the set tolerant packet loss rate, and generate redundant packets based on the redundancy, wherein the tolerant packet loss rate is the maximum packet loss rate that the data receiving end can accept. The redundant code rate calculated based on the total size of the redundant packet and the preset sending time interval is used as the first recovery code rate. In one embodiment, the data transmitting end may use the ARQ algorithm and the FEC algorithm for packet loss recovery at the same time, and the first recovery code rate may be the sum of the retransmission code rate and the redundant code rate. Of course, the first recovery code rate can also be calculated based on the packet loss recovery data corresponding to other anti-packet loss algorithms, which is not limited in this application.
[0044] Step S103: When the sum of the first bit rate value and the first recovery bit rate is greater than the current maximum sending bit rate, determine the target recovery packet to be sent according to the network status information, the packet loss statistics information and the preset screening conditions, and calculate the second recovery bit rate corresponding to the target recovery packet.
[0045] Among them, the sum of the first code rate value and the first recovery code rate is the estimated transmission code rate of the data transmitter. By comparing the estimated transmission code rate with the current maximum transmission code rate, it can be determined whether the estimated transmission code rate of the data transmitter exceeds the current carrying capacity of the transmission link, thereby determining whether congestion will be further aggravated. If the sum of the first code rate value and the first recovery code rate is less than or equal to the current maximum transmission code rate, it can be regarded that the estimated transmission code rate is less likely to exceed the current carrying capacity of the transmission link, and data transmission can be performed based on the first code rate value and the first recovery code rate of the source code rate; if the sum of the first code rate value and the first recovery code rate is greater than the current maximum transmission code rate, it can be regarded that the estimated transmission code rate is more likely to exceed the current carrying capacity of the transmission link, and the source code rate or the recovery code rate needs to be adjusted. Therefore, when the sum of the first code rate value and the first recovery code rate is greater than the current maximum transmission code rate, a preset screening condition can be added to select the recovery packets to be sent, thereby reducing the number of recovery packets to be sent, and achieving the purpose of lowering the recovery code rate. The preset screening condition can be set based on data packet attributes such as content capacity, whether it is silent, context information, etc., in order to determine the target recovery packet with a higher degree of importance for transmission, while reducing the number of recovery packets that need to be sent and maximizing the sound quality of the overall call. In one embodiment, the target recovery packet can include a target retransmission packet, and the data transmitting end can determine the retransmission packet that needs to be sent based on packet loss statistics, and filter out the target retransmission packet from the retransmission packet based on network status information and preset screening rules. In one embodiment, the target recovery packet can include a target redundant packet, and the data transmitting end can determine the redundancy based on network status information, filter out the target data packet that needs to participate in the redundant calculation from the original data packet based on the preset screening rules, and generate the target redundant packet according to the target data packet and the redundancy. After the target recovery packet is determined, the second recovery code rate corresponding to the target recovery packet can be calculated, and the second recovery code rate can be the transmission code rate of the retransmission packet and / or redundant packet obtained after applying the preset screening rules in the data transmitting end, which is used to characterize the transmission rate of the retransmission packet and / or redundant packet with a higher degree of importance.
[0046] Step S104: When the sum of the first bit rate value and the second recovery bit rate is less than or equal to the current maximum sending bit rate, send a target recovery packet to the data receiving end.
[0047] Among them, the sum of the first bit rate value and the second recovery bit rate is the estimated transmission bit rate after the target recovery packet is selectively determined based on the preset screening rules. If the sum of the first bit rate value and the second recovery bit rate is less than or equal to the current maximum transmission bit rate, it can be considered that the current estimated transmission bit rate is less likely to exceed the current carrying capacity of the transmission link, and the original data packet can continue to be transmitted based on the source bit rate, and the target recovery packet can be transmitted based on the second recovery, which is conducive to balancing user traffic, call fluency and call quality in the event of packet loss and congestion, and improving the user's comprehensive experience in real-time audio and video scenarios through a low-overhead packet loss recovery strategy.
[0048] In the above, when it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the current maximum sending code rate of the data packet to be sent is determined according to the network status information and the historical maximum sending code rate; the currently set source code rate is reduced to the first code rate value based on a preset ratio, and the first recovery code rate is determined according to the network status information and the packet loss statistics information; when the sum of the first code rate value and the first recovery code rate is greater than the current maximum sending code rate, the target recovery packet to be sent is determined according to the network status information, the packet loss statistics information and the preset screening conditions, and the second recovery code rate corresponding to the target recovery packet is calculated; when the sum of the first code rate value and the second recovery code rate is less than or equal to the current maximum sending code rate, the target recovery packet is sent to the data receiving end. In the above scheme, by determining the current maximum sending code rate of the data packet to be sent according to the network status information and the historical maximum sending code rate, the feasible current maximum sending code rate in the case of congestion in the transmission link can be effectively evaluated, and a reliable reference can be provided for the subsequent lowering of the appropriate source code rate; by lowering the source code rate to the first code rate value based on a preset ratio, the source code rate is gradually lowered, and by determining that the sum of the first code rate value and the first recovery code rate is greater than the current maximum sending code rate, it is effectively determined that directly sending the recovery packet will aggravate the network congestion, and by adding preset filtering conditions to select the target recovery packet to be sent, the recovery code rate required for packet loss recovery is reduced, and the source code rate and the recovery code rate against packet loss are effectively balanced, while ensuring the packet loss recovery effect, avoiding aggravating network congestion and optimizing user experience.
[0049] Figure 2 A flowchart of a data transmission packet loss recovery method including a process of selectively determining a retransmission packet is provided in an embodiment of the present application. Figure 2 As shown, the following steps are included:
[0050] Step S201: When it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the current maximum transmission rate of the data packet to be sent is determined according to the network status information and the historical maximum transmission rate.
[0051] Step S202: lowering the currently set source bit rate to a first bit rate value based on a preset ratio, and determining a first recovery bit rate according to network status information and packet loss statistics information.
[0052] Step S203: When the sum of the first code rate value and the first recovery code rate is greater than the current maximum sending code rate, determine a plurality of retransmission packets to be sent according to the packet loss statistical information.
[0053] In one embodiment, the packet loss statistics information may be sequence number information of the lost data packets, and the retransmission packets to be sent may be determined based on the sequence number information. In one embodiment, the packet loss statistics information may be sequence number information and sending time information of the lost data packets, and the target sequence number may be filtered out from the sequence number information based on the sending time information and a preset sending time range, and the retransmission packets to be sent may be determined based on the target sequence number.
[0054] Step S204: Arrange the multiple retransmission packets in the order of non-silence packets taking precedence over silence packets to obtain a first retransmission packet sequence.
[0055] Among them, since sound information is important content information of user calls in audio and video scenarios, the importance of non-silent packets is higher than that of silent packets. Therefore, the retransmission packets can be divided into non-silent packets and silent packets, and the arrangement order of non-silent packets can be ensured to be prioritized over silent packets.
[0056] Step S205: The non-silent packet part and the silent packet part in the first retransmitted packet sequence are adjusted in the order of content capacity from large to small and retransmitted packet sequence numbers from large to small when the content capacity is the same to obtain a second retransmitted packet sequence.
[0057] Among them, the content capacity can be used to determine the content richness of the retransmission packet. The larger the content capacity, the richer the content of the retransmission packet and the higher its importance. The retransmission packet sequence number can be used to determine the sending order of the original data packet corresponding to the retransmission packet. The larger the retransmission packet sequence number, the closer the sending time of the corresponding original data packet. By setting the non-silent, content-rich, and original data packet that is the most recently sent retransmission packet as priority, the data receiving end can give priority to restoring important media data and optimize the user's real-time call experience. Therefore, after completing the sorting of the retransmission packets in the order of priority of non-silent packets, the non-silent packet part and the silent packet part can be arranged from large to small according to the content capacity, and when the content capacity is the same, they can be sorted from large to small according to the retransmission packet sequence number to obtain a second retransmission packet sequence. In one embodiment, Figure 3 A schematic diagram of a sorting result obtained after arranging the priority sending order of retransmission packets provided in an embodiment of the present application, such as Figure 3As shown, the original retransmission packet sequence 101 is arranged in sequence according to non-silent packets first, content capacity from large to small, and retransmission packet sequence numbers from large to small when the content capacity is the same, to obtain the target retransmission packet sequence 102, wherein the data byte length is used to indicate the content capacity of the retransmission packet.
[0058] Step S206: determine the target sending quantity according to the real-time round-trip delay, select the target retransmission packets of the target sending quantity from the second retransmission packet sequence in descending order of priority, and calculate the second recovery code rate corresponding to the target retransmission packets.
[0059] Among them, the target sending quantity can be determined based on the comparison result of the real-time round-trip delay and the set delay threshold. For example, if the real-time round-trip delay is less than or equal to the first delay threshold, the first sending quantity can be selected. If the real-time round-trip delay is greater than the first delay threshold and is less than or equal to the second delay threshold, the second sending quantity can be selected. If the real-time round-trip delay is greater than the second delay threshold, the third sending quantity can be selected, wherein the first sending quantity, the second sending quantity and the third sending quantity decrease in sequence. Of course, the specific delay threshold size and the delay threshold quantity can be adaptively set by the developer according to the network conditions and transmission requirements of the actual application scenario, and this application does not limit this. By screening out the target retransmission packets of the target sending quantity, the second recovery code rate for sending important retransmission packets can be preferentially estimated. In one embodiment, the target retransmission packet can also be compressed, and the second recovery code rate corresponding to the compressed target retransmission packet is calculated.
[0060] Step S207: When the sum of the first code rate value and the second recovery code rate is less than or equal to the current maximum transmission code rate, send a target retransmission packet to the data receiving end.
[0061] Among them, if the sum of the first code rate value and the second recovery code rate is less than or equal to the current maximum sending code rate, it can be considered that the estimated sending code rate of the data sending end is unlikely to exceed the current carrying capacity of the transmission link, and the original data packet can be transmitted based on the source code rate, and the target retransmission packet can be transmitted based on the second recovery.
[0062] As described above, by prioritizing the retransmission packets based on data packet attributes such as whether they are muted, content capacity, and retransmission packet sequence number, it is helpful to screen out target retransmission packets with higher importance, effectively ensure that important media content of user calls is restored first, and reduce packet loss recovery overhead.
[0063] Figure 4 A flowchart of a data transmission packet loss recovery method including a process of selectively determining retransmission packets and redundant packets provided in an embodiment of the present application. Figure 4 As shown, the following steps are included:
[0064] Step S301: When it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the current maximum transmission rate of the data packet to be sent is determined according to the network status information and the historical maximum transmission rate.
[0065] Step S302: lowering the currently set source bit rate to a first bit rate value based on a preset ratio, and determining a first recovery bit rate according to network status information and packet loss statistics information.
[0066] Step S303: When the sum of the first code rate value and the first recovery code rate is greater than the current maximum sending code rate, determine a plurality of retransmission packets to be sent according to the packet loss statistical information.
[0067] Step S304: Arrange the multiple retransmission packets in the order of non-silence packets taking precedence over silence packets to obtain a first retransmission packet sequence.
[0068] Step S305: The non-silent packet part and the silent packet part in the first retransmitted packet sequence are adjusted in the order of content capacity from large to small and retransmitted packet sequence numbers from large to small when the content capacity is the same to obtain a second retransmitted packet sequence.
[0069] Step S306: determine the target sending quantity according to the real-time round-trip delay, and select the target retransmission packets of the target sending quantity from the second retransmission packet sequence in descending order of priority.
[0070] Step S307: when the sum of the first code rate value and the first recovery code rate is greater than the current maximum sending code rate, calculate the redundancy according to the real-time packet loss rate and the set tolerant packet loss rate.
[0071] Among them, in one embodiment, the ratio of the real-time packet loss rate to the tolerant packet loss rate can be calculated, and the product of the ratio and the preset coefficient is determined as the redundancy. In one embodiment, the adjustment ratio of the set reference redundancy can also be determined based on the ratio of the real-time packet loss rate to the tolerant packet loss rate, and the reference redundancy is adjusted to obtain the redundancy. Of course, the developer can also make adaptive adjustments to the calculation method of the redundancy according to the packet loss recovery effect of the actual application scenario, which is not limited in this application.
[0072] Step S308: Filter out target data packets that have content capacity greater than a preset content threshold and are not silent from the multiple original data packets to be sent.
[0073] The preset content threshold can be used to filter out data packets with high content richness. The preset content threshold can be adaptively set by the developer according to the content characteristics and transmission requirements of the actual application scenario, and this application does not limit it. By filtering out target data packets that meet the content capacity greater than the preset content threshold and are not silent, data packets with high importance can be effectively filtered out to participate in redundant calculation. In one embodiment, Figure 5 A schematic diagram of filtering an original data packet to obtain a target data packet is provided in an embodiment of the present application, such as Figure 5 As shown, the original data packet sequence 201 includes original data packets with sequence numbers 1-10. In the FEC algorithm, the original data packets with sequence numbers 1-10 need to be divided into two groups to generate 2k redundant packets respectively. The target data packet sequence 202 that satisfies the content capacity greater than the preset content threshold and is not silent is selected from the original data packet sequence 201, wherein the data byte length is used to indicate the content capacity size of the retransmission packet, and correspondingly, the preset content threshold is set to 1 byte length, and the target data packet sequence 202 includes original data packets with sequence numbers 1, 2, 4, 7, and 10. Then the target data packet sequence 202 participating in the redundancy calculation will only generate k redundant packets, so that while the overall number of redundant packets is reduced, important content information can still be protected by additional redundant packets.
[0074] Step S309: Generate a target redundant packet according to the target data packet and the redundancy.
[0075] Step S310: Calculate a second recovery code rate corresponding to a target retransmission packet and a target redundant packet.
[0076] By determining the target retransmission packets and target redundant packets to be sent, the second recovery code rate for sending important retransmission packets and redundant packets can be estimated preferentially. In one embodiment, the target retransmission packets and target redundant packets can also be compressed, and the second recovery code rate corresponding to the compressed target retransmission packets and target redundant packets can be calculated.
[0077] Step S311: When the sum of the first code rate value and the second recovery code rate is less than or equal to the current maximum transmission code rate, a target retransmission packet and a target redundant packet are sent to the data receiving end.
[0078] Among them, if the sum of the first code rate value and the second recovery code rate is less than or equal to the current maximum sending code rate, it can be considered that the estimated sending code rate of the data sending end is less likely to exceed the current carrying capacity of the transmission link, and the original data packet can be transmitted based on the source code rate, and the target retransmission packet and the target redundant packet can be transmitted based on the second recovery.
[0079] As described above, by screening the original data packets based on preset content thresholds and non-silent conditions, data packets with higher importance can be prioritized for reference redundancy calculation, thereby reducing the generated redundant packets while still providing additional redundant packets for protection of important content information, effectively ensuring that important media content of user calls is restored first, and achieving cost-effective packet loss recovery.
[0080] Figure 6 A flowchart of a data transmission packet loss recovery method including a process of determining the current maximum transmission bit rate is provided in an embodiment of the present application. Figure 6 As shown, the following steps are included:
[0081] Step S401: When it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the network status information includes the real-time packet loss rate, the real-time round-trip delay and the maximum receiving code rate.
[0082] Step S402: determine a candidate maximum transmission code rate according to the real-time packet loss rate, the real-time round-trip delay, and the historical maximum transmission code rate.
[0083] In one embodiment, the real-time packet loss rate can be compared with the set segment packet loss rate threshold to determine the corresponding first adjustment range, and the real-time round-trip delay can be compared with the set segment delay threshold to determine the corresponding second adjustment range, the first adjustment range and the second adjustment range are averaged to obtain the target adjustment range, and the historical maximum transmission code rate is adjusted based on the target adjustment range to obtain the candidate maximum transmission code rate. In one embodiment, the adjustment range of the historical maximum transmission code rate can be determined based on the change ratio of the real-time packet loss rate and the real-time round-trip delay in adjacent set periods, and the historical maximum transmission code rate is adjusted based on the adjustment range to obtain the candidate maximum transmission code rate.
[0084] Step S403: Perform weighted calculation on the candidate maximum transmission code rate and the maximum reception code rate to obtain the current maximum transmission code rate of the data packet to be transmitted.
[0085] Among them, the candidate maximum sending code rate and maximum receiving code rate can be respectively set with corresponding weight coefficients for weighted calculation. The specific weight coefficients can be adaptively set by the developer according to the network change characteristics of the actual application scenario and historical experience data, and this application does not limit this.
[0086] Step S404: lowering the currently set source bit rate to a first bit rate value based on a preset ratio, and determining a first recovery bit rate according to network status information and packet loss statistics information.
[0087] Step S405: When the sum of the first bit rate value and the first recovery bit rate is greater than the current maximum sending bit rate, determine the target recovery packet to be sent according to the network status information, the packet loss statistics information and the preset screening conditions, and calculate the second recovery bit rate corresponding to the target recovery packet.
[0088] Step S406: When the sum of the first bit rate value and the second recovery bit rate is less than or equal to the current maximum sending bit rate, send the target recovery packet to the data receiving end.
[0089] As described above, by determining the current maximum sending code rate of the data packet to be sent based on the network status information and the historical maximum sending code rate, the feasible maximum sending code rate of the data sending end can be adjusted in time when the transmission link is congested, adapting to the real-time network changes of the transmission link, and providing reliable reference data for down-probing the source code rate.
[0090] Figure 7 A flowchart of a data transmission packet loss recovery method including a minimum bit rate threshold for down-probing signal source bit rate is provided in an embodiment of the present application. Figure 7 As shown, the following steps are included:
[0091] Step S501: when it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the current maximum transmission rate of the data packet to be sent is determined according to the network status information and the historical maximum transmission rate.
[0092] Step S502: lowering the currently set source bit rate to a first bit rate value based on a preset ratio.
[0093] Step S503: When the first code rate value is less than or equal to the minimum code rate threshold, based on the network status information and the packet loss statistics information, a retransmission packet and / or a redundant packet is sent to the data receiving end.
[0094] Among them, the minimum bit rate threshold is the minimum value that the source bit rate is allowed to reach during the process of lowering the source bit rate. The setting of the minimum bit rate threshold can be adaptively set by the developer according to the regional network conditions and communication quality requirements of the actual application scenario, and this application does not limit it. After the currently set source bit rate is lowered to the first bit rate value, if the first bit rate value is less than or equal to the minimum bit rate threshold, it can be regarded that the current source bit rate cannot continue to drop, otherwise the normal call quality cannot be guaranteed, and you can choose to send retransmission packets and / or redundant packets directly to the data receiving end for packet loss recovery.
[0095] Step S504: when the first bit rate value is greater than a preset minimum bit rate threshold, determine a first recovery bit rate according to the network state information and the packet loss statistics information.
[0096] Among them, if the first bit rate value is greater than the minimum bit rate threshold, it can be regarded that the current source bit rate still has room for downward adjustment. The sending bit rate can be evaluated based on the current source bit rate and the first recovery bit rate and the second recovery bit rate obtained by subsequent calculation. If the evaluated sending bit rate is within the maximum sending bit rate, the target recovery packet can be sent. If the evaluated sending bit rate still exceeds the maximum sending bit rate, the source bit rate needs to be further reduced.
[0097] Step S505: When the sum of the first bit rate value and the first recovery bit rate is greater than the current maximum sending bit rate, determine the target recovery packet to be sent according to the network status information, the packet loss statistics information and the preset screening condition, and calculate the second recovery bit rate corresponding to the target recovery packet.
[0098] Step S506: When the sum of the first bit rate value and the second recovery bit rate is less than or equal to the current maximum transmission bit rate, send the target recovery packet to the data receiving end.
[0099] As described above, by setting the minimum bit rate threshold, the downward value of the signal source bit rate can be limited, so as to avoid excessive reduction of the signal source bit rate, which affects the normal call quality and ensures the basic user experience.
[0100] Figure 8 A flowchart of a data transmission packet loss recovery method including a process of lowering the signal source bit rate again is provided in an embodiment of the present application. Figure 8 As shown, the following steps are included:
[0101] Step S601: When it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the current maximum transmission rate of the data packet to be sent is determined according to the network status information and the historical maximum transmission rate.
[0102] Step S602: lowering the currently set source bit rate to a first bit rate value based on a preset ratio.
[0103] Step S603: When the first code rate value is less than or equal to a preset minimum code rate threshold, based on the network status information and packet loss statistics information, send a retransmission packet and / or a redundant packet to the data receiving end.
[0104] Step S604: when the first bit rate value is greater than a preset minimum bit rate threshold, determine a first recovery bit rate according to the network state information and the packet loss statistics information.
[0105] Step S605: When the sum of the first bit rate value and the first recovery bit rate is greater than the current maximum sending bit rate, determine the target recovery packet to be sent according to the network status information, the packet loss statistics information and the preset screening condition, and calculate the second recovery bit rate corresponding to the target recovery packet.
[0106] Step S606: When the sum of the first bit rate value and the second recovery bit rate is less than or equal to the current maximum sending bit rate, send the target recovery packet to the data receiving end.
[0107] Step S607: When the sum of the first bit rate value and the second recovery bit rate is greater than the current maximum sending bit rate, the currently set source bit rate is adjusted down from the first bit rate value to the second bit rate value based on a preset ratio.
[0108] Among them, if the sum of the first code rate value and the second recovery code rate is greater than the current maximum transmission code rate, it can be considered that the estimated transmission code rate of the data transmitter exceeds the current carrying capacity of the transmission link. Directly sending the target recovery packet may aggravate congestion and fail to achieve the effect of alleviating packet loss. Therefore, it is necessary to continue to reduce the source code rate. Optionally, the second code rate value obtained by reducing the source code rate can be compared with the preset minimum code rate threshold, and steps S603-S607 are adaptively repeated based on the comparison result.
[0109] In the above, when the sum of the first bit rate value and the second recovery bit rate is greater than the current maximum sending bit rate, the source bit rate is further reduced to avoid directly sending the target recovery packet to aggravate network congestion and cause more serious packet loss.
[0110] Fig. 9 This is a structural block diagram of a transmission packet loss recovery device provided in an embodiment of the present application. The device is configured to execute the data transmission packet loss recovery method provided in the above embodiment and has the corresponding functional modules and beneficial effects of the execution method. Fig. 9 As shown, the device comprises:
[0111] The acquisition module 301 is configured to acquire network status information and packet loss statistics information sent by the data receiving end when it is detected that the transmission link meets the congestion condition;
[0112] The maximum bit rate determination module 302 is configured to determine the current maximum transmission bit rate of the data packet to be transmitted according to the network state information and the historical maximum transmission bit rate;
[0113] The signal source bit rate adjustment module 303 is configured to adjust the currently set signal source bit rate down to a first bit rate value based on a preset ratio;
[0114] A first recovery bit rate determination module 304, configured to determine a first recovery bit rate according to network status information and packet loss statistics information;
[0115] The second recovery code rate determination module 305 is configured to determine the target recovery packet to be sent according to the network status information, the packet loss statistics information and the preset screening condition when the sum of the first code rate value and the first recovery code rate is greater than the current maximum transmission code rate, and calculate the second recovery code rate corresponding to the target recovery packet;
[0116] The packet loss recovery module 306 is configured to send a target recovery packet to the data receiving end when the sum of the first code rate value and the second recovery code rate is less than or equal to the current maximum sending code rate.
[0117] In the above, when it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the current maximum sending code rate of the data packet to be sent is determined according to the network status information and the historical maximum sending code rate; the currently set source code rate is reduced to the first code rate value based on a preset ratio, and the first recovery code rate is determined according to the network status information and the packet loss statistics information; when the sum of the first code rate value and the first recovery code rate is greater than the current maximum sending code rate, the target recovery packet to be sent is determined according to the network status information, the packet loss statistics information and the preset screening conditions, and the second recovery code rate corresponding to the target recovery packet is calculated; when the sum of the first code rate value and the second recovery code rate is less than or equal to the current maximum sending code rate, the target recovery packet is sent to the data receiving end. In the above scheme, by determining the current maximum sending code rate of the data packet to be sent according to the network status information and the historical maximum sending code rate, the feasible current maximum sending code rate in the case of congestion in the transmission link can be effectively evaluated, and a reliable reference can be provided for the subsequent lowering of the appropriate source code rate; by lowering the source code rate to the first code rate value based on a preset ratio, the source code rate is gradually lowered, and by determining that the sum of the first code rate value and the first recovery code rate is greater than the current maximum sending code rate, it is effectively determined that directly sending the recovery packet will aggravate the network congestion, and by adding preset filtering conditions to select the target recovery packet to be sent, the recovery code rate required for packet loss recovery is reduced, and the source code rate and the recovery code rate against packet loss are effectively balanced, while ensuring the packet loss recovery effect, avoiding aggravating network congestion and optimizing user experience.
[0118] In a possible embodiment, the target recovery packet includes a target retransmission packet, the network state information includes a real-time round-trip delay, and the second recovery code rate determination module 305 is further configured as follows:
[0119] Determine a plurality of retransmission packets to be sent according to packet loss statistics information;
[0120] Arrange the multiple retransmission packets in the order of non-silence packets taking precedence over silence packets to obtain a first retransmission packet sequence;
[0121] The non-silent packet part and the silent packet part in the first retransmitted packet sequence are adjusted according to the priority order of content capacity from large to small and retransmitted packet sequence numbers from large to small when the content capacity is the same, respectively, to obtain a second retransmitted packet sequence;
[0122] The target sending quantity is determined according to the real-time round-trip delay, and the target retransmission packets of the target sending quantity are screened out from the second retransmission packet sequence according to the priority order from high to low.
[0123] In a possible embodiment, the target recovery packet also includes a target redundant packet, the network status information also includes a real-time packet loss rate, and the second recovery code rate determination module 305 is further configured as follows:
[0124] Redundancy is calculated based on the real-time packet loss rate and the set tolerance packet loss rate;
[0125] Filter out target data packets that have content capacity greater than a preset content threshold and are not silent from multiple original data packets to be sent;
[0126] A target redundant packet is generated according to the target data packet and the redundancy.
[0127] In a possible embodiment, the network status information includes the real-time packet loss rate, the real-time round-trip delay and the maximum receiving bit rate, and the maximum bit rate determination module 302 is configured as follows:
[0128] Determine a candidate maximum sending bit rate according to the real-time packet loss rate, the real-time round-trip delay, and the historical maximum sending bit rate;
[0129] The candidate maximum transmission code rate and the maximum reception code rate are weightedly calculated to obtain the current maximum transmission code rate of the data packet to be sent.
[0130] In a possible embodiment, the first recovery bit rate determination module 304 is configured as follows:
[0131] When the first bit rate value is greater than a preset minimum bit rate threshold, a first recovery bit rate is determined according to the network state information and the packet loss statistics information.
[0132] In a possible embodiment, a second packet loss recovery module is further included, configured as follows:
[0133] When the first code rate value is less than or equal to the minimum code rate threshold, a retransmission packet and / or a redundant packet is sent to the data receiving end based on the network status information and the packet loss statistics information.
[0134] In a possible embodiment, it further includes a second information source bit rate adjustment module configured to:
[0135] When the sum of the first bit rate value and the second recovery bit rate is greater than the current maximum sending bit rate, the currently set source bit rate is adjusted down from the first bit rate value to the second bit rate value based on a preset ratio.
[0136] In a possible embodiment, satisfying the congestion condition includes:
[0137] It is detected that the real-time packet loss rate is greater than the preset packet loss rate threshold and the size increases successively within a continuous preset number of set periods, or it is detected that the real-time round-trip delay is greater than the preset delay threshold and the size increases successively within a continuous preset number of set periods.
[0138] Fig.10 A schematic diagram of a transmission packet loss recovery device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the device includes a processor 401, a memory 402, an input device 403 and an output device 404; the number of processors 401 in the device can be one or more. Fig.10 A processor 401 is taken as an example; the processor 401, memory 402, input device 403 and output device 404 in the device can be connected by a bus or other means. Fig.10 The example of connecting through a bus is taken. The memory 402, as a computer-readable storage medium, can be configured to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the data transmission packet loss recovery method in the embodiment of the present application. The processor 401 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 402, that is, implements the above-mentioned data transmission packet loss recovery method. The input device 403 can be configured to receive input digital or character information, and generate key signal input related to user settings and function control of the device. The output device 404 may include a display device such as a display screen.
[0139] The embodiment of the present application further provides a non-volatile storage medium containing computer executable instructions, which are configured to execute a data transmission packet loss recovery method described in the above embodiment when executed by a computer processor, including:
[0140] When it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the current maximum transmission bit rate of the data packet to be sent is determined according to the network status information and the historical maximum transmission bit rate;
[0141] The currently set source bit rate is adjusted down to a first bit rate value based on a preset ratio, and a first recovery bit rate is determined according to network status information and packet loss statistics information;
[0142] When the sum of the first bit rate value and the first recovery bit rate is greater than the current maximum sending bit rate, determining the target recovery packet to be sent according to the network status information, the packet loss statistics information and the preset screening condition, and calculating the second recovery bit rate corresponding to the target recovery packet;
[0143] When the sum of the first code rate value and the second recovery code rate is less than or equal to the current maximum sending code rate, a target recovery packet is sent to the data receiving end.
[0144] It is worth noting that in the above-mentioned embodiment of the transmission packet loss recovery 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 configured to limit the protection scope of the embodiments of the present application.
[0145] In some possible implementations, various aspects of the method provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is configured to enable the computer device to execute the steps of the method according to various exemplary embodiments of the present application described above in this specification. For example, the computer device may execute the data transmission packet loss recovery method recorded in the embodiment of the present application. The program product may be implemented in any combination of one or more readable media.
Claims
1. A method for recovering lost data transmission packets. It is characterized in that include: When it is detected that the transmission link meets the congestion condition, the network status information and packet loss statistics information sent by the data receiving end are obtained, and the current maximum transmission bit rate of the data packet to be sent is determined according to the network status information and the historical maximum transmission bit rate; The currently set source bit rate is adjusted down to a first bit rate value based on a preset ratio, and a first recovery bit rate is determined according to the network status information and the packet loss statistical information; When the sum of the first bit rate value and the first recovery bit rate is greater than the current maximum sending bit rate, determining a target recovery packet to be sent according to the network status information, the packet loss statistical information and a preset screening condition, and calculating a second recovery bit rate corresponding to the target recovery packet; When the sum of the first code rate value and the second recovery code rate is less than or equal to the current maximum sending code rate, the target recovery packet is sent to the data receiving end.
2. The data transmission packet loss recovery method according to claim 1, It is characterized in that The target recovery packet includes a target retransmission packet, the network status information includes a real-time round-trip delay, and determining the target recovery packet to be sent according to the network status information, the packet loss statistics information and a preset screening condition includes: Determining a plurality of retransmission packets to be sent according to the packet loss statistical information; Arrange the multiple retransmission packets in the order of non-silence packets taking precedence over silence packets to obtain a first retransmission packet sequence; The non-silent packet part and the silent packet part in the first retransmitted packet sequence are adjusted according to the priority order of content capacity from large to small and retransmitted packet sequence numbers from large to small when the content capacity is the same, respectively, to obtain a second retransmitted packet sequence; The target sending quantity is determined according to the real-time round-trip delay, and the target retransmission packets of the target sending quantity are screened out from the second retransmission packet sequence in descending order of priority.
3. The data transmission packet loss recovery method according to claim 2, It is characterized in that The target recovery packet also includes a target redundant packet, the network status information also includes a real-time packet loss rate, and the target recovery packet to be sent is determined according to the network status information, the packet loss statistics information and the preset screening condition, and further includes: Calculate redundancy according to the real-time packet loss rate and the set tolerant packet loss rate; Filter out target data packets that have content capacity greater than a preset content threshold and are not silent from multiple original data packets to be sent; A target redundant packet is generated according to the target data packet and the redundancy.
4. The data transmission packet loss recovery method according to claim 1, It is characterized in that The network status information includes a real-time packet loss rate, a real-time round-trip delay, and a maximum receiving bit rate, and determining the current maximum sending bit rate of the data packet to be sent according to the network status information and the historical maximum sending bit rate includes: Determine a candidate maximum transmission bit rate according to the real-time packet loss rate, the real-time round-trip delay, and the historical maximum transmission bit rate; The candidate maximum transmission code rate and the maximum reception code rate are weightedly calculated to obtain the current maximum transmission code rate of the data packet to be transmitted.
5. The data transmission packet loss recovery method according to claim 1, It is characterized in that The determining a first recovery bit rate according to the network state information and the packet loss statistical information includes: When the first bit rate value is greater than a preset minimum bit rate threshold, determining a first recovery bit rate according to the network state information and the packet loss statistical information; Correspondingly, after the currently set source bit rate is adjusted down to the first bit rate value based on the preset ratio, the method further includes: When the first code rate value is less than or equal to the minimum code rate threshold, based on the network status information and the packet loss statistical information, a retransmission packet and / or a redundant packet is sent to the data receiving end.
6. The data transmission packet loss recovery method according to claim 5, It is characterized in that After determining the first recovery bit rate according to the network state information and the packet loss statistical information, the method further includes: When the sum of the first bit rate value and the second recovery bit rate is greater than the current maximum sending bit rate, the currently set source bit rate is reduced from the first bit rate value to the second bit rate value based on the preset ratio.
7. The data transmission packet loss recovery method according to any one of claims 1 to 6, It is characterized in that The congestion condition is satisfied, including: It is detected that the real-time packet loss rate is greater than the preset packet loss rate threshold and the size increases successively within a continuous preset number of set periods, or it is detected that the real-time round-trip delay is greater than the preset delay threshold and the size increases successively within a continuous preset number of set periods.
8. A transmission packet loss recovery device, It is characterized in that include: An acquisition module, configured to acquire network status information and packet loss statistics information sent by a data receiving end when it is detected that a transmission link meets a congestion condition; A maximum bit rate determination module, configured to determine a current maximum transmission bit rate of a data packet to be transmitted according to the network status information and a historical maximum transmission bit rate; A signal source bit rate adjustment module, configured to adjust the currently set signal source bit rate down to a first bit rate value based on a preset ratio; A first recovery bit rate determination module, configured to determine a first recovery bit rate according to the network state information and the packet loss statistical information; A second recovery code rate determination module is configured to determine a target recovery packet to be sent according to the network status information, the packet loss statistics information and a preset screening condition, and calculate a second recovery code rate corresponding to the target recovery packet when the sum of the first code rate value and the first recovery code rate is greater than the current maximum sending code rate; The packet loss recovery module is configured to send the target recovery packet to the data receiving end when the sum of the first bit rate value and the second recovery bit rate is less than or equal to the current maximum sending bit rate.
9. A transmission packet loss recovery device, the device include: one or more processors; A storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the data transmission packet loss recovery method described in any one of claims 1-7.
10. A non-volatile storage medium storing computer executable instructions, wherein the computer executable instructions are configured to execute the data transmission packet loss recovery method according to any one of claims 1 to 7 when executed by a computer processor.
11. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method for recovering from packet loss in data transmission according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Data transmission method, device, equipment, medium and product
CN119766403A
Data Transmission Method, Apparatus, Device, Medium and Product
CN119766403B
Data transmission method, decoding method, electronic equipment and data transmission system
CN120602039A
