Data transmission method and device
By dynamically adjusting the MCS index value and maximum retransmission times, the problem of low transmission performance of smart speakers in strong interference environments is solved, and the transmission efficiency and user experience of wireless LANs are improved.
Patent Information
- Application Number
- CN202010653588.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-08
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2040-07-08
AI Technical Summary
In a strong interference environment, the low-speed transmission of 802.11n wifi technology leads to low throughput and stuttering of playback of smart speakers, affecting user experience, especially for voice transmission services with high interactive requirements.
By obtaining the MCS index value and the corresponding maximum retransmission number in the multi-order rate table, dynamically adjusting the MCS index value according to the success or failure of transmission, reducing the transmission rate to improve retransmission efficiency, reducing TCP layer retransmission, and improving wireless transmission throughput .
It improves the data transmission performance of smart speakers in wireless LANs, reduces playback lags, and improves user experience, especially in strong interference environments.
Smart Images

Figure CN113922920B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless data transmission, and in particular to a data transmission method and device. Background Art
[0002] 802.11n is the fourth generation of Wi-Fi technology specification. In the 802.11n era, since the physical rate depends on multiple factors such as modulation method, coding rate, number of spatial streams, whether 40MHz is bound, etc., these factors affecting throughput are combined together to produce a large number of physical rates for selection.
[0003] The configuration of 802.11n radio rate is realized through MCS index value. MCS modulation coding table is a representation form proposed by 802.11n to characterize the communication rate of WLAN. MCS takes the factors affecting the communication rate as the columns of the table and the MCS index as the rows to form a rate table. For AP, the MCS generally supports a range of 0-15.
[0004] In a strong interference environment, a low rate is usually selected for data transmission, and the data that has not been successfully transmitted is retransmitted multiple times. This will result in low throughput of devices connected to the AP (such as smart speakers), causing playback freezes, and extremely poor user experience for certain voice transmission services with high interactivity requirements. Therefore, a data transmission method is urgently needed to improve the performance of wireless data transmission in a strong interference environment. Summary of the invention
[0005] An object of the present invention is to provide a data transmission method to ensure that the music playback of a smart speaker under a wifi connection is not stuck under strong interference, while ensuring the real-time performance of certain voice transmission services with high interactivity requirements to improve user experience.
[0006] In order to achieve the above object, an embodiment of the present invention provides a data transmission method, including:
[0007] Obtain a first modulation and coding strategy MCS index value and a first maximum number of retransmissions corresponding to the first MCS index value; wherein the first MCS index value is an MCS index value in a multi-order rate table, the multi-order rate table includes a plurality of sequentially degraded MCS index values, and the transmission rates represented by the plurality of MCS index values are sequentially reduced; wherein the maximum number of retransmissions corresponding to the plurality of MCS index values increases as the index value is degraded;
[0008] A data packet is transmitted using transmission parameters corresponding to a first MCS index value; wherein, when the number of consecutive retransmissions is greater than the first maximum number of retransmissions, the first MCS index value is reduced by one level.
[0009] Furthermore, the multi-order rate table includes multiple MCS index values of successively decreasing order, and the multiple MCS index values include an optimal performance index set and a basic performance index set, wherein the optimal performance index set includes the MSC index value corresponding to the highest transmission rate supported by the current transmission environment, and the basic performance index set includes the MCS index value corresponding to the lowest transmission rate.
[0010] Furthermore, the method is applied to data transmission in a strong interference environment, especially data transmission in a strong interference environment of a wireless local area network.
[0011] Furthermore, the method is applied to data transmission between a smart speaker and an access point in a wireless local area network.
[0012] Further, the first MCS index value obtained for the first time is the highest-order MCS index value in the multi-order rate table.
[0013] Furthermore, the multi-stage rate table is selected from an MCS rate table defined in 802.11n, 802.11ac or 802.11.ax.
[0014] Furthermore, the optimal performance index set includes MSC index values MCSmax and MCSmax-2 corresponding to the highest transmission rate supported by the current transmission environment.
[0015] Furthermore, transmitting the data packet with the transmission parameters corresponding to the first MCS index value specifically includes: modulating and encoding the data packet with the modulation mode and coding rate corresponding to the first MCS index value and then sending it.
[0016] Furthermore, when the data packet transmission is unsuccessful, the number of consecutive retransmissions increases by one, and when the transmission is successful, the number of consecutive retransmissions returns to zero.
[0017] Further, if the number of retransmissions per unit time exceeds a first threshold, the maximum number of retransmissions corresponding to the MCS index value in the basic performance index set is increased; or, if the maximum transmission rate supported by the current transmission environment is lower than a second threshold, the maximum number of retransmissions corresponding to the MCS index value in the basic performance index set is increased; or, if the number of retransmissions per unit time exceeds the first threshold, the maximum number of retransmissions corresponding to the MCS index value corresponding to the minimum transmission rate is increased; or, if the maximum transmission rate supported by the current transmission environment is lower than a second threshold, the maximum number of retransmissions corresponding to the MCS index value corresponding to the minimum transmission rate is increased.
[0018] An embodiment of the present invention also provides a data transmission device, which includes: an acquisition module, which acquires a first modulation and coding strategy MCS index value and a first maximum number of retransmissions corresponding to the first MCS index value; wherein the first MCS index value is an MCS index value in a multi-order rate table, and the multi-order rate table includes multiple MCS index values that are successively reduced in order, and the transmission rates represented by the multiple MCS index values are successively reduced; wherein the maximum number of retransmissions corresponding to the multiple MCS index values increases as the index values are reduced in order; a sending module, which transmits a data packet with a transmission parameter corresponding to the first MCS index value; wherein, when the number of consecutive retransmissions is greater than the first maximum number of retransmissions, the first MCS index value is reduced by one order.
[0019] An embodiment of the present invention further provides a computer program product, including computer program instructions, which are used to implement the aforementioned data transmission method when the instructions are executed by a processor.
[0020] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the aforementioned data transmission method is implemented.
[0021] The beneficial effects of the present invention are as follows: the present invention obtains a first modulation and coding strategy MCS index value and a first maximum number of retransmissions corresponding to the first MCS index value; wherein the first MCS index value is an MCS index value in a multi-order rate table, and the multi-order rate table includes multiple MCS index values of successively decreasing order, and the transmission rates represented by the multiple MCS index values decrease successively; wherein the maximum number of retransmissions corresponding to multiple MCS index values increases as the order of the index value decreases; and transmits data packets with transmission parameters corresponding to the first MCS index value; wherein, when the number of consecutive retransmissions is greater than the first maximum number of retransmissions, the first MCS index value is reduced by one order. The present invention can be applied to a strong interference environment of a wireless local area network, by improving the MAC layer retransmission efficiency, reducing TCP layer retransmission, improving the throughput of wireless transmission, and further reducing application layer behaviors such as playback freezes, thereby improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0023] Figure 1 This is a method flow chart of embodiment 1 of the present invention.
[0024] Figure 2 Schematic diagram of the editing interface for dynamic map data.
[0025] Figure 3 This is a method flow chart of Embodiment 2 of the present invention.
[0026] Figure 4 This is a block diagram of a device according to Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0027] In order to facilitate those skilled in the art to understand and implement the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0028] Embodiment 1
[0029] See also Figure 1 , Embodiment 1 of the present invention provides a data transmission method, the method comprising:
[0030] S101. Obtain a first modulation and coding strategy MCS index value and a first maximum number of retransmissions corresponding to the first MCS index value.
[0031] Specifically, the first MCS index value is obtained from a multi-order rate table, and the first MCS index value obtained for the first time is the highest-order MCS index value. The multi-order rate table includes a plurality of successively decreasing MCS index values, and each MCS index value corresponds to a different transmission rate. As the MCS order represented by the index value decreases, the transmission rate also decreases. Preferably, the MCS index value of the multi-order rate table is selected from the MCS rate table defined in the 802.11n or 802.11ac or 802.11.ax specification. Taking 802.11n as an example, the transmission parameters corresponding to each index value in the MCS rate table include modulation mode, coding rate, number of spatial streams, etc.
[0032] The multiple MCS index values in the multi-order rate table of the present invention include an optimal performance index set and a basic performance index set, wherein the optimal performance index set includes the MSC index value (MCSmax) corresponding to the highest transmission rate supported by the current transmission environment, and the basic performance index set includes the MCS index value (MCS0) corresponding to the lowest transmission rate.
[0033] Specifically, the first maximum number of retransmissions is obtained from a multi-order rate retransmission number table, and the maximum number of retransmissions corresponding to multiple MCS index values increases as the index value decreases. Alternatively, a column for the maximum number of retransmissions may be added to the multi-order rate table, and while obtaining the first MCS index value, the first maximum number of retransmissions corresponding to the first MCS index value is obtained from the multi-order rate table.
[0034] S102: Transmit a data packet using transmission parameters corresponding to a first MCS index value.
[0035] Preferably, the method further comprises: when the transmission of the data packet is unsuccessful, the number of consecutive retransmissions increases by one, and when the transmission is successful, the number of consecutive retransmissions returns to zero.
[0036] When the number of consecutive retransmissions is greater than the first maximum number of retransmissions, the first MCS index value is reduced by one level, and then the method of this embodiment is executed again. The first MSC index value obtained for the first time is the highest-level MCS index value (MCSmax) in the multi-level rate table, and after the number of retries is greater than the maximum number of retransmissions corresponding to MCSmax, the MCS index value is reduced by one level.
[0037] The transmitting of the data packet using the transmission parameters corresponding to the first MCS index value specifically includes: modulating and encoding the data packet using the modulation mode and coding rate corresponding to the first MCS index value and then sending the data packet.
[0038] In order to ensure the accessibility of the service, if the number of retransmissions per unit time exceeds the first threshold, the maximum number of retransmissions corresponding to the MCS index value in the basic performance index set is increased; or, if the maximum transmission rate supported by the current transmission environment is lower than the second threshold, the maximum number of retransmissions corresponding to the MCS index value in the basic performance index set is increased; or, if the number of retransmissions per unit time exceeds the first threshold, the maximum number of retransmissions corresponding to the MCS index value corresponding to the minimum transmission rate is increased; or, if the highest transmission rate supported by the current transmission environment is lower than the second threshold, the maximum number of retransmissions corresponding to the MCS index value corresponding to the minimum transmission rate is increased.
[0039] When there is strong electromagnetic interference around the wireless access point, such as Bluetooth, microwave, induction cooker, mobile phone, cordless phone, etc., they may cause sudden strong interference to the wifi signal when in use. The data transmission method provided by the present invention can be applied to the strong interference environment of the wireless local area network, by improving the MAC layer retransmission efficiency, reducing the TCP layer retransmission, improving the throughput of wireless transmission, and further reducing the application layer behaviors such as playback jamming, thereby improving the user experience.
[0040] Embodiment 2
[0041] See also Figure 2 , Embodiment 2 of the present invention provides a data transmission method, the method comprising:
[0042] S201. Obtain a first MCS index value from a multi-order rate table, and obtain a first maximum number of retransmissions corresponding to the first MCS index value from a multi-order rate retransmission number table. Of course, a column for the maximum number of retransmissions may also be added to the multi-order rate table, and while obtaining the first MCS index value, the first maximum number of retransmissions corresponding to the first MCS index value may be obtained from the multi-order rate table.
[0043] Specifically, the MCS index value of the multi-stage rate table of the present invention is selected from the MCS rate table defined in the 802.11n or 802.11ac or 802.11.ax specification.
[0044] Taking the 802.11n protocol specification as an example, the MCS rate table can support an MCS index range of 0-15, where MCS0 corresponds to the lowest-order modulation and coding strategy (modulation mode BPSK, coding rate 1 / 2, spatial stream 1x2), and MCS15 corresponds to the highest-order modulation and coding strategy (modulation mode 64-QAM, coding rate 5 / 6, spatial stream 2x2).
[0045] The multiple MCS index values in the multi-order rate table of the present invention include an optimal performance index set and a basic performance index set, wherein the optimal performance index set includes the MSC index value (MCSmax) corresponding to the highest transmission rate supported by the current transmission environment, and the basic performance index set includes the MCS index value (MCS0) corresponding to the lowest transmission rate.
[0046] This embodiment takes a five-order rate table as an example. Figure 3 As shown, the optimal performance index set includes MSC index values MCSmax and MCSmax-2 corresponding to the highest transmission rate supported by the current transmission environment. The basic performance index set includes MCS0, MCS1, and MCS2.
[0047] MCSmax can be obtained according to the Clear Channel Assessment (CCA) rule. For example, after evaluation, if the MSC index value corresponding to the highest transmission rate supported by the current transmission environment is MCS7, then MCSmax-2 is MCS5. In special cases, when the MCSmax obtained by evaluation is MCS4, MCSmax-2 should be MCS2. However, in order to ensure fault tolerance, MCSmax-2 can be defined as MCS3.
[0048] Specifically, the first maximum number of retransmissions is obtained from a multi-order rate retransmission number table, and the maximum number of retransmissions corresponding to multiple MCS index values increases as the order of the index value decreases.
[0049] S202: Transmit a data packet using a transmission parameter corresponding to a first MCS index value, wherein the first MSC index value obtained for the first time is the highest-order MCS index value in the multi-order rate table.
[0050] Preferably, the method further comprises: when the transmission of the data packet is unsuccessful, the number of consecutive retransmissions increases by one, and when the transmission is successful, the number of consecutive retransmissions returns to zero.
[0051] When the number of consecutive retransmissions is greater than the first maximum number of retransmissions, the first MCS index value is reduced by one level, and then the method of this embodiment is re-executed.
[0052] Taking the 802.11n protocol specification as an example, the first MSC index value obtained for the first time is MCSmax in the multi-stage rate table. First, use MCSmax to try to transmit data packets twice, then MCSmax-2 to try to transmit data packets 2 or 3 times, then reduce the speed to MCS2, MCS1 to try to transmit data packets 3 or 4 times each, and finally reduce the speed to MCS0 to try to transmit data packets 10 times.
[0053] In order to ensure the accessibility of the service, if the number of retransmissions per unit time exceeds the first threshold, the maximum number of retransmissions corresponding to the MCS index value in the basic performance index set is increased; or, if the maximum transmission rate supported by the current transmission environment is lower than the second threshold, the maximum number of retransmissions corresponding to the MCS index value in the basic performance index set is increased; or, if the number of retransmissions per unit time exceeds the first threshold, the maximum number of retransmissions corresponding to the MCS index value corresponding to the minimum transmission rate is increased; or, if the highest transmission rate supported by the current transmission environment is lower than the second threshold, the maximum number of retransmissions corresponding to the MCS index value corresponding to the minimum transmission rate is increased.
[0054] Specifically, the maximum number of retransmissions corresponding to MCS0 can be increased from 10 times to 20 times, or the maximum number of retransmissions corresponding to MCS2 and MCS1 can be increased from 3-4 times to 5-6 times, and the maximum number of retransmissions corresponding to MCS0 can be increased from 10 times to 20 times.
[0055] This embodiment adaptively selects the transmission rate according to the multi-stage rate table when the MAC transmits the data packet, thereby reducing the number of MAC layer retransmissions, and further reducing the number of TCP layer retransmissions.
[0056] Embodiment 3
[0057] See also Figure 4, Embodiment 3 of the present invention provides a data transmission device 400, the device comprising:
[0058] An acquisition module is provided for acquiring a first modulation and coding strategy MCS index value and a first maximum number of retransmissions corresponding to the first MCS index value; wherein the first MCS index value is an MCS index value in a multi-order rate table, and the multi-order rate table includes a plurality of successively decreasing MCS index values, and the transmission rates represented by the plurality of MCS index values decrease successively; wherein the maximum number of retransmissions corresponding to the plurality of MCS index values increases as the index values decrease in order; a sending module is provided for transmitting a data packet with a transmission parameter corresponding to the first MCS index value; wherein when the number of consecutive retransmissions is greater than the first maximum number of retransmissions, the first MCS index value is reduced by one order.
[0059] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes of the aforementioned method embodiments and will not be repeated here.
[0060] The embodiment of the present invention further discloses a computer program product, including computer program instructions, which are used to implement the method of the first or second embodiment when the instructions are executed by a processor.
[0061] The embodiment of the present invention further discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the method of the first or second embodiment is implemented.
[0062] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the methods, devices and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart and block diagram can represent a module, a program segment or a portion of a code, containing one or more computer executable instructions for implementing logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. It should also be noted that each box or combination of boxes in the block diagram and flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0063] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0064] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. The above embodiments are merely examples for illustration and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications may be made based on the above description, and these changes or modifications will be obvious and fall within the scope of protection of the present invention.
Claims
1. A data transmission method, wherein: The method comprises: Obtain a first modulation and coding strategy MCS index value and a first maximum number of retransmissions corresponding to the first MCS index value; wherein the first MCS index value is an MCS index value in a multi-order rate table, the multi-order rate table includes a plurality of sequentially degraded MCS index values, and the transmission rates represented by the plurality of MCS index values are sequentially reduced; wherein the maximum number of retransmissions corresponding to the plurality of MCS index values increases as the index value is degraded; Transmit a data packet with the transmission parameters corresponding to the first MCS index value; wherein, when the number of consecutive retransmissions is greater than the first maximum number of retransmissions, reduce the first MCS index value by one level and re-execute the above steps.
2. The method of claim 1, wherein: The multi-order rate table includes multiple MCS index values of successively decreasing order, and the multiple MCS index values include an optimal performance index set and a basic performance index set, wherein the optimal performance index set includes the MSC index value corresponding to the highest transmission rate supported by the current transmission environment, and the basic performance index set includes the MCS index value corresponding to the lowest transmission rate.
3. The method according to claim 1 or 2, wherein: The method is applied to data transmission in a strong interference environment.
4. The method according to claim 1 or 2, wherein: The method is applied to data transmission in a strong interference environment of a wireless local area network.
5. The method according to claim 1 or 2, wherein: The method is applied to the transmission of business data and / or control data between a smart speaker and an access point in a strong interference environment of a wireless local area network.
6. The method according to claim 1 or 2, wherein: The first MCS index value obtained for the first time is the highest-order MCS index value in the multi-order rate table.
7. The method according to claim 1 or 2, wherein: The multi-level rate table is selected from the MCS rate table defined in 802.11n, 802.11ac or 802.11.ax.
8. The method of claim 2, wherein: The optimal performance index set includes MSC index values MCSmax and MCSmax-2 corresponding to the highest transmission rate supported by the current transmission environment.
9. The method of claim 1, wherein: The transmitting of the data packet using the transmission parameters corresponding to the first MCS index value specifically includes: modulating and encoding the data packet using the modulation mode and coding rate corresponding to the first MCS index value and then sending the data packet.
10. The method of claim 1, wherein: When the data packet transmission is unsuccessful, the number of consecutive retransmissions increases by one, and when the transmission is successful, the number of consecutive retransmissions returns to zero.
11. The method of claim 2, wherein: If the number of retransmissions per unit time exceeds the first threshold, increase the maximum number of retransmissions corresponding to the MCS index value in the basic performance index set; or, if the highest transmission rate supported by the current transmission environment is lower than the second threshold, increase the maximum number of retransmissions corresponding to the MCS index value in the basic performance index set; or, if the number of retransmissions per unit time exceeds the first threshold, increase the maximum number of retransmissions corresponding to the MCS index value corresponding to the minimum transmission rate; or, if the highest transmission rate supported by the current transmission environment is lower than the second threshold, increase the maximum number of retransmissions corresponding to the MCS index value corresponding to the minimum transmission rate.
12. A data transmission device, comprising: An acquisition module is provided to acquire a first modulation and coding strategy MCS index value and a first maximum number of retransmissions corresponding to the first MCS index value; wherein the first MCS index value is an MCS index value in a multi-order rate table, the multi-order rate table includes a plurality of sequentially degraded MCS index values, and the transmission rates represented by the plurality of MCS index values are sequentially reduced; wherein the maximum number of retransmissions corresponding to the plurality of MCS index values increases as the index value is degraded; A sending module transmits a data packet with a transmission parameter corresponding to a first MCS index value; wherein, when the number of consecutive retransmissions is greater than the first maximum number of retransmissions, the first MCS index value is reduced by one level and the data packet is transmitted again with the transmission parameter corresponding to the first MCS index value.
13. A computer program product, comprising computer program instructions, which are used to implement the data transmission method according to any one of claims 1 to 11 when the instructions are executed by a processor.
14. A computer-readable storage medium having a computer program stored thereon, which, when executed, implements the data transmission method according to any one of claims 1 to 11.
