Method and device for selecting data transmission rate, equipment and medium

By determining and updating the target data transmission rate using historical transmission results, the problem of low reliability of the data transmission rate selection algorithm based on detection in the prior art is solved, and the reliability of selection and network efficiency are improved.

CN119450595APending Publication Date: 2025-02-14TP-LINK INT SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411478323.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The detection-based data transmission rate selection algorithm in existing wireless communication systems is low in reliability, and is affected by environmental noise and multipath interference, resulting in inaccurate or fluctuating signal quality measurement.

Method used

By obtaining the historical transmission results of each optional data transmission rate, the target data transmission rate is determined, and the historical transmission result is updated after each data transmission task to guide the selection of the current data transmission rate.

Benefits of technology

It improves the reliability of data transmission rate selection, reduces the wrong choice caused by inaccurate or fluctuations in signal quality measurement, and improves the overall efficiency and user experience of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119450595A_ABST
    Figure CN119450595A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission rate selection method. The method comprises the following steps: acquiring a historical transmission result of each selectable data transmission rate; determining a target data transmission rate from the selectable data transmission rates according to the historical transmission results of the selectable data transmission rates, wherein the target data transmission rate is the optimal data transmission rate of the data transmission task; and updating the historical transmission result of the target data transmission rate according to the transmission result corresponding to the data transmission task. According to the scheme provided by the invention, the effect of improving the reliability of data transmission rate selection can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of wireless transmission technology, and in particular, relates to a method, device, equipment and medium for selecting a data transmission rate. Background Art

[0002] In the field of wireless communications, the selection of data transmission rate is a crucial decision-making process. First of all, the data transmission rate is directly related to the quality of user experience. A suitable data transmission rate can ensure smooth video calls, fast file transfers, and real-time response of online games, thereby providing users with high-quality communication services. In addition, the selection of data transmission rate also profoundly affects the overall efficiency of the network. By accurately adjusting the data transmission rate, the network can maximize the use of existing resources while ensuring the quality of communication, avoiding resource waste and congestion. Therefore, in the design, deployment and operation of wireless communication systems, full attention should be paid to the importance of data transmission rate selection, and corresponding technical means and management strategies should be adopted to ensure its scientific, reasonable and effective.

[0003] Most of the data transmission rate selection algorithms in the related art determine the transmission success probability corresponding to the optional data transmission rate by detecting the current transmission environment, and further select the optimal optional data transmission rate as the target data transmission rate for the data transmission task based on the transmission success probability corresponding to each optional data transmission rate. However, when detecting the signal quality of the current transmission environment, it will be affected by factors such as environmental noise and multipath interference, resulting in inaccurate or fluctuating measurement results of the signal quality, thereby affecting the accuracy of the data transmission rate selection algorithm in the related art that is based on detecting the current transmission environment to adaptively adjust the data transmission rate. Therefore, the data transmission rate selection algorithm in the related art based on detecting the current transmission environment has low reliability. Summary of the invention

[0004] The embodiment of the present application provides an implementation scheme different from the related art to solve the technical problem in the related art that the reliability of the rate selection algorithm based on detecting the current transmission environment is low.

[0005] In a first aspect, the present application provides a method for selecting a data transmission rate, comprising:

[0006] Get historical transmission results for each selectable data transmission rate;

[0007] Determine a target data transmission rate from the various optional data transmission rates according to historical transmission results of the various optional data transmission rates, the target data transmission rate being the optimal data transmission rate for the current data transmission task;

[0008] The historical transmission result of the target data transmission rate is updated according to the transmission result corresponding to the current data transmission task.

[0009] In this embodiment, a new data transmission rate selection scheme is provided, which uses the historical transmission results of the data transmission task to determine the transmission rate used in the current data transmission, and after completing a data transmission task, the historical transmission results of the target data transmission rate are updated according to the transmission results corresponding to the current data transmission task, that is, the current data transmission rate selection is guided according to the transmission results corresponding to the historical data transmission tasks. This method can improve the reliability of rate selection.

[0010] In one embodiment, updating the historical transmission result of the target data transmission rate according to the transmission result corresponding to the current data transmission task includes:

[0011] If the target data transmission rate is determined as the optimal data transmission rate for N consecutive times, and the actual transmission success rate corresponding to M consecutive historical data transmission tasks is greater than a first preset threshold, data smoothing processing is performed on the number of successfully transmitted data packets of the target data transmission rate and the number of failed transmission data packets of the target data transmission rate based on a first smoothing speed and a second smoothing speed, respectively, wherein N and M are preset values, the first smoothing speed is less than the second smoothing speed, and the historical data transmission tasks include the current data transmission task and all data transmission tasks before the current data transmission task.

[0012] In this embodiment, differentiated smoothing processing methods are provided for the number of successfully transmitted data packets and the number of failed data packets. Since the number of successfully transmitted data packets is more stable, a smaller smoothing speed is used, while the number of failed data packets may contain more randomness, so a larger smoothing speed is used, which can respond more quickly to potential changes in the network environment.

[0013] In one embodiment, if the target data transmission rate is selected as the optimal data transmission rate for N consecutive times, and the actual transmission success rate corresponding to the M consecutive historical data transmission tasks is greater than the first preset threshold, the method further includes:

[0014] Data smoothing processing is performed on the number of data packets of transmission failure of the data transmission rate associated with the target optional data transmission rate, wherein the data transmission rate associated with the target optional data transmission rate is an optional data transmission rate among the various optional data transmission rates whose data transmission rate is higher than the target data transmission rate.

[0015] In this embodiment, when the target data transmission rate performs stably and has a high transmission success rate, its associated data transmission rate (i.e., an optional rate higher than the target rate) is likely to have similar performance. Smoothing the transmission failure data packets of these associated data transmission rates can give higher data transmission rates a greater chance of trying, so that the next rate transmission has a greater probability of trying a higher data transmission rate.

[0016] In one embodiment, updating the historical transmission result of the target data transmission rate according to the transmission result corresponding to the current data transmission task includes:

[0017] If the target data transmission rate is determined as the optimal data transmission rate for K consecutive times, and the actual transmission success rate corresponding to L consecutive historical data transmission tasks is less than a second preset threshold, data smoothing processing is performed on the number of successfully transmitted data packets of the target data transmission rate and the number of failed transmission data packets of the target data transmission rate based on a third smoothing speed and a fourth smoothing speed, respectively, wherein K and L are preset values, the third smoothing speed is greater than the fourth smoothing speed, and the historical data transmission tasks include the current data transmission task and all data transmission tasks before the current data transmission task.

[0018] In this embodiment, by speeding up the smoothing speed of the number of successfully transmitted data packets, it is possible to more sensitively capture signs of improved network performance. At the same time, smoothing the number of failed transmission data packets helps to more accurately evaluate the stability of the target data transmission rate.

[0019] In one embodiment, determining the target data transmission rate from the various optional data transmission rates according to historical transmission results of the various optional data transmission rates includes:

[0020] The optional data transmission rate with the largest expected throughput among the optional data transmission rates is determined according to historical transmission results of the optional data transmission rates, and the optional data transmission rate with the largest expected throughput is used as the target data transmission rate.

[0021] In this embodiment, the optional data transmission rate with the maximum expected throughput generally means higher data transmission speed and lower latency. Selecting such an optional data transmission rate as the target data transmission rate can significantly improve the efficiency of data transmission and reduce the time and resources required for transmission.

[0022] In one embodiment, determining an expected throughput corresponding to the selectable data transmission rate according to historical transmission results of the selectable data transmission rate includes:

[0023] Generate a first random number and a second random number that obey a first gamma distribution and a second gamma distribution, respectively, wherein a shape parameter of the first gamma distribution is determined based on the number of successfully transmitted data packets at the optional data transmission rate, and a shape parameter of the second gamma distribution is determined based on the number of failed transmission data packets at the optional data transmission rate;

[0024] Dividing the first random number by the sum of the first random number and the second random number to obtain a historical transmission success rate corresponding to the optional data transmission rate;

[0025] An estimated throughput corresponding to the selectable data transmission rate is determined based on a historical transmission success rate corresponding to the selectable data transmission rate.

[0026] In this embodiment, the number of successfully transmitted data packets and the number of failed transmitted data packets of the selectable data transmission rate are simulated by using the gamma distribution, thereby improving the reliability of data transmission rate selection.

[0027] In one embodiment, if the current data transmission task meets the preset period, the method further includes:

[0028] Performing data smoothing processing on historical transmission results of each optional data transmission rate;

[0029] The determining, according to the historical transmission results of the various optional data transmission rates, the optional data transmission rate with the largest expected throughput among the various optional data transmission rates comprises:

[0030] The selectable data transmission rate with the largest expected throughput among the selectable data transmission rates is determined according to the historical transmission results of the selectable data transmission rates after data smoothing.

[0031] In this embodiment, performing data smoothing on the historical transmission results can reduce random fluctuations and noise in the historical transmission results, making the data more stable and reliable, and helping to improve the reliability when selecting a data transmission rate.

[0032] In a second aspect, the present application provides a device for selecting a data transmission rate, comprising:

[0033] An acquisition unit, used for acquiring historical transmission results of each optional data transmission rate;

[0034] a target data transmission rate determining unit, configured to determine a target data transmission rate from among the various optional data transmission rates according to historical transmission results of the various optional data transmission rates, wherein the target data transmission rate is an optimal data transmission rate for the current data transmission task;

[0035] The historical transmission result updating unit is used to update the historical transmission result of the target data transmission rate according to the transmission result corresponding to the current data transmission task.

[0036] In a third aspect, the present application provides an electronic device, including:

[0037] Processor; and

[0038] A memory, configured to store executable instructions of the processor;

[0039] The processor is configured to execute the first aspect, or any method in any possible implementation manner of the first aspect, by executing the executable instructions.

[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the first aspect, or any method in any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following is a brief introduction to the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0042] Figure 1 A flowchart of a method for selecting a data transmission rate provided in one embodiment of the present application;

[0043] Figure 2 A schematic diagram of a flow chart of updating historical transmission results of various optional data transmission rates according to the transmission result corresponding to the current data transmission task provided by an exemplary embodiment of the present application;

[0044] Figure 3 A schematic diagram of the structure of a device for selecting a data transmission rate provided by an embodiment of the present application;

[0045] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, but cannot be understood as limiting the present application.

[0047] The terms "first" and "second" etc. in the specification, claims and drawings of the embodiments of the present application are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that this scheme is implemented in other orders in addition to the order illustrated or described in the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0048] Most of the data transmission rate selection algorithms in the related art determine the transmission success probability corresponding to the optional data transmission rate by detecting the current transmission environment, and further select the optimal optional data transmission rate as the target data transmission rate for the data transmission task based on the transmission success probability corresponding to each optional data transmission rate. However, when detecting the signal quality of the current transmission environment, it will be affected by factors such as environmental noise and multipath interference, resulting in inaccurate or fluctuating signal quality measurement results, thereby affecting the accuracy of adaptively adjusting the data transmission rate based on detecting the current transmission environment. Therefore, the data transmission rate selection algorithm based on detecting the current transmission environment in the related art has low reliability.

[0049] In order to solve this technical problem, the present application provides a method, device, equipment and medium for selecting a data transmission rate, which are used to solve the technical problem in the related art that the reliability of the data transmission rate selection algorithm based on detecting the current transmission environment is low.

[0050] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0051] Figure 1 A flowchart of a method for selecting a data transmission rate provided by an exemplary embodiment of the present application is provided. The method may be applicable to a computing device. The method at least includes the following S11-S14:

[0052] S11, obtaining historical transmission results of each optional data transmission rate;

[0053] Among them, each optional data transmission rate is a theoretical rate corresponding to part or all of the rate files selected by the wireless access point AP from the modulation and coding strategy rate files according to the protocol type supported by the client. Each time a data transmission task is performed, the method provided in this application is used to select one of the optional data transmission rates as the target data transmission rate corresponding to this data transmission task.

[0054] The historical transmission results of the optional data transmission rate include: the number of successfully transmitted data packets, the number of failed data packets, and the actual transmission success rate corresponding to each data transmission task with the optional data transmission rate as the optimal data transmission rate. For example, in a certain historical data transmission task, the number of successfully transmitted data packets is 800, and the number of failed data packets is 200. Then the actual transmission success rate of the optional data transmission rate corresponding to the historical data transmission task is 80%.

[0055] When the data transmission rate selection method provided in the present application is used to select the optimal data transmission rate for the first data transmission task, the statistical information of each optional data transmission rate will be initialized, and the statistical information at least includes: the initial number of packets of successfully transmitted data packets at the optional data transmission rate, and the initial number of packets of failed data packets at the optional data transmission rate. The initialization statistical information corresponding to different optional data transmission rates may be different. For each optional data transmission rate, the statistical information at the time of initialization can be reasonably set by relevant personnel, and the present application does not impose any restrictions on this. Each subsequent data transmission task will select one of the optional data transmission rates as the target data transmission rate for the data transmission task. The historical transmission results of the optional data transmission rate are determined based on the transmission results corresponding to each completed historical data transmission task using the optional data transmission rate as the optimal data transmission rate, and the statistical information when the optional data transmission rate is initialized. It should be noted that as the data transmission task continues, the historical transmission results corresponding to each optional data transmission rate are also continuously updated.

[0056] S12, determining a target data transmission rate from each optional data transmission rate according to historical transmission results of each optional data transmission rate, the target data transmission rate being the optimal data transmission rate for this data transmission task;

[0057] In some embodiments, determining the target data transmission rate from each selectable data transmission rate according to historical transmission results of each selectable data transmission rate includes:

[0058] The optional data transmission rate with the largest expected throughput among the optional data transmission rates is determined according to historical transmission results of the optional data transmission rates, and the optional data transmission rate with the largest expected throughput is used as the target data transmission rate.

[0059] Specifically, the size relationship between the expected throughputs corresponding to the optional data transmission rates is determined according to the historical transmission results of the optional data transmission rates, and the optional data transmission rate with the largest expected throughput among the optional data transmission rates is used as the target data transmission rate.

[0060] In this embodiment, the optional data transmission rate with the maximum expected throughput generally means higher data transmission speed and lower latency. Selecting such an optional data transmission rate as the target data transmission rate can significantly improve the efficiency of data transmission and reduce the time and resources required for transmission.

[0061] The historical transmission results of the optional data transmission rate include the number of successfully transmitted data packets, the number of failed data packets, and the actual transmission success rate corresponding to each data transmission task. The number of successfully transmitted data packets and the number of failed data packets of the optional data transmission rate are continuously processed and updated as the data processing tasks are continuously performed. The actual transmission success rate corresponding to each data transmission task is an actual value calculated based on the actual transmission result of the data transmission task.

[0062] In some embodiments, determining an expected throughput corresponding to the selectable data transmission rate according to historical transmission results of the selectable data transmission rate includes the following S01-S03:

[0063] S01, respectively generating a first random number and a second random number that obey a first gamma distribution and a second gamma distribution, wherein a shape parameter of the first gamma distribution is determined based on the number of successfully transmitted data packets at an optional data transmission rate, and a shape parameter of the second gamma distribution is determined based on the number of failed transmission data packets in historical transmission results of the optional data transmission rate;

[0064] In a specific embodiment provided in the present application, a shape parameter of a first gamma distribution is equal to the number of successfully transmitted data packets in the historical transmission results of an optional data transmission rate, and a scale parameter of the first gamma distribution is equal to 1; a shape parameter of a second gamma distribution is equal to the number of failed transmission data packets in the historical transmission results of an optional data transmission rate, and a scale parameter of the second gamma distribution is equal to 1.

[0065] S02. Divide the first random number by the sum of the first random number and the second random number to obtain a historical transmission success rate corresponding to the optional data transmission rate;

[0066] S03. Determine an estimated throughput corresponding to the optional data transmission rate based on a historical transmission success rate corresponding to the optional data transmission rate.

[0067] In this embodiment, the number of successfully transmitted data packets and the number of failed transmitted data packets of the selectable data transmission rate are simulated by using the gamma distribution, thereby improving the reliability of data transmission rate selection.

[0068] In some embodiments, determining an expected throughput corresponding to the selectable data transmission rate based on a historical transmission success rate corresponding to the selectable data transmission rate includes:

[0069] The historical transmission success rate corresponding to the selectable data transmission rate is multiplied by the selectable data transmission rate to obtain the estimated throughput corresponding to the selectable data transmission rate.

[0070] In some embodiments, determining the selectable data transmission rate with the highest expected throughput among the selectable data transmission rates according to the historical transmission results of the selectable data transmission rates includes the following S001-S005:

[0071] S001, traversing each optional data transmission rate in order from high to low;

[0072] S002, determining whether the limit throughput corresponding to the currently traversed optional data transmission rate is greater than the current maximum throughput, wherein if the currently traversed optional data transmission rate is the first traversed optional data transmission rate, then the current maximum throughput is equal to the initial value 0;

[0073] S003. If the limit throughput corresponding to the current optional data transmission rate is greater than the current maximum throughput, determine the expected throughput corresponding to the current optional data transmission rate according to the historical transmission result of the current optional data transmission rate; and further determine the difference between the current maximum throughput and the expected throughput corresponding to the current optional data transmission rate. If the expected throughput corresponding to the current optional data transmission rate is greater than the current maximum throughput, use the expected throughput corresponding to the currently traversed optional data transmission rate as the current maximum throughput.

[0074] S004, if the limit throughput corresponding to the current optional data transmission rate is not greater than the current maximum throughput, stop determining the difference between the limit throughput corresponding to the optional data transmission rate that has not been traversed and the current maximum throughput;

[0075] S005. The optional data transmission rate corresponding to the current maximum throughput determined after the traversal is completed is used as the target data transmission rate of this data transmission task.

[0076] For the current optional data transmission rate that has been traversed, the size between the limit throughput corresponding to the current optional data transmission rate and the current maximum throughput will be determined first. Only when the limit throughput corresponding to the current optional data transmission rate is greater than the current maximum throughput, the step of calculating the expected throughput for the current optional data transmission rate will be performed. Since each optional data transmission rate is traversed in order from high to low according to the data transmission rate, when the limit throughput corresponding to the current optional data transmission rate is not greater than the current maximum throughput, it can be confirmed that the expected throughput of the current optional data transmission rate and the optional data transmission rate that has not been traversed must not be greater than the current maximum throughput. Therefore, the size between the limit throughput corresponding to the optional data transmission rate that has not been traversed and the current maximum throughput is stopped, that is, the expected throughput of the optional data transmission rate that has not been traversed is no longer calculated, thereby skipping the determination of some optional data transmission rates, thereby achieving the effect of saving computing resources.

[0077] In some embodiments, if the current data transmission task meets the preset period, the method further includes:

[0078] Perform data smoothing on historical transmission results of each optional data transmission rate;

[0079] Correspondingly, according to the historical transmission results of each optional data transmission rate, the optional data transmission rate with the maximum expected throughput among the optional data transmission rates is determined, including:

[0080] The selectable data transmission rate with the largest expected throughput among the selectable data transmission rates is determined according to the historical transmission results of the selectable data transmission rates after data smoothing.

[0081] Specifically, the relationship between the expected throughputs corresponding to the various optional data transmission rates can be determined according to the historical transmission results of the various optional data transmission rates after data smoothing, and the optional data transmission rate with the largest expected throughput among the various optional data transmission rates can be used as the target data transmission rate.

[0082] Data smoothing is performed on the historical transmission results of each optional data transmission rate at regular intervals to reduce the impact of the older historical transmission results on the current data transmission rate selection.

[0083] In this embodiment, performing data smoothing on the historical transmission results can reduce random fluctuations and noise in the historical transmission results, making the data more stable and reliable, and helping to improve the reliability when selecting a data transmission rate.

[0084] In a specific embodiment provided in the present application, if, when selecting the target data transmission rate for this data transmission task, the time interval between the step of performing data smoothing on the historical transmission results of each optional data transmission rate and the last time is greater than or equal to a preset time interval, then it is determined that this data transmission task meets the preset period.

[0085] The step of determining the expected throughput of the optional data transmission rate according to the historical transmission results of the optional data transmission rate after data smoothing is consistent with the above-described method of determining the expected throughput according to the historical transmission results without data smoothing, and will not be repeated here.

[0086] More specifically, for any optional data transmission rate, data smoothing is performed on the historical transmission result of the optional data transmission rate, including:

[0087] Data smoothing is performed on the number of successfully transmitted data packets and the number of failed data packets of the optional data transmission rate based on a first time interval and a second time interval respectively, wherein the first time interval is the time interval between this time and the last time data smoothing is performed on the number of successfully transmitted data packets of the optional data transmission rate, and the second time interval is the time interval between this time and the last time data smoothing is performed on the number of failed data packets of the optional data transmission rate.

[0088] More specifically, the following formula may be used to perform data smoothing on the number of successfully transmitted data packets at the optional data transmission rate:

[0089]

[0090] Among them, a' j is the number of successfully transmitted data packets at the optional data transmission rate after data smoothing, a j is the number of successfully transmitted data packets of the optional data transmission rate before processing, Δt is the time interval between the current and last data smoothing processing of the number of successfully transmitted data packets of the optional data transmission rate, i.e., the first time interval, and w α is the preset success smoothing factor, 0 <w α <1.

[0091] The following formula can be used to smooth the number of successfully transmitted data packets of the selectable data transmission rate:

[0092]

[0093] Among them, β' j is the number of successfully transmitted data packets at the optional data transmission rate after data smoothing, β jis the number of successfully transmitted data packets of the optional data transmission rate before processing, Δt is the time interval between the current and last data smoothing processing of the number of successfully transmitted data packets of the optional data transmission rate, that is, the second time interval, and w β is the preset failure smoothing factor, 0 <w β <1.

[0094] The specific values ​​of the preset success smoothing factor and the preset failure smoothing factor can be reasonably set by relevant personnel. For example, for the preset success smoothing factor, if the fluctuation of the transmission success data packet is large, a smaller preset success smoothing factor can be selected to reduce the information loss in the smoothing process; on the contrary, if the transmission success data packet is relatively stable, a larger preset success smoothing factor can be selected to obtain a smoother result.

[0095] In a specific embodiment provided in the present application, the value range of the preset success smoothing factor or the preset failure smoothing factor may be 0.1-0.3.

[0096] Since data smoothing processing of historical transmission results can make the data that is older in time from the current transmission have a smaller weight, thereby reducing the value of historical transmission data that is older in time from the current transmission, therefore, by using the historical transmission results of the current optional data transmission rate after data smoothing processing to determine the estimated throughput corresponding to the current optional data transmission rate, the influence of historical transmission data that is older in time from the current data transmission task on the results of this data transmission rate selection can be reduced.

[0097] S13. Update the historical transmission result of the target data transmission rate according to the historical transmission result of the target data transmission rate after completing the current data transmission task.

[0098] Among them, the historical transmission results of the target data transmission rate include the number of successfully transmitted data packets and the number of failed data packets, as well as the number of successfully transmitted data packets, the number of failed data packets and the actual transmission success rate corresponding to each historical data transmission task in one or more historical data transmission tasks with the target data transmission rate as the optimal data transmission rate.

[0099] In order to avoid confusion between "the number of successfully transmitted data packets corresponding to the data transmission rate, the number of failed transmission data packets corresponding to the data transmission rate, and the historical transmission success rate corresponding to the data transmission rate" and "the number of successfully transmitted data packets corresponding to the data transmission task, the number of failed transmission data packets corresponding to the data transmission task, and the actual transmission success rate corresponding to the data transmission task", it should be noted that: the successfully transmitted data packets corresponding to a certain data transmission task mentioned in the present application are the number of actually successfully transmitted data packets corresponding to the data transmission task, the number of failed transmission data packets corresponding to a certain data transmission task is the number of actually failed transmission data packets corresponding to the data transmission task, and the actual transmission success rate corresponding to a certain data transmission task is also the actual transmission success rate determined based on the number of actually successfully transmitted data packets and the number of actually failed transmission data packets corresponding to the data transmission task, and the "number of successfully transmitted data packets or the number of failed transmission data packets corresponding to the data transmission rate" mentioned in the present application is not the number of actually successfully transmitted data packets or the number of actually failed transmission data packets of the data transmission rate, but the data that will be updated after smoothing processing after each transmission is completed, and the historical transmission success rate corresponding to the data transmission rate is also determined based on the number of successfully transmitted data packets and the number of failed transmission data packets that have been updated after smoothing processing.

[0100] For each data transmission task, the transmission result corresponding to the data transmission task can reflect the quality of the transmission environment when performing the data transmission task. The historical transmission results of the target data transmission rate can be updated according to the transmission result corresponding to this data transmission task, so that the updated historical transmission results of the target data transmission rate can be adapted to the current transmission environment, thereby better selecting the optimal data transmission rate for the next data transmission task.

[0101] In some embodiments, in S13, updating the historical transmission result of the target data transmission rate according to the transmission result corresponding to the current data transmission task includes:

[0102] If the target data transmission rate is determined as the optimal data transmission rate for N consecutive times, and the actual transmission success rate corresponding to M consecutive historical data transmission tasks is greater than a first preset threshold, data smoothing processing is performed on the number of successfully transmitted data packets of the target data transmission rate and the number of failed transmission data packets of the target data transmission rate based on a first smoothing speed and a second smoothing speed, respectively, wherein N and M are preset values, the first smoothing speed is less than the second smoothing speed, and the historical data transmission tasks include the current data transmission task and all data transmission tasks before the current data transmission task.

[0103] In this embodiment, differentiated smoothing processing methods are provided for the number of successfully transmitted data packets and the number of failed data packets. Since the number of successfully transmitted data packets is more stable, a smaller smoothing speed is used, while the number of failed data packets may contain more randomness, so a larger smoothing speed is used. This can more effectively reduce noise, retain key information, and help to more accurately evaluate the performance of the target data transmission rate.

[0104] Specifically, if the target data transmission rate is selected as the optimal data transmission rate for N consecutive times, and the actual transmission success rate corresponding to the M consecutive historical data transmission tasks is greater than the first preset threshold, it means that the probability of the target data transmission rate being selected is high, and the current transmission environment is good, and the environmental interference is not large, then the transmission effect of the currently selected target data transmission rate is very good and is very suitable as the optimal data transmission rate, and even an optional data transmission rate with a higher data transmission rate can be selected as the optimal data transmission rate. Therefore, the smoothing speed of the number of transmission failure data packets of the target data transmission rate can be accelerated.

[0105] The values ​​of N, M and the first preset threshold value can be reasonably set by relevant personnel. Preferably, the value range of N and M can be 1-10, and the value range of the first preset threshold value can be 70%-90%.

[0106] In a specific embodiment provided in the present application, data smoothing processing is performed on the number of successfully transmitted data packets at the target data transmission rate based on the first smoothing speed, which can be achieved by the following formula:

[0107]

[0108] Among them, a' i is the number of successfully transmitted data packets at the target data transmission rate after processing, a i is the number of successfully transmitted data packets at the target data transmission rate before processing, Δt is the time interval between the current and last data smoothing processing of the number of successfully transmitted data packets at the target data transmission rate, and w α is the preset success smoothing factor.

[0109] The data smoothing process for the number of transmission failure data packets at the target data transmission rate based on the second smoothing speed can be implemented by the following formula:

[0110]

[0111] Among them, β' i is the number of failed data packets at the target data transmission rate after processing, β iis the number of failed data packets at the target data transmission rate before processing, Δt is the time interval between the current and last smoothing of the number of failed data packets at the target data transmission rate, and w β is the preset failure smoothing factor, where 0<Δw β <1.

[0112] The above α 、w β , Δw β All of them can be reasonably set by relevant personnel.

[0113] In some embodiments, if the target data transmission rate is determined as the optimal data transmission rate N times in a row, and the actual transmission success rate corresponding to the M consecutive historical data transmission tasks is greater than the first preset threshold, the method further includes:

[0114] Data smoothing is performed on the number of transmission failure data packets of the data transmission rate associated with the target optional data transmission rate, wherein the data transmission rate associated with the target optional data transmission rate is an optional data transmission rate among the optional data transmission rates whose data transmission rate is higher than the target data transmission rate.

[0115] Among them, the associated data transmission rate of the target optional data transmission rate is a data transmission rate that is close to the data transmission rate of the target optional data transmission rate. For example, it can be several optional data transmission rates among the various optional data transmission rates whose data transmission rates are higher than the target data transmission rate. More specifically, it can be the lowest optional data transmission rate among several optional data transmission rates whose data transmission rates are higher than the target data transmission rate.

[0116] In this embodiment, when the target data transmission rate performs stably and has a high transmission success rate, its associated data transmission rate (i.e., an optional rate higher than the target rate) is likely to have similar performance. Smoothing the transmission failure data packets of these associated data transmission rates can give higher data transmission rates a greater chance of trying, so that the next rate transmission has a greater probability of trying a higher data transmission rate.

[0117] In some embodiments, a smoothing speed for performing data smoothing processing on the number of transmission-failed data packets of the data transmission rate associated with the target selectable data transmission rate is also greater than the first smoothing speed.

[0118] For the embodiment in which the data transmission rate associated with the target optional data transmission rate is the lowest optional data transmission rate among several optional data transmission rates whose data transmission rates are higher than the target data transmission rate, data smoothing is performed on the number of data packets of transmission failure of the data transmission rate associated with the target optional data transmission rate, which can be specifically implemented by the following formula:

[0119]

[0120] Among them, β' i+1 is the number of transmission failure packets associated with the target data transmission rate after data smoothing, β i+1 is the number of transmission failure packets of the target data transmission rate associated data transmission rate before processing, Δt is the time interval between the current and last data smoothing processing of the number of transmission failure packets of the target data transmission rate associated data transmission rate, and w β is the preset failure smoothing factor, where 0<Δw β <1.

[0121] If the actual transmission success rate corresponding to M consecutive historical data transmission tasks of the target data transmission rate is greater than the first preset threshold, it means that the current transmission environment is good and the environmental interference is not large. Then a higher optional data transmission rate can be selected as the optimal data transmission rate. Therefore, the smoothing speed of the total number of transmission failure packets of the target data transmission rate selected this time and the associated data transmission rate higher than the target transmission rate can be accelerated, thereby increasing the probability of successful transmission of the target data transmission rate and the associated data transmission rate of the target data transmission rate, and making it easier to be selected as the optimal data transmission rate for the next data transmission task, thereby improving the performance of the data transmission rate selection method provided in the present application.

[0122] In some embodiments, in S13, updating the historical transmission result of the target data transmission rate according to the transmission result corresponding to the current data transmission task also includes:

[0123] If the target data transmission rate is determined as the optimal data transmission rate for K consecutive times, and the actual transmission success rate corresponding to L consecutive historical data transmission tasks is less than the second preset threshold, data smoothing processing is performed on the number of successfully transmitted data packets of the target data transmission rate and the number of failed transmission data packets of the target data transmission rate based on the third smoothing speed and the fourth smoothing speed, respectively, wherein K and L are preset values, and the third smoothing speed is not less than the fourth smoothing speed.

[0124] In this embodiment, by speeding up the smoothing speed of the number of successfully transmitted data packets, it is possible to more sensitively capture signs of improved network performance. At the same time, smoothing the number of failed transmission data packets helps to more accurately evaluate the stability of the target data transmission rate.

[0125] Specifically, if the target data transmission rate is selected as the optimal data transmission rate for K consecutive times, and the actual transmission success rate corresponding to L consecutive historical data transmission tasks is less than the second preset threshold, it means that the current transmission environment is poor and the environmental interference is large. Then the transmission effect of the currently selected target data transmission rate is not good. At this time, the probability of a lower optional data transmission rate being selected as the optimal data transmission rate should be increased. Therefore, the smoothing speed of the number of successful data packets of the target data transmission rate can be accelerated, so that the transmission success rate corresponding to the target data transmission rate becomes lower.

[0126] Among them, the values ​​of K, L and the second preset threshold can be reasonably set by relevant personnel. The second preset threshold is smaller than the above-mentioned first preset threshold. Preferably, the value range of K and L can be 1-10, and the value range of the first preset threshold can be 40%-60%.

[0127] In a specific embodiment provided in the present application, data smoothing processing is performed on the number of successfully transmitted data packets at the target data transmission rate based on the third smoothing speed, which can be achieved by the following formula:

[0128]

[0129] Among them, a' i is the number of successfully transmitted data packets at the target data transmission rate after processing, a i is the number of successfully transmitted data packets at the target data transmission rate before processing, Δt is the time interval between the current and last data smoothing processing of the number of successfully transmitted data packets at the target data transmission rate, and w α is the preset success smoothing factor, where 0<Δw α <1.

[0130] The number of transmission failure data packets of the target data transmission rate is subjected to data smoothing processing based on the fourth smoothing speed, so as to be implemented by the following formula:

[0131]

[0132] Among them, β' i is the number of failed data packets at the target data transmission rate after processing, β iis the number of transmission failure data packets at the target data transmission rate before processing, and Δt is the time interval between the current and last data smoothing processing of the number of transmission failure data packets at the target data transmission rate.

[0133] If neither the above situation 1 nor the situation 2 occurs, the historical transmission results of the target data transmission rate are smoothed based on the normal smoothing speed, where situation 1 is: the target data transmission rate is selected as the optimal data transmission rate for N consecutive times, and the actual transmission success rate corresponding to M consecutive historical data transmission tasks is greater than the first preset threshold; situation 2 is: the target data transmission rate is selected as the optimal data transmission rate for K consecutive times, and the actual transmission success rate corresponding to L consecutive historical data transmission tasks is less than the second preset threshold.

[0134] Specifically, data smoothing is performed on the historical transmission results of the target data transmission rate based on the normal smoothing speed, specifically including:

[0135]

[0136] Among them, a' i is the number of successfully transmitted data packets at the target data transmission rate after processing, a i is the number of successfully transmitted data packets at the target data transmission rate before processing, Δt is the time interval between the current and last data smoothing processing of the number of successfully transmitted data packets at the target data transmission rate, and w α is the preset success smoothing factor.

[0137]

[0138] Among them, β' i is the number of failed data packets at the target data transmission rate after processing, β i is the number of transmission failure data packets at the target data transmission rate before processing, and Δt is the time interval between the current and last data smoothing processing of the number of transmission failure data packets at the target data transmission rate.

[0139] Figure 2 A schematic diagram of a process for updating historical transmission results of various optional data transmission rates according to the transmission result corresponding to the current data transmission task provided for an exemplary embodiment of the present application includes:

[0140] S21, combining the number of successfully transmitted data packets and the number of failed data packets in this data transmission task with the historical transmission results corresponding to the target data transmission rate before performing this data transmission task, to obtain the historical transmission results of the current target data transmission rate;

[0141] S22, determining whether the target data transmission rate is selected as the optimal data transmission rate for N consecutive times, if so, executing the following S23, if not, executing the following S27;

[0142] S23, determining whether the actual transmission success rate corresponding to the target data transmission rate M consecutive historical data transmission tasks is greater than a first preset threshold, if so, executing the following S24, if not, executing the following S25;

[0143] S24, speeding up the smoothing speed of the number of transmission failure data packets at the lowest rate among the target data transmission rate and the optional data transmission rate higher than the target data transmission rate;

[0144] S25, determining whether the actual transmission success rate corresponding to the historical data transmission task for L consecutive preset number of times of the target data transmission rate is less than the second preset threshold, if so, executing the following S26, if not, executing the following S27;

[0145] S26, speeding up the smoothing speed of the number of successfully transmitted data packets at the target data transmission rate;

[0146] S27, performing data smoothing processing on the historical transmission results of the target data transmission rate at a normal speed.

[0147] The data transmission rate selection method of the present application provides a new data transmission rate selection scheme, which uses the historical transmission results obtained after performing a data transmission task to determine the optional data transmission rate with the highest expected throughput, and uses the optional data transmission rate as the target data transmission rate for this data transmission task, thereby achieving the technical effect of improving the reliability of data transmission rate selection.

[0148] Figure 3 A schematic diagram of the structure of a device for selecting a data transmission rate provided by an exemplary embodiment of the present application;

[0149] The device comprises:

[0150] An acquisition unit 31 is used to acquire historical transmission results of each optional data transmission rate;

[0151] A target data transmission rate determining unit 32 is used to determine a target data transmission rate from each optional data transmission rate according to historical transmission results of each optional data transmission rate, wherein the target data transmission rate is an optimal data transmission rate for this data transmission task;

[0152] The historical transmission result updating unit 33 is used to update the historical transmission result of the target data transmission rate according to the transmission result corresponding to the current data transmission task.

[0153] In some embodiments, when the device is used to update the historical transmission result of the target data transmission rate according to the transmission result corresponding to the current data transmission task, it is specifically used to:

[0154] If the target data transmission rate is determined as the optimal data transmission rate for N consecutive times, and the actual transmission success rate corresponding to M consecutive historical data transmission tasks is greater than a first preset threshold, data smoothing processing is performed on the number of successfully transmitted data packets of the target data transmission rate and the number of failed transmission data packets of the target data transmission rate based on a first smoothing speed and a second smoothing speed, respectively, wherein N and M are preset values, the first smoothing speed is less than the second smoothing speed, and the historical data transmission tasks include the current data transmission task and all data transmission tasks before the current data transmission task.

[0155] In some embodiments, if the target data transmission rate is determined as the optimal data transmission rate for N consecutive times, and the actual transmission success rate corresponding to the M consecutive historical data transmission tasks is greater than the first preset threshold, the device is further configured to:

[0156] Data smoothing processing is performed on the number of data packets of transmission failure of the data transmission rate associated with the target optional data transmission rate, wherein the data transmission rate associated with the target optional data transmission rate is an optional data transmission rate among the various optional data transmission rates whose data transmission rate is higher than the target data transmission rate.

[0157] In some embodiments, when the device is used to update the historical transmission result of the target data transmission rate according to the transmission result corresponding to the current data transmission task, it is specifically used to:

[0158] If the target data transmission rate is determined as the optimal data transmission rate for K consecutive times, and the actual transmission success rate corresponding to L consecutive historical data transmission tasks is less than the second preset threshold, data smoothing processing is performed on the number of successfully transmitted data packets of the target data transmission rate and the number of failed transmission data packets of the target data transmission rate based on the third smoothing speed and the fourth smoothing speed, respectively, wherein the third smoothing speed is greater than the fourth smoothing speed, and the historical data transmission tasks include the current data transmission task and all data transmission tasks before the current data transmission task.

[0159] In some embodiments, when the apparatus is used to determine the target data transmission rate from the various optional data transmission rates according to the historical transmission results of the various optional data transmission rates, it is specifically used to:

[0160] The optional data transmission rate with the largest expected throughput among the optional data transmission rates is determined according to historical transmission results of the optional data transmission rates, and the optional data transmission rate with the largest expected throughput is used as the target data transmission rate.

[0161] In some embodiments, when the apparatus is used to determine the expected throughput corresponding to the optional data transmission rate according to the historical transmission result of the optional data transmission rate, it is specifically used to:

[0162] Generate a first random number and a second random number that obey a first gamma distribution and a second gamma distribution, respectively, wherein a shape parameter of the first gamma distribution is determined based on the number of successfully transmitted data packets at the optional data transmission rate, and a shape parameter of the second gamma distribution is determined based on the number of failed transmission data packets at the optional data transmission rate;

[0163] Dividing the first random number by the sum of the first random number and the second random number to obtain a historical transmission success rate corresponding to the optional data transmission rate;

[0164] An estimated throughput corresponding to the selectable data transmission rate is determined based on a historical transmission success rate corresponding to the selectable data transmission rate.

[0165] In some embodiments, if the current data transmission task meets the preset period, the device is further configured to:

[0166] Performing data smoothing processing on historical transmission results of each optional data transmission rate;

[0167] The determining, according to the historical transmission results of the various optional data transmission rates, the optional data transmission rate with the largest expected throughput among the various optional data transmission rates comprises:

[0168] The selectable data transmission rate with the largest expected throughput among the selectable data transmission rates is determined according to the historical transmission results of the selectable data transmission rates after data smoothing.

[0169] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, no further description is given here. Specifically, the device may perform the above method embodiment, and the above and other operations and / or functions of each module in the device are the corresponding processes in each method in the above method embodiment, respectively, and no further description is given here for the sake of brevity.

[0170] The above describes the device of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.

[0171] Figure 4 is a schematic block diagram of an electronic device provided in an embodiment of the present application, and the electronic device may include:

[0172] The memory 401 and the processor 402, the memory 401 is used to store the computer program and transmit the program code to the processor 402. In other words, the processor 402 can call and run the computer program from the memory 401 to implement the method in the embodiment of the present application.

[0173] For example, the processor 402 may be configured to execute the above method embodiments according to instructions in the computer program.

[0174] In some embodiments of the present application, the processor 402 may include but is not limited to:

[0175] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.

[0176] In some embodiments of the present application, the memory 401 includes but is not limited to:

[0177] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).

[0178] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 401 and executed by the processor 402 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

[0179] like Figure 4 As shown, the electronic device may also include:

[0180] The transceiver 403 may be connected to the processor 402 or the memory 401 .

[0181] The processor 402 may control the transceiver 403 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 403 may include a transmitter and a receiver. The transceiver 403 may further include an antenna, and the number of antennas may be one or more.

[0182] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.

[0183] The present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.

[0184] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.

[0185] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0186] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0187] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0188] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0189] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for selecting a data transmission rate, characterized in that: include: Get historical transmission results for each selectable data transmission rate; Determine a target data transmission rate from the various optional data transmission rates according to historical transmission results of the various optional data transmission rates, the target data transmission rate being the optimal data transmission rate for the current data transmission task; The historical transmission result of the target data transmission rate is updated according to the transmission result corresponding to the current data transmission task.

2. The method according to claim 1, characterized in that The updating of the historical transmission result of the target data transmission rate according to the transmission result corresponding to the current data transmission task includes: If the target data transmission rate is determined as the optimal data transmission rate for N consecutive times, and the actual transmission success rate corresponding to M consecutive historical data transmission tasks is greater than a first preset threshold, data smoothing processing is performed on the number of successfully transmitted data packets of the target data transmission rate and the number of failed transmission data packets of the target data transmission rate based on a first smoothing speed and a second smoothing speed, respectively, wherein N and M are preset values, the first smoothing speed is less than the second smoothing speed, and the historical data transmission tasks include the current data transmission task and all data transmission tasks before the current data transmission task.

3. The method according to claim 2, characterized in that If the target data transmission rate is selected as the optimal data transmission rate for N consecutive times, and the actual transmission success rate corresponding to the M consecutive historical data transmission tasks is greater than the first preset threshold, the method further includes: Data smoothing processing is performed on the number of data packets of transmission failure of the data transmission rate associated with the target optional data transmission rate, wherein the data transmission rate associated with the target optional data transmission rate is an optional data transmission rate among the various optional data transmission rates whose data transmission rate is higher than the target data transmission rate.

4. The method according to claim 1, characterized in that: The updating of the historical transmission result of the target data transmission rate according to the transmission result corresponding to the current data transmission task includes: If the target data transmission rate is determined as the optimal data transmission rate for K consecutive times, and the actual transmission success rate corresponding to L consecutive historical data transmission tasks is less than a second preset threshold, data smoothing processing is performed on the number of successfully transmitted data packets of the target data transmission rate and the number of failed transmission data packets of the target data transmission rate based on a third smoothing speed and a fourth smoothing speed, respectively, wherein K and L are preset values, the third smoothing speed is greater than the fourth smoothing speed, and the historical data transmission tasks include the current data transmission task and all data transmission tasks before the current data transmission task.

5. The method according to claim 1, characterized in that Determining the target data transmission rate from the various optional data transmission rates according to the historical transmission results of the various optional data transmission rates includes: The optional data transmission rate with the largest expected throughput among the optional data transmission rates is determined according to historical transmission results of the optional data transmission rates, and the optional data transmission rate with the largest expected throughput is used as the target data transmission rate.

6. The method according to claim 5, characterized in that Determining an estimated throughput corresponding to the selectable data transmission rate according to a historical transmission result of the selectable data transmission rate includes: Generate a first random number and a second random number that obey a first gamma distribution and a second gamma distribution, respectively, wherein a shape parameter of the first gamma distribution is determined based on the number of successfully transmitted data packets at the optional data transmission rate, and a shape parameter of the second gamma distribution is determined based on the number of failed transmission data packets at the optional data transmission rate; Dividing the first random number by the sum of the first random number and the second random number to obtain a historical transmission success rate corresponding to the optional data transmission rate; An estimated throughput corresponding to the selectable data transmission rate is determined based on a historical transmission success rate corresponding to the selectable data transmission rate.

7. The method according to claim 5, characterized in that If the current data transmission task meets the preset period, the method further includes: Performing data smoothing processing on historical transmission results of each optional data transmission rate; The determining, according to the historical transmission results of the various optional data transmission rates, the optional data transmission rate with the largest expected throughput among the various optional data transmission rates comprises: The selectable data transmission rate with the largest expected throughput among the selectable data transmission rates is determined according to the historical transmission results of the selectable data transmission rates after data smoothing.

8. A rate selection device, characterized in that: include: An acquisition unit, used for acquiring historical transmission results of each optional data transmission rate; a target data transmission rate determining unit, configured to determine a target data transmission rate from among the various optional data transmission rates according to historical transmission results of the various optional data transmission rates, wherein the target data transmission rate is an optimal data transmission rate for the current data transmission task; The historical transmission result updating unit is used to update the historical transmission result of the target data transmission rate according to the transmission result corresponding to the current data transmission task.

9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.