Data transmission method, apparatus and electronic device

By assessing the increase in packet loss rate in WiFi devices and intelligently selecting whether to use the Spatial Reuse function, the problem of excessively high packet loss rate caused by spatial reuse in the WiFi 6 protocol is solved, thus improving network performance.

CN116600351BActive Publication Date: 2025-12-26TP-LINK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310458731.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-24
Publication Date
2025-12-26
Estimated Expiration
2043-04-24

AI Technical Summary

Technical Problem

While the Spatial Reuse feature of the WiFi 6 protocol increases network capacity, it also causes wireless signal interference between devices, resulting in excessively high packet loss rates, which defeats the original purpose of improving network performance.

Method used

By determining the packet loss rate before and after a WiFi device sends a data frame and calculating the percentage increase in the packet loss rate, the system decides whether to continue using the Spatial Reuse function to send data frames based on this percentage, in order to assess the degree of interference to other devices and intelligently select whether to perform spatial reuse.

Benefits of technology

This reduces the excessive packet loss rate caused by the Spatial Reuse function, ensuring overall network performance and improving network stability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116600351B_ABST
    Figure CN116600351B_ABST
Patent Text Reader

Abstract

The application is suitable for the field of communication technology, and provides a data transmission method, device and electronic equipment. The method comprises the following steps: before a first WiFi device transmits a data frame through SR function, determining a packet loss rate of a second WiFi device and a specified terminal in transmitting a first number of data frames, and obtaining a first packet loss rate; in the process of transmitting the data frame by the first WiFi device through the SR function, determining a packet loss rate of the second WiFi device and the specified terminal in transmitting a second number of data frames, and obtaining a second packet loss rate; calculating a rising proportion of the packet loss rate of the second WiFi device according to the first packet loss rate and the second packet loss rate; and selecting whether to continue transmitting the data frame through the SR function according to the rising proportion of the packet loss rate of the second WiFi device. Through the above method, the overall network performance of the first WiFi device in SR packet transmission can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of communication, and particularly relates to a data transmission method and device, electronic equipment and a computer readable storage medium. BACKGROUND

[0002] The 802.11 protocol group has launched a new version of wireless protocol 802.11ax, which marks the formal entry of the wireless local area network into the sixth generation of wireless network technology (IEEE 802.11.ax, WiFi6) era.

[0003] In view of the problem of low space utilization caused by the strict collision avoidance mechanism of the old version of WiFi protocol, the WiFi6 protocol has launched a spatial reuse (Spatial Reuse, SR) function. The SR function allows the basic service sets (Base Service Set, BSS) which are relatively far apart in space to send wireless messages at the same time by adjusting the clear channel assessment (Clear Channel Assessment, CCA) threshold and the transmission power, so as to improve the overall network capacity.

[0004] In order to realize spatial reuse, Spatial Reuse needs to meet the following conditions:

[0005] (1) In the same BSS, all WiFi6 devices have the same BSS color, and the BSS colors of different BSSs are different, that is, the BSS color serves as the identifier of the BSS network.

[0006] (2) The WiFi6 device declares its own BSS color in the preamble, so that other WiFi6 devices can identify in the preamble stage whether the received signal is the self BSS (Self BSS) or the overlapping basic service set (Overlapping Basic Service Set, OBSS) signal.

[0007] (3) If the energy of the OBSS signal received by the current WiFi6 device is lower than the threshold customized by Spatial Reuse (OBSS PD is used), the current WiFi6 device can terminate the OBSS signal demodulation and send packets, so as to realize the simultaneous sending of packets in the linear part, and thus achieve the purpose of spatial reuse.

[0008] The principle timing diagram of the typical Spatial Reuse is shown in Figure 1 , and the principle timing diagram of the typical Spatial Reuse is shown in Figure 1In the prior art, there are two BBSs with a large spatial interval, namely BBS1 and BBS2. The BSS Color of the preamble of BBS1 is color 1, and the BSS Color of the preamble of BBS2 is color 2. Since the receiver (a tablet in the prior art) can determine the sender according to the color information of the preamble of the BBS signal, Figure 1 both the two receivers in the prior art can accurately receive the corresponding BBS signal. Figure 1

[0009] However, although spatial reuse can increase the overall throughput of the network by spatial multiplexing, it also causes packet loss. SUMMARY

[0010] Embodiments of the present application provide a data transmission method and device and electronic equipment, which can solve the problem of excessive packet loss rate when SR is used.

[0011] In a first aspect, embodiments of the present application provide a data transmission method applied to a first WiFi device, wherein the first WiFi device supports spatial reuse (SR) function, and the data transmission method comprises the following steps.

[0012] Before the first WiFi device transmits a data frame through the SR function, determining a packet loss rate of a second WiFi device and a specified terminal in transmitting a first number of data frames, to obtain a first packet loss rate;

[0013] During the process of the first WiFi device transmitting a data frame through the SR function, determining a packet loss rate of the second WiFi device and the specified terminal in transmitting a second number of data frames, to obtain a second packet loss rate;

[0014] Calculating a rising ratio of the packet loss rate of the second WiFi device according to the first packet loss rate and the second packet loss rate;

[0015] According to the rising ratio of the packet loss rate of the second WiFi device, selecting whether to continue transmitting a data frame through the SR function.

[0016] In a second aspect, embodiments of the present application provide a data transmission device applied to a first WiFi device, wherein the first WiFi device supports spatial reuse (SR) function, and the data transmission device comprises the following modules.

[0017] A first packet loss rate determination module is configured to determine a packet loss rate of a second WiFi device and a specified terminal in transmitting a first number of data frames before the first WiFi device transmits a data frame through the SR function, to obtain a first packet loss rate;

[0018] ​a second packet loss rate determination module, configured to determine a packet loss rate of the second WiFi device and the specified terminal in transmitting a second number of data frames during the process that the first WiFi device transmits the data frames through the SR function, to obtain a second packet loss rate;

[0019] a rising ratio of packet loss rate calculation module, configured to calculate a rising ratio of packet loss rate of the second WiFi device according to the first packet loss rate and the second packet loss rate;

[0020] an SR function selection module, configured to select whether to continue transmitting the data frames through the SR function according to the rising ratio of packet loss rate of the second WiFi device.

[0021] In a third aspect, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method in the first aspect when executing the computer program.

[0022] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, and the computer program is executable on a processor to implement the method in the first aspect.

[0023] In a fifth aspect, a computer program product is provided, and when the computer program product is executed on an electronic device, the electronic device executes the method in the first aspect.

[0024] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0025] In the embodiments of the present application, the first packet loss rate is the packet loss rate of the second WiFi device and the specified terminal in transmitting the first number of data frames before the first WiFi device transmits the data frames through the SR function, and the second packet loss rate is the packet loss rate of the second WiFi device and the specified terminal in transmitting the second number of data frames during the process that the first WiFi device transmits the data frames through the SR function. Therefore, the rising ratio of packet loss rate of the second WiFi device calculated according to the first packet loss rate and the second packet loss rate reflects the influence of the first WiFi device transmitting the data frames through the SR function on the packet loss rate of the second WiFi device. That is, in the embodiments of the present application, the first WiFi device evaluates the interference degree of its packet transmission on the communication of the second WiFi device when using the SR function to transmit the packet, and intelligently decides whether to use the SR function to transmit the packet at present, thereby being beneficial to reducing the phenomenon that the packet loss rate of the second WiFi device is too large due to the use of the SR function by the first WiFi device, and further being beneficial to guaranteeing the overall network performance. BRIEF DESCRIPTION OF DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or prior art description will be briefly introduced.

[0027] Figure 1 is a typical timing diagram of Spatial Reuse principle provided by prior art;

[0028] Figure 2 is a schematic diagram of interference when transmitting data frames using SR function provided by an embodiment of the present application;

[0029] Figure 3 is a flowchart of a data transmission method provided by an embodiment of the present application;

[0030] Figure 4 is a schematic diagram of uplink rate and downlink rate corresponding to two different BSS networks provided by an embodiment of the present application;

[0031] Figure 5 is a schematic diagram of short interframe space provided by another embodiment of the present application;

[0032] Figure 6 is a state transition schematic diagram provided by an embodiment of the present application;

[0033] Figure 7 is a structural schematic diagram of a data transmission apparatus provided by another embodiment of the present application;

[0034] Figure 8 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0035] In the following description, specific details are set forth in order to provide a thorough understanding of the embodiments of the present application. However, persons skilled in the art will understand that the present application can be practiced without these specific details, in other instances, well-known structures, circuits, and processes have not been described in detail in order not to unnecessarily obscure the present application.

[0036] It should be understood that, when used in the present application specification and the appended claims, the term "comprising" indicates the existence of described features, integers, steps, operations, elements and / or components, but does not exclude the existence or addition of one or more other features, integers, steps, operations, elements, components and / or sets thereof.

[0037] It should also be understood that the term "and / or" as used herein refers to a combination of any one or more of the associated listed items, and all possible combinations, and includes these combinations.

[0038] In addition, in the description of the present application and the appended claims, the terms "first", "second", "third" and the like are used only to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

[0039] In the present application, the reference "one embodiment" or "some embodiments" and the like means that the specific features, structures or characteristics described in connection with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in further some embodiments" and the like appearing in different places in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized.

[0040] Embodiment one:

[0041] Spatial Reuse, although it can increase the overall throughput of the network by spatial reuse, can also cause wireless signal interference between devices. When the interference is large, the network will have packet loss, reducing the throughput, which violates the original intention of the WiFi6 protocol design. As shown in Figure 2 As shown in the figure, BSS2 meets the SR condition, and when spatial reuse is performed, the SR data message of this BSS2 interferes with the normal message of BSS1, and the terminal of BSS1 is far away, so the terminal of BSS1 will cause data packet reception failure after being interfered.

[0042] In order to reduce the packet loss phenomenon of the network when using the SR function, the present application provides a data transmission method.

[0043] In the data transmission method, the first WiFi device determines the packet loss rate (RER) of the second WiFi device and the specified terminal for transmitting data frames before and after transmitting the data frames through the SR function, then calculates the rising ratio of the packet loss rate of the second WiFi device according to the two packet loss rates obtained, and finally selects whether to continue transmitting the data frames through the SR function according to the rising ratio of the packet loss rate.

[0044] The data transmission method provided by the embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0045] Figure 3A flowchart of a data transmission method provided by an embodiment of the application is shown, which is applied to a first WiFi device supporting SR function. In the embodiment of the application, the first WiFi device can be a router, an access point (AP) using WiFi 6 technology, and the like, which are described in detail as follows.

[0046] In step S31, before the first WiFi device transmits a data frame through the SR function, a packet loss rate of a second WiFi device and a specified terminal in transmitting a first number of data frames is determined, to obtain a first packet loss rate.

[0047] The specified terminal refers to a terminal in a same BSS network as the second WiFi device, and the second WiFi device is a device corresponding to the first WiFi device which is expected to use the SR function. For example, if the first WiFi device is expected to transmit a data frame through the SR function in the process of transmitting data frames by the WiFi device X, the WiFi device X is the second WiFi device in the embodiment of the application.

[0048] The first number is a preset value, which can be 15 or 20, and the like, and is set according to actual needs, which is not limited here.

[0049] In the embodiment of the application, the packet loss rate of the second WiFi device before the first WiFi device transmits a data frame through the SR function is calculated according to the data frames successfully transmitted by the second device and the data frames unsuccessfully transmitted by the second device.

[0050] In step S32, in the process of the first WiFi device transmitting a data frame through the SR function, a packet loss rate of the second WiFi device and the specified terminal in transmitting a second number of data frames is determined, to obtain a second packet loss rate.

[0051] The second number can be set according to actual conditions, for example, the second number can be equal to the first number, or can not be equal to the first number, which is not limited here.

[0052] In the embodiment of the application, in the process of the first WiFi device transmitting a data frame through the SR function (for example, in the process of the first WiFi device transmitting a data frame (for example, X1 (which can be set according to actual conditions) data frames) to a terminal in a same BSS network as the first WiFi device through the SR function), the packet loss rate of the second WiFi device is calculated according to the data frames successfully transmitted by the second device and the data frames unsuccessfully transmitted by the second device.

[0053] In some embodiments, the data frames sent by the SR function in this step S32 can be data frames actually needed to be sent out by the first WiFi device and useful to the receiving terminal, or can be test-specific data frames. Each of the test-specific data frames can be pre-generated, and the frame content of each of the data frames can be the same or different. For example, when the influence of the first WiFi device on the packet loss rate of the second WiFi device in sending data frames through the SR function is determined each time, the first WiFi device can determine the second packet loss rate by sending test-specific data frames. Since the test-specific data frames are pre-generated, sending the test-specific data frames can improve the sending efficiency of the data frames, and further improve the determination speed of the second packet loss rate.

[0054] Step S33, calculating the rising ratio of the packet loss rate of the second WiFi device according to the first packet loss rate and the second packet loss rate.

[0055] Specifically, the rising ratio of the packet loss rate is calculated according to the following formula: (the second packet loss rate - the first packet loss rate) / the first packet loss rate. The second packet loss rate is the packet loss rate of the second WiFi device when the first WiFi device sends data frames through the SR function, which can be greater than or not greater than the first packet loss rate.

[0056] Step S34, selecting whether to continue sending data frames through the SR function according to the rising ratio of the packet loss rate of the second WiFi device.

[0057] Specifically, since the rising ratio of the packet loss rate of the second WiFi device is a ratio value, a packet loss rate threshold value can be set between (0, 1], and the rising ratio of the packet loss rate of the second WiFi device is compared with the packet loss rate threshold value. The first WiFi device selects whether to continue sending data frames through the SR function according to the comparison result. It should be noted that if the rising ratio is less than or equal to 0, it is selected to continue sending data frames through the SR function.

[0058] In the embodiments of the present application, the first packet loss rate is the packet loss rate of the second WiFi device transmitting the first number of data frames with the specified terminal before the first WiFi device transmits data frames through the SR function, and the second packet loss rate is the packet loss rate of the second WiFi device transmitting the second number of data frames with the specified terminal in the process of the first WiFi device transmitting data frames through the SR function. Therefore, the increase ratio of the packet loss rate of the second WiFi device calculated according to the first packet loss rate and the second packet loss rate reflects the influence of the first WiFi device transmitting data frames through the SR function on the packet loss rate of the second WiFi device. That is, in the embodiments of the present application, when the first WiFi device transmits data frames through the SR function, the first WiFi device evaluates the interference degree of the data frames transmitted by the first WiFi device on the communication of the second WiFi device, and intelligently determines whether to transmit data frames through the SR function at present, thereby facilitating to reduce the phenomenon that the packet loss rate of the second WiFi device is too large due to the use of the SR function by the first WiFi device, and further facilitating to ensure the overall network performance.

[0059] In some embodiments, the step S34 includes: if it is judged that the increase ratio of the packet loss rate of the second WiFi device is greater than the preset first packet loss rate threshold, the first WiFi device is selected not to continue transmitting data frames through the SR function. Since when the increase ratio of the packet loss rate of the second WiFi device is greater than the preset first packet loss rate threshold, it indicates that the first WiFi device transmitting data frames through the SR function will cause the packet loss rate of the second WiFi device to increase, therefore, in order to reduce the influence on the packet loss rate of the second WiFi device, the first WiFi device suspends to continue transmitting data frames through the SR function. In some embodiments, in order to be able to transmit data frames through the SR function in time, when the first WiFi device suspends to continue transmitting data frames through the SR function, it will return to the step S31 and subsequent steps, so as to transmit data frames through the SR function in time when the SR function can be used.

[0060] In some embodiments, considering that when the first WiFi device transmits data frames through the SR function, it will not only affect the packet loss rate of the second WiFi device, but also possibly affect the average rate of the second WiFi device transmitting data frames, therefore, the data transmission method provided in the embodiments of the present application further includes:

[0061] A1, before the first WiFi device transmits data frames through the SR function, determining the average rate of the second WiFi device transmitting a third number of data frames with the specified terminal, to obtain a first rate.

[0062] The third number can be set according to actual conditions. Preferably, compared with the detection of the packet loss rate, when the number used for the detection of the rate is large, the obtained rate is more accurate, therefore, the third number can be set to be greater than the first number and greater than the second number.

[0063] Specifically, the average rate at which the second WiFi device transmits the third number of data frames to the specified terminal refers to the average of the rates at which the second WiFi device transmits respective data frames. The rate at which the second WiFi device transmits each data frame to the specified terminal can be determined by the first WiFi device collecting rate information corresponding to the transmission of the data frame by the second WiFi device. Specifically, for each data frame collected, rate information such as a guard interval length (GI), a modulation and coding scheme order (MCS), a number of spatial streams (NSS), and a bandwidth (BW) is collected from a preamble field of the data frame, and a rate corresponding to the collected rate information is looked up according to a preset rate table. In the 802.11ax protocol, a preamble HE-SIG-A field records BSS color and uplink / downlink information of the data frame, and includes rate information such as GI, MCS, NSS, and BW. The rate table records rates corresponding to multiple pieces of rate information. For example, when the NSS is equal to 2 and the BW is equal to 80, the rate table is as shown in Table 1.

[0064] Table 1:

[0065]

[0066] In Table 1 described above, Modulation represents a modulation method, including binary phase shift keying (BPSK), quadrature phase shift keying (QPSK), 16-quadrature amplitude modulation (QAM), 64-QAM, 256-QAM, and 1024-QAM. Dual carrier modulation (DCM) is a special modulation method, which copies symbols corresponding to the modulation method to another half of frequency domain subcarriers, reduces the rate of one half to improve transmission reliability, and DCM in the table column is 0, representing that dual carrier modulation is not used, and is 1, representing that dual carrier modulation is used. R represents a code rate, N SD represents a number of data subcarriers, N BPSCS represents a number of code bits of each single carrier in each spatial stream, N CBPS represents a number of code bits in each orthogonal frequency division multiplexing (OFDM) symbol, N DBPSN represents the number of coded data bits in each OFDM symbol, and Data rate represents a data rate.

[0067] As shown in Table 1, when the GI is 3.6 μs, the MCS is equal to 0, the NSS is equal to 2, and the BW is equal to 80, the corresponding rate is 30.6 Mb / s.

[0068] In some embodiments, collecting the rate information corresponding to the data frames transmitted by the second WiFi device includes collecting the rate information corresponding to the data frames sent by the second WiFi device and the rate information corresponding to the data frames received by the second WiFi device respectively, i.e., recording the rate information corresponding to the downlink of the second WiFi device and the rate information corresponding to the uplink of the second WiFi device respectively. Since the rate information corresponding to the uplink and the rate information corresponding to the downlink are collected respectively, the accuracy of the rate determined according to the rate information of different links subsequently can be ensured. Figure 4 As shown in Table 2, the first WiFi device can obtain the rate information corresponding to the data frames transmitted by the second WiFi device by maintaining an information list as shown in Table 2, i.e., the first WiFi device updates the rate of the link in the corresponding direction in Table 2 every time it listens to the transmission of a data frame by the second WiFi device.

[0069] Table 2:

[0070]

[0071] In Table 2, "UL" represents the uplink direction, and "DL" represents the downlink direction.

[0072] A2, if the rising proportion of the packet loss rate of the second WiFi device is not greater than a preset first packet loss rate threshold, then in the process of sending data frames by the first WiFi device through the SR function, the average rate of the second WiFi device and the specified terminal in transmitting a fourth number of data frames is determined, and a second rate is obtained.

[0073] The fourth number can be set according to actual needs, and the fourth number can be equal to the third number or can not be equal to the third number, which is not limited here. In some embodiments, considering that the packet loss rate is detected for a short time, and the rate detection is detected for a long time, it is necessary to have a long enough time to observe whether the rate decreases, and therefore, the fourth number can be set to be greater than the first number and greater than the second number, so as to improve the accuracy of the obtained second rate.

[0074] The data frame sent by the first WiFi device through the SR function can be a data frame actually needed to be sent by the first WiFi device, or a data frame dedicated for testing. The number of the data frame sent by the first WiFi device through the SR function can be set according to actual conditions.

[0075] In the embodiment, the rising ratio of the packet loss rate of the second WiFi device is compared with the preset first packet loss rate threshold. If the rising ratio is not greater than the preset first packet loss rate threshold, it indicates that the first WiFi device has little influence on the packet loss rate of the second WiFi device when sending the data frame through the SR function. At this time, the data frame is continuously sent through the SR function, and the second rate is determined.

[0076] A3. The falling ratio of the rate of the second WiFi device is calculated according to the first rate and the second rate.

[0077] Specifically, the falling ratio of the rate of the second WiFi device is calculated according to the following formula: (the first rate-the second rate) / the first rate.

[0078] Correspondingly, the step S34 includes:

[0079] B1. If the rising ratio of the packet loss rate of the second WiFi device is not greater than the preset first packet loss rate threshold, and it is judged that the falling ratio of the rate of the second WiFi device is not greater than the preset first rate threshold, the data frame is continuously sent through the SR function.

[0080] Specifically, when it is judged that the rising ratio of the packet loss rate of the second WiFi device is not greater than the preset first packet loss rate threshold, and it is judged that the falling ratio of the rate of the second WiFi device is not greater than the preset first rate threshold, it indicates that the first WiFi device has little influence on the packet loss rate and the rate of the second WiFi device when sending the data frame through the SR function. At this time, the data frame is continuously sent through the SR function, which can effectively improve the network capacity.

[0081] In the embodiment, the data frame continuously sent by the first WiFi device through the SR function is a data frame actually needed to be sent by the first WiFi device, i.e., it is not a data frame dedicated for testing. Of course, if the data frame sent by the first WiFi device in the step S32 is a data frame actually needed to be sent by the first WiFi device, the data frame sent by the first WiFi device through the SR function at this time is a data frame after the data frame (assuming that the first N data frame is sent in the step S32, the data frame sent through the SR function at this time is a data frame after the first N data frame). That is, the content of the data frame sent by the first WiFi device at this time and the content of the data frame sent by the first WiFi device in the step S32 are continuous contents, so as to ensure the continuity of the content received by the receiving terminal.

[0082] B2, if the rising proportion of the packet loss rate of the second WiFi device is not greater than the preset first packet loss rate threshold, but it is judged that the falling proportion of the rate of the second WiFi device is greater than the preset first rate threshold, then the step of suspending the sending of the data frame by the SR function and returning to the step of determining the packet loss rate of the second WiFi device and the subsequent steps before the first WiFi device sends the data frame by the SR function is performed.

[0083] In the embodiment, if it is judged that the rising proportion of the packet loss rate of the second WiFi device is not greater than the preset first packet loss rate threshold, but it is judged that the falling proportion of the rate of the second WiFi device is greater than the preset first rate threshold, it indicates that the sending of the data frame by the SR function of the first WiFi device has little effect on the packet loss rate of the second WiFi device, but has great effect on the average rate of the second WiFi device for transmitting the data frame. Therefore, in order to reduce the effect on the average rate of the second WiFi device for transmitting the data frame, the first WiFi device suspends the sending of the data frame by the SR function, and returns to the step S31 and the subsequent steps (such as the step A1, the step A2, the step A3, the step S32, the step S33, the step S34, etc.), so as to be able to timely judge the opportunity of using the SR function of the first WiFi device in the future, and then be able to timely send the data frame by the SR function. In addition, since the packet loss rate detection can detect serious interference, and the rate detection is used to detect slight interference, first, it is confirmed that there is no serious interference, and then it is determined whether the rate is deteriorated greatly, that is, after the packet loss rate meets the requirement, the rate detection is performed, and finally, after both meet the requirement, the data frame is sent by the SR function, which can avoid serious interference at a smaller cost.

[0084] In some embodiments, considering that a wireless communication sending success needs both sides to send signals, such as an OBSS making a transmission, A is a sender, B is a receiver, and a first WiFi device (assuming an AP) is a listener, A sends data, and for the first WiFi device AP, the data frame transmitted by A and B is an OBSS data frame, the first WiFi device AP receives the signal, and by analyzing the preamble of the wireless data frame, it can be known that the data frame is not sent to itself. If B receives the data frame of A, it needs to respond an Acknowled (ACK) frame to A to inform A that the data frame is sent successfully, the ACK frame is immediately after the OBSS data frame, and other wireless devices must back off and are not allowed to send packets during this period. If the first WiFi device AP listens to the power rise after the OBSS data frame, it can be determined that B responds to the ACK frame, and further determines that the OBSS data frame is successfully transmitted. In combination with the above scenario, in the embodiments of the present application, the target packet loss rate is determined by the following manner, and the target packet loss rate is the first packet loss rate or the second packet loss rate described above:

[0085] C1, listening to the first power and the second power, wherein the first power is the power of the second WiFi device within a short interframe space (SIFS) after a data frame is transmitted by the second WiFi device and the specified terminal, and the second power is the power of the second WiFi device within a preset ACK frame duration after the data frame is transmitted by the second WiFi device and the specified terminal and after the SIFS.

[0086] The preset ACK frame duration is set according to experience.

[0087] C2, if it is judged that the power of the second WiFi device rises according to the first power and the second power, it is determined that the second WiFi device successfully transmits the data frame, otherwise, it is determined that the second WiFi device does not successfully transmit the data frame.

[0088] After the first WiFi device listens to the completion of the reception of the OBSS data frame, the power within the SIFS after the second WiFi device and the specified terminal transmit a data frame is listened to, that is, the power within the time corresponding to the SIFS in the formula is listened to as the first power. Figure 5 If the OBSS data frame is successfully sent, the power within the preset ACK frame duration (that is, the power within the time corresponding to the ACK frame in the formula) after the SIFS is listened to as the second power. Figure 5The sender will receive an ACK frame within the time corresponding to the "ACK" position, and at this time, the power (i.e., the second power) monitored within the time corresponding to the ACK will be greater than the power (i.e., the first power) monitored within the time corresponding to the SIFS, i.e., the power of the second WiFi device has a rising phenomenon. Of course, if the OBSS data frame is not successfully sent, the power of the second WiFi device does not have a rising phenomenon. Since whether the power of the second WiFi device has a rising phenomenon is related to whether the second WiFi device successfully transmits the data frame, whether the data frame is successfully transmitted can be accurately determined according to whether the power of the second WiFi device has a rising phenomenon.

[0089] C3, the number of data frames successfully transmitted by the second WiFi device and the number of data frames unsuccessfully transmitted by the second WiFi device in the target number of data frames are determined according to the number of successfully transmitted data frames and the number of unsuccessfully transmitted data frames to determine the packet loss rate of the first number of data frames transmitted by the second WiFi device and the specified terminal, and the target packet loss rate is obtained, wherein when the target packet loss rate is the first packet loss rate, the target number is the first number, and when the target packet loss rate is the second packet loss rate, the target number is the second number.

[0090] Specifically, the number of successfully transmitted data frames (assuming M1) and the number of data frames that cannot be successfully transmitted (assuming M2) are counted, and the first packet loss rate PER is:

[0091] PER = M2 / (M1+M2).

[0092] In some embodiments, the first packet loss rate determined by the first WiFi device is the packet loss rate within the first monitoring period, and at this time, the step S31 includes:

[0093] Before the first WiFi device sends the data frame through the SR function, the packet loss rate of the first number of data frames transmitted by the second WiFi device and the specified terminal within the first monitoring period is determined to obtain the first packet loss rate.

[0094] After it is judged that the rising proportion of the packet loss rate of the second WiFi device is greater than the first packet loss rate threshold, the data transmission method further includes:

[0095] determining a second listening period, taking the second listening period as a new first listening period, and returning to the step of determining the first packet loss rate and the subsequent steps before the first WiFi device transmits the data frame through the SR function, wherein the second listening period is greater than the first listening period.

[0096] In the embodiments of the present application, if the increase ratio of the packet loss rate of the second WiFi device is greater than the preset first packet loss rate threshold, it indicates that the first WiFi device seriously interferes with other devices (such as the second WiFi device) when transmitting the data frame through the SR function. At this time, expanding the listening period for determining the first packet loss rate can delay the time of obtaining the first packet loss rate obtained when the first WiFi device transmits the data frame through the SR function, that is, avoiding the period that seriously interferes with other devices to better avoid the case of interfering with other devices when transmitting the data frame through the SR function.

[0097] In some embodiments, the step S31 comprises:

[0098] Before the first WiFi device transmits the data frame through the SR function, the packet loss rate of the second WiFi device and the specified terminal transmitting the first number of data frames in the first listening period is determined to obtain the first packet loss rate.

[0099] Correspondingly, after the step B2, the data transmission method further comprises:

[0100] determining a third listening period, taking the third listening period as a new first listening period, and returning to the step of determining the first packet loss rate and the subsequent steps before the first WiFi device transmits the data frame through the SR function, wherein the third listening period is greater than the first listening period.

[0101] In the embodiments of the present application, since the increase ratio of the packet loss rate of the second WiFi device is not greater than the preset first packet loss rate threshold, but the decrease ratio of the rate of the second WiFi device is greater than the preset first rate threshold, it indicates that the first WiFi device does not seriously interfere with other devices (such as the second WiFi device) when transmitting the data frame through the SR function, but can cause a large decrease in the average rate of other devices when transmitting the data frame. At this time, expanding the listening period for determining the first packet loss rate can avoid the period that affects the average rate of other devices, that is, avoiding the period that affects the average rate of other devices to better avoid the case of interfering with other devices when transmitting the data frame through the SR function.

[0102] In some embodiments, the step S31 comprises:

[0103] Before the first WiFi device transmits the data frames through the SR function, a first packet loss rate of the second WiFi device and the specified terminal transmitting the first number of data frames in the first monitoring period is determined, to obtain a first packet loss rate.

[0104] Correspondingly, the data transmission method further comprises:

[0105] In the process of selecting to continue transmitting the data frames through the SR function, a third packet loss rate of the second WiFi device and the specified terminal transmitting a fifth number of data frames is determined, and a third rate of the second WiFi device and the specified terminal transmitting a sixth number of data frames is determined.

[0106] If it is judged that the rising proportion of the packet loss rate of the second WiFi device is greater than a preset second packet loss rate threshold according to the first packet loss rate and the third packet loss rate, or if it is judged that the falling proportion of the rate of the second WiFi device is greater than a preset second rate threshold according to the first rate and the third rate, transmitting the data frames through the SR function is suspended, the first monitoring period is reset to a default value, and the step of determining the first packet loss rate of the second WiFi device and the specified terminal transmitting the first number of data frames in the first monitoring period and the subsequent steps are returned.

[0107] The fifth number and the sixth number can be set according to actual conditions, such as setting the fifth number to be equal to the first number or equal to the second number, setting the sixth number to be equal to the third number or the fourth number, etc., which are not limited here. In some embodiments, considering that the packet loss rate is a short-time detection, and the rate detection is a long-time detection, it is necessary to have a long enough time to observe whether the rate is falling, therefore, the sixth number can be set to be greater than the fifth number.

[0108] In the embodiments of the present application, in the process that the first WiFi device transmits data frames through the SR function, the packet loss rate and the average rate of the second WiFi device are continuously updated, so that it can be determined in time whether the first WiFi device transmits data frames through the SR function and causes great interference to the second WiFi device. Since the burst interference of the environmental noise and the interference of the first WiFi device transmitting data frames through the SR function will both deteriorate the packet loss rate and the average rate of the second WiFi device, and it is difficult for the user to distinguish which kind of interference deteriorates the packet loss rate and the average rate of the second WiFi device, therefore, after it is determined that the rising proportion of the packet loss rate of the second WiFi device is greater than the preset second packet loss rate threshold, or it is determined that the falling proportion of the rate of the second WiFi device is greater than the preset rate threshold, the SR is first suspended, other WiFi devices are listened to for a period of time, and then the fast detection is performed, so as to determine whether it is the noise interference or the interference of the first WiFi device transmitting data frames through the SR function. In the embodiments of the present application, resetting the first listening period to the default value can ensure that the length of the first listening period will not be too large (for example, if the first listening period has been expanded, the original length of the first listening period can be restored after resetting), so that after it is determined that the deterioration of the packet loss rate and the average rate of the second WiFi device is not caused by the interference of the first WiFi device transmitting data frames through the SR function, the first WiFi device can quickly resume using the SR function.

[0109] In some embodiments, in the process of selecting to continue transmitting data frames through the SR function, if only it is determined that the packet loss rate and the average rate of the second WiFi device are deteriorated, the first listening period is expanded, that is:

[0110] If it is determined according to the first packet loss rate and the third packet loss rate that the rising proportion of the packet loss rate of the second WiFi device is greater than the preset second packet loss rate threshold, and if it is determined according to the first rate and the third rate that the falling proportion of the rate of the second WiFi device is greater than the preset second rate threshold, transmitting data frames through the SR function is suspended, a fourth listening period is determined, the fourth listening period is taken as a new first listening period, and the step of determining the packet loss rate of the second WiFi device and the specified terminal transmitting the first number of data frames in the first listening period before the first WiFi device transmits data frames through the SR function and the subsequent steps are returned, wherein the fourth listening period is greater than the first listening period.

[0111] The second packet loss rate threshold can be equal to the first packet loss rate threshold, or can be different from the first packet loss rate threshold, and is specifically set according to actual conditions, which is not limited herein. Similarly, the second rate threshold can be equal to the first rate threshold, or can be different from the first rate threshold, and is specifically set according to actual conditions, which is not limited herein.

[0112] In the embodiment of the application, since the listening period for determining the first packet loss rate is enlarged, the period that affects the average rate of other devices can be avoided, that is, the case that the transmission of data frames by the SR function interferes with other devices is better avoided by avoiding the period that affects the average rate of other devices.

[0113] In order to more clearly describe the data transmission method provided by the embodiment of the application, the following will be described in combination with Figure 6 .

[0114] When the first WiFi device transmits data frames by the SR, four states shown in the figure are included: SR listening, PER detection, rate detection, and SR running. Figure 6

[0115] SR listening: The first WiFi device does not transmit data frames by the SR function in this state. The average rate and PER of data frames transmitted by other devices (such as the second WiFi device) are listened to. After the listening period ends, the PER detection state is entered again.

[0116] PER detection: The first WiFi device transmits a plurality of (such as X1) SR data frames (the SR data frame is a data frame transmitted by the SR function) in this state, and the PER of the second WiFi device is counted in the process. If the PER increases by a certain percentage compared with the PER of the listening period, it is determined that the detection fails, and the SR listening is returned, and the listening period is enlarged. If it is determined that the detection is successful, the rate detection state is entered.

[0117] Rate detection: The first WiFi device transmits a plurality of SR data frames in this state, such as X2 (X2 can be equal to X1, or can not be equal to X1) data frames, and the average rate of the second WiFi device is determined in the process. If the average rate decreases by a certain percentage compared with the average rate of the listening period, it is determined that the detection fails, and the SR listening is returned, and the listening period is enlarged. If it is determined that the detection is successful, the SR running state is entered.

[0118] SR running: The SR is always effective in this state, that is, the first WiFi device continues to transmit data frames by the SR function in this state, and the average rate and PER are updated. If the average rate or the PER suddenly decreases by a certain percentage compared with the listening period, the SR listening is returned, and the listening period is reset to a default value, which is a plurality of seconds. ​

[0119] It should be understood that the size of the serial number of each step in the above embodiments does not mean the order of execution, and the execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0120] Embodiment two:

[0121] The data transmission method corresponding to the above embodiment, Figure 7 The structural block diagram of the data transmission device provided by the embodiments of the present application is shown, and only the parts related to the embodiments of the present application are shown for the convenience of description.

[0122] Referring to Figure 7 The data transmission device 7 is applied to a first WiFi device supporting spatial reuse SR function, and the data transmission device 7 comprises a first packet loss rate determination module 71, a second packet loss rate determination module 72, a packet loss rate rising ratio calculation module 73 and an SR function selection module 74. Wherein:

[0123] The first packet loss rate determination module 71 is configured to determine the packet loss rate of the second WiFi device and a specified terminal in transmitting a first number of data frames before the first WiFi device transmits data frames through the SR function, to obtain a first packet loss rate.

[0124] The second packet loss rate determination module 72 is configured to determine the packet loss rate of the second WiFi device and the specified terminal in transmitting a second number of data frames during the process of the first WiFi device transmitting data frames through the SR function, to obtain a second packet loss rate.

[0125] The packet loss rate rising ratio calculation module 73 is configured to calculate the rising ratio of the packet loss rate of the second WiFi device according to the first packet loss rate and the second packet loss rate.

[0126] The SR function selection module 74 is configured to select whether to continue transmitting data frames through the SR function according to the rising ratio of the packet loss rate of the second WiFi device.

[0127] In the embodiments of the present application, the first packet loss rate is the packet loss rate of the second WiFi device and the specified terminal in transmitting the first number of data frames before the first WiFi device transmits data frames through the SR function, and the second packet loss rate is the packet loss rate of the second WiFi device and the specified terminal in transmitting the second number of data frames during the process that the first WiFi device transmits data frames through the SR function. Therefore, the increase ratio of the packet loss rate of the second WiFi device calculated according to the first packet loss rate and the second packet loss rate reflects the influence of the first WiFi device transmitting data frames through the SR function on the packet loss rate of the second WiFi device. That is, in the embodiments of the present application, the first WiFi device evaluates the interference degree of the packet transmission of the first WiFi device on the communication of the second WiFi device when the first WiFi device transmits data frames through the SR function, and intelligently determines whether the SR packet transmission is needed at present, thereby being beneficial to reducing the phenomenon that the packet loss rate of the second WiFi device is too large due to the use of the SR function by the first WiFi device, and further being beneficial to guaranteeing the overall network performance.

[0128] In some embodiments, the SR function selection module 74 includes:

[0129] If it is judged that the increase ratio of the packet loss rate of the second WiFi device is greater than the preset first packet loss rate threshold, the SR function is not selected to continue transmitting data frames.

[0130] In some embodiments, the data transmission device 7 provided by the embodiments of the present application further includes:

[0131] The first rate determination module is configured to determine an average rate of the second WiFi device and the specified terminal in transmitting a third number of data frames before the first WiFi device transmits data frames through the SR function, and obtain a first rate.

[0132] The second rate determination module is configured to, if the increase ratio of the packet loss rate of the second WiFi device is not greater than the preset first packet loss rate threshold, determine an average rate of the second WiFi device and the specified terminal in transmitting a fourth number of data frames during the process that the first WiFi device transmits data frames through the SR function, and obtain a second rate.

[0133] The rate decrease ratio calculation module is configured to calculate a decrease ratio of the rate of the second WiFi device according to the first rate and the second rate.

[0134] Correspondingly, the SR function selection module 74 includes:

[0135] The SR data frame sending unit is configured to, if the rising proportion of the packet loss rate of the second WiFi device is not greater than the preset first packet loss rate threshold and it is determined that the falling proportion of the rate of the second WiFi device is not greater than the preset first rate threshold, continue to send data frames through the SR function.

[0136] The SR data frame sending unit is configured to, if the rising proportion of the packet loss rate of the second WiFi device is not greater than the preset first packet loss rate threshold and it is determined that the falling proportion of the rate of the second WiFi device is not greater than the preset first rate threshold, continue to send data frames through the SR function.

[0137] In some embodiments, the target packet loss rate, which is the first packet loss rate or the second packet loss rate, is determined by the following manner, wherein the first packet loss rate determining module 71 or the second packet loss rate determining module 72 comprises:

[0138] The power monitoring unit is configured to monitor a first power and a second power, wherein the first power is a power of the second WiFi device in a short interframe space time after the second WiFi device transmits a data frame with the specified terminal, and the second power is a power of the second WiFi device in a preset ACK frame duration after the second WiFi device transmits a data frame with the specified terminal.

[0139] The data frame transmission judgment unit is configured to, if it is determined that the power of the second WiFi device rises according to the first power and the second power, determine that the second WiFi device successfully transmits the data frame, or otherwise, determine that the second WiFi device does not successfully transmit the data frame.

[0140] The packet loss rate calculating unit is configured to count the number of data frames successfully transmitted by the second WiFi device and the number of data frames unsuccessfully transmitted by the second WiFi device in a target number of data frames, and determine the packet loss rate of the second WiFi device in transmitting the target number of data frames with the specified terminal according to the number of successfully transmitted data frames and the number of unsuccessfully transmitted data frames, to obtain the target packet loss rate, wherein when the target packet loss rate is the first packet loss rate, the target number is the first number, and when the target packet loss rate is the second packet loss rate, the target number is the second number.

[0141] In some embodiments, the first packet loss rate determining module 71 is specifically configured to:

[0142] Before the first WiFi device transmits the data frame through the SR function, a first packet loss rate of the second WiFi device and the specified terminal in a first monitoring period is determined, and a first packet loss rate is obtained.

[0143] After it is determined that the increase ratio of the packet loss rate of the second WiFi device is greater than the first packet loss rate threshold, the data transmission device 7 further includes:

[0144] A second monitoring period determining module is configured to determine a second monitoring period, take the second monitoring period as a new first monitoring period, and return the step of determining the first packet loss rate of the second WiFi device and the specified terminal in the first monitoring period before the first WiFi device transmits the data frame through the SR function, and subsequent steps, wherein the second monitoring period is greater than the first monitoring period.

[0145] In some embodiments, the first packet loss rate determining module 71 is specifically configured to:

[0146] Before the first WiFi device transmits the data frame through the SR function, a first packet loss rate of the second WiFi device and the specified terminal in a first monitoring period is determined, and a first packet loss rate is obtained.

[0147] After it is determined that the decrease ratio of the rate of the second WiFi device is greater than the first rate threshold, the data transmission device 7 further includes:

[0148] A third monitoring period determining module is configured to determine a third monitoring period, take the third monitoring period as a new first monitoring period, and return the step of determining the first packet loss rate of the second WiFi device and the specified terminal in the first monitoring period before the first WiFi device transmits the data frame through the SR function, and subsequent steps, wherein the third monitoring period is greater than the first monitoring period.

[0149] In some embodiments, the first packet loss rate determining module 71 is specifically configured to:

[0150] Before the first WiFi device transmits the data frame through the SR function, a first packet loss rate of the second WiFi device and the specified terminal in a first monitoring period is determined, and a first packet loss rate is obtained.

[0151] Correspondingly, the data transmission device 7 further includes:

[0152] The packet loss rate and rate monitoring module is used to determine, during the process of selecting to continue sending data frames through the SR function, the packet loss rate of the fifth number of data frames transmitted between the second WiFi device and the designated terminal to obtain a third packet loss rate, and to determine the average rate of the sixth number of data frames transmitted between the second WiFi device and the designated terminal to obtain a third rate.

[0153] The monitoring period reset module is used to, if based on the first packet loss rate and the third packet loss rate, it is determined that the increase ratio of the packet loss rate of the second WiFi device is greater than a preset second packet loss rate threshold, and if based on the first rate and the third rate, it is determined that the decrease ratio of the rate of the second WiFi device is greater than the preset second rate threshold, then suspend the transmission of data frames through the SR function, reset the first monitoring period to the default value, and return to the steps of determining the packet loss rate of the first number of data frames transmitted between the second WiFi device and the specified terminal within the first monitoring period to obtain the first packet loss rate and subsequent steps.

[0154] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0155] Example 3:

[0156] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 8 As shown, the electronic device 8 of this embodiment includes: at least one processor 80 ( Figure 8 The diagram shows only one processor, a memory 81, and a computer program 82 stored in the memory 81 and executable on the at least one processor 80, which, when executing the computer program 82, performs the steps in any of the above method embodiments.

[0157] The electronic device 8 can be a router, mobile phone, desktop computer, laptop, PDA, cloud server, or other computing device. This electronic device may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will understand that... Figure 8 This is merely an example of electronic device 8 and does not constitute a limitation on electronic device 8. It may include more or fewer components than shown, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.

[0158] The processor 80 can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0159] The memory 81 can be an internal storage unit of the electronic device 8 in some embodiments, such as a hard disk or a memory of the electronic device 8. The memory 81 can also be an external storage device of the electronic device 8 in other embodiments, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 8. Further, the memory 81 can include both the internal storage unit and the external storage device of the electronic device 8. The memory 81 is used to store an operating system, an application program, a boot loader, data, and other programs, such as program codes of the computer program, etc. The memory 81 can also be used to temporarily store data that has been output or will be output.

[0160] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional units and modules is exemplified, and in actual application, the above functions can be completed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to complete all or part of the above-described functions. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit, and the integrated unit can be realized in the form of hardware or in the form of software functional unit. In addition, the specific names of each functional unit and module are only for easy distinction, and do not limit the protection scope of the present application. The specific working process of the units and modules in the system can refer to the corresponding process in the foregoing method embodiments, which will not be described here.

[0161] The embodiments of the present application further provide a network device, comprising at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above method embodiments when executing the computer program.

[0162] The embodiments of the present application further provide a computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the steps in any of the above method embodiments.

[0163] The embodiments of the present application provide a computer program product, which, when running on an electronic device, enables the electronic device to implement the steps in any of the above method embodiments.

[0164] The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the processes in the above embodiments, which can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer readable storage medium, and the computer program, when executed by a processor, can implement the steps in each of the above method embodiments. The computer program includes computer program code, which can be in the form of source code, object code, executable file or some intermediate form. The computer readable medium at least includes any entity or device capable of carrying the computer program code to the photographing device / electronic device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, according to legislation and patent practice, the computer readable medium cannot be an electrical carrier signal and a telecommunication signal.

[0165] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0166] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0167] In the embodiments provided by the present application, it should be understood that the disclosed apparatus / network device and method can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely schematic. The division of the modules or units is merely a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between the units can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.

[0168] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.

[0169] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A data transmission method, characterized by, The data transmission method is applied to a first WiFi device supporting a spatial reuse (SR) function, and comprises the following steps: Before the first WiFi device transmits data frames through the SR function, determining a packet loss rate of a second WiFi device and a specified terminal in transmitting a first number of data frames, to obtain a first packet loss rate; During the process of the first WiFi device transmitting data frames through the SR function, determining a packet loss rate of the second WiFi device and the specified terminal in transmitting a second number of data frames, to obtain a second packet loss rate; Calculating a rising proportion of the packet loss rate of the second WiFi device according to the first packet loss rate and the second packet loss rate; According to the rising proportion of the packet loss rate of the second WiFi device, selecting whether to continue transmitting data frames through the SR function.

2. The data transmission method of claim 1, wherein, The step of selecting whether to continue transmitting data frames through the SR function according to the rising proportion of the packet loss rate of the second WiFi device comprises the following steps: If it is determined that the rising proportion of the packet loss rate of the second WiFi device is greater than a preset first packet loss rate threshold, the first WiFi device stops transmitting data frames through the SR function.

3. The data transmission method of claim 1, wherein, The method further comprises the following steps: Before the first WiFi device transmits data frames through the SR function, determining an average rate of the second WiFi device and the specified terminal in transmitting a third number of data frames, to obtain a first rate; If the rising proportion of the packet loss rate of the second WiFi device is not greater than the preset first packet loss rate threshold, during the process of the first WiFi device transmitting data frames through the SR function, determining an average rate of the second WiFi device and the specified terminal in transmitting a fourth number of data frames, to obtain a second rate; Calculating a falling proportion of the rate of the second WiFi device according to the first rate and the second rate; The step of selecting whether to continue transmitting data frames through the SR function according to the rising proportion of the packet loss rate of the second WiFi device comprises the following steps: If the rising proportion of the packet loss rate of the second WiFi device is not greater than the preset first packet loss rate threshold, and it is determined that the falling proportion of the rate of the second WiFi device is not greater than a preset first rate threshold, the first WiFi device continues transmitting data frames through the SR function; If the rising proportion of the packet loss rate of the second WiFi device is not greater than the preset first packet loss rate threshold, but it is determined that the falling proportion of the rate of the second WiFi device is greater than the preset first rate threshold, the first WiFi device suspends transmitting data frames through the SR function, and returns to the step of determining the packet loss rate of the second WiFi device and the specified terminal in transmitting the first number of data frames, and the subsequent steps.

4. The data transmission method of claim 1, wherein, The target packet loss rate is determined by the following steps: listening to a first power and a second power, wherein the first power is a power of the second WiFi device in a short interframe space time after a data frame is transmitted by the second WiFi device and the specified terminal, and the second power is a power of the second WiFi device in a preset ACK frame duration after the data frame is transmitted by the second WiFi device and the specified terminal; if it is determined that the power of the second WiFi device increases according to the first power and the second power, it is determined that the second WiFi device successfully transmits the data frame, otherwise, it is determined that the second WiFi device does not successfully transmit the data frame; among a target number of data frames, the number of data frames successfully transmitted by the second WiFi device and the number of data frames unsuccessfully transmitted by the second WiFi device, the packet loss rate of the second WiFi device and the specified terminal transmitting the target number of data frames is determined according to the number of successfully transmitted data frames and the number of unsuccessfully transmitted data frames, and the target packet loss rate is obtained, wherein when the target packet loss rate is the first packet loss rate, the target number is the first number, and when the target packet loss rate is the second packet loss rate, the target number is the second number.

5. The data transmission method of claim 2, wherein, Before the first WiFi device transmits the data frame through the SR function, the method comprises: Before the first WiFi device transmits the data frame through the SR function, the method comprises: After it is determined that the increase rate of the packet loss rate of the second WiFi device is greater than the preset first packet loss rate threshold, the data transmission method further comprises: determining a second listening period, taking the second listening period as a new first listening period, and returning to the step of determining the packet loss rate of the second WiFi device and the specified terminal transmitting the first number of data frames in the first listening period before the first WiFi device transmits the data frame through the SR function, and the subsequent steps, wherein the second listening period is greater than the first listening period.

6. The data transmission method of claim 3, wherein, Before the first WiFi device transmits the data frame through the SR function, the method comprises: Before the first WiFi device transmits the data frame through the SR function, the method comprises: After it is determined that the decrease rate of the rate of the second WiFi device is greater than the preset first rate threshold, the data transmission method further comprises: determining a third listening period, taking the third listening period as a new first listening period, and returning to the step of determining a first packet loss rate of the second WiFi device and the specified terminal transmitting the first number of data frames in the first listening period before the first WiFi device transmits data frames through the SR function, and subsequent steps, wherein the third listening period is greater than the first listening period.

7. The data transmission method of claim 3 or 6, characterized by The step of determining a first packet loss rate of the second WiFi device and the specified terminal transmitting the first number of data frames before the first WiFi device transmits data frames through the SR function includes: determining a first packet loss rate of the second WiFi device and the specified terminal transmitting the first number of data frames in the first listening period before the first WiFi device transmits data frames through the SR function; The data transmission method further includes: In the process of selecting to continue transmitting data frames through the SR function, determining a third packet loss rate of the second WiFi device and the specified terminal transmitting a fifth number of data frames, and determining a third rate of the second WiFi device and the specified terminal transmitting a sixth number of data frames; If it is judged that the increase proportion of the packet loss rate of the second WiFi device is greater than a preset second packet loss rate threshold according to the first packet loss rate and the third packet loss rate, or if it is judged that the decrease proportion of the rate of the second WiFi device is greater than a preset second rate threshold according to the first rate and the third rate, then suspending transmitting data frames through the SR function, resetting the first listening period to a default value, and returning to the step of determining a first packet loss rate of the second WiFi device and the specified terminal transmitting the first number of data frames in the first listening period and subsequent steps.

8. A data transmission apparatus, characterized by comprising: The data transmission device is applied to a first WiFi device, and the first WiFi device supports a spatial reuse (SR) function. A first packet loss rate determination module is configured to determine a first packet loss rate of a second WiFi device and a specified terminal transmitting a first number of data frames before the first WiFi device transmits data frames through the SR function. A second packet loss rate determination module is configured to determine a second packet loss rate of the second WiFi device and the specified terminal transmitting a second number of data frames in the process of the first WiFi device transmitting data frames through the SR function. A packet loss rate increase proportion calculation module is configured to calculate an increase proportion of the packet loss rate of the second WiFi device according to the first packet loss rate and the second packet loss rate. An SR function selection module is configured to select whether to continue transmitting data frames through the SR function according to the increase proportion of the packet loss rate of the second WiFi device.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the method of any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 9. The computer program, which when executed by the processor, implements the method as claimed in any of claims 1 to 7.

Citation Information

Patent Citations

  • Method and apparatus for controlling congestion of data transmission

    CN102204182A

  • Dynamic spatial reuse

    US20210051664A1