CN108882312B - RTS frame sending rate adjusting method, device, equipment and storage medium - Google Patents
RTS frame sending rate adjusting method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN108882312B CN108882312B CN201810962686.0A CN201810962686A CN108882312B CN 108882312 B CN108882312 B CN 108882312B CN 201810962686 A CN201810962686 A CN 201810962686A CN 108882312 B CN108882312 B CN 108882312B
- Authority
- CN
- China
- Prior art keywords
- rts
- time period
- packet error
- error rate
- sending
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/18—Negotiating wireless communication parameters
- H04W28/22—Negotiating communication rate
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a method, a device, equipment and a storage medium for adjusting RTS frame sending rate. The method comprises the following steps: after the state of an RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to current data to be sent is sent, determining the RTS packet error rate corresponding to the current period according to the RTS packet error rate corresponding to the previous period; and determining the initial sending rate of the RTS frame corresponding to the current period according to the RTS packet error rate corresponding to the current period and the initial sending rate of the RTS frame corresponding to the previous period. The technical scheme of the embodiment of the invention realizes that the first sending rate of the RTS frame corresponding to the period can be adaptively adjusted according to the current interference condition of the transmission path of the wireless data, and reduces the packet error rate of the RTS to a certain extent, thereby reducing the transmission overhead of an RTS/CTS mechanism.
Description
Technical Field
The embodiment of the invention relates to the technical field of wireless data transmission, in particular to a method, a device, equipment and a storage medium for adjusting RTS frame sending rate.
Background
The RTS/CTS mechanism is widely applied to the field of wireless data transmission, is used for solving the problem of hidden terminals in a wireless network, and can improve the data transmission performance of wireless data transmission equipment.
In the prior art, after the RTS/CTS mechanism is started, most RTS frames are sent at a relatively fixed rate. It can be understood that, although the RTS/CTS mechanism can solve the hidden terminal problem in the wireless network, the mechanism also generates a certain data transmission overhead.
In the process of implementing the invention, the inventor finds that the prior art has the following defects: the sending rate of the RTS frame in the RTS/CTS mechanism cannot be changed correspondingly or has a poor effect according to the actual data transmission environment, and the data transmission overhead generated by the RTS/CTS mechanism cannot be reduced in time.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for adjusting an RTS frame transmission rate, so as to optimize a starting method of an existing RTS/CTS mechanism and reduce data transmission overhead generated by the RTS/CTS mechanism.
In a first aspect, an embodiment of the present invention provides a method for adjusting an RTS frame sending rate, including:
after the state of an RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to current data to be sent is sent, 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;
and determining the initial sending 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 sending rate of the RTS frame corresponding to the previous time period.
In the foregoing method, optionally, the 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 includes:
acquiring the sending quantity of RTS frames in the current time period;
judging whether the sending quantity of the RTS frames in the current time period is zero or not;
if the sending quantity of the RTS frames in the current time period is not zero, 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;
if the sending quantity of the 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 value, taking the RTS packet error rate corresponding to the previous event period as the RTS packet error rate corresponding to the current time period;
and if the RSSI value is greater than the signal strength threshold value, 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 determining, according to the RTS packet error rate of 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 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 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 taking the sum of the RTS packet error rate corresponding to the previous time period and the numerical value 0.5, and dividing the sum by 2 as the RTS packet error rate corresponding to the current time period.
In the above method, optionally, the 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 includes:
judging whether the RTS packet error rate corresponding to the current time period is greater than a first RTS packet error rate threshold value or not;
if the RTS packet error rate corresponding to the current time period is greater than a first RTS packet error rate threshold, continuously judging whether the first sending rate of the RTS frame corresponding to the previous time period is the lowest sending rate of the RTS frame;
if the initial sending rate of the RTS frame corresponding to the previous time period is not the lowest sending rate of the RTS frame, taking the sending rate of the RTS frame which is one level lower than the initial sending rate of the RTS frame corresponding to the previous time period as the initial sending rate of the RTS frame corresponding to the current time period;
if the initial sending rate of the RTS frame corresponding to the previous time period is the lowest sending rate of the RTS frame, taking the lowest sending rate of the RTS frame as the initial sending rate of the RTS frame corresponding to the current time period;
if the RTS packet error rate corresponding to the current time period is not greater than the first RTS packet error rate threshold, continuously judging whether the RTS packet error rate corresponding to the current time period is less than a second RTS packet error rate threshold;
if the RTS packet error rate corresponding to the current time period is not less than a second RTS packet error rate threshold, 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;
if the RTS packet error rate corresponding to the current time period is smaller than a second RTS packet error rate threshold, continuously judging whether the first sending rate of the RTS frame corresponding to the previous time period is the highest sending rate of the RTS frame;
if the first sending rate of the RTS frame corresponding to the previous time period is the highest sending rate of the RTS frame, taking the highest sending rate of the RTS frame as the first sending rate of the RTS frame corresponding to the current time period;
and if the initial rate of the RTS frame corresponding to the previous time period is not the highest sending rate of the RTS frame, taking the sending rate of the RTS frame one level higher than 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 the above method, optionally, after 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, the method further includes:
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 as 0;
sending an RTS frame corresponding to the current data to be sent by using the current sending rate;
judging whether the RTS frame is sent successfully or not;
if the RTS frame is successfully sent, sending the current data to be sent;
judging whether the current data to be sent is sent successfully or not;
if the current data to be sent is successfully sent, resetting the sending times to 0, returning to the execution step, after the state of an RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to the current data to be sent is sent, 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 until all the data to be sent are sent;
if the current data to be sent is not successfully sent, updating the sending times by using a numerical value obtained by adding 1 to the sending times;
judging whether the sending times reach the upper limit of the data sending times or not;
if the sending times reach the upper limit of the data sending times, discarding the current data to be sent, returning to the execution step, after the state of an RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to the current data to be sent is sent, 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 until all the data to be sent is sent;
if the sending times do not reach the upper limit of the data sending times, the current data to be sent which is not sent successfully is used as the current data to be sent again, and the method returns to the execution step, after the state of an RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to the current data to be sent is sent, and determines 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 RTS frame is unsuccessfully sent, judging whether the sending times of the RTS frame corresponding to the current data to be sent reach the upper limit of the sending times of the RTS frame;
if the sending times of the RTS frame corresponding to the current data to be sent reaches the sending times upper limit of the RTS frame, discarding the current data to be sent, and returning to the execution step, after the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent, 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 sending times of the RTS frame corresponding to the current data to be sent do not reach the upper limit of the sending times of the RTS frame, continuously judging whether the current sending rate is the lowest sending rate of the RTS frame;
if the current sending rate is the lowest sending rate of the RTS frame, returning to the executing step, and sending an RTS frame corresponding to the current data to be sent by using the current sending rate;
and if the current sending rate is not the lowest sending rate of the RTS frame, taking the sending rate of the RTS frame which is one level lower than the current sending rate as the current sending rate, and returning to the execution step to send an RTS frame corresponding to the current data to be sent by using the current sending rate.
In the above method, optionally, after the setting the state of the RTS/CTS mechanism to be activated and before sending the first RTS frame corresponding to the current data to be sent, before 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, the method further includes:
acquiring the data length of the current data to be sent;
if the data length of the current data to be sent is smaller than a data length threshold value, setting the state of the RTS/CTS mechanism to be stopped, wherein the state of the RTS/CTS mechanism comprises starting and stopping;
if the data length of the current data to be sent is greater than a data length threshold, continuously acquiring other interference environment characterization parameters on the premise of acquiring an RTS packet error rate corresponding to the current data to be sent, wherein the other interference environment characterization parameters at least comprise the data packet error rate corresponding to the current time period;
and determining the state of the RTS/CTS mechanism according to the interference environment characterization parameters and the interference environment characterization parameter threshold.
In the foregoing method, optionally, the obtaining the interference environment characterizing parameter includes:
acquiring the total number of data frames sent in the current time period and the number of data frames which are sent in the current time period but have not received an ACK reply frame;
and dividing the quotient of the number of the data frames which are sent in the current time period but have not received the ACK reply frame and the total number of the data frames which are sent in the current time period by the total number of the data frames which are sent in the current time period, wherein the quotient is used as the data packet error rate corresponding to the current time period.
In the foregoing method, optionally, the determining the 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 state of the RTS/CTS mechanism to stop;
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 state of the RTS/CTS mechanism to stop;
and if the data packet error rate corresponding to the current time period is greater than the data packet error rate threshold, setting the state of the RTS/CTS mechanism to be started.
In the above method, optionally, before the obtaining the data length of the current data to be sent, the method further includes:
detecting whether equipment using IEEE802.11b standard exists in a current Basic Service Set (BSS) and surrounding BSSs;
setting the state of the RTS/CTS mechanism to start if a device using IEEE802.11b standard exists in the current basic service set BSS or the surrounding basic service set BSS;
and if no equipment using the IEEE802.11b standard exists in the current basic service set BSS or the surrounding basic service sets BSS, executing the acquisition of the data length of the current data to be sent. .
In a second aspect, an embodiment of the present invention provides an apparatus for adjusting an RTS frame transmission rate, including:
the packet error rate acquisition module 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 after the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent;
and the initial sending rate determining module is used for determining the initial sending 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 sending rate of the RTS frame corresponding to the previous time period.
In a third aspect, an embodiment of the present invention provides a wireless data transmission device, where the wireless data transmission device includes:
one or more processors;
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 adjusting an RTS frame transmission rate according to the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a storage medium containing computer-executable instructions, which are used to execute an RTS frame transmission rate adjustment method according to an embodiment of the present invention when executed by a computer processor.
The invention provides a method, a device, equipment and a storage medium for adjusting RTS frame sending rate, which are 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 after the state of an RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent, and then determining the first sending 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 first sending rate of the RTS frame corresponding to the previous time period.
Drawings
Fig. 1 is a flowchart of a method for adjusting an RTS frame sending rate according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for adjusting an RTS frame sending rate according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for adjusting an RTS frame sending rate according to a third embodiment of the present invention;
fig. 4 is a flowchart of a method for adjusting an RTS frame sending rate according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a method for adjusting an RTS frame sending rate according to a fifth embodiment of the present invention;
fig. 6 is a structural diagram of an apparatus for adjusting an RTS frame transmission rate according to a sixth embodiment of the present invention;
fig. 7 is a structural 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, embodiments of the present invention are described in further detail below 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 of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant elements of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a method for adjusting an RTS frame sending rate according to an embodiment of the present invention, where the method of this embodiment may be performed by an apparatus for adjusting an RTS frame sending rate, the apparatus may be implemented by hardware and/or software, and may be generally integrated in a wireless data transmission device, such as a computer, a router, and the like. The method of the embodiment specifically comprises the following steps:
101. after the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent, 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.
It will be appreciated that the RTS/CTS mechanism, while it may work well to solve the "hidden terminal" problem, creates some wireless data transmission overhead due to the transmission and reception of 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 can be increased, but because interference exists in the wireless data transmission path, in order to ensure effective transmission of the RTS frame, the transmission rate of the RTS frame should match the current interference situation of the wireless data transmission path, and cannot be set to the highest transmission rate. The method for adjusting the RTS frame transmission rate in steps 101 to 102 according to the embodiment of the present invention can achieve matching between the transmission rate of the first RTS frame corresponding to one data to be transmitted and the current interference situation of the transmission path of the wireless data. In this embodiment, the current interference situation of the wireless data transmission path is represented by the "RTS packet error rate".
Since the time interval between the "current time period" and the "previous time period" is relatively small, the interference situation of the wireless data transmission path of the "current time period" and the "previous time period" is 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 method 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 may specifically be directly using the RTS packet error rate corresponding to the previous time period as the RTS packet error rate corresponding to the current time period, or may also be 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 and the RTS packet error rate corresponding to the current time period, which is not limited in this embodiment. 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 CTS frame replies to the number of all RTS frames sent within the current time period.
102. And determining the initial sending 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 sending rate of the RTS frame corresponding to the previous time period.
In this embodiment, the first sending 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 sending rate of the RTS frame corresponding to the previous time period, and the determining method specifically may be:
1. according to the numerical value of the RTS packet error rate corresponding to the current time period, determining whether the initial rate of the RTS frame corresponding to the previous time period is directly used as the initial rate of the RTS frame corresponding to the current time period, the data sending rate which is one level lower than the initial rate of the RTS frame corresponding to the previous time period is used as the initial rate of the RTS frame corresponding to the current time period, or the data sending rate which is one level higher than the initial rate of the RTS frame corresponding to the previous time period is used as the initial rate of the RTS frame corresponding to the current time period.
2. And according to the numerical value of the RTS packet error rate corresponding to the current time period, determining whether the data sending rate which is one level lower than the initial sending rate of the RTS frame corresponding to the previous time period is used as the initial sending rate of the RTS frame corresponding to the current time period, or determining whether the data sending rate which is one level higher than the initial sending rate of the RTS frame corresponding to the previous time period is used as the initial sending rate of the RTS frame corresponding to the current time period.
3. And according to the numerical value of the RTS packet error rate corresponding to the current time period, determining whether the initial rate of the RTS frame corresponding to the previous time period is directly used as the initial rate of the RTS frame corresponding to the current time period or the data sending rate which is one level higher than the initial rate of the RTS frame corresponding to the previous time period is used as the initial rate of the RTS frame corresponding to the current time period.
The invention provides a method for adjusting RTS frame sending rate, which comprises the steps of firstly setting the state of an RTS/CTS mechanism to be started and before sending a first RTS frame corresponding to current data to be sent, 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, and then determining the first sending 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 first sending rate of the RTS frame corresponding to the previous time period.
Example two
Fig. 2 is a flowchart of a method for adjusting an RTS frame sending rate according to a second embodiment of the present invention. In this embodiment, a specific implementation manner is provided that determines the RTS packet error rate corresponding to the current time period jointly according to the sending number of RTS frames in the current time period, the RSSI value, and the RTS packet error rate corresponding to the previous time period, and determines the first sending rate of RTS frames corresponding to the current time period jointly according to the first and second packet error rate thresholds, the lowest and highest sending rates of RTS frames, the RTS packet error rate corresponding to the current time period, and the first sending rate of RTS frames corresponding to the previous time period.
Correspondingly, the method of the embodiment specifically includes:
201. and acquiring the sending quantity of the RTS frames in the current time period after the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent.
In this embodiment, the RTS packet error rate corresponding to the current time period is determined through steps 201 to 207.
It can be understood that, since the RTS/CTS mechanism is not always on, if the RTS/CTS mechanism is not always on, the RTS packet error rate corresponding to the current time period cannot be directly calculated. Therefore, before the RTS packet error rate corresponding to the current time period is obtained, the sending number of the RTS frames in the current time period is obtained, and then it is determined whether the sending number of the RTS frames in the current time period is zero or not through step 202, and different operations are performed for two different determination results.
202. And judging whether the sending quantity of the RTS frames in the current time period is zero, if not, executing step 203, and if so, executing step 204.
203. And acquiring the RTS packet error rate of the period 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 sending number of the RTS frames in the current time period is not zero, that is, the RTS/CTS mechanism is started in the current time period, the RTS packet error rate corresponding to the current time period may be directly determined 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 RTS packet error rate corresponding to the current time period specifically refers to a ratio of the number of RTS frames which do not receive a CTS frame to the number of all RTS frames sent in the current time period.
204. And acquiring the RSSI value.
It can be understood 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 reflect 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 data to be sent is determined according to the comparison result between the RSSI value and the signal strength threshold. The signal strength threshold may typically be-65 dBm or the like.
205. And judging whether the RSSI value is greater than a signal strength threshold value, if not, executing a step 206, and if so, executing a step 207.
206. 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.
207. 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 2 to obtain the RTS packet error rate corresponding to the current time period.
208. And judging whether the RTS packet error rate corresponding to the current time period is greater than a first RTS packet error rate threshold, if so, executing step 209, and if not, executing step 212.
In this embodiment, in steps 208 to 216, the RTS packet error rate corresponding to the current time period is compared with the first RTS packet error rate threshold and the second RTS packet error rate threshold, so as to determine the first sending rate of the RTS frame corresponding to the current time period, where the first RTS packet error rate threshold should be greater than the second RTS packet error rate threshold. The first packet error rate threshold may typically be 30% or the like, and the second packet error rate threshold may typically be 10% or the like.
209. And judging whether the initial sending rate of the RTS frame corresponding to the previous time period is the lowest sending rate of the RTS frame, if not, executing step 210, and if so, executing step 211.
It is understood that the IEEE802.11 standard common to each version of the wireless lan hierarchically specifies data transmission rates, and specifies 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 strong, and the first sending rate of the RTS frame corresponding to the current time period needs to be set to a data transmission rate one level lower than the first sending rate of the RTS frame corresponding to the previous time period.
Since the IEEE802.11 standard common to each version of the wlan stipulates the lowest data transmission rate, in this embodiment, it is first necessary to determine whether the first sending rate of the RTS frame corresponding to the previous time period is the lowest sending rate of the RTS frame.
210. 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 initial 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 that is one level lower than the initial rate of the RTS frame corresponding to the previous time period is used as the initial rate of the RTS frame corresponding to the current time period.
211. And taking the lowest sending rate of the RTS frame as the initial sending rate of the RTS frame corresponding to the current time period.
In this embodiment, if the initial 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, the lowest sending rate of the RTS frame can only be used as the initial rate of the RTS frame corresponding to the current time period.
212. And judging whether the RTS packet error rate corresponding to the current time period is smaller than a second RTS packet error rate threshold, if not, executing step 213, and if so, executing step 214.
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, 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 first sending rate of the RTS frame corresponding to the previous time period can be used as the first sending rate of the RTS frame corresponding to the current time period, thereby reducing the wireless data transmission overhead generated by the RTS/CTS mechanism.
213. 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 situation of the wireless data transmission path is similar when the wireless data transmission path is transmitted in the previous time period before the interference situation of the current wireless data transmission path, and therefore, the initial rate of the RTS frame corresponding to the previous time period is used as the initial rate of the RTS frame corresponding to the current time period.
214. And judging whether the initial rate of the RTS frame corresponding to the previous time period is the highest sending rate of the RTS frame, if so, executing step 215, and if not, executing step 216.
Similarly, since the IEEE802.11 standard common to each version of the wlan specifies the highest data transmission rate, in this embodiment, it is first necessary to determine whether the first transmission rate of the RTS frame corresponding to the previous time period is the highest transmission rate of the RTS frame.
215. And taking the highest sending rate of the RTS frame as the initial sending rate of the RTS frame corresponding to the current time period.
In this embodiment, if the first sending rate of the RTS frame corresponding to the previous 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, the highest sending rate of the RTS frame can only be used as the first sending rate of the RTS frame corresponding to the current time period.
216. 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, if the initial rate of the RTS frame corresponding to the previous time period is not the highest transmission rate of the RTS frame, the transmission rate of the RTS frame one level higher than the initial rate of the RTS frame corresponding to the previous time period is used as the initial rate of the RTS frame corresponding to the current time period.
The embodiment of the invention provides a method for adjusting RTS frame sending rate, which is characterized in that the RTS packet error rate corresponding to the current time period is determined according to the sending number of RTS frames in the current time period, an RSSI value and the RTS packet error rate corresponding to the previous time period, so that the RTS packet error rate corresponding to the current time period can reflect the current interference situation of a wireless data transmission path more accurately, the method is further characterized in that the first sending rate of the RTS frame corresponding to the current time period is determined according to a first packet error rate threshold value, a second packet error rate threshold value, the lowest sending rate and the highest sending rate 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, and the matching degree of the first sending rate of the RTS frame corresponding to the current time period and the current interference situation of the wireless data transmission path is improved.
On the basis of the above embodiments, the RTS packet error rate corresponding to the current time period is determined 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, and the determination is specifically as follows: 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 2 to obtain the RTS packet error rate corresponding to the current time period.
The benefits of this arrangement are: therefore, the RTS packet error rate obtained by calculation can better reflect the current environment interference situation.
On the basis of the above embodiments, 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, and the determination is as follows: and dividing the sum of the RTS packet error rate corresponding to the previous time period and the numerical value of 0.5 by 2 to obtain the RTS packet error rate corresponding to the current time period.
The benefits of this arrangement are: therefore, the RTS packet error rate obtained by calculation can better reflect the current environmental interference condition.
EXAMPLE III
Fig. 3 is a flowchart of a method for adjusting an RTS frame transmission rate according to a third embodiment of the present invention. The present embodiment is optimized based on the above embodiments, and in this embodiment, a specific embodiment is provided in which a sending process of current data to be sent and a sending process of an RTS frame corresponding to the current data to be sent are added.
Correspondingly, the method of the embodiment specifically includes:
301. after the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent, 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.
302. And determining the initial sending 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 sending rate of the RTS frame corresponding to the previous time period.
303. 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 sending rate of the RTS frame corresponding to the current time period, the first sending rate of the RTS frame is determined as the sending speed of the first RTS frame corresponding to the current data to be sent.
It is understood that, in the process of transmitting data, if there is a group of data that fails to be transmitted multiple times, the data that fails to be transmitted multiple times is generally discarded in order not to affect the normal transmission of the subsequent data. Therefore, in this embodiment, the data of the number of times of transmission corresponding to the current data to be transmitted is set, and is used to count the total number of times of transmission of the current data to be transmitted.
304. And sending an RTS frame corresponding to the current data to be sent by using the current sending rate.
305. And judging whether an RTS frame is sent successfully or not, if so, executing the step 306, and if not, executing the step 311.
It will be appreciated that after sending an RTS frame, a CTS frame may be successfully received, i.e., the RTS frame may be acknowledged as successfully sent. Therefore, in the present embodiment, it can be determined whether the RTS frame is successfully transmitted by determining whether the CTS frame corresponding to the RTS frame transmitted in step 304 is successfully received.
306. And sending the current data to be sent.
307. And judging whether the current data to be sent is sent successfully, if so, executing step 308, and if not, executing step 309.
It is understood that after a data frame is transmitted, an ACK frame may be successfully received, i.e., the data frame may be confirmed to be successfully transmitted. Therefore, in the present embodiment, it can be determined whether the data frame is successfully transmitted by determining whether the ACK frame corresponding to the data frame transmitted in step 306 is successfully received.
In this embodiment, after the current data to be sent is successfully sent, the step 301 is executed again, at this time, the next data to be sent becomes the current data to be sent, and the RTS first sending rate corresponding to the current time period is determined again. As can be seen, in this embodiment, each time a new data to be sent is sent, the RTS initial rate corresponding to the current time period is determined again, and is used as the initial rate of the RTS frame corresponding to the new data to be sent.
308. And resetting the sending times to 0, and returning to execute the step 301 until all the data to be sent are sent.
In this embodiment, if the current data to be sent is successfully sent in the sending process, the sending times are cleared, so as to use the "sending times" to continue to count the sending times of the next data to be sent.
309. And updating the sending times by using the value obtained by adding 1 to the sending times.
In this embodiment, if the current data to be sent fails to be sent in the sending process, the value of the "sending times" is increased by 1, so that the value of the sending times is equal to the number of times that the current data to be sent fails to be sent.
310. And judging whether the sending times reach the upper limit of the data sending times, if so, executing step 311, and if not, executing step 312.
An upper limit of the repeated sending times of the data frame is set in the RTS/CTS mechanism, and when the repeated sending times of the data frame reaches the upper limit, the data frame is discarded, and the following data frame is continuously sent.
Therefore, in this embodiment, after the data frame fails to be transmitted, it is first determined whether the number of times of transmitting the current data to be transmitted reaches the upper limit of the number of times of transmitting the data.
311. And discarding the current data to be sent, and returning to execute step 301 until all the data to be sent are sent.
312. And taking the current data to be sent which is not successfully sent as the current data to be sent again, and returning to execute the step 301.
In this embodiment, if the sending frequency does not reach the upper limit of the sending frequency, 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 first rate corresponding to the current time period is used as the current sending rate of the RTS frame.
313. And judging whether the sending times of the RTS frame corresponding to the current data to be sent reach the upper limit of the sending times of the RTS frame, if so, executing step 314, and if not, executing step 315.
The RTS/CTS mechanism is also provided with an upper limit of RTS frame repeated sending times, when the RTS frame repeated sending times reaches the upper limit, the current data frame to be sent is discarded, and the following data frame is continuously sent.
Therefore, in this embodiment, after the RTS frame fails to be sent, it is first determined whether the number of times of sending the RTS frame corresponding to the current data to be sent reaches the upper limit of the number of times of sending the RTS frame.
314. And discarding the current data to be sent, and returning to execute the step 301 until all the data to be sent are sent.
315. And judging whether the current sending rate is the lowest sending rate of the RTS frame, if so, returning to the step 304, and if not, executing the step 316.
In this embodiment, after the RTS frame is unsuccessfully transmitted, it is determined 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 decreased. However, since the IEEE802.11 standard common to each version of the wlan specifies the lowest data transmission rate, in this embodiment, it is first necessary to determine whether the first sending rate of the RTS frame corresponding to the previous time period is the lowest sending rate of the RTS frame.
316. And taking the sending rate of the RTS frame which is one level lower than the current sending rate as the current sending rate, and returning to execute the step 304 until all the data to be sent are sent.
The embodiment of the invention provides a method for adjusting the RTS frame sending rate, which particularly increases the sending process of the current data to be sent and the sending process of the RTS frame corresponding to the current data to be sent, improves the matching degree of the sending rate of the RTS frame corresponding to the current data to be sent and the current interference condition of a wireless data transmission path, and further improves the sending success rate of the RTS frame.
Example four
Fig. 4 is a flowchart of a method for adjusting an RTS frame transmission rate according to a fourth embodiment of the present invention. The present embodiment is optimized based on the above embodiments, and in the present embodiment, a specific implementation manner is provided in which a determination process of an operation state of an RTS/CTS mechanism is added.
Correspondingly, the method of the embodiment specifically includes:
401. and acquiring the data length of the current data to be sent.
As will be understood by those skilled in the art, the RTS/CTS mechanism is mainly used to solve the "hidden terminal" problem, and when two or more stations STA in the wireless lan simultaneously transmit data to the same AP, a data loss phenomenon may occur, and the longer the data length transmitted by the stations STA, the greater the possibility of data loss.
Therefore, in this embodiment, the data length of the current data to be 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, which is composed of steps 401 to 404, the data length of the current data to be transmitted is first obtained, and then different operations are performed according to the comparison result between the data length of the current data to be transmitted and the data length threshold.
402. And if the data length of the current data to be sent is smaller than the data length threshold value, setting the operation state of the RTS/CTS mechanism to stop, wherein the operation state of the RTS/CTS mechanism comprises starting and stopping.
In this embodiment, if the data length of the current data to be sent is smaller than the data length threshold, the operation state of the RTS/CTS mechanism is set to stop, where the data length threshold may typically be 300 bytes.
It can be appreciated that, after the RTS/CTS mechanism is activated, the sending of the RTS frame and the receiving of the CTS frame may increase additional data transmission overhead, which may reduce the data throughput performance of the wireless device to some extent. Meanwhile, because the problem of 'hidden terminal' has little influence on the success rate of sending shorter data, when the length of data to be sent is shorter, the RTS/CTS mechanism is generally not enabled.
Further, before step 101 in this embodiment is executed, the RTS/CTS mechanism may be in a start state or a stop state. Before step 101 in this embodiment is executed, when the RTS/CTS mechanism is in the activated state, setting the operating state of the RTS/CTS mechanism to be stopped means stopping the RTS/CTS mechanism, and setting the operating state of the RTS/CTS mechanism to be activated means keeping the operating state of the RTS/CTS mechanism unchanged; when the RTS/CTS mechanism is in a stop state before step 101 in this embodiment is executed, then "setting the operating state of the RTS/CTS mechanism to stop" means keeping the start state of the RTS/CTS mechanism unchanged, and "setting the operating state of the RTS/CTS mechanism to start" means starting the RTS/CTS mechanism.
403. And if the data length of the current data to be sent is greater than the data length threshold, obtaining interference environment characterization parameters, wherein the interference environment characterization parameters at least comprise RTS packet error rate and data packet error rate corresponding to the current time period, and 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 implementation, if the data length of the current data to be sent is greater than the data length threshold, the interference environment characterization parameter is continuously obtained, and then the operating state of the RTS/CTS mechanism is further determined according to the obtained interference environment characterization parameter. The interference environment characterization parameter specifically refers to a parameter for representing an interference situation of a transmission path of data.
It can be understood by those skilled in the art that, when the RTS frame is sent and the success rate of receiving the corresponding CTS frame is low (that is, the RTS packet error rate is high), starting the RTS/CTS mechanism may reduce the data throughput performance of the wireless device and may increase the packet loss rate of data to be sent in a scenario of unidirectional transmission.
In this embodiment, the interference environment characterization parameters at least include RTS packet error rate and data packet error rate respectively corresponding to the current time period. Further, the interference environment characterization parameter may further include data such as channel noise level.
404. And determining the operation state of the RTS/CTS mechanism according to the interference environment characterization parameters and the interference environment characterization parameter threshold.
In this embodiment, after obtaining the interference environment characterization parameter, the obtained interference environment characterization parameter is numerically compared with an interference environment characterization parameter threshold, and the operating state of the RTS/CTS mechanism is determined according to the comparison result.
Illustratively, if the RTS packet error rate corresponding to the current time period is smaller 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 operating state of the RTS/CTS mechanism may be set to start; 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 stop; if the 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 can be set to stop. The data packet error rate threshold may typically be 10%, and the RTS packet error rate threshold may typically be 60%.
405. After the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent, the initial sending rate of the RTS frame corresponding to the current time period is determined according to the RTS packet error rate corresponding to the current time period and the initial sending rate of the RTS frame corresponding to the previous time period.
The embodiment of the invention provides a method for adjusting RTS frame sending rate, which specifically increases a determination process of an RTS/CTS mechanism running state, solves the technical defect that the using condition of the RTS/CTS mechanism in the prior art cannot be matched with the current interference environment in real time, improves the transmission efficiency of wireless data when the RTS/CTS mechanism is started, and realizes the improvement of the data throughput performance of wireless data transmission equipment and the reduction of the data packet error rate of the wireless data transmission equipment in a complex interference environment.
EXAMPLE five
Fig. 5 is a flowchart of a method for adjusting an RTS frame sending rate according to a fifth embodiment of the present invention. The present embodiment is optimized based on the above embodiments, and in this embodiment, a detection process for a device using IEEE802.11b standard is added, a method for acquiring a data packet error rate and an RTS packet error rate corresponding to a current time period is specified according to an interference environment characterization parameter and a threshold corresponding to the interference environment characterization parameter, and a specific implementation manner according to the interference environment characterization parameter and the threshold corresponding to the interference environment characterization parameter is specified.
Correspondingly, the method of the embodiment specifically includes:
501. it is detected whether devices using the IEEE802.11b standard exist in the current basic service set BSS and the surrounding basic service sets BSS.
It will be understood by those skilled in the art that the maximum data transmission rate of a device using the IEEE802.11b standard is only 11Mbps, while the maximum data transmission rate of a device using the IEEE802.11g standard can reach 54Mbps, and the maximum data transmission rate of a device using the IEEE802.11 n standard can reach more 300Mbps, so that when a device using the IEEE802.11b standard exists in the current BSS and the surrounding BSS, other devices should reduce the data transmission rate to be compatible with the device in order to enable the device to normally perform data transmission.
Since the enablement of the RTS/CTS mechanism may enable devices using the IEEE802.11 n standard as well as the IEEE802.11g standard to be compatible with devices using the IEEE802.11b standard. Therefore, in the present embodiment, a detection procedure for a device using the IEEE802.11b standard is added, and when a device using the IEEE802.11b standard is detected, the operation state of the RTS/CTS mechanism is set to be activated to achieve compatibility with the device using the IEEE802.11b standard.
502. If there is a device using the ieee802.11b standard in the current basic service set BSS or the surrounding basic service set BSS, the state of the RTS/CTS mechanism is set to start.
503. And if no equipment using the IEEE802.11b standard exists in the current basic service set BSS or the surrounding basic service sets BSS, acquiring the data length of the current data to be transmitted.
504. And judging whether the data length of the current data to be sent is smaller than a data length threshold, if so, executing step 505, and if not, executing step 506.
505. The operational state of the RTS/CTS mechanism is set to stop.
506. And acquiring the total number of the data frames sent in the current time period and the number of the data frames which are sent in the current time period but have not received the ACK reply frame.
In this embodiment, the data packet error rate corresponding to the current time period is obtained through step 506 and step 507.
In this embodiment, the packet error rate corresponding to the current time period is specifically determined by setting the total number of data frames sent in the current time period and the number of data frames sent in the current time period but without receiving an ACK reply frame. Wherein the current time period may typically be 500 milliseconds, etc.
Specifically, the determination of the current time period may specifically use the start execution time of this step as the end time of the set time period, use the end time of step 505 as the end time of the current time period, use the start execution time of step 501 as the end time of the current time period, and the like, which is not limited in this embodiment.
Generally, after a station STA transmits a data frame to an access point AP, if the access point AP does not receive or receives incorrect data, the access point does not reply an ACK frame to the station STA, that is, when the data frame transmission fails, the station STA does not receive the ACK frame. Therefore, in this embodiment, the data packet error rate corresponding to the current time period is determined by using "the number of data frames that are transmitted in the current time period but have not received an ACK reply frame".
507. And dividing the quotient of the number of the data frames which are sent in the current time period but have not received the ACK reply frame and the total number of the data frames which are sent in the current time period by the quotient to be used as the data packet error rate corresponding to the current time period.
508. And acquiring the sending quantity of the RTS frames in the current time period.
509. And judging whether the sending quantity of the RTS frames in the current time period is zero, if not, executing the step 510, and if so, executing the step 511.
510. 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.
511. And acquiring the RSSI value.
512. It is determined whether the RSSI value is greater than the signal strength threshold, if not, step 513 is performed, and if so, step 514 is performed.
513. 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.
514. 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.
515. And judging whether the RTS packet error rate corresponding to the current time period is smaller than a third RTS packet error rate threshold, if not, executing step 516, and if so, executing step 517.
In this embodiment, steps 515 to 519 are a process of determining an operation state of the RTS/CTS mechanism according to the RTS packet error rate and the data packet error rate corresponding to the current time period, and the third RTS packet error rate threshold and the data packet error rate threshold.
In this embodiment, first, the RTS packet error rate corresponding to the current time period is compared with the third RTS packet error rate threshold, and different operations are performed according to different comparison results. The data packet error rate threshold may typically be 10%.
516. The operational state of the RTS/CTS mechanism is set to stop.
517. And 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 the step 518, and if so, executing the step 519.
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 continuously compared with the data packet error rate threshold in terms of the magnitude, and different operations are executed according to different comparison results.
518. The operational state of the RTS/CTS mechanism is set to stop.
519. The operational state of the RTS/CTS mechanism is set to enabled.
520. After the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent, the initial sending rate of the RTS frame corresponding to the current time period is determined according to the RTS packet error rate corresponding to the current time period and the initial sending rate of the RTS frame corresponding to the previous time period.
The embodiment of the invention provides a method for adjusting RTS frame sending rate, which embodies the method for acquiring the data packet error rate corresponding to the current time period, so that the acquired data packet error rate can correctly reflect the current environmental interference condition, also embodies the method for determining the running state of an RTS/CTS mechanism according to the interference environmental characterization parameter and the corresponding threshold thereof, so that the running state of the RTS/CTS mechanism is matched with the current environmental interference condition, also adds the detection process of equipment using IEEE802.11b standard, and ensures the normal starting of the equipment using IEEE802.11b standard.
EXAMPLE six
Fig. 6 is a structural diagram of an apparatus for adjusting an RTS frame transmission rate according to a sixth embodiment of the present invention. As shown in fig. 6, the apparatus includes: a packet error rate obtaining module 601 and an initial rate determining module 602, where:
a packet error rate obtaining module 601, configured to determine, according to an RTS packet error rate corresponding to a previous time period, an RTS packet error rate corresponding to the current time period after setting the state of the RTS/CTS mechanism to start and before sending a first RTS frame corresponding to current data to be sent;
the initial rate determining module 602 is configured to determine 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.
The invention provides a device for adjusting RTS frame sending rate, which firstly determines the RTS packet error rate corresponding to the current time period according to the RTS packet error rate corresponding to the previous time period after the state of an RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to the current data to be sent is sent by a packet error rate acquisition module 601, and then determines the first sending 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 first sending rate of the RTS frame corresponding to the previous time period by a first sending rate determination module 602.
The device solves the problems that the sending rate of the RTS frame in the RTS/CTS mechanism in the prior art can not be changed in due time or has poor effect according to the current data transmission environment, and the transmission cost of the RTS is high, realizes that the first sending rate of the RTS frame corresponding to the data to be sent can be adaptively adjusted according to the current interference condition of the transmission path of the wireless data, and reduces the packet error rate of the RTS to a certain extent, thereby reducing the transmission cost of the RTS/CTS mechanism.
On the basis of the foregoing embodiments, the packet error rate obtaining module 601 may include:
an RTS frame sending quantity obtaining unit, configured to obtain the sending quantity of RTS frames in the current time period;
the quantity judging unit is used for judging whether the sending quantity of the RTS frames in the current time period is zero or not;
a first RTS packet error rate determining unit, configured to obtain an RTS packet error rate corresponding to a current time period if the number of RTS frames sent in the current time period is not zero, and determine 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 a previous time period;
the RSSI acquisition unit is used for acquiring an RSSI value if the sending number of the RTS frames in the current time period is zero;
a signal strength judging unit for judging whether the RSSI value is greater than a signal strength threshold value;
the second RTS packet error rate determining unit is used for taking the RTS packet error rate corresponding to the previous event 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;
and a third RTS packet error rate determining unit, configured to determine, according to the RTS packet error rate corresponding to the previous time period, the RTS packet error rate corresponding to the current time period if the RSSI value is greater than the signal strength threshold.
On the basis of the foregoing 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 2 to obtain the RTS packet error rate corresponding to the current time period.
On the basis of the foregoing embodiments, the third RTS packet error rate determination unit may specifically be configured to:
and dividing the sum of the RTS packet error rate corresponding to the previous time period and the numerical value of 0.5 by 2 to obtain the RTS packet error rate corresponding to the current time period.
On the basis of the foregoing embodiments, the initial rate determining module 602 may include:
the first packet error rate judging unit is used for judging whether the RTS packet error rate corresponding to the current time period is greater than a first RTS packet error rate threshold value or not;
the first initial sending rate judging unit is used for continuously judging whether the initial sending rate of the RTS frame corresponding to the previous time period is the lowest sending rate of the RTS frame or not if the RTS packet error rate corresponding to the current time period is greater than the first RTS packet error rate threshold value;
a first initial rate determining unit, configured to, if the initial rate of the RTS frame corresponding to the previous time period is not the lowest sending rate of the RTS frame, use a sending rate of the RTS frame that is one level lower than 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;
a second initial rate determining unit, configured to, if the initial rate of the RTS frame corresponding to the previous time period is the lowest sending rate of the RTS frame, use the lowest sending rate of the RTS frame as the initial rate of the RTS frame corresponding to the current time period;
a second packet error rate judgment unit, configured to, if the RTS packet error rate corresponding to the current time period is not greater than the first RTS packet error rate threshold, continuously judge whether the RTS packet error rate corresponding to the current time period is smaller than a second RTS packet error rate threshold;
a third initial sending rate determining unit, configured to, if the RTS packet error rate corresponding to the current time period is not less than the second RTS packet error rate threshold, use the initial sending rate of the RTS frame corresponding to the previous time period as the initial sending rate of the RTS frame corresponding to the current time period;
a second initial sending rate judging unit, configured to, if the RTS packet error rate corresponding to the current time period is smaller than a second RTS packet error rate threshold, continue to judge whether the initial sending rate of the RTS frame corresponding to the previous time period is the highest sending rate of the RTS frame;
a fourth initial rate determining unit, configured to, if the initial rate of the RTS frame corresponding to the previous time period is the highest initial rate of the RTS frame, use the highest initial rate of the RTS frame as the initial rate of the RTS frame corresponding to the current time period;
and a fifth initial rate determining unit, configured to, if the initial rate of the RTS frame corresponding to the previous time period is not the highest sending rate of the RTS frame, use the sending rate of the RTS frame that is one level higher than 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.
On the basis of the above embodiments, the method may further include:
the first sending rate determining module is used for determining the first sending 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 first sending rate of the RTS frame corresponding to the previous time period, then 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 as 0;
the RTS frame sending module is used for sending an RTS frame corresponding to the current data to be sent by using the current sending rate;
the RTS frame judging module is used for judging whether an RTS frame is sent successfully or not;
the data sending module is used for sending the current data to be sent if one RTS frame is sent successfully;
the data transmission judging module is used for judging whether the current data to be transmitted is transmitted successfully;
the first returning module is used for resetting the sending times to 0 if the current data to be sent is sent successfully, and returning to the executing step, after the state of the RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to the current data to be sent is sent, 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 until all the data to be sent is sent;
the sending frequency updating module is used for updating the sending frequency by using a numerical value obtained by adding 1 to the sending frequency if the current data to be sent is not sent successfully;
the data sending frequency judging module is used for judging whether the sending frequency reaches the upper limit of the data sending frequency;
the first data discarding module is used for discarding the current data to be sent if the sending times reaches the upper limit of the data sending times, and returning to the execution step, after the state of the RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to the current data to be sent is sent, 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 until all the data to be sent are sent;
a previous data to be sent adjusting module, configured to, if the sending time does not reach the upper limit of the data sending time, take the current data to be sent that is not successfully sent again as the current data to be sent, and return to the execution step to determine, according to the RTS packet error rate corresponding to the previous time period, the RTS packet error rate corresponding to the current time period until all the data to be sent is sent after the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent;
the sending time judging module is used for judging whether the sending time of the RTS frame corresponding to the current data to be sent reaches the upper limit of the sending time of the RTS frame if one RTS frame is not sent successfully;
a second data discarding module, configured to discard the current data to be sent if the number of sending times of the RTS frame corresponding to the current data to be sent reaches an upper limit of the number of sending times of the RTS frame, and return to the execution step to determine, according to an RTS packet error rate corresponding to a previous time period, an RTS packet error rate corresponding to the current time period until all data to be sent is sent after the state of the RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to the current data to be sent is sent;
a sending rate judging module, configured to, if the sending time of the RTS frame corresponding to the current data to be sent does not reach the upper limit of the sending time of the RTS frame, continuously judge whether the current sending rate is the lowest sending rate of the RTS frame;
a second returning module, configured to return to the executing step to send an RTS frame corresponding to current data to be sent using the current sending rate if the current sending rate is the lowest sending rate of the RTS frame;
and the sending rate determining module is used for taking the sending rate of the RTS frame which is one level lower than the current sending rate as the current sending rate if the current sending rate is not the lowest sending rate of the RTS frame, and returning to the executing step to send the RTS frame corresponding to the current data to be sent by using the current sending rate.
On the basis of the above embodiments, the method may further include:
the data length acquisition module is used for acquiring the data length of the current data to be sent before 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 after the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent;
the data length comparison module is used for setting the state of an RTS/CTS mechanism to be stopped if the data length of the current data to be sent is smaller than a data length threshold value, wherein the state of the RTS/CTS mechanism comprises starting and stopping;
the parameter obtaining module is used for continuously obtaining other interference environment characterization parameters on the premise of obtaining an RTS packet error rate corresponding to the current data to be sent if the data length of the current data to be sent is greater than a data length threshold, wherein the other interference environment characterization parameters at least comprise a data packet error rate corresponding to a current time period;
and the parameter comparison module is used for determining the state of the RTS/CTS mechanism according to the interference environment characterization parameter and the interference environment characterization parameter threshold.
On the basis of the foregoing embodiments, the parameter obtaining module may include:
a total data frame number acquiring unit, configured to acquire a total number of data frames sent in a current time period and a number of data frames sent 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 sent in the current time period but have not received the ACK reply frame by the total number of the data frames sent in the current time period to obtain a quotient which is used as the data packet error rate corresponding to the current time period.
On the basis of the above embodiments, the parameter comparison module 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 or not;
the first state determining unit is used for setting the state of the RTS/CTS mechanism to stop if the RTS packet error rate corresponding to the current time period is not less than the RTS packet error rate threshold value;
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 greater than the data packet error rate threshold value or not if the RTS packet error rate corresponding to the current time period is less than the RTS packet error rate threshold value;
a second state determining unit, configured to set a state of the RTS/CTS mechanism to stop if a packet error rate corresponding to the current time period is not greater than a packet error rate threshold;
and the third state determining unit is used for setting the 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 value.
On the basis of the above embodiments, the method may further include:
the device determining module is used for detecting whether devices using the IEEE802.11b standard exist in the current basic service set BSS and the surrounding basic service sets BSS before the data length of the current data to be sent is obtained;
an operation state determining module of the RTS/CTS mechanism, configured to set a state of the RTS/CTS mechanism to start if a device using the IEEE802.11b standard exists in a current Basic Service Set (BSS) or a surrounding Basic Service Set (BSS);
and the data acquisition module is used for acquiring the data length of the current data to be sent if the current basic service set BSS or the surrounding basic service set BSS does not have equipment using the IEEE802.11b standard.
The device for adjusting the RTS frame transmission rate according to the embodiment of the present invention can be used to perform the method for adjusting the RTS frame transmission rate according to any embodiment of the present invention, and has corresponding functional modules to achieve the same advantageous effects.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of a wireless data transmission apparatus according to a seventh embodiment of the present invention, as shown in fig. 7, the wireless data transmission apparatus includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of the processors 70 in the wireless data transmission device may be one or more, and one processor 70 is taken as an example in fig. 7; the processor 70, the memory 71, the input device 72 and the output device 73 in the wireless data transmission apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 7.
The memory 71 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as modules corresponding to the RTS frame sending rate adjusting method in the embodiment of the present invention (for example, the packet error rate obtaining module 601 and the initial sending rate determining module 602 in the RTS frame sending rate adjusting device). The processor 70 executes various functional applications and data processing of the wireless data transmission device by executing software programs, instructions, and modules stored in the memory 71, that is, implements the RTS frame transmission rate adjustment method described above.
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, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the 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, the memory 71 may further include memory located remotely from the 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 device 72 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the wireless data transmission apparatus. The output device 73 may include a display device such as a display screen.
Example eight
An eighth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions, when executed by a computer processor, are configured to perform a method for adjusting an RTS frame sending rate, where the method includes:
after the state of an RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to current data to be sent is sent, 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;
and determining the initial sending 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 sending rate of the RTS frame corresponding to the previous time period.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the adjustment of the RTS frame sending rate provided by any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the apparatus for adjusting an RTS frame sending rate, each unit and each module included in the apparatus are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (12)
1. A method for adjusting an RTS frame transmission rate, comprising:
after the state of an RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to current data to be sent is sent, 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;
determining the initial sending 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 sending rate of the RTS frame corresponding to the previous time period;
after the first sending rate of the RTS frame corresponding to the current time period is determined, the first sending rate of the RTS frame is determined as the sending speed of the first RTS frame corresponding to the current data to be sent;
the 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 includes:
acquiring the sending quantity of RTS frames in the current time period;
judging whether the sending quantity of the RTS frames in the current time period is zero or not;
if the sending quantity of the RTS frames in the current time period is not zero, 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;
if the sending quantity of the 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 value, 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 greater than the signal strength threshold value, 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.
2. The method according to claim 1, wherein the 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 a 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 2 to obtain the RTS packet error rate corresponding to the current time period.
3. The method of claim 1, wherein the 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 greater than the signal strength threshold comprises:
and if the RSSI value is greater than the signal strength threshold value, taking the sum of the RTS packet error rate corresponding to the previous time period and the numerical value of 0.5, and dividing the sum by 2 as the RTS packet error rate corresponding to the current time period.
4. The method according to claim 1, wherein the 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 comprises:
judging whether the RTS packet error rate corresponding to the current time period is greater than a first RTS packet error rate threshold value or not;
if the RTS packet error rate corresponding to the current time period is greater than a first RTS packet error rate threshold, continuously judging whether the first sending rate of the RTS frame corresponding to the previous time period is the lowest sending rate of the RTS frame;
if the initial rate of the RTS frame corresponding to the previous time period is not the lowest sending rate of the RTS frame, taking the sending rate of the RTS frame one level lower than 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;
if the initial rate of the RTS frame corresponding to the previous time period is the lowest sending rate of the RTS frame, taking the lowest sending rate of the RTS frame as the initial rate of the RTS frame corresponding to the current time period;
if the RTS packet error rate corresponding to the current time period is not greater than the first RTS packet error rate threshold, continuously judging whether the RTS packet error rate corresponding to the current time period is less than a second RTS packet error rate threshold;
if the RTS packet error rate corresponding to the current time period is not less than a second RTS packet error rate threshold, 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;
if the RTS packet error rate corresponding to the current time period is smaller than a second RTS packet error rate threshold, continuously judging whether the first sending rate of the RTS frame corresponding to the previous time period is the highest sending rate of the RTS frame;
if the first sending rate of the RTS frame corresponding to the previous time period is the highest sending rate of the RTS frame, taking the highest sending rate of the RTS frame as the first sending rate of the RTS frame corresponding to the current time period;
and if the initial sending rate of the RTS frame corresponding to the previous time period is not the highest sending rate of the RTS frame, taking the sending rate of the RTS frame which is one level higher than the initial sending rate of the RTS frame corresponding to the previous time period as the initial sending rate of the RTS frame corresponding to the current time period.
5. The method according to any one of claims 1 to 4, wherein after 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, the method further includes:
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;
sending an RTS frame corresponding to the current data to be sent by using the current sending rate;
judging whether the RTS frame is successfully sent or not;
if the RTS frame is successfully sent, sending the current data to be sent;
judging whether the current data to be sent is sent successfully or not;
if the current data to be sent is successfully sent, resetting the sending times to 0, returning to the execution step, after the state of an RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to the current data to be sent is sent, 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 until all the data to be sent are sent;
if the current data to be sent is not successfully sent, updating the sending times by using the value obtained by adding 1 to the sending times;
judging whether the sending times reach the upper limit of the data sending times or not;
if the sending times reach the upper limit of the data sending times, discarding the current data to be sent, returning to the execution step, after the state of the RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to the current data to be sent is sent, 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 until all the data to be sent are sent;
if the sending times do not reach the upper limit of the data sending times, the current data to be sent which is not sent successfully is used as the current data to be sent again, and the method returns to the execution step, after the state of an RTS/CTS mechanism is set to be started and before a first RTS frame corresponding to the current data to be sent is sent, and determines 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 RTS frame is unsuccessfully sent, judging whether the sending times of the RTS frame corresponding to the current data to be sent reach the upper limit of the sending times of the RTS frame;
if the sending times of the RTS frame corresponding to the current data to be sent reaches the sending times upper limit of the RTS frame, discarding the current data to be sent, and returning to the execution step, after the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent, 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 sending times of the RTS frame corresponding to the current data to be sent do not reach the upper limit of the sending times of the RTS frame, continuously judging whether the current sending rate is the lowest sending rate of the RTS frame;
if the current sending rate is the lowest sending rate of the RTS frame, returning to the executing step, and sending an RTS frame corresponding to the current data to be sent by using the current sending rate;
and if the current sending rate is not the lowest sending rate of the RTS frame, taking the sending rate of the RTS frame which is one level lower than the current sending rate as the current sending rate, and returning to the execution step to send an RTS frame corresponding to the current data to be sent by using the current sending rate.
6. The method according to claim 1, wherein after the setting of the state of the RTS/CTS mechanism to start and before the sending of the first RTS frame corresponding to the current data to be sent, before 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, further comprising:
acquiring the data length of the current data to be sent;
if the data length of the current data to be sent is smaller than a data length threshold value, setting the state of the RTS/CTS mechanism to stop, wherein the state of the RTS/CTS mechanism comprises starting and stopping;
if the data length of the current data to be sent is greater than a data length threshold, continuously acquiring other interference environment characterization parameters on the premise of acquiring an RTS packet error rate corresponding to the current data to be sent, wherein the other interference environment characterization parameters at least comprise the data packet error rate corresponding to the current time period;
and determining the state of the RTS/CTS mechanism according to the interference environment characterization parameters and the interference environment characterization parameter threshold.
7. The method of claim 6, wherein obtaining the interference environment characterization parameter comprises:
acquiring the total number of data frames sent in the current time period and the number of data frames which are sent in the current time period but have not received an ACK reply frame;
and dividing the number of the data frames which are sent in the current time period but have not received the ACK reply frame by the total number of the data frames sent in the current time period to obtain a quotient, wherein the quotient is used as the data packet error rate corresponding to the current time period.
8. The method of claim 6, wherein determining the status of the RTS/CTS mechanism according to the interference environment characterization parameter and an interference environment characterization parameter threshold comprises:
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 state of the RTS/CTS mechanism to stop;
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 state of the RTS/CTS mechanism to stop;
and if the data packet error rate corresponding to the current time period is greater than the data packet error rate threshold value, setting the state of the RTS/CTS mechanism to be started.
9. The method according to any one of claims 6 to 8, further comprising, before the obtaining the data length of the current data to be transmitted:
detecting whether equipment using IEEE802.11b standard exists in a current Basic Service Set (BSS) and a surrounding BSS;
setting a state of the RTS/CTS mechanism to be activated if a device using the IEEE802.11b standard exists in the current basic service set BSS or the surrounding basic service set BSS;
and if no equipment using the IEEE802.11b standard exists in the current basic service set BSS or the surrounding basic service sets BSS, executing the acquisition of the data length of the current data to be sent.
10. An apparatus for adjusting an RTS frame transmission rate, comprising:
the packet error rate acquisition module 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 after the state of the RTS/CTS mechanism is set to be started and before the first RTS frame corresponding to the current data to be sent is sent;
an initial sending rate determining module, configured to determine an initial sending 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 sending rate of the RTS frame corresponding to the previous time period; after the first sending rate of the RTS frame corresponding to the current time period is determined, the first sending rate of the RTS frame is determined to be the sending speed of the first RTS frame corresponding to the current data to be sent;
wherein, the packet error rate obtaining module comprises:
an RTS frame sending quantity acquisition unit, configured to acquire the sending quantity of RTS frames in the current time period;
the quantity judging unit is used for judging whether the sending quantity 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 the RTS frames in the current time period is not zero, 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;
the RSSI acquisition unit is used for acquiring an RSSI value if the sending number of the RTS frames in the current time period is zero;
a signal strength judging unit for judging whether the RSSI value is greater than a signal strength threshold value;
a second RTS packet error rate determining unit, configured to, if the RSSI value is not greater than the signal strength threshold, use the RTS packet error rate corresponding to the previous time period as the RTS packet error rate corresponding to the current time period;
and a third RTS packet error rate determining unit, configured to determine, according to the RTS packet error rate corresponding to the previous time period, the RTS packet error rate corresponding to the current time period if the RSSI value is greater than the signal strength threshold.
11. A wireless data transmission device, characterized in that the wireless data transmission device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method for adjusting an RTS frame transmission rate according to any one of claims 1 to 9.
12. A storage medium containing computer-executable instructions which, when executed by a computer processor, are for performing the method of adjusting an RTS frame transmission rate according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810962686.0A CN108882312B (en) | 2018-08-22 | 2018-08-22 | RTS frame sending rate adjusting method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810962686.0A CN108882312B (en) | 2018-08-22 | 2018-08-22 | RTS frame sending rate adjusting method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108882312A CN108882312A (en) | 2018-11-23 |
CN108882312B true CN108882312B (en) | 2023-02-17 |
Family
ID=64321241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810962686.0A Active CN108882312B (en) | 2018-08-22 | 2018-08-22 | RTS frame sending rate adjusting method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108882312B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111404595B (en) * | 2020-03-20 | 2021-04-06 | 西安电子科技大学 | Method for evaluating health degree of space-based network communication satellite |
CN111542124B (en) * | 2020-03-31 | 2022-05-27 | 新华三技术有限公司 | Method and device for starting RTS/CTS mechanism |
CN113518335A (en) * | 2021-07-16 | 2021-10-19 | Oppo广东移动通信有限公司 | Bluetooth data transmission method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005041467A2 (en) * | 2003-10-24 | 2005-05-06 | Sony Corporation | Wireless communication system, wireless communication device and wireless communication method, and computer program |
WO2006012772A1 (en) * | 2004-08-06 | 2006-02-09 | Zte Corporation | A method of transmission in wlan |
CN102630095A (en) * | 2012-04-28 | 2012-08-08 | 福建星网锐捷网络有限公司 | Velocity adjust method, device and network equipment |
CN103532669A (en) * | 2013-10-14 | 2014-01-22 | 福建星网锐捷网络有限公司 | Data transmission rate regulation method, device and wireless access point |
CN103929276A (en) * | 2014-04-30 | 2014-07-16 | 中国科学院微电子研究所 | Rate self-adaption method and system of wireless body area network |
-
2018
- 2018-08-22 CN CN201810962686.0A patent/CN108882312B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005041467A2 (en) * | 2003-10-24 | 2005-05-06 | Sony Corporation | Wireless communication system, wireless communication device and wireless communication method, and computer program |
CN101674157A (en) * | 2003-10-24 | 2010-03-17 | 索尼株式会社 | Wireless communication system, wireless communication device and wireless communication method |
WO2006012772A1 (en) * | 2004-08-06 | 2006-02-09 | Zte Corporation | A method of transmission in wlan |
CN102630095A (en) * | 2012-04-28 | 2012-08-08 | 福建星网锐捷网络有限公司 | Velocity adjust method, device and network equipment |
CN103532669A (en) * | 2013-10-14 | 2014-01-22 | 福建星网锐捷网络有限公司 | Data transmission rate regulation method, device and wireless access point |
CN103929276A (en) * | 2014-04-30 | 2014-07-16 | 中国科学院微电子研究所 | Rate self-adaption method and system of wireless body area network |
Also Published As
Publication number | Publication date |
---|---|
CN108882312A (en) | 2018-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20090149133A1 (en) | Communication apparatus and program for identifying faults and computer program storage medium | |
CN108882312B (en) | RTS frame sending rate adjusting method, device, equipment and storage medium | |
US9794889B2 (en) | Power adjustment method and apparatus | |
CN109842556B (en) | Bandwidth determination method, router and terminal equipment | |
CN106533623B (en) | Across protocol communication method and device | |
TW201539864A (en) | Methods for adaptive multi-antenna selection | |
KR20070092977A (en) | Wireless communication apparatus | |
KR101627885B1 (en) | Device and method for computation of channel loss rate and collision loss rate of communication link(s) in a random access network | |
US20210111819A1 (en) | Method of Reporting RSSI Measurements in an Unlicensed Band and Related Apparatus | |
US8767548B1 (en) | Wireless rate adaptation | |
US11589389B2 (en) | Method and apparatus for implementing collision detection in data transmission | |
CN108882310B (en) | Method, device and medium for determining operation state of RTS/CTS mechanism | |
CN108462970B (en) | Packet loss judgment method and device | |
US10313059B2 (en) | Data sending feedback method and apparatus, and data sending method and apparatus | |
US20200374872A1 (en) | Data transmission method and related apparatus | |
US9813205B2 (en) | Uplink CoMP set selecting method and system, and device | |
CN109348515B (en) | Method and device for adjusting transmission rate in wireless network | |
CN111642024A (en) | Method, device and equipment for adjusting idle channel assessment threshold and readable storage medium | |
WO2019080097A1 (en) | Adjusting data rates in wireless networks | |
US11197319B1 (en) | Enhanced spatial reuse of radio spectrum in WLAN operation | |
Samano-Robles et al. | Wireless networks with retransmission diversity and carrier-sense multiple access | |
US10757001B2 (en) | Methods for dynamic sensitivity control in wireless networks | |
CN115474264A (en) | Transmission power adjusting method, device, terminal and storage medium | |
US7872974B2 (en) | System and method for handling or avoiding disruptions in wireless communication | |
CN118413418A (en) | CCA configuration method, device and medium based on narrowband single-tone interference |
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 |
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. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |