Data transmission packet loss processing method, device, equipment and medium

By calculating the packet loss rate to determine the number of redundant packets and carrying the redundant packets during data transmission, the problem of low packet loss retransmission efficiency is solved, achieving more efficient data transmission and reducing delays.

CN116015563BActive Publication Date: 2024-09-06SHENZHEN INST OF ADVANCED BIOMEDICAL ROBOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211730965.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2024-09-06
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

The existing packet loss retransmission method may cause data packets to be lost again when the network signal is poor, and the packet loss retransmission efficiency is low.

Method used

The number of redundant packets is determined by calculating the packet loss rate, and the redundant packets are carried during data transmission. The data receiving end filters out the lost packets from the redundant packets and inserts the received packets in the order of transmission to avoid retransmitting the lost data packets. .

Benefits of technology

It reduces data transmission delay, improves data transmission efficiency, and avoids the problem of losing data packets again after packet loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116015563B
    Figure CN116015563B
Patent Text Reader

Abstract

The present application relates to the technical field of data transmission, and discloses a data transmission packet loss processing method, device, equipment and medium, wherein the method is applied to a data sending end, comprising: sending N packets to a data receiving end. 1 packets, of which N 1 ≥1; the number of received packets K fed back by the receiving end of the data receiving device, based on the number of received packets K and the number of data packets N 1 Calculate the packet loss rate, where K < N 1 ; Determine the number of redundant packets M according to the packet loss rate, where M≥1; Carry M redundant packets each time during data transmission and send them to the data receiving end, so that the data receiving end can filter out G lost packets from the M redundant packets, and insert the G lost packets into K receiving packets in sequence according to the data transmission order, where G≤M. The above method does not need to resend the lost data packets after packet loss occurs, but only needs to send redundant packets, which can reduce the delay of data transmission and improve the efficiency of data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and for example, to a method, device, equipment and medium for processing packet loss in data transmission. Background Art

[0002] In the process of transmitting audio and / or video, audio data and / or video data are sent to the data receiving end in the form of data packets. In the process of sending data packets, some data packets may be lost due to poor network signals or other problems. The existing technology mainly adopts the NACK method, that is, the packet loss retransmission method, to solve the problem of data packet loss in the audio and / or video transmission process. The data receiving end applies to the data sending end for packet loss retransmission, and the data sending end resends the lost data packets to the data receiving end. When the network signal is poor, the lost data packets resent to the data receiving end may be lost again. Resending the lost data packets occupies more network bandwidth, and the packet loss retransmission efficiency is low.

[0003] In summary, the existing packet loss retransmission method has the problem that the lost data packets resent to the data receiving end may be lost again and the packet loss retransmission efficiency is low. Summary of the invention

[0004] The present application provides a data transmission packet loss processing system and a corresponding control method, aiming to solve the problems in the existing packet loss retransmission method that the lost data packets resent to the data receiving end may be lost again and the packet loss retransmission efficiency is low.

[0005] To solve the above problems, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a method for processing packet loss in data transmission, which is applied to a data sending end, and the method includes:

[0007] Send N to the data receiving end 1 packets, of which N 1 ≥1;

[0008] Receive the number of received packets K fed back by the data receiving end, and according to the number of received packets K and the number of data packets N 1 Calculate the packet loss rate, where K < N 1 ;

[0009] Determine the number M of redundant packets according to the packet loss rate, where M≥1;

[0010] During data transmission, M redundant packets are carried each time and sent to the data receiving end, so that the data receiving end can filter out G lost packets from the M redundant packets, and insert the G lost packets into the K receiving packets in sequence according to the data transmission order, where G≤M.

[0011] Preferably, the number of received packets K and the number of data packets N 1 Calculate the packet loss rate, including:

[0012] The number of packets N 1 Subtract the number of received packets K to obtain the number of lost packets;

[0013] The number of packet losses and the number of data packets N 1 The ratio of is taken as the packet loss rate.

[0014] Preferably, determining the number M of redundant packets according to the packet loss rate includes:

[0015] Select the redundant packet unit percentage;

[0016] Calculating a ratio of the packet loss rate to the redundant packet unit percentage to obtain a first ratio;

[0017] The first ratio is rounded to obtain the number M of redundant packets.

[0018] Preferably, before carrying M redundant packets each time and sending them to the data receiving end during data transmission, the method further includes:

[0019] N 2 The data packets are sent to the data receiving end, and each of the data packets corresponds to one or more redundant packets.

[0020] In a second aspect, the present application provides a method for processing packet loss in data transmission, which is applied to a data receiving end, and the method includes:

[0021] Receive M redundant packets sent by the data transmitter, where M ≥ 1;

[0022] Filtering out G lost packets from the M redundant packets, where G≤M;

[0023] Obtain a data transmission sequence corresponding to the G lost packets, and insert the G lost packets into the K received packets according to the data transmission sequence.

[0024] Preferably, the step of selecting G lost packets from the M redundant packets comprises:

[0025] Decoding the M redundant packets to obtain M decoded redundant packets;

[0026] Matching the numbers of the M decoded redundant packets with the numbers of all the lost packets to obtain G target numbers;

[0027] The G redundant packets corresponding to the G target numbers are used as the G lost packets.

[0028] In a third aspect, the present application provides a data transmission packet loss processing device, which is applied to a data sending end, comprising:

[0029] The first data packet sending module is used to send N to the data receiving end. 1 packets, of which N 1 ≥1;

[0030] The packet loss rate calculation module is used to receive the number of received packets K fed back by the data receiving end, and calculate the packet loss rate according to the number of received packets K and the number of data packets N. 1 Calculate the packet loss rate, where K < N 1 ;

[0031] A redundant packet number calculation module, used to determine the number M of redundant packets according to the packet loss rate, where M≥1;

[0032] A redundant packet sending module is used to carry M redundant packets each time during data transmission and send them to the data receiving end, so that the data receiving end can filter out G lost packets from the M redundant packets and insert the G lost packets into the K received packets in sequence according to the data transmission order, where G≤M.

[0033] In a fourth aspect, the present application provides a data transmission packet loss processing device, which is applied to a data receiving end, comprising:

[0034] A redundant packet receiving module, used for receiving M redundant packets sent by a data sending end, where M≥1;

[0035] A lost packet screening module, used to screen out G lost packets from the M redundant packets, where G≤M;

[0036] The lost packet insertion module is used to obtain the data transmission sequence corresponding to the G lost packets, and insert the G lost packets into the K received packets according to the data transmission sequence.

[0037] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any of the above-mentioned methods for processing data transmission packet loss are implemented.

[0038] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned methods for handling packet loss during data transmission are implemented.

[0039] The data transmission packet loss processing method of the present application comprises sending N 1packets, of which N 1 ≥1; receiving the number of received packets K fed back by the data receiving end, and calculating the number of received packets K and the number of data packets N according to the number of received packets K and the number of data packets N 1 Calculate the packet loss rate, where K < N 1 ; The packet loss rate can measure the data transmission situation. The higher the packet loss rate, the worse the integrity of the data transmission. The number of redundant packets M is determined according to the packet loss rate, where M≥1; the higher the packet loss rate, the more redundant packets need to be sent. During data transmission, M redundant packets are carried each time and sent to the data receiving end, so that the data receiving end can filter out G lost packets from the M redundant packets, and insert the G lost packets into the K receiving packets in sequence according to the data transmission order, where G≤M. The M redundant packets contain some or all lost packets. The lost packets are filtered out from the M redundant packets, and the lost packets are inserted into the sequence of receiving packets to restore the lost packets. The above method does not need to resend the lost data packets after packet loss occurs, but only needs to send redundant packets, which can reduce the delay of data transmission and improve the efficiency of data transmission. In addition, since the redundant packets are sent after packet loss occurs in the above method, there is no problem of packet loss occurring again in the process of resending the lost data packets after packet loss, and the lost data packets need to be resent again. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of a first flow chart of a method for processing packet loss in data transmission according to an embodiment;

[0041] Figure 2 A schematic diagram of a flow chart of calculating a packet loss rate according to an embodiment;

[0042] Figure 3 A schematic diagram of a process for determining the number of redundant packets according to a packet loss rate according to an embodiment;

[0043] Figure 4 A second flow chart of a method for processing packet loss in data transmission according to an embodiment;

[0044] Figure 5 It is a first structural schematic block diagram of a data transmission packet loss processing device according to an embodiment;

[0045] Figure 6 A second structural schematic block diagram of a data transmission packet loss processing device according to an embodiment;

[0046] Figure 7 The present invention is a schematic block diagram of the structure of a computer device according to an embodiment.

[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0049] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "a", "an", "above", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of features, integers, steps, operations, elements, units, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, units, components, and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0050] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0051] Reference Figure 1 , is a first flow chart of a method for processing packet loss in data transmission applied in this solution, the method is applied to a data sending end, and includes:

[0052] S1: Send N to the data receiving end 1 packets, of which N 1 ≥1.

[0053] The data packet may be an audio data packet or a video data packet, which is not limited here.

[0054] The data receiving end can be a server or a client; the data sending end can be a client or a server. When the data sending end is a client, the data receiving end is a server; when the data sending end is a server, the data receiving end is a client.

[0055] The data transmission end and the data transmission end can be connected by wire through a data cable, or can be connected wirelessly through a WIFI signal or a Bluetooth signal.

[0056] S2: receiving the number of received packets K fed back by the data receiving end, and calculating the number of received packets K and the number of data packets N according to the number of received packets K and the number of data packets N. 1 Calculate the packet loss rate, where K < N 1 .

[0057] The number of packets N 1 Subtract the number of received packets K to obtain the number of lost packets;

[0058] The number of packet losses and the number of data packets N 1 The ratio of is taken as the packet loss rate.

[0059] The higher the packet loss rate, the worse the integrity of data transmission. The packet loss rate is related to the network environment of the data transmission channel between the data sender and the data receiver, the network environment of the data receiver, and whether there is a fault at the data receiver.

[0060] The data transmitter sends data packets to the data receiver at a certain frequency. The data receiver receives the data packets and feeds back the number of received packets K to the data transmitter in real time. The number of received packets K is the number of data packets sent by the data transmitter received by the data receiver.

[0061] The data transmission between the data sender and the data receiver is based on the RTCP protocol.

[0062] S3: Determine the number M of redundant packets according to the packet loss rate, where M≥1.

[0063] Select the redundant packet unit percentage;

[0064] Calculating a ratio of the packet loss rate to the redundant packet unit percentage to obtain a first ratio;

[0065] The first ratio is rounded to obtain the number M of redundant packets.

[0066] The higher the packet loss rate, the more redundant packets M need to be sent; the lower the packet loss rate, the fewer redundant packets M need to be sent.

[0067] When the packet loss rate is fixed, the smaller the redundant packet unit percentage is, the greater the number M of redundant packets to be sent is; and the greater the redundant packet unit percentage is, the smaller the number M of redundant packets to be sent is.

[0068] Preferably, when the packet loss rate is greater than 15%, no subsequent processing is performed.

[0069] For example, if the redundant packet unit percentage is set to 5%, if the packet loss rate is 10%, the first ratio is 2, and 2 redundant packets need to be sent; if the packet loss rate is 15%, the first ratio is 3, and 3 redundant packets need to be sent; if the packet loss rate is 18%, the first ratio is 3.6, which may be 3 or 4 after rounding, and 3 or 4 redundant packets need to be sent.

[0070] S4: During data transmission, M redundant packets are carried each time and sent to the data receiving end, so that the data receiving end can filter out G lost packets from the M redundant packets, and insert the G lost packets into the K received packets in sequence according to the data transmission order, where G≤M.

[0071] Optionally, the upper limit of the value of M is set to 3, that is, 1≤M≤3.

[0072] M redundant packets include some or all lost packets. Match the M redundant packets with the lost packet list. G redundant packets are successfully matched, that is, G redundant packets exist in the lost packet list. Then the G redundant packets are G lost packets. Save the G lost packets and discard all redundant packets of non-lost packets.

[0073] Each redundant packet and data packet sent by the data transmitter is numbered, and each lost packet is parsed to obtain the number of each lost packet. The data transmission order of the G lost packets is determined according to the number of each lost packet. The G lost packets are inserted into the K received packets in sequence according to the data transmission order, which can prevent the sequence error of inserting the lost packets from causing the received packet sequence after the insertion of the lost packets to be different from the N received packets. 1 The order of the packets is inconsistent.

[0074] The above method does not need to resend the lost data packet after packet loss occurs, but only needs to send redundant packets, which can reduce the delay of data transmission, improve the efficiency of data transmission, and is suitable for systems with high requirements for real-time transmission. In addition, since the above method sends redundant packets after packet loss occurs, there is no problem of packet loss occurring again during the process of resending the lost data packet after packet loss, and the lost data packet needs to be resent again.

[0075] The data transmission packet loss processing method of the embodiment of the present application includes sending N 1 packets, of which N 1 ≥1; receiving the number of received packets K fed back by the data receiving end, and calculating the number of received packets K and the number of data packets N according to the number of received packets K and the number of data packets N 1 Calculate the packet loss rate, where K < N 1; The packet loss rate can measure the data transmission situation. The higher the packet loss rate, the worse the integrity of the data transmission. The number of redundant packets M is determined according to the packet loss rate, where M≥1; the higher the packet loss rate, the more redundant packets need to be sent. During data transmission, M redundant packets are carried each time and sent to the data receiving end, so that the data receiving end can filter out G lost packets from the M redundant packets, and insert the G lost packets into the K receiving packets in sequence according to the data transmission order, where G≤M. The M redundant packets contain some or all lost packets. The lost packets are filtered out from the M redundant packets, and the lost packets are inserted into the sequence of receiving packets to restore the lost packets. The above method does not need to resend the lost data packets after packet loss occurs, but only needs to send redundant packets, which can reduce the delay of data transmission and improve the efficiency of data transmission. In addition, since the redundant packets are sent after packet loss occurs in the above method, there is no problem of packet loss occurring again in the process of resending the lost data packets after packet loss, and the lost data packets need to be resent again.

[0076] In one embodiment, referring to Figure 2 , according to the number of received packets K and the number of data packets N 1 Calculate the packet loss rate, including:

[0077] S22: The number of the data packets N 1 Subtract the number of received packets K to obtain the number of lost packets.

[0078] N 1 is the number of data packets sent by the data transmitter to the data receiver, K is the number of packets received by the data receiver, and N 1 -K is the number of packets lost during the process of sending data packets from the data sender to the data receiver.

[0079] The more packets are lost, the more redundant packets need to be sent; the fewer packets are lost, the fewer redundant packets need to be sent.

[0080] S23: Add the number of lost packets to the number of data packets N 1 The ratio of is taken as the packet loss rate.

[0081] The packet loss rate is the percentage of packet loss to the number of data packets, and the packet loss rate reflects the integrity of data transmission.

[0082] The packet loss rate is used to calculate the number of redundant packets. The higher the packet loss rate, the worse the network environment of the transmission channel and the data receiving end. The transmission channel is used to transmit data packets between the data sending end and the data transmission end. The transmission channel can be a wired transmission channel based on a wired connection or a wireless transmission channel based on a WIFI or Bluetooth connection.

[0083] As mentioned above, according to the number of received packets K and the number of data packets N1 Calculating the packet loss rate involves dividing the number of packets N by 1 Subtract the number of received packets K to get the number of lost packets, and add the number of lost packets to the number of data packets N 1 The ratio of is taken as the packet loss rate. The packet loss rate is the percentage of packet loss to the number of data packets, and the packet loss rate reflects the integrity of data transmission.

[0084] In one embodiment, referring to Figure 3 , the determining the number M of redundant packets according to the packet loss rate comprises:

[0085] S31: Select the redundant packet unit percentage.

[0086] The redundant packet unit percentage is used to measure the relationship between the number of redundant packets sent and the packet loss rate, and the redundant packet unit percentage is a fixed percentage. Preferably, the redundant packet unit percentage is set to 5%.

[0087] S32: Calculate the ratio of the packet loss rate to the redundant packet unit percentage to obtain a first ratio.

[0088] When the packet loss rate is fixed, the higher the redundant packet unit percentage, the smaller the first ratio, and the fewer redundant packets need to be sent; the lower the redundant packet unit percentage, the larger the first ratio, and the more redundant packets need to be sent.

[0089] The first ratio may be a decimal or an integer.

[0090] S33: rounding the first ratio to obtain the number M of redundant packets.

[0091] The first ratio may be rounded off by rounding down, rounding up, or rounding to the nearest integer.

[0092] When it is necessary to reduce the occupancy of the network bandwidth, the first ratio is rounded down. When it is necessary to improve the efficiency of recovering lost packets, the first ratio is rounded up. When it is necessary to reduce the occupancy of the network bandwidth and improve the efficiency of recovering lost packets, the first ratio is rounded up.

[0093] By selecting the rounding method of the redundant packet unit percentage and the first ratio according to actual conditions, the calculation relationship between the number of redundant packets and the packet loss rate can be determined.

[0094] For example, the redundant packet unit percentage is set to 5%. When the packet loss rate is 10%, the ratio of the packet loss rate to the redundant packet unit percentage, i.e., the first ratio, is 2, and the number of redundant packets is 2. When the packet loss rate is 12%, the first ratio is 2.4. If the first ratio is rounded to an integer, the first ratio is 2, and the number of redundant packets is 2; if the first ratio is rounded down, the first ratio is 2, and the number of redundant packets is 2; if the first ratio is rounded up, the first ratio is 3, and the number of redundant packets is 3.

[0095] As described above, determining the number of redundant packets M according to the packet loss rate includes selecting a redundant packet unit percentage, calculating a ratio of the packet loss rate to the redundant packet unit percentage, and obtaining a first ratio. The first ratio is rounded to obtain the number of redundant packets M. The calculation relationship between the number of redundant packets and the packet loss rate can be determined by selecting a rounding method for the redundant packet unit percentage and the first ratio according to actual conditions.

[0096] In one embodiment, before carrying M redundant packets each time during data transmission and sending them to the data receiving end, the method further includes:

[0097] S31': N 2 The data packets are sent to the data receiving end, and each of the data packets corresponds to one or more redundant packets.

[0098] At time t1, the data transmitter sends N 1 At time t2, the data transmitter sends N packets before the data receiver. 2 The data packets and M redundant packets, wherein t2>t1.

[0099] For example, a data packet carries a redundant packet, that is, N 2 =M, N 2 Set to 2, N 2 The data packets are the 10th data packet to the 11th data packet, and the difference between the numbers of each data packet and the corresponding redundant packet is fixed, and the difference between the numbers of each data packet and the corresponding redundant packet is set to 3. The data sending end sends the 10th data packet and the 11th data packet to the data receiving end. After the data sending end sends the 10th data packet and the 11th data packet, the data sending end sends the 7th data packet and the 8th data packet as two redundant packets to the data receiving end.

[0100] When sending the next batch of data packets, redundant packets corresponding to the previous batch of data packets are carried, which can restore lost packets while ensuring the real-time performance of data transmission.

[0101] As described above, before each M redundant packets are sent to the data receiving end during data transmission, the N2 Data packets are sent to the data receiving end, and each data packet corresponds to one or more redundant packets. When the next batch of data packets is sent, the redundant packets corresponding to the previous batch of data packets are carried, which can restore the lost packets while ensuring the real-time performance of data transmission.

[0102] Reference Figure 4 , is a second flow chart of the data transmission packet loss processing method applied in this solution, the method is applied to the data receiving end, and includes:

[0103] S5: Receive M redundant packets sent by the data sending end, where M≥1.

[0104] Step S5 is after the above step S4, each redundant packet is numbered, and the data receiving end receives the M redundant packets in sequence.

[0105] S6: Filter out G lost packets from the M redundant packets, where G≤M.

[0106] The number of lost packets G screened out satisfies G≤M. Since the actual number of lost packets is N 1 -K, so G ≤ N 1 -K.

[0107] For example, the actual number of lost packets is 3, and the 3 lost packets are numbered 3, 4 and 6 respectively. The data receiving end receives 3 redundant packets and matches the 3 redundant packets with the lost packet list. The lost packet list includes numbers 4 and 6, so the redundant packet numbered 4 and the redundant packet numbered 6 are both lost packets.

[0108] S7: Obtain the data transmission sequence corresponding to the G lost packets, and insert the G lost packets into the K received packets according to the data transmission sequence.

[0109] According to the lost packet in N 1 The numbers in the data packets determine the data transmission order of the G lost packets. The lost packets with earlier numbers have an earlier data transmission order, and the lost packets with later numbers have a later data transmission order.

[0110] When G<N 1 -K, after G lost packets are inserted into K received packets, the number of received packets obtained is less than N 1 , and N 1 -KG lost packets were not recovered.

[0111] When G = N 1 -K, insert G lost packets after K received packets, and the number of received packets obtained is equal to N 1 , all lost packets are restored.

[0112] The data receiving end selects G lost packets from M redundant packets by number matching, determines the data transmission order according to the numbers of the G lost packets, and inserts the G lost packets into K receiving packets according to the data transmission order, so as to recover some or all of the lost packets.

[0113] For example, the redundant packet numbered 4 and the redundant packet numbered 6 are both lost packets, and the 4th position and the 6th position in the sequence of K received packets are empty. The lost packet numbered 4 is first inserted into the 4th position of the sequence of K received packets, and then the lost packet numbered 6 is inserted into the 6th position of the sequence of K received packets.

[0114] As described above, the data transmission packet loss processing method is applied to the data receiving end, including receiving M redundant packets sent by the data sending end, where M≥1. G lost packets are screened out from the M redundant packets, where G≤M. The data transmission sequence corresponding to the G lost packets is obtained, and the G lost packets are inserted into the K received packets according to the data transmission sequence. The data receiving end screens out the G lost packets from the M redundant packets by number matching, determines the data transmission sequence according to the numbers of the G lost packets, and inserts the G lost packets into the K received packets according to the data transmission sequence, so as to recover some or all of the lost packets.

[0115] In one embodiment, the step of selecting G lost packets from the M redundant packets includes:

[0116] S61: Decode the M redundant packets to obtain M decoded redundant packets.

[0117] The M redundant packets are obtained by performing FEC encoding on the audio data or the video data, and the M redundant packets are FEC decoded to obtain M decoded redundant packets.

[0118] S62: Match the serial numbers of the M decoded redundant packets with the serial numbers of all the lost packets to obtain G target serial numbers.

[0119] Exemplarily, M is set to 4, the decoded redundant packets are numbered 10, 11, 12 and 13 respectively, and the lost packets in the lost packet list are numbered 10, 12 and 14, wherein 10 and 12 are numbers belonging to both decoded redundant packets and lost packets, and 10 and 12 are taken as two target numbers.

[0120] S63: Use the G redundant packets corresponding to the G target numbers as the G lost packets.

[0121] Exemplarily, when the target numbers are 10 and 12, the redundant packet corresponding to the target number 10 and the redundant packet corresponding to the target number 12 are regarded as two lost packets.

[0122] By matching the numbers of the decoded redundant packets, the lost packets can be screened out, the lost packets can be saved, and the decoded redundant packets of the non-lost packets can be discarded.

[0123] As described above, screening out G lost packets from M redundant packets includes decoding the M redundant packets to obtain M decoded redundant packets. Matching the numbers of the M decoded redundant packets with the numbers of all lost packets to obtain G target numbers. The G redundant packets corresponding to the G target numbers are used as G lost packets. By matching the numbers of the decoded redundant packets, lost packets can be screened out, the lost packets are saved, and the decoded redundant packets of non-lost packets are discarded.

[0124] Reference Figure 5 , is a first structural schematic block diagram of a data transmission packet loss processing device disclosed in the present application, the device is applied to a data sending end, and the device includes:

[0125] The first data packet sending module 10 is used to send N to the data receiving end. 1 packets, of which N 1 ≥1;

[0126] The packet loss rate calculation module 20 is used to receive the number of received packets K fed back by the data receiving end, and calculate the number of received packets K and the number of data packets N according to the number of received packets K. 1 Calculate the packet loss rate, where K < N 1 ;

[0127] A redundant packet number calculation module 30, used to determine the number M of redundant packets according to the packet loss rate, where M≥1;

[0128] The redundant packet sending module 40 is used to carry M redundant packets each time and send them to the data receiving end during data transmission, so that the data receiving end can filter out G lost packets from the M redundant packets and insert the G lost packets into the K received packets in sequence according to the data transmission order, where G≤M.

[0129] The above-mentioned data transmission packet loss processing device can implement a data transmission packet loss processing method applied to a data sending end.

[0130] In one embodiment, the packet loss rate calculation module 20 further includes:

[0131] The packet loss number calculation unit is used to calculate the number of data packets N 1 Subtract the number of received packets K to obtain the number of lost packets;

[0132] The packet loss rate calculation unit is used to calculate the number of packet losses and the number of data packets N. 1 The ratio of is taken as the packet loss rate.

[0133] In one embodiment, the redundant packet number calculation module 30 further includes:

[0134] A redundant packet unit percentage selection unit, used to select a redundant packet unit percentage;

[0135] a ratio calculation unit, configured to calculate a ratio of the packet loss rate to the redundant packet unit percentage to obtain a first ratio;

[0136] A rounding unit is used to round the first ratio to obtain the number M of redundant packets.

[0137] In one embodiment, the data transmission packet loss processing device further includes:

[0138] The second data packet sending module is used to send N 2 The data packets are sent to the data receiving end, and each of the data packets corresponds to one or more redundant packets.

[0139] Reference Figure 6 , is a second structural schematic block diagram of a data transmission packet loss processing device disclosed in the present application, wherein the data transmission packet loss processing device is applied to a data receiving end, and the device comprises:

[0140] A redundant packet receiving module 50, configured to receive M redundant packets sent by a data sending end, where M≥1;

[0141] A lost packet screening module 60, configured to screen out G lost packets from the M redundant packets, wherein G≤M;

[0142] The lost packet insertion module 70 is used to obtain the data transmission sequence corresponding to the G lost packets, and insert the G lost packets into the K received packets according to the data transmission sequence.

[0143] In one embodiment, the lost packet screening module 60 further includes:

[0144] A decoding unit, configured to decode the M redundant packets to obtain M decoded redundant packets;

[0145] A matching unit, configured to match the numbers of the M decoded redundant packets with the numbers of all the lost packets to obtain G target numbers;

[0146] The lost packet definition unit is used to use the G redundant packets corresponding to the G target numbers as the G lost packets.

[0147] Reference Figure 7 In an embodiment of the present application, a computer device is also provided, the internal structure of which can be as follows Figure 7As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor designed for the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating device, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store M redundant packets, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. Furthermore, the above-mentioned computer device can also be provided with an input device and a display screen, etc. When the computer program is executed by the processor, it implements a method for processing packet loss during data transmission, which is applied to a data sending end. The method includes the following steps: sending N to a data receiving end. 1 packets, of which N 1 ≥1; receiving the number of received packets K fed back by the data receiving end, and calculating the number of received packets K and the number of data packets N according to the number of received packets K and the number of data packets N 1 Calculate the packet loss rate, where K < N 1 ; Determine the number of redundant packets M according to the packet loss rate, where M≥1; carry M redundant packets each time during data transmission and send them to the data receiving end, so that the data receiving end can filter out G lost packets from the M redundant packets, and insert the G lost packets into the K received packets in sequence according to the data transmission order, where G≤M.

[0148] Those skilled in the art will understand that Figure 7 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.

[0149] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a method for processing packet loss in data transmission is implemented. The method is applied to a data sending end. The method comprises the following steps: sending N packets to a data receiving end. 1 packets, of which N 1 ≥1; receiving the number of received packets K fed back by the data receiving end, and calculating the number of received packets K and the number of data packets N according to the number of received packets K and the number of data packets N 1 Calculate the packet loss rate, where K < N 1 ; Determine the number of redundant packets M according to the packet loss rate, where M≥1; carry M redundant packets each time during data transmission and send them to the data receiving end, so that the data receiving end can filter out G lost packets from the M redundant packets, and insert the G lost packets into the K received packets in sequence according to the data transmission order, where G≤M.

[0150] It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0151] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0152] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0153] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for processing packet loss during data transmission, characterized in that: Applied to a data sending end, the method comprises: Send N1 data packets to the data receiving end, where N1≥1; Receive the number of received packets K fed back by the data receiving end, and calculate the packet loss rate according to the number of received packets K and the number of data packets N1, where K<N1; Determine the number M of redundant packets according to the packet loss rate, where M≥1; During data transmission, M redundant packets are carried each time and sent to the data receiving end, so that the data receiving end selects G lost packets from the M redundant packets, and inserts the G lost packets into the K received packets in sequence according to the data transmission order, where G≤M; The determining the number M of redundant packets according to the packet loss rate includes: Select the redundant packet unit percentage; Calculating a ratio of the packet loss rate to the redundant packet unit percentage to obtain a first ratio; The first ratio is rounded to obtain the number M of redundant packets.

2. The data transmission packet loss processing method according to claim 1, characterized in that: The calculating the packet loss rate according to the number K of received packets and the number N1 of data packets includes: Subtract the number of received packets K from the number of data packets N1 to obtain the number of lost packets; The ratio of the number of packet losses to the number N1 of data packets is used as the packet loss rate.

3. The data transmission packet loss processing method according to claim 1, characterized in that: Before the M redundant packets are carried each time and sent to the data receiving end during data transmission, the method further includes: N2 data packets are sent to the data receiving end, and each of the data packets corresponds to one or more redundant packets.

4. A method for processing packet loss during data transmission, characterized in that: Applied to a data receiving end, the method comprises: Receive M redundant packets sent by the data transmitter, where M ≥ 1; Filtering out G lost packets from the M redundant packets, where G≤M; Obtaining a data transmission sequence corresponding to the G lost packets, and inserting the G lost packets into the K received packets according to the data transmission sequence; The number M of redundant packets is determined according to a packet loss rate of a data transmitting end; wherein determining the number M of redundant packets according to the packet loss rate comprises: Select the redundant packet unit percentage; Calculating a ratio of the packet loss rate to the redundant packet unit percentage to obtain a first ratio; The first ratio is rounded to obtain the number M of redundant packets.

5. The data transmission packet loss processing method according to claim 4, characterized in that: The step of selecting G lost packets from the M redundant packets comprises: Decoding the M redundant packets to obtain M decoded redundant packets; Matching the numbers of the M decoded redundant packets with the numbers of all the lost packets to obtain G target numbers; The G redundant packets corresponding to the G target numbers are used as the G lost packets.

6. A data transmission packet loss processing device, characterized in that: Applied to the data sending end, including: A first data packet sending module, configured to send N1 data packets to a data receiving end, wherein N1≥1; A packet loss rate calculation module, configured to receive the number of received packets K fed back by the data receiving end, and calculate the packet loss rate according to the number of received packets K and the number of data packets N1, wherein K<N1; A redundant packet number calculation module, used to determine the number M of redundant packets according to the packet loss rate, where M≥1; Wherein, the redundant packet number calculation module also includes: A redundant packet unit percentage selection unit, used to select a redundant packet unit percentage; a ratio calculation unit, configured to calculate a ratio of the packet loss rate to the redundant packet unit percentage to obtain a first ratio; a rounding unit, configured to round the first ratio to obtain the number M of redundant packets; A redundant packet sending module is used to carry M redundant packets each time during data transmission and send them to the data receiving end, so that the data receiving end can filter out G lost packets from the M redundant packets and insert the G lost packets into the K received packets in sequence according to the data transmission order, where G≤M.

7. A data transmission packet loss processing device, characterized in that: Applied to the data receiving end, including: A redundant packet receiving module, used for receiving M redundant packets sent by a data sending end, where M≥1; A lost packet screening module, used to screen out G lost packets from the M redundant packets, where G≤M; A lost packet insertion module, used to obtain a data transmission sequence corresponding to the G lost packets, and insert the G lost packets into the K received packets according to the data transmission sequence; The number M of redundant packets is determined according to a packet loss rate of a data transmitting end; wherein determining the number M of redundant packets according to the packet loss rate comprises: Select the redundant packet unit percentage; Calculating a ratio of the packet loss rate to the redundant packet unit percentage to obtain a first ratio; The first ratio is rounded to obtain the number M of redundant packets.

8. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method for processing data transmission packet loss according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data transmission packet loss processing method according to any one of claims 1 to 5 are implemented.