CN111031561A - AP template processing method, device, server and computer readable storage medium - Google Patents

AP template processing method, device, server and computer readable storage medium Download PDF

Info

Publication number
CN111031561A
CN111031561A CN201911175036.2A CN201911175036A CN111031561A CN 111031561 A CN111031561 A CN 111031561A CN 201911175036 A CN201911175036 A CN 201911175036A CN 111031561 A CN111031561 A CN 111031561A
Authority
CN
China
Prior art keywords
template
allocated
online
queue
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911175036.2A
Other languages
Chinese (zh)
Other versions
CN111031561B (en
Inventor
柯葳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd Chengdu Branch
Original Assignee
New H3C Technologies Co Ltd Chengdu Branch
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd Chengdu Branch filed Critical New H3C Technologies Co Ltd Chengdu Branch
Priority to CN201911175036.2A priority Critical patent/CN111031561B/en
Publication of CN111031561A publication Critical patent/CN111031561A/en
Application granted granted Critical
Publication of CN111031561B publication Critical patent/CN111031561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates

Landscapes

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

Abstract

The embodiment of the invention provides an AP template processing method, an AP template processing device, a server and a computer readable storage medium, and relates to the field of communication. When the server acquires the AP template configured by the user, if the AP template to be allocated exists in the queue to be allocated, or no online AC equipment exists in the wireless networking, or the number of the AP templates on all the online AC equipment in the wireless networking reaches an upper limit value, adding the AP template serving as the AP template to be allocated into the queue to be allocated; when the online AC equipment with the number of the AP templates not reaching the upper limit value exists in the wireless networking, allocating unique target AC equipment for the AP templates to be allocated in the queue to be allocated according to the current number of the AP templates on the online AC equipment with the number of the AP templates not reaching the upper limit value, and sending the allocated AP templates to the corresponding target AC equipment. Therefore, the AP equipment applying for online can be timely and normally online on the corresponding target AC equipment based on the distributed AP template.

Description

AP template processing method, device, server and computer readable storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to an AP template processing method, apparatus, server, and computer-readable storage medium.
Background
With the wide application of wireless technologies, the number of terminal devices and AP (Access Point) devices in a wireless networking is also increasing, and it is imperative to adopt a large-scale AC (Access Controller) cluster to replace the original single AC networking, thereby evolving a resource virtualization integration scheme implemented based on a cloud server, and enabling a user to implement unified management configuration and resource coordination allocation without sensing resource differences inside the device cluster.
At present, a typical wireless networking includes a server, an AC device and an AP device, in order to implement an offline configuration function of the wireless networking, a user may pre-configure an AP template for the AP device that needs to be online when the AC device is in an offline state, where the AP template includes attribute information (e.g., a serial number or a MAC address) corresponding to the AP device, and is used to define a subsequent AP device that can be online; after the AP device applying for online obtains the identification information of the AC device from the server, the corresponding AC device can be found based on the identification information, and when an AP template matching the AP device and issued by the server exists on the AC device (that is, the AP device can normally online when the AC device compares a serial number or an MAC address in the AP template with the AP device).
Therefore, how to process the AP template pre-configured when the AC device is offline by the user, so that the AP device that subsequently applies for online can be online in the AC device in time based on the AP template, which is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention is directed to an AP template processing method, an AP template processing apparatus, a server, and a computer-readable storage medium, which can ensure that an AP device applying for online can be online normally in time based on an allocated AP template on a target AC device.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides an AP template processing method, which is applied to a server in a wireless networking, where the server is configured to manage an AC device in the wireless networking, and a queue to be allocated is preset in the server, where the method includes:
when an AP template configured by a user is acquired, if the AP template to be allocated exists in the queue to be allocated, or no online AC equipment exists in the wireless networking, or the number of the AP templates on all the online AC equipment in the wireless networking reaches an upper limit value, adding the AP template serving as the AP template to be allocated into the queue to be allocated;
when online AC equipment with the number of AP templates not reaching the upper limit value exists in the wireless networking, allocating unique target AC equipment for the AP templates to be allocated in the queue to be allocated according to the current number of the AP templates on the online AC equipment with the number of the AP templates not reaching the upper limit value;
the assigned AP template is sent to the corresponding target AC device.
In a second aspect, an embodiment of the present invention provides an AP template processing apparatus, which is applied to a server in a wireless networking, where the server is configured to manage AC devices in the wireless networking, and a queue to be allocated is preset in the server, where the apparatus includes:
the queue maintenance module is used for adding the AP template serving as the AP template to be allocated into the queue to be allocated if the AP template to be allocated exists in the queue to be allocated, or no online AC equipment exists in the wireless networking, or the number of the AP templates on all the online AC equipment in the wireless networking reaches an upper limit value when the AP template configured by a user is obtained;
an AC device allocation module, configured to, when there is an online AC device whose number of AP templates has not reached the upper limit value in the wireless networking, allocate a unique target AC device to the AP template to be allocated in the queue to be allocated according to the current number of AP templates on the online AC device whose number of AP templates has not reached the upper limit value;
and the AP template sending module is used for sending the distributed AP templates to the corresponding target AC equipment.
In a third aspect, an embodiment of the present invention provides a server, including a memory storing a computer program and a processor, where the computer program is read by the processor and executed to implement the method according to any one of the foregoing embodiments.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is read and executed by a processor, the computer program implements the method according to any one of the foregoing embodiments.
According to the AP template processing method, the AP template processing device, the server and the computer readable storage medium provided by the embodiment of the invention, when the AP template configured by a user is obtained, if the AP template to be allocated exists in the queue to be allocated, or no online AC equipment exists in a wireless networking, or the number of the AP templates on all online AC equipment in the wireless networking reaches the upper limit value, the AP template is taken as the AP template to be allocated and added into the queue to be allocated; when the online AC equipment with the number of the AP templates not reaching the upper limit value exists in the wireless networking, allocating unique target AC equipment for the AP templates to be allocated in the queue to be allocated according to the current number of the AP templates on the online AC equipment with the number of the AP templates not reaching the upper limit value, and sending the allocated AP templates to the corresponding target AC equipment. That is, when the to-be-allocated AP template exists in the to-be-allocated queue, or there is no online AC device in the wireless networking, or the number of AP templates on all online AC devices in the wireless networking has reached the upper limit value, the AP template is added to the to-be-allocated queue instead of immediately allocating the AC device to the AP template, so as to delay allocation of the AC device; under the condition that the on-line AC equipment exists in the wireless networking and the number of the AP templates on the on-line AC equipment does not reach the upper limit value, the situation that when the wireless networking is large, a single AC equipment cannot bear the AP configuration of the whole wireless networking is effectively avoided by allocating the unique target AC equipment for the AP templates to be allocated and issuing the allocated AP templates to the corresponding target AC equipment, and the target AC equipment is allocated to the AP templates to be allocated according to the on-line AC equipment of which the number of the AP templates does not reach the upper limit value, so that the AP equipment applying for online can be timely and normally online on the target AC equipment on the basis of the allocated AP templates on the target AC equipment.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram illustrating an application environment of an AP template processing method and apparatus according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an AP template processing method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating an AP template processing method according to an embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating an AP template processing method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart illustrating an AP template processing method according to an embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating a method for processing an AP template according to an embodiment of the present invention;
fig. 7 is a schematic flowchart illustrating an AP template processing method according to an embodiment of the present invention;
fig. 8 is a schematic functional block diagram of an AP template processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic functional block diagram of an AP template processing apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram showing a configuration of a server according to an embodiment of the present invention.
Icon: 10-wireless networking; 100-a server; 200-AC devices; 300-AP equipment; 800-AP template processing means; 110-a memory; 120-a processor; 130-a communication module; 810-queue maintenance module; 820-AC equipment assignment module; 830-AP template sending module; 840-timer processing module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The AP template processing method and apparatus provided by the embodiment of the present invention may be applied to the wireless network 10 shown in fig. 1. Referring to fig. 1, the wireless network 10 includes a server 100, an AC device 200, and an AP device 300, where the server 100 may be configured to manage the AC device 200 in the wireless network 10, when the AP device 300 needs to associate with the AC device 200, an online request needs to be sent to the server 100 first, the server 100 calculates an AC device 200 that can be used for load for the AP device 300, and returns identification information of the AC device 200 to the AP device 300, the AP device 300 may find a corresponding AC device 200 based on the identification information of the AC device 200, the AC device 200 determines whether an AP template matching with the AP device 300 and issued by the server 100 currently exists, and when an AP template matching with the AP device 300 exists on the AC device 200, the AP device 300 may associate with the AC device 200, so that the AC device 200 is normally online.
In this embodiment, after the user configures the AP template on the server 100, the server 100 needs to apply a reasonable processing mechanism to the AP template configured by the user, so that the AP device 300, which subsequently applies for online, can normally online on the corresponding AC device 200 based on the AP template. Accordingly, referring to fig. 2, a flowchart of an AP template processing method according to an embodiment of the present invention is shown. It should be noted that, the AP template processing method according to the embodiment of the present invention is not limited by fig. 2 and the following specific sequence, and it should be understood that, in other embodiments, the sequence of some steps in the AP template processing method according to the embodiment of the present invention may be interchanged according to actual needs, or some steps in the AP template processing method may be omitted or deleted. The AP template processing method may be applied to the server 100 shown in fig. 1, and the specific flow shown in fig. 2 will be described in detail below.
Step S201, when acquiring the AP template configured by the user, if the AP template to be allocated exists in the queue to be allocated, or there is no online AC device in the wireless networking, or the number of AP templates on all online AC devices in the wireless networking has reached the upper limit value, adding the AP template as the AP template to be allocated into the queue to be allocated.
In this embodiment, the server 100 is preset with a queue to be allocated, and for an AP template configured in advance by a user, when the AC device 200 cannot be immediately allocated to the AP template, the AP template needs to be added to the queue to be allocated for queuing, and at this time, the AP template becomes the AP template to be allocated in the queue to be allocated, and waits for the server 100 to allocate the AC device 200 to the AP template.
Here, the upper limit value may be understood as the number of AP devices 300 that can be carried by each AC device 200, for example, 1k, 2k, and the like. It should be understood that the upper limit values corresponding to different AC devices 200 may be the same or different, and this embodiment is not limited thereto.
In this embodiment, when there is an AP template to be allocated in the queue to be allocated, it indicates that there is another AP template in front of the AP template and is queuing to wait for the server 100 to allocate the AC device 200, so that the AP template configured by the user needs to be added into the queue to be allocated for waiting for allocation.
When there is no online AC device in the wireless networking 10, it indicates that the AC devices 200 in the wireless networking 10 are all in an offline state, and at this time, if the AC device 200 is allocated to an AP template configured by a user and the AC device 200 is not accessed for a long time, it may cause that when the AP device 300 corresponding to the AP template applies for online, the AC device 200 available for online cannot be found based on the identification information of the AC device 200 returned by the server 100, and thus the AP template cannot be normally online on the AC device 200, so the AP template needs to be added to a queue to be allocated as an AP template to be allocated, and allocation of the AC device 200 is delayed.
When the number of AP templates on all online AC devices in the wireless network 10 has reached the upper limit value, it indicates that all current online AC devices cannot bear any more AP device 300, and therefore the AP template configured by the user needs to be added into the queue to be allocated for waiting allocation.
Step S202, when the online AC equipment with the number of the AP templates not reaching the upper limit value exists in the wireless networking, unique target AC equipment is allocated to the AP templates to be allocated in the queue to be allocated according to the current number of the AP templates on the online AC equipment with the number of the AP templates not reaching the upper limit value.
In this embodiment, when there is an online AC device whose AP template number has not reached the upper limit value in the wireless networking 10, the online AC device whose AP template number has not reached the upper limit value is used as a resource pool, and a set load sharing algorithm is used to allocate a unique target AC device to the AP template to be allocated in the queue to be allocated.
Optionally, when the server 100 allocates a unique target AC device to the AP templates to be allocated in the queue to be allocated, the allocation may be performed according to the queuing sequence of each AP template to be allocated. For example, the queue to be allocated includes an AP template a1 to be allocated, an AP template a2 to be allocated, and an AP template A3 to be allocated, where the AP template a1 to be allocated is queued first, the AP template a2 times to be allocated is queued last, and the AP template A3 to be allocated is queued last, and then the server 100 sequentially allocates unique target AC devices to the AP template a1 to be allocated, the AP template a2 to be allocated, and the AP template A3 to be allocated according to the queuing sequence.
For example, assume that there are 2 online AC devices (a first online AC device and a second online AC device, respectively) whose AP template number has not reached the upper limit, and the number of AP devices 300 that can be carried by the 2 online AC devices is 10, that is, the upper limit of the AP template number is 10; the number of current AP templates on the first online AC device is 7, and the number of current AP templates on the second online AC device is 8.
If the number of the AP templates to be allocated in the queue to be allocated is 5, the server 100 allocates a unique target AC device to each AP template to be allocated according to the queuing sequence of the AP templates to be allocated, and then allocates 3 AP templates to be allocated to the first online AC device and 2 AP templates to be allocated to the second online AC device. Similarly, if the number of the AP templates to be allocated in the queue to be allocated is 8, after the server 100 allocates a unique target AC device to the first 5 queued AP templates to be allocated, the numbers of the AP templates on the first online AC device and the second online AC device both reach the upper limit value, so that the remaining 3 AP templates to be allocated cannot be allocated to the unique target AC device temporarily.
Step S203, the allocated AP template is sent to the corresponding target AC device.
In this embodiment, for each AP template to be allocated in the queue to be allocated, after the server 100 allocates a unique target AC device to the AP template to be allocated, the AP template to be allocated becomes an allocated AP template, and the server 100 issues the allocated AP template to the corresponding target AC device, so that when the AP device 300 corresponding to the allocated AP template applies for online application, the server 100 returns the identification information of the target AC device corresponding to the allocated AP template to the AP device 300, so that the AP device 300 can find the target AC device based on the identification information, and when the allocated AP template on the target AC device is matched with the AP device 300, the AP device 300 can be online on the target AC device normally in time.
It can be seen that in the AP template processing method provided in the embodiment of the present invention, when an AP template to be allocated exists in a queue to be allocated, or there is no online AC device in the wireless networking 10, or the number of AP templates on all online AC devices in the wireless networking 10 has reached the upper limit value, instead of immediately allocating an AC device 200 to the AP template, the AP template is added to the queue to be allocated, so as to delay allocation of the AC device 200; when the number of the AP templates does not reach the upper limit value in the wireless networking 10, according to the current number of the AP templates on the online AC device whose number of the AP templates does not reach the upper limit value, allocating a unique target AC device to the AP template to be allocated and issuing the allocated AP template to the corresponding target AC device, which effectively avoids the situation that a single AC device 200 cannot bear the AP configuration of the whole wireless networking 10 when the wireless networking 10 is large, and allocates the target AC device to the AP template to be allocated according to the online AC device whose number of the AP templates does not reach the upper limit value, thereby effectively ensuring that the AP device 300 applying for online can be online normally in time on the target AC device based on the allocated AP template on the target AC device.
Optionally, in some scenarios, for an AP template configured in advance by a user, a unique target AC device may be directly allocated to the AP template, and the AP template is issued without waiting for allocation. Based on this, referring to fig. 3, on the basis of fig. 2, the AP template processing method further includes:
step S301, when the AP template configured by the user is obtained, if the AP template to be allocated does not exist in the queue to be allocated and the online AC equipment of which the number of the AP templates does not reach the upper limit value exists in the wireless networking, allocating unique target AC equipment for the AP template from the online AC equipment of which the number of the AP templates does not reach the upper limit value.
In this embodiment, when there is no AP template to be allocated in the queue to be allocated and there is an online AC device in the wireless networking 10 whose number of AP templates has not reached the upper limit value, it indicates that there is no other AP template waiting for being allocated by the server 100 before acquiring the AP template, and there is an online AC device in the wireless networking 10 that can be allocated by the server 100, so that the AP template does not need to wait for allocation, and the server 100 directly allocates a unique target AC device to the AP template.
Step S302, the AP template is sent to the corresponding target AC device.
In this embodiment, after the server 100 allocates the only target AC device to the AP template, the AP template also needs to be issued to the corresponding target AC device, so that when the AP device 300 corresponding to the AP template applies for online, the AP template can be used to online the corresponding target AC device normally in time.
Next, a detailed description will be given of a scenario in which the user configures the AP template in fig. 3. Referring to fig. 4, when acquiring the AP template configured by the user, the server 100 processes the AP template according to the following steps:
step S401, determine whether the queue to be allocated is empty.
When the queue to be allocated is empty, it indicates that there is no AP template to be allocated in the queue to be allocated, then step S402 is executed; when the queue to be allocated is not empty, it indicates that the AP template to be allocated currently exists in the queue to be allocated, then step S404 is executed.
Step S402, judging whether the wireless networking has the online AC equipment.
When there is no online AC device in the wireless networking 10, the AC device 200 is not immediately allocated to the AP template, but the AP template is added to the queue to be allocated, so as to delay the allocation of the AC device 200, that is, step S404 is executed; when there are online AC devices in the wireless networking 10, since the number of AP devices 300 that can be carried by each AC device 200 is limited, it needs to be further determined whether the number of AP templates issued by the server 100 on the current online AC device has reached the upper limit value, that is, step S403 is executed.
Step S403, determining whether the number of AP templates on all online AC devices in the wireless networking has reached an upper limit value.
In this embodiment, if the number of AP templates on all online AC devices in the wireless networking 10 has reached the upper limit value, step S404 is executed; if there is an online AC device whose AP template number has not reached the upper limit value in the wireless networking 10, it indicates that there is an online AC device available for allocation in the wireless networking 10, and step S405 is executed.
And step S404, adding the AP template serving as the AP template to be distributed into a queue to be distributed.
Step S405, allocating a unique target AC device to the AP template from the online AC devices whose number of AP templates has not reached the upper limit value, and sending the AP template to the corresponding target AC device.
In this embodiment, for an AP template configured in advance by a user, the server 100 may determine whether the queue to be allocated is empty, whether there is an online AC device in the wireless networking 10, and whether the number of AP templates on the online AC device has reached the upper limit, to meet a condition that the AP template immediately allocates the AC device 200, if not, the AP template needs to be added into the queue to be allocated for waiting for allocation, and at this time, if the queue to be allocated is in a distribution state and there is an online AC device whose number of AP templates has not reached the upper limit in the current wireless networking 10, the server 100 sequentially allocates target AC devices according to the queuing sequence of the AP templates to be allocated in the queue to be allocated. If the conditions for immediately allocating the AC device 200 to the AP template are met, a unique target AC device is directly allocated to the AP template from the online AC devices whose number of AP templates has not reached the upper limit value, and the AP template is sent to the corresponding target AC device, and it is not necessary to determine whether there is an AP template to be allocated in the queue to be allocated, and the process ends.
That is, if the server 100 is currently an AP template issued from the queue to be allocated, the AP template to be allocated in the queue to be allocated needs to be read circularly, and a corresponding target AC device is allocated to the AP template to be allocated; if the AP template currently delivered by the server 100 is not entered into the queue to be distributed, but is directly delivered to the target AC device, it is not necessary to read the AP template to be distributed in the queue to be distributed.
Optionally, in the process of allocating a unique target AC device to the AP template to be allocated in the queue to be allocated, if all the AC devices 200 in the wireless networking 10 are offline or the AP templates issued on all the current online AC devices have reached the upper limit value, the server 100 needs to stop allocating the AC devices 200 to the remaining AP templates to be allocated in the queue to be allocated. Based on this, referring to fig. 5, on the basis of fig. 2, the AP template processing method further includes:
step S501, when no online AC device exists in the wireless networking, or the number of AP templates on all online AC devices in the wireless networking reaches an upper limit value, stopping allocating a unique target AC device for the AP templates to be allocated in the queue to be allocated.
In this embodiment, in the process of allocating a unique target AC device to an AP template to be allocated in a queue to be allocated, the server 100 may determine in real time whether there are online AC devices currently in the wireless networking 10 and whether the number of AP templates on the current online AC device has both reached an upper limit value, thereby determining whether there are online AC devices available for allocation in the wireless networking 10, and if so, cyclically read the AP template to be allocated in the queue to be allocated and allocate the target AC device to the AP template to be allocated; and if not, stopping allocating the unique target AC equipment for the AP template to be allocated in the queue to be allocated.
The server 100 stops allocating the unique target AC device to the AP template to be allocated in the queue to be allocated, which does not mean that the allocation of the AC device 200 is ended, and after the AC device 200 available for allocation is re-accessed in the wireless networking 10, the server 100 may continue allocating the unique target AC device to the AP template to be allocated in the queue to be allocated based on the newly-accessed AC device 200.
Optionally, in this embodiment, in order to enable the queue to be allocated, which has stopped being distributed, to re-enter the distribution state, a new AC device 200 may be accessed in the wireless networking 10. Based on this, referring to fig. 6, the AP template processing method further includes:
step S601, after a new AC device is accessed in the wireless networking, if an AP template to be allocated exists in the queue to be allocated and the server has stopped allocating a unique target AC device to the AP template to be allocated in the queue to be allocated, determining whether a preset timer has been started.
The duration of the timer may be the estimated time from power-on to normal operation of the AC device 200, or may be set according to actual needs, which is not limited in this embodiment. When the timer is not started, step S602 is executed; when the timer has started, step S603 is executed.
In step S602, if the timer is not started, the timer is started.
In this embodiment, when the timer has not started yet, it indicates that the new AC device is a new AC device that is accessed from the first AC device in the same current batch of new AC devices.
In step S603, if the timer is started, the timer is refreshed to count time again until the timer expires.
Step S604, after the timer is overtime, allocating unique target AC equipment for the AP template to be allocated in the queue to be allocated according to the new AC equipment which is accessed to the wireless network currently.
As can be seen, the server 100 may define the same batch of new AC devices that are continuously accessed by using a timer continuous refresh mechanism, so as to ensure that all the currently accessible new AC devices are completely accessed as much as possible. When all the new AC devices in the same batch are stably accessed (i.e., the timer is over time) and started, the server 100 allocates a unique target AC device to the AP template to be allocated in the queue to be allocated based on the new AC device currently accessed to the wireless network 10, so as to prevent the difference between the numbers of the AP templates allocated to the new AC devices that are accessed to the wireless network 10 first and last from being too large when a batch of new AC devices are continuously accessed.
That is, after a new AC device is accessed, the server 100 does not immediately bring the queue to be allocated into the distribution state, but uses a timer continuous refresh mechanism to delay the allocation of the new AC device, and after the timer is overtime, allocates a unique target AC device to the AP template to be allocated in the queue to be allocated based on the new AC device currently accessed to the wireless network 10, thereby ensuring that the number of the allocated AP templates issued to each new AC device 200 is relatively uniform.
Step S605, after a new AC device is accessed in the wireless networking, if the to-be-allocated AP template exists in the to-be-allocated queue and the server does not stop allocating a unique target AC device to the to-be-allocated AP template in the to-be-allocated queue, the new AC device is used as an online AC device whose AP template number has not reached the upper limit value, so that the new AC device waits for the server to issue the corresponding allocated AP template.
In this embodiment, after the new AC device accesses the wireless network 10, if there is an AP template to be allocated in the queue to be allocated at this time and the server 100 is allocating a unique target AC device to the AP template to be allocated, the new AC device may be used as an online AC device whose AP template number has not reached the upper limit value, so as to allocate the unique target AC device to the AP template to be allocated, and the new AC device only needs to wait for the server 100 to issue the corresponding allocated AP template.
It can be understood that, when a new AC device is accessed in the wireless networking 10, if the to-be-allocated AP template does not exist in the to-be-allocated queue, it indicates that the server 100 does not need to allocate the AC device 200 and issue the AP template at present, and the new AC device may be used by the server 100 to subsequently allocate a unique target AC device to the AP template, and issue the AP template to the corresponding target AC device.
The following describes in detail a scenario of fig. 6 in which a new AC device accesses the wireless network 10. Referring to fig. 7, after a new AC device is accessed, the method includes the following steps:
step S701, determine whether the queue to be allocated is empty.
When the queue to be distributed is judged to be empty, the AP template to be distributed does not exist in the queue to be distributed, and the process is ended; when it is determined that the queue to be allocated is not empty, indicating that the AP template to be allocated exists in the queue to be allocated, step S702 is executed.
Step S702, determine whether a unique target AC device is being allocated to the AP template to be allocated in the queue to be allocated.
When it is determined that the server 100 is allocating a unique target AC device to the AP template to be allocated in the queue to be allocated, step S703 is executed; when it is determined that the server 100 does not currently allocate a unique target AC device to the AP template to be allocated in the queue to be allocated, S704 is performed.
Step S703, the new AC device is used as the online AC device whose AP template number has not reached the upper limit value, so that the new AC device waits for the server to issue the corresponding allocated AP template.
In step S704, it is determined whether the timer has started.
Wherein, when the timer is judged to have been started, step S705 is executed; when the timer is not started, executing step S706;
in step S705, the timer is refreshed to count again.
In step S706, a timer is started.
In step S707, in the timer counting process, timer polling is performed to acquire counting data of the timer.
Step S708, determining whether the timer is overtime according to the acquired timing data.
If not, returning to step S707 to continue timer polling; if the timer times out, step S709 is executed.
Step S709, cyclically read the AP template to be allocated in the queue to be allocated, allocate a unique target AC device to the AP template to be allocated, and send the allocated AP template to the target AC device. After each allocated AP template is issued, step S710 is executed.
Step S710, determining whether there is an online AC device in the wireless networking, where the number of AP templates has not reached the upper limit.
If the online AC equipment with the AP template number not reaching the upper limit value exists, returning to the step S709; if there is no online AC device whose AP template number has not reached the upper limit value, step S711 is executed.
Step S711 stops assigning the only target AC device to the AP template to be assigned in the queue to be assigned, and waits for the next time when the timer expires.
In order to execute the corresponding steps in the above embodiments and various possible manners, an implementation manner of the AP template processing apparatus is given below. Fig. 8 is a functional block diagram of an AP template processing apparatus 800 according to an embodiment of the present invention. It should be noted that the basic principle and the generated technical effect of the AP template processing apparatus 800 provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no part of the present embodiment is mentioned, and reference may be made to the corresponding contents in the above embodiments. The AP template processing apparatus 800 is applicable to the server 100, and includes a queue maintenance module 810, an AC device assignment module 820, and an AP template transmission module 830.
The queue maintenance module 810 is configured to, when acquiring an AP template configured by a user, add the AP template as an AP template to be allocated to the queue to be allocated if the AP template to be allocated exists in the queue to be allocated, or there is no online AC device in the wireless networking 10, or the number of AP templates on all online AC devices in the wireless networking 10 has reached an upper limit value.
It is understood that the queue maintenance module 810 can perform the step S201.
The AC device allocating module 820 is configured to, when there is an online AC device whose AP template number has not reached the upper limit value in the wireless networking 10, allocate a unique target AC device to the AP template to be allocated in the queue to be allocated according to the current AP template number on the online AC device whose AP template number has not reached the upper limit value.
It is understood that the AC device assignment module 820 may perform step S202 described above.
The AP template sending module 830 is configured to send the allocated AP template to the corresponding target AC device.
It is understood that the AP template transmitting module 830 may perform the step S203.
Optionally, the AC device allocating module 820 is further configured to, when the AP template configured by the user is obtained, allocate a unique target AC device to the AP template from the online AC devices whose AP template number has not reached the upper limit value if the AP template to be allocated does not exist in the queue to be allocated and an online AC device whose AP template number has not reached the upper limit value exists in the wireless networking 10.
It is understood that the AC device assignment module 820 may also perform the step S301.
The AP template sending module 830 is further configured to send the AP template to the corresponding target AC device.
It is to be understood that the AP template sending module 830 may also perform the step S302.
Optionally, the AC device allocating module 820 is further configured to stop allocating a unique target AC device to the AP template to be allocated in the queue to be allocated when there is no online AC device in the wireless networking 10, or the number of AP templates on all online AC devices in the wireless networking 10 has reached an upper limit value.
It is understood that the AC device assignment module 820 may also perform the step S501.
Optionally, referring to fig. 9 on the basis of fig. 8, the AP template processing apparatus 800 may further include a timer processing module 840, where the timer processing module 840 is configured to, after a new AC device is accessed in the wireless network 10, determine whether a preset timer is started if an AP template to be allocated exists in the queue to be allocated and the server 100 has stopped allocating a unique target AC device to the AP template to be allocated in the queue to be allocated; if the timer is not started, starting the timer; if the timer is started, the timer is refreshed to count again until the timer is over time.
It is understood that the timer processing module 840 can perform the steps S601, S602, and S603.
The AC device allocating module 820 is further configured to allocate, after the timer is overtime, a unique target AC device to the AP template to be allocated in the queue to be allocated according to a new AC device that has currently accessed the wireless network 10.
It is understood that the AC device assignment module 820 may also perform the step S604.
Optionally, the AC device allocating module 820 may be further configured to, after a new AC device is accessed in the wireless networking 10, if the to-be-allocated AP template exists in the to-be-allocated queue and the server 100 does not stop allocating a unique target AC device to the to-be-allocated AP template in the to-be-allocated queue, use the new AC device as an online AC device whose AP template number has not reached the upper limit, so that the new AC device waits for the server 100 to issue a corresponding allocated AP template.
It is understood that the AC device assignment module 820 may also perform the step S605.
Fig. 10 is a block diagram of a server 100 according to an embodiment of the present invention. The server 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, the processor 120, and the communication module 130 are electrically connected to each other directly or indirectly to enable data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 110 is used for storing computer programs or data, among others. The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an erasable Read-Only Memory (EPROM), an electrically erasable Read-Only Memory (EEPROM), and the like.
The processor 120 is used to read/write data stored in the memory 110 or a computer program, and when the computer program is read and executed by the processor 120, the AP template processing method as described above can be implemented.
The communication module 130 is used to establish a communication connection between the server 100 and another communication terminal (e.g., the AC device 200, the AP device 300) through a network, and to transceive data through the network.
It should be understood that the configuration shown in fig. 10 is merely a schematic diagram of the configuration of the server 100, and that the server 100 may include more or less components than shown in fig. 10, or have a different configuration than shown in fig. 10. The components shown in fig. 10 may be implemented in hardware, software, or a combination thereof.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor 120, the AP template processing method disclosed in the above embodiment is implemented.
In summary, according to the AP template processing method, apparatus, server, and computer-readable storage medium provided in the embodiments of the present invention, when an AP template configured by a user is obtained, if an AP template to be allocated exists in a queue to be allocated, or there is no online AC device in a wireless networking, or the number of AP templates on all online AC devices in the wireless networking has reached an upper limit value, the AP template is added to the queue to be allocated as an AP template to be allocated; when the online AC equipment with the number of the AP templates not reaching the upper limit value exists in the wireless networking, allocating unique target AC equipment for the AP templates to be allocated in the queue to be allocated according to the current number of the AP templates on the online AC equipment with the number of the AP templates not reaching the upper limit value, and sending the allocated AP templates to the corresponding target AC equipment.
That is, when the to-be-allocated AP template exists in the to-be-allocated queue, or there is no online AC device in the wireless networking, or the number of AP templates on all online AC devices in the wireless networking has reached the upper limit value, the AP template is added to the to-be-allocated queue instead of immediately allocating the AC device to the AP template, so as to delay allocation of the AC device; under the condition that the on-line AC equipment exists in the wireless networking and the number of the AP templates on the on-line AC equipment does not reach the upper limit value, the situation that when the wireless networking is large, a single AC equipment cannot bear the AP configuration of the whole wireless networking is effectively avoided by allocating the only target AC equipment for the AP templates to be allocated and issuing the allocated AP templates to the corresponding target AC equipment, and the target AC equipment is allocated to the AP templates to be allocated on the basis of the on-line AC equipment of which the number of the AP templates does not reach the upper limit value, so that the AP equipment applying for online can be timely and normally online on the target AC equipment on the basis of the allocated AP templates on the target AC equipment. In addition, the same batch of new AC equipment which is continuously accessed is defined by utilizing a timer continuous refreshing mechanism, the condition that all new AC equipment which can be accessed into the wireless networking at present is accessed completely can be ensured as much as possible, the condition that the difference of the numbers of the allocated AP templates issued to the new AC equipment which is accessed into the wireless networking at first and last is overlarge when a batch of new AC equipment is continuously accessed is prevented, and after all the new AC equipment in the same batch is stably accessed, the server fully utilizes all the accessed new AC equipment resources to allocate unique target AC equipment for the AP templates to be allocated, so that the condition that the number of the allocated AP templates issued to each new AC equipment is relatively uniform is ensured.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. An AP template processing method is applied to a server in wireless networking, the server is used for managing AC equipment in the wireless networking, and the method is characterized in that queues to be distributed are preset in the server, and the method comprises the following steps:
when an AP template configured by a user is acquired, if the AP template to be allocated exists in the queue to be allocated, or no online AC equipment exists in the wireless networking, or the number of the AP templates on all the online AC equipment in the wireless networking reaches an upper limit value, adding the AP template serving as the AP template to be allocated into the queue to be allocated;
when online AC equipment with the number of AP templates not reaching the upper limit value exists in the wireless networking, allocating unique target AC equipment for the AP templates to be allocated in the queue to be allocated according to the current number of the AP templates on the online AC equipment with the number of the AP templates not reaching the upper limit value;
the assigned AP template is sent to the corresponding target AC device.
2. The method of claim 1, further comprising:
when an AP template configured by a user is obtained, if the AP template to be distributed does not exist in the queue to be distributed and online AC equipment of which the number of the AP templates does not reach the upper limit value exists in the wireless networking, allocating unique target AC equipment for the AP template from the online AC equipment of which the number of the AP templates does not reach the upper limit value;
and sending the AP template to a corresponding target AC device.
3. The method of claim 1, further comprising:
and when no online AC equipment exists in the wireless networking, or the number of the AP templates on all the online AC equipment in the wireless networking reaches an upper limit value, stopping allocating the only target AC equipment to the AP templates to be allocated in the queue to be allocated.
4. The method of claim 1, further comprising:
after a new AC device is accessed in the wireless networking, if an AP template to be distributed exists in the queue to be distributed and the server stops distributing the only target AC device for the AP template to be distributed in the queue to be distributed, judging whether a preset timer is started;
if the timer is not started, starting the timer;
if the timer is started, refreshing the timer to count again until the timer is overtime;
and after the timer is overtime, allocating unique target AC equipment for the AP template to be allocated in the queue to be allocated according to the new AC equipment which is currently accessed to the wireless network.
5. The method of claim 1, further comprising:
and after a new AC device is accessed in the wireless networking, if an AP template to be distributed exists in the queue to be distributed and the server does not stop distributing the only target AC device for the AP template to be distributed in the queue to be distributed, the new AC device is used as an online AC device of which the number of the AP templates does not reach the upper limit value, so that the new AC device waits for the server to send the corresponding distributed AP template.
6. An AP template processing device is applied to a server in wireless networking, the server is used for managing AC equipment in the wireless networking, and the AP template processing device is characterized in that queues to be distributed are preset in the server, and the AP template processing device comprises:
the queue maintenance module is used for adding the AP template serving as the AP template to be allocated into the queue to be allocated if the AP template to be allocated exists in the queue to be allocated, or no online AC equipment exists in the wireless networking, or the number of the AP templates on all the online AC equipment in the wireless networking reaches an upper limit value when the AP template configured by a user is obtained;
an AC device allocation module, configured to, when there is an online AC device whose number of AP templates has not reached the upper limit value in the wireless networking, allocate a unique target AC device to the AP template to be allocated in the queue to be allocated according to the current number of AP templates on the online AC device whose number of AP templates has not reached the upper limit value;
and the AP template sending module is used for sending the distributed AP templates to the corresponding target AC equipment.
7. The apparatus according to claim 6, wherein the AC device allocation module is further configured to, when obtaining an AP template configured by a user, allocate a unique target AC device to the AP template from online AC devices whose AP template number has not reached an upper limit value if the AP template to be allocated does not exist in the queue to be allocated and online AC devices whose AP template number has not reached the upper limit value exist in the wireless networking;
the AP template sending module is further configured to send the AP template to a corresponding target AC device.
8. The apparatus of claim 6, wherein the AC device allocation module is further configured to stop allocating a unique target AC device to the to-be-allocated AP template in the to-be-allocated queue when there is no online AC device in the wireless networking or the number of AP templates on all online AC devices in the wireless networking has reached an upper limit value.
9. The apparatus of claim 6, further comprising:
the timer processing module is used for judging whether a preset timer is started or not if the AP templates to be distributed exist in the queue to be distributed and the server stops distributing the only target AC equipment for the AP templates to be distributed in the queue to be distributed after new AC equipment is accessed in the wireless networking; if the timer is not started, starting the timer; if the timer is started, refreshing the timer to count again until the timer is overtime;
and the AC equipment allocation module is also used for allocating unique target AC equipment for the AP template to be allocated in the queue to be allocated according to the new AC equipment which is currently accessed to the wireless network after the timer is overtime.
10. A server, comprising a memory storing a computer program and a processor, the computer program being read and executed by the processor to perform the method according to any of claims 1-5.
11. A computer-readable storage medium, on which a computer program is stored which, when read and executed by a processor, implements the method of any one of claims 1-5.
CN201911175036.2A 2019-11-26 2019-11-26 AP template processing method, device, server and computer readable storage medium Active CN111031561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911175036.2A CN111031561B (en) 2019-11-26 2019-11-26 AP template processing method, device, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911175036.2A CN111031561B (en) 2019-11-26 2019-11-26 AP template processing method, device, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111031561A true CN111031561A (en) 2020-04-17
CN111031561B CN111031561B (en) 2022-07-12

Family

ID=70202412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911175036.2A Active CN111031561B (en) 2019-11-26 2019-11-26 AP template processing method, device, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111031561B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070210252A1 (en) * 2006-02-17 2007-09-13 Atsushi Miyamoto Scanning electron microscope and a method for imaging a specimen using the same
CN103457652A (en) * 2013-08-29 2013-12-18 福建星网锐捷网络有限公司 Wireless network access device and antenna selection method
US20150189511A1 (en) * 2013-12-30 2015-07-02 Anchorfree Inc System and method for security and quality assessment of wireless access points
CN108419305A (en) * 2018-04-02 2018-08-17 广州市孚海软件技术有限公司 A kind of WLAN small wireless network network-building methods of lightweight
CN109195199A (en) * 2018-09-27 2019-01-11 新华三技术有限公司 A kind of management method and device of AP

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070210252A1 (en) * 2006-02-17 2007-09-13 Atsushi Miyamoto Scanning electron microscope and a method for imaging a specimen using the same
CN103457652A (en) * 2013-08-29 2013-12-18 福建星网锐捷网络有限公司 Wireless network access device and antenna selection method
US20150189511A1 (en) * 2013-12-30 2015-07-02 Anchorfree Inc System and method for security and quality assessment of wireless access points
CN108419305A (en) * 2018-04-02 2018-08-17 广州市孚海软件技术有限公司 A kind of WLAN small wireless network network-building methods of lightweight
CN109195199A (en) * 2018-09-27 2019-01-11 新华三技术有限公司 A kind of management method and device of AP

Also Published As

Publication number Publication date
CN111031561B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN108717379B (en) Electronic device, distributed task scheduling method and storage medium
CN109558446B (en) Job request method, job request device, electronic equipment and storage medium
CN105791254B (en) Network request processing method and device and terminal
CN108667744B (en) Flow control method and device
CN109587220B (en) Load balancing method and device, computer equipment and storage medium
CN107343023B (en) Resource allocation method and device in Mesos management cluster and electronic equipment
EP2998862A1 (en) Method, device, and system for memory management
CN106385377B (en) Information processing method and system
WO2016041446A1 (en) Resource allocation method, apparatus and device
CN112887228A (en) Cloud resource management method and device, electronic equipment and computer readable storage medium
CN109428926B (en) Method and device for scheduling task nodes
CN108028806B (en) Method and device for allocating virtual resources in Network Function Virtualization (NFV) network
CN113361913A (en) Communication service arranging method, device, computer equipment and storage medium
CN111163186B (en) ID generation method, device, equipment and storage medium
CN109818977B (en) Access server communication optimization method, access server and communication system
CN113885794B (en) Data access method and device based on multi-cloud storage, computer equipment and medium
CN111062572A (en) Task allocation method and device
CN111031561B (en) AP template processing method, device, server and computer readable storage medium
CN109922120B (en) Method and terminal for improving DNS availability
CN112527490A (en) Node resource control method and device, electronic equipment and storage medium
CN110891033B (en) Network resource processing method, device, gateway, controller and storage medium
CN111126604A (en) Model training method, device, server and storage medium
KR101364456B1 (en) Method for utilizing network resource in machine-to-machine cloud environment communication and the system thereof
US20160139940A1 (en) Systems and methods for creating virtual machine
CN107807838B (en) Virtual machine processing method, device and equipment

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