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

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

Info

Publication number
CN117651312B
CN117651312B CN202410123956.4A CN202410123956A CN117651312B CN 117651312 B CN117651312 B CN 117651312B CN 202410123956 A CN202410123956 A CN 202410123956A CN 117651312 B CN117651312 B CN 117651312B
Authority
CN
China
Prior art keywords
channel
working
router
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.)
Active
Application number
CN202410123956.4A
Other languages
Chinese (zh)
Other versions
CN117651312A (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

Landscapes

  • 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 puncture (puncturing) 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 Puncture channels to 48 channels, at which time router a only needs to monitor whether several of 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 use of puncture mechanisms does not allow for good adjustment of spectrum resource utilization according to the channel usage of the remaining 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 operation mode of the router is puncture, that is, when the router supports the operation mode of transmitting data simultaneously with other routers, puncture processing is required for the operation channel with the busy channel state. Therefore, when the channel state of the main channel is in a busy state, if the working mode of the router is set to puncture working modes, data transmission failure may be caused, so that when the channel state of the main channel represents that the main channel is in a busy state, 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.
By way of example, whether to set the primary channel switch mechanism may be determined based on whether the target wireless device, often associated with the router, supports a Channel Switch (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 meets the channel combination rule determined according to the 802.11be protocol, determining that the working mode of the router is puncture working mode. Otherwise, determining that the working mode of the router is a non-puncture 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 (11)

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;
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; or alternatively
When the channel state of a main channel in the working channels 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 channels, determining that the target channel combination accords with the working channels in the idle state according to the channel state in the working channels, and determining that the working mode of the router is a working mode for representing supporting simultaneous data transmission with other routers when the target channel combination accords with the preset channel combination rule.
2. The router control method according to claim 1, 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.
3. The router control method according to claim 1, wherein when the channel state of a main channel among the operation channels characterizes the main channel as a busy state, determining the operation mode of the router as an operation mode for characterizing that simultaneous data transmission with other routers is not supported, comprises:
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.
4. A router control method according to any one of claims 1-3, 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.
5. The router control method as claimed in claim 4, 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.
6. A router control method according to any one of claims 1-3, characterized in that said determining the channel state of the working channel of the router comprises:
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.
7. The router control method according to claim 6, 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.
8. The router control method according to claim 6, 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.
9. 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;
A second determining module configured to determine, when a channel state of the working channel indicates that the working channel is in an idle state or the channel state of a main channel in the working channel indicates that the main channel is in a busy state, an operation mode of the router as an operation mode for indicating that simultaneous data transmission with other routers is not supported; or alternatively
And when the target channel combination accords with a preset channel combination rule, determining the working mode of the router to be used for representing the working mode supporting simultaneous data transmission with other routers.
10. 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 8.
11. 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 8.
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 CN117651312A (en) 2024-03-05
CN117651312B true 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109996343B (en) * 2017-12-29 2022-04-29 华为技术有限公司 Multi-channel hybrid transmission method and device in wireless local area network
CN110557843B (en) * 2018-05-31 2023-06-16 华为技术有限公司 Wireless local area network data transmission method and device
US11102780B2 (en) * 2018-07-30 2021-08-24 Nxp Usa, Inc. Media access control for punctured/aggregated communication channels in WLAN
CN110831215B (en) * 2018-08-10 2023-12-12 华为技术有限公司 Method and device for data scheduling
US11641253B2 (en) * 2020-04-26 2023-05-02 Nxp Usa, Inc. Bandwidth indication, TXOP protection, and bandwidth negotiation
US11737141B2 (en) * 2020-06-23 2023-08-22 Mediatek Inc. Method and apparatus of setting protection frames for protecting transmission of preamble punctured physical layer protocol data unit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN117651312A (en) 2024-03-05

Similar Documents

Publication Publication Date Title
US10568145B2 (en) Resource allocation method, device and base station
RU2461998C2 (en) System and method of generating "pulse" signals
US20190029054A1 (en) Random access method, random access device, and terminal
CN110958179A (en) Method, device and system for switching terminal part bandwidth
US20220174752A1 (en) Random access method, terminal device, and network device
CN110100400B (en) Method, device, equipment and storage medium for determining channel detection mechanism
US20190342893A1 (en) Data Packet Transmission Method and Terminal
CN110463280B (en) Channel access configuration method, device, equipment and storage medium
KR101948872B1 (en) Method of Joint Optimization of Channel Selection and Frame Scheduling for Coexistence of LTE and WLAN in Unlicensed Band
WO2019214734A1 (en) Methods, terminal device and base station for physical downlink control channel monitoring
WO2022193890A1 (en) Resource scheduling method and apparatus
JP2008187448A (en) Radio communication apparatus and radio communication method
CN110876149B (en) Bandwidth part BWP access method, terminal and network equipment
CN117651312B (en) Router control method, device, router and storage medium
US20230208577A1 (en) Method and apparatus for coordinated communication between multiple access points, and storage medium
US8855693B2 (en) Method and apparatus for controlling wireless devices
CN112055372B (en) Customer premises equipment and working method thereof
KR20230124080A (en) Communication method and device, and computer readable storage medium
AU2021414155A9 (en) Communication method and apparatus, and computer-readable storage medium
CN111417206B (en) Information transmission method and network side equipment
CN112203236B (en) Data transmission method and device
WO2022214018A1 (en) Sidelink resource selection method and device, terminal and storage medium
EP4322568A1 (en) Resource selection method and terminal device
EP3576462A1 (en) Channel selection method for wireless device and wireless device
CN116456312A (en) Direct communication configuration method, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant