Communication channel optimization method and device, electronic device, and storage medium
By switching to the optimal channel during the next busy period during the WiFi service idle period, the problem of low channel optimization accuracy in the existing technology is solved, and the efficiency of channel optimization and user experience are improved without affecting the service.
Patent Information
- Application Number
- CN202010427896.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-19
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2040-05-19
AI Technical Summary
Existing WiFi channel optimization methods have low accuracy and cannot improve channel optimization efficiency without affecting normal business operations, especially when WiFi services are busy and the system cannot switch to the optimal channel.
By acquiring the availability and usage information of channels within at least one cycle, the busy and idle periods of services can be determined, and the system can switch to the optimal channel for the next busy period during the idle period, avoiding switching during busy periods and improving the accuracy of channel optimization.
Without affecting normal business operations, it ensures that the system operates on the optimal channel during each busy period, thereby improving the optimization efficiency of the communication channel, reducing the probability of channel collisions, reducing co-channel and adjacent channel interference, and enhancing service transmission performance and user experience.
Smart Images

Figure CN113691333B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of communications, and in particular to a communication channel optimization method and device, an electronic device, and a computer-readable storage medium. Background Art
[0002] Since the release of the 801.11 wireless standard by the Institute of Electrical and Electronics Engineers (IEEE) in 1997, Wireless Local Area Networks (WLAN) have been widely accepted by the market and have rapidly developed into a mainstream technology for home networks, enterprise intranets, and public access networks.
[0003] WLAN, also known as WiFi, uses two frequency bands: 2.4G and 5.8G. Both frequency bands are unauthorized and can be used without authorization as long as they comply with national regulations. In short, installing a wireless router at home does not require approval from any unit and can be used without authorization, which means that you need to share the air channel with your neighbors, so it is easy to be interfered. Summary of the invention
[0004] Embodiments of the present disclosure provide a communication channel optimization method and device, an electronic device, and a computer-readable medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a communication channel optimization method, which includes:
[0006] Obtaining channel availability and channel usage information of some or all channels in the working frequency band within at least one period;
[0007] Determine a busy period of a service according to the channel usage information of the part or all of the channels obtained in at least one period;
[0008] The optimal channel in a certain busy period is determined according to the channel availability rates of the part or all of the channels and the channel usage information obtained in a certain busy period of at least one cycle.
[0009] In a second aspect, an embodiment of the present disclosure provides an electronic device, comprising:
[0010] at least one processor;
[0011] A memory stores at least one program, and when the at least one program is executed by the at least one processor, the at least one processor performs any one of the above communication channel optimization methods.
[0012] In a third aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements any one of the above-mentioned communication channel optimization methods.
[0013] The communication channel optimization method provided by the embodiment of the present disclosure first obtains the busy period of the service based on the channel usage information of some or all channels obtained in at least one cycle, that is, summarizes the historical usage pattern of the channel by the users, and then obtains the optimal channel for the busy period based on the channel availability and channel usage information of some or all channels obtained in a busy period of at least one cycle, that is, obtains the optimal channel based on the actual occupancy of the channel by the users and the historical usage pattern. Since the channel optimization process is performed based on the actual occupancy of the channel by the users in the busy period, the channel optimization accuracy is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A flow chart of a communication channel optimization method provided by an embodiment of the present disclosure;
[0015] Figure 2 A block diagram of a communication channel optimization device provided by an embodiment of the present disclosure;
[0016] Figure 3 A block diagram of a communication channel optimization device provided in Example 1 of an embodiment of the present disclosure;
[0017] Figure 4 A block diagram of the composition of a communication channel optimization device provided in Example 2 of an embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, the communication channel optimization method and device, electronic device, and computer-readable storage medium provided by the present disclosure are described in detail below in conjunction with the accompanying drawings.
[0019] Example embodiments will be described more fully below with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. On the contrary, the purpose of providing these embodiments is to make the present disclosure thorough and complete and to enable those skilled in the art to fully understand the scope of the present disclosure.
[0020] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.
[0021] As used herein, the term "and / or" includes any and all combinations of at least one of the associated listed items.
[0022] The terms used herein are only used to describe specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of at least one other feature, whole, step, operation, element, component and / or group thereof is not excluded.
[0023] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.
[0024] In response to the serious problem of WiFi adjacent frequency and same frequency interference, the industry has developed some related technologies for WiFi channel optimization, such as adjacent access point (AP) diagnosis. This adjacent AP diagnosis function allows the AP to discover relevant information about neighboring APs and select its own channel based on the neighboring APs' channel occupancy. However, since adjacent AP diagnosis affects WiFi services, APs usually detect adjacent APs at startup and then select an optimal channel. This has an obvious disadvantage: the optimal channel at startup may not always be the optimal channel.
[0025] To address the shortcomings of the above solutions, the industry has proposed dynamic channel selection (DCS). When the AP is working, it detects the surrounding radio environment according to predetermined rules and then switches channels based on the detection results. There are two specific detection methods:
[0026] Method 1: When the AP is in normal service, it will also extract some time slots to detect neighboring APs. The disadvantage of this method is that extracting some time slots to detect neighboring APs will reduce the WiFi transmission performance of the AP.
[0027] Method 2: Use a dedicated antenna to detect the surrounding radio environment, and then switch channels based on the detection results. The disadvantage of this method is that this antenna cannot be used for data transmission.
[0028] The above methods all detect in real time which channel is the most idle at present. If the currently used channel is not the optimal channel and the service is idle, it will be switched. Since switching channels will cause network interruption, the channel cannot be switched when the service is busy to avoid affecting the user service experience. However, the optimal channel detected when the WiFi service is idle may not be the optimal channel when the WiFi service is busy.
[0029] In summary, the above WiFi channel optimization method has low accuracy.
[0030] Although the method proposed in the embodiment of the present disclosure is based on the problems existing in the WiFi channel optimization method, the method proposed in the embodiment of the present disclosure is also applicable to the optimization of other communication channels.
[0031] Figure 1 The present invention is a flow chart of a communication channel optimization method according to an embodiment of the present invention.
[0032] First, refer to Figure 1 , the present disclosure provides a communication channel optimization method, including:
[0033] Step 100: Obtain channel availability and channel usage information of some or all channels in a working frequency band within at least one period.
[0034] Step 101: Determine a busy period of a service according to channel usage information of some or all channels obtained in at least one period.
[0035] Step 102: Determine the optimal channel in a busy period according to the channel availability of some or all channels obtained in the busy period of at least one cycle and the channel usage information.
[0036] The communication channel optimization method provided by the embodiment of the present disclosure first obtains the busy period of the service based on the channel usage information of some or all channels obtained in at least one cycle, that is, summarizes the historical channel usage patterns of users, and then obtains the optimal channel in the busy period based on the channel availability and channel usage information of some or all channels obtained in a busy period of at least one cycle, that is, obtains the optimal channel based on the actual channel occupancy and historical usage patterns of users. Since the channel optimization process is based on the actual channel occupancy of users in the busy period, the channel optimization accuracy is improved.
[0037] In some exemplary embodiments, after obtaining the channel availability of some or all channels in the working frequency band and the channel usage information in at least one period, the method further includes:
[0038] Determine the idle period of the service according to the channel usage information of some or all channels obtained in at least one cycle; and switch the working channel to the optimal channel of the next busy period in a certain idle period.
[0039] In some exemplary embodiments, the working channel may be switched to the optimal channel of the next busy period at any time during the idle period.
[0040] In some other exemplary embodiments, when the optimal channel of the previous busy period of the idle period is different from the optimal channel of the next busy period of the idle period, the working channel is switched to the optimal channel of the next busy period in the idle period;
[0041] When the optimal channel of the previous busy period of a certain idle period is the same as the optimal channel of the next busy period of the idle period, the working channel is not switched in the idle period.
[0042] In some other exemplary embodiments, after detecting that the AP has no devices connected to it, the working channel is switched to the optimal channel of the next busy period during the idle period.
[0043] In some other exemplary embodiments, after determining that the sum of the number of bytes sent and received during a certain period of time in a certain idle period is less than a second preset threshold, the working channel is switched to the optimal channel of the next busy period during the idle period.
[0044] The disclosed embodiment switches the working channel only during the idle period and does not switch the working channel during the busy period. This ensures that the working channel is operated on the optimal channel during each busy period without affecting normal services, thereby further improving the optimization efficiency of the communication channel.
[0045] In some exemplary embodiments, the channel may refer to a WiFi channel; in other exemplary embodiments, the channel may also refer to any other communication channel.
[0046] In some exemplary embodiments, a channel may refer to any channel within a working frequency band. For example, there are 11 WiFi channels for 2.4G, and the channel of an embodiment of the present disclosure may be any one or more of the 11 WiFi channels.
[0047] In some other exemplary embodiments, a channel may refer to a key channel within a working frequency band, and a key channel refers to a channel within a working frequency band that does not cause adjacent frequency interference to each other. For example, for 2.4G, there are 11 WiFi channels, and the channels that do not interfere with each other are 1, 6, and 11. Using key channels for optimization effectively reduces the probability of channel conflicts, reduces the interference of the same frequency and adjacent frequencies, and improves service transmission performance and user service experience.
[0048] In some exemplary embodiments, the channel usage information includes: flow rate; in other exemplary embodiments, the channel usage information includes: bandwidth utilization; in other exemplary embodiments, the channel usage information includes other channel usage information.
[0049] In some exemplary embodiments, the channel availability rate is the difference between 1 and the channel utilization rate.
[0050] In some exemplary embodiments, the channel utilization rate refers to the ratio of the air channel that cannot be used by the device due to noise interference or occupation by other devices. In other words, the channel utilization rate does not include the occupancy rate of the air channel by the device.
[0051] In some exemplary embodiments, the channel availability of a channel may refer to the channel availability when the channel is in working state. In other exemplary embodiments, since a channel (i.e., the main working channel) does not work alone, it often works in conjunction with at least one adjacent frequency of the channel (i.e., the auxiliary working channel). For example, corresponding to the 11 WiFi channels of 2.4G, usually, when channel 1 is in working state, channel 2 and channel 3 are also in working state, channel 1 is the main working channel, and channel 2 and channel 3 are auxiliary working channels; similarly, when channel 6 is in working state, channel 4, channel 5, Channel 7 is also in working state, channel 6 is the main working channel, and channels 4, 5, and 7 are auxiliary working channels; similarly, when channel 11 is in working state, channels 8, 9, and 10 (including channels 12 and 13 in some scenarios) are also in working state, channel 11 is the main working channel, and channels 8, 9, and 10 (including channels 12 and 13 in some scenarios) are auxiliary working channels; therefore, the channel availability of a channel may also refer to the sum of the channel availability of the main working channel and the auxiliary working channel.
[0052] In some exemplary embodiments, the channel usage information may refer to the channel usage information when the channel is in working state. In other exemplary embodiments, since the channel (i.e., the main working channel) does not work alone, it often works together with at least one adjacent frequency of the channel (i.e., the auxiliary working channel), therefore, the channel usage information may also refer to the usage information of the main working channel and the auxiliary working channel.
[0053] In some exemplary embodiments, the channel usage information includes: channel usage information corresponding to all service types. In other embodiments, the channel usage information includes: channel usage information corresponding to at least one service type. The implementation process of these two cases is described below.
[0054] Case 1: The channel usage information includes: channel usage information corresponding to all service types.
[0055] For the first case, the service type of the data message is not distinguished in the process of obtaining the channel usage information.
[0056] For situation 1, in some exemplary embodiments, the step of obtaining the channel availability rate of some or all channels located in the working frequency band in at least one period and the channel usage information may be implemented in the following manner:
[0057] The channel utilization rate and the sum of the number of sent and received bytes of some or all channels in the working frequency band are periodically collected in each cycle; the channel availability rate corresponding to a certain collection is determined according to the channel utilization rate collected at one time, and the usage information of the channel corresponding to the collection is determined according to the sum of the number of sent and received bytes collected at one time.
[0058] In some exemplary embodiments, the sum of the number of sent and received bytes may also be referred to as traffic.
[0059] In some exemplary embodiments, when the channel utilization rate and the sum of the number of bytes sent and received are collected at a certain time, the collection time is also recorded.
[0060] In some exemplary embodiments, the channel availability rate corresponding to the i-th acquisition is the difference between 1 and the channel utilization rate of the i-th acquisition, where i is an integer greater than or equal to 1.
[0061] In some exemplary embodiments, the usage information of the channel includes: flow rate. The flow rate V corresponding to the i-th acquisition i for Among them, W i is the sum of the number of bytes sent and received during the i-th collection, W i-1 is the sum of the number of bytes received and sent during the (i-1)th collection, T iis the acquisition time corresponding to the i-th acquisition, T i-1 is the collection time corresponding to the (i-1)th collection.
[0062] In some other exemplary embodiments, the channel usage information includes: bandwidth utilization. The bandwidth utilization corresponding to the ith acquisition is the ratio of the flow rate corresponding to the ith acquisition to the maximum bandwidth, and the maximum bandwidth can be any one of the link maximum bandwidth, the physical maximum bandwidth, the actual maximum bandwidth, or other maximum bandwidths.
[0063] For the first case, in some exemplary embodiments, the step of determining the busy period and the idle period of the service according to the obtained channel usage information of some or all channels may be implemented in the following manner:
[0064] Calculate the average value of the channel usage information of some or all channels corresponding to the same acquisition time in different periods; when the average value of the channel usage information of some or all channels corresponding to a certain acquisition time is greater than or equal to a first preset threshold, determine that the certain acquisition time is within the busy period; determine that the time period between two adjacent acquisition times within the busy period is within the busy period;
[0065] When the average value of the channel usage information of some or all channels corresponding to a certain acquisition time is less than a first preset threshold, determining that the certain acquisition time is in the idle period; determining that the time period between two adjacent acquisition times in the idle period is in the idle period;
[0066] It is determined that a time period between adjacent collection times in the busy period and collection times in the idle period is in the busy period, or in the idle period, or a part is in the busy period and the other part is in the idle period.
[0067] For the first case, in some exemplary embodiments, the step of determining the optimal channel in a busy period according to the channel availability of some or all channels obtained in a busy period of at least one cycle and the channel usage information may be implemented in the following manner:
[0068] An average value of the channel availability rate of a certain channel obtained during a certain busy period of at least one cycle is calculated based on the channel availability rate of the channel obtained during a certain busy period of at least one cycle and the usage information of the channel; and a channel with the largest average value of the channel availability rate is determined as the optimal channel of the certain busy period.
[0069] In some exemplary embodiments, calculating the average value of the channel availability of a channel obtained during a busy period of at least one cycle based on the channel availability of the channel obtained during a busy period of at least one cycle and the usage information of the channel includes: using the usage information of the channel as a weight to calculate the weighted average value of the channel availability of the channel obtained during a busy period of at least one cycle.
[0070] In some exemplary embodiments, the average value P of the channel availability rate obtained by channel k during the nth busy period of at least one cycle is kn for: Among them, B knmi is the usage information of channel k corresponding to the i-th collection during the n-th busy period of the m-th cycle, U knmi is the channel availability corresponding to the ith acquisition of channel k during the nth busy period of the mth cycle, Q n is the number of collections during the nth busy period, and M is the number of cycles.
[0071] Case 2: The channel usage information includes: channel usage information corresponding to at least one service type.
[0072] For the second situation, it is necessary to distinguish the service type of the data message in the process of obtaining the channel usage information.
[0073] For the second situation, in some exemplary embodiments, the step of obtaining the channel availability of some or all channels located in the working frequency band within at least one period and the channel usage information may be implemented in the following manner:
[0074] The channel utilization rates of some or all channels in the working frequency band and the sum of the number of sent and received bytes corresponding to the service type are periodically collected in each cycle; the channel availability rate corresponding to a certain collection is determined according to the channel utilization rate collected at a certain time; the channel usage information of a certain service type corresponding to the certain collection is determined according to the sum of the number of sent and received bytes of the certain service type collected at a certain time.
[0075] In some exemplary embodiments, the sum of the number of bytes sent and received may also be referred to as traffic.
[0076] In some exemplary embodiments, when the channel utilization rate and the sum of the number of bytes sent and received are collected at a certain time, the collection time is also recorded.
[0077] In some exemplary embodiments, the channel availability rate corresponding to the i-th acquisition is the difference between 1 and the channel utilization rate of the i-th acquisition, where i is an integer greater than or equal to 1.
[0078] In some exemplary embodiments, the channel usage information includes: flow rate. The flow rate V of the jth service type corresponding to the i-th acquisition is ij for Among them, W ij is the sum of the number of bytes sent and received for the jth service type collected in the i-th time, W (i-1)j is the sum of the number of bytes sent and received for the jth service type collected for the (i-1)th time, T i is the acquisition time corresponding to the i-th acquisition, T i-1 is the collection time corresponding to the (i-1)th collection.
[0079] In some other exemplary embodiments, the channel usage information includes: bandwidth utilization. The bandwidth utilization of the jth service type corresponding to the i-th acquisition is the ratio of the flow rate of the i-th service type corresponding to the i-th acquisition to the maximum bandwidth, and the maximum bandwidth can be any one of the link maximum bandwidth, the physical maximum bandwidth, the actual maximum bandwidth, or other maximum bandwidths.
[0080] For the second situation, in some exemplary embodiments, the step of determining the busy period and the idle period of the service according to the channel usage information of some or all channels obtained in at least one period may be implemented in the following manner:
[0081] Calculate the average value of channel usage information corresponding to all service types of some or all channels corresponding to the same acquisition time in different periods; when the average value of the channel usage information corresponding to all service types of some or all channels corresponding to a certain acquisition time is greater than or equal to a first preset threshold, determine that the certain acquisition time is within the busy period; determine that the time period between two adjacent acquisition times within the busy period is within the busy period;
[0082] When the average value of the channel usage information corresponding to all service types of some or all channels corresponding to a certain acquisition time is less than a first preset threshold, it is determined that the certain acquisition time is in the idle period; and it is determined that the time period between two adjacent acquisition times in the idle period is in the idle period;
[0083] It is determined that a time period between adjacent collection times in the busy period and collection times in the idle period is in the busy period, or in the idle period, or a part is in the busy period and the other part is in the idle period.
[0084] In some exemplary embodiments, when calculating the average value of the channel usage information corresponding to all service types of some or all channels, the weighted average value of the channel usage information corresponding to all service types of each channel is first calculated, and then the average value of the weighted average values of all channels is calculated. For example, Among them, A j is the weight of the jth service type, B kj It is the channel usage information of the jth service type of channel k.
[0085] For the second situation, in some exemplary embodiments, the step of determining the optimal channel in a busy period according to the channel availability rates of some or all channels obtained in a busy period of at least one cycle and the channel usage information may be implemented in the following manner:
[0086] According to the channel availability of a certain channel obtained during a certain busy period of at least one cycle and the usage information of the channel corresponding to all service types, an average value of the channel availability of the channel obtained during the busy period of at least one cycle is calculated; and the channel with the largest average value of the channel availability is determined as the optimal channel for the busy period.
[0087] In some exemplary embodiments, calculating the average value of the channel availability obtained during a busy period of at least one cycle based on the channel availability obtained during a busy period of at least one cycle and the channel usage information corresponding to all service types includes: calculating the weighted average value of the channel availability obtained during the busy period of at least one cycle by using the weighted average value of the channel usage information corresponding to all service types as the weight.
[0088] In some exemplary embodiments, the average value P of the channel availability rate obtained by channel k during the nth busy period of at least one cycle is kn for: Among them, A j is the weight of the jth service type, B knmij U is the channel usage information of the jth service type corresponding to the ith collection during the nth busy period of the mth cycle for channel k, knmi is the channel availability corresponding to the ith acquisition of channel k during the nth busy period of the mth cycle, Q n is the number of collections during the nth busy period, and M is the number of cycles.
[0089] In a second aspect, an embodiment of the present disclosure provides an electronic device, comprising:
[0090] at least one processor;
[0091] A memory having at least one program stored thereon, when the at least one program is executed by at least one processor, the at least one processor implements any one of the above-mentioned WiFi channel optimization methods.
[0092] Among them, the processor is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH).
[0093] In some embodiments, the processor and the memory are connected to each other through a bus, and further connected to other components of the computing device.
[0094] In a third aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, any one of the above-mentioned WiFi channel optimization methods is implemented.
[0095] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0096] Figure 2 The present invention is a flow chart of a communication channel optimization method according to an embodiment of the present invention.
[0097] Fourthly, refer to Figure 2 The present disclosure provides a communication channel optimization device, which can be set in an access point (AP) or outside the AP as an independent device. The device includes:
[0098] An acquisition module 201 is used to acquire channel availability and channel usage information of some or all channels in a working frequency band within at least one period;
[0099] A busy period to idle period division module 202, configured to determine a busy period of a service according to channel usage information of some or all channels obtained in at least one period;
[0100] The optimal channel determination module 203 is used to determine the optimal channel in a busy period according to the channel availability rates of some or all channels and the channel usage information obtained in a busy period of at least one cycle.
[0101] In some exemplary embodiments, the busy period / idle period division module 202 is further configured to:
[0102] Determining the idle period of the service according to the channel usage information of some or all channels obtained in at least one cycle; The communication channel optimization device also includes:
[0103] The optimal channel switching module 204 is used to switch the working channel in a certain idle period to the optimal channel of the next busy period.
[0104] In some exemplary embodiments, the optimal channel switching module 204 is further configured to:
[0105] When the optimal channel of the previous busy period of a certain idle period is different from the optimal channel of the next busy period of the idle period, the working channel is switched to the optimal channel of the next busy period in the idle period.
[0106] In some exemplary embodiments, the channel usage information includes: flow rate; or bandwidth utilization.
[0107] In some exemplary embodiments, the channel is a critical channel.
[0108] In some exemplary embodiments, the channel usage information includes: channel usage information corresponding to at least one service type;
[0109] The acquisition module 201 is specifically used for:
[0110] The channel utilization rates of some or all channels in the working frequency band and the sum of the number of sent and received bytes corresponding to the service type are periodically collected in each cycle; the channel availability rate corresponding to a certain collection is determined based on the channel utilization rate collected at a certain time; the channel usage information of a certain service type corresponding to the collection is determined based on the sum of the number of sent and received bytes of the certain service type collected at a certain time.
[0111] In some exemplary embodiments, the acquisition module 201 is specifically used for:
[0112] The channel utilization rate and the sum of the number of sent and received bytes of some or all channels in the working frequency band are periodically collected in each cycle; the channel availability rate corresponding to a certain collection is determined according to the channel utilization rate collected at one time, and the usage information of the channel corresponding to the collection is determined according to the sum of the number of sent and received bytes collected at one time.
[0113] In some exemplary embodiments, the busy period idle period division module 202 is specifically used to:
[0114] Calculate the average value of channel usage information of some or all channels corresponding to the same acquisition time in different periods; when the average value of the channel usage information of some or all channels corresponding to a certain acquisition time is greater than or equal to a first preset threshold, determine that the certain acquisition time is within the busy period; determine that the time period between two adjacent acquisition times within the busy period is within the busy period.
[0115] In some exemplary embodiments, the optimal channel determination module 203 is specifically configured to:
[0116] According to the channel availability rate of a certain channel obtained during a certain busy period of at least one cycle and the usage information of the channel, an average value of the channel availability rate of the channel obtained during the busy period of at least one cycle is calculated; and the channel with the largest average value of the channel availability rate is determined as the optimal channel of the busy period.
[0117] In some exemplary embodiments, the optimal channel determination module 203 is specifically configured to implement the calculation of the average value of the channel availability of a certain channel obtained in a certain busy period of at least one cycle according to the channel availability of a certain channel obtained in a certain busy period of at least one cycle and the usage information of the channel in the following manner:
[0118] The channel usage information is used as a weight to calculate a weighted average of the channel availability rate of a certain channel obtained during a certain busy period of at least one cycle.
[0119] The specific implementation process of the above-mentioned communication channel optimization device is the same as the specific implementation process of the communication channel optimization method in the aforementioned embodiment, and will not be repeated here.
[0120] The following specific examples are given to illustrate in detail the specific implementation process of the communication channel optimization method according to the embodiment of the present disclosure. The examples listed are only for the convenience of explanation and are not used to limit the protection scope of the embodiment of the present disclosure.
[0121] Example 1
[0122] like Figure 3 As shown, some APs can only monitor the channel utilization of the WiFi channels they use due to hardware limitations. In view of this situation, the channel utilization of different channels is collected by periodically switching channels.
[0123] The data collection module and the analysis module may be management devices of the AP, such as an automatic configuration server (ACS). The data collection module collects data and modifies configuration of the AP through the TR-069 protocol.
[0124] The relevant parameter configurations are as follows:
[0125] 1. The data analysis period (that is, the period described above) is a natural day (24 hours);
[0126] 2. Key channel list: C1, C2, ..., Cn;
[0127] 3. Data collection cycle (this cycle is not given in the above description): 60 seconds;
[0128] 4. Monitoring period (that is, the period for channel optimization, which is not given in the above description): 7 days.
[0129] The WiFi channel optimization process is as follows:
[0130] 1. Data collection: The data collection module uses the following methods to perform parameter configuration and data collection through the TR-069 protocol; specifically,
[0131] 1) Set the AP channel to C k (k=1);
[0132] 2) Collect the channel utilization rate and the sum of the number of bytes sent and received of the AP once every minute, and record the collection time T i (i is the acquisition sequence number of this channel);
[0133] According to the formula Calculate the WiFi flow rate of the i-th acquisition of channel k; where W kiis the sum of the number of bytes received and sent in the ith acquisition of channel k, W k(i-1) is the sum of the number of bytes received and sent in the (i-1)th acquisition of channel k, T i is the acquisition time of the ith acquisition, T i-1 is the collection time of the (i-1)th collection.
[0134] The channel availability rate U of the i-th acquisition of channel k ki It is the difference between 1 and the channel utilization rate of the i-th acquisition of channel k.
[0135] 3) After 7 days of collection, set the channel to the next key channel C k-1 , repeat 2) until all N key channels are acquired.
[0136] Through the above collection, we finally obtained the 7-day data of these N key channels (WiFi flow rate and channel availability).
[0137] The data samples collected in the 2.4G frequency band are shown in Table 1.
[0138]
[0139] Table 1
[0140] 2. Analysis module for data analysis
[0141] (1) Analyze users’ WiFi usage habits;
[0142] Align the WiFi flow rates obtained every day for these 7×N days according to the collection time; calculate the average WiFi flow rate at the same collection time to obtain the change in the average WiFi flow rate within a day;
[0143] For a certain collection time, if the average WiFi flow rate of the collection time is greater than or equal to the first preset threshold, it is determined that the collection time is within the busy period; and it is determined that the time period between two adjacent collection times within the busy period is within the busy period;
[0144] For a certain collection time, if the average WiFi flow rate of the collection time is less than a first preset threshold, it is determined that the collection time is within the idle period; and it is determined that the time period between two adjacent collection times within the idle period is within the idle period;
[0145] It is determined that a time period between adjacent collection times in the busy period and collection times in the idle period is in the busy period.
[0146] Through the above analysis, the 24 hours of a day are divided into several time periods, each of which is a busy period or an idle period.
[0147] (2) Analyze the optimal channel for each busy period
[0148] Take the data of channel k: collection time, WiFi flow rate and channel availability, and divide each data into busy period or idle period according to the collection time;
[0149] Calculate the weighted average P of the channel availability rate obtained by channel k during the nth busy period on the mth day kmn for: Among them, V knmi is the WiFi flow rate corresponding to the ith collection of channel k during the nth busy period of the mth cycle, U knmi is the channel availability corresponding to the ith acquisition of channel k during the nth busy period of the mth cycle, Q n is the number of acquisitions in the nth busy period, which may be the difference between the maximum acquisition sequence number and the minimum acquisition sequence number of channel k in the nth busy period of the mth cycle;
[0150] Calculate the average value P of the weighted average of the channel availability rate obtained by channel k during the nth busy period of these 7 days kn =P kmn / M, M is the monitoring period, which is 7;
[0151] Compare the average channel availability P of these N key channels during the same busy period kn , P kn The highest critical channel is the optimal channel during this busy period;
[0152] Repeat the above steps to obtain the optimal channel for each busy period, that is, the optimal channel table for the busy period. For example, the optimal channel table for a 2.4G frequency band is shown in Table 2.
[0153] Start time End Time Optimal channel number 6:00:00 7:00:00 1 7:30:00 8:00:00 1 11:00:00 13:00:00 6 18:00:00 23:38:00 11
[0154] Table 2
[0155] If the optimal channels of two adjacent busy periods are the same, the two busy periods and the idle period between the two busy periods are merged into a large busy period. For example, the optimal channel table of the busy period of the 2.4G frequency band above is merged as shown in Table 3.
[0156] Start time End Time Optimal channel number 6:00∶00 8:00:00 1 11:00:00 13:00:00 6 18:00:00 23:38:00 11
[0157] Table 3
[0158] 3. Channel switching: Set the working channel of the AP according to the optimal channel number obtained above, and generate a periodic execution strategy. For example, it is 5 o'clock now, which is an idle period, and the current channel is 11. The optimal channel for the next busy period (6:00-8:00) is 1. At this time, the working channel is switched to channel 1.
[0159] Example 2
[0160] like Figure 4 As shown, the wireless module of the AP has multiple antennas and supports detecting the channel utilization of a channel not used by the AP through a certain antenna.
[0161] The data collection module and analysis module are software modules of the AP, which collect data and modify the configuration of the wireless module of the AP through the C or Java application program interface (API).
[0162] The relevant parameter configurations are as follows:
[0163] 1. The data analysis period (that is, the period described above) is a natural day (24 hours);
[0164] 2. Key channel list: Cl, C2, ..., Cn;
[0165] 3. Data collection cycle (this cycle is not given in the above description): 60 seconds;
[0166] 4. Monitoring period (that is, the period for channel optimization, which is not given in the above description): 7 days.
[0167] The WiFi channel optimization process is as follows:
[0168] 1. Data collection:
[0169] 1) Set up one or more antennas to monitor the channel utilization of channels not used by the AP;
[0170] 2) Collect the channel utilization rate and the sum of the number of bytes sent and received of all monitored channels of the AP once every minute, and record the collection time T i (i is the acquisition sequence number of this channel);
[0171] According to the formula Calculate the WiFi flow rate of the i-th acquisition of channel k; where W ki is the sum of the number of bytes received and sent in the ith acquisition of channel k, W k(i-1) is the sum of the number of bytes received and sent in the (i-1)th acquisition of channel k, T i is the acquisition time of the ith acquisition, T i-1is the collection time of the (i-1)th collection.
[0172] The channel availability rate U of the i-th acquisition of channel k ki It is the difference between 1 and the channel utilization rate of the i-th acquisition of channel k.
[0173] 3) After 7 days of collection, the data of these N key channels for 7 days (WiFi flow rate and channel availability) were obtained.
[0174] The data samples collected in the 2.4G frequency band are shown in Table 4.
[0175]
[0176] Table 4
[0177] 2. Analysis module for data analysis
[0178] (1) Analyze users’ WiFi usage habits;
[0179] Align the WiFi flow rates obtained every day for these 7×N days according to the collection time; calculate the average WiFi flow rate at the same collection time to obtain the change in the average WiFi flow rate within a day;
[0180] For a certain collection time, if the average WiFi flow rate of the collection time is greater than or equal to the first preset threshold, it is determined that the collection time is within the busy period; and it is determined that the time period between two adjacent collection times within the busy period is within the busy period;
[0181] For a certain collection time, if the average WiFi flow rate of the collection time is less than a first preset threshold, it is determined that the collection time is within the idle period; and it is determined that the time period between two adjacent collection times within the idle period is within the idle period;
[0182] It is determined that a time period between adjacent collection times in the busy period and collection times in the idle period is in the busy period.
[0183] Through the above analysis, the 24 hours of a day are divided into several time periods, each of which is a busy period or an idle period.
[0184] (2) Analyze the optimal channel for each busy period
[0185] Take the data of channel k: collection time, WiFi flow rate and channel availability, and divide each data into busy period or idle period according to the collection time;
[0186] Calculate the weighted average P of the channel availability rate obtained by channel k during the nth busy period on the mth day kmn for: Among them, V knmi is the WiFi flow rate corresponding to the ith collection of channel k during the nth busy period on the mth day, U knmi is the channel availability corresponding to the ith acquisition of channel k during the nth busy period on the mth day, Q n for
[0187] Calculate the average value P of the weighted average of the channel availability rate obtained by channel k during the nth busy period of these 7 days kn =P kmn / M, M is the monitoring period, which is 7;
[0188] Compare the average channel availability P of these N key channels during the same busy period kn , P kn The highest critical channel is the optimal channel during this busy period;
[0189] Repeat the above steps to obtain the optimal channel for each busy period, that is, the optimal channel table for the busy period. For example, the optimal channel table for a 2.4G frequency band is shown in Table 5.
[0190] Start time End Time Optimal channel number 6:00:00 8:00:00 1 11:00:00 13:00:00 6 18:00:00 23:38:00 11
[0191] Table 5
[0192] 3. Channel switching: Set the working channel of the AP according to the optimal channel number obtained above, and generate a periodic execution strategy. For example, it is 5 o'clock now, which is an idle period, and the current channel is 11. The optimal channel for the next busy period (6:00-8:00) is 1. If it is detected that the AP has no devices hanging down, or the sum of the number of bytes sent and received is less than the second preset threshold, the working channel will be switched to channel 1.
[0193] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly noted, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone, or may be used in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the scope of the present disclosure as set forth in the appended claims.
Claims
1. A communication channel optimization method, comprising: Obtaining channel availability and channel usage information of some or all channels in the working frequency band within at least one period; Determine a busy period of a service according to the channel usage information of the part or all of the channels obtained in at least one period; Determine the optimal channel for a certain busy period according to the channel availability rates of the part or all of the channels and the channel usage information obtained during a certain busy period of at least one cycle; After obtaining the channel availability rates of some or all channels in the working frequency band and the channel usage information within at least one period, the method further includes: Determine the idle period of the service according to the channel usage information of the part or all of the channels obtained in at least one cycle; In a certain idle period, the working channel is switched to the optimal channel of the next busy period.
2. According to the method of claim 1, when the optimal channel of the previous busy period of the idle period is different from the optimal channel of the next busy period of the idle period, the working channel is switched to the optimal channel of the next busy period during the idle period.
3. The method according to any one of claims 1 to 2, wherein: The channel usage information includes: flow rate; or bandwidth utilization.
4. The method according to any one of claims 1 to 2, wherein: The channel is a critical channel.
5. The method according to any one of claims 1 to 2, wherein: The channel usage information includes: channel usage information corresponding to at least one service type; The obtaining of the channel availability of some or all channels in the working frequency band within at least one period and the channel usage information includes: Periodically collecting the channel utilization rate of some or all channels in the working frequency band and the sum of the number of sent and received bytes corresponding to the service type in each cycle; Determine the channel availability rate corresponding to a certain collection according to the channel utilization rate of the collection; The channel usage information of a certain service type corresponding to the collection is determined according to the sum of the numbers of sent and received bytes of the certain service type collected at a certain time.
6. The method according to any one of claims 1 to 2, wherein: The obtaining of the channel availability of some or all channels in the working frequency band within at least one period and the channel usage information includes: In each cycle, the channel utilization rate and the sum of the number of sent and received bytes of some or all channels in the working frequency band are periodically collected; The channel availability rate corresponding to a certain collection is determined according to the channel utilization rate of the certain collection, and the usage information of the channel corresponding to the certain collection is determined according to the sum of the number of sent and received bytes of the certain collection.
7. The method according to claim 6, wherein determining the busy period of a service according to the channel usage information of some or all channels obtained in at least one period comprises: Calculating an average value of the channel usage information of the part or all of the channels corresponding to the same acquisition time in different periods; When an average value of the channel usage information of the part or all of the channels corresponding to a certain acquisition time is greater than or equal to a first preset threshold, determining that the certain acquisition time is within the busy period; It is determined that a time period between two adjacent collection times within the busy period is within the busy period.
8. The method according to any one of claims 1 to 2, wherein: Determining the optimal channel in a busy period according to the channel availability of some or all channels obtained in a busy period of at least one cycle and the channel usage information includes: Calculate an average value of the channel availability rate of a certain channel obtained in the certain busy period of at least one cycle according to the channel availability rate of a certain channel obtained in the certain busy period of at least one cycle and the channel usage information; The channel with the largest average value of the channel availability is determined as the optimal channel in the certain busy period.
9. The method according to claim 8, wherein: The calculating, based on the channel availability rate of a certain channel obtained in a certain busy period of at least one cycle and the usage information of the channel, an average value of the channel availability rate of a certain channel obtained in a certain busy period of at least one cycle comprises: The channel usage information is used as a weight to calculate a weighted average of the channel availability rate of a certain channel obtained during a certain busy period of at least one cycle.
10. An electronic device, comprising: at least one processor; A storage device having at least one program stored thereon, wherein when the at least one program is executed by the at least one processor, the at least one processor implements the communication channel optimization method according to any one of claims 1-9.
11. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the communication channel optimization method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Spectrum access method and spectrum access system
CN105933260A
Offloading communication from a cellular network to a wireless local area network
US20140334293A1
Cited By
Communication channel optimization method and apparatus, electronic device, and storage medium
WO2021233331A1