CN117651312A - Router control method, device, router and storage medium - Google Patents

Router control method, device, router and storage medium Download PDF

Info

Publication number
CN117651312A
CN117651312A CN202410123956.4A CN202410123956A CN117651312A CN 117651312 A CN117651312 A CN 117651312A CN 202410123956 A CN202410123956 A CN 202410123956A CN 117651312 A CN117651312 A CN 117651312A
Authority
CN
China
Prior art keywords
channel
router
working
state
determining
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.)
Granted
Application number
CN202410123956.4A
Other languages
Chinese (zh)
Other versions
CN117651312B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202410123956.4A priority Critical patent/CN117651312B/en
Publication of CN117651312A publication Critical patent/CN117651312A/en
Application granted granted Critical
Publication of CN117651312B publication Critical patent/CN117651312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0457Variable allocation of band or rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access
    • H04W74/08Non-scheduled access, e.g. ALOHA
    • H04W74/0866Non-scheduled access, e.g. ALOHA using a dedicated channel for access

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure relates to the technical field of wireless communication, and in particular relates to a router control method, a device, a router and a storage medium, wherein the method comprises the following steps: determining the channel state of a working channel of a router; and determining the working mode of the router according to the channel state, wherein the working mode is used for representing whether the router supports simultaneous data transmission with other routers. Through the scheme, on one hand, the working mode of the router can be dynamically adjusted according to the channel state. On the other hand, since the operation mode of the router is used for representing whether the router supports simultaneous data transmission with other routers, when the operation mode of the router is used for representing the operation mode supporting simultaneous data transmission with other routers, a plurality of routers can simultaneously utilize different operation channels for data transmission. Therefore, not only can the waste of spectrum resources be avoided, but also the utilization rate of the spectrum resources can be improved. The contention waiting time of the working channel can be reduced, and the data transmission delay of the router can be improved.

Description

Router control method, device, router and storage medium
Technical Field
The disclosure relates to the technical field of wireless communication, and in particular relates to a router control method, a device, a router and a storage medium.
Background
With the increasing popularity of smart devices, routers for connecting various local and wide area networks in the internet have taken an increasingly important place in everyday life.
In the related art, before the router performs data transmission based on the spectrum resources of the channels, it is required to monitor whether all working channels of the router are idle, and perform data transmission when all working channels are idle, thereby causing the waste of spectrum resources.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a router control method, apparatus, router, and storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a router control method, the method including:
determining a channel state of a working channel of a router, wherein the channel state is used for representing whether the working channel is in a busy state or an idle state;
and determining the working mode of the router according to the channel state of the working channel, wherein the working mode is used for representing whether the router supports simultaneous data transmission with other routers.
Optionally, the determining the working mode of the router according to the channel state of the working channel includes:
And when the channel state of the working channel represents that the working channel is in an idle state or the channel state of a main channel in the working channel represents that the main channel is in a busy state, determining the working mode of the router as a working mode for representing that the router does not support simultaneous data transmission with other routers.
Optionally, the determining the working mode of the router according to the channel state of the working channel includes:
when the channel state of a main channel in the working channel represents that the main channel is in an idle state, determining whether a target channel combination accords with a preset channel combination rule according to the channel state of the working channel, wherein the target channel combination is determined according to the working channel in the working channel, and the channel state of which is in the idle state;
and when the target channel combination accords with a preset channel combination rule, determining the working mode of the router as a working mode for representing supporting simultaneous data transmission with other routers.
Optionally, the determining whether the target channel combination meets a preset channel combination rule according to the channel state of the working channel includes:
determining a target punching mode according to the channel state of the working channel, and determining whether the target punching mode accords with a preset punching mode rule, wherein the target punching mode is used for moving out of the working channel in a busy state;
When the target punching mode accords with a preset punching mode rule, determining that the target channel combination accords with a preset channel combination rule;
and when the target punching mode does not accord with a preset punching mode rule, determining that the target channel combination does not accord with the preset channel combination rule.
Optionally, when the channel state of the main channel in the working channels characterizes that the main channel is in a busy state, determining the working mode of the router as a working mode for characterizing that the router does not support simultaneous data transmission with other routers includes:
when the channel state of the main channel in the working channels represents that the main channel is in a busy state, determining whether to switch the main channel into the working channel with the idle state;
and when the main channel is not switched to the working channel with the idle channel state, determining the working mode of the router as the working mode for representing that the simultaneous transmission of data with other routers is not supported.
Optionally, the method further comprises:
and when the working mode of the router is used for representing that the router supports the simultaneous transmission of data with other routers, determining a main channel for transmitting data according to the channel state of the working channel.
Optionally, the determining a main channel for transmitting data according to the channel state of the working channel includes:
determining a maximum continuous bandwidth between the target working channel and the rest target working channels for each target working channel in which the channel state is an idle state;
and determining the target working channel corresponding to the maximum continuous bandwidth as a main channel for transmitting data.
Optionally, the determining the channel state of the working channel of the router includes:
determining the channel occupancy rate of the working channel;
and determining the channel state of the working channel of the router according to the channel occupancy rate and a preset channel occupancy rate threshold.
Optionally, the determining the channel state of the working channel of the router according to the channel occupancy rate and a preset channel occupancy rate threshold includes:
when the router is started, determining the channel occupancy rate and the channel occupancy rate threshold value;
when the channel occupancy rate is larger than the channel occupancy rate threshold value, determining a channel state used for representing that the working channel is in a busy state;
and determining a channel state used for representing that the working channel is in an idle state when the channel occupancy rate is smaller than or equal to the channel occupancy rate threshold value.
Optionally, the determining the channel state of the working channel of the router according to the channel occupancy rate and a preset channel occupancy rate threshold includes:
after the router is started, determining whether the frequency of the channel occupancy rate being greater than the channel occupancy rate threshold reaches a preset frequency threshold;
when the frequency of the channel occupancy rate being larger than the channel occupancy rate threshold reaches a preset frequency threshold, determining a channel state used for representing that the working channel is in a busy state;
and determining a channel state used for representing that the working channel is in an idle state when the frequency of the channel occupancy rate being larger than the channel occupancy rate threshold value does not reach a preset frequency threshold value.
According to a second aspect of the embodiments of the present disclosure, there is provided a router control apparatus including:
a first determining module configured to determine a channel state of a working channel of a router, the channel state being used to characterize the working channel as a busy state or an idle state;
and the second determining module is configured to determine an operating mode of the router according to the channel state of the operating channel, wherein the operating mode is used for representing whether the router supports simultaneous data transmission with other routers.
Optionally, the second determining module includes:
and the first determining unit is configured to determine the working mode of the router to be a working mode for representing that the router does not support simultaneous data transmission with other routers when the channel state of the working channel represents that the working channel is in an idle state or the channel state of a main channel in the working channel represents that the main channel is in a busy state.
Optionally, the second determining module includes:
the second determining unit is configured to determine whether a target channel combination accords with a preset channel combination rule according to the channel state of the working channel when the channel state of the main channel in the working channel represents that the main channel is in an idle state, and the target channel combination is determined according to the working channel in the working channel and the channel state of the working channel is in the idle state;
and the third determining unit is configured to determine the working mode of the router as a working mode for representing supporting simultaneous data transmission with other routers when the target channel combination accords with a preset channel combination rule.
Optionally, the second determining unit includes:
the first determining subunit is configured to determine a target punching mode according to the channel state of the working channel, and determine whether the target punching mode accords with a preset punching mode rule, wherein the target punching mode is used for moving out of the working channel in a busy state;
A second determining subunit configured to determine that the target channel combination meets a preset channel combination rule when the target puncturing pattern meets a preset puncturing pattern rule;
and a third determining subunit configured to determine that the target channel combination does not conform to a preset channel combination rule when the target puncturing pattern does not conform to the preset puncturing pattern rule.
Optionally, the first determining unit includes:
a fourth determining subunit configured to determine whether to switch the main channel to an operating channel whose channel state is an idle state when the channel state of the main channel in the operating channels characterizes the main channel as a busy state;
and a fifth determining subunit configured to determine, when determining that the primary channel is not switched to the working channel with the channel state being the idle state, that the working mode of the router is a working mode for characterizing that simultaneous data transmission with other routers is not supported.
Optionally, the router control device further includes:
and a third determining module configured to determine a main channel for transmitting data according to a channel state of the working channel when the working mode of the router is used for representing that the router supports simultaneous data transmission with other routers.
Optionally, the third determining module includes:
a fourth determining unit configured to determine, for each of the target operating channels whose channel state is an idle state, a maximum continuous bandwidth between the target operating channel and an adjacent target operating channel;
and a fifth determining unit configured to determine the target working channel corresponding to the maximum continuous bandwidth as a main channel for transmitting data.
Optionally, the first determining module includes:
a sixth determining unit configured to determine a channel occupancy of the working channel;
and a seventh determining unit configured to determine a channel state of the working channel of the router according to the channel occupancy rate and a preset channel occupancy rate threshold.
Optionally, the seventh determining unit includes:
a sixth determining subunit configured to determine, when the router is started, the magnitudes of the channel occupancy and the channel occupancy threshold;
a seventh determining subunit configured to determine a channel state for characterizing that the working channel is in a busy state when the channel occupancy is greater than the channel occupancy threshold;
An eighth determination subunit configured to determine a channel state for characterizing that the working channel is in an idle state when the channel occupancy is less than or equal to the channel occupancy threshold.
Optionally, the seventh determining unit includes:
a ninth determining subunit configured to determine, after the router is started, whether the number of times that the channel occupancy is greater than the channel occupancy threshold reaches a preset number of times threshold;
a tenth determination subunit configured to determine a channel state for characterizing that the working channel is in a busy state when the number of times the channel occupancy is greater than the channel occupancy threshold reaches a preset number of times threshold;
an eleventh determination subunit configured to determine a channel state for characterizing that the working channel is in an idle state when the number of times the channel occupancy is greater than the channel occupancy threshold does not reach a preset number of times threshold.
According to a third aspect of embodiments of the present disclosure, there is provided a router comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
performing the steps of the method of any of the first aspects of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any of the first aspects of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
through the technical scheme, the channel state of the working channel of the router can be determined first, and then the working mode of the router is determined according to the channel state of the working channel. The working mode of the router is used for representing whether the router supports simultaneous data transmission with other routers, namely whether the router supports simultaneous data transmission by utilizing spectrum resources of different channels, so that the service condition of the spectrum resources can be dynamically adjusted according to the channel state of the working channel, and the utilization rate of the spectrum resources is improved. In addition, because the working mode of the router is used for representing whether the router supports the simultaneous transmission of data with other routers, when the working mode of the router is used for representing the working mode for supporting the simultaneous transmission of data with other routers, a plurality of routers can simultaneously utilize spectrum resources of different channels for data transmission, on one hand, the waste of spectrum resources can be avoided, and the utilization rate of the spectrum resources is improved. On the other hand, the contention waiting time of the channel can be reduced, and the data transmission delay of the router can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a router control method according to an exemplary embodiment;
FIG. 2 is a schematic diagram of the operating channels of a router according to an exemplary embodiment;
FIG. 3 is a block diagram of a router control device, according to an example embodiment;
fig. 4 is a block diagram illustrating an apparatus for router control according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be noted that, all actions for acquiring signals, information or data in the present disclosure are performed under the condition of conforming to the corresponding data protection rule policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.
As described in the background art, in the related art, before data transmission is performed on the spectrum resources based on the channels, the router needs to monitor whether all working channels of the router are idle, and data transmission can be performed only when all working channels are idle, so that the spectrum resources are wasted.
Illustratively, as shown in fig. 2, 36 channel, 40 channel, 44 channel, 48 channel, 52 channel, 56 channel, and 60 channel in the figure are all channels of 20MHz bandwidth. The working bandwidth of the router A is 160MHz, the working channels are 36 channels, 40 channels, 44 channels, 48 channels, 52 channels, 56 channels and 60 channels, and the main channel of the router A is 36 channels. The working bandwidth of the router B (a router supporting only the 802.11a protocol, the maximum bandwidth of the 802.11a protocol is only 20MHz, or a router configured with only 11n, 11ac or 11ax of 20 MHz) is 20MHz, the working channel is 48 channels, and the 48 channels are also the main channels of the router B. Since two routers commonly use 48 channels, two routers need to contend for channel usage before sending data, and when one router gets channel usage, the other router must stay silent. Meanwhile, since the working bandwidth of the router a is 160MHz, it is necessary to monitor all channels within the entire 160MHz bandwidth, that is, 36 channels, 40 channels, 44 channels, 48 channels, 52 channels, 56 channels and 60 channels are idle, so that the channels can be accessed. Router B has an operating bandwidth of 20MHz and therefore only needs to monitor whether 48 channels are idle for access.
If the router a and the router B compete for the channel usage right, the router B competes for the channel usage right to 48 channels, and the router B only occupies the 20MHz spectrum of 48 channels in the data transmission process, so that although there is no data transmission on 36 channels, 40 channels, 44 channels, 52 channels, 56 channels and 60 channels, the router a needs to monitor that all channels are idle for use, and therefore, in the data transmission process of the router B, the 36 channels, 40 channels, 44 channels, 52 channels, 56 channels and 60 channels are in idle states, thereby causing the waste of spectrum resources and reducing the utilization rate of the spectrum resources.
In order to overcome the above technical problems, an 802.11be protocol is proposed in the related art, and the spectrum resource utilization rate under the above scenario is to be further improved through a puncture mechanism in the 802.11be protocol.
For example, if router a is an 802.11be protocol router in the above example, after router B competes for 48 channels, router a may set the channel to 48 channels, and then router a only needs to monitor whether several channels, namely 36 channels, 40 channels, 44 channels, 52 channels, 56 channels, and 60 channels, are idle. If idle, router A may send the data. Therefore, the router A and the router B can simultaneously utilize different channels to carry out data transmission, and the channel utilization rate is improved.
However, since the data transmission process of the router is complicated, not only is the channel usage of the remaining routers related during the data transmission process, i.e., whether the remaining routers occupy the common channel. And is more closely related to the self channel use condition. Therefore, the utilization rate of spectrum resources cannot be well adjusted by utilizing a publication mechanism according to the channel use conditions of the rest routers.
In view of the above, embodiments of the present disclosure provide a method, an apparatus, a router, and a storage medium for controlling a router, so as to solve the above technical problems.
Fig. 1 is a flowchart illustrating a router control method according to an exemplary embodiment, as shown in fig. 1, which may include steps S101-S102.
In step S101, a channel state of an operating channel of the router is determined, where the channel state is used to characterize the operating channel as being in a busy state or an idle state.
It should be appreciated that the range of channels supported by devices that are applicable to different countries may be different, and thus the operating channel of a router is determined based on the operating bandwidth of the router and the country to which the router is applicable, which is not subject to any limitation by the disclosed embodiments.
For example, there are 14 channels within the 2.4GHz band that are separated every 5MHz (except that the 14 th channel is separated from the 13 th channel by 12 MHz), each channel has a bandwidth of 20MHz, and the channels may be numbered as channel 1-channel 14 in sequence. The range of channels supported by devices in the 2.4GHz band applicable to country a may be channels 1-13. The channel range supported by the device applicable to country B in the 2.4GHz band may then be channels 1-11. Therefore, the working channels of the router applicable to the A country can be combined from the channels 1-13 according to the working bandwidth of the router, and the combined channel group accords with the WIFI protocol specification. And the same is true. The working channel of the router applicable to the country B can be combined from the channels 1-11 according to the working bandwidth of the router, and the combined channel group accords with the WIFI protocol specification.
In a possible manner, the determining the channel state of the working channel of the router may include:
determining the channel occupancy rate of the working channel; and determining the channel state of the working channel of the router according to the channel occupancy rate and a preset channel occupancy rate threshold.
It should be understood that the channel occupancy threshold may be set according to actual situations, and the embodiments of the present disclosure do not limit this in any way.
It should be further understood that the channel occupancy may refer to a proportion of all access point devices (APs) in the channel that are used to transmit data during a period of time, may refer to a proportion of other access point devices in the channel that are used to transmit data during a period of time except for a current access point device, and may refer to a proportion of the channel that is used to transmit data during a period of time, which may be specifically determined according to practical situations.
For example, the channel occupancy of the operating channel may be determined at router start-up by calculating the proportion of all access point devices in the operating channel that are used to transmit data over a period of time. The channel occupancy of the working channel may be determined by calculating the proportion of the working channel other than the current access point device that is used to transmit data for a period of time after the router is started.
Accordingly, when the router is started, the determining, according to the channel occupancy rate and a preset channel occupancy rate threshold, the channel state of the working channel of the router may include:
when the router is started, determining the channel occupancy rate and the channel occupancy rate threshold value; when the channel occupancy rate is larger than the channel occupancy rate threshold value, determining a channel state used for representing that the working channel is in a busy state; and determining a channel state used for representing that the working channel is in an idle state when the channel occupancy rate is smaller than or equal to the channel occupancy rate threshold value.
It should be appreciated that at router start-up, it is often difficult to accurately predict the condition and loading of the working channel based on the network environment and router configuration, as the network environment and router configuration are not known or accurate. Therefore, in order to start the router and occupy the working channel as soon as possible, the working channel can be determined to be in a busy state as long as the channel occupancy rate is detected to be larger than the channel occupancy rate threshold, or the working channel can be determined to be in an idle state as long as the channel occupancy rate is detected to be smaller than or equal to the channel occupancy rate threshold.
After the router is started, the determining the channel state of the working channel of the router according to the channel occupancy rate and the preset channel occupancy rate threshold value may include:
after the router is started, determining whether the frequency of the channel occupancy rate being greater than the channel occupancy rate threshold reaches a preset frequency threshold; when the frequency of the channel occupancy rate being larger than the channel occupancy rate threshold reaches a preset frequency threshold, determining a channel state used for representing that the working channel is in a busy state; and determining a channel state used for representing that the working channel is in an idle state when the frequency of the channel occupancy rate being larger than the channel occupancy rate threshold value does not reach a preset frequency threshold value.
It should be appreciated that whether the number of times the channel occupancy is greater than the channel occupancy threshold reaches the preset number of times threshold may be whether the total number of times the channel occupancy is greater than the channel occupancy threshold is greater than the preset number of times threshold within a preset duration. Or whether the number of times that the channel occupancy is continuously greater than the channel occupancy threshold is greater than a preset continuous number of times threshold within a preset duration.
It should be further understood that determining the channel state of the operating channel by determining whether the number of times the channel occupancy is greater than the channel occupancy threshold reaches a preset number of times threshold after the router is booted is merely illustrative and not limiting to the scheme. In a possible manner, the channel state of the working channel may also be determined by determining whether the duration of the channel occupancy greater than the channel occupancy threshold reaches a preset duration threshold. For example, when the duration that the channel occupancy is greater than the channel occupancy threshold reaches the preset duration threshold, determining a channel state for representing that the working channel is in a busy state; and when the time length that the channel occupancy rate is larger than the channel occupancy rate threshold value does not reach the preset time length threshold value, determining a channel state used for representing that the working channel is in an idle state.
Whether the time length that the channel occupancy rate is greater than the channel occupancy rate threshold reaches the preset time length threshold may be within the preset time length, and whether the total time length that the channel occupancy rate is greater than the channel occupancy rate threshold is greater than the preset frequency threshold. Or whether the duration that the channel occupancy is continuously greater than the channel occupancy threshold is greater than the preset continuous times threshold within the preset duration, which is not limited in the embodiment of the present disclosure.
It should also be appreciated that factors such as network environment and router configuration have improved after router startup, whereby the condition and loading of the working channel can be predicted more accurately based on the network environment and router configuration. Therefore, in order to ensure long-term stable operation and good working performance of the router, the channel state of the working channel can be determined by detecting the relation between the channel occupancy rate and the channel occupancy rate threshold value within a period of time, so that the actual condition of the working channel can be reflected more accurately, and the abnormal operation of the router caused by misjudgment is avoided.
In step S102, an operation mode of the router is determined according to the channel state of the operation channel, where the operation mode is used to characterize whether the router supports simultaneous data transmission with other routers.
In a possible manner, the determining the working mode of the router according to the channel state of the working channel may include:
and when the channel state of the working channel represents that the working channel is in an idle state or the channel state of a main channel in the working channel represents that the main channel is in a busy state, determining the working mode of the router as a working mode for representing that the router does not support simultaneous data transmission with other routers.
It should be appreciated that the primary channel must transmit some control data in addition to the actual data during the data transmission process to ensure that the router is able to properly forward and process the data packets. When the working mode of the router is a pubure working mode, namely, when supporting the working mode of transmitting data with other routers at the same time, the channel state is required to be busy and the processing is required to be performed on the working channel. Therefore, when the channel state of the main channel is busy, if the working mode of the router is set to the status working mode, data transmission failure may be caused, so that when the channel state of the main channel represents that the main channel is busy, the working mode of the router is determined to be a working mode for representing that data transmission with other routers is not supported.
In a possible manner, when the channel state of the main channel in the working channels characterizes that the main channel is in a busy state, determining that the working mode of the router is a working mode for characterizing that the router does not support simultaneous data transmission with other routers may include:
when the channel state of the main channel in the working channels represents that the main channel is in a busy state, determining whether to switch the main channel into the working channel with the idle state; and when the main channel is not switched to the working channel with the idle channel state, determining the working mode of the router as the working mode for representing that the simultaneous transmission of data with other routers is not supported.
Whether to switch the primary channel to the working channel with the channel state being the idle state may be determined according to practical situations, which is not limited in any way by the embodiments of the present disclosure.
For example, whether to set the primary channel switching mechanism may be determined based on whether the target wireless device, often associated with the router, supports the channel switching (Channel Switch Announcement, CSA) processing mechanism. If the target wireless device supports the CSA processing mechanism, a main channel switching mechanism can be set, so that when the channel state of the main channel represents that the main channel is in a busy state, the channel can be automatically switched to a working channel with an idle state. If the target wireless device does not support the CSA processing mechanism, the main channel switching mechanism may not be set, so that when the channel state of the main channel represents that the main channel is in a busy state, the main channel is not switched to a working channel with an idle channel state.
Here, the foregoing is merely illustrative, and is not limiting, and it may be determined whether to switch the primary channel to the working channel whose channel state is the idle state according to the channel state of the working channel, where possible.
For example, the working channel with the idle channel state may be selected according to the channel state of the working channel, then the maximum continuous bandwidth between the working channel and the adjacent working channel is determined for each selected working channel, and if the maximum continuous bandwidth is greater than the preset maximum continuous bandwidth threshold, the working channel with the idle channel state is determined to be switched to the main channel.
The first main channel, that is, the main channel when the router is started, may be determined according to the number of access point devices and/or the channel occupancy in each working channel.
For example, after determining the working channels of the router according to the working bandwidth of the router, firstly monitoring the number of access point devices and the channel occupancy rate of the working channels for a period of time according to each working channel, determining the number of access point devices of each working channel after obtaining the number of access point devices and the channel occupancy rate of each working channel, and determining the working channel with the minimum number of access point devices as a main channel. If a plurality of working channels with the least number of access point devices exist, the working channel with the least channel occupancy rate among the working channels is determined as a main channel.
In a possible manner, the determining the working mode of the router according to the channel state of the working channel may include:
when the channel state of a main channel in the working channel represents that the main channel is in an idle state, determining whether a target channel combination accords with a preset channel combination rule according to the channel state of the working channel, wherein the target channel combination is determined according to the working channel in the working channel, and the channel state of which is in the idle state; and when the target channel combination accords with a preset channel combination rule, determining the working mode of the router as a working mode for representing supporting simultaneous data transmission with other routers.
The preset channel combination rule may be determined according to different WIFI protocols, which is not limited in the embodiments of the present disclosure.
As an example, with continued reference to fig. 2, if the working channel of the router a, the channel state of which is idle, includes 36 channels, 48 channels, 52 channels, 56 channels, 60 channels, and 64 channels at a certain time. If the channel combination in the idle state accords with the channel combination rule determined according to the 802.11be protocol, determining that the working mode of the router is a pubure working mode. Otherwise, determining that the working mode of the router is a non-puberture working mode.
In a possible manner, the determining, according to the channel state of the working channel, whether the target channel combination meets a preset channel combination rule may include:
determining a target punching mode according to the channel state of the working channel, and determining whether the target punching mode accords with a preset punching mode rule, wherein the target punching mode is used for moving out of the working channel in a busy state; when the target punching mode accords with a preset punching mode rule, determining that the target channel combination accords with a preset channel combination rule; and when the target punching mode does not accord with a preset punching mode rule, determining that the target channel combination does not accord with the preset channel combination rule.
The preset perforation mode rule may be determined according to different WIFI protocols, and the embodiment of the present disclosure does not make any determination on this. For example, in the 802.11be protocol, at a bandwidth of 160MHz, the bandwidth shifted out can only be 20MHz or 40MHz, and when the bandwidth removed is 40MHz, 40MHz must be continuous. That is, in the 802.11be protocol, the puncturing pattern rule at 160MHz bandwidth is: one channel is removed or two adjacent channels are removed. Thus, when the shifted out working channel accords with the punching mode rule, the target channel combination is determined to accord with the preset channel combination rule. And when the removed working channel does not accord with the punching mode rule, determining that the target channel combination does not accord with the preset channel combination rule.
As an example, with continued reference to fig. 2, if an operation channel with a busy channel state includes 40 channels and 48 channels in the operation channel of the router a at a certain time, the target puncturing pattern determined based on the channel state of the operation channel does not conform to the preset puncturing pattern rule because the 40 channels and 48 channels are not adjacent. That is, the target channel combination: the 36 channel, 44 channel, 52 channel, 56 channel, 60 channel and 64 channel do not meet the preset channel combination rules.
By the technical scheme, the channel state of the working channel of the router can be determined, and the working mode of the router can be determined according to the channel state of the working channel. The working mode of the router is used for representing whether the router supports simultaneous data transmission with other routers, namely whether the router supports simultaneous data transmission by utilizing spectrum resources of different channels, so that the service condition of the spectrum resources can be dynamically adjusted according to the channel state of the working channel, and the utilization rate of the spectrum resources is improved. In addition, because the working mode of the router is used for representing whether the router supports the simultaneous transmission of data with other routers, when the working mode of the router is used for representing the working mode of the router supporting the simultaneous transmission of data with other routers, a plurality of routers can simultaneously utilize the spectrum resources of different channels for data transmission. On one hand, the method can avoid wasting spectrum resources, improve the utilization rate of spectrum resources, on the other hand, reduce the competition waiting time of channels and improve the data transmission delay of the router.
In a possible manner, the method may further comprise:
and when the working mode of the router is used for representing that the router supports the simultaneous transmission of data with other routers, determining a main channel for transmitting data according to the channel state of the working channel.
The primary channel may be any working channel with an idle state or a working channel with an idle state in the first channel state, which is determined according to practical situations, and the embodiments of the present disclosure do not limit this.
In a possible manner, the determining a main channel for transmitting data according to the channel state of the working channel may include:
determining a maximum continuous bandwidth between the target working channel and an adjacent target working channel aiming at each target working channel in which the channel state is an idle state in the working channels; and determining the target working channel corresponding to the maximum continuous bandwidth as a main channel for transmitting data.
As an example, with continued reference to fig. 2, if at some point the working channels of router a, the working channels whose channel states are idle, include 36 channels, 48 channels, 52 channels, 56 channels, and 64 channels. Wherein 36 channels and 64 channels have no adjacent channels, and thus the maximum continuous bandwidths of 36 channels and 64 channels are 20MHz. The adjacent channels of the 48 channel and the 56 channel are 52 channels, so that the maximum continuous bandwidth of the 48 channel and the 56 channel is 40MHz. The 52 channel has two adjacent channels, 48 channel and 56 channel, so the maximum continuous bandwidth of the 52 channel is 60MHz. That is, the maximum continuous bandwidth corresponding to the 52 channel is the largest, and thus the 52 channel can be used as a main channel for transmitting data.
It should be noted that, when there are a plurality of target working channels corresponding to the maximum continuous bandwidth, one of the plurality of target working channels may be arbitrarily selected as the primary channel for transmitting data. The primary channel for transmitting data may also be determined based on the number of access point devices in the target operating channel and/or the channel occupancy, which is not subject to any limitation by embodiments of the present disclosure.
For example, when there are a first target channel and a second target channel that can be used as a main channel, the number of access point devices in the first target channel and the second target channel may be compared first, and if the number of access point devices in the first target channel is smaller than the number of access point devices in the second target channel, the first target channel may be used as the main channel. If the number of the access point devices in the first target channel is equal to the number of the access point devices in the second target channel, the channel occupancy rates of the first target channel and the second target channel can be compared, and if the channel occupancy rate of the first target channel is smaller than the channel occupancy rate of the second target channel, the first target channel can be used as a main channel.
In this embodiment, the main channel is set to have the working channel corresponding to the maximum continuous bandwidth, so as to meet all data transmission requirements to the greatest extent, thereby avoiding the problems of network congestion, efficiency degradation, and the like.
Fig. 3 is a block diagram of a router control device, according to an example embodiment. Referring to fig. 3, the router control device 300 may include:
a first determining module 301 configured to determine a channel state of an operating channel of a router, the channel state being used to characterize the operating channel as a busy state or an idle state;
a second determining module 302 is configured to determine, according to a channel state of the working channel, a working mode of the router, where the working mode is used to characterize whether the router supports simultaneous data transmission with other routers.
In a possible manner, the second determining module 302 includes:
and the first determining unit is configured to determine the working mode of the router to be a working mode for representing that the router does not support simultaneous data transmission with other routers when the channel state of the working channel represents that the working channel is in an idle state or the channel state of a main channel in the working channel represents that the main channel is in a busy state.
In a possible manner, the second determining module 302 includes:
the second determining unit is configured to determine whether a target channel combination accords with a preset channel combination rule according to the channel state of the working channel when the channel state of the main channel in the working channel represents that the main channel is in an idle state, and the target channel combination is determined according to the working channel in the working channel and the channel state of the working channel is in the idle state;
And the third determining unit is configured to determine the working mode of the router as a working mode for representing supporting simultaneous data transmission with other routers when the target channel combination accords with a preset channel combination rule.
In a possible manner, the second determining unit includes:
the first determining subunit is configured to determine a target punching mode according to the channel state of the working channel, and determine whether the target punching mode accords with a preset punching mode rule, wherein the target punching mode is used for moving out of the working channel in a busy state;
a second determining subunit configured to determine that the target channel combination meets a preset channel combination rule when the target puncturing pattern meets a preset puncturing pattern rule;
and a third determining subunit configured to determine that the target channel combination does not conform to a preset channel combination rule when the target puncturing pattern does not conform to the preset puncturing pattern rule.
In a possible manner, the first determining unit includes:
a fourth determining subunit configured to determine whether to switch the main channel to an operating channel whose channel state is an idle state when the channel state of the main channel in the operating channels characterizes the main channel as a busy state;
And a fifth determining subunit configured to determine, when determining that the primary channel is not switched to the working channel with the channel state being the idle state, that the working mode of the router is a working mode for characterizing that simultaneous data transmission with other routers is not supported.
In a possible manner, the router control device 300 further includes:
and a third determining module configured to determine a main channel for transmitting data according to a channel state of the working channel when the working mode of the router is used for representing that the router supports simultaneous data transmission with other routers.
In a possible manner, the third determining module includes:
a fourth determining unit configured to determine, for each of the target operating channels whose channel state is an idle state, a maximum continuous bandwidth between the target operating channel and an adjacent target operating channel;
and a fifth determining unit configured to determine the target working channel corresponding to the maximum continuous bandwidth as a main channel for transmitting data.
In a possible manner, the first determining module 301 includes:
a sixth determining unit configured to determine a channel occupancy of the working channel;
And a seventh determining unit configured to determine a channel state of the working channel of the router according to the channel occupancy rate and a preset channel occupancy rate threshold.
In a possible manner, the seventh determining unit includes:
a sixth determining subunit configured to determine, when the router is started, the magnitudes of the channel occupancy and the channel occupancy threshold;
a seventh determining subunit configured to determine a channel state for characterizing that the working channel is in a busy state when the channel occupancy is greater than the channel occupancy threshold;
an eighth determination subunit configured to determine a channel state for characterizing that the working channel is in an idle state when the channel occupancy is less than or equal to the channel occupancy threshold.
In a possible manner, the seventh determining unit includes:
a ninth determining subunit configured to determine, after the router is started, whether the number of times that the channel occupancy is greater than the channel occupancy threshold reaches a preset number of times threshold;
a tenth determination subunit configured to determine a channel state for characterizing that the working channel is in a busy state when the number of times the channel occupancy is greater than the channel occupancy threshold reaches a preset number of times threshold;
An eleventh determination subunit configured to determine a channel state for characterizing that the working channel is in an idle state when the number of times the channel occupancy is greater than the channel occupancy threshold does not reach a preset number of times threshold.
With respect to the router control device 300 in the above-described embodiment, the specific manner in which the respective modules perform operations has been described in detail in the embodiment regarding the method, and will not be explained in detail here.
The present disclosure also provides a router including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
steps of the router control method provided by the present disclosure are performed.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the router control method provided by the present disclosure.
Fig. 4 is a block diagram illustrating an apparatus 400 for router control, according to an example embodiment. For example, the apparatus 400 may be provided as a server. Referring to fig. 4, the apparatus 400 includes a processing component 422 that further includes one or more processors, and memory resources represented by memory 432, for storing instructions, such as applications, executable by the processing component 422. The application program stored in memory 432 may include one or more modules each corresponding to a set of instructions. Further, the processing component 422 is configured to execute instructions to perform the above-described methods.
The apparatus 400 may also include a power component 426 configured to perform power management of the apparatus 400, a wired or wireless network interface 450 configured to connect the apparatus 400 to a network, and an input/output interface 458. The apparatus 400 may operate based on an operating system stored in the memory 432, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. A router control method, the method comprising:
determining a channel state of a working channel of a router, wherein the channel state is used for representing whether the working channel is in a busy state or an idle state;
and determining the working mode of the router according to the channel state of the working channel, wherein the working mode is used for representing whether the router supports simultaneous data transmission with other routers.
2. The router control method according to claim 1, wherein the determining the operation mode of the router according to the channel state of the operation channel includes:
and when the channel state of the working channel represents that the working channel is in an idle state or the channel state of a main channel in the working channel represents that the main channel is in a busy state, determining the working mode of the router as a working mode for representing that the router does not support simultaneous data transmission with other routers.
3. The router control method according to claim 1, wherein the determining the operation mode of the router according to the channel state of the operation channel includes:
when the channel state of a main channel in the working channel represents that the main channel is in an idle state, determining whether a target channel combination accords with a preset channel combination rule according to the channel state of the working channel, wherein the target channel combination is determined according to the working channel in the working channel, and the channel state of which is in the idle state;
And when the target channel combination accords with a preset channel combination rule, determining the working mode of the router as a working mode for representing supporting simultaneous data transmission with other routers.
4. The router control method according to claim 3, wherein the determining whether the target channel combination meets a preset channel combination rule according to the channel state of the working channel comprises:
determining a target punching mode according to the channel state of the working channel, and determining whether the target punching mode accords with a preset punching mode rule, wherein the target punching mode is used for moving out of the working channel in a busy state;
when the target punching mode accords with a preset punching mode rule, determining that the target channel combination accords with a preset channel combination rule;
and when the target punching mode does not accord with a preset punching mode rule, determining that the target channel combination does not accord with the preset channel combination rule.
5. The router control method according to claim 2, wherein when the channel state of the main channel in the operation channels characterizes that the main channel is busy, determining the operation mode of the router as an operation mode for characterizing that simultaneous data transmission with other routers is not supported, includes:
When the channel state of the main channel in the working channels represents that the main channel is in a busy state, determining whether to switch the main channel into the working channel with the idle state;
and when the main channel is not switched to the working channel with the idle channel state, determining the working mode of the router as the working mode for representing that the simultaneous transmission of data with other routers is not supported.
6. The router control method according to any one of claims 1-5, characterized in that the method further comprises:
and when the working mode of the router is used for representing that the router supports the simultaneous transmission of data with other routers, determining a main channel for transmitting data according to the channel state of the working channel.
7. The router control method as claimed in claim 6, wherein the determining a main channel for transmitting data according to the channel state of the working channel comprises:
determining a maximum continuous bandwidth between the target working channel and an adjacent target working channel aiming at each target working channel in which the channel state is an idle state in the working channels;
And determining the target working channel corresponding to the maximum continuous bandwidth as a main channel for transmitting data.
8. The router control method according to any one of claims 1 to 5, wherein the determining a channel state of an operating channel of the router includes:
determining the channel occupancy rate of the working channel;
and determining the channel state of the working channel of the router according to the channel occupancy rate and a preset channel occupancy rate threshold.
9. The router control method according to claim 8, wherein the determining the channel state of the working channel of the router according to the channel occupancy and a preset channel occupancy threshold includes:
when the router is started, determining the channel occupancy rate and the channel occupancy rate threshold value;
when the channel occupancy rate is larger than the channel occupancy rate threshold value, determining a channel state used for representing that the working channel is in a busy state;
and determining a channel state used for representing that the working channel is in an idle state when the channel occupancy rate is smaller than or equal to the channel occupancy rate threshold value.
10. The router control method according to claim 8, wherein the determining the channel state of the working channel of the router according to the channel occupancy and a preset channel occupancy threshold includes:
After the router is started, determining whether the frequency of the channel occupancy rate being greater than the channel occupancy rate threshold reaches a preset frequency threshold;
when the frequency of the channel occupancy rate being larger than the channel occupancy rate threshold reaches a preset frequency threshold, determining a channel state used for representing that the working channel is in a busy state;
and determining a channel state used for representing that the working channel is in an idle state when the frequency of the channel occupancy rate being larger than the channel occupancy rate threshold value does not reach a preset frequency threshold value.
11. A router control apparatus, characterized in that the router control apparatus comprises:
a first determining module configured to determine a channel state of a working channel of a router, the channel state being used to characterize the working channel as a busy state or an idle state;
and the second determining module is configured to determine an operating mode of the router according to the channel state of the operating channel, wherein the operating mode is used for representing whether the router supports simultaneous data transmission with other routers.
12. A router, comprising:
a processor;
a memory for storing processor-executable instructions;
Wherein the processor is configured to:
the method of any one of claims 1 to 10.
13. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1 to 10.
CN202410123956.4A 2024-01-29 2024-01-29 Router control method, device, router and storage medium Active CN117651312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410123956.4A CN117651312B (en) 2024-01-29 2024-01-29 Router control method, device, router and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410123956.4A CN117651312B (en) 2024-01-29 2024-01-29 Router control method, device, router and storage medium

Publications (2)

Publication Number Publication Date
CN117651312A true CN117651312A (en) 2024-03-05
CN117651312B CN117651312B (en) 2024-04-30

Family

ID=90046403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410123956.4A Active CN117651312B (en) 2024-01-29 2024-01-29 Router control method, device, router and storage medium

Country Status (1)

Country Link
CN (1) CN117651312B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190372706A1 (en) * 2018-05-31 2019-12-05 Huawei Technologies Co., Ltd. Wireless Local Area Network Data Transmission Method and Apparatus
US20200036478A1 (en) * 2018-07-30 2020-01-30 Marvell World Trade Ltd. Media access control for punctured/aggregated communication channels in wlan
US20200328925A1 (en) * 2017-12-29 2020-10-15 Huawei Technologies Co., Ltd. Multi-channel hybrid transmission method and apparatus in wireless local area network
US20210168830A1 (en) * 2018-08-10 2021-06-03 Huawei Technologies Co., Ltd. Data scheduling method and apparatus
CN113438683A (en) * 2020-03-23 2021-09-24 展讯通信(上海)有限公司 Multilink data transmission method, station, access point and readable storage medium
CN113541859A (en) * 2020-04-17 2021-10-22 华为技术有限公司 Channel punching mode indication method and related device
US20210336720A1 (en) * 2020-04-26 2021-10-28 Nxp Usa, Inc. Bandwidth indication, txop protection, and bandwidth negotiation
US20210400728A1 (en) * 2020-06-23 2021-12-23 Mediatek Inc. Method and apparatus of setting protection frames for protecting transmission of preamble punctured physical layer protocol data unit
CN114258148A (en) * 2020-09-21 2022-03-29 华为技术有限公司 Channel access method in wireless local area network and related device
WO2023004568A1 (en) * 2021-07-27 2023-02-02 Huawei Technologies Co., Ltd. Methods and devices for coordinated transmit opportunity sharing in wireless networks
WO2023117113A1 (en) * 2021-12-23 2023-06-29 Telefonaktiebolaget Lm Ericsson (Publ) Reception-condition based selective puncturing

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200328925A1 (en) * 2017-12-29 2020-10-15 Huawei Technologies Co., Ltd. Multi-channel hybrid transmission method and apparatus in wireless local area network
US20190372706A1 (en) * 2018-05-31 2019-12-05 Huawei Technologies Co., Ltd. Wireless Local Area Network Data Transmission Method and Apparatus
US20200036478A1 (en) * 2018-07-30 2020-01-30 Marvell World Trade Ltd. Media access control for punctured/aggregated communication channels in wlan
US20210168830A1 (en) * 2018-08-10 2021-06-03 Huawei Technologies Co., Ltd. Data scheduling method and apparatus
CN113438683A (en) * 2020-03-23 2021-09-24 展讯通信(上海)有限公司 Multilink data transmission method, station, access point and readable storage medium
CN113541859A (en) * 2020-04-17 2021-10-22 华为技术有限公司 Channel punching mode indication method and related device
US20230039547A1 (en) * 2020-04-17 2023-02-09 Huawei Technologies., Ltd. Channel Puncture Mode Indication Method and Related Apparatus
US20210336720A1 (en) * 2020-04-26 2021-10-28 Nxp Usa, Inc. Bandwidth indication, txop protection, and bandwidth negotiation
US20210400728A1 (en) * 2020-06-23 2021-12-23 Mediatek Inc. Method and apparatus of setting protection frames for protecting transmission of preamble punctured physical layer protocol data unit
CN114258148A (en) * 2020-09-21 2022-03-29 华为技术有限公司 Channel access method in wireless local area network and related device
WO2023004568A1 (en) * 2021-07-27 2023-02-02 Huawei Technologies Co., Ltd. Methods and devices for coordinated transmit opportunity sharing in wireless networks
WO2023117113A1 (en) * 2021-12-23 2023-06-29 Telefonaktiebolaget Lm Ericsson (Publ) Reception-condition based selective puncturing

Also Published As

Publication number Publication date
CN117651312B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
US11895709B2 (en) Random access method and terminal
US10568145B2 (en) Resource allocation method, device and base station
US20220174752A1 (en) Random access method, terminal device, and network device
EP3817507A1 (en) Configuration method and device
CN110100400B (en) Method, device, equipment and storage medium for determining channel detection mechanism
CN110958179A (en) Method, device and system for switching terminal part bandwidth
CN111727624B (en) Partial monitoring method, device, terminal equipment and storage medium
JP2021534645A (en) Signal monitoring method and equipment
EP3565303A1 (en) Data packet transmission method and terminal
US11510225B2 (en) Methods, terminal device and base station for physical downlink control channel monitoring
CN110463280B (en) Channel access configuration method, device, equipment and storage medium
KR20230124080A (en) Communication method and device, and computer readable storage medium
WO2022193890A1 (en) Resource scheduling method and apparatus
CN111436085A (en) Communication method and device
CN114501489A (en) Energy-saving indication method, device, equipment and readable storage medium
CN117651312B (en) Router control method, device, router and storage medium
US20130115992A1 (en) Method and apparatus for controlling wireless devices
US20230208577A1 (en) Method and apparatus for coordinated communication between multiple access points, and storage medium
US20160150503A1 (en) Method for transmitting signal in device-to-device proximity service, base station, and user equipment
CN112055372B (en) Customer premises equipment and working method thereof
CN111417206B (en) Information transmission method and network side equipment
CN115244967A (en) Paging management method and related product
CN112203236B (en) Data transmission method and device
WO2024207936A1 (en) Channel access processing method and apparatus, resource selection method and apparatus, and terminal
EP4322568A1 (en) Resource selection method and terminal device

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