CN108882310B - Method, device and medium for determining operation state of RTS/CTS mechanism - Google Patents

Method, device and medium for determining operation state of RTS/CTS mechanism Download PDF

Info

Publication number
CN108882310B
CN108882310B CN201810960644.3A CN201810960644A CN108882310B CN 108882310 B CN108882310 B CN 108882310B CN 201810960644 A CN201810960644 A CN 201810960644A CN 108882310 B CN108882310 B CN 108882310B
Authority
CN
China
Prior art keywords
rts
error rate
packet error
time period
data
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.)
Active
Application number
CN201810960644.3A
Other languages
Chinese (zh)
Other versions
CN108882310A (en
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.)
Shenzhen Quanzhi Online Co ltd
Original Assignee
Shenzhen Quanzhi Online 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 Shenzhen Quanzhi Online Co ltd filed Critical Shenzhen Quanzhi Online Co ltd
Priority to CN201810960644.3A priority Critical patent/CN108882310B/en
Publication of CN108882310A publication Critical patent/CN108882310A/en
Application granted granted Critical
Publication of CN108882310B publication Critical patent/CN108882310B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/04Error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a method, equipment and medium for determining the running state of an RTS/CTS mechanism. The method comprises the following steps: acquiring the data length of the current data to be sent; if the data length of the data to be transmitted is smaller than the data length threshold, setting the running state of the RTS/CTS mechanism to be stopped; if the data length of the current data to be transmitted is larger than the data length threshold, acquiring an interference environment characterization parameter, wherein the interference environment characterization parameter at least comprises RTS packet error rate and data packet error rate corresponding to the current time period; and determining the operation state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold. The technical scheme of the embodiment of the invention improves the transmission efficiency of the wireless data when the RTS/CTS mechanism is started, and improves the data throughput performance of the wireless data transmission equipment and reduces the data packet error rate of the wireless data transmission equipment in a complex interference environment.

Description

Method, device and medium for determining operation state of RTS/CTS mechanism
Technical Field
The embodiment of the invention relates to the technical field of wireless data transmission, in particular to a method, equipment and medium for determining the running state of an RTS/CTS mechanism.
Background
The RTS/CTS mechanism is widely applied to the field of wireless data transmission and is used for solving the problem of hidden terminals in a wireless network. The use of RTS/CTS mechanisms may enhance wireless data transmission performance in two important ways: first, hidden terminal problems are alleviated because long DATA frames can only be sent after channel reservation; second, because the RTS and CTS frames in the RTS/CTS mechanism are shorter, collisions involving either the RTS or CTS frame will only last for a short RTS or CTS frame duration. Once the RTS and CTS frames are properly transmitted, subsequent DATA and ACK frames should be able to be sent collision-free.
However, in the process of implementing the present invention, the inventors found that the following drawbacks exist in the prior art: the RTS/CTS mechanism may greatly improve wireless data transmission performance when the interference environment is a demodulated signal, but may have an adverse effect on wireless data transmission performance when the interference environment is not demodulated or the transceiver is far away.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method, an apparatus, and a medium for determining an operation state of an RTS/CTS mechanism, so as to optimize a method for using the RTS/CTS mechanism in the prior art, and improve transmission performance of wireless data in a changing interference environment.
In a first aspect, an embodiment of the present invention provides a method for determining an operational status of an RTS/CTS mechanism, including:
acquiring the data length of the current data to be sent;
setting the running state of an RTS/CTS mechanism to be stopped if the data length of the data to be sent is smaller than a data length threshold value, wherein the running state of the RTS/CTS mechanism comprises starting and stopping;
if the data length of the data to be sent currently is larger than a data length threshold, acquiring an interference environment characterization parameter, wherein the interference environment characterization parameter at least comprises RTS packet error rate and data packet error rate respectively corresponding to the current time period;
and determining the running state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold.
In the above method, optionally, the obtaining the interference environment characterization parameter includes:
acquiring the total number of data frames transmitted in the current time period and the number of data frames transmitted in the current time period but not receiving an ACK reply frame;
and dividing the number of the data frames which are transmitted in the current time period but not received with the ACK reply frames by the total number of the data frames transmitted in the current time period to be used as the data packet error rate corresponding to the current time period.
In the above method, optionally, the obtaining the interference environment characterization parameter includes:
judging whether the sending number of RTS frames in the current time period is zero or not;
if the sending number of RTS frames in the current time period is not zero, acquiring an RTS packet error rate corresponding to the current time period, and updating the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period;
if the sending number of RTS frames in the current time period is zero, acquiring an RSSI value;
judging whether the RSSI value is larger than a signal strength threshold value or not;
if the RSSI value is not greater than the signal strength threshold, taking the RTS packet error rate corresponding to the previous time period as the RTS packet error rate corresponding to the current time period;
and if the RSSI value is larger than the signal strength threshold, determining the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the previous time period.
In the above method, optionally, the updating the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period includes:
And dividing the sum of the RTS packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period by a quotient of 2 to obtain the RTS packet error rate corresponding to the current time period.
In the above method, optionally, the determining, according to the RTS packet error rate corresponding to the previous time period, the RTS packet error rate corresponding to the current time period includes:
and dividing the sum of the RTS packet error rate corresponding to the previous time period and the value of 0.5 by a quotient of 2 to obtain the RTS packet error rate corresponding to the current time period.
In the above method, optionally, the determining the operation state of the RTS/CTS mechanism according to the interference environment characterizing parameter and an interference environment characterizing parameter threshold includes:
judging whether the RTS packet error rate corresponding to the current time period is smaller than an RTS packet error rate threshold value or not;
if the RTS packet error rate corresponding to the current time period is not less than the RTS packet error rate threshold, setting the running state of the RTS/CTS mechanism to be stopped;
if the RTS packet error rate corresponding to the current time period is smaller than the RTS packet error rate threshold, continuously judging whether the data packet error rate corresponding to the current time period is larger than the data packet error rate threshold;
If the data packet error rate corresponding to the current time period is not greater than the data packet error rate threshold, setting the running state of the RTS/CTS mechanism to be stopped;
and if the data packet error rate corresponding to the current time period is greater than the data packet error rate threshold, setting the running state of the RTS/CTS mechanism to be started.
In the above method, optionally, before the acquiring the data length of the current data to be sent, the method further includes:
detecting whether a device using the IEEE802.11b standard exists in a current Basic Service Set (BSS) and a surrounding BSS;
setting an operational state of the RTS/CTS mechanism to active if there is a device using the ieee802.11b standard in the current basic service set BSS or the surrounding basic service set BSS;
if there is no device using the IEEE802.11b standard in the current basic service set BSS or the surrounding basic service set BSS, the step of acquiring the data length of the data to be transmitted currently is performed.
In a second aspect, an embodiment of the present invention provides a device for determining an operational status of an RTS/CTS mechanism, including:
the data length acquisition module is used for acquiring the data length of the current data to be transmitted;
A data length comparison module, configured to set an operation state of an RTS/CTS mechanism to a stop if the data length of the data to be sent is less than a data length threshold, where the operation state of the RTS/CTS mechanism includes start and stop;
the parameter acquisition module is used for acquiring an interference environment characterization parameter if the data length of the data to be transmitted is larger than a data length threshold, wherein the interference environment characterization parameter at least comprises RTS packet error rate and data packet error rate respectively corresponding to the current time period;
and the parameter comparison module is used for determining the running state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold.
In a third aspect, an embodiment of the present invention provides a wireless data transmission apparatus, including:
one or more processors;
a storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining the running state of the RTS/CTS mechanism according to the embodiment of the present invention.
In a fourth aspect, embodiments of the present invention provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for determining an operational state of an RTS/CTS mechanism according to embodiments of the present invention.
The embodiment of the invention provides a method, equipment and medium for determining the running state of an RTS/CTS mechanism, which are used for jointly determining the running state of the RTS/CTS mechanism to be started or stopped through the comparison result of the data length of data to be sent currently and a data length threshold value and the obtained interference environment characterization parameter and an interference environment characterization parameter threshold value, wherein the interference environment characterization parameter at least comprises an RTS packet error rate and a data packet error rate corresponding to the current time period, the technical defect that the use condition of the RTS/CTS mechanism cannot be matched with the current interference environment in real time in the prior art is overcome, the transmission efficiency of wireless data when the RTS/CTS mechanism is started is improved, and the data throughput performance of wireless data transmission equipment and the data packet error rate of the wireless data transmission equipment are improved in a complex interference environment.
Drawings
Fig. 1 is a flowchart of a method for determining an operation state of an RTS/CTS mechanism according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for determining an operation state of an RTS/CTS mechanism according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for determining an operational status of an RTS/CTS mechanism according to a third embodiment of the present invention;
Fig. 4 is a flowchart of a method for determining an operational status of an RTS/CTS mechanism according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a method for determining an operational status of an RTS/CTS mechanism according to a fifth embodiment of the present invention;
fig. 6 is a block diagram of a determining device for an RTS/CTS mechanism operation state according to a sixth embodiment of the present invention;
fig. 7 is a block diagram of a wireless data transmission device according to a seventh embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following detailed description of specific embodiments of the present invention is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof.
It should be further noted that, for convenience of description, only some, but not all of the matters related to the present invention are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example 1
Fig. 1 is a flowchart of a method for determining an operation state of an RTS/CTS mechanism according to a first embodiment of the present invention, where the method of this embodiment may be performed by an apparatus for determining an operation state of an RTS/CTS mechanism, and the apparatus may be implemented by hardware and/or software, and may be generally integrated into a wireless data transmission device, for example, a computer, a router, or other devices. The method of the embodiment specifically comprises the following steps:
101. and acquiring the data length of the current data to be transmitted.
As can be appreciated by those skilled in the art, the RTS/CTS mechanism is mainly used to solve the problem of "hidden terminal", when two or more STAs in the wireless local area network send data to the same AP at the same time, a phenomenon of data loss may occur, and the longer the data length sent by the STAs, the greater the possibility of data loss.
Therefore, in this embodiment, the data length of the data to be currently transmitted is used as an important reference index for determining the operation state of the RTS/CTS mechanism. In the method for determining the operation state of the RTS/CTS mechanism formed in steps 101 to 104, the data length of the data to be transmitted is obtained first, and then different operations are performed according to the comparison result of the data length of the data to be transmitted and the data length threshold.
102. If the data length of the data to be transmitted is smaller than the data length threshold, the operation state of the RTS/CTS mechanism is set to be stopped, wherein the operation state of the RTS/CTS mechanism comprises starting and stopping.
In this embodiment, if the data length of the data to be sent is smaller than the data length threshold, the operation state of the RTS/CTS mechanism is set to be stopped, where the data length threshold may be typically 300 bytes.
It can be appreciated that, since the RTS/CTS mechanism is initiated, the transmission of the RTS frame and the reception of the CTS frame add additional data transmission overhead, which reduces the data throughput performance of the wireless device to some extent. Meanwhile, since the problem of "hidden terminal" has less influence on the transmission success rate of shorter data, when the length of data to be transmitted is shorter, the RTS/CTS mechanism is generally not enabled.
Further, the RTS/CTS mechanism may be either in a start state or a stop state before step 101 in this embodiment is performed. When the RTS/CTS mechanism is in the on state before step 101 in this embodiment is performed, then "setting the operation state of the RTS/CTS mechanism to be stopped" means to stop the RTS/CTS mechanism, and "setting the operation state of the RTS/CTS mechanism to be started" means to keep the operation state of the RTS/CTS mechanism unchanged; when the RTS/CTS mechanism is in a stopped state before step 101 in this embodiment is performed, then "setting the operation state of the RTS/CTS mechanism to a stopped state" means that the operation state of the RTS/CTS mechanism is kept unchanged, and "setting the operation state of the RTS/CTS mechanism to a started state" means that the RTS/CTS mechanism is started.
103. And if the data length of the data to be transmitted is larger than the data length threshold, acquiring an interference environment characterization parameter, wherein the interference environment characterization parameter at least comprises RTS packet error rate and data packet error rate corresponding to the current time period.
In this embodiment, if the data length of the data to be transmitted is greater than the data length threshold, the interference environment characterization parameter is continuously acquired, and then the operation state of the RTS/CTS mechanism is further determined according to the acquired interference environment characterization parameter. The interference environment characterization parameter specifically refers to a parameter for representing an interference condition of a data transmission path.
As can be appreciated by those skilled in the art, when the success rate of receiving the corresponding CTS frame is low (i.e., the RTS packet error rate is high) after the RTS frame is sent, for a unidirectional transmission scenario, starting the RTS/CTS mechanism at this time may reduce the data throughput performance of the wireless device, and may increase the packet loss rate of the data to be sent, so in this embodiment, the RTS packet error rate is used as an interference environment characterization parameter to determine the operation state of the RTS/CTS mechanism.
In this embodiment, the interference environment characterization parameter at least includes an RTS packet error rate and a data packet error rate, which respectively correspond to the current time period. Further, the interference environment characterization parameter may further include data such as channel noise level.
104. And determining the operation state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold.
In this embodiment, after the interference environment characterization parameter is obtained, the obtained interference environment characterization parameter is compared with the interference environment characterization parameter threshold value in value, and the operation state of the RTS/CTS mechanism is determined according to the comparison result.
For example, if the RTS packet error rate corresponding to the current time period is less than the RTS packet error rate threshold, and the data packet error rate corresponding to the current time period is greater than the data packet error rate threshold, the operation state of the RTS/CTS mechanism may be set to be started; if the RTS packet error rate corresponding to the current time period is greater than the RTS packet error rate threshold, the running state of the RTS/CTS mechanism can be set to be stopped; if the data packet error rate corresponding to the current time period is smaller than the data packet error rate threshold, the operation state of the RTS/CTS mechanism may be set to stop. The data packet error rate threshold may be typically 10%, and the RTS packet error rate threshold may be typically 60%.
The embodiment of the invention provides a method for determining the running state of an RTS/CTS mechanism, which is characterized in that the running state of the RTS/CTS mechanism is started or stopped by the comparison result of the data length of data to be sent and a data length threshold value and the obtained interference environment characterization parameter and an interference environment characterization parameter threshold value, wherein the interference environment characterization parameter at least comprises RTS packet error rate and data packet error rate which are respectively corresponding to the current time period, the technical defect that the use condition of the RTS/CTS mechanism cannot be matched with the current interference environment in real time in the prior art is overcome, the transmission efficiency of wireless data when the RTS/CTS mechanism is started is improved, and the data throughput performance of wireless data transmission equipment and the data packet error rate of the wireless data transmission equipment are improved in a complex interference environment are realized.
Example two
Fig. 2 is a flowchart of a method for determining an operation state of an RTS/CTS mechanism according to a second embodiment of the present invention. The present embodiment optimizes based on the above embodiment, and in the present embodiment, a method for acquiring a data packet error rate and an RTS packet error rate corresponding to a current time period is provided, a method for acquiring a data packet error rate and an RTS packet error rate corresponding to a current time period according to an interference environment characterization parameter and a corresponding threshold thereof are provided, and a specific implementation manner of a detection process of a device using IEEE 802.11b standard is provided.
Correspondingly, the method of the embodiment specifically comprises the following steps:
201. it is detected whether a device using the IEEE 802.11b standard exists in the current basic service set BSS and the surrounding basic service set BSSs.
It will be appreciated by those skilled in the art that the maximum data transmission rate of a device using the IEEE 802.11b standard is only 11Mbps, and the maximum data transmission rate of a device using the IEEE 802.11g standard may reach 54Mbps, and the maximum data transmission rate of a device using the IEEE 802.11n standard may reach 300Mbps, so that, when a device using the IEEE 802.11b standard exists in the current basic service set BSS and the surrounding basic service set BSS, other devices should reduce the data transmission rate to be compatible with the device in order for the device to perform data transmission normally.
Since the enabling of the RTS/CTS mechanism can enable compatibility of devices using the IEEE 802.11n standard as well as the IEEE 802.11g standard, for devices using the IEEE 802.11b standard. Therefore, in the present embodiment, a detection procedure for a device using the IEEE 802.11b standard is added, and when a device using the IEEE 802.11b standard is detected, the operation state of the RTS/CTS mechanism is set to be activated, so that compatibility with the device using the IEEE 802.11b standard is achieved.
202. If there is a device using the IEEE 802.11b standard in the current basic service set BSS or the surrounding basic service set BSS, the operational status of the RTS/CTS mechanism is set to active.
203. If there is no device using the IEEE 802.11b standard in the current basic service set BSS or the surrounding basic service set BSSs, the data length of the data to be currently transmitted is acquired.
204. Whether the data length of the data to be transmitted is smaller than the data length threshold is judged, if yes, step 205 is executed, and if not, step 206 is executed.
205. The operational state of the RTS/CTS mechanism is set to stop.
206. The total number of data frames transmitted in the current time period and the number of data frames transmitted in the current time period but not receiving the ACK reply frame are obtained.
In this embodiment, the packet error rate of the data corresponding to the current time period is obtained through step 206 and step 207.
In this embodiment, the packet error rate of data corresponding to the current time period is specifically determined by the total number of data frames transmitted in the current time period and the number of data frames transmitted in the current time period but not receiving the ACK reply frame. Wherein the current time period may typically be 500 milliseconds, etc.
Specifically, the determination of the current time period may specifically take the start execution time of the present step as the end time of the current time period, the end time of the step 205 as the end time of the current time period, or the start execution time of the step 201 as the end time of the current time period, which is not limited in this embodiment.
Generally, after the station STA transmits the data frame to the access point AP, if the access point AP does not have or the received data is incorrect, the access point does not reply to the station STA with an ACK frame, that is, the station STA does not receive the ACK frame when the data frame transmission fails. Therefore, in this embodiment, the "number of data frames transmitted in the current time period but not receiving the ACK reply frame" is used to determine the data packet error rate corresponding to the current time period.
207. And dividing the quotient of the number of the data frames which are transmitted in the current time period and not received with the ACK reply frames by the total number of the data frames transmitted in the current time period, and taking the quotient as the data packet error rate corresponding to the current time period.
208. Whether the number of RTS frames transmitted in the current time period is zero is determined, if not, step 209 is executed, and if yes, step 210 is executed.
In this embodiment, the RTS packet error rate corresponding to the current period is obtained through steps 208 to 213.
It can be appreciated that, since the RTS/CTS mechanism is not necessarily always in an on state, if the RTS/CTS mechanism is not already on before, the RTS packet error rate corresponding to the current period cannot be directly calculated. Therefore, before the RTS packet error rate corresponding to the current period is obtained, it should be determined whether the number of RTS frames sent in the current time period is zero, and different operations are performed for two different determination results.
209. And acquiring the RTS packet error rate corresponding to the current time period, and determining the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period.
In this embodiment, if the number of RTS frames sent in the current time period is not zero, that is, the RTS/CTS mechanism is turned on in the time period, the RTS packet error rate corresponding to the current time period may be determined directly according to the packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period.
The RTS packet error rate corresponding to the current time period specifically refers to a ratio of the number of RTS frames that do not receive a CTS frame to the number of all RTS frames that are transmitted in the current time period.
210. An RSSI value is obtained.
It will be appreciated that the RTS packet error rate is mainly determined by the distance between the STA and the AP, and the value of the RSSI (Received Signal Strength Indication ) may represent the distance between the STA and the AP.
Therefore, in this embodiment, the RSSI value is first obtained, and then the RTS packet error rate corresponding to the current time period is determined according to the comparison result of the RSSI value and the signal strength threshold. The signal strength threshold may typically be-65 dBm, etc.
211. Whether the RSSI value is greater than the signal strength threshold is determined, if not, step 212 is executed, and if yes, step 213 is executed.
212. And taking the RTS packet error rate corresponding to the previous time period as the RTS packet error rate corresponding to the current time period.
213. And determining the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the previous time period.
In this embodiment, when the RSSI value is greater than the signal strength threshold, the RTS packet error rate corresponding to the current time period is determined only by the RTS packet error rate corresponding to the previous time period.
For example, the sum of the RTS packet error rate corresponding to the previous time period and the value 0.5 may be divided by the quotient of 2 to be the RTS packet error rate corresponding to the current time period.
214. Judging whether the RTS packet error rate corresponding to the current time period is smaller than the RTS packet error rate threshold, if not, executing step 215, and if so, executing step 216.
In this embodiment, steps 214 to 218 are processes of determining the operation state of the RTS/CTS mechanism according to the RTS packet error rate and the data packet error rate, and the RTS packet error rate threshold and the data packet error rate threshold, which correspond to the current time period, respectively.
In this embodiment, the RTS packet error rate and the RTS packet error rate threshold corresponding to the current time period are compared in value, and different operations are performed according to different comparison results. The data packet error rate threshold may typically be 10%, or the like.
215. The operational state of the RTS/CTS mechanism is set to stop.
216. Judging whether the data packet error rate corresponding to the current time period is greater than the data packet error rate threshold, if not, executing step 217, and if so, executing step 218.
In this embodiment, if the RTS packet error rate corresponding to the current time period is smaller than the RTS packet error rate threshold, the data packet error rate corresponding to the current time period is compared with the data packet error rate threshold continuously, and different operations are executed according to different comparison results.
217. The operational state of the RTS/CTS mechanism is set to stop.
218. The operational state of the RTS/CTS mechanism is set to active.
The embodiment of the invention provides a method for determining the running state of an RTS/CTS mechanism, which is used for embodying a method for acquiring data packet error rate and RTS packet error rate corresponding to the current time period respectively, so that the acquired data packet error rate and RTS packet error rate can correctly reflect the current environment interference condition, and also embodying a method for determining the running state of the RTS/CTS mechanism according to the interference environment characterization parameter and the corresponding threshold value thereof, so that the running state of the RTS/CTS mechanism is matched with the current environment interference condition, the detection process of equipment using IEEE802.11b standard is increased, and the normal running of the equipment using IEEE802.11b standard is ensured.
In the above embodiments, determining the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period may be specifically: and dividing the sum of the RTS packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period by a quotient of 2 to obtain the RTS packet error rate corresponding to the current time period.
The advantages of this arrangement are: the calculated RTS packet error rate can better embody the current environment interference condition.
In the above embodiments, according to the RTS packet error rate corresponding to the previous time period, determining the RTS packet error rate corresponding to the current time period may be implemented as: and dividing the sum of the RTS packet error rate corresponding to the previous time period and the value of 0.5 by a quotient of 2 to obtain the RTS packet error rate corresponding to the current time period.
The advantages of this arrangement are: the calculated RTS packet error rate can better embody the current environment interference condition.
Example III
Fig. 3 is a flowchart of a method for determining an operational status of an RTS/CTS mechanism according to a third embodiment of the present invention. The present embodiment is optimized based on the above embodiment, and in the present embodiment, a specific embodiment of adding a step of determining the initial rate of the RTS frame corresponding to the current time period is given.
Correspondingly, the method of the embodiment specifically comprises the following steps:
301. and acquiring the data length of the current data to be transmitted.
302. If the data length of the data to be transmitted is smaller than the data length threshold, the operation state of the RTS/CTS mechanism is set to be stopped, wherein the operation state of the RTS/CTS mechanism comprises starting and stopping.
303. And if the data length of the data to be transmitted is larger than the data length threshold, acquiring an interference environment characterization parameter, wherein the interference environment characterization parameter at least comprises RTS packet error rate and data packet error rate respectively corresponding to the current time period.
304. And determining the operation state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold.
305. After the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the data to be sent is sent, determining the initial rate of the RTS frame corresponding to the current time period according to the RTS packet error rate corresponding to the current time period and the initial rate of the RTS frame corresponding to the previous time period.
It can be appreciated that the RTS/CTS mechanism, while well solving the "hidden terminal" problem, generates a certain wireless data transmission overhead due to the transmission and reception of the RTS and CTS frames. In order to reduce the adverse effect of the wireless data transmission overhead generated by the RTS/CTS mechanism, the transmission rate of the RTS frame may be increased, but since there is interference in the wireless data transmission path, in order to ensure effective transmission of the RTS frame, the transmission rate of the RTS frame should be matched with the current interference condition of the wireless data transmission path, and cannot be set to the highest transmission rate. By the method, the sending rate of the first RTS frame corresponding to the data to be sent and the current interference condition of the wireless data transmission path can be matched. In this embodiment, the current interference condition of the wireless data transmission path is reflected by the RTS packet error rate.
Since the interval between the data transmission times of the "current time period" and the "previous time period" is generally small, the interference conditions of the wireless data transmission paths of the "current time period" and the "previous time period" are similar, so in this embodiment, the "RTS packet error rate corresponding to the current time period" is determined according to the "RTS packet error rate corresponding to the previous time period".
In this embodiment, the first rate of the RTS frame corresponding to the current time period is specifically determined by the RTS packet error rate corresponding to the current time period and the first rate of the RTS frame corresponding to the previous time period, where the determining method specifically may be:
1. according to the value of the RTS packet error rate corresponding to the current time period, determining whether the first-order rate of the RTS frame corresponding to the previous time period is directly used as the first-order rate of the RTS frame corresponding to the current time period, whether the data transmission rate which is one level lower than the first-order rate of the RTS frame corresponding to the previous time period is used as the first-order rate of the RTS frame corresponding to the current time period, or whether the data transmission rate which is one level higher than the first-order rate of the RTS frame corresponding to the previous time period is used as the first-order rate of the RTS frame corresponding to the current time period.
2. According to the value of the RTS packet error rate corresponding to the current time period, determining whether the data transmission rate which is one level lower than the first transmission rate of the RTS frame corresponding to the previous time period is used as the first transmission rate of the RTS frame corresponding to the current time period or the data transmission rate which is one level higher than the first transmission rate of the RTS frame corresponding to the previous time period is used as the first transmission rate of the RTS frame corresponding to the current time period.
3. According to the value of the RTS packet error rate corresponding to the current time period, determining whether to directly take the first-time rate of the RTS frame corresponding to the previous time period as the first-time rate of the RTS frame corresponding to the current time period or take the data transmission rate which is one level higher than the first-time rate of the RTS frame corresponding to the previous time period as the first-time rate of the RTS frame corresponding to the current time period.
The embodiment of the invention provides a method for determining the running state of an RTS/CTS mechanism, which specifically increases the step of determining the first rate of an RTS frame corresponding to the current time period, solves the technical defect that the sending rate of the RTS frame in the RTS/CTS mechanism in the prior art cannot be changed timely according to the current data transmission environment so as to reduce the data transmission cost, realizes that the first rate of the RTS frame corresponding to the period can be adaptively adjusted according to the current interference condition of a transmission path of wireless data, and reduces the data transmission cost generated by the RTS/CTS mechanism to a certain extent.
Example IV
Fig. 4 is a flowchart of a method for determining an operational status of an RTS/CTS mechanism according to a fourth embodiment of the present invention. The present embodiment is optimized based on the foregoing embodiment, and in this embodiment, a specific implementation is provided that determines, according to the first and second packet error rate thresholds, the lowest and highest sending rates of the RTS frame, the RTS packet error rate corresponding to the current time period, and the first sending rate of the RTS frame corresponding to the previous time period, the first sending rate of the RTS frame corresponding to the current time period.
Correspondingly, the method of the embodiment specifically comprises the following steps:
401. and acquiring the data length of the current data to be transmitted.
402. If the data length of the data to be transmitted is smaller than the data length threshold, the operation state of the RTS/CTS mechanism is set to be stopped, wherein the operation state of the RTS/CTS mechanism comprises starting and stopping.
403. And if the data length of the data to be transmitted is larger than the data length threshold, acquiring an interference environment characterization parameter, wherein the interference environment characterization parameter at least comprises RTS packet error rate and data packet error rate respectively corresponding to the current time period.
404. And determining the operation state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold.
405. After the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the data to be sent currently is sent, it is determined whether the RTS packet error rate corresponding to the current time period is greater than the first RTS packet error rate threshold, if yes, step 406 is executed, and if not, step 409 is executed.
In this embodiment, in steps 405 to 413, the first rate of the RTS frame corresponding to the current time period is determined by comparing the RTS packet error rate corresponding to the current time period with a first RTS packet error rate threshold and a second RTS packet error rate threshold, where the first packet error rate threshold should be greater than the second packet error rate threshold. The first packet error rate threshold may be typically 30%, and the second packet error rate threshold may be typically 10%.
406. Whether the first rate of the RTS frame corresponding to the previous time period is the lowest sending rate of the RTS frame is determined, if not, step 407 is executed, and if yes, step 408 is executed.
It will be appreciated that the standard IEEE 802.11 common to all versions of wireless local area networks provides for a hierarchical specification of data transmission rates, with both a highest data transmission rate and a lowest data transmission rate.
In this embodiment, if the RTS packet error rate corresponding to the current time period is greater than the first RTS packet error rate threshold, it is determined that the interference in the current wireless data transmission path is stronger, and the first rate of the RTS frame corresponding to the current time period needs to be set to a data transmission rate that is one level lower than the first rate of the RTS frame corresponding to the previous time period.
Since the standard IEEE 802.11 common to various versions of wireless local area networks specifies the lowest data transmission rate, in this embodiment, it is first necessary to determine whether the first rate of the RTS frame corresponding to the previous time period is the lowest transmission rate of the RTS frame.
407. And taking the sending rate of the RTS frame which is one level lower than the first sending rate of the RTS frame corresponding to the previous time period as the first sending rate of the RTS frame corresponding to the current time period.
In this embodiment, when the first rate of the RTS frame corresponding to the current time period is not the lowest sending rate of the RTS frame, the sending rate of the RTS frame lower than the first rate of the RTS frame corresponding to the previous time period by one level is taken as the first rate of the RTS frame corresponding to the current time period.
408. And taking the lowest sending rate of the RTS frame as the first sending rate of the RTS frame corresponding to the current time period.
In this embodiment, if the first rate of the RTS frame corresponding to the previous time period is the lowest sending rate of the RTS frame, the sending rate of the RTS frame cannot be reduced any more, and at this time, only the lowest sending rate of the RTS frame can be used as the first rate of the RTS frame corresponding to the current time period.
409. Judging whether the RTS packet error rate corresponding to the current time period is smaller than the second RTS packet error rate threshold, if not, executing step 410, and if so, executing step 411.
In this embodiment, if the RTS packet error rate corresponding to the current time period is not greater than the first RTS packet error rate threshold, then it is continuously determined whether the RTS packet error rate corresponding to the current time period is less than the second RTS packet error rate threshold, so as to further determine whether the sending rate of the RTS frame that is one level higher than the sending rate of the RTS frame corresponding to the previous time period can be used as the sending rate of the RTS frame corresponding to the current time period, and further reduce the wireless data transmission overhead generated by the RTS/CTS mechanism.
410. And taking the initial rate of the RTS frame corresponding to the previous time period as the initial rate of the RTS frame corresponding to the current time period.
In this embodiment, if the RTS packet error rate corresponding to the current time period is less than or equal to the first packet error rate threshold, but greater than or equal to the second packet error rate threshold, it is determined that the interference condition of the current wireless data transmission path is similar to the interference condition of the wireless data transmission path when the previous data to be transmitted is transmitted, so that the initial rate of the RTS frame corresponding to the previous time period is taken as the initial rate of the RTS frame corresponding to the current time period.
411. Whether the first rate of the RTS frame corresponding to the previous time period is the highest sending rate of the RTS frame is determined, if yes, step 412 is executed, and if not, step 413 is executed.
Similarly, since the standard IEEE 802.11 common to all versions of the wireless lan prescribes the highest data transmission rate, in this embodiment, it is first required to determine whether the first rate of the RTS frame corresponding to the previous time period is the highest transmission rate of the RTS frame.
412. And taking the highest sending rate of the RTS frame as the initial rate of the RTS frame corresponding to the current time period.
In this embodiment, when the first rate of the RTS frame corresponding to the current time period is the highest sending rate of the RTS frame, the sending rate of the RTS frame cannot be increased any more, and at this time, only the highest sending rate of the RTS frame can be used as the first rate of the RTS frame corresponding to the current time period.
413. And taking the sending rate of the RTS frame which is one level higher than the first sending rate of the RTS frame corresponding to the previous time period as the first sending rate of the RTS frame corresponding to the current time period.
In this embodiment, when the first rate of the RTS frame corresponding to the current time period is not the highest sending rate of the RTS frame, the sending rate of the RTS frame higher than the first rate of the RTS frame corresponding to the previous time period by one level is taken as the first rate of the RTS frame corresponding to the current time period.
The embodiment of the invention provides a method for determining the running state of an RTS/CTS mechanism, which is characterized in that the initial rate of an RTS frame corresponding to a current time period is determined together according to a first packet error rate threshold, a second packet error rate threshold, the lowest and highest sending rates of the RTS frame, the RTS packet error rate corresponding to the current time period and the initial rate of the RTS frame corresponding to the previous time period, so that the matching degree of the initial rate of the RTS frame corresponding to the current time period and the current interference condition of a wireless data transmission path is improved.
Example five
Fig. 5 is a flowchart of a method for determining an operational status of an RTS/CTS mechanism according to a fifth embodiment of the present invention. The present embodiment is optimized based on the above embodiment, and in the present embodiment, a specific embodiment is provided in which a transmission process of data to be transmitted currently is added, and a transmission process of an RTS frame corresponding to the data to be transmitted currently is added.
Correspondingly, the method of the embodiment specifically comprises the following steps:
501. and acquiring the data length of the current data to be transmitted.
502. If the data length of the data to be transmitted is smaller than the data length threshold, the operation state of the RTS/CTS mechanism is set to be stopped, wherein the operation state of the RTS/CTS mechanism comprises starting and stopping.
503. And if the data length of the data to be transmitted is larger than the data length threshold, acquiring an interference environment characterization parameter, wherein the interference environment characterization parameter at least comprises RTS packet error rate and data packet error rate corresponding to the current time period.
504. And determining the operation state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold.
505. After the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the data to be sent is sent, determining the initial rate of the RTS frame corresponding to the current time period according to the RTS packet error rate corresponding to the current time period and the initial rate of the RTS frame corresponding to the previous time period.
506. And taking the first sending rate of the RTS frame corresponding to the current time period as the current sending rate of the RTS frame, and setting the sending times corresponding to the current data to be sent to be 0.
In this embodiment, after determining the first rate of the RTS frame corresponding to the current time period, the determined first rate of the RTS frame is determined as the transmission rate of the first RTS frame corresponding to the data to be transmitted currently.
It will be appreciated that, in the process of transmitting data, if a group of data fails to be transmitted multiple times, the data failed in the multiple times of transmission is generally discarded so as not to affect the normal transmission of the subsequent data. Therefore, in this embodiment, the data corresponding to the number of transmissions of the data to be currently transmitted is set, and is used to count the total number of transmissions of the data to be currently transmitted.
507. And transmitting an RTS frame corresponding to the data to be transmitted currently by using the current transmission rate.
508. It is determined whether an RTS frame was sent successfully, if so, step 509 is executed, and if not, step 516 is executed.
It will be appreciated that after an RTS frame is sent, a CTS frame may be successfully received, i.e., the RTS frame is acknowledged as being sent successfully. Therefore, in the present embodiment, whether the RTS frame is successfully transmitted can be determined by determining whether the CTS frame corresponding to the RTS frame transmitted in step 508 is successfully received.
509. And sending the current data to be sent.
510. Whether the current data to be transmitted is successfully transmitted is judged, if yes, step 511 is executed, and if not, step 512 is executed.
It will be appreciated that after a data frame is transmitted, an ACK frame may be successfully received, i.e., the data frame is acknowledged as being successfully transmitted. Therefore, in the present embodiment, it can be determined whether the transmission of the data frame is successful by determining whether the ACK frame corresponding to the data frame transmitted in step 509 is successfully received.
In this embodiment, after the current data to be sent is sent successfully, step 505 is executed again, where the next data to be sent becomes the current data to be sent, and the RTS initial rate corresponding to the current time period is determined again. It can be seen that, in this embodiment, each time a new data to be sent is sent, the RTS initial rate corresponding to the current time period is redetermined as the initial rate of the RTS frame corresponding to the new data to be sent.
511. The number of transmissions is reset to 0 and returns to step 505 until the full portion of data to be transmitted is transmitted.
In this embodiment, if the current data to be sent is sent successfully in the current sending process, the sending frequency is cleared, so that the sending frequency of the next data to be sent is counted continuously by using the sending frequency.
512. And updating the transmission times by using the value obtained by adding 1 to the transmission times.
In this embodiment, if the current data to be transmitted fails to be transmitted in the current transmission process, the value of the "transmission number" is increased by 1, so that the value of the transmission number is equal to the number of the transmission failures of the current data to be transmitted.
513. Whether the number of transmissions reaches the upper limit of the number of data transmissions is determined, if so, step 514 is executed, and if not, step 515 is executed.
The RTS/CTS mechanism sets an upper limit on the number of repeated data frame transmissions, and when the number of repeated data frame transmissions reaches the upper limit, the data frame is discarded and the subsequent data frame is continuously transmitted.
Therefore, in the present embodiment, after the data frame transmission fails, it is first determined whether the number of transmissions of the data currently to be transmitted reaches the upper limit of the number of data transmissions.
514. The data currently to be transmitted is discarded and the process returns to step 505 until the complete portion of the data to be transmitted is transmitted.
515. And taking the current data to be transmitted which is not successfully transmitted as the current data to be transmitted again, and returning to execute the step 505.
In this embodiment, if the number of times of transmission does not reach the upper limit of the number of times of transmission, the data is sent again, and the RTS packet error rate corresponding to the current time period is used as the RTS packet error rate corresponding to the data to be sent, and the RTS head rate corresponding to the current time period is used as the current sending rate of the RTS frame. .
516. Judging whether the sending frequency of the RTS frame corresponding to the current data to be sent reaches the upper limit of the sending frequency of the RTS frame, if so, executing step 517, and if not, executing step 518.
The upper limit of the number of times of repeated transmission of the RTS frame is also set in the RTS/CTS mechanism, when the number of times of repeated transmission of the RTS frame reaches the upper limit, the current data frame to be transmitted is discarded, and the subsequent data frames are continuously transmitted.
Therefore, in the present embodiment, after the RTS frame transmission fails, it is first determined whether the number of times of transmission of the RTS frame corresponding to the current data to be transmitted reaches the upper limit of the number of times of transmission of the RTS frame.
517. The data currently to be transmitted is discarded and the process returns to step 505 until the complete portion of the data to be transmitted is transmitted.
518. Whether the current transmission rate is the lowest transmission rate of the RTS frame is determined, if so, the process returns to step 507, and if not, step 519 is performed.
In this embodiment, when the RTS frame is successful, it is confirmed that the current transmission rate of the RTS frame does not match the current interference condition of the wireless data transmission path, and therefore, the transmission rate of the RTS frame is reduced. However, since the standard IEEE 802.11 common to all versions of the wireless lan prescribes the lowest data transmission rate, in this embodiment, it is first necessary to determine whether the first rate of the RTS frame corresponding to the previous time period is the lowest transmission rate of the RTS frame.
519. Taking the sending rate of the RTS frame lower than the current sending rate by one level as the current sending rate, and returning to execute step 507 until the data to be sent of the complete part is sent.
The embodiment of the invention provides a method for determining the running state of an RTS/CTS mechanism, which specifically increases the sending process of data to be sent currently and the sending process of RTS frames corresponding to the data to be sent currently, improves the matching degree of the sending rate of the RTS frames corresponding to the data to be sent currently and the current interference condition of a wireless data transmission path, and further improves the sending success rate of the RTS frames.
Example six
Fig. 6 is a block diagram of a determining device for an RTS/CTS mechanism operation state according to a sixth embodiment of the present invention. As shown in fig. 6, the apparatus includes: a data length acquisition module 601, a data length comparison module 602, a parameter acquisition module 603, and a parameter comparison module 604, wherein:
a data length obtaining module 601, configured to obtain a data length of data to be sent currently;
a data length comparison module 602, configured to set an operation state of the RTS/CTS mechanism to a stop if a data length of data to be transmitted is less than a data length threshold, where the operation state of the RTS/CTS mechanism includes start and stop;
the parameter obtaining module 603 is configured to obtain an interference environment characterization parameter if a data length of the data to be transmitted is greater than a data length threshold, where the interference environment characterization parameter at least includes an RTS packet error rate and a data packet error rate corresponding to a current time period;
the parameter comparison module 604 is configured to determine an operation state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold.
The embodiment of the invention provides a determining device for an operation state of an RTS/CTS mechanism, which firstly acquires a data length of data to be sent currently through a data length acquisition module 601, then sets the operation state of the RTS/CTS mechanism to be stopped through a data length comparison module 602 if the data length of the data to be sent currently is smaller than a data length threshold, wherein the operation state of the RTS/CTS mechanism comprises starting and stopping, acquires an interference environment characterization parameter through a parameter acquisition module 603 if the data length of the data to be sent currently is larger than the data length threshold, wherein the interference environment characterization parameter at least comprises an RTS packet error rate and a data packet error rate corresponding to a current time period, and finally determines the operation state of the RTS/CTS mechanism through a parameter comparison module 604 according to the interference environment characterization parameter and the interference environment characterization parameter threshold.
The device solves the technical defect that the service condition of the RTS/CTS mechanism cannot be matched with the current interference environment in real time in the prior art, improves the transmission efficiency of wireless data when the RTS/CTS mechanism is started, and improves the data throughput performance of wireless data transmission equipment and reduces the data packet error rate of the wireless data transmission equipment in a complex interference environment.
In the above embodiments, the parameter obtaining module 603 may include:
a total number acquisition unit of data frames, configured to acquire a total number of data frames transmitted in a current time period and a number of data frames transmitted in the current time period but not receiving an ACK reply frame;
and the data packet error rate determining unit is used for dividing the number of the data frames which are transmitted in the current time period and not received with the ACK reply frames by the total number of the data frames transmitted in the current time period to be used as the data packet error rate corresponding to the current time period.
In the above embodiments, the parameter obtaining module 603 may further include:
the sending number judging unit of the RTS frames is used for judging whether the sending number of the RTS frames in the current time period is zero or not;
the first RTS packet error rate determining unit is used for acquiring the RTS packet error rate corresponding to the current time period if the sending number of RTS frames in the current time period is not zero, and updating the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period;
The signal strength acquisition unit is used for acquiring an RSSI value if the transmission number of RTS frames in the current time period is zero;
the signal strength judging module is used for judging whether the RSSI value is larger than a signal strength threshold value or not;
the second RTS packet error rate determining unit is used for taking the RTS packet error rate corresponding to the previous time period as the RTS packet error rate corresponding to the current time period if the RSSI value is not greater than the signal strength threshold value;
and the third RTS packet error rate determining unit is used for determining the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the previous time period if the RSSI value is larger than the signal strength threshold value.
In the above embodiments, the first RTS packet error rate determining unit may specifically be configured to:
and dividing the sum of the RTS packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period by a quotient of 2 to obtain the RTS packet error rate corresponding to the current time period.
In the above embodiments, the third RTS packet error rate determining unit may specifically be configured to:
and dividing the sum of the RTS packet error rate corresponding to the previous time period and the value of 0.5 by a quotient of 2 to obtain the RTS packet error rate corresponding to the current time period.
In the above embodiments, the parameter comparison module 604 may include:
The RTS packet error rate judging unit is used for judging whether the RTS packet error rate corresponding to the current time period is smaller than an RTS packet error rate threshold value;
a first state determining unit, configured to set an operation state of an RTS/CTS mechanism to a stop if an RTS packet error rate corresponding to a current time period is not less than an RTS packet error rate threshold;
the data packet error rate judging unit is used for continuously judging whether the data packet error rate corresponding to the current time period is larger than the data packet error rate threshold value or not if the RTS packet error rate corresponding to the current time period is smaller than the RTS packet error rate threshold value;
the second state determining unit is used for setting the running state of the RTS/CTS mechanism to be stopped if the data packet error rate corresponding to the current time period is not greater than the data packet error rate threshold;
and the third state determining unit is used for setting the running state of the RTS/CTS mechanism to be started if the data packet error rate corresponding to the current time period is greater than the data packet error rate threshold.
In the above embodiments, it may further include:
a device determining module, configured to detect whether a device using IEEE 802.11b standard exists in a current basic service set BSS and a surrounding basic service set BSS before acquiring a data length of data to be currently transmitted;
An operation state determining module of the RTS/CTS mechanism, configured to set an operation state of the RTS/CTS mechanism to be started if there is a device using the IEEE 802.11b standard in the current basic service set BSS or the surrounding basic service set BSSs;
and the data acquisition module is used for acquiring the data length of the data to be transmitted currently if no equipment using the IEEE 802.11b standard exists in the current basic service set BSS or the surrounding basic service set BSS.
The device for determining the running state of the RTS/CTS mechanism provided by the embodiment of the invention can be used for executing the method for determining the running state of the RTS/CTS mechanism provided by any embodiment of the invention, has corresponding functional modules and achieves the same beneficial effects.
Example seven
Fig. 7 is a schematic structural diagram of a wireless data transmission device according to a seventh embodiment of the present invention, and as shown in fig. 7, the wireless data transmission device includes a processor 70, a memory 71, an input device 72 and an output device 73; the number of processors 70 in the wireless data transfer device may be one or more, one processor 70 being taken as an example in fig. 7; the processor 70, the memory 71, the input means 72 and the output means 73 in the wireless data transmission device may be connected by a bus or other means, in fig. 7 by way of example.
The memory 71 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and a module, such as a module corresponding to a method for determining an RTS/CTS mechanism operation state in an embodiment of the present invention (for example, a data length obtaining module 601, a data length comparing module 602, a parameter obtaining module 603, and a parameter comparing module 604 in a device for determining an RTS/CTS mechanism operation state). The processor 70 executes various functional applications of the wireless data transmission apparatus and data processing by executing software programs, instructions and modules stored in the memory 71, i.e., implements the above-described determination method of the RTS/CTS mechanism operation state.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 71 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 71 may further include memory remotely located relative to processor 70, which may be connected to a wireless data transmission device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 72 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the wireless data transmission device. The output means 73 may comprise a display device such as a display screen.
Example eight
An eighth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for determining an operational state of an RTS/CTS mechanism, the method comprising:
acquiring the data length of the current data to be sent;
if the data length of the data to be transmitted is smaller than the data length threshold, setting the running state of the RTS/CTS mechanism to be stopped, wherein the running state of the RTS/CTS mechanism comprises starting and stopping;
if the data length of the current data to be transmitted is larger than the data length threshold, acquiring an interference environment characterization parameter, wherein the interference environment characterization parameter at least comprises RTS packet error rate and data packet error rate corresponding to the current time period;
and determining the operation state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the method for determining the operation state of the RTS/CTS mechanism provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the determining device for the operation state of the RTS/CTS mechanism, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding function can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A method for determining an operational state of an RTS/CTS mechanism, comprising:
acquiring the data length of the current data to be sent;
setting the running state of an RTS/CTS mechanism to be stopped if the data length of the data to be sent is smaller than a data length threshold value, wherein the running state of the RTS/CTS mechanism comprises starting and stopping;
if the data length of the data to be sent currently is larger than a data length threshold, acquiring an interference environment characterization parameter, wherein the interference environment characterization parameter at least comprises RTS packet error rate and data packet error rate respectively corresponding to the current time period;
Determining the operation state of the RTS/CTS mechanism according to the interference environment characterization parameters and the interference environment characterization parameter threshold;
the determining the operation state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold includes:
judging whether the RTS packet error rate corresponding to the current time period is smaller than an RTS packet error rate threshold value or not;
if the RTS packet error rate corresponding to the current time period is not less than the RTS packet error rate threshold, setting the running state of the RTS/CTS mechanism to be stopped;
if the RTS packet error rate corresponding to the current time period is smaller than the RTS packet error rate threshold, continuously judging whether the data packet error rate corresponding to the current time period is larger than the data packet error rate threshold;
if the data packet error rate corresponding to the current time period is not greater than the data packet error rate threshold, setting the running state of the RTS/CTS mechanism to be stopped;
and if the data packet error rate corresponding to the current time period is greater than the data packet error rate threshold, setting the running state of the RTS/CTS mechanism to be started.
2. The method of claim 1, wherein the obtaining the interference environment characterization parameter comprises:
Acquiring the total number of data frames transmitted in the current time period and the number of data frames transmitted in the current time period but not receiving an ACK reply frame;
and dividing the number of the data frames which are transmitted in the current time period but not received with the ACK reply frames by the total number of the data frames transmitted in the current time period to be used as the data packet error rate corresponding to the current time period.
3. The method of claim 1, wherein the obtaining the interference environment characterization parameter comprises:
judging whether the sending number of RTS frames in the current time period is zero or not;
if the sending number of RTS frames in the current time period is not zero, acquiring an RTS packet error rate corresponding to the current time period, and updating the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period;
if the sending number of RTS frames in the current time period is zero, acquiring an RSSI value;
judging whether the RSSI value is larger than a signal strength threshold value or not;
if the RSSI value is not greater than the signal strength threshold, taking the RTS packet error rate corresponding to the previous time period as the RTS packet error rate corresponding to the current time period;
And if the RSSI value is larger than the signal strength threshold, determining the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the previous time period.
4. The method of claim 3, wherein updating the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period comprises:
and dividing the sum of the RTS packet error rate corresponding to the current time period and the RTS packet error rate corresponding to the previous time period by a quotient of 2 to obtain the RTS packet error rate corresponding to the current time period.
5. The method of claim 3, wherein the determining the RTS packet error rate corresponding to the current time period based on the RTS packet error rate corresponding to the previous time period comprises:
and dividing the sum of the RTS packet error rate corresponding to the previous time period and the value of 0.5 by a quotient of 2 to obtain the RTS packet error rate corresponding to the current time period.
6. The method according to any one of claims 1-5, further comprising, prior to said obtaining a data length of the current data to be transmitted:
Detecting whether a device using the IEEE802.11b standard exists in a current Basic Service Set (BSS) and a surrounding BSS;
setting an operational state of the RTS/CTS mechanism to active if there is a device using the ieee802.11b standard in the current basic service set BSS or the surrounding basic service set BSS;
if there is no device using the IEEE802.11b standard in the current basic service set BSS or the surrounding basic service set BSS, the step of acquiring the data length of the data to be transmitted currently is performed.
7. An apparatus for determining an operational state of an RTS/CTS mechanism, comprising:
the data length acquisition module is used for acquiring the data length of the current data to be transmitted;
a data length comparison module, configured to set an operation state of an RTS/CTS mechanism to a stop if the data length of the data to be sent is less than a data length threshold, where the operation state of the RTS/CTS mechanism includes start and stop;
the parameter acquisition module is used for acquiring an interference environment characterization parameter if the data length of the data to be transmitted is larger than a data length threshold, wherein the interference environment characterization parameter at least comprises RTS packet error rate and data packet error rate which are respectively corresponding to the current time period;
The parameter comparison module is used for determining the running state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold;
the parameter comparison module comprises:
the RTS packet error rate judging unit is used for judging whether the RTS packet error rate corresponding to the current time period is smaller than an RTS packet error rate threshold value;
a first state determining unit, configured to set an operation state of an RTS/CTS mechanism to a stop if an RTS packet error rate corresponding to a current time period is not less than an RTS packet error rate threshold;
the data packet error rate judging unit is used for continuously judging whether the data packet error rate corresponding to the current time period is larger than the data packet error rate threshold value or not if the RTS packet error rate corresponding to the current time period is smaller than the RTS packet error rate threshold value;
the second state determining unit is used for setting the running state of the RTS/CTS mechanism to be stopped if the data packet error rate corresponding to the current time period is not greater than the data packet error rate threshold;
and the third state determining unit is used for setting the running state of the RTS/CTS mechanism to be started if the data packet error rate corresponding to the current time period is greater than the data packet error rate threshold.
8. A wireless data transmission device, the wireless data transmission device comprising:
One or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method of determining an RTS/CTS mechanism operational state as recited in any one of claims 1-6.
9. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing a method of determining an RTS/CTS mechanism operational state as claimed in any one of claims 1-6.
CN201810960644.3A 2018-08-22 2018-08-22 Method, device and medium for determining operation state of RTS/CTS mechanism Active CN108882310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810960644.3A CN108882310B (en) 2018-08-22 2018-08-22 Method, device and medium for determining operation state of RTS/CTS mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810960644.3A CN108882310B (en) 2018-08-22 2018-08-22 Method, device and medium for determining operation state of RTS/CTS mechanism

Publications (2)

Publication Number Publication Date
CN108882310A CN108882310A (en) 2018-11-23
CN108882310B true CN108882310B (en) 2023-05-02

Family

ID=64321484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810960644.3A Active CN108882310B (en) 2018-08-22 2018-08-22 Method, device and medium for determining operation state of RTS/CTS mechanism

Country Status (1)

Country Link
CN (1) CN108882310B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449252B (en) * 2019-09-04 2022-11-04 杭州海康威视数字技术股份有限公司 Method and device for maintaining video streaming system, wireless network bridge equipment and storage medium
CN111542124B (en) * 2020-03-31 2022-05-27 新华三技术有限公司 Method and device for starting RTS/CTS mechanism
CN115529676A (en) * 2022-09-21 2022-12-27 三星半导体(中国)研究开发有限公司 Method and apparatus for RTS/CTS adaptive enable/disable

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338646A (en) * 2014-08-01 2016-02-17 展讯通信(上海)有限公司 Start control method and device for RTS/CTS mechanism
US9374834B2 (en) * 2006-12-19 2016-06-21 Nokia Technologies Oy Techniques for RTS/CTS usage for wireless networks
WO2016098808A1 (en) * 2014-12-19 2016-06-23 Kddi株式会社 Transmitting device, receiving device and communication method applicable to radio communications system
CN107046730A (en) * 2016-02-05 2017-08-15 中兴通讯股份有限公司 A kind of data transmission method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2919546A1 (en) * 2014-03-12 2015-09-16 Nokia Corporation Coordination of RTS-CTS in wireless network
US9949291B2 (en) * 2014-05-15 2018-04-17 Ruckus Wireless, Inc. Collision protection based on packet error rate

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9374834B2 (en) * 2006-12-19 2016-06-21 Nokia Technologies Oy Techniques for RTS/CTS usage for wireless networks
CN105338646A (en) * 2014-08-01 2016-02-17 展讯通信(上海)有限公司 Start control method and device for RTS/CTS mechanism
WO2016098808A1 (en) * 2014-12-19 2016-06-23 Kddi株式会社 Transmitting device, receiving device and communication method applicable to radio communications system
CN107046730A (en) * 2016-02-05 2017-08-15 中兴通讯股份有限公司 A kind of data transmission method and device

Also Published As

Publication number Publication date
CN108882310A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
US20090149133A1 (en) Communication apparatus and program for identifying faults and computer program storage medium
CN108882310B (en) Method, device and medium for determining operation state of RTS/CTS mechanism
KR100713378B1 (en) Method for detecting a hidden station in a wireless communication network
US11589389B2 (en) Method and apparatus for implementing collision detection in data transmission
US9794889B2 (en) Power adjustment method and apparatus
US20120287797A1 (en) Techniques for minimizing the beam forming time in wireless local area networks
US20210392033A1 (en) Systems and Methods for Managing Failed Packet Transmissions using a Smart Retransmission Scheme with Hierarchical Packet Analysis
US9622147B2 (en) System and method for performing hybrid automatic repeat request (HARQ) in a WLAN system
US10313059B2 (en) Data sending feedback method and apparatus, and data sending method and apparatus
US20160043946A1 (en) Systems and methods for aggregating multi-user media access control protocol data unit frames in a wireless network
WO2018157644A1 (en) Data transmission method and device in wireless network
CN108882312B (en) RTS frame sending rate adjusting method, device, equipment and storage medium
EP3749033A1 (en) Beam restoration method and apparatus
CN111756487A (en) Resource reselection method, node equipment and resource reselection device
US10757001B2 (en) Methods for dynamic sensitivity control in wireless networks
Garcia-Luna-Aceves KALOHA: ike i ke ALOHA
KR102457637B1 (en) System, apparatus, method and program for estimating number of tag using operating period and message
US11606816B2 (en) Method, node, and system for reducing collisions in a time-synchronized channel hopping network
US20160149685A1 (en) Method and apparatus for wireless communication
US7388878B2 (en) Method and apparatus for providing a control frame duration correlated to data frame duration
Huang et al. An adaptive contention window algorithm to hybrid OFDMA/CSMA mechanism in WLANs
KR102499337B1 (en) System, apparatus, method and program for calculating frame throughput using slot counter parameter
WO2022213960A1 (en) Information detection method and apparatus
US11882448B2 (en) System and method for packet detail detection and precision blocking
Garcia-Luna-Aceves Improving carrier-sense multiple access using cues of channel utilization

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 13 / F, union building, No. 1069, Shekou Nanhai Avenue, merchants street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Quanzhi online Co.,Ltd.

Address before: 518000 13 / F, union building, No. 1069, Shekou Nanhai Avenue, merchants street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: XRADIOTECH TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant