CN111278083B - Channel scanning method and device - Google Patents

Channel scanning method and device Download PDF

Info

Publication number
CN111278083B
CN111278083B CN202010063492.4A CN202010063492A CN111278083B CN 111278083 B CN111278083 B CN 111278083B CN 202010063492 A CN202010063492 A CN 202010063492A CN 111278083 B CN111278083 B CN 111278083B
Authority
CN
China
Prior art keywords
channel
channels
scanning
wireless terminal
initial
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
CN202010063492.4A
Other languages
Chinese (zh)
Other versions
CN111278083A (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.)
New H3C Technologies Co Ltd Chengdu Branch
Original Assignee
New H3C Technologies Co Ltd Chengdu Branch
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 New H3C Technologies Co Ltd Chengdu Branch filed Critical New H3C Technologies Co Ltd Chengdu Branch
Priority to CN202010063492.4A priority Critical patent/CN111278083B/en
Publication of CN111278083A publication Critical patent/CN111278083A/en
Application granted granted Critical
Publication of CN111278083B publication Critical patent/CN111278083B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

The application provides a channel scanning method and a device, the method is applied to an AP which enables a WIPS function, and the method comprises the following steps: when the current scanning channel is not a channel inserted in the previous or current channel scanning and a wireless terminal needing to be copied is determined to be on the channel, copying the wireless terminal needing to be copied, and judging whether the data message sent to the illegal AP by the wireless terminal needing to be copied is monitored when the scanning period of the channel is reached; and when the judgment result is negative, according to the sequence of each initial channel, inserting the channel behind each initial channel in the current channel list respectively, and continuously scanning the next channel corresponding to the channel in the current channel list in the inserted channel list. In the application, the AP which enables the WIPS function enhances the counter-making time aiming at the counter-making channel, and increases the scanning frequency of the counter-making channel by dynamically adjusting the channel list, thereby improving the counter-making effect.

Description

Channel scanning method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a channel scanning method and apparatus.
Background
In a Wireless Local Area Network (WLAN), in order to ensure the security of a client accessing the WLAN, an Access Point (AP) which enables a Wireless Intrusion Prevention System (WIPS) function may reverse an illegal Wireless terminal accessing an illegal AP in the WLAN.
At present, the AP which enables the WIPS function usually performs the counter-control of the illegal wireless terminal by using a channel scanning mode, that is, the AP which enables the WIPS function scans all channels in a channel list according to a preset scanning period, when a wireless terminal which needs the counter-control is scanned on a certain channel, a counter-control message is sent to the wireless terminals to take the wireless terminals off the line and switch to other channels, and the next channel is continuously scanned after the time interval arrives.
In the above channel scanning manner, during the period of polling a certain channel again, the problem that the wireless terminal subjected to the countermeasures is easily on line again in the illegal AP after being countermeasures and dropped, and further, the countermeasures effect is poor.
Disclosure of Invention
The application provides a channel scanning method and device, which can improve the anti-copy effect.
The technical scheme provided by the application is as follows:
the application provides a channel scanning method, which is applied to an AP enabling WIPS function, and comprises the following steps:
when the current scanning channel is not a channel inserted in the previous or current channel scanning and a wireless terminal needing to be copied is determined to be on the channel, copying the wireless terminal needing to be copied, and judging whether a data message sent to an illegal AP by the wireless terminal needing to be copied is monitored when the scanning period of the channel is reached;
if not, respectively inserting the channels behind each initial channel in the current channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the current channel list in the inserted channel list;
and when the judgment result is yes, continuously performing the reverse control on the wireless terminal needing the reverse control on the channel until the data message sent to the illegal AP by the wireless terminal needing the reverse control is not monitored, respectively inserting the total number of the channels of the scanning period used for scanning the channels behind each initial channel in the current channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the current channel list in the inserted channel list.
The application provides a channel scanning device, the device is applied to AP that enables WIPS function, the device includes:
the first counter-control module is used for counter-controlling the wireless terminal needing counter-control when the currently scanned channel is not a channel which is inserted in the previous round of channel scanning or the current round of channel scanning and the wireless terminal needing counter-control on the channel is determined, and judging whether the data message sent to the illegal AP by the wireless terminal needing counter-control is monitored or not when the scanning period of the channel is reached;
a first interleaving module, configured to, when the determination result is negative, interleave the channels behind each initial channel in the current channel list according to the order of each initial channel, and continue to scan a next channel corresponding to the channel in the current channel list in the interleaved channel list; and
and when the judgment result is yes, continuously performing the reverse control on the wireless terminal needing the reverse control on the channel until the data message sent to the illegal AP by the wireless terminal needing the reverse control is not monitored, respectively inserting the total number of the channels of the scanning period used for scanning the channels behind each initial channel in the current channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the current channel list in the inserted channel list.
According to the technical scheme, the AP with the WIPS function enhances the counter-making time aiming at the counter-making channel, increases the scanning frequency of the counter-making channel in a mode of dynamically adjusting the channel list, and improves the counter-making effect.
Drawings
Fig. 1 is a schematic flowchart of a channel scanning method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a channel scanning apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
An embodiment of the present application provides a channel scanning method, as shown in fig. 1, where the method is applied to an AP enabling a WIPS function, and the method may include the following steps:
s11: when the current scanning channel is not a channel inserted in the previous or current channel scanning and a wireless terminal needing to be copied is determined to be on the channel, copying the wireless terminal needing to be copied, and judging whether the data message sent to the illegal AP by the wireless terminal needing to be copied is monitored when the scanning period of the channel is reached;
s12: if not, respectively inserting the channel behind each initial channel in the current channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the current channel list in the inserted channel list;
s13: and if so, continuously performing the reverse control on the wireless terminal needing the reverse control on the channel until the data message sent to the illegal AP by the wireless terminal needing the reverse control is not monitored, respectively inserting the total number of the channels of the scanning period used for scanning the channel behind each initial channel in the current channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the current channel list in the inserted channel list.
In the embodiment of the present application, a channel list is created for the AP enabling the WIPS function, initially, a channel supported by the AP enabling the WIPS function is stored in the channel list, which is defined as an initial channel, and the AP enabling the WIPS function scans each initial channel in the channel list in sequence according to a preset scanning period, where the scanning period of each channel is the same. For example, the channels supported by the WIPS enabled AP are channel 1 to channel 13, and the channel list may be as shown in table one.
1 2 3 4 5 6 7 8 9 10 11 12 13
Watch 1
In step S11, the currently scanned channel refers to one of the channels in the current channel list, and the current channel list may be an initial channel list or a channel list punctured by using the present embodiment.
In this embodiment, the currently scanned channel may be a channel punctured in the previous channel scanning, may also be a channel punctured in the current channel scanning, and may also be an initial channel scanned for the first time. In step S11, the currently scanned channel is not the channel punctured in the previous or current channel scanning, which indicates that the channel is the initial channel of the first scanning.
It should be noted that, a round of channel scanning refers to scanning from channel 1 until channel 13 is scanned completely or all channels behind channel 13 are punctured.
Further, in step S11, the WIPS enabled AP determines whether there is a wireless terminal on the channel that needs to be controlled in a conventional manner, and will not be described in detail herein.
Preferably, in order to improve the countering effect, in step S11, before the step of countering the wireless terminal that needs countering is performed, the method may further include the following operations:
determining the channel as a counter channel;
judging whether the number of the scanned anti-jamming channels reaches a set number or not;
and if the judgment result is negative, performing a step of countering the wireless terminal needing countering.
Further, the method may further comprise the steps of:
when the number of the scanned anti-modulation channels reaches the set number, ranking the number of the wireless terminals needing anti-modulation on the channel and the maximum number of the wireless terminals needing anti-modulation on the scanned anti-modulation channels according to the sequence from large to small;
if the rank of the number of the wireless terminals needing to be countermade on the channel is located at the top N, the wireless terminals needing to be countermade are countermade, and when a scanning period is reached, whether the data message sent to the illegal AP by the wireless terminal needing to be countermade is monitored, wherein the value of N is the same as that of the set number;
if not, deleting the channels which are punctured in the current channel list and are not positioned in the first N ranks of the reversed wireless terminals, respectively puncturing the channels behind each initial channel in the deleted channel list according to the sequence of each initial channel, and continuously scanning the next channel which corresponds to the channel in the deleted channel list in the punctured channel list;
and when the judgment result is yes, continuously performing countercheck on the wireless terminal needing countercheck on the channel until the data message sent to the illegal AP by the wireless terminal needing countercheck is not monitored, deleting the channels which are interspersed in the current channel list and the highest ranking of the wireless terminals needing countercheck is not positioned in the first N names, respectively interspersing the total number of the channels of the scanning period used for scanning the channels behind each initial channel in the deleted channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the deleted channel list in the interspersed channel list.
It should be noted that, if the number of the wireless terminals that need to be reversed on the channel is the same as the maximum number of the wireless terminals that have been reversed on the scanned reversed channel, or the rank of the number of the wireless terminals that need to be reversed on the channel is parallel to the nth, in this case, the reversed channel may not be adjusted, of course, or may be adjusted, if adjusted, the adjustment may be performed according to the channel that is updated recently by the wireless terminal, and a specific adjustment process is similar to the processing manner in which the rank of the number of the wireless terminals that need to be reversed on the channel is located under the first N, and is not described herein again.
In addition, when the currently scanned channel is a channel which is inserted in the previous or current channel scanning, it is described that the channel is a channel which is determined to be a channel requiring countercheck and inserted according to the above method, in this case, in the same way as the existing processing method of scanning the channel which requires countercheck, the countercheck operation is performed in the scanning period, that is, the wireless terminal requiring countercheck is countercheck, and after the scanning period arrives, the next channel corresponding to the channel in the current channel list is continuously scanned.
When the current scanned channel is not a channel which is inserted in the previous or current channel scanning and no wireless terminal which needs to be controlled reversely on the channel is determined, the same processing mode as the current method for scanning the channel which does not need to control the wireless terminal reversely is adopted, and after the scanning period is reached, the next channel corresponding to the channel in the current channel list is continuously scanned.
When the currently scanned channel is not a channel which is traversed in the previous round or the current round of channel scanning and a wireless terminal which needs to be copied is determined to be on the channel, if the rank of the number of the wireless terminals which need to be copied on the channel is not in the top N, the processing mode is the same as that of the existing method for scanning the channel which needs to be copied, namely, the copying operation is executed in the scanning period, and after the scanning period is reached, the next channel corresponding to the channel in the current channel list is continuously scanned.
Preferably, in order to better improve the counter effect, in step S12, the inserting the channel behind each initial channel in the current channel list includes:
for each initial channel, if the initial channel is followed by a punctured copy channel, the channel is punctured behind the punctured copy channel.
Assuming that the current channel list is shown in table two, channels 1 to 13 are initial channels, each of which is followed by punctured channel 6, and assuming that the channel is channel 7, channels 7 are punctured after punctured channels 6, respectively, as shown in table three.
1 6 2 6 5 6 6 6 7 13 6
Watch two
1 6 7 2 6 7 3 6 7 13 6 7
Watch III
In step S13, the inserting the total number of channels in the scanning period used for scanning the channel into the back of each initial channel in the current channel list respectively includes:
for each initial channel, if there is a punctured reverse channel following the initial channel, the total number of channels of the scanning period used to scan the channel is uniformly punctured into the punctured reverse channel.
Assuming that the current channel list is as shown in table four, channels 1 to 13 are initial channels, each initial channel is interspersed with 3 channels 6, assuming that the channel is channel 7, and the total number of scanning cycles used for scanning channel 7 is 2, then channels 7 are uniformly interspersed into the interspersed 3 channels 6, respectively, as shown in table five.
1 6 6 6 2 6 6 6 6 6 6 6 7 6 6 13 6 6 6
Watch four
1 6 7 6 7 6 2 6 7 6 7 6 13 6 7 6 7 6
Watch five
Further, in the embodiment of the present application, in order to equalize the plurality of WIPS enabled APs adjustment channels, the method may further include the following operations:
after the set number of the reverse channels are determined, sending a notification message to other WIPS function-enabled APs of the wireless terminal which needs to be reversed on at least one channel of the set number of the reverse channels, so that when the other WIPS function-enabled APs determine the number of the wireless terminals which need to be reversed on the at least one channel, the number of the wireless terminals which need to be reversed on the at least one channel and are notified by the WIPS function-enabled APs is not counted.
That is, if a certain wireless terminal is scanned by a plurality of APs enabling the WIPS function, when the channel where the wireless terminal is located is a channel in a set number of copied channels determined by one of the APs enabling the WIPS function, the AP enabling the WIPS function notifies other APs enabling the WIPS function that the client is not counted when the number of the wireless terminals copied on the channel where the wireless terminal is located needs to be counted.
The channel scanning method will be described in detail below by taking the channel scanning of this round as an example.
Example one
Assuming that the channels supported by the AP which enables the WIPS function are channels 1 to 13, i.e. initial channels, the channel list is as shown in table one above, the scanning period is 100ms, and the number of channels is set to 3.
Initially, the APs with the WIPS function enabled sequentially scans the initial channels in the first table according to 100 ms.
Assuming that the channel currently scanned by the AP enabling the WIPS function is channel 2, channel 2 is the channel scanned for the first time, that is, the channel not punctured in the current channel scanning, and it is determined that there is no wireless terminal on channel 2 that needs to be countered, in this case, the waiting time reaches 100ms, and channel 3 in table one continues to be scanned.
Assuming that a channel currently scanned by an AP which enables a WIPS function is a channel 6, and the channel 6 is a channel which is scanned for the first time, that is, a channel which is not punctured in the channel scanning of the current round, and it is determined that there is a wireless terminal which needs to be reversed on the channel 6, and there is no wireless terminal which needs to be reversed on the previously scanned channel, in this case, it is determined that the channel 6 is a reverse channel, and it is determined whether the number of the scanned reverse channels reaches 3; and because the number of the scanned anti-copy channels is 0 and is not reached, the wireless terminal needing anti-copy is anti-copied, and when the time for scanning the channel 6 reaches 100ms, whether the data message sent to the illegal AP by the wireless terminal needing anti-copy is monitored or not is judged.
If the result of the determination is negative, it indicates that the reverse of the wireless terminal has been successfully completed in the scanning period, and in order to avoid the wireless terminals from being associated with the illegal AP again in an interim, the subsequent scanning frequency of the channel may be increased, that is, the channel 6 is respectively inserted behind each initial channel in the table one according to the sequence of each initial channel, as shown in the table two above, and the next channel corresponding to the channel 6 in the table one in the table two above, that is, the channel 7, is continuously scanned.
If the result of the judgment is yes, the fact that the wireless terminal is not completely copied in the scanning period is indicated, at this time, the wireless terminal needing to be copied is continuously copied on the channel 6 until the data message sent to the illegal AP by the wireless terminal needing to be copied is not monitored, namely, the fact that the copying is completely finished is avoided. In order to avoid that these wireless terminals re-associate with the illegal AP after a period of time, the subsequent scanning frequency of the channel is still increased, that is, according to the sequence of each initial channel, the total number of scanning cycles (assuming that the total number is 3) for scanning the channel 6 is respectively inserted behind each initial channel in the table one, as shown in the table four above, and the scanning is continued to the next channel corresponding to the channel 6 in the table one in the table four above, that is, the channel 7.
If the channel 7 has no wireless terminal that needs to perform the copy-back operation, the next channel corresponding to the channel 7 in the table four, i.e., the channel 6, is scanned after the channel 7 is scanned, and it is found that the channel 6 is a channel interspersed in the channel scanning in the current round, the copy-back operation is performed in the scanning period of the channel 6, and after the scanning period is reached, the next channel corresponding to the channel 6 in the table four or the channel 6 is continuously scanned.
Example two
Assuming that the channels supported by the AP with the WIPS function are channels 1 to 13, i.e. the initial channels, the channel list has been updated as shown in table six, the scanning period is 100ms, and the set number is 3.
1 2 6 7 2 2 6 7 2 6 7 8 2 6 7 13 2 6 7
Watch six
Assuming that the channel currently scanned by the AP enabling the WIPS function is the underlined channel 6 in table six, and the channel 6 is the channel interspersed in the channel scanning in the current round, that is, the channel of the copy, the copy operation is directly performed, and after the scanning period arrives, the next channel corresponding to the channel 6 in table six, that is, the channel 7, is continuously scanned.
Assuming that a channel currently scanned by the AP which enables the WIPS function is channel 8 in table six, and channel 8 is a channel scanned for the first time, that is, a channel which is not punctured in the current scanning of the channel, and it is determined that there is a wireless terminal which needs to perform a reverse operation on channel 8, there are 3 reverse operation channels scanned before, which are channel 2, channel 6, and channel 7, respectively, in this case, it is determined that channel 8 is a reverse operation channel, and it is determined whether the number of the scanned reverse operation channels reaches 3; since the number of scanned anti-jamming channels is 3, it has been achieved that the number of wireless terminals that need to be anti-jammed on channel 8 and the maximum number of wireless terminals that have been anti-jammed on the scanned anti-jamming channels (i.e., channel 2, channel 6, and channel 7) are ranked in order from large to small.
Under the condition that the rank of the number of the wireless terminals needing to be subjected to the countermeasures on the channel 8 is located at the top 3, and the top 3 are excluded from the maximum number of the wireless terminals subjected to the countermeasures on the channel 2, the wireless terminals needing to be subjected to the countermeasures are subjected to the countermeasures, and whether the data message sent by the wireless terminals needing to be subjected to the countermeasures to the illegal AP is monitored when 100ms arrives.
And if the judgment result is negative, deleting the channel 2 which is inserted in the table six, as shown in the table seven, respectively inserting the channel 8 behind each initial channel in the table seven according to the sequence of each initial channel, as shown in the table eight, and continuously scanning the next channel, namely the channel 6, corresponding to the channel 8 in the table seven in the table eight.
1 6 7 2 6 7 3 6 7 6 7 8 6 7 9 13 6 7
Watch seven
1 6 7 8 2 6 7 8 6 7 8 9 6 7 8 13 6 7 8
Watch eight
And if so, continuously performing the reverse control on the wireless terminal needing the reverse control on the channel 8 until the data message sent to the illegal AP by the wireless terminal needing the reverse control is not monitored, deleting the channel 2 which is penetrated in the table six, as shown in the table seven, respectively and uniformly penetrating the total number (the assumed total number is 2) of the channels 8 used for scanning the channel 8 to the back of each initial channel in the table seven according to the sequence of each initial channel, and as shown in the table nine, continuously scanning the next channel, namely the channel 6, corresponding to the channel 8 in the table seven in the table nine.
1 6 8 7 8 2 6 8 7 8 8 6 8 7 8 13 6 8 7 8
Watch nine
Therefore, in the application, the AP which enables the WIPS function enhances the counter time for the counter channel, and increases the scanning frequency of the counter channel by dynamically adjusting the channel list, thereby improving the counter effect.
Based on the same inventive concept, the present application further provides a channel scanning apparatus, a schematic structural diagram of which is shown in fig. 2, the apparatus is applied to an AP enabling WIPS function, and specifically includes:
the first counter-control module 21 is configured to counter the wireless terminal that needs counter-control when the currently scanned channel is not a channel that has been inserted in the previous or current channel scanning and it is determined that there is a wireless terminal that needs counter-control on the channel, and when a scanning period of the channel arrives, determine whether to monitor a data packet sent by the wireless terminal that needs counter-control to the illegal AP;
a first puncturing module 22, configured to, when the determination result is negative, respectively puncture the channels behind each initial channel in the current channel list according to the order of each initial channel, and continue to scan a next channel, in the current channel list, corresponding to the channel in the punctured channel list; and
and when the judgment result is yes, continuously performing the reverse control on the wireless terminal needing the reverse control on the channel until the data message sent to the illegal AP by the wireless terminal needing the reverse control is not monitored, respectively inserting the total number of the channels of the scanning period used for scanning the channels behind each initial channel in the current channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the current channel list in the inserted channel list.
Preferably, the first countering module 21 is further configured to determine that the channel is a countering channel before performing the step of countering the wireless terminal that needs countering; judging whether the number of the scanned anti-modulation channels reaches a set number or not; and if the judgment result is negative, performing a step of countering the wireless terminal needing countering.
Preferably, the apparatus further comprises:
a ranking module (not shown in fig. 2) configured to rank, according to a descending order, the number of wireless terminals that need to be reversed on the channel and the maximum number of wireless terminals that have been reversed on the scanned reversed channel when it is determined that the number of the scanned reversed channels reaches a set number;
the second counter-control module is used for counter-controlling the wireless terminals needing counter-control if the ranking of the number of the wireless terminals needing counter-control on the channel is in the top N, and judging whether the data messages sent to the illegal AP by the wireless terminals needing counter-control are monitored when the scanning period arrives, wherein the value of N is the same as that of the set number;
a second interleaving module, configured to delete, when the determination result is negative, channels that are interleaved in the current channel list and are not located in the first N ranks of the reversed maximum number of wireless terminals, respectively interleave the channels behind each initial channel in the deleted channel list according to the sequence of each initial channel, and continue to scan a next channel corresponding to the channel in the deleted channel list in the interleaved channel list; and
and when the judgment result is yes, continuously performing countercheck on the wireless terminal needing countercheck on the channel until the data message sent to the illegal AP by the wireless terminal needing countercheck is not monitored, deleting the channels which are interspersed in the current channel list and the highest ranking of the wireless terminals needing countercheck is not positioned in the first N, respectively interspersing the total number of the channels used for scanning the channels behind each initial channel in the deleted channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the deleted channel list in the interspersed channel list.
Preferably, the apparatus further comprises:
a third counter module (not shown in fig. 2), configured to counter the wireless terminal that needs to be counter-configured when the currently scanned channel is a channel that has been punctured in the previous or current channel scanning, and continue to scan a next channel corresponding to the channel in the current channel list after the scanning period arrives.
Preferably, the first puncturing module 22 is specifically configured to respectively puncture the channels to the back of each initial channel in the current channel list by:
for each initial channel, if the back of the initial channel has an inserted reverse channel, inserting the channel behind the inserted reverse channel;
the first puncturing module 22 is specifically configured to respectively puncture the total number of channels used for scanning the channels to the back of each initial channel in the current channel list by the following operations, and specifically includes:
for each initial channel, if there is a punctured reverse channel following the initial channel, uniformly puncturing the total number of channels of the scanning period used for scanning the channels into the punctured reverse channel.
Preferably, the apparatus further comprises:
a notifying module (not shown in fig. 2) configured to, after determining the set number of the reverse channels, send a notification message to other WIPS-enabled APs that scan at least one of the set number of the reverse channels that require a wireless terminal to be reversed, so that the other WIPS-enabled APs do not count the number of the wireless terminals that require a reverse on the at least one channel that the WIPS-enabled APs notify when determining the number of the wireless terminals that have been reversed on the at least one channel.
Therefore, in the application, the AP which enables the WIPS function enhances the counter time for the counter channel, and increases the scanning frequency of the counter channel by dynamically adjusting the channel list, thereby improving the counter effect.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (12)

1. A channel scanning method applied to an access point AP enabling wireless intrusion prevention system WIPS functionality, the method comprising:
when the current scanning channel is not a channel inserted in the previous or current channel scanning and a wireless terminal needing to be copied is determined to be on the channel, copying the wireless terminal needing to be copied, and judging whether a data message sent to an illegal AP by the wireless terminal needing to be copied is monitored when the scanning period of the channel is reached;
if not, respectively inserting the channels behind each initial channel in the current channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the current channel list in the inserted channel list;
and when the judgment result is yes, continuously performing the reverse control on the wireless terminal needing the reverse control on the channel until the data message sent to the illegal AP by the wireless terminal needing the reverse control is not monitored, respectively inserting the total number of the channels of the scanning period used for scanning the channels behind each initial channel in the current channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the current channel list in the inserted channel list.
2. The method of claim 1, wherein prior to performing the step of countering the wireless terminal that requires countering, the method further comprises:
determining the channel as a counter channel;
judging whether the number of the scanned anti-modulation channels reaches a set number or not;
and if the judgment result is negative, performing a step of countering the wireless terminal needing countering.
3. The method of claim 2, further comprising:
when the number of the scanned anti-modulation channels reaches the set number, ranking the number of the wireless terminals needing anti-modulation on the channels and the maximum number of the wireless terminals needing anti-modulation on the scanned anti-modulation channels according to the sequence from large to small;
if the ranking of the number of the wireless terminals needing to be countermade on the channel is located at the top N, the wireless terminals needing to be countermade are countermade, and when the scanning period is reached, whether the data message sent to the illegal AP by the wireless terminal needing to be countermade is monitored, wherein the value of N is the same as that of the set number;
if not, deleting the channels which are punctured in the current channel list and are not positioned in the first N ranks of the reversed wireless terminals, respectively puncturing the channels behind each initial channel in the deleted channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the deleted channel list in the punctured channel list;
and when the judgment result is yes, continuously performing countercheck on the wireless terminal needing countercheck on the channel until the data message sent to the illegal AP by the wireless terminal needing countercheck is not monitored, deleting the channels which are interspersed in the current channel list and the highest ranking of the wireless terminals needing countercheck is not positioned in the first N, respectively interspersing the total number of the channels used for scanning the channels behind each initial channel in the deleted channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the deleted channel list in the interspersed channel list.
4. The method of claim 1, further comprising:
and when the currently scanned channel is a channel interspersed in the previous or current channel scanning, performing countercheck on the wireless terminal needing countercheck, and continuously scanning the next channel corresponding to the channel in the current channel list after the scanning period is reached.
5. The method of claim 1, wherein the puncturing the channels respectively after each initial channel in the current channel list comprises:
for each initial channel, if the back of the initial channel has an inserted reverse channel, inserting the channel to the back of the inserted reverse channel;
inserting the total number of channels used for scanning the channels into the back of each initial channel in the current channel list respectively, specifically including:
for each initial channel, if there is a punctured reverse channel following the initial channel, uniformly puncturing the total number of channels of the scanning period used for scanning the channels into the punctured reverse channel.
6. The method of claim 3, further comprising:
after the set number of the reverse channels are determined, sending a notification message to other WIPS function-enabled APs of the wireless terminal which needs to be reversed on at least one channel of the set number of the reverse channels, so that when the other WIPS function-enabled APs determine the number of the wireless terminals which need to be reversed on the at least one channel, the number of the wireless terminals which need to be reversed on the at least one channel and are notified by the WIPS function-enabled APs is not counted.
7. A channel scanning apparatus, which is applied to an access point AP that enables wireless intrusion prevention system WIPS function, the apparatus comprising:
the first counter-control module is used for counter-controlling the wireless terminal needing counter-control when the currently scanned channel is not a channel which is inserted in the previous round of channel scanning or the current round of channel scanning and the wireless terminal needing counter-control on the channel is determined, and judging whether the data message sent to the illegal AP by the wireless terminal needing counter-control is monitored or not when the scanning period of the channel is reached;
a first interleaving module, configured to, when the determination result is negative, interleave the channels behind each initial channel in the current channel list according to the order of each initial channel, and continue to scan a next channel corresponding to the channel in the current channel list in the interleaved channel list; and
and when the judgment result is yes, continuously performing the reverse control on the wireless terminal needing the reverse control on the channels until the data message sent to the illegal AP by the wireless terminal needing the reverse control cannot be monitored, respectively inserting the total number of the channels used for scanning the channels behind each initial channel in the current channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the current channel list in the inserted channel list.
8. The apparatus of claim 7, wherein the first countering module is further configured to determine that the channel is a countering channel before performing the step of countering the wireless terminal that needs countering; judging whether the number of the scanned anti-modulation channels reaches a set number or not; and if the judgment result is negative, performing a step of countering the wireless terminal needing countering.
9. The apparatus of claim 8, further comprising:
the ranking module is used for ranking the number of the wireless terminals needing to be reversed on the channel and the maximum number of the reversed wireless terminals on the scanned reversed channel according to the sequence from large to small when the number of the scanned reversed channels reaches the set number;
the second counter-control module is used for counter-controlling the wireless terminals needing counter-control if the ranking of the number of the wireless terminals needing counter-control on the channel is in the top N, and judging whether the data messages sent to the illegal AP by the wireless terminals needing counter-control are monitored when the scanning period arrives, wherein the value of N is the same as that of the set number;
a second interleaving module, configured to, when the determination result is negative, delete channels that are interleaved in the current channel list and for which the maximum number of ranks of the reversed wireless terminals are not located in the first N names, respectively interleave the channels behind each initial channel in the deleted channel list according to the order of each initial channel, and continue to scan a next channel corresponding to the channel in the deleted channel list in the interleaved channel list; and
and when the judgment result is yes, continuously performing countercheck on the wireless terminal needing countercheck on the channel until the data message sent to the illegal AP by the wireless terminal needing countercheck is not monitored, deleting the channels which are interspersed in the current channel list and the highest ranking of the wireless terminals needing countercheck is not positioned in the first N, respectively interspersing the total number of the channels used for scanning the channels behind each initial channel in the deleted channel list according to the sequence of each initial channel, and continuously scanning the next channel corresponding to the channel in the deleted channel list in the interspersed channel list.
10. The apparatus of claim 7, further comprising:
and the third counter module is used for counter-controlling the wireless terminal needing counter-control when the currently scanned channel is a channel interspersed in the previous round of channel scanning or the current round of channel scanning, and continuously scanning the next channel corresponding to the channel in the current channel list after the scanning period is reached.
11. The apparatus of claim 7, wherein the first interspersing module is specifically configured to intersperse the channels respectively behind each initial channel in the current channel list by:
for each initial channel, if the back of the initial channel has an inserted reverse channel, inserting the channel to the back of the inserted reverse channel;
the first puncturing module is specifically configured to respectively puncture the total number of channels used for scanning the channels to the back of each initial channel in the current channel list by the following operations, and specifically includes:
for each initial channel, if there is a punctured reverse channel following the initial channel, uniformly puncturing the total number of channels of the scanning period used for scanning the channels into the punctured reverse channel.
12. The apparatus of claim 9, further comprising:
and the notification module is used for sending a notification message to other WIPS function-enabled APs of the wireless terminal which needs to be controlled on at least one channel in the set number of control channels after the set number of control channels are determined, so that the number of the wireless terminals which need to be controlled on the at least one channel and are notified by the WIPS function-enabled APs is not counted when the number of the wireless terminals which need to be controlled on the at least one channel is determined by the other WIPS function-enabled APs.
CN202010063492.4A 2020-01-20 2020-01-20 Channel scanning method and device Active CN111278083B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010063492.4A CN111278083B (en) 2020-01-20 2020-01-20 Channel scanning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010063492.4A CN111278083B (en) 2020-01-20 2020-01-20 Channel scanning method and device

Publications (2)

Publication Number Publication Date
CN111278083A CN111278083A (en) 2020-06-12
CN111278083B true CN111278083B (en) 2022-05-27

Family

ID=71001779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010063492.4A Active CN111278083B (en) 2020-01-20 2020-01-20 Channel scanning method and device

Country Status (1)

Country Link
CN (1) CN111278083B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630780B (en) * 2021-08-11 2024-04-16 迈普通信技术股份有限公司 Countering method for illegal wireless access point

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658509A (en) * 2016-10-31 2017-05-10 迈普通信技术股份有限公司 Countering method and equipment for invalid wireless access points and wireless local area network
CN108235322A (en) * 2017-12-28 2018-06-29 新华三技术有限公司 A kind of counter method and device of wireless device
CN108901025A (en) * 2018-07-10 2018-11-27 迈普通信技术股份有限公司 A kind of rogue access point counter method and counter equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457942B (en) * 2010-10-29 2016-06-15 中兴通讯股份有限公司 A kind of method and system of scanning channel in wireless network
KR102172046B1 (en) * 2014-05-27 2020-10-30 삼성전자주식회사 Method and apparatus for scanning access point in a wireless communication system
KR102329493B1 (en) * 2015-11-27 2021-11-22 삼성전자 주식회사 Method and apparatus for preventing connection in wireless intrusion prevention system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658509A (en) * 2016-10-31 2017-05-10 迈普通信技术股份有限公司 Countering method and equipment for invalid wireless access points and wireless local area network
CN108235322A (en) * 2017-12-28 2018-06-29 新华三技术有限公司 A kind of counter method and device of wireless device
CN108901025A (en) * 2018-07-10 2018-11-27 迈普通信技术股份有限公司 A kind of rogue access point counter method and counter equipment

Also Published As

Publication number Publication date
CN111278083A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
JP6085033B2 (en) Method and apparatus for transmitting and receiving trunking paging in an LTE system
JP4663146B2 (en) Communication apparatus and communication method
CN100584085C (en) Mobile communications system, radio network controller, and active set control method
CN106658613B (en) Cell reselection method and device
DE102015004784B4 (en) Method and apparatus for responding to a potential bulk random access event
CN111278083B (en) Channel scanning method and device
CN102256337B (en) Message processing method and equipment in wireless local area network (WLAN)
CN107211335B (en) Cell reselection method and user terminal
CN1147191C (en) Carrier scanning in cellular network
US8224324B2 (en) Method of cell re-selection in multimedia broadcast multicast service (MBMS) system after MBMS session stop
CN110312259B (en) Pseudo base station identification method, pseudo base station identification device, terminal and storage medium
EP3979688A1 (en) Method and apparatus for determining inter-frequency adjacent area
WO2009001269A2 (en) Apparatus, method and computer program product providing signaling between mobile terminal and network in presence of private cells/closed subscriber groups
CN108811172B (en) Random access method and device of terminal and random access method and device of base station
US20030189949A1 (en) Method of random access to a physical random access channel and mobile station implementing this method
WO2011070041A1 (en) Access control of machine-to-machine communication via a communications network
CN108632866B (en) Resource occupation conflict processing method and base station
CN101616425A (en) Obtain the method and the device of paired plot information in the multiple frequency point system
JP2023554088A (en) Network selection method, device, equipment and storage medium
CN1175340A (en) Method and system for desynchronizing overhead messages in a radiocommunication system
CN114449564B (en) Method, device and equipment for detecting performance failure cell
CN112954686B (en) User equipment mobility management method and device and computer readable storage medium
US5613215A (en) Method of transmitting security codes to communication units
CN1277501A (en) Method and apparatus for detecting CDMA system volume lowering
CN114727341A (en) Method, terminal and network equipment for accessing cell

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