Wi-Fi transmission rate control method, system, device and program product
By calculating the sampling rate and success rate of Wi-Fi transmission methods and using weighting factors to determine the expected throughput, this method solves the rate switching problem caused by sudden interference in traditional methods, improves user experience and network performance, and is applicable to a variety of Wi-Fi devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-19
- Publication Date
- 2026-04-14
AI Technical Summary
Traditional Wi-Fi rate adaptation methods are too sensitive to high bandwidth demands and sudden interference scenarios, causing devices to switch to low-speed operation prematurely, sacrificing the available higher bandwidth and affecting user experience.
By acquiring the sampling rate and success rate of various transmission methods, and using weighting factors to calculate the expected throughput, the target transmission method is determined, avoiding the impact of short-term fluctuations and prioritizing high-speed transmission.
It improves the user experience in high-bandwidth scenarios, maintains network performance, saves on hardware modification costs, has strong compatibility, and is compatible with all Wi-Fi protocol devices.
Smart Images

Figure CN121865347A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of communication technology, and in particular to a method, system, device, and computer program product for switching Wi-Fi transmission rates. Background Technology
[0002] In Wi-Fi (Wireless Fidelity) applications with high bandwidth requirements, such as high-definition video playback, online learning, and large file transfers, users have stringent requirements for connection speeds. These scenarios often occur in environments like dormitories, homes, and offices, and are susceptible to sudden, random interference caused by appliances starting and stopping, Bluetooth device communication, etc. However, traditional rate-adaptive methods have significant shortcomings when dealing with scenarios where "high bandwidth requirements" and "sudden interference" coexist. They are overly sensitive to short-term signal fluctuations, immediately triggering a protective rate fallback mechanism to ensure connection stability once such fluctuations are detected. As a result, devices may prematurely switch to lower speeds even when high speeds are still sufficient for application needs. This conservative strategy sacrifices potentially higher bandwidth, preventing users from enjoying the expected network performance, ultimately leading to decreased service quality and a poor user experience. Summary of the Invention
[0003] This specification provides one or more embodiments of a Wi-Fi transmission rate control method, the control method comprising: acquiring the sampling rate and success rate of multiple transmission methods; determining the expected throughput of multiple transmission methods based on the sampling rate, success rate and weighting factor of the multiple transmission methods, wherein when the ideal rate of the transmission method is greater than a first preset rate, the weighting factor is positively correlated with the ideal rate of the transmission method; and determining the target transmission method based on the expected throughput of the multiple transmission methods.
[0004] In some embodiments, determining the target transmission method based on the expected throughput of multiple transmission methods includes: ranking the multiple transmission methods based on the expected throughput, and determining the transmission method with the highest expected throughput as the target transmission method.
[0005] In some embodiments, determining the target transmission method based on the expected throughput of multiple transmission methods further includes: determining a transmission method whose expected throughput is less than the expected throughput of the target transmission method but greater than the expected throughput of the other transmission methods as a backup transmission method; and determining the backup transmission method as the target transmission method when the expected throughput of the target transmission method is less than the expected throughput of the backup transmission method.
[0006] In some embodiments, the control method further includes: acquiring configuration information of multiple transmission modes; and determining the ideal rate of multiple transmission modes based on the configuration information of multiple transmission modes.
[0007] In some embodiments, obtaining the sampling rate and success rate of multiple transmission methods includes: sampling the transmission methods in a first set of transmission methods according to a first sampling ratio, and sampling the transmission methods in a second set of transmission methods according to a second sampling ratio; wherein the first sampling ratio is greater than the second sampling ratio, the ideal rate of the transmission methods in the first set of transmission methods is greater than or equal to a first preset rate, and the ideal rate of the transmission methods in the second set of transmission methods is less than the first preset rate.
[0008] In some embodiments, obtaining the sampling rate and success rate of multiple transmission methods includes: if the current success rate of the current sampled transmission method in the first transmission method set is greater than a first preset probability, then determining the current success rate as the success rate of the transmission method, and switching to sampling other transmission methods in the first transmission method set.
[0009] In some embodiments, obtaining the sampling rate and success rate of multiple transmission methods includes: if the number of consecutive successful samplings of the current transmission method in the first transmission method set reaches a first preset number, then switching to sampling other transmission methods in the first transmission method set.
[0010] In some embodiments, obtaining the sampling rate and success rate of multiple transmission methods includes: when the current transmission method fails to sample, if the current success rate of the current transmission method is greater than or equal to a second preset probability, repeat sampling a second preset number of times to determine the success rate; if the success rate of the current transmission method is less than the second preset probability, repeat sampling a third preset number of times to determine the success rate; wherein the second preset number of times is less than the third preset number of times.
[0011] One or more embodiments of this specification also provide a Wi-Fi transmission rate control system, including: a data acquisition module for acquiring the sampling rate and success rate of multiple transmission methods; an expected throughput calculation module for determining the expected throughput of multiple transmission methods based on the sampling rate, success rate, and weighting factor of the multiple transmission methods, wherein the weighting factor is positively correlated with the ideal rate of the transmission method when the ideal rate of the transmission method is greater than a first preset rate; and a target transmission method determination module for determining the target transmission method based on the expected throughput of the multiple transmission methods.
[0012] One or more embodiments of this specification provide a Wi-Fi transmission rate control device. The control device includes a processor and a storage medium. The storage medium stores computer instructions or computer programs. The processor is used to execute at least a portion of the computer instructions or computer programs to implement the Wi-Fi transmission rate control method as described in any embodiment of this specification.
[0013] One or more embodiments of this specification also provide a computer program product, including a computer program that, when at least a portion of the computer program is executed by a processor, enables a method for controlling the Wi-Fi transmission rate as described in any embodiment of this specification. Attached Figure Description
[0014] This specification will be further described by way of exemplary embodiments, which will be described in detail with reference to the accompanying drawings. The same numbers in the drawings denote the same structures or steps.
[0015] Figure 1 This is a schematic diagram illustrating an application scenario of a Wi-Fi transmission rate control system according to some embodiments of this specification.
[0016] Figure 2 This is a flowchart illustrating a method for controlling Wi-Fi transmission rate according to some embodiments of this specification.
[0017] Figure 3 This is a flowchart illustrating the process of determining the target transmission method according to some embodiments of this specification.
[0018] Figure 4 This is a flowchart illustrating the process of determining the ideal rate of a transmission method according to some embodiments of this specification.
[0019] Figure 5 This is a flowchart illustrating the process of obtaining the sampling rate and success rate of the transmission method according to some embodiments of this specification.
[0020] Figure 6 This is a flowchart illustrating the sampling rate and success rate of the transmission method according to other embodiments of this specification.
[0021] Figure 7 This is a schematic diagram of the structure of a control system for Wi-Fi transmission rate according to some embodiments of this specification. Detailed Implementation
[0022] To more clearly illustrate the technical solutions of the embodiments in this specification, the embodiments will be described in detail below with reference to the accompanying drawings. Obviously, the content described below are some examples or embodiments of this specification. For those skilled in the art, without creative effort, the technical solutions or means disclosed in this specification can be applied to other scenarios based on this technical content.
[0023] It should be understood that the terms "system," "device," "unit," and / or "module" used in this specification are a method of distinguishing different components, elements, parts, sections, or assemblies at different levels. However, if other terms can achieve the same purpose, they may be replaced by other expressions.
[0024] Unless otherwise specified, the technical terms used to describe components, elements, etc. in this specification are not singular but may include plural. Generally speaking, terms such as "comprising" or "including" only indicate that explicitly identified steps, elements, or components are included, and these steps, elements, and components do not constitute an exclusive list, as the described method or apparatus may also include other steps or components.
[0025] This specification uses flowcharts to illustrate the operational steps performed by the apparatus or system of related embodiments. However, unless otherwise specified, the order in which these steps are described should not be construed as a limitation on the order of execution. Those skilled in the art can adjust the order of these steps based on the knowledge and information conveyed by the embodiments in this specification. Such adjustments include, but are not limited to, reversing the order of steps, merging multiple steps, and splitting a step.
[0026] Wi-Fi, also known as "Wireless Fidelity" in Chinese, is a trademark of the Wi-Fi Alliance manufacturers used as a brand certification for their products. It is a wireless local area network communication technology based on the IEEE 802.11 standard. Given the close relationship between the two systems, Wi-Fi is often used as a synonym for the IEEE 802.11 standard. IEEE 802.11 devices are installed in many products on the market, such as personal computers, game consoles, MP3 players, smartphones, tablets, printers, laptops, and other peripherals that can access the internet wirelessly. In Wi-Fi applications with high bandwidth requirements, such as high-definition video playback, online learning, and large file transfers, users have stringent requirements for connection speeds. These scenarios often occur in environments such as dormitories, homes, and offices, and are susceptible to sudden random interference caused by the starting and stopping of electrical appliances and Bluetooth device communication. However, traditional rate adaptive methods have significant shortcomings in dealing with scenarios where "high bandwidth requirements" and "sudden interference" coexist. They are too sensitive to short-term signal fluctuations, and once such fluctuations are detected, a protective rate backoff mechanism is immediately triggered to ensure connection stability. As a result, devices may prematurely switch to lower speeds when high speeds are still sufficient for application needs. This conservative strategy sacrifices potentially higher bandwidth, preventing users from enjoying the network performance they deserve, ultimately leading to decreased service quality and a poor user experience.
[0027] To address this, some embodiments of this specification propose a method for controlling Wi-Fi transmission rate. This method determines the expected throughput of various transmission modes by using sampling rate, success rate, and weighting factors, and then determines the target transmission mode based on the expected throughput. By adding weighting factors, the calculated expected throughput places greater emphasis on rate performance. Determining the target transmission mode based on expected throughput avoids the influence of short-term fluctuations and noise, improves throughput efficiency, and enhances the user experience in the aforementioned scenarios. Furthermore, in terms of hardware, setting the weighting factors requires no modification to the device hardware, saving costs. In terms of software, the program is simple to modify and can be deployed and adapted to devices using all Wi-Fi protocols, demonstrating strong compatibility.
[0028] Figure 1 This is a schematic diagram illustrating an application scenario of a Wi-Fi transmission rate control method according to some embodiments of this specification. For example... Figure 1 As shown, application scenario 100 may include a Wi-Fi transmission rate control device 110 and a target device 120. The Wi-Fi transmission rate control device 110 and the target device 120 are connected via Wi-Fi, and there can be various data transmission methods between them.
[0029] In some embodiments, the Wi-Fi transmission rate control device 110 may be a network access device such as a wireless AP (wireless repeater) or router, or a terminal device such as a mobile phone or laptop.
[0030] In some embodiments, the Wi-Fi transmission rate control device 110 may include a processor 111. The processor 111 may be used to process information and / or data related to the Wi-Fi transmission rate control device 110. Based on this data, information, and / or processing results, the processor 111 may execute program instructions to perform one or more functions described in this specification. In some embodiments, the processor 111 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), an application-specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processor (PPU), a digital signal processor (DSP), a field-programmable gate array (FPGA), a programmable logic device (PLD), a controller, a microcontroller unit, a reduced instruction set computer (RISC), a microprocessor, or any combination thereof.
[0031] The target device 120 can refer to an electronic device capable of sending and receiving data via Wi-Fi. For example, the target device 120 may include a mobile phone 120-1, a laptop computer 120-2, a smartwatch, an e-book reader, a wireless printer, a network storage device, and a streaming media player, etc.
[0032] Figure 2This is a flowchart illustrating a Wi-Fi transmission rate control method according to some embodiments of this specification. In some embodiments, the Wi-Fi transmission rate control method 200 may be implemented by a processor 111. In some embodiments, the Wi-Fi transmission rate control method 200 may be implemented by a Wi-Fi transmission rate control system 700. Figure 2 As shown, the Wi-Fi transmission rate control method 200 may include the following steps.
[0033] Step 210: Obtain the sampling rate and success rate of various transmission methods. In some embodiments, step 210 can be performed by the data acquisition module 710 in the Wi-Fi transmission rate control system 700.
[0034] In some embodiments, the transmission method can be determined based on the configuration information for data transmission, with different transmission methods corresponding to different configuration information. The configuration information for data transmission may include, but is not limited to, one or more combinations of: Wi-Fi protocol (such as 802.11ac, 802.11ax, etc.), operating frequency band (such as 6G, 5G, 2.4G, etc.), modulation method (such as BPSK, QPSK, 16-QAM, 64-QAM, 256-QAM, etc.), coding rate (such as 1 / 2, 3 / 4, 5 / 6, etc.), number of spatial streams (i.e., MIMO information, such as 1×1, 2×2, 4×4, etc.), and bandwidth (such as 20MHz, 40MHz, 80MHz, 160MHz, etc.).
[0035] In some embodiments, "sampling rate" refers to the amount of data (in Mbps) successfully transmitted by the terminal per unit time under a specific transmission method. In some embodiments, success rate is the data transmission success rate, such as the proportion of data packets transmitted correctly and without retransmission in a test.
[0036] In one specific embodiment, the Wi-Fi transmission rate control device is a wireless access point (AP) device, and the target device is a user terminal. The configuration information for a certain transmission method is: protocol 802.11ac, operating frequency band 5GHz, channel bandwidth 80MHz, spatial stream count 2×2, and modulation scheme 64-QAM. The user terminal includes a smartphone that supports 802.11ac and connects to the Wi-Fi transmission rate control device (such as the wireless AP device). For a single test, the total traffic flow over 180 seconds can be recorded. The result of this test is: traffic flow used 88500MB. Based on the above result, the sampling rate is calculated to be 88500MB ÷ 180s = 491.67MB / s = 3933Mbps. It should be noted that the sampling time and number of samples can be changed. In an optional embodiment, the success rate test can be performed by the user terminal sending several test packets to the wireless AP device, each test consisting of several bytes. Each time the wireless AP receives a test packet, it returns a received signal to the user terminal. The user terminal can determine whether the data packet was successfully sent based on the received signal, and then send the success result to the wireless AP device. The wireless AP device will then calculate the current success rate based on the success result. In some embodiments, the test packet in the above process can be sent by the wireless AP device to the user terminal. Each time the user terminal receives a test packet, it will receive the success result, sampling duration, and data consumption, in order to sample the rate and success rate.
[0037] In some embodiments, the success rate can be determined using an exponentially weighted average (EWMA). Specifically, it can be determined using the formula EWMA(p) = λ·P. t +(1-λ)·EWMA t-1 EWMA(p) is used for calculation. Here, EWMA(p) represents the current success rate calculated after obtaining the result of whether the test packet was successfully sent; EWMA t-1 (p) represents the historical success rate calculated before sending the test packet; P t The result characterizes whether the test packet transmission was successful, with 1 for success and 0 for failure; λ is a constant, and its weight can be assigned according to the importance of the success or failure result. In an optional embodiment, λ is 0.85. In the above embodiment, the success rate is determined using the exponentially weighted average (EWMA) method. By assigning exponentially decaying weights to historical data, the weight of recent data is increased, which can quickly capture the upward or downward trend of the success rate while avoiding excessive fluctuations in single data, facilitating the rapid detection of data transmission failures.
[0038] Step 220: Determine the expected throughput of each transmission method based on the sampling rate, success rate, and weighting factor. In some embodiments, step 220 may be performed by the expected throughput calculation module 720 in the Wi-Fi transmission rate control system 700.
[0039] In some embodiments, when the ideal rate of the transmission mode is greater than the first preset rate, the weighting factor is positively correlated with the ideal rate of the transmission mode.
[0040] In some embodiments, the ideal rate refers to the maximum theoretically achievable rate under a certain transmission method.
[0041] In some embodiments, the first preset rate is a standard for whether a transmission method achieves a high speed. If the ideal rate of a transmission method cannot meet the first preset rate, it indicates that the transmission method cannot meet the high throughput requirement, and its high-speed performance may not be reflected when calculating the expected throughput. In some embodiments, when the ideal rate of a transmission method is less than or equal to the first preset rate, the weighting factor can be set to 1. In some embodiments, the first preset rate can be determined based on the ideal rates of various transmission methods between the wireless AP device and the terminal device. For example, the transmission methods between the wireless AP device and the terminal device include two main categories: 5GHz and 2.4GHz frequency bands. Since the 2.4GHz frequency band transmission methods are subject to more interference and have a lower ideal rate, the highest ideal rate among the 2.4GHz frequency band transmission methods can be used as the first preset rate. In another embodiment, if the transmission methods between the wireless AP device and the terminal device are both 5GHz, the ideal rate of the transmission method with the fewest spatial streams (i.e., 1x1 MIMO) can be used as the first preset rate.
[0042] In the above embodiments, the expected throughput of a certain transmission method can be determined by multiplying the sampling rate, success rate, and weighting factor. When the ideal rate is greater than a first preset rate, the higher the ideal rate of the transmission method and the larger the weighting factor, the more its expected throughput reflects its high bandwidth performance.
[0043] In some embodiments, the expected throughput can be determined according to the following formulas: TP = bitrate · prob_ewma · β / T and β = 1 + (ab) / c; where TP represents the expected throughput, bitrate represents the traffic used in the test, prob_ewma represents the success rate EWMA(p) determined by the exponentially weighted average (EWMA) method, β represents the weighting factor, T represents the time used in the test, a represents the ideal rate of the sampled transmission method, b represents the first preset rate, and c represents a constant greater than or equal to the maximum protocol rate. The protocol in the above maximum protocol rate refers to the protocol used for data transmission between the Wi-Fi transmission rate control device and the target device, and the maximum protocol rate refers to the fastest rate among the ideal rates of different configurations in the protocol.
[0044] In some embodiments, the weighting factor β ranges from 1 to 2. In some embodiments, the weighting factor β ranges from 1 to 1.5. The constant c can be used to control the value of β so that it is not too large (e.g., greater than 2), thus preventing the expected throughput from overstating its high-speed performance.
[0045] In a specific embodiment, if a certain transmission method is Wi-Fi 5, the frequency band is 5GHz, the bandwidth is 80MHz, the success rate is 98%, and the sampling rate is 1500Mbps (e.g., sampling traffic of 375MB takes 2 seconds), then the expected throughput is 1500×98%×(1+(1733-433) / 2000)÷2. The weighting factor is (1 + (1733 - 433) / 2000), where 1733 Mbps is the fastest speed under the Wi-Fi 5 protocol (corresponding to the ideal speed under Wi-Fi 5, 5GHz band, 80MHz bandwidth, 4x4 MIMO conditions, which is the fastest speed under the Wi-Fi 5 protocol, and can be determined according to the MCS (Modulation and Coding Scheme) rate table), 433 Mbps is the first preset speed (corresponding to the ideal speed under Wi-Fi 5, 5GHz band, 80MHz bandwidth, 1x1 MIMO conditions), and 2000 is a constant greater than or equal to the fastest speed under the Wi-Fi 5 protocol (1733 Mbps), which is taken as 2000 for ease of calculation. When the ideal speed of the transmission method is less than the first preset speed, β is taken as 1. In a specific embodiment, taking Wi-Fi 5 as the transmission mode configuration, with a frequency band of 5GHz, a bandwidth of 80MHz, and 1x1 MIMO as an example, the sampling rate is 400Mbps (100MB of sampling traffic takes 2 seconds), and the success rate is 99%. At this time, the expected throughput is: 400×99%×1÷2=198 Mbps.
[0046] Step 230: Determine the target transmission method based on the expected throughput of multiple transmission methods. In some embodiments, step 220 may be performed by the target transmission method determination module 730 in the Wi-Fi transmission rate control system 700.
[0047] In some embodiments, multiple transmission methods can be sorted by expected throughput, and the transmission method with the highest expected throughput can be determined as the target transmission method. In some embodiments, after determining the target transmission method, step 210 can be periodically returned to update the target transmission method by periodically sampling the rate of each transmission method, thereby further improving the user experience.
[0048] The embodiments in this specification improve the calculation method of expected throughput, enabling the high-speed transmission method to be prioritized, thereby increasing the rate of the target transmission method and improving the user experience in high-bandwidth demand scenarios. In addition, in terms of hardware, the above method can be deployed in the device without modifying the hardware, saving costs. In terms of software, the program is simple to modify and can be deployed and adapted to devices that support all Wi-Fi protocols (such as APs that support 802.11n / ac / ax), with strong compatibility.
[0049] Figure 3 This is a flowchart illustrating the determination of a target transmission method according to some embodiments of this specification. In some embodiments, the process 300 for determining the target transmission method can be implemented by the processor 111 and / or the target transmission method determination module 730. Figure 3 As shown, process 300 may include the following steps.
[0050] Step 310: Sort the various transmission methods based on the expected throughput.
[0051] In some embodiments, multiple transmission methods can be periodically (e.g., with a period of 10 seconds to 1 minute, specifically, with a period of 1 minute) sorted based on expected throughput. The sorting method can be sorting by expected throughput from largest to smallest or smallest to largest.
[0052] Step 320: Determine the transmission method with the highest expected throughput as the target transmission method.
[0053] In some embodiments, the target transmission method can be determined periodically (e.g., with a period of 10 seconds to 1 minute, specifically with a period of 1 minute) based on the sorting results.
[0054] Step 330: The transmission method whose expected throughput is less than the expected throughput of the target transmission method but greater than the expected throughput of the other transmission methods is determined as the backup transmission method.
[0055] In some embodiments, the target transmission method and the backup transmission method can be sampled according to a first period (e.g., less than or equal to 1 second; optionally, the first period can be 0.5 seconds, 0.2 seconds, or 0.1 seconds) to obtain the sampling rate and success rate, thereby determining the expected throughput. For transmission methods other than the target transmission method and the backup transmission method, sampling can be performed according to a second period (the second period is greater than or equal to the first period, e.g., less than or equal to one minute but greater than 1 second, specifically 1 minute, 30 seconds, or 15 seconds, etc.) to obtain the sampling rate and success rate, thereby determining the expected throughput. By setting different sampling periods for different transmission methods, sampling resources can be prioritized for transmission methods with higher expected throughput, thereby effectively ensuring the transmission effect of the target transmission method.
[0056] In another embodiment, in response to a preset signal, sampling of other transmission methods can be performed to determine the sampling rate and success rate of each transmission method. The preset signal can be a preset sampling request, which can be sent externally or generated by the Wi-Fi transmission rate control device itself.
[0057] Step 340: When the expected throughput of the target transmission method is less than the expected throughput of the backup transmission method, the backup transmission method is determined as the target transmission method.
[0058] In some embodiments, when the first period is short (e.g., less than or equal to 0.1 seconds, optionally, the first period can be 0.05 seconds or 0.01 seconds), the detection of the expected throughput of the target transmission method and the backup transmission method is more sensitive. Once the expected throughput of the backup transmission method is greater than the expected throughput of the target transmission method, a switch will be made, thereby ensuring the user's Wi-Fi experience.
[0059] In some embodiments, there can be multiple backup transmission methods (e.g., 2, 3, 5, etc.). The number of backup transmission methods can be set according to specific circumstances, and can be positively correlated with the computing resources of the Wi-Fi transmission rate control device. When a backup transmission method is determined as the target transmission method, the backup transmission method with the highest expected throughput can be selected as the target transmission method. By setting multiple backup transmission methods, it is easier to discover transmission methods with higher expected throughput, thereby allowing for timely adjustments to the target transmission method.
[0060] In some embodiments, the criterion for determining the backup transmission method as the target transmission method may be that the target transmission method fails to transmit data. When the target transmission method fails to transmit data, switching to the backup transmission method in a timely manner can ensure that the user's network is not interrupted and improve the user's Wi-Fi experience.
[0061] Figure 4This is a schematic flowchart illustrating the determination of the ideal rate for a transmission mode according to some embodiments of this specification. In some embodiments, the process 400 for determining the ideal rate for a transmission mode may be implemented by the processor 111 and / or the ideal rate determination module 740. Figure 4 As shown, process 400 may include the following steps.
[0062] Step 410: Obtain configuration information for multiple transmission methods.
[0063] In some embodiments, the configuration information may include, but is not limited to, one or more combinations of: Wi-Fi protocol (such as 802.11ac, 802.11ax, etc.), operating frequency band (such as 6G, 5G, 2.4G, etc.), modulation scheme (such as BPSK, QPSK, 16-QAM, 64-QAM, 256-QAM, etc.), coding rate (such as 1 / 2, 3 / 4, 5 / 6, etc.), number of spatial streams (i.e., MIMO information, such as 1×1, 2×2, 4×4, etc.), and bandwidth (such as 20MHz, 40MHz, 80MHz, 160MHz, etc.). In one example, the protocol may be Wi-Fi 5 (i.e., 802.11ac), the operating frequency band may be 5GHz, the bandwidth may be 160MHz, and the number of spatial streams may be 4x4 MIMO. In some embodiments, the multiple transmission methods may be all transmission methods that the Wi-Fi transmission rate control device can implement; each transmission method has corresponding configuration information.
[0064] Step 420: Determine the ideal rate for multiple transmission methods based on the configuration information of multiple transmission methods.
[0065] In some embodiments, the ideal rate can be obtained by querying an MCS (Modulation and Coding Scheme) rate table. This table stores the ideal rate corresponding to different configuration information. In the above embodiments, this table can be pre-stored in the Wi-Fi transmission rate control device, or it can be obtained by the control device querying a device or URL that stores the table.
[0066] For example, if the configuration information for a transmission method is Wi-Fi 5 (i.e., 802.11ac), frequency band 5GHz, bandwidth 80MHz, and 1x1 MIMO, then the ideal rate for this transmission method can be determined to be 433Mbps. If the configuration information for a transmission method is identical to the former except that the MIMO is 2x2, then its ideal rate is 866Mbps. If the configuration information for a transmission method is identical to the former except that the MIMO is 4x4, then its ideal rate is 1733Mbps.
[0067] In some embodiments, the ideal rate of each transmission method can be determined based on the configuration information of each transmission method, thereby determining the first preset rate and the maximum protocol rate. For example, the common parts of the configuration information of each transmission method are: the protocol is Wi-Fi 5 (i.e., 802.11ac), the frequency band is 5GHz, and the bandwidth is 80MHz; the differences in the configuration information of each transmission method are: the first transmission method is 1x1 MIMO, the second transmission method is 2x2 MIMO, and the third transmission method is 4x4 MIMO. The first preset rate can be determined as the ideal rate of the first transmission method, i.e., 433Mbps; the maximum protocol rate can be determined as the ideal rate of the third transmission method, i.e., 1733Mbps. Examples of the correspondence between the first preset rate and the maximum protocol rate for different transmission methods are shown in the following table: .
[0068] It should be noted that the first preset rate in the table above is only one option and is not a limitation on the selection of the above rates.
[0069] Figure 5 This is a flowchart illustrating the acquisition of the sampling rate and success rate of a transmission method according to some embodiments of this specification. In some embodiments, the process 500 for acquiring the sampling rate and success rate of the transmission method can be implemented by the processor 111 and / or the data acquisition module 710. Figure 5 As shown, process 500 may include the following steps.
[0070] Step 510: Rate sampling is performed on the transmission modes in the first transmission mode set according to the first sampling ratio.
[0071] In the above steps, the first sampling ratio refers to the proportion of the number of transmission modes sampled in the first transmission mode set to the total number of transmission modes sampled. In the above embodiment, the ideal rate of the transmission modes in the first transmission mode set is greater than or equal to the first preset rate.
[0072] Step 520: Rate sampling of the transmission modes in the second transmission mode set according to the second sampling ratio.
[0073] In the above steps, the second sampling ratio refers to the proportion of the number of transmission methods sampled in the second transmission method set to the total number of transmission methods sampled. In the above steps, the ideal rate of the transmission methods in the second transmission method set is less than the first preset rate. In some embodiments, the first sampling ratio is greater than the second sampling ratio. In some embodiments, the first sampling ratio can be 60% to 90% of the total sampling ratio, and the second sampling ratio can be 10% to 40% of the total sampling ratio. In some embodiments, the first sampling ratio can be 80% of the total sampling ratio, and the second sampling ratio can be 20% of the total sampling ratio. In the above embodiments, more computing resources can be concentrated on sampling transmission methods with higher ideal rates (i.e., transmission methods in the first transmission method set), saving the computing resources of the device. In an optional embodiment, the determination of the first transmission method set and the second transmission method set can be performed during the initialization phase (i.e., before all steps).
[0074] It should be noted that the execution order between steps 510 and 520 can be either step 510 first and then step 520, or step 520 first and then step 510, or the two steps can be performed simultaneously. No restrictions are imposed here.
[0075] Step 530: Determine whether the current success rate of the current sampled transmission method in the first transmission method set is greater than the first preset probability; if so, proceed to step 550.
[0076] In some embodiments, the current success rate is calculated based on the success or failure of the transmission obtained from the current sampling and the historical success rate. The specific calculation method can be based on the formula EWMA(p)=λ·P. t +(1-λ)·EWMA t-1 (p) is used for calculation. The above formula has been explained in detail above, so it will not be repeated here. In some embodiments, the stability of the transmission method can be determined based on the current success rate and the first preset probability. In some embodiments, the first preset probability can be customized according to the requirements for transmission stability. For example, when the requirements for transmission stability are high, the first preset probability can be set higher (e.g., 85%~95%, such as 90%). In some embodiments, the first preset probability can be determined according to the processor's computing resources at the time of sampling. Specifically, if there are more computing resources, the first preset probability can be set higher, that is, the first preset probability can be positively correlated with the computing resources.
[0077] Step 540: Determine whether the number of consecutive successful sampling transmission methods in the first transmission method set has reached the first preset number; if so, proceed to step 550.
[0078] In some embodiments, the first preset number of times can be 3. If the current sampling transmission method achieves 3 consecutive successful transmissions, the transmission method can be considered stable. In some embodiments, the first preset number of times can be specifically set according to the requirements for transmission stability. If the requirement for transmission stability is high, the first preset number of times can be set higher (e.g., greater than 3 times, such as 4 times, 5 times, etc.), and vice versa. In some embodiments, setting the first preset number of times to 3 times can achieve a better balance between transmission stability and the cost of repeated sampling.
[0079] Step 550: Switch to other transmission methods in the first set of transmission methods.
[0080] In the above embodiments, when it is determined that the current sampling transmission method is stable, other transmission methods in the first set of transmission methods can be switched to save computing resources.
[0081] In some embodiments, the prerequisite for performing step 550 may also be that steps 530 and 540 are met simultaneously. In the above embodiments, the standards for other transmission methods in the first set of sampling methods are more stringent, and the success rate of sampling is more reliable.
[0082] Figure 6 This is a flowchart illustrating the acquisition of the sampling rate and success rate of a transmission method according to other embodiments of this specification. In some embodiments, the process 600 for acquiring the sampling rate and success rate of the transmission method can be implemented by the processor 111 and / or the data acquisition module 710. Figure 6 As shown, process 600 may include the following steps.
[0083] Step 610: When sampling fails in the current transmission mode, determine whether the current success rate of the current transmission mode is greater than or equal to the second preset probability; if yes, proceed to step 620; if no, proceed to step 630.
[0084] In some embodiments, the second preset probability can be 80% to 95%. For example, the second preset probability can be 90%. In some embodiments, the second preset probability can be used as a success rate standard for the stability of the current transmission method, thereby determining whether the current transmission method is stable. In some embodiments, the setting logic of the second preset probability and the first preset probability can be the same. In some embodiments, the second preset probability and the first preset probability can be equal. In some embodiments, the second preset probability and the first preset probability can be unequal.
[0085] Step 620: Repeat sampling a second preset number of times to determine the success rate.
[0086] In the above steps, the second preset number of times is greater than or equal to 1. For example, the second preset number of times can be 2. In the above embodiment, by repeatedly obtaining the result of whether the data transmission was successful twice, the success rate of the current sampling method is finally determined, and the stability of the current transmission method is further determined. In some embodiments, the second preset number of times can also be other values, such as 1 time, 3 times, etc.
[0087] Step 630: Repeat sampling a third preset number of times to determine the success rate.
[0088] In some embodiments, the second preset number of times is less than the third preset number of times. In an optional embodiment, the second preset number of times can be 2 times and the third preset number of times can be 3 times. In an optional embodiment, the second preset number of times can be greater than or equal to 3 times. In one embodiment, when the second preset number of times is 3 times, the third preset number of times is greater than 3 times, and it can be 4 times or 5 times.
[0089] In the above embodiments, by setting a lower number of retries (i.e., the second preset number) for transmission methods with a high success rate and a higher number of retries (i.e., the third preset number) for transmission methods with a low success rate, the retry overhead and the accuracy of the determined success rate can be effectively balanced. In some embodiments, the second preset number and the third preset number can be determined specifically based on the device's computing resources. If computing resources are sufficient, the second preset number and the third preset number can be set to a higher number, and vice versa.
[0090] In some embodiments, retrying is only performed on transmission methods with an ideal rate greater than a first preset rate when sampling fails (i.e., steps 610-630 are executed). Transmission methods with an ideal rate less than the first preset rate may not be retried. This allocates more sampling resources to transmission methods with higher ideal rates, reducing the impact of random noise on high-rate transmission methods.
[0091] Figure 7 This is a schematic diagram of a Wi-Fi transmission rate control system according to some embodiments of this specification. In some embodiments, the Wi-Fi transmission rate control system 700 may be implemented by a processor 111. Figure 7 The Wi-Fi transmission rate control system includes a data acquisition module 710, an expected throughput calculation module 720, and a target transmission mode determination module 730.
[0092] In some embodiments, the data acquisition module 710 is used to acquire the sampling rate and success rate. In some embodiments, the data acquisition module 710 is used to acquire the sampling rate and success rate of multiple transmission methods.
[0093] In some embodiments, the expected throughput calculation module 720 can be used to determine the expected throughput. In some embodiments, the expected throughput calculation module 720 is used to determine the expected throughput of multiple transmission methods based on the sampling rate, success rate, and weighting factor of multiple transmission methods. Wherein, when the ideal rate of a transmission method is greater than a first preset rate, the weighting factor is positively correlated with the ideal rate of the transmission method.
[0094] In some embodiments, the target transmission mode determination module 730 can be used to determine the target transmission mode. In some embodiments, the target transmission mode determination module 730 can be used to determine the target transmission mode based on the expected throughput of multiple transmission modes.
[0095] In an optional embodiment, the control system further includes an ideal rate determination module 740. The ideal rate determination module 740 is used to determine the ideal rate of the transmission mode. In some embodiments, the ideal rate determination module 740 is used to acquire configuration information for multiple transmission modes and determine the ideal rate of each mode based on the configuration information.
[0096] This specification also provides a Wi-Fi transmission rate control device, including a processor and a storage medium. The storage medium stores computer instructions or computer programs, and the processor is used to execute at least a portion of the computer instructions or computer programs to implement the Wi-Fi transmission rate control method of any of the above embodiments.
[0097] This specification also provides a computer program product, including a computer program that, when at least a portion of the computer program is executed by a processor, enables the Wi-Fi transmission rate control method of any of the above embodiments.
[0098] For more information on each module, please refer to the related explanations in the other accompanying diagrams; they will not be repeated here. It should be understood that... Figure 7The systems and modules shown can be implemented in various ways. For example, in some embodiments, the systems and modules can be implemented by hardware, software, or a combination of both. The hardware portion can be implemented using dedicated logic; the software portion can be stored in memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated-design hardware. Those skilled in the art will understand that the methods and systems described above can be implemented using computer-executable instructions and / or included in the control code of a processor, such as on a media such as a disk, CD, or DVD-ROM, or in the memory of a programmable device. The systems and modules of this specification can be implemented not only by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips and transistors, or programmable hardware devices such as field-programmable gate arrays and programmable logic devices, but also by software, for example, executed by various types of processors, or by a combination of the aforementioned hardware circuits and software (e.g., firmware).
[0099] It should be noted that the above description of the system and its modules is for convenience only and should not be construed as limiting this specification to the embodiments described. It is understood that those skilled in the art, after understanding the principles of this system, may arbitrarily combine the various modules without departing from these principles to form subsystems connected to other modules. Alternatively, some modules may be split to obtain more modules or multiple units under a single module. Such modifications are all within the scope of this specification.
[0100] The beneficial effects that the embodiments of this specification may bring include, but are not limited to: (1) In Wi-Fi application scenarios with high bandwidth requirements, by adding a weighting factor, the expected throughput, which focuses more on rate performance, can be calculated. Determining the target transmission method by the expected throughput can avoid the influence of short-term fluctuation noise, improve throughput efficiency, and enhance the user experience in the above scenarios; (2) In addition, in terms of hardware, the above method can be deployed on devices that are compatible with all Wi-Fi protocols without modifying the hardware of the device, saving costs; in terms of software, the program is simple to modify and can be deployed and adapted to devices that are compatible with all Wi-Fi protocols, with strong compatibility. It should be noted that different embodiments may produce different beneficial effects. In different embodiments, the beneficial effects that may be produced can be any one or a combination of the above, or any other possible beneficial effects.
[0101] The basic concepts have been described above. It is obvious that the detailed disclosure above is merely illustrative and does not constitute a limitation of this specification. Although not explicitly stated herein, various modifications, improvements, and corrections may be made to this specification by those skilled in the art. Such modifications, improvements, and corrections are taught in this specification and therefore remain within the spirit and scope of the exemplary embodiments described herein.
Claims
1. A method for controlling Wi-Fi transmission rate, characterized in that, The control method includes: Obtain the sampling rate and success rate of various transmission methods; Based on the sampling rate, success rate, and weighting factor of the various transmission methods, the expected throughput of each of the various transmission methods is determined. Wherein, when the ideal rate of the transmission method is greater than the first preset rate, the weighting factor is positively correlated with the ideal rate of the transmission method. Based on the expected throughput of the various transmission methods, the target transmission method is determined.
2. The control method as described in claim 1, characterized in that, The determination of the target transmission method based on the expected throughput of the multiple transmission methods includes: Based on the expected throughput, the various transmission methods are sorted, and the transmission method with the highest expected throughput is determined as the target transmission method.
3. The control method as described in claim 2, characterized in that, The determination of the target transmission method based on the expected throughput of the multiple transmission methods further includes: The transmission method whose expected throughput is less than the expected throughput of the target transmission method, but greater than the expected throughput of the other transmission methods, is determined as the backup transmission method. When the expected throughput of the target transmission method is less than the expected throughput of the backup transmission method, the backup transmission method is determined to be the target transmission method.
4. The control method as described in claim 1, characterized in that, The control method further includes: Obtain the configuration information for the various transmission methods; The ideal rate for each of the multiple transmission methods is determined based on the configuration information of those methods.
5. The control method as described in claim 1, characterized in that, The acquisition of sampling rates and success rates for various transmission methods includes: Rate sampling is performed on the transmission methods in the first set of transmission methods according to the first sampling ratio, and rate sampling is performed on the transmission methods in the second set of transmission methods according to the second sampling ratio; Wherein, the first sampling ratio is greater than the second sampling ratio, the ideal rate of the transmission method in the first transmission method set is greater than or equal to the first preset rate, and the ideal rate of the transmission method in the second transmission method set is less than the first preset rate.
6. The control method as described in claim 5, characterized in that, The acquisition of sampling rates and success rates for various transmission methods includes: If the current success rate of the current sampled transmission method in the first transmission method set is greater than the first preset probability, then the current success rate is determined to be the success rate of the transmission method, and other transmission methods in the first transmission method set are sampled.
7. The control method as described in claim 5, characterized in that, The acquisition of sampling rates and success rates for various transmission methods includes: If the number of consecutive successful samplings of the current sampling transmission method in the first transmission method set reaches a first preset number, then sampling will switch to other transmission methods in the first transmission method set.
8. The control method as described in claim 1, characterized in that, The acquisition of sampling rates and success rates for various transmission methods includes: If sampling fails in the current transmission method, and the current success rate of the current transmission method is greater than or equal to the second preset probability, the sampling is repeated a second preset number of times to determine the success rate. If the current success rate of the current transmission method is less than the second preset probability, the sampling is repeated a third preset number of times to determine the success rate; The second preset number of times is less than the third preset number of times.
9. A control system for Wi-Fi transmission rate, characterized in that, The control system includes: The data acquisition module is used to acquire the sampling rate and success rate of various transmission methods; The expected throughput calculation module is used to determine the expected throughput of the various transmission methods based on the sampling rate, success rate and weighting factor of the various transmission methods, wherein when the ideal rate of the transmission method is greater than the first preset rate, the weighting factor is positively correlated with the ideal rate of the transmission method. The target transmission mode determination module is used to determine the target transmission mode based on the expected throughput of the multiple transmission modes.
10. A Wi-Fi transmission rate control device, characterized in that, The control device includes a processor and a storage medium storing computer instructions or computer programs. The processor is configured to execute at least a portion of the computer instructions or computer programs to implement the Wi-Fi transmission rate control method as described in any one of claims 1 to 8.
11. A computer program product, characterized in that, The system includes a computer program that, when at least a portion of the computer program is executed by a processor, enables the implementation of the Wi-Fi transmission rate control method as described in any one of claims 1 to 8.