CN111642024B - Method, device and equipment for adjusting clear channel assessment threshold and readable storage medium - Google Patents

Method, device and equipment for adjusting clear channel assessment threshold and readable storage medium Download PDF

Info

Publication number
CN111642024B
CN111642024B CN202010276549.9A CN202010276549A CN111642024B CN 111642024 B CN111642024 B CN 111642024B CN 202010276549 A CN202010276549 A CN 202010276549A CN 111642024 B CN111642024 B CN 111642024B
Authority
CN
China
Prior art keywords
threshold
physical layer
cca threshold
adjusting
clear channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010276549.9A
Other languages
Chinese (zh)
Other versions
CN111642024A (en
Inventor
李宛苡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN202010276549.9A priority Critical patent/CN111642024B/en
Publication of CN111642024A publication Critical patent/CN111642024A/en
Application granted granted Critical
Publication of CN111642024B publication Critical patent/CN111642024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access
    • H04W74/08Non-scheduled access, e.g. ALOHA
    • H04W74/0808Non-scheduled access, e.g. ALOHA using carrier sensing, e.g. carrier sense multiple access [CSMA]
    • H04W74/0816Non-scheduled access, e.g. ALOHA using carrier sensing, e.g. carrier sense multiple access [CSMA] with collision avoidance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • H04W72/542Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality

Landscapes

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

Abstract

The invention discloses a method, a device, equipment and a readable storage medium for adjusting an idle channel evaluation threshold, wherein the method comprises the steps of obtaining the error analysis statistics times of a physical layer when the time of a preset first timer reaches a first time threshold; the error analysis means that after the physical layer performs preamble analysis of the wireless signal, the physical layer judges that the wireless signal belongs to a useless signal; and adjusting a clear channel assessment CCA threshold according to the physical layer error analysis statistics times. By adopting the embodiment of the invention, the problem of low idle channel utilization rate caused by nonsensical avoidance of the idle channel by the wireless communication equipment in the prior art can be solved.

Description

Method, device and equipment for adjusting clear channel assessment threshold and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for adjusting an idle channel evaluation threshold.
Background
Currently, in a wireless communication network, before a data transceiver and an access channel communicate, the data transceiver needs to monitor the channel continuously, and the monitoring duration is DIFS (Distributed Coordination Function Inter-frame Space ). If the wireless communication device considers the monitored channel to be in an idle state in the monitoring time, the wireless communication device can access the current monitored channel after the DIFS is finished to carry out data transmission. Wherein CCA (Clear Channel Assessment, clear channel access) is an identification used to determine that a channel is busy or clear before a wireless device accesses the channel. When a wireless communication device wants to access a channel, if the physical layer of the device detects that the signal power on the channel is above the CCA threshold, the device must enter an evasion procedure to wait for the channel to be idle. The effective channel monitoring mechanism can help the wireless communication equipment to avoid collision or interference when data transmission/channel access is performed, and the performance of the whole network is better improved. Therefore, CCA thresholds need to be tightly formulated to ensure that the channel can be used efficiently.
The dynamic CCA threshold adaptation methods proposed by the current large manufacturers and research institutions are generally as follows: 1. combining power control and CCA threshold detection to jointly optimize a current CCA threshold; 2. and according to the ratio of the target throughput of the base station to the average throughput of the base station monitored in real time, the current CCA is periodically adjusted in combination with the energy detection threshold range to determine a new CCA threshold.
The present inventors have found that in the process of implementing the present invention, the following technical problems exist in the prior art: because the channel state of the wireless communication environment is changed instantaneously, the existing dynamic CCA threshold adaptation method can avoid the idle channel meaninglessly, so that the opportunity of the wireless communication device to access the idle channel is reduced, and the idle channel utilization rate is influenced.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for adjusting an idle channel evaluation threshold value and a readable storage medium, which can effectively solve the problem of low idle channel utilization rate caused by meaningless avoidance of idle channels in wireless communication equipment in the prior art.
An embodiment of the present invention provides a method for adjusting an idle channel assessment threshold, including:
when the time of a preset first timer reaches a first time threshold value, acquiring the number of times of physical layer error analysis statistics; the error analysis means that after the physical layer performs preamble analysis of the wireless signal, the physical layer judges that the wireless signal belongs to a useless signal;
and adjusting a clear channel assessment CCA threshold according to the physical layer error analysis statistics times.
As an improvement of the above solution, the adjusting the clear channel assessment CCA threshold according to the number of the physical layer error resolution statistics includes:
when the number of times of error analysis statistics of the physical layer is larger than a preset number of times upper limit threshold, an CCA threshold is adjusted upwards;
when the number of times of error analysis statistics of the physical layer is smaller than a preset number of times lower limit threshold, a CCA threshold is adjusted downwards;
the number of times upper threshold is greater than the number of times lower threshold.
As an improvement of the above solution, when the number of times of the physical layer error resolution statistics is greater than a preset number of times upper threshold, the up-adjusting the CCA threshold includes:
when the number of times of error analysis statistics of the physical layer is larger than a preset number of times upper limit threshold, the current CCA threshold is adjusted upwards by one grade;
when the number of times of the physical layer error analysis statistics is smaller than a preset number of times lower limit threshold, the step of up-regulating the CCA threshold includes:
when the number of times of error analysis statistics of the physical layer is smaller than a preset number of times lower limit threshold, the current CCA threshold is adjusted downwards by one grade;
wherein the CCA threshold level for CCA threshold adjustment is at least two; the at least two CCA threshold levels are different in size and are defined in a preset CCA threshold level range in advance; the CCA threshold level range is: a CCA threshold a-preset first adjustment value-a+ preset second adjustment value which is specified by a wireless network communication standard protocol and corresponds to a current channel.
As an improvement of the above solution, the method further includes:
when the preset time of the second timer reaches a second time threshold value, acquiring a packet loss rate; the second time threshold is less than the first time threshold;
and adjusting a clear channel assessment CCA threshold according to the packet loss rate.
As an improvement of the above solution, adjusting a clear channel assessment CCA threshold according to the packet loss ratio includes:
and when the current CCA threshold is larger than the CCA threshold corresponding to the current channel specified by the wireless network communication standard protocol, and when the packet loss rate is larger than the packet loss rate threshold, the CCA threshold is downwards regulated.
As an improvement of the above solution, the method further includes:
setting a buffer factor;
before the adjusting the clear channel assessment CCA threshold according to the number of physical layer error resolution statistics, the method further includes:
inquiring whether the value of the buffer factor is zero or not; if not, the current buffer factor is subjected to self-subtraction; if yes, executing the step of adjusting the clear channel assessment CCA threshold according to the physical layer error analysis statistics;
when the current CCA threshold is greater than the CCA threshold corresponding to the current channel specified by the wireless network communication standard protocol, and when the packet loss rate is greater than the packet loss rate threshold, after the CCA threshold is adjusted downwards, the method further comprises:
resetting the value of the current buffer factor to a preset buffer value.
As an improvement of the foregoing solution, after said adjusting the clear channel assessment CCA threshold according to the packet loss rate, the method further includes:
resetting the second timer and resetting the packet loss rate.
As an improvement of the foregoing solution, after the adjusting the clear channel assessment CCA threshold according to the number of physical layer error resolution statistics, the method further includes:
resetting the first timer and resetting the physical layer error analysis statistics times.
Another embodiment of the present invention correspondingly provides an adjustment device for a clear channel assessment threshold, which includes:
the information acquisition module is used for acquiring the number of times of physical layer error analysis statistics when the time of the preset first timer reaches a first time threshold; the error analysis means that after the physical layer performs preamble analysis of the wireless signal, the physical layer judges that the wireless signal belongs to a useless signal;
and the first CCA threshold adjusting module is used for adjusting the clear channel assessment CCA threshold according to the physical layer error analysis statistics.
As an improvement of the above solution, the first CCA threshold adjustment module includes:
the first adjusting unit is used for adjusting the CCA threshold upwards when the number of times of error analysis statistics of the physical layer is larger than a preset number upper limit threshold;
the second adjusting unit is used for adjusting the CCA threshold downwards when the number of times of error analysis statistics of the physical layer is smaller than a preset number of times lower limit threshold;
the number of times upper threshold is greater than the number of times lower threshold.
Another embodiment of the present invention provides a wireless communication device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor executes the computer program to implement the method for adjusting a clear channel assessment threshold according to the embodiment of the present invention.
Another embodiment of the present invention provides a storage medium, where the computer readable storage medium includes a stored computer program, and when the computer program runs, the device where the computer readable storage medium is located is controlled to execute the method for adjusting the clear channel assessment threshold according to the foregoing embodiment of the present invention.
Compared with the prior art, the method, the device, the equipment and the computer readable storage medium for setting the idle channel evaluation threshold value provided by the embodiment of the invention acquire the number of times of physical layer error analysis statistics when the time of the preset first timer reaches the first time threshold value, so as to acquire the noise condition of the real-time wireless communication environment of the wireless communication equipment; according to the number of times of error analysis statistics of the physical layer, the clear channel assessment CCA threshold is adjusted, so that the probability of the wireless communication equipment accessing the clear channel can be properly adjusted according to the noise condition of the real-time wireless communication environment, meaningless avoidance of the clear channel is not needed to be carried out excessively, and the utilization rate of the clear channel can be improved.
Drawings
Fig. 1 is a flowchart of a method for adjusting a clear channel assessment threshold according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an adjustment device for clear channel assessment threshold according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a wireless communication device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flowchart of a method for adjusting a clear channel assessment threshold according to an embodiment of the present invention is shown. The adjustment method of the idle channel assessment threshold value comprises the following steps:
s10, when the preset time of the first timer reaches a first time threshold, acquiring the statistics of the physical layer error analysis.
The first time threshold is preset, and a numerical value is set according to practice or actual needs.
In addition, the error analysis refers to that after the physical layer performs preamble analysis of the wireless signal, the physical layer judges that the wireless signal belongs to a useless signal. Specifically, the physical layer has passed through the coarse synchronization process at the time of signal preamble parsing and has entered the following fine synchronization process, but finds that the signal is not a useful wireless signal (exemplified as WLAN signal) at the time of fine synchronization, and thus the synchronization fails. This is referred to as a physical layer error analysis. The physical layer error analysis statistics times in the embodiment of the invention only count the times that the physical layer has error analysis when analyzing the signal above the CCA threshold.
When the wireless communication device competes for a channel, if the physical layer detects that the signal power of the channel is above the CCA threshold corresponding to the channel, the device must enter into an evading procedure to wait for the channel to be idle. The CCA threshold may then greatly affect the chance of whether the device is able to occupy the channel. This CCA threshold adjustment may be adjusted based on statistics of the device physical layer over a period of time. Before introducing the adjustment strategy, the signal parsing process of the physical layer receiver is introduced.
When the physical layer analyzes the SIGNAL preamble information, the physical layer can go through the coarse synchronization process of the STF and the fine synchronization process of the LTF, and then analyze the SIGNAL domain of the SIGNAL; if a WLAN signal is acknowledged, the DATA field is continued, thus freeing the entire message. However, after performing the preamble analysis, the physical layer will determine whether this signal belongs to a useful WLAN signal or other unwanted interference signals. If other useless interference/noise causes that the coarse synchronization process of the physical layer passes, but the fine synchronization process (or the analysis process of the SIGNAL domain) cannot pass, the method is equivalent to that the physical layer performs an error preamble analysis work; at this time, the number of statistics of physical layer error analysis increases by 1. Thus, if the physical layer detects a signal above the CCA threshold on the idle channel, this is actually a noise signal. If the device can guarantee the signal-to-noise ratio by increasing the signal transmission power in the current state, the interference of noise can be ignored. Then, the previous circumvention procedure is unnecessary, and the device misses an opportunity to access the idle channel once, resulting in waste of air interface resources. Therefore, when designing the CCA threshold of the idle channel, the number of erroneous analysis times when the physical layer analyzes data above the CCA threshold of the idle channel is to be avoided.
And S11, adjusting a clear channel assessment CCA threshold according to the physical layer error analysis statistics times.
After knowing the number of times of the physical layer error analysis statistics and obtaining the noise condition of the real-time wireless communication environment of the wireless communication device, on the premise that the device can ensure the signal to noise ratio, the probability of the wireless communication device accessing the idle channel can be properly adjusted by adjusting the idle channel assessment CCA threshold to a value which is suitable for the current noise condition of the wireless communication environment according to the number of times of the physical layer error analysis statistics.
Note that, the CCA threshold mentioned in this embodiment is an energy detection threshold, and does not include a carrier sense threshold.
In the embodiment of the invention, when the time of the preset first timer reaches the first time threshold, the number of times of physical layer error analysis statistics is obtained, so that the noise condition of the real-time wireless communication environment of the wireless communication equipment is obtained; according to the number of times of error analysis statistics of the physical layer, the clear channel assessment CCA threshold is adjusted, so that the probability of the wireless communication equipment accessing the clear channel can be properly adjusted according to the noise condition of the real-time wireless communication environment, meaningless avoidance of the clear channel is not needed to be carried out excessively, and the utilization rate of the clear channel can be improved.
Specifically, after the step S11, the method further includes: resetting the first timer, clearing the number of times of the physical layer error analysis statistics, and then executing the next CCA threshold adjustment process (refer to step S10 and step S11). Wherein, adjusting the CCA threshold according to the number of physical layer error resolution statistics includes three cases: up-regulation, down-regulation and no regulation; the method comprises the following steps: greater than an upper threshold, up-regulating the CCA threshold; a lower CCA threshold is adjusted downward below the lower threshold; and, no adjustment is made between the two. The first timer is reset, whether up, down, or not, and the number of physical layer error resolution statistics is cleared (corresponding embodiments of adjusting the CCA threshold based on the number of physical layer error resolution statistics, described below, may be referred to herein).
Illustratively, the step S11 includes:
s110, when the number of times of error analysis statistics of the physical layer is larger than a preset number of times upper limit threshold, a CCA threshold is adjusted upwards;
s111, when the number of times of the physical layer error analysis statistics is smaller than a preset number of times lower limit threshold, a CCA threshold is set down; wherein the number of times upper threshold is greater than the number of times lower threshold.
In this embodiment, when the number of times of error analysis statistics in the physical layer is relatively large, it indicates that the noise existing in the current wireless communication environment greatly affects the probability of the current device accessing the channel, and on the premise that the device can ensure the signal-to-noise ratio, the device can access the channel to perform data transmission and reception; the CCA threshold may be suitably raised somewhat to reduce the probability of circumventing channel access. And when the number of times of the physical layer error analysis statistics is smaller, the current CCA threshold value is possibly not matched with the noise condition of the wireless communication environment, so that the CCA threshold value can be appropriately reduced to a certain extent, and the adjustment of the current channel access probability by the equipment can be adapted to the current noise environment state.
In the above embodiment, further, before the step S10, the method further includes:
s9, setting a plurality of CCA threshold levels in a preset CCA threshold level range; wherein the CCA threshold level range has at least two CCA threshold levels of different sizes, the CCA threshold level range being: a CCA threshold a-preset first adjustment value-a+ preset second adjustment value which is specified by a wireless network communication standard protocol and corresponds to a current channel. The setting of the CCA threshold level may be not only the automatic setting of the present apparatus, but also the predetermined setting of each level and the preset of each level into the present apparatus when leaving the factory, or the setting of each level and the preset of each level into the present wireless apparatus by the user, and the like, and is not particularly limited herein.
Then, the step S110 includes:
when the number of times of error analysis statistics of the physical layer is larger than a preset number of times upper limit threshold, the current CCA threshold is adjusted upwards by one grade;
the step S111 includes:
and when the number of times of the physical layer error analysis statistics is smaller than a preset number of times lower limit threshold, the current CCA threshold is adjusted down by one grade.
It will be appreciated that if the CCA threshold level is set too high, the probability of a device accessing the channel will increase, but will also result in an increased probability of a clear channel collision/collision. In this embodiment, when the number of times of error analysis statistics in the physical layer is relatively large, it indicates that the noise existing in the current wireless communication environment greatly affects the probability of the current device accessing the channel, and on the premise that the device can ensure the signal-to-noise ratio, the device can access the channel to perform data transmission and reception; the CCA threshold may be suitably increased by one level to reduce the probability of avoiding channel access. And when the number of times of the error analysis statistics of the physical layer is smaller, the current CCA threshold value is possibly not matched with the noise condition of the wireless communication environment, and then the CCA threshold value can be appropriately reduced by one level, so that the adjustment of the current channel access probability by the equipment can be adapted to the current noise environment state.
In this embodiment, specifically, since the CCA threshold is a standard for primarily determining whether the channel is idle by the physical layer, the threshold range of the CCA threshold level set above is not suitable to be too different from the CCA threshold specified by the wireless network communication standard protocol, otherwise, many incompatible chip schemes may be caused, so that a large number of channels collide and packet is lost. Accordingly, embodiments of the present invention provide for the marking of an optional CCA threshold adjustment range based on a CCA threshold level specified by a wireless network communication standard protocol, illustratively: a CCA threshold a±ndb (i.e., the first adjustment value is the same as the second adjustment value) corresponding to the current channel, which is specified by the wireless network communication standard protocol; then within this 2NdB range, one level is divided per MdB (M is less than N), and a total of (2N/M) levels are divided. It should be noted that the wireless network communication standard protocol refers to, in particular, a wireless network communication standard protocol supported by the present device chip scheme. It should be noted that, the values of the first adjustment value and the second adjustment value may be different, and the level ranges of each CCA threshold level may be the same or different. Illustratively, the wireless network communication standard protocol is the 802.11ac protocol.
Here, a CCA energy detection threshold a specified by the 802.11ac protocol is given by way of example:
table 1.802.11ac protocol specifies CCA energy detection thresholds for each bandwidth channel
Channel bandwidth 20MHz 40MHz 80MHz
CCA energy detection threshold -62dBm -59dBm -56dBm
Examples: at 20MHz bandwidth, the CCA sensitivity of the channel is: 62dBm, then within the range of [ -62-N, -62+N ], one level is divided per MdB, namely: -62-n+m, -62-n+2m, …, -62+n; these levels are the level options for which dynamic CCA threshold adjustments may be made next.
It will be appreciated that the chip scheme standard of the wireless communication device may be different, and the corresponding CCA sensitivity may be different, and the CCA threshold level is set according to the chip scheme standard of the wireless communication device in actual use.
By way of example:
at 20MHz bandwidth, a dynamically adjusted CCA range is limited to a range of [ -62-N, -62+n ] based on a CCA threshold specified by the 802.11ac protocol (exemplified by CCA energy detection threshold) -62dBm, with one rank per MdB, a total of 2N/M ranks being divided (in general, N and M are both set to even numbers, e.g., n=6, m=2, for ease of calculation); these levels are options that may be subsequently dynamically CCA threshold adjusted.
By default, the CCA threshold is-62 dBm, with a current level of 0. When the time of the first timer reaches a first time threshold, starting to check the number of times of the current physical layer error analysis, and once the number of times is larger than a preset upper limit threshold, adjusting the current CCA threshold level to be 1 level so as to raise the CCA threshold by one level, resetting the first timer and resetting the number of times of the physical layer error analysis; when the time of the next first timer reaches a first time threshold, continuing to judge, adjusting the CCA threshold level according to the judging result, resetting the first timer and clearing the number of times of physical layer error analysis after the CCA threshold level is adjusted; the highest CCA level is the N/M level. Conversely, when the time of the first timer reaches a first time threshold, the physical layer error analysis frequency of the current channel is found to be smaller than a preset frequency lower limit threshold, the current CCA threshold level corresponding to the current channel is adjusted to be-1 level, so that the CCA threshold is lowered by one level, then the first timer is reset, and the physical layer error analysis frequency is cleared; when the time of the next first timer reaches the first time threshold, the judgment is continued once. It can be understood that, when the time threshold of the timer arrives each time, whether the CCA threshold is adjusted or not, the current number of times of physical layer error analysis is cleared to perform the next judgment and adjustment.
Wherein, the wireless signal level of the current channel cannot be well reflected only according to the physical layer error detection rate of the transmitting end. If the current noise is large and hidden nodes are also large, the CCA threshold is simply raised, so that the wireless communication equipment can disregard other terminals which are normally transmitting signals on the channel, collision and interference are caused when the channel is accessed, the communication quality of the wireless communication equipment is affected, and the normal communication order of the current system is interfered. Therefore, in the following embodiment of the present invention, the data packet loss rate is also introduced as a measurement basis to assist in dynamically adjusting the CCA threshold.
Illustratively, the method further comprises:
s12, when the preset time of the second timer reaches a second time threshold value, acquiring a packet loss rate; the second time threshold is less than the first time threshold;
and S13, adjusting a clear channel assessment CCA threshold according to the packet loss rate.
In the embodiment of the invention, the CCA threshold is adjusted by combining the data packet loss rate, so that the interference of the hidden node on the wireless communication work of the device can be reduced.
Specifically, the adjusting the clear channel assessment CCA threshold according to the packet loss rate includes:
and when the current CCA threshold is larger than the CCA threshold corresponding to the current channel specified by the wireless network communication standard protocol, and when the packet loss rate is larger than the packet loss rate threshold, the CCA threshold is downwards regulated.
The packet loss rate is used as a criterion for reducing the CCA threshold value, and is not used as a criterion for improving the CCA threshold value. Namely: if the current CCA threshold is smaller than the standard specified by the wireless communication protocol, there is no need to adjust the CCA threshold by the size of the packet loss rate. The wireless network communication standard protocol particularly refers to a wireless network communication standard protocol supported by the chip scheme of the device.
Illustratively, it is assumed that the Threshold value of the given packet loss rate is per_threshold, and the polling period of the packet loss rate is poll_period_t2 (i.e., the timing duration of the second timer). In the initial state, per_threshold=0, poll_period_t2=0. If the current CCA threshold level is greater than 0, the data transmitting end counts the number of the received ACKs when transmitting data, and is used for counting the packet loss rate; at the same time, the second timer starts counting. When the poll_t2 reaches the second time Threshold, checking whether the current packet loss rate is greater than the per_threshold; and if the current data packet loss rate is greater than PER_Threshold, the CCA Threshold is lowered, and meanwhile, the packet loss rate is cleared and the second timer is reset. It will be appreciated that lowering the CCA threshold in this embodiment means lowering it by one level. When the second timer reaches the timing time each time, the second timer is reset and the packet loss rate is cleared to perform the next judgment and adjustment.
Further, the method further comprises:
setting a buffer factor;
before the adjusting the clear channel assessment CCA threshold according to the number of physical layer error resolution statistics, the method further includes:
inquiring whether the value of the buffer factor is zero or not; if not, the current buffer factor is subjected to self-subtraction; if yes, executing the step of adjusting the clear channel assessment CCA threshold according to the physical layer error analysis statistics;
when the current CCA threshold is greater than the CCA threshold corresponding to the current channel specified by the wireless network communication standard protocol, and when the packet loss rate is greater than the packet loss rate threshold, after the CCA threshold is adjusted downwards, the method further comprises:
resetting the value of the current buffer factor to a preset buffer value.
Since the above embodiment uses different decision criteria (one is the number of times of error resolution and the other is the data packet loss rate), oscillations in the algorithm adjustment process may occur, which may cause variation of the CCA threshold to fluctuate. Thus, embodiments of the present invention slow this process by using the buffer factor β.
Illustratively, the value of the buffer factor β is initialized to 0 and the buffer value is 0. In general, the CCA adjustment procedure described above is normally performed as long as β is 0. If, due to the packet loss, a CCA threshold callback is caused, the value of the buffer factor β is reset to a preset buffer value uβ (e.g., uβ=3). At this time, since β is not 0, the CCA threshold adjustment process is suspended. Wherein, every time a timing period of a first timer passes, beta is subtracted by 1; the CCA threshold adjustment is not started again until β decreases to 0.
Referring to fig. 2, a schematic structural diagram of an adjustment device for clear channel assessment threshold according to an embodiment of the present invention is shown. The device comprises:
the information acquisition module is used for acquiring the number of times of physical layer error analysis statistics when the time of the preset first timer reaches a first time threshold; the error analysis means that after the physical layer performs preamble analysis of the wireless signal, the physical layer judges that the wireless signal belongs to a useless signal;
and the first CCA threshold adjusting module is used for adjusting the clear channel assessment CCA threshold according to the physical layer error analysis statistics.
In the embodiment of the invention, when the time of the preset first timer reaches the first time threshold, the number of times of physical layer error analysis statistics is obtained, so that the noise condition of the real-time wireless communication environment of the wireless communication equipment is obtained; according to the number of times of error analysis statistics of the physical layer, the clear channel assessment CCA threshold is adjusted, so that the probability of the wireless communication equipment accessing the clear channel can be properly adjusted according to the noise condition of the real-time wireless communication environment, meaningless avoidance of the clear channel is not needed to be carried out excessively, and the utilization rate of the clear channel can be improved.
As an improvement of the above solution, the first CCA threshold adjustment module includes:
the first adjusting unit is used for adjusting the CCA threshold upwards when the number of times of error analysis statistics of the physical layer is larger than a preset number upper limit threshold;
the second adjusting unit is used for adjusting the CCA threshold downwards when the number of times of error analysis statistics of the physical layer is smaller than a preset number of times lower limit threshold; the number of times upper threshold is greater than the number of times lower threshold.
As an improvement of the above solution, the first adjusting unit is specifically configured to:
when the number of times of error analysis statistics of the physical layer is larger than a preset number of times upper limit threshold, the current CCA threshold is adjusted upwards by one grade;
the second adjusting unit is specifically configured to:
when the number of times of error analysis statistics of the physical layer is smaller than a preset number of times lower limit threshold, the current CCA threshold is adjusted down by one grade;
wherein the CCA threshold level for CCA threshold adjustment is at least two; the at least two CCA threshold levels are different in size and are defined in a preset CCA threshold level range in advance; the CCA threshold level range is: a CCA threshold a-preset first adjustment value-a+ preset second adjustment value which is specified by a wireless network communication standard protocol and corresponds to a current channel.
As an improvement of the above solution, the apparatus further comprises:
the packet loss rate acquisition module is used for acquiring the packet loss rate when the time of the preset second timer reaches a second time threshold value; the second time threshold is less than the first time threshold;
and the second CCA threshold adjusting module is used for adjusting the clear channel assessment CCA threshold according to the packet loss rate.
As an improvement of the above solution, the second CCA threshold adjustment module is specifically configured to:
and when the current CCA threshold is larger than the CCA threshold corresponding to the current channel specified by the wireless network communication standard protocol, and when the packet loss rate is larger than the packet loss rate threshold, the CCA threshold is downwards regulated.
As an improvement of the above solution, the apparatus further comprises:
the buffer factor setting module is used for setting a buffer factor;
the apparatus further comprises:
the query module is used for querying whether the value of the buffer factor is zero; if not, the current buffer factor is subjected to self-subtraction; if yes, executing the step of adjusting the clear channel assessment CCA threshold according to the physical layer error analysis statistics;
the apparatus further includes, when the current CCA threshold is greater than a CCA threshold corresponding to a current channel specified by a wireless network communication standard protocol, and when the packet loss rate is greater than a packet loss rate threshold:
and the reset module is used for resetting the numerical value of the current buffer factor to a preset buffer value.
As an improvement of the above solution, the apparatus further comprises:
and the second timer resetting module is used for resetting the second timer and resetting the packet loss rate.
As an improvement of the above solution, the apparatus further comprises:
and the first timer resetting module is used for resetting the first timer and resetting the physical layer error analysis statistics times.
Referring to fig. 3, another embodiment of the present invention provides a wireless communication device, comprising: a process 20, a memory 21 and a computer program stored in said memory and executable on said processor, such as a power-on self-test program. The steps in the above-mentioned method embodiments for setting the estimation threshold of each free channel are implemented when the processor executes the computer program. Alternatively, the processor may implement the functions of the modules/units in the above-described device embodiments when executing the computer program.
The computer program may be divided into one or more modules/units, which are stored in the memory and executed by the processor to accomplish the present invention, for example. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program in the wireless communication device.
The wireless communication device may be a router, a notebook, a smart phone, or the like. The wireless communication device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the schematic diagram is merely an example of a wireless communication device and is not limiting of a wireless communication device, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the wireless communication device may also include an input-output device, a network access device, a bus, etc.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that is a control center of the wireless communication device and that uses various interfaces and lines to connect the various parts of the overall wireless communication device.
The memory may be used to store the computer program and/or modules, and the processor may implement various functions of the wireless communication device by running or executing the computer program and/or modules stored in the memory and invoking data stored in the memory. The memory 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 (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Wherein the integrated module/unit of the wireless communication device may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a stand alone product. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that the above-described apparatus embodiments are merely illustrative, and the units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the invention, the connection relation between the modules represents that the modules have communication connection, and can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the invention, such changes and modifications are also intended to be within the scope of the invention.

Claims (11)

1. A method for adjusting a clear channel assessment threshold, comprising:
when the time of a preset first timer reaches a first time threshold value, acquiring the number of times of physical layer error analysis statistics; the error analysis means that after the physical layer performs preamble analysis of the wireless signal, the physical layer judges that the wireless signal belongs to a useless signal;
adjusting a clear channel assessment CCA threshold according to the physical layer error analysis statistics times; the number of times of physical layer error analysis statistics refers to the number of times that the physical layer performs error analysis when analyzing signals above the CCA threshold.
2. The method for adjusting a clear channel assessment threshold according to claim 1, wherein the adjusting a clear channel assessment CCA threshold according to the number of physical layer error resolution statistics comprises:
when the number of times of error analysis statistics of the physical layer is larger than a preset number of times upper limit threshold, an CCA threshold is adjusted upwards;
when the number of times of error analysis statistics of the physical layer is smaller than a preset number of times lower limit threshold, a CCA threshold is adjusted downwards;
the number of times upper threshold is greater than the number of times lower threshold.
3. The method for adjusting the clear channel assessment threshold according to claim 2, wherein when the number of times of the physical layer error resolution statistics is greater than a preset upper threshold, the step of up-regulating the CCA threshold includes:
when the number of times of error analysis statistics of the physical layer is larger than a preset number of times upper limit threshold, the current CCA threshold is adjusted upwards by one grade;
and when the number of times of the physical layer error analysis statistics is smaller than a preset number of times lower limit threshold, the step of reducing the CCA threshold comprises the following steps:
when the number of times of error analysis statistics of the physical layer is smaller than a preset number of times lower limit threshold, the current CCA threshold is adjusted down by one grade;
wherein the CCA threshold level for CCA threshold adjustment is at least two; the at least two CCA threshold levels are different in size and are defined in a preset CCA threshold level range in advance; the CCA threshold level range is: a CCA threshold a-preset first adjustment value-a+ preset second adjustment value which is specified by a wireless network communication standard protocol and corresponds to a current channel.
4. A method of adjusting a clear channel assessment threshold according to any one of claims 1 to 3, characterised in that the method further comprises:
when the preset time of the second timer reaches a second time threshold value, acquiring a packet loss rate; the second time threshold is less than the first time threshold;
and adjusting a clear channel assessment CCA threshold according to the packet loss rate.
5. The method for adjusting a clear channel assessment threshold according to claim 4, wherein the adjusting a clear channel assessment CCA threshold according to the packet loss rate comprises:
and when the current CCA threshold is larger than the CCA threshold corresponding to the current channel specified by the wireless network communication standard protocol, and when the packet loss rate is larger than the packet loss rate threshold, the CCA threshold is downwards regulated.
6. The method of adjusting a clear channel assessment threshold according to claim 5, wherein the method further comprises:
setting a buffer factor;
before the adjusting the clear channel assessment CCA threshold according to the number of physical layer error resolution statistics, the method further includes:
inquiring whether the value of the buffer factor is zero or not; if not, the current buffer factor is subjected to self-subtraction; if yes, executing the step of adjusting the clear channel assessment CCA threshold according to the physical layer error analysis statistics;
when the current CCA threshold is greater than the CCA threshold corresponding to the current channel specified by the wireless network communication standard protocol, and when the packet loss rate is greater than the packet loss rate threshold, after the CCA threshold is adjusted downwards, the method further comprises:
resetting the value of the current buffer factor to a preset buffer value.
7. The method of adjusting a clear channel assessment threshold of claim 4, wherein after said adjusting a clear channel assessment CCA threshold according to the packet loss rate, the method further comprises:
resetting the second timer and resetting the packet loss rate.
8. The method of adjusting a clear channel assessment threshold according to claim 1, wherein after said adjusting a clear channel assessment CCA threshold according to the number of physical layer error resolution statistics, the method further comprises:
resetting the first timer and resetting the physical layer error analysis statistics times.
9. An apparatus for adjusting a clear channel assessment threshold, comprising:
the information acquisition module is used for acquiring the number of times of physical layer error analysis statistics when the time of the preset first timer reaches a first time threshold; the error analysis means that after the physical layer performs preamble analysis of the wireless signal, the physical layer judges that the wireless signal belongs to a useless signal;
the first CCA threshold adjustment module is configured to adjust a clear channel assessment CCA threshold according to the number of statistics of physical layer error resolution, where the number of statistics of physical layer error resolution refers to the number of times that the statistics of the physical layer has performed error resolution when resolving a signal above the CCA threshold.
10. A wireless communication device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the method of adjusting a clear channel assessment threshold according to any one of claims 1 to 8 when the computer program is executed.
11. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform the method for adjusting the clear channel assessment threshold according to any one of claims 1 to 8.
CN202010276549.9A 2020-04-08 2020-04-08 Method, device and equipment for adjusting clear channel assessment threshold and readable storage medium Active CN111642024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010276549.9A CN111642024B (en) 2020-04-08 2020-04-08 Method, device and equipment for adjusting clear channel assessment threshold and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010276549.9A CN111642024B (en) 2020-04-08 2020-04-08 Method, device and equipment for adjusting clear channel assessment threshold and readable storage medium

Publications (2)

Publication Number Publication Date
CN111642024A CN111642024A (en) 2020-09-08
CN111642024B true CN111642024B (en) 2023-10-10

Family

ID=72331214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010276549.9A Active CN111642024B (en) 2020-04-08 2020-04-08 Method, device and equipment for adjusting clear channel assessment threshold and readable storage medium

Country Status (1)

Country Link
CN (1) CN111642024B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929903B (en) * 2021-01-26 2022-12-23 中国联合网络通信集团有限公司 Determination method and device
CN116321178A (en) * 2021-12-20 2023-06-23 华为技术有限公司 Determination method and device for idle channel evaluation threshold
CN115664562B (en) * 2022-12-09 2023-03-10 灿芯技术(深圳)有限公司 WiFi interference test method and device based on channel utilization rate

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220065A (en) * 2012-01-18 2013-07-24 中兴通讯股份有限公司 Adjustment method and adjustment device for assessment threshold of idle channel
CN105451337A (en) * 2014-08-01 2016-03-30 展讯通信(上海)有限公司 Clear channel assessment threshold control method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8666319B2 (en) * 2011-07-15 2014-03-04 Cisco Technology, Inc. Mitigating effects of identified interference with adaptive CCA threshold
CN105338646B (en) * 2014-08-01 2019-01-04 展讯通信(上海)有限公司 The starting control method and device of RTS/CTS mechanism

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220065A (en) * 2012-01-18 2013-07-24 中兴通讯股份有限公司 Adjustment method and adjustment device for assessment threshold of idle channel
CN105451337A (en) * 2014-08-01 2016-03-30 展讯通信(上海)有限公司 Clear channel assessment threshold control method and device

Also Published As

Publication number Publication date
CN111642024A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN111642024B (en) Method, device and equipment for adjusting clear channel assessment threshold and readable storage medium
KR100643298B1 (en) Apparatus and method for providing enhanced wireless communication
CN109548167B (en) Coverage range self-adaptive adjusting method and device, computer storage medium and equipment
CA3104929A1 (en) Method performed by user equipment, and user equipment
WO2010124453A1 (en) Method and apparatus for optimizing the terminal random access
CN109121196B (en) Terminal transmitting power control method and device based on NB-IoT system
US20210051677A1 (en) Radio frequency resource allocation method, apparatus, device and system, and storage medium
CN108712778B (en) Channel selection method and related product
US11800386B2 (en) Network quality monitoring method and apparatus
WO2014177113A2 (en) Cell interference investigation method and system, and network manager
WO2020140224A1 (en) Channel detection method and apparatus
CN111935277A (en) Router connection method, router connection device, computer equipment and storage medium
WO2021043146A1 (en) Detection method, apparatus and system
EP3070980A1 (en) Power adjustment method and apparatus
CN103269498B (en) A kind of detection method of adjacent frequency interference and device
US10484944B2 (en) Data transmission method, apparatus, and device
CN112752319A (en) Network switching method, device, terminal and storage medium
US20060072493A1 (en) Roaming techniques for a communications network
CN114365579B (en) Apparatus, system, and method for mitigating aggressive medium reservation
CN110972311B (en) Bandwidth selection method, device and storage medium based on WLAN
CN102111887A (en) Method for adjusting physical random access channel (PRACH) resource density and base station
CN107995642B (en) Information processing method and device
CN106717064B (en) Data transmission method, device and system of time division duplex wireless data transmission system
CN107708176B (en) Network connection method, network connection device and mobile terminal
CN114786276A (en) Service terminal access method, device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant