License authorization method and apparatus, electronic device, and storage medium
Patent Information
- Application Number
- CN202311440258.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-10-31
AI Technical Summary
但是,在实际应用中,由于申请License的时间与AP完成接入的时间具有不确定性,会出现AP已完成接入流程但AC还未成功申请到相应的License,导致AP无法成功接入AC,进而影响用户体验
[0013] In this embodiment, when the AC receives an access request from the AP and checks that there is no available license available to authorize the AP locally, it sends a license application request to the license server to request the target license for the AP, and allows the AP to access. The AP's identification information carried in the access request is added as a fast pass entry to the first data queue marked as the license application queue. If the AC receives a first license application response from the license server to indicate that the license application was successful, and determines that the fast pass entry has not been deleted, the fast pass entry is transferred from its current memory queue to the license record queue.
Smart Images

Figure CN117615374B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a license licensing method, apparatus, electronic device, and storage medium. Background Technology
[0002] In a wireless network consisting of an Access Controller (AC) and a Fit Access Point (AP), the access resources occupied by the AP on the AC are typically controlled through a license.
[0003] In one license authorization scheme, when an AP connects to an AC, the AC calculates the license required by the AP and applies for the corresponding license from the license server. Once the license is successfully obtained, the AP is allowed to connect. However, in practical applications, due to the uncertainty between the time of license application and the time of AP connection completion, it is possible that the AP has completed the connection process but the AC has not yet successfully obtained the corresponding license, causing the AP to fail to connect to the AC and thus affecting the user experience. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this application provides a license licensing method, apparatus, electronic device, and storage medium.
[0005] According to a first aspect of the embodiments of this application, a license authorization method is provided, the method being applied to an AC, the method comprising:
[0006] Upon receiving an access request from an AP and determining that there is no available license available locally to authorize the AP, a license application request for the target license to be used by the AP is sent to the license server, and the AP is allowed to access. The identification information of the AP carried in the access request is added as a fast pass entry to the first data queue marked as the license application queue, wherein the first data queue is a data queue in a ping-pong structure data queue.
[0007] If a first license application response indicating a successful license application is received from the license server, and it is determined that the fast pass entry has not been deleted, then the fast pass entry is transferred from its current memory queue to the license record queue.
[0008] According to a second aspect of the embodiments of this application, a license authorization device is provided, the device being applied to an AC, the device comprising:
[0009] The application module is used to send a license application request to the license server when it receives an access request from an AP and checks that there is no available license available locally to authorize the AP to use the AP. The module also allows the AP to access the network and adds the AP's identification information carried in the access request as a fast pass entry to a first data queue marked as a license application queue. The first data queue is a data queue based on a ping-pong structure.
[0010] The authorization module is used to transfer the fast pass table entry from its current memory queue to the authorization record queue if it receives a first license application response from the license server indicating that the license application was successful and determines that the fast pass table entry has not been deleted.
[0011] According to a third aspect of the present application, an electronic device is provided, including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being prompted by the machine-executable instructions to implement the method steps of the above-described License authorization method.
[0012] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when executed by a processor, the computer program implements the method steps of the above-described License authorization method. The technical solutions provided by the embodiments of this application may include the following beneficial effects:
[0013] In this embodiment, when the AC receives an access request from the AP and checks that there is no available license available to authorize the AP locally, it sends a license application request to the license server to request the target license for the AP, and allows the AP to access. The AP's identification information carried in the access request is added as a fast pass entry to the first data queue marked as the license application queue. If the AC receives a first license application response from the license server to indicate that the license application was successful, and determines that the fast pass entry has not been deleted, the fast pass entry is transferred from its current memory queue to the license record queue.
[0014] This allows for rapid access to the AC, whether it's a single AP or a group of APs connecting to the AC. Compared to existing license authorization schemes, this improves the success rate of access and thus enhances the user experience.
[0015] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this application, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0017] Figure 1 A flowchart illustrating a license authorization method provided in this application embodiment;
[0018] Figure 2 A schematic diagram of the first and second data queues provided in the embodiments of this application;
[0019] Figure 3 A schematic diagram of a license authorization device provided in this application embodiment;
[0020] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0021] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0022] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0023] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words “if” or “suppose” as used herein may be interpreted as “when…” or “when…”.
[0024] The embodiments of this application will now be described in detail.
[0025] This application provides a license authorization method, which is applied to an AC, such as... Figure 1 As shown, the method may include the following steps:
[0026] S11. Upon receiving an access request from the AP and determining that there is no available license available locally to authorize the AP, a license application request for the target license to be used by the AP is sent to the license server, and the AP is allowed to access. The AP's identification information carried in the access request is added as a fast pass entry to the first data queue marked as the license application queue.
[0027] In this step, the aforementioned fast pass entry can be understood as a fast release entry; the aforementioned first data queue is a data queue in a ping-pong structure-based data queue.
[0028] In addition, in this step, the aforementioned identification information can be a device serial number that uniquely identifies the AP.
[0029] S12. If a first license application response indicating a successful license application is received from the license server, and it is determined that the quick pass entry has not been deleted, then the quick pass entry is transferred from its current memory queue to the license record queue.
[0030] Furthermore, in the embodiments of this application, the AC may also perform the following operations:
[0031] After sending a license application request to the license server, if there is no fast pass entry in either the first data queue or the second data queue marked as the license aging queue, then after adding the identification information as a fast pass entry to the first data queue, the fast pass entry aging cycle timer is started.
[0032] When the fast pass table aging cycle timer expires, if there is a fast pass table entry in the second data queue, all fast pass table entries in the second data queue are deleted, and the wireless connection with the AP is disconnected.
[0033] If there is a fast pass table entry in the first data queue, then change the queue label of the first data queue from the license application queue to the license aging queue, and change the queue label of the second data queue from the license aging queue to the license application queue.
[0034] If there are no fast-pass entries in either the first or second data queue, then the fast-pass entry aging cycle timer is turned off.
[0035] It should be noted that in this operation process, the timeout duration of the fast-pass entry aging cycle timer can be set by the administrator based on the network experience of the AC's network and pre-configured on the AC. This timeout duration is usually longer than the maximum application time (experience value) for the AC to apply for a license from the license server, and is usually set in minutes.
[0036] Here, the second data queue mentioned above is another data queue in a ping-pong structure-based data queue. Both the first and second data queues mentioned above can be memory queues, etc.
[0037] For example, when the fast-pass entry aging cycle timer times out, suppose there are 3 fast-pass entries in the second data queue (e.g. Figure 2 As shown), then AC will delete these 3 fast-pass table entries from the second data queue (such as...). Figure 2 As shown), and disconnect the wireless connection from the corresponding AP (that is, the AP corresponding to these 3 fast pass entries).
[0038] Assuming that in this scenario, the first data queue also contains two fast-pass entries, the AC will change the queue label of the first data queue from License Request Queue to License Aging Queue, and change the queue label of the second data queue from License Aging Queue to License Request Queue. At this point, the first data queue, now labeled as License Aging Queue, still contains the two fast-pass entries, while the second data queue, now labeled as License Request Queue, is empty. Figure 2 As shown.
[0039] Furthermore, in this embodiment of the application, after the AC adds the AP's identification information carried in the access request as a fast pass entry to the first data queue marked as the License application queue, the AC may also perform the following operations:
[0040] The first operation: If the first license request response is received and it is determined that the quick pass entry has been deleted, then notify the license server to release the license used by the AP.
[0041] The second operation: If a second license application response indicating a failed license application is received from the license server, and it is determined that the quick pass entry has been deleted, then the wireless connection established with the AP is disconnected.
[0042] In other words, in this embodiment of the application, in order to improve the user experience, once the AC receives an access request from any AP, it first temporarily allows the AP to access, that is, temporarily allows the AP to access, and adds the AP's identification information as a quick pass entry to the first data queue mentioned above; subsequently, if it receives a license application response from the license server to indicate that the license application was successful, and finds that the quick pass entry has not been deleted, it will transfer the quick pass entry from its current memory queue to the authorization record queue, which means that the AP is officially allowed to access; if it receives a license application response from the license server to indicate that the license application failed, it will delete the quick pass entry and disconnect the wireless connection established with the AP.
[0043] As can be seen from the above technical solutions, in this embodiment, when the AC receives an access request from the AP and checks that there is no available license that can authorize the AP to use locally, it sends a license application request to the license server to apply for the target license for the AP to use, and allows the AP to access. The AP's identification information carried in the access request is added as a fast pass entry to the first data queue marked as the license application queue. If the AC receives a first license application response from the license server to indicate that the license application was successful, and determines that the fast pass entry has not been deleted, the fast pass entry is transferred from the current memory queue to the license record queue.
[0044] This allows for rapid access to the AC, whether it's a single AP or a group of APs connecting to the AC. Compared to existing license authorization schemes, this improves the success rate of access and thus enhances the user experience.
[0045] Based on the same inventive concept, this application also provides a license authorization device, which is applied to an AC, and its structural schematic diagram is shown below. Figure 3 As shown, it specifically includes:
[0046] The application module 31 is used to send a license application request to the license server to apply for the target license for the AP when it receives an access request from the AP and checks that there is no available license available locally to authorize the AP to use, and allows the AP to access, and adds the identification information of the AP carried in the access request as a fast pass table entry to the first data queue marked as the license application queue, wherein the first data queue is a data queue based on a ping-pong structure;
[0047] The authorization module 32 is used to transfer the fast pass table entry from its current memory queue to the authorization record queue if it receives a first license application response from the license server indicating that the license application was successful and determines that the fast pass table entry has not been deleted.
[0048] Preferably, the device further includes:
[0049] First processing module ( Figure 3 (Not shown in the image), used to, after the application module has completed the step of sending the License application request to the License server, if there are no fast pass entries in either the first data queue or the second data queue marked as the License aging queue, then after adding the identification information as a fast pass entry to the first data queue, start the fast pass entry aging cycle timer, wherein the second data queue is another data queue in a ping-pong structure data queue;
[0050] When the fast pass table entry aging cycle timer expires, if there is a fast pass table entry in the second data queue, all fast pass table entries in the second data queue are deleted, and the wireless connection with the corresponding AP is disconnected.
[0051] If there is a fast pass table entry in the first data queue, then the queue label of the first data queue is changed from the license application queue to the license aging queue, and the queue label of the second data queue is changed from the license aging queue to the license application queue.
[0052] If there are no fast-pass entries in either the first data queue or the second data queue, then the aging timer for the fast-pass entry is turned off.
[0053] Preferably, the device further includes:
[0054] Second processing module ( Figure 3(Not shown in the image) is used to notify the License server to release the License used by the AP after the application module has completed the step of adding the AP's identification information carried in the access request as a quick pass entry to the first data queue marked as the License application queue, if the first License application response is received and it is determined that the quick pass entry has been deleted.
[0055] Preferably, the device further includes:
[0056] Third processing module ( Figure 3 (Not shown in the image) is used to disconnect the wireless connection established with the AP after the application module has completed the step of adding the AP's identification information carried in the access request as a quick pass entry to the first data queue marked as the License application queue. If the application module receives a second License application response sent by the License server to indicate that the License application has failed, and determines that the quick pass entry has been deleted, then the application module disconnects the wireless connection established with the AP.
[0057] Preferably, the identification information is the device serial number of the AP.
[0058] As can be seen from the above technical solutions, in this embodiment, when the AC receives an access request from the AP and checks that there is no available license that can authorize the AP to use locally, it sends a license application request to the license server to apply for the target license for the AP to use, and allows the AP to access. The AP's identification information carried in the access request is added as a fast pass entry to the first data queue marked as the license application queue. If the AC receives a first license application response from the license server to indicate that the license application was successful, and determines that the fast pass entry has not been deleted, the fast pass entry is transferred from the current memory queue to the license record queue.
[0059] This allows for rapid access to the AC, whether it's a single AP or a group of APs connecting to the AC. Compared to existing license authorization schemes, this improves the success rate of access and thus enhances the user experience.
[0060] This application also provides an electronic device, such as... Figure 4 As shown, it includes a processor 41 and a machine-readable storage medium 42, the machine-readable storage medium 42 storing machine-executable instructions that can be executed by the processor 41, the processor 41 being prompted by the machine-executable instructions to implement the steps of the above-described License authorization method.
[0061] The aforementioned machine-readable storage medium may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the machine-readable storage medium may also be at least one storage device located remotely from the aforementioned processor.
[0062] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0063] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of the above-described License authorization method.
[0064] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A license authorization method, characterized in that, The method is applied to an access controller (AC), and the method includes: Upon receiving an access request from an access point (AP) and determining that there is no available license available locally to authorize the AP, a license application request is sent to the license server to apply for the target license for the AP. The AP is allowed to access the server, and the AP's identification information carried in the access request is added as a fast pass entry to the first data queue marked as the license application queue. The first data queue is a data queue in a ping-pong structure data queue. If a first license application response indicating a successful license application is received from the license server, and it is determined that the fast pass entry has not been deleted, then the fast pass entry is transferred from its current memory queue to the license record queue.
2. The method according to claim 1, characterized in that, The method further includes: After sending the License application request to the License server, if there is no fast pass entry in either the first data queue or the second data queue marked as the License aging queue, then after adding the identification information as a fast pass entry to the first data queue, the fast pass entry aging cycle timer is started, wherein the second data queue is another data queue in a ping-pong structure data queue. When the fast pass table entry aging cycle timer expires, if there is a fast pass table entry in the second data queue, all fast pass table entries in the second data queue are deleted, and the wireless connection with the corresponding AP is disconnected. If there is a fast pass table entry in the first data queue, then the queue label of the first data queue is changed from the license application queue to the license aging queue, and the queue label of the second data queue is changed from the license aging queue to the license application queue. If there are no fast-pass entries in either the first data queue or the second data queue, then the aging timer for the fast-pass entry is turned off.
3. The method according to claim 1, characterized in that, The method further includes: After adding the AP's identification information carried in the access request as a quick pass entry to the first data queue marked as the License application queue, if the first License application response is received and it is determined that the quick pass entry has been deleted, the License server is notified to release the License used by the AP.
4. The method according to claim 1, characterized in that, The method further includes: After adding the AP's identification information carried in the access request as a quick pass entry to the first data queue marked as the License application queue, if a second License application response indicating a License application failure is received from the License server, and it is determined that the quick pass entry has been deleted, the wireless connection established with the AP is disconnected.
5. The method according to claim 1, characterized in that, The identification information is the device serial number of the AP.
6. A license authorization device, characterized in that, The device is used in an access controller AC, and the device includes: The application module is used to send a license application request to the license server when it receives an access request from an access point (AP) and checks that there is no available license available locally to authorize the AP to use the AP. The module also allows the AP to access the network and adds the AP's identification information carried in the access request as a fast pass entry to a first data queue marked as a license application queue. The first data queue is a data queue based on a ping-pong structure. The authorization module is used to transfer the fast pass table entry from its current memory queue to the authorization record queue if it receives a first license application response from the license server indicating that the license application was successful and determines that the fast pass table entry has not been deleted.
7. The apparatus according to claim 6, characterized in that, The device further includes: The first processing module is configured to, after the application module has completed the step of sending the License application request to the License server, if there is no fast pass entry in either the first data queue or the second data queue marked as the License aging queue, then after adding the identification information as a fast pass entry to the first data queue, start a fast pass entry aging cycle timer, wherein the second data queue is another data queue in a ping-pong structure data queue; When the fast pass table entry aging cycle timer expires, if there is a fast pass table entry in the second data queue, all fast pass table entries in the second data queue are deleted, and the wireless connection with the corresponding AP is disconnected. If there is a fast pass table entry in the first data queue, then the queue label of the first data queue is changed from the license application queue to the license aging queue, and the queue label of the second data queue is changed from the license aging queue to the license application queue. If there are no fast-pass entries in either the first data queue or the second data queue, then the aging timer for the fast-pass entry is turned off.
8. The apparatus according to claim 6, characterized in that, The device further includes: The second processing module is configured to, after the application module completes the step of adding the AP's identification information carried in the access request as a fast pass entry to the first data queue marked as the License application queue, if it receives the first License application response and determines that the fast pass entry has been deleted, notify the License server to release the License used by the AP.
9. The apparatus according to claim 6, characterized in that, The device further includes: The third processing module is used to disconnect the wireless connection established with the AP after the application module has completed the step of adding the AP's identification information carried in the access request as a quick pass entry to the first data queue marked as the License application queue. If it receives a second License application response sent by the License server to indicate that the License application has failed, and determines that the quick pass entry has been deleted, it will disconnect the wireless connection established with the AP.
10. An electronic device, characterized in that, The method includes a processor and a machine-readable storage medium storing machine-executable instructions that can be executed by the processor, which are prompted by the machine-executable instructions to perform the method steps of any one of claims 1-5.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method steps of any one of claims 1-5.
Citation Information
Patent Citations
Method and apparatus of AP to access AC
CN106454826A
AP fast application and registration method and AC controller
CN107613490A