Data processing method and system, electronic equipment and storage medium
By calculating the initial packet loss rate and dynamically updating the packet loss rate in the communication link, and adjusting the timeout retransmission time in combination with the timeout retransmission formula, the problem that the timeout retransmission time cannot converge quickly in the existing technology is solved, thus improving the data transmission efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-29
- Publication Date
- 2026-04-07
AI Technical Summary
Existing timeout retransmission algorithms fail to adapt quickly to changes in network links, resulting in the timeout retransmission time not converging to the ideal threshold quickly, thus affecting data transmission efficiency.
By calculating the initial packet loss rate before the communication link begins, and dynamically updating the packet loss rate using a time window with a fixed duration and a sliding step size, and adjusting the timeout retransmission time using a timeout retransmission formula, dynamic adjustment is achieved.
It improves the accuracy of timeout retransmission calculation, reduces convergence time, and enhances data transmission efficiency.
Smart Images

Figure CN121814641A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of data processing, and particularly relates to a data processing method, system, electronic device, and storage medium. Background Technology
[0002] In TCP (Transmission Control Protocol) data communication, retransmission timeout (RTO) is one of the core mechanisms to ensure reliable transmission. Its purpose is to reasonably set the retransmission time threshold. If the RTO is too small, it will increase the number of unnecessary retransmissions and squeeze the original bandwidth; if the RTO is set too long, it will affect the data transmission efficiency.
[0003] To quickly adapt to changes in network links and ensure the efficiency of timeout retransmission mechanisms, existing technologies typically employ adaptive timeout retransmission algorithms. However, existing timeout retransmission schemes often neglect packet loss rate factors, causing the timeout retransmission time to fail to converge quickly to the ideal time threshold during actual operation, thus affecting the data transmission rate.
[0004] Therefore, a data processing solution is urgently needed to address the aforementioned problems. Summary of the Invention
[0005] This application proposes a data processing method, system, electronic device, and storage medium for improving the convergence speed of timeout retransmission time to an ideal threshold.
[0006] To achieve the above objectives, this application proposes the following technical solutions:
[0007] In a first aspect of this application, a data processing method is provided, comprising:
[0008] Before the communication link starts working, multiple detection data packets with incrementing sequence numbers are transmitted, and the number of received detection data packets is counted by sequence number to calculate the packet loss rate of the communication link in advance as the initial packet loss rate.
[0009] Based on the initial packet loss rate and the preset timeout retransmission formula, the timeout retransmission time (RTO) of the communication link is obtained; wherein, the timeout retransmission formula is: T represents the weighted estimate of transmission time in the communication link, and loss represents the packet loss rate of the communication link, where 0 ≤ loss < 0.5;
[0010] Based on a time window with a fixed duration and a fixed sliding step, the packet loss rate of the communication link during operation is continuously updated, and the updated packet loss rate is substituted into the timeout retransmission formula to dynamically adjust the timeout retransmission time; wherein, the sliding step is the same as the duration.
[0011] Optionally, based on a time window of fixed duration and fixed sliding step size, the packet loss rate of the communication link during operation is continuously updated, including:
[0012] During the operation of the communication link, the number of data packets sent by the sending end and the number of data packets received by the receiving end are counted within the time range corresponding to the fixed duration.
[0013] Calculate the difference between the amount of data packets sent and the amount of data packets received;
[0014] The ratio between the difference and the amount of data packets sent is calculated as the current packet loss rate.
[0015] Optionally, after calculating the ratio between the difference and the number of data packets sent as the current packet loss rate, the data processing method further includes:
[0016] Based on the current packet loss rate and the estimated packet loss rate calculated in the previous time window, as well as the preset packet loss rate calculation formula, the estimated packet loss rate under the current time window is calculated.
[0017] The preset packet loss rate calculation formula is: P new =α·P old +(1-α)·P in Among them, P new P represents the estimated packet loss rate within the current time window; α represents the preset adjustment coefficient, and 0 ≤ α ≤ 1; old P represents the estimated packet loss rate calculated within the previous time window. in This indicates the current packet loss rate within the current time window;
[0018] The estimated packet loss rate within the current time window is used as the updated packet loss rate and substituted into the timeout retransmission formula to dynamically adjust the timeout retransmission time; wherein,
[0019] Optionally, before the communication link begins operation, multiple detection data packets with incrementing sequence numbers are transmitted, and the number of received detection data packets is statistically analyzed using the sequence numbers to pre-calculate the packet loss rate of the communication link, including:
[0020] Before the communication link starts working, the detection data packet is sent from the sending end of the communication link, and the sequence number of the received detection data packet is counted at the receiving end of the communication link; wherein, the sequence number of the detection data packet sent by the sending end increases one by one;
[0021] The difference between the maximum and minimum sequence numbers of the detection data packets sent by the sending end is calculated as the total number of detection data packets. Based on the sequence numbers counted by the receiving end, the amount of data that has not been lost in the communication link is obtained.
[0022] Calculate the difference between the total number of detected data packets and the amount of data that was not lost;
[0023] Calculate the ratio of the difference to the total amount, and use it as the initial packet loss rate.
[0024] Optionally, after continuously updating the packet loss rate of the communication link during operation based on a time window of fixed duration and fixed sliding step size, the data processing method further includes:
[0025] Determine whether the updated packet loss rate exceeds the preset packet loss rate threshold; if yes, stop the data transmission of the communication link; if no, substitute the updated packet loss rate into the timeout retransmission formula to adjust the timeout retransmission time, and continue the data transmission of the communication link.
[0026] Optionally, after dynamically adjusting the timeout retransmission time, the data processing method further includes:
[0027] Determine whether the adjusted timeout retransmission time is greater than the preset threshold; if so, reduce the data packet sending rate.
[0028] Optionally, the weighted estimate of transmission time can be calculated using the following formula:
[0029] Where T0 represents the weighted estimate of the previous transmission time; D represents the average deviation of the transmission time; T r This represents the actual measured time of this data transmission.
[0030] In a second aspect of this application, a data processing system is provided, comprising:
[0031] The packet loss rate calculation module transmits multiple detection data packets with incrementing sequence numbers before the communication link starts working, and counts the number of received detection data packets by sequence number to calculate the packet loss rate of the communication link in advance as the initial packet loss rate.
[0032] The timeout retransmission module, based on the initial packet loss rate and a preset timeout retransmission formula, obtains the timeout retransmission time (RTO) of the communication link; wherein, the timeout retransmission formula is: T represents the weighted estimate of transmission time in the communication link, and loss represents the packet loss rate of the communication link, where 0 ≤ loss < 0.5;
[0033] The time adjustment module continuously updates the packet loss rate of the communication link during operation based on a time window with a fixed duration and a fixed sliding step size, and substitutes the updated packet loss rate into the timeout retransmission formula to dynamically adjust the timeout retransmission time; wherein, the sliding step size is the same as the duration.
[0034] In a third aspect of this application, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus.
[0035] Memory, used to store computer programs;
[0036] A processor, when executing a program stored in memory, implements the data processing method described in any of the first aspects.
[0037] In a fourth aspect of this application, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when executed by a processor, the computer program implements the data processing method described in any of the first aspects.
[0038] The beneficial effects of this application are as follows:
[0039] This application provides a data processing method, comprising: before the communication link starts working, transmitting multiple detection data packets with incrementing sequence numbers, and counting the received amount of the detection data packets by sequence number to pre-calculate the packet loss rate of the communication link as an initial packet loss rate; obtaining the timeout retransmission time (RTO) of the communication link based on the initial packet loss rate and a preset timeout retransmission formula; wherein, the timeout retransmission formula is: T represents the weighted estimate of the transmission time in the communication link, and loss represents the packet loss rate of the communication link, where 0 ≤ loss < 0.5. Based on a time window with a fixed duration and a fixed sliding step, the packet loss rate of the communication link during operation is continuously updated, and the updated packet loss rate is substituted into the timeout retransmission formula to dynamically adjust the timeout retransmission time. The sliding step is the same as the duration.
[0040] Based on the above processing, this application achieves dynamic adjustment of the timeout retransmission time during the timeout retransmission time adjustment process, according to the relationship between the timeout retransmission time and the packet loss rate, as well as the packet loss rate update calculation process, thereby improving the accuracy of the timeout retransmission time calculation results.
[0041] This application detects the initial packet loss rate of the communication link by using a preset detection data packet, and then directly calculates the timeout retransmission time by substituting it into a preset timeout retransmission time formula. Compared with the prior art, this reduces the time in the subsequent convergence process and improves the data transmission efficiency. Attached Figure Description
[0042] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0043] Figure 1 This is a flowchart of a data processing method provided in this application;
[0044] Figure 2 This is a structural diagram of a data processing system provided in this application;
[0045] Figure 3 This is a structural diagram of an electronic device provided in this application. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this application, but not all embodiments.
[0047] Existing timeout retransmission algorithms often fail to consider packet loss, which prevents them from quickly converging to the ideal time threshold in actual operation, thus affecting the data transmission rate.
[0048] To address the aforementioned problems, this application provides a data processing method, such as... Figure 1 As shown, the method includes the following steps:
[0049] S1. Before the communication link starts working, multiple detection data packets with increasing sequence numbers are transmitted, and the number of received detection data packets is counted by sequence number to calculate the packet loss rate of the communication link in advance as the initial packet loss rate.
[0050] S2. Based on the initial packet loss rate and the preset timeout retransmission formula, obtain the timeout retransmission time RTO of the communication link.
[0051] The timeout retransmission formula is as follows: T represents the weighted estimate of transmission time in the communication link, and loss represents the packet loss rate of the communication link, with 0 ≤ loss < 0.5.
[0052] S3. Based on a time window with a fixed duration and a fixed sliding step size, continuously update the packet loss rate of the communication link during operation, and substitute the updated packet loss rate into the timeout retransmission formula to dynamically adjust the timeout retransmission time. The sliding step size is the same as the duration.
[0053] Based on the above processing, this application achieves dynamic adjustment of the timeout retransmission time during the timeout retransmission time adjustment process, according to the relationship between the timeout retransmission time and the packet loss rate, as well as the packet loss rate update calculation process, thereby improving the accuracy of the timeout retransmission time calculation results.
[0054] This application detects the initial packet loss rate of the communication link using a preset detection data packet and directly calculates the timeout retransmission time by substituting it into a preset timeout retransmission formula. Compared with existing technologies, this reduces the time spent in the subsequent convergence process and improves data transmission efficiency.
[0055] For step S1, probe data packets are sent at a fixed rate at the sending end of the communication link. The initial packet loss rate is calculated as the ratio between the amount of data packets lost from the sending end to the receiving end within the communication link and the total amount of probe data packets sent by the sending end.
[0056] In some embodiments, step S1 includes the following:
[0057] S101. Before the communication link starts working, the detection data packet is sent from the sending end of the communication link, and the sequence number of the received detection data packets is counted at the receiving end of the communication link. The sequence number of the detection data packets sent by the sending end increments sequentially.
[0058] S102. Calculate the difference between the maximum and minimum sequence numbers of the detection data packets sent by the sending end, and use this difference as the total number of detection data packets. Based on the sequence numbers counted by the receiving end, obtain the amount of data that has not been lost in the communication link.
[0059] S103. Calculate the difference between the total number of detected data packets and the amount of data that was not lost.
[0060] S104. Calculate the ratio of the difference to the total amount as the initial packet loss rate.
[0061] For step S101, the sending end sends detection data packets with progressively increasing sequence numbers at a preset rate. For step S102, the maximum sequence number X of the data packet is calculated. max With the smallest sequence number X min The difference is used as the total number of probe data packets. At the same time, the total number of data packets received by the receiver is calculated as X1 based on the sequence number received by the receiver.
[0062] For steps S103 to S104, the initial packet loss rate
[0063] The derivation of the timeout retransmission formula for step S2 is explained below:
[0064] If we assume that the packet loss rate of the data transmission link is loss, then the actual time E spent by the data packet in the transmission link can be estimated as:
[0065] In the optimal communication data transmission process, the timeout retransmission time threshold (i.e., the timeout retransmission time RTO of this application) is the same as the data packet transmission time E, that is, let time E be the timeout retransmission time RTO, thus obtaining the following transformation.
[0066] According to existing adaptive timeout retransmission algorithms, the timeout retransmission time formula is RTO = β * T, where β is a constant greater than 1. The value is also greater than 1, and the timeout retransmission time formula proposed in this application conforms to the existing timeout retransmission algorithm.
[0067] Furthermore, it should be noted that although Chinese patent CN118828100A also discloses a derivation formula for the timeout E, its solution differs from the technical problem addressed in this application. It does not disclose the scheme concept of using packet loss rate to optimize timeout retransmission time, as presented in this application. Moreover, this patent solution does not disclose, based on the aforementioned scheme concept, technical means such as early detection of the initial packet loss rate and dynamic adjustment of the packet loss rate. Therefore, it cannot achieve beneficial effects such as reducing subsequent timeout retransmission time convergence time and improving the accuracy of timeout retransmission time calculation results based on the derivation formula for the timeout E.
[0068] Considering the packet loss rate, which is affected by factors such as network traffic pressure, receiver performance, and transmission signal interference, and changes dynamically over time, the packet loss rate data also needs to be dynamically updated. Therefore, for step S3, based on a time window of fixed duration and fixed sliding step size, the packet loss rate of the communication link during operation is continuously updated, including the following steps:
[0069] Step S301: During the operation of the communication link, the number of data packets sent by the sending end and the number of data packets received by the receiving end are counted within the time range corresponding to the fixed duration.
[0070] Step S302: Calculate the difference between the amount of data packets sent and the amount of data packets received.
[0071] Step S303: Calculate the ratio between the difference and the amount of data packets sent, and use it as the current packet loss rate.
[0072] Regarding steps S301 to S303, during data transmission in the communication link, the difference between the amount of data sent and received within a fixed time period (e.g., 1 second) is calculated as the amount of data packet loss. Then, based on the ratio between the sent amounts, the current packet loss rate is obtained. Specifically, when the communication link starts operating, the initial packet loss rate (loss) calculated in step S1 is used as the current packet loss rate of the communication link.
[0073] In some embodiments, to avoid abrupt changes in packet loss rate, an adaptive formula can be used to smooth the current packet loss rate. After calculating the ratio between the difference and the amount of data packets sent as the current packet loss rate, the data processing method of this application further includes the following steps:
[0074] S304. Based on the current packet loss rate and the estimated packet loss rate calculated in the previous time window, as well as the preset packet loss rate calculation formula, calculate the estimated packet loss rate for the current time window.
[0075] The preset packet loss rate calculation formula is: P new =α·P old +(1-α)·P in Among them, P new P represents the estimated packet loss rate within the current time window; α represents the preset adjustment coefficient, and 0 ≤ α ≤ 1; old P represents the estimated packet loss rate calculated within the previous time window. in This indicates the current packet loss rate within the current time window.
[0076] S305. The estimated packet loss rate under the current time window is used as the updated packet loss rate, and substituted into the timeout retransmission formula to dynamically adjust the timeout retransmission time.
[0077] In some embodiments, after obtaining the updated packet loss rate, the data processing method provided in this application further includes the following steps:
[0078] Step 1: Determine whether the updated packet loss rate exceeds the preset packet loss rate threshold; if yes, stop data transmission on the communication link. If no, substitute the updated packet loss rate into the timeout retransmission formula to adjust the timeout retransmission time, and continue data transmission on the communication link.
[0079] For step one, if the updated packet loss rate exceeds the preset packet loss rate threshold, it indicates poor communication quality in the communication link, making it impossible to guarantee normal data transmission. Therefore, it is necessary to stop data transmission on the current communication link, check and adjust it before proceeding. Typically, the preset packet loss rate threshold is set between 0.3 and 0.5.
[0080] Based on existing adaptive timeout transmission algorithms using the TCP protocol, the formula for calculating the transmission time T in TCP is:
[0081] T = [α*T0 + (1-α)*T] r ]
[0082] Where T0 represents the weighted estimate of the previous round-trip delay (i.e., the transmission time of this application); α represents a constant between 0 and 1; T r This represents the actual measured value of the current data transmission time.
[0083] However, in the aforementioned existing adaptive timeout transmission algorithms, when there are drastic changes in transmission time, the corresponding changes in the algorithm result are slow and often fail to converge quickly to the actual transmission time, resulting in wasted bandwidth or unnecessary signal transmission.
[0084] To address the aforementioned issues, the weighted estimate of transmission time in this application is calculated using the following formula:
[0085] Where D represents the average deviation of round-trip time delay, which is used to quantify the network jitter of the communication link.
[0086] Specifically, let the constant α be adjusted to Substituting into the aforementioned adaptive formula for transmission time T, we obtain the simplified result.
[0087] Based on this setting, when the actual and estimated round-trip delay values differ significantly, the average deviation D of the round-trip delay increases, the value of α decreases, and the weight of the actual transmission time increases. This allows the estimated value to quickly approach the actual value, improving the convergence rate of existing estimation algorithms and thus effectively increasing the data transmission rate.
[0088] In some embodiments, after dynamically adjusting the timeout retransmission time, the data processing method further includes:
[0089] S4. Determine whether the adjusted timeout retransmission time is greater than the preset time threshold; if yes, reduce the data packet sending rate; if no, keep the data packet sending rate unchanged.
[0090] Regarding step S4, when the timeout retransmission time exceeds the preset time threshold, it indicates that the transmission quality of the current communication link is poor and cannot effectively complete the signal transmission under the current rate. Therefore, by reducing the data packet sending rate, the aforementioned problem can be alleviated, and the normal operation of the existing communication link can be guaranteed without interruption.
[0091] In some embodiments, this application also provides a data processing system, such as Figure 2 As shown, the data processing system includes:
[0092] Before the communication link starts working, the packet loss rate calculation module 201 transmits multiple detection data packets with incrementing sequence numbers, and counts the number of received detection data packets by sequence number to calculate the packet loss rate of the communication link in advance as the initial packet loss rate.
[0093] The timeout retransmission module 202 obtains the timeout retransmission time (RTO) of the communication link based on the initial packet loss rate and a preset timeout retransmission formula. The timeout retransmission formula is as follows: T represents the weighted estimate of transmission time in the communication link, and loss represents the packet loss rate of the communication link, with 0 ≤ loss < 0.5.
[0094] The time adjustment module 203 continuously updates the packet loss rate of the communication link during operation based on a time window with a fixed duration and a fixed sliding step size, and substitutes the updated packet loss rate into the timeout retransmission formula to dynamically adjust the timeout retransmission time. The sliding step size is the same as the duration.
[0095] This application also provides an electronic device, such as... Figure 3 As shown, it includes a processor 301, a communication interface 302, a memory 303, and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304.
[0096] Memory 303 is used to store computer programs;
[0097] The processor 301 is used to execute any of the above data processing methods when executing the program stored in the memory 303.
[0098] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not indicate that there is only one bus or one type of bus.
[0099] The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0100] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0101] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0102] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements any of the above-described data processing method steps.
[0103] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to perform any of the data processing method steps in the above embodiments.
[0104] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A data processing method, characterized in that, include: Before the communication link starts working, multiple detection data packets with incrementing sequence numbers are transmitted, and the number of received detection data packets is counted by sequence number to calculate the packet loss rate of the communication link in advance as the initial packet loss rate. Based on the initial packet loss rate and the preset timeout retransmission formula, the timeout retransmission time (RTO) of the communication link is obtained; wherein, the timeout retransmission formula is: T represents the weighted estimate of transmission time in the communication link, and loss represents the packet loss rate of the communication link, where 0 ≤ loss < 0.5; Based on a time window with a fixed duration and a fixed sliding step, the packet loss rate of the communication link during operation is continuously updated, and the updated packet loss rate is substituted into the timeout retransmission formula to dynamically adjust the timeout retransmission time; wherein, the sliding step is the same as the duration.
2. The data processing method according to claim 1, characterized in that, Based on a time window with a fixed duration and a fixed sliding step size, the packet loss rate of the communication link during operation is continuously updated, including: During the operation of the communication link, the number of data packets sent by the sending end and the number of data packets received by the receiving end are counted within the time range corresponding to the fixed duration. Calculate the difference between the amount of data packets sent and the amount of data packets received; The ratio between the difference and the amount of data packets sent is calculated as the current packet loss rate.
3. The data processing method according to claim 2, characterized in that, After calculating the ratio between the difference and the number of data packets sent as the current packet loss rate, the data processing method further includes: Based on the current packet loss rate and the estimated packet loss rate calculated in the previous time window, as well as the preset packet loss rate calculation formula, the estimated packet loss rate under the current time window is calculated. The preset packet loss rate calculation formula is: P new =α·P old +(1-α)·P in Among them, P new P represents the estimated packet loss rate within the current time window; α represents the preset adjustment coefficient, and 0 ≤ α ≤ 1; old P represents the estimated packet loss rate calculated within the previous time window. in This indicates the current packet loss rate within the current time window; The estimated packet loss rate within the current time window is used as the updated packet loss rate and substituted into the timeout retransmission formula to dynamically adjust the timeout retransmission time; wherein, 4. The data processing method according to claim 1, characterized in that, Before the communication link begins operation, multiple detection data packets with incrementing sequence numbers are transmitted, and the number of received detection data packets is statistically analyzed using the sequence numbers to pre-calculate the packet loss rate of the communication link, including: Before the communication link starts working, the detection data packet is sent from the sending end of the communication link, and the sequence number of the received detection data packet is counted at the receiving end of the communication link; wherein, the sequence number of the detection data packet sent by the sending end increases one by one; The difference between the maximum and minimum sequence numbers of the detection data packets sent by the sending end is calculated as the total number of detection data packets. Based on the sequence numbers counted by the receiving end, the amount of data that has not been lost in the communication link is obtained. Calculate the difference between the total number of detected data packets and the amount of data that was not lost; Calculate the ratio of the difference to the total amount, and use it as the initial packet loss rate.
5. The data processing method according to claim 2, characterized in that, After continuously updating the packet loss rate of the communication link during operation within a time window based on a fixed duration and a fixed sliding step size, the data processing method further includes: Determine whether the updated packet loss rate exceeds the preset packet loss rate threshold; if yes, stop the data transmission of the communication link; if no, substitute the updated packet loss rate into the timeout retransmission formula to adjust the timeout retransmission time, and continue the data transmission of the communication link.
6. The data processing method according to claim 1, characterized in that, After dynamically adjusting the timeout retransmission time, the data processing method further includes: Determine whether the adjusted timeout retransmission time is greater than the preset threshold; if so, reduce the data packet sending rate.
7. The data processing method according to claim 1, characterized in that, The formula for calculating the weighted estimate of transmission time is: Where T0 represents the weighted estimate of the previous transmission time; D represents the average deviation of the transmission time; T r This represents the actual measured time of this data transmission.
8. A data processing system, characterized in that, include: The packet loss rate calculation module transmits multiple detection data packets with incrementing sequence numbers before the communication link starts working, and counts the number of received detection data packets by sequence number to calculate the packet loss rate of the communication link in advance as the initial packet loss rate. The timeout retransmission module, based on the initial packet loss rate and a preset timeout retransmission formula, obtains the timeout retransmission time (RTO) of the communication link; wherein, the timeout retransmission formula is: T represents the weighted estimate of transmission time in the communication link, and loss represents the packet loss rate of the communication link, where 0 ≤ loss < 0.5; The time adjustment module continuously updates the packet loss rate of the communication link during operation based on a time window with a fixed duration and a fixed sliding step size, and substitutes the updated packet loss rate into the timeout retransmission formula to dynamically adjust the timeout retransmission time; wherein, the sliding step size is the same as the duration.
9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the data processing method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, A computer-readable storage medium stores a computer program that, when executed by a processor, implements the data processing method according to any one of claims 1-7.
Citation Information
Patent Citations
Data processing method and device, electronic equipment and storage medium
CN118828100A