CN116600351A - Data transmission method and device and electronic equipment - Google Patents

Data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN116600351A
CN116600351A CN202310458731.XA CN202310458731A CN116600351A CN 116600351 A CN116600351 A CN 116600351A CN 202310458731 A CN202310458731 A CN 202310458731A CN 116600351 A CN116600351 A CN 116600351A
Authority
CN
China
Prior art keywords
packet loss
loss rate
wifi device
rate
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310458731.XA
Other languages
Chinese (zh)
Inventor
谈健冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN202310458731.XA priority Critical patent/CN116600351A/en
Publication of CN116600351A publication Critical patent/CN116600351A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/22Negotiating communication rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application is applicable to the technical field of communication, and provides a data transmission method, a data transmission device and electronic equipment, wherein the method comprises the following steps: before a first WiFi device sends a data frame through an SR function, determining the packet loss rate of the first quantity of data frames transmitted by a second WiFi device and a designated terminal, and obtaining a first packet loss rate; in the process that the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the second WiFi device and the appointed terminal for transmitting the second number of data frames, and obtaining a second packet loss rate; calculating the rising proportion of the packet loss rate of the second WiFi equipment according to the first packet loss rate and the second packet loss rate; and selecting whether to continue sending the data frame through the SR function or not according to the rising proportion of the packet loss rate of the second WiFi device. By the method, the overall network performance of the first WiFi device during SR package can be ensured.

Description

Data transmission method and device and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, a data transmission device, an electronic device, and a computer readable storage medium.
Background
The 802.11 protocol suite has introduced a new version of the 802.11ax wireless protocol, marking the formal entry of wireless local area networks into the sixth generation wireless network technology (IEEE 802.11.Ax, wifi 6) era.
Aiming at the problem of low space utilization rate caused by a strict collision avoidance mechanism of an old-version WiFi protocol, the WiFi6 protocol provides a Spatial Reuse (SR) function, and the SR function allows a Base Service Set (BSS) with a relatively far space to simultaneously send wireless messages by a method of adjusting a clear channel assessment (Clear Channel Assessment, CCA) threshold and transmitting power, so that the overall network capacity can be improved.
To achieve Spatial multiplexing, the Spatial Reuse needs to satisfy the following conditions:
(1) In the same BSS, all WiFi6 devices have the same BSS color, and the BSS colors of different BSSs are different, namely, the BSS color is used as an identifier of a BSS network.
(2) The WiFi6 device declares its BSS Color in the preamble, ensuring that other WiFi6 devices can identify whether the received signal is its BSS (Self BSS) or an overlapping basic service set (Overlapping Basic Service Set, OBSS) signal in the preamble phase.
(3) If the energy of the OBSS signal received by the current WiFi6 equipment is lower than the threshold value customized by the Spatial Reuse (which is expressed by OBSS PD), the current WiFi6 equipment can terminate the demodulation of the OBSS signal and perform packet sending, so that the simultaneous packet sending of the linear part is realized, and the purpose of Spatial multiplexing is further achieved.
In fig. 1, there are two BBSs with far space, namely BBS1 and BBS2, the BSS Color of the preamble of BBS1 is Color 1, the BSS Color of the preamble of BBS2 is Color 2, and the receiver (tablet device in fig. 1) can determine the sender according to the Color information of the preamble of the BBS signal, so that the 2 receivers in fig. 1 can accurately receive the corresponding BBS signal.
However, although Spatial Reuse increases the overall throughput of the network through Spatial multiplexing, there is also a packet loss phenomenon.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a data transmission device and electronic equipment, which can solve the problem of overlarge packet loss rate when using an SR.
In a first aspect, an embodiment of the present application provides a data transmission method, applied to a first WiFi device, where the first WiFi device supports a spatial multiplexing SR function, the data transmission method includes:
before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first quantity of data frames transmitted by the second WiFi device and the appointed terminal, and obtaining a first packet loss rate;
in the process that the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the second WiFi device and the appointed terminal for transmitting the second number of data frames, and obtaining a second packet loss rate;
Calculating the rising proportion of the packet loss rate of the second WiFi equipment according to the first packet loss rate and the second packet loss rate;
and selecting whether to continue sending the data frame through the SR function or not according to the rising proportion of the packet loss rate of the second WiFi device.
In a second aspect, an embodiment of the present application provides a data transmission apparatus applied to a first WiFi device, where the first WiFi device supports a spatial multiplexing SR function, the data transmission apparatus includes:
the first packet loss rate determining module is used for determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal before the first WiFi device transmits the data frames through the SR function, so as to obtain a first packet loss rate;
the second packet loss rate determining module is configured to determine, in a process that the first WiFi device sends a data frame through an SR function, a packet loss rate of the second WiFi device and the designated terminal transmitting a second number of data frames, so as to obtain a second packet loss rate;
the rising proportion calculation module of the packet loss rate is used for calculating the rising proportion of the packet loss rate of the second WiFi equipment according to the first packet loss rate and the second packet loss rate;
and the SR function selection module is used for selecting whether to continue sending the data frame through the SR function according to the rising proportion of the packet loss rate of the second WiFi device.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the method according to the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements a method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product for causing an electronic device to perform the method of the first aspect described above when the computer program product is run on the electronic device.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
in the embodiment of the application, the first packet loss rate is the packet loss rate of the first number of data frames transmitted by the second WiFi device and the designated terminal 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 number of data frames transmitted by the second WiFi device and the designated terminal in the process of the first WiFi device transmitting the data frames through the SR function, so that the rising proportion 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 on the packet loss rate of the second WiFi device when the first WiFi device transmits the data frames through the SR function. In the embodiment of the application, when the first WiFi device uses the SR function to send the packet, the interference degree of the self-sending packet to the communication of the second WiFi device is evaluated, and whether the SR is needed to send the packet is intelligently determined, so that the phenomenon of overlarge packet loss rate of the second WiFi device caused by the fact that the first WiFi device uses the SR function is reduced, and the overall network performance is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a schematic timing diagram of a typical Spatial Reuse provided by the prior art;
FIG. 2 is a schematic diagram illustrating interference in transmitting data frames using SR functions according to an embodiment of the disclosure;
fig. 3 is a flow chart of a data transmission method according to an embodiment of the application;
fig. 4 is a schematic diagram of uplink and downlink rates corresponding to two different BSS networks according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a short frame interval according to another embodiment of the present application;
FIG. 6 is a state transition diagram according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a data transmission device according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise.
Embodiment one:
although Spatial Reuse increases the overall throughput of the network through Spatial multiplexing, it also causes wireless signal interference between devices, and when the interference is relatively large, packet loss occurs in the network, reducing the throughput, and violating the original purpose of WiFi6 protocol design. As shown in fig. 2, when the BSS2 satisfies the SR condition and performs spatial multiplexing, the SR data message of the BSS2 interferes with the normal message of the BSS1, and if the terminal of the BSS1 is far away, the terminal of the BSS1 will fail to receive the data packet after being interfered.
In order to reduce the packet loss phenomenon of a network when an SR function is used, the embodiment of the application provides a data transmission method.
In the data transmission method, before and after a first WiFi device sends a data frame through an SR function, respectively determining Packet Loss Rate (RER) of the data frame transmitted by a second WiFi device and a designated terminal, then calculating the rising proportion of the Packet Loss Rate of the second WiFi device according to the obtained two Packet Loss rates, and finally selecting whether to continue sending the data frame through the SR function according to the rising proportion of the Packet Loss Rate.
The data transmission method provided by the embodiment of the application is described below with reference to the accompanying drawings.
Fig. 3 shows a flowchart of a data transmission method according to an embodiment of the present application, where the method is applied to a first WiFi device, and the first WiFi device supports an SR function. In the embodiment of the present application, the first WiFi device may be a route using a WiFi6 technology, an Access Point (AP), or the like, which is described in detail below:
Step S31, before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal, and obtaining the first packet loss rate.
The designated terminal refers to a terminal in the same BSS network as a second WiFi device, where the second WiFi device is a device corresponding to a first WiFi device that wants to use an SR function, for example, if the first WiFi device wants to send a data frame through the SR function in a process of transmitting the data frame by the WiFi device X, the WiFi device X is the second WiFi device in the embodiment of the present application.
The first number is a preset value, which may be 15 or 20, etc., and is set according to actual requirements, which is not limited herein.
In the embodiment of the application, the packet loss rate of the second WiFi device before the first WiFi device sends the data frame through the SR function is calculated according to the data frame successfully transmitted by the second device and the appointed terminal and the data frame not successfully transmitted.
Step S32, in the process that the first WiFi device sends the data frame through the SR function, determining a packet loss rate of the second WiFi device and the designated terminal transmitting the second number of data frames, to obtain a second packet loss rate.
The second number may be set according to practical situations, for example, the second number may be equal to the first number or may not be equal to the first number, which is not limited herein.
In the embodiment of the present application, in a process of sending a data frame by an SR function (for example, in a process of sending a data frame by the first WiFi device to a terminal in the same BSS network as the first WiFi device by the SR function (for example, sending an X1 (the X1 may be set according to the actual situation) frame data frame), the packet loss rate of the second WiFi device is calculated according to a data frame successfully transmitted by the second device and the designated terminal and a data frame not successfully transmitted by the second device and the designated terminal.
In some embodiments, in the step S32, the data frame sent by the first WiFi device through the SR function may be a data frame that is actually needed to be sent by the first WiFi device and is useful for the receiving terminal, or may be a data frame dedicated for testing. Wherein, each data frame special for test can be generated in advance, and the frame content of each data frame can be the same or different. For example, each time it is required to determine the impact on the packet loss rate of the second WiFi device when the first WiFi device transmits a data frame through the SR function, the first WiFi device may determine the second packet loss rate by transmitting a data frame dedicated to the test. Because the data frame special for the test is generated in advance, the transmission efficiency of the data frame can be improved by transmitting the data frame special for the test, and the determination speed of the second packet loss rate can be further improved.
And step S33, calculating the rising proportion of the packet loss rate of the second WiFi equipment according to the first packet loss rate and the second packet loss rate.
Specifically, the rising proportion of the packet loss rate is calculated according to the following formula: (second packet loss rate-first packet loss rate)/first packet loss rate. The second packet loss rate is a packet loss rate of the second WiFi device when the first WiFi device sends the data frame through the SR function, where the second packet loss rate may be greater than or not greater than the first packet loss rate.
Step S34, according to the rising proportion of the packet loss rate of the second WiFi device, whether to continue sending the data frame through the SR function is selected.
Specifically, since the rising proportion of the packet loss rate of the second WiFi device is a proportion value, a packet loss rate threshold may be set between (0, 1), and the rising proportion of the packet loss rate of the second WiFi device is compared with the packet loss rate threshold, and the first WiFi device selects whether to continue to transmit the data frame through the SR function according to the comparison result.
In the embodiment of the application, the first packet loss rate is the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal 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 number of data frames transmitted by the second WiFi device and the appointed terminal in the process of transmitting the data frames through the SR function, so that the rising proportion 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 on the packet loss rate of the second WiFi device when the first WiFi device transmits the data frames through the SR function. In the embodiment of the application, when the first WiFi device uses the SR function to send the packet, the interference degree of the self-sending packet to the communication of the second WiFi device is evaluated, and whether the SR is needed to send the packet is intelligently determined, so that the phenomenon of overlarge packet loss rate of the second WiFi device caused by the fact that the first WiFi device uses the SR function is reduced, and the overall network performance is ensured.
In some embodiments, the step S34 includes, if it is determined that the rising proportion of the packet loss rate of the second WiFi device is greater than the preset first packet loss rate threshold, selecting not to continue sending the data frame through the SR function. Because when the rising proportion 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 may cause the packet loss rate of the second WiFi device to increase when sending the data frame through the SR function, in order to reduce the influence on the packet loss rate of the second WiFi device, the first WiFi device pauses to continue sending the data frame through the SR function. In some embodiments, in order to be able to send the data frame through the SR function in time, when the first WiFi device pauses to continue sending the data frame through the SR function, the above step S31 and the subsequent steps will be returned, so that the data frame is sent through the SR function in time when the SR function is able to be used.
In some embodiments, considering that when the first WiFi device sends the data frame through the SR function, not only the packet loss rate of the second WiFi device may be affected, but also the average rate when the second WiFi device transmits the data frame may be affected, therefore, the data transmission method provided by the embodiment of the present application further includes:
A1, before the first WiFi device sends the data frames through the SR function, determining the average rate of the second WiFi device and the appointed terminal for transmitting the third number of data frames, and obtaining a first rate.
Wherein the third number may be set according to the actual situation. Preferably, the third number is set to be larger than the first number and larger than the second number in consideration of the fact that the rate is more accurate when the rate is detected with a larger number than the packet loss rate.
Specifically, the average rate at which the second WiFi device transmits the third number of data frames with the designated terminal refers to the average value of the rates at which the respective data frames are transmitted. The rate of each data frame transmitted by the second WiFi device and the designated terminal may be determined by the first WiFi device collecting rate information corresponding to the data frame transmitted by the second WiFi device. Specifically, for each collected data frame, cyclic prefix length (Guard Interval, GI), modulation coding scheme order (Modulation and Coding Scheme, MCS), number of spatial streams (Number of Spatial Stream, NSS) and Bandwidth (BW) constant-speed rate information are collected from a preamble field of the data frame, and then a rate corresponding to the collected rate information is searched according to a preset rate table. Ext> inext> theext> 802.11ext> axext> protocolext>,ext> aext> preambleext> HEext> -ext> SIGext> -ext> Aext> fieldext> recordsext> BSSext> colorext> andext> uplinkext> andext> downlinkext> informationext> ofext> aext> dataext> frameext>,ext> andext> includesext> GIext>,ext> MCSext>,ext> NSSext>,ext> BWext> constantext> speedext> rateext> informationext>.ext> Wherein, the rate table records the rates corresponding to the plurality of rate information. For example, when NSS is equal to 2 and BW is equal to 80, the rate tables are shown in Table 1.
Table 1:
in table 1, modulation indicates Modulation schemes including binary phase shift keying (Binary Phase Shift Keying, BPSK), quadrature phase shift keying (Quadrature Phase Shift Keying, QPSK), 16-quadrature amplitude Modulation (Quadrature Amplitude Modulation, QAM), 64-QAM, 256-QAM, 1024-QAM. The dual carrier modulation (Dual Carrier Modulation) is a special modulation method, in which the DCM copies the symbol corresponding to the modulation mode to the other half of the frequency domain subcarriers, and half of the rate is reduced to improve the transmission reliability, and the DCM in the table column is 0 for not adopting dual carrier modulation and 1 for adopting dual carrier modulation. R represents code rate, N SD Indicating the number of data sub-carriers, N BPSCS Each representation isNumber of coded bits, N, per single carrier in each spatial stream CBPS Representing the number of coded bits, N, in each orthogonal frequency division multiplexing (Orthogonal Frequency Division Multiplexing, OFDM) symbol DBPS Representing the number of coded Data bits in each OFDM symbol, the Data rate representing the Data rate.
As can be seen in Table 1, when GI is 3.6 μs, MCS is 0, NSS is 2, BW is 80, the corresponding rate is 30.6Mb/s.
In some embodiments, collecting rate information corresponding to the second WiFi device transmitting the data frame includes: and respectively collecting the rate information corresponding to the second WiFi device in the sending data frame and the rate information corresponding to the receiving data frame, namely respectively recording the rate information corresponding to the second WiFi device in the downlink and the rate information corresponding to the second WiFi device in the uplink. Since the rate information corresponding to the uplink and the rate information corresponding to the downlink are collected separately, the accuracy of the rate determined subsequently according to the rate information of the different links can be ensured. As shown in fig. 4, the first WiFi device may obtain rate information corresponding to the second WiFi device in transmitting the data frame by maintaining the information list shown in table 2, that is, the first WiFi device updates the rate of the link in the corresponding direction in table 2 every time it monitors a data frame transmitted by the second WiFi device.
Table 2:
in table 2, "UL" indicates an uplink direction, and "DL" indicates a downlink direction.
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, determining the average rate of the fourth number of data frames transmitted by the second WiFi device and the appointed terminal in the process that the first WiFi device transmits the data frames through the SR function, and obtaining a second rate.
The fourth number may be set according to the actual requirement, and may be equal to the third number or may not be equal to the third number, which is not limited herein. In some embodiments, considering that the packet loss rate is a short detection and the rate detection is a long detection, it is necessary to have a long enough time to observe whether there is a drop in the rate, the fourth number may be set to be greater than the first number described above and greater than the second number described above to improve the accuracy of the resulting second rate.
The data frame sent by the first WiFi device through the SR function may be a data frame actually required to be sent by the first WiFi device, or may be a data frame special for testing. The number of data frames sent by the first WiFi device through the SR function may be set according to the actual situation.
In the embodiment of the application, the rising proportion of the packet loss rate of the second WiFi device is compared with the preset first packet loss rate threshold, if the rising proportion of the packet loss rate of the second WiFi device is not larger than the preset first packet loss rate threshold, the first WiFi device is indicated to have little influence on the packet loss rate of the second WiFi device when sending the data frame through the SR function, at the moment, the data frame is continuously sent through the SR function, and the second speed is determined.
A3, calculating the rate reduction ratio of the second WiFi device according to the first rate and the second rate.
Specifically, the rate of decrease of the second WiFi device may be calculated according to the following equation: (first rate-second rate)/first rate.
Correspondingly, the step S34 includes:
b1, 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 the falling proportion of the rate of the second WiFi device is not greater than the preset first rate threshold, selecting to continue to send the data frame through the SR function.
Specifically, when it is determined that the rising proportion of the packet loss rate of the second WiFi device is not greater than a 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, it is indicated that the effect of the first WiFi device on the packet loss rate and the rate of the second WiFi device caused by the data frame sent by the SR function is not great, and at this time, the network capacity can be effectively improved by continuing to send the data frame by the SR function.
In the embodiment of the present application, the data frame that the first WiFi device continues to send through the SR function is the data frame that the first WiFi device actually wants to send, that is, is not the data frame dedicated to the test. Of course, if the data frame transmitted by the first WiFi device in step S32 is also a data frame actually required to be transmitted, the data frame transmitted by the first WiFi device through the SR function at this time is a data frame subsequent to the data frame (assuming that the data frame transmitted to the nth data frame in step S32 is a data frame subsequent to the nth data frame at this time through the SR function). 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 step S32 are continuous, so as to ensure the continuity of the content received by the receiving terminal.
And 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, and if the falling proportion of the rate of the second WiFi device is judged to be greater than the preset first rate threshold, the data frame transmission through the SR function is suspended, and the step and the subsequent steps of determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal before the data frame transmission through the SR function are returned.
In the embodiment of the application, 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 the falling proportion of the rate of the second WiFi device is greater than the preset first rate threshold, the first WiFi device is indicated to have little influence on the packet loss rate of the second WiFi device by sending the data frame through the SR function, but have great influence on the average rate of transmitting the data frame by the second WiFi device, so that in order to reduce the influence on the average rate of transmitting the data frame by the second WiFi device, the first WiFi device pauses to send the data frame through the SR function, and returns to step S31 and subsequent steps (e.g. step A1, step A2, step A3, step S32, step S33, step S34, etc.), so that the subsequent time when the first WiFi device can use the SR function can be timely determined, and the data frame can be timely sent through the SR function. In addition, since the packet loss rate detection can detect serious interference, and the rate detection is used for detecting slight interference, after confirming that there is no serious interference, determining whether the rate has larger deterioration, that is, performing rate detection after the packet loss rate meets the requirement, and finally sending the data frame through the SR function after both the packet loss rate meets the requirement, so that the serious interference can be avoided with smaller cost.
In some embodiments, considering that both sides need to transmit signals, such as OBSS for one transmission, a is a sender, B is a receiver, a first WiFi device (assumed to be an AP) is a listener, a transmits data, for the first WiFi device AP, data frames transmitted by a and B are OBSS data frames, the first WiFi device AP receives the signals, and it can be known that the data frame is not addressed to itself by analyzing the preamble of the wireless data frame. If B receives a data frame of a, it responds to an Acknowledgement (ACK) frame to a, informing a that this data frame was successfully transmitted, and the ACK frame is immediately after the OBSS data frame, and other wireless devices must back off, and do not allow packet transmission during this period. If the first WiFi device AP monitors that the power rises after the OBSS data frame, the B response ACK frame can be determined, and further the OBSS data frame is judged to be successfully transmitted. In combination with the above scenario, in the embodiment of the present application, the target packet loss rate is determined by the following manner, where the target packet loss rate is the first packet loss rate or the second packet loss rate described above:
and C1, monitoring a first power and a second power, wherein the first power is the power in a short frame interval time (Short interframe space, SIFS) after the second WiFi device and the appointed terminal end a data frame, and the second power is the power in a preset ACK frame duration after the second WiFi device and the appointed terminal end a data frame.
Wherein the preset ACK frame duration is empirically set.
And C2, judging that the power of the second WiFi device rises according to the first power and the second power, if so, judging that the second WiFi device successfully transmits the data frame, otherwise, judging that the second WiFi device does not successfully transmit the data frame.
After the first WiFi device monitors that the OBSS data frame is received, monitor the power in the SIFS after the second WiFi device and the designated terminal end to transmit a data frame, i.e. the power in the time corresponding to "SIFS" in fig. 5 to be monitored is regarded as the first power. If the OBSS data frame is successfully transmitted, the sender will receive an ACK frame within a predetermined ACK frame duration (i.e., the time corresponding to the "ACK" position in fig. 5) after the SIFS, and at this time, the power monitored during the time corresponding to the ACK (i.e., the second power) will be greater than the power monitored during the time corresponding to the SIFS (i.e., the first power), i.e., the power of the second WiFi device is rising. Of course, if the OBSS data frame is not successfully transmitted, the power of the second WiFi device does not rise. Since whether the power of the second WiFi device rises 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 rises.
And C3, counting 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, and determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the designated terminal according to the number of data frames successfully transmitted and the number of data frames unsuccessfully transmitted by the second WiFi device, so as 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.
Specifically, the number of successfully transmitted data frames monitored (assumed to be M1) and the number of unsuccessfully transmitted data frames unable to be transmitted (assumed to be M2) are counted, and the first packet loss rate PER is:
PER=M2/(M1+M2)。
in some embodiments, the first packet loss rate determined by the first WiFi device is a packet loss rate in the first listening period, where step S31 includes:
before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in a first monitoring period, and obtaining a first packet loss rate.
After the step of determining that the rising proportion 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 includes:
determining a second monitoring period, taking the second monitoring period as a new first monitoring period, and returning to the step of determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the designated terminal in the first monitoring period before the first WiFi device sends the data frames through an SR function, so as to obtain a first packet loss rate, wherein the second monitoring period is larger than the first monitoring period.
In the embodiment of the application, if the rising proportion of the packet loss rate of the second WiFi device is judged to be larger than the preset first packet loss rate threshold value, the first WiFi device is shown to seriously interfere with other devices (such as the second WiFi device) when the data frame is sent through the SR function, at the moment, the monitoring period for determining the first packet loss rate is enlarged, and the time for obtaining the first packet loss rate obtained when the first WiFi device transmits the data frame through the SR function can be delayed, namely, the condition that the data frame is interfered with other devices when the data frame is transmitted through the SR function is better avoided by avoiding the period of the current serious interference to the other devices.
In some embodiments, the step S31 includes:
before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in a first monitoring period, and obtaining a first packet loss rate.
Correspondingly, after the step B2, the data transmission method further includes:
determining a third monitoring period, taking the third monitoring period as the new first monitoring period, and returning to the step of determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the designated terminal in the first monitoring period before the first WiFi device sends the data frames through the SR function, so as to obtain a first packet loss rate, wherein the third monitoring period is larger than the first monitoring period.
In the embodiment of the application, when 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 the falling proportion of the rate of the second WiFi device is determined to be greater than the preset first rate threshold, which 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 causes a larger falling phenomenon of the average rate of the other devices when transmitting the data frame, at this time, the listening period for determining the first packet loss rate is enlarged, so that the period that affects the average rate of the other devices at present, that is, the period that affects the average rate of the other devices is avoided, thereby better avoiding the situation that the data frame is interfered with the other devices when transmitting the data frame through the SR function.
In some embodiments, the step S31 includes:
before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in a first monitoring period, and obtaining a first packet loss rate.
Correspondingly, the data transmission method further comprises the following steps:
and in the process of continuously transmitting the data frames through the SR function, determining the packet loss rate of the second WiFi device and the appointed terminal for transmitting the fifth number of data frames to obtain a third packet loss rate, and determining the average rate of the second WiFi device and the appointed terminal for transmitting the sixth number of data frames to obtain the third rate.
And if the rising proportion of the packet loss rate of the second WiFi device is judged to be larger than a preset second packet loss rate threshold value according to the first packet loss rate and the third packet loss rate, or if the falling proportion of the rate of the second WiFi device is judged to be larger than a preset second rate threshold value according to the first rate and the third rate, the data frame sending through an SR function is suspended, after the first monitoring period is reset to a default value, the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in the first monitoring period is returned to obtain a first packet loss rate and subsequent steps.
The fifth number and the sixth number may be set according to practical situations, for example, the fifth number is set to a value equal to the first number or the second number, the sixth set-up is set to a value equal to the third number or the fourth number, and the like, which are not limited herein. In some embodiments, the sixth number may be set to be greater than the fifth number described above, considering that the packet loss rate is short-time detection and the rate detection is long-time detection, it is necessary to take a long enough time to observe whether there is a drop in the rate.
In the embodiment of the application, in the process of sending the data frame by the first WiFi device through the SR function, the packet loss rate and the average rate of the second WiFi device are continuously updated so as to conveniently and timely judge whether the first WiFi device generates larger interference to the second WiFi device in the process of sending the data frame by the SR function. Because the burst interference of the environmental noise and the interference of the first WiFi device transmitting the data frame through the SR function can deteriorate the packet loss rate and the average rate of the second WiFi device, and it is difficult for the user to distinguish which interference at present worsens the packet loss rate and the average rate of the second WiFi device, when 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 when 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 paused, and then the other WiFi devices are monitored for a period of time, and then quick detection is performed to determine whether the noise interference is the interference of the first WiFi device transmitting the data frame through the SR function. In the embodiment of the application, the first monitoring period is reset to the default value, so that the duration of the first monitoring period can be ensured not to be too long (for example, if the first monitoring period is expanded, the original duration of the first monitoring period can be recovered after the first monitoring period is reset), and therefore, after judging that the packet loss rate and the average rate of the second WiFi device are not deteriorated due to the interference of the first WiFi device transmitting the data frame through the SR function, the first WiFi device can be enabled to resume the SR function as soon as possible.
In some embodiments, in the process of selecting to continue sending the data frame through the SR function, if only the packet loss rate and the average rate of the second WiFi device are determined to be deteriorated, the first listening period is enlarged, that is:
and if the rising proportion of the packet loss rate of the second WiFi device is judged to be larger than the preset second packet loss rate threshold value according to the first packet loss rate and the third packet loss rate, and if the falling proportion of the rate of the second WiFi device is judged to be larger than the preset second rate threshold value according to the first rate and the third rate, the data frame transmission through an SR function is paused, a fourth monitoring period is determined, the fourth monitoring period is taken as the new first monitoring period, the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in the first monitoring period is determined before the data frame transmission through the SR function is returned, and the first packet loss rate is obtained, wherein the fourth monitoring period is larger than the first monitoring period.
The second packet loss rate threshold may be equal to or different from the first packet loss rate threshold, and is specifically set according to the actual situation, which is not limited herein. Similarly, the second rate threshold may be equal to or different from the first rate threshold, and is not limited in this regard, and may be set according to actual conditions.
In the embodiment of the application, the monitoring period for determining the first packet loss rate is enlarged, so that the period which can influence the average rate of other devices at present can be avoided, namely the condition of interference to other devices when the data frame is transmitted through the SR function is better avoided by avoiding the period which can influence the average rate of other devices.
In order to more clearly describe the data transmission method provided in the embodiment of the present application, the following description is made with reference to fig. 6.
When the first WiFi device is transmitting a data frame through the SR, it includes 4 states as shown in fig. 6: SR listening, PER detection, rate detection and SR running.
SR monitoring: the first WiFi device does not send a data frame through the SR function in this state. For listening to the average rate and PER of data frames sent by other devices, such as the second WiFi device. After the end of the waiting period, the PER detection state is entered again.
PER detection: in the state, a first WiFi device sends a plurality of (such as X1) SR data frames (the SR data frames are data frames sent through an SR function), in the process, the PER of a second WiFi device is counted, if the PER is increased by a plurality of proportion percentages compared with the PER of an SR monitoring period, detection failure is determined, the SR monitoring is returned, and meanwhile, the monitoring period time is prolonged. If the detection is determined to be successful, a rate detection state is entered.
Rate detection: the state sends SR data frames for a period of time, such as sending X2 (X2 may or may not be equal to X1) data frames, in this process, determining the average rate of the second WiFi device, if the average rate of the listening period is reduced by a number of proportions, determining that the detection fails, returning to SR listening, and expanding the listening period time. If the detection is determined to be successful, the SR operation state is entered.
SR operation: the present state is always effective for SR, i.e. the first WiFi device continues to send data frames through the SR function in the present state, updates the average rate and PER at the same time, returns to SR monitoring if the average rate or PER suddenly drops by a number of proportions relative to the monitoring period, and resets the monitoring period to a default value, which is a number of seconds.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Embodiment two:
fig. 7 shows a block diagram of a data transmission apparatus according to an embodiment of the present application, corresponding to the data transmission method of the above embodiment, and only the portions related to the embodiment of the present application are shown for convenience of explanation.
Referring to fig. 7, the data transmission apparatus 7 is applied to a first WiFi device supporting a spatial multiplexing SR function, and the data transmission apparatus 7 includes: a first packet loss rate determining module 71, a second packet loss rate determining module 72, a rising proportion calculating module 73 of the packet loss rate, and an SR function selecting module 74. Wherein:
the first packet loss rate determining module 71 is configured to determine a packet loss rate of the first number of data frames transmitted by the second WiFi device and the designated terminal before the first WiFi device sends the data frames through the SR function, so as to obtain a first packet loss rate.
And a second packet loss rate determining module 72, configured to determine a packet loss rate of the second WiFi device and the designated terminal transmitting a second number of data frames during the process of transmitting the data frames by the first WiFi device through the SR function, so as to obtain a second packet loss rate.
And a packet loss rate rising proportion calculating module 73, configured to calculate 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.
The SR function selecting module 74 is configured to select 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.
In the embodiment of the application, the first packet loss rate is the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal 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 number of data frames transmitted by the second WiFi device and the appointed terminal in the process of transmitting the data frames through the SR function, so that the rising proportion 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 on the packet loss rate of the second WiFi device when the first WiFi device transmits the data frames through the SR function. In the embodiment of the application, when the first WiFi device uses the SR function to send the packet, the interference degree of the self-sending packet to the communication of the second WiFi device is evaluated, and whether the SR is needed to send the packet is intelligently determined, so that the phenomenon of overlarge packet loss rate of the second WiFi device caused by the fact that the first WiFi device uses the SR function is reduced, and the overall network performance is ensured.
In some embodiments, the SR function selection module 74 comprises:
and if the rising proportion of the packet loss rate of the second WiFi device is larger than the preset first packet loss rate threshold value, selecting not to continue to send the data frame through the SR function.
In some embodiments, the data transmission device 7 provided in the embodiments of the present application further includes:
and the first rate determining module is used for determining the average rate of the second WiFi device and the appointed terminal for transmitting the third number of data frames before the first WiFi device transmits the data frames through the SR function, so as to obtain the first rate.
And the second rate determining module is configured to determine an average rate of transmitting a fourth number of data frames between the second WiFi device and the designated terminal in a process of transmitting the data frames by the first WiFi device through the SR function if the rising rate of the packet loss rate of the second WiFi device is not greater than a preset first packet loss rate threshold, so as to obtain a second rate.
And the rate reduction ratio calculation module is used for calculating the rate reduction ratio of the second WiFi equipment according to the first rate and the second rate.
Correspondingly, the SR function selection module 74 includes:
And the SR data frame sending unit is used for selecting to continue sending the data frame 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 value and the falling proportion of the rate of the second WiFi device is not greater than the preset first rate threshold value.
And the SR data frame pause sending unit is used for pausing sending the data frame through the SR function and returning to the step and the subsequent step of determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal before the first WiFi device sends the data frame through the SR function if the rising proportion of the packet loss rate of the second WiFi device is not larger than the preset first packet loss rate threshold value but the falling proportion of the rate of the second WiFi device is judged to be larger than the preset first rate threshold value.
In some embodiments, the target packet loss rate is determined by the following manner, where the first packet loss rate determining module 71 or the second packet loss rate determining module 72 includes:
and the power monitoring unit is used for monitoring first power and second power, wherein the first power is power in a short frame interval time after the second WiFi device and the appointed terminal end a data frame, and the second power is power in a preset ACK frame duration time after the second WiFi device and the appointed terminal end a data frame.
And the judging unit is used for judging whether the data frame is successfully transmitted by the second WiFi equipment or not if the power of the second WiFi equipment is judged to be rising according to the first power and the second power, and judging that the data frame is not successfully transmitted by the second WiFi equipment if the power of the second WiFi equipment is judged to be rising.
And the packet loss rate calculation unit is used for counting 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, determining the packet loss rate of the data frames of the target number transmitted by the second WiFi device and the designated terminal according to the number of the data frames successfully transmitted and the number of the data frames unsuccessfully transmitted by the second WiFi device, and obtaining 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.
In some embodiments, the first packet loss rate determining module 71 is specifically configured to:
before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in a first monitoring period, and obtaining a first packet loss rate.
After determining that the rising proportion of the packet loss rate of the second WiFi device is greater than the preset first packet loss rate threshold, the data transmission apparatus 7 further includes:
and a second monitoring period determining module, configured to determine a second monitoring period, and use the second monitoring period as the new first monitoring period, and return to the step of determining a packet loss rate of the first number of data frames transmitted by the second WiFi device and the designated terminal in the first monitoring period before the first WiFi device sends the data frames through the SR function, so as to obtain a first packet loss rate, and a subsequent step, where the second monitoring period is greater than the first monitoring period.
In some embodiments, the first packet loss rate determining module 71 is specifically configured to:
before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in a first monitoring period, and obtaining a first packet loss rate.
After the determining that the rate of decrease of the second WiFi device is greater than the preset first rate threshold, the data transmission device 7 further includes:
And a third monitoring period determining module, configured to determine a third monitoring period, and use the third monitoring period as the new first monitoring period, and return to the step of determining a packet loss rate of the second WiFi device and the designated terminal transmitting the first number of data frames in the first monitoring period before the first WiFi device sends the data frames through the SR function, so as to obtain a first packet loss rate, and a subsequent step, where the third monitoring period is greater than the first monitoring period.
In some embodiments, the first packet loss rate determining module 71 is specifically configured to:
before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in a first monitoring period, and obtaining a first packet loss rate.
Correspondingly, the data transmission device 7 further includes:
and the packet loss rate and rate continuous monitoring module is used for determining the packet loss rate of the second WiFi device and the appointed terminal for transmitting the fifth number of data frames in the process of selecting to continuously transmit the data frames through the SR function, obtaining a third packet loss rate, and determining the average rate of the second WiFi device and the appointed terminal for transmitting the sixth number of data frames, and obtaining the third rate.
And the monitoring period resetting module is used for suspending sending of data frames through an SR function if the rising proportion of the packet loss rate of the second WiFi device is judged to be larger than a preset second packet loss rate threshold value according to the first packet loss rate and the third packet loss rate, and if the falling proportion of the rate of the second WiFi device is judged to be larger than the preset second rate threshold value according to the first rate and the third rate, returning the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in the first monitoring period after resetting the first monitoring period to a default value, and obtaining the first packet loss rate and the subsequent steps.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
Embodiment III:
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 8, the electronic device 8 of this embodiment includes: at least one processor 80 (only one processor is shown in fig. 8), a memory 81 and a computer program 82 stored in the memory 81 and executable on the at least one processor 80, the processor 80 implementing the steps in any of the various method embodiments described above when executing the computer program 82.
The electronic device 8 may be a computing device such as a router, a mobile phone, a desktop computer, a notebook, a palm computer, and a cloud server. The electronic device may include, but is not limited to, a processor 80, a memory 81. It will be appreciated by those skilled in the art that fig. 8 is merely an example of the electronic device 8 and is not meant to be limiting as the electronic device 8, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 80 may be a central processing unit (Central Processing Unit, CPU), the processor 80 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 81 may in some embodiments be an internal storage unit of the electronic device 8, such as a hard disk or a memory of the electronic device 8. The memory 81 may in other embodiments also be an external storage device of the electronic device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the electronic device 8. The memory 81 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs etc., such as program codes of the computer program etc. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a network device, which comprises: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on an electronic device, causes the electronic device to perform steps that may be carried out in the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a camera device/electronic apparatus, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A data transmission method, applied to a first WiFi device, where the first WiFi device supports a spatial multiplexing SR function, the data transmission method comprising:
before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first quantity of data frames transmitted by the second WiFi device and the appointed terminal, and obtaining a first packet loss rate;
In the process that the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the second WiFi device and the appointed terminal for transmitting the second number of data frames, and obtaining a second packet loss rate;
calculating the rising proportion of the packet loss rate of the second WiFi equipment according to the first packet loss rate and the second packet loss rate;
and selecting whether to continue sending the data frame through the SR function or not according to the rising proportion of the packet loss rate of the second WiFi device.
2. The data transmission method as claimed in claim 1, wherein the 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 comprises:
and if the rising proportion of the packet loss rate of the second WiFi device is larger than the preset first packet loss rate threshold value, selecting not to continue to send the data frame through the SR function.
3. The data transmission method of claim 1, further comprising:
before the first WiFi device sends data frames through an SR function, determining the average rate of the second WiFi device and the appointed terminal for transmitting a third number of data frames, and obtaining a first rate;
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 value, determining the average rate of the fourth number of data frames transmitted by the second WiFi device and the appointed terminal in the process of transmitting the data frames by the first WiFi device through an SR function, and obtaining a second rate;
Calculating the rate reduction ratio of the second WiFi device according to the first rate and the second rate;
the selecting whether to continue sending the data frame through the SR function according to the rising proportion of the packet loss rate of the second WiFi device includes:
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 value, and the falling proportion of the rate of the second WiFi device is not greater than the preset first rate threshold value, selecting to continue sending the data frame 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 the falling proportion of the rate of the second WiFi device is judged to be greater than the preset first rate threshold, the data frame sending through the SR function is suspended, and the step and the subsequent steps of determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal before the data frame is sent by the first WiFi device through the SR function are returned.
4. The data transmission method of claim 1, wherein a target packet loss rate is determined by the following manner, the target packet loss rate being the first packet loss rate or the second packet loss rate:
Monitoring a first power and a second power, wherein the first power is the power in a short frame interval time after the second WiFi device and the appointed terminal end a data frame, and the second power is the power in a preset ACK frame duration time after the second WiFi device and the appointed terminal end a data frame;
if the power of the second WiFi device is judged to have the rising phenomenon according to the first power and the second power, the second WiFi device is judged to successfully transmit the data frame, otherwise, the second WiFi device is judged to not successfully transmit the data frame;
and counting 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, and determining the packet loss rate of the data frames of the target number transmitted by the second WiFi device and the designated terminal according to the number of the data frames successfully transmitted and the number of the data frames unsuccessfully transmitted to obtain the target packet loss rate, wherein the target number is the first number when the target packet loss rate is the first packet loss rate, and the target number is the second number when the target packet loss rate is the second packet loss rate.
5. The method for transmitting data according to claim 2, wherein determining a packet loss rate of the second WiFi device transmitting the first number of data frames with the designated terminal before the first WiFi device transmits the data frames through the SR function, to obtain the first packet loss rate, includes:
before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in a first monitoring period, and obtaining a first packet loss rate;
after the step of judging that the rising proportion of the packet loss rate of the second WiFi device is larger than the preset first packet loss rate threshold, the data transmission method further comprises the following steps:
determining a second monitoring period, taking the second monitoring period as a new first monitoring period, and returning to the step of determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the designated terminal in the first monitoring period before the first WiFi device sends the data frames through an SR function, so as to obtain a first packet loss rate and subsequent steps, wherein the second monitoring period is larger than the first monitoring period.
6. The method for transmitting data according to claim 3, wherein determining a packet loss rate of the second WiFi device transmitting the first number of data frames with the designated terminal before the first WiFi device transmits the data frames through the SR function, to obtain the first packet loss rate, includes:
Before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in a first monitoring period, and obtaining a first packet loss rate;
after the rate of decrease of the second WiFi device is determined to be greater than the preset first rate threshold, the data transmission method further includes:
determining a third monitoring period, taking the third monitoring period as a new first monitoring period, returning to the step of determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in the first monitoring period before the first WiFi device transmits the data frames through an SR function, and obtaining a first packet loss rate and subsequent steps, wherein the third monitoring period is larger than the first monitoring period.
7. The method for transmitting data according to claim 3 or 6, wherein determining a packet loss rate of the first number of data frames transmitted by the second WiFi device and the designated terminal before the first WiFi device transmits the data frames through the SR function, to obtain the first packet loss rate, includes:
before the first WiFi device sends the data frames through the SR function, determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in a first monitoring period, and obtaining a first packet loss rate;
The data transmission method further comprises the following steps:
in the process of continuously sending the data frames through the SR function, determining the packet loss rate of the second WiFi device and the appointed terminal for transmitting the fifth number of data frames to obtain a third packet loss rate, and determining the average rate of the second WiFi device and the appointed terminal for transmitting the sixth number of data frames to obtain the third rate;
and if the rising proportion of the packet loss rate of the second WiFi device is judged to be larger than a preset second packet loss rate threshold value according to the first packet loss rate and the third packet loss rate, or if the falling proportion of the rate of the second WiFi device is judged to be larger than a preset second rate threshold value according to the first rate and the third rate, the data frame sending through an SR function is suspended, after the first monitoring period is reset to a default value, the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal in the first monitoring period is returned to obtain a first packet loss rate and subsequent steps.
8. A data transmission apparatus applied to a first WiFi device that supports a spatial multiplexing SR function, the data transmission apparatus comprising:
The first packet loss rate determining module is used for determining the packet loss rate of the first number of data frames transmitted by the second WiFi device and the appointed terminal before the first WiFi device transmits the data frames through the SR function, so as to obtain a first packet loss rate;
the second packet loss rate determining module is configured to determine, in a process that the first WiFi device sends a data frame through an SR function, a packet loss rate of the second WiFi device and the designated terminal transmitting a second number of data frames, so as to obtain a second packet loss rate;
the rising proportion calculation module of the packet loss rate is used for calculating the rising proportion of the packet loss rate of the second WiFi equipment according to the first packet loss rate and the second packet loss rate;
and the SR function selection module is used for selecting whether to continue sending the data frame through the SR function according to the rising 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, wherein the processor implements the method of any one of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 7.
CN202310458731.XA 2023-04-24 2023-04-24 Data transmission method and device and electronic equipment Pending CN116600351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310458731.XA CN116600351A (en) 2023-04-24 2023-04-24 Data transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310458731.XA CN116600351A (en) 2023-04-24 2023-04-24 Data transmission method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116600351A true CN116600351A (en) 2023-08-15

Family

ID=87607090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310458731.XA Pending CN116600351A (en) 2023-04-24 2023-04-24 Data transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116600351A (en)

Similar Documents

Publication Publication Date Title
US10735998B2 (en) Method for sending channel reservation signal and base station
US8565350B2 (en) Methods for detection of failure and recovery in a radio link
US8843079B2 (en) Communication apparatus and program for identifying faults and computer program storage medium
US8059605B2 (en) Apparatus and method for estimating cell load in wireless communication system
US7894366B2 (en) Wireless communication using communication rate based on radio signal propagation condition
US20090262688A1 (en) Rate adaptation methods for wireless communication apparatus, and wireless communication apparatus for performing wireless communication with rate adaptation
CN1750414A (en) Wireless Telecom Equipment and radar detecting method thereof
US10594525B2 (en) Dual-use of doppler mode indication in high efficiency wireless LAN
JPWO2009110551A1 (en) Wireless communication system, communication apparatus, wireless communication network system and method thereof
EP4274144A1 (en) Data transmission method and device, and storage medium
US9722826B2 (en) Enhancing modulation and coding scheme selection and medium access control (MAC) protocol data unit aggregation using MAC efficiency information
WO2016077609A1 (en) Enhancing modulation and coding scheme selection and medium access control protocol data unit aggregation based on under-utilization
CN103095425A (en) Method and device transmitting acknowledgement frame in wireless local area network
US10219177B2 (en) Wireless local area network transmission method and transmission device
EP1903719A1 (en) Communication terminal apparatus and transmitting method
CN116600351A (en) Data transmission method and device and electronic equipment
JP4974366B2 (en) Wireless environment monitoring apparatus and program for monitoring time occupation ratio of wireless environment
Günther et al. Analysis of injection capabilities and media access of IEEE 802.11 hardware in monitor mode
CN112188550B (en) Data transmission method, wireless access point and computer readable storage medium
JP2008245300A (en) Wireless device
GB2538946B (en) Feedback on reception quality over secondary sub-channels of a composite channel in 802.11 networks
JP2020520586A (en) Data transmission method and device
US20240313872A1 (en) Wireless communication device and associated interference detection method
CN108811113B (en) Method for receiving downlink control channel and user equipment
CN116260537A (en) Data message sending method and device and communication equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination