License management method and device, electronic equipment and storage medium

CN117596594BActive Publication Date: 2026-10-09NEW H3C TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311370003.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2026-10-09
Estimated Expiration
2043-10-20

AI Technical Summary

Technical Problem

但是,在AP上一次接入的AC异常退出、且无法通知LicenseServer释放对应的License时,会出现因AP无法在新AC上重新申请License而导致业务中断的问题,影响用户体验

Benefits of technology

[0015] In this embodiment of the application, when the License Server receives a License application request sent by the First AC for applying for a License for a target AP requesting access to the First AC (the License application request carries the attribute information of the target AP, including the serial number of the target AP and the first number of Licenses required by the target AP), if it determines that it has allocated the first number of Licenses to the target AP corresponding to the attribute information, and determines that the Second AC that applied for the License for the target AP in the local record is different from the First AC, it will modify the Second AC that applied for the License for the target AP in the local record to the First AC, and send a License application response to the First AC to indicate that the License application was successful, so that the First AC allows the target AP to access the First AC based on the application response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117596594B_ABST
    Figure CN117596594B_ABST
Patent Text Reader

Abstract

The application provides a License management method and device, electronic equipment and a storage medium. The method is applied to a License Server, and comprises the following steps: receiving a License application request sent by a first AC, the License application request being used for applying for a License for a target AP requesting to access the first AC; if it is judged that the target AP has been allocated a first number of Licenses corresponding to attribute information carried in the request, and it is judged that a second AC recorded locally for applying for the License for the target AP is different from the first AC, modifying the second AC recorded locally for applying for the License for the target AP to the first AC, and sending a License application response to the first AC, the License application response being used for indicating that the License application is successful, so that the first AC allows the target AP to access the first AC based on the application response. The application can improve user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a license management 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] When an AP connects to an AC, the AC calculates the licenses the AP needs and requests the corresponding licenses from the License Server. The License Server determines whether there are any available licenses based on the total number of licenses it has locally and the total number of licenses held by all ACs. If the decision is yes, the Server allocates the corresponding licenses to the AC and updates the number of licenses held by the AC so that it can determine whether there are any available licenses for the next request.

[0004] In practical applications, some users, due to high reliability or load balancing requirements, may need the same AP to connect to different ACs at different times. However, the same AP still only occupies access resources on one AC at a time, so users do not need to purchase additional licenses. However, if the AC the AP was previously connected to abnormally exits and cannot notify the LicenseServer to release the corresponding license, service interruption may occur because the AP cannot reapply for a license on a new AC, impacting user experience. Summary of the Invention

[0005] To overcome the problems existing in related technologies, this application provides a license management method, apparatus, electronic device, and storage medium.

[0006] According to a first aspect of the embodiments of this application, a license management method is provided, the method being applied to a license server, the method comprising:

[0007] Receive a license application request sent by a first AC for applying for a license for a target AP that requests access to the first AC, wherein the license application request carries attribute information of the target AP, and the attribute information includes the serial number of the target AP and the first number of licenses required by the target AP;

[0008] If it is determined that it has allocated the first number of licenses to the target AP corresponding to the attribute information, and it is determined that the second AC that applied for the license for the target AP in the local record is different from the first AC, then the second AC that applied for the license for the target AP in the local record is modified to the first AC, and a license application response indicating that the license application was successful is sent to the first AC, so that the first AC allows the target AP to access the first AC based on the application response.

[0009] According to a second aspect of the embodiments of this application, a license management device is provided, the device being applied to a license server, the device comprising:

[0010] The receiving module is configured to receive a license application request sent by the first AC for applying for a license for a target AP that requests access to the first AC, wherein the license application request carries attribute information of the target AP, and the attribute information includes the serial number of the target AP and the first number of licenses required by the target AP.

[0011] The management module is configured to, if it determines that it has allocated the first number of licenses to the target AP corresponding to the attribute information, and determines that the second AC that applied for the license for the target AP in the local record is different from the first AC, modify the second AC that applied for the license for the target AP in the local record to the first AC, and send a license application response to the first AC to indicate that the license application was successful, so that the first AC allows the target AP to access the first AC based on the application response.

[0012] 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 management method.

[0013] 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 the computer program is executed by a processor, it implements the method steps of the above-described license management method.

[0014] The technical solutions provided by the embodiments of this application may include the following beneficial effects:

[0015] In this embodiment of the application, when the License Server receives a License application request sent by the First AC for applying for a License for a target AP requesting access to the First AC (the License application request carries the attribute information of the target AP, including the serial number of the target AP and the first number of Licenses required by the target AP), if it determines that it has allocated the first number of Licenses to the target AP corresponding to the attribute information, and determines that the Second AC that applied for the License for the target AP in the local record is different from the First AC, it will modify the Second AC that applied for the License for the target AP in the local record to the First AC, and send a License application response to the First AC to indicate that the License application was successful, so that the First AC allows the target AP to access the First AC based on the application response.

[0016] This avoids the problem of service interruption caused by the AP being unable to reapply for a license on a new AC when the AC that the AP was previously connected to exits abnormally and cannot notify the License Server to release the corresponding license, thus improving the user experience.

[0017] 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

[0018] 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.

[0019] Figure 1 A flowchart illustrating a license management method provided in an embodiment of this application;

[0020] Figure 2 A schematic diagram of the structure of a license management device provided in this application embodiment;

[0021] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0022] 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.

[0023] 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.

[0024] 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…”.

[0025] The embodiments of this application will now be described in detail.

[0026] This application provides a license management method, which is applied to a license server, such as... Figure 1 As shown, the method may include the following steps:

[0027] S11. Receive a license application request sent by the first AC for the target AP that requests access to the first AC to apply for a license.

[0028] In this step, the license application request carries the attribute information of the target AP, including the serial number used to uniquely identify the target AP and the first number of licenses required by the target AP.

[0029] Here, the target AP's attribute information may also include the target AP's device model, etc.

[0030] S12. If it is determined that the target AP corresponding to the attribute information has been allocated the first number of licenses, and it is determined that the second AC that applied for the license for the target AP in the local record is different from the first AC, then the second AC that applied for the license for the target AP in the local record is modified to the first AC, and a license application response to indicate that the license application was successful is sent to the first AC, so that the first AC allows the target AP to access the first AC based on the application response.

[0031] It should be noted that in step S11 above, the license application request is sent by the first AC when it receives the access request sent by the target AP and determines that the number of locally allocatable licenses is less than the number of first licenses.

[0032] Furthermore, in this embodiment of the application, the License Server may also perform the following operations:

[0033] The first operation: After receiving the license application request sent by the first AC, if it is determined that it has not allocated the first number of licenses to the target AP corresponding to the attribute information, it further determines whether the number of second licenses that can be allocated locally is not less than the number of first licenses.

[0034] If the judgment result is yes, allocate the first number of licenses to the target AP corresponding to the attribute information, record the first AC that applied for the license for the target AP locally, and record the attribute information and the first number of licenses allocated to the target AP.

[0035] If the determination result is negative, a License application response indicating a failed License application is sent to the first AC, so that the first AC refuses the target AP's access to the first AC based on the application response; or, the License application request is refused to be responded to, so that if the first AC does not receive a License application response for the License application request within a set time period, the target AP refuses to access the first AC.

[0036] The second operation is as follows: After receiving the license application request sent by the first AC, if it is determined that it has allocated the first number of licenses to the target AP corresponding to the attribute information, and it is determined that the second AC that has the local record of the target AP applying for a license is the same as the first AC, then a license application response is sent to the first AC to indicate that the license application was successful, so that the first AC can allow the target AP to access the first AC based on the application response.

[0037] It should be noted that, in this embodiment of the application, for the first AC, after sending the above-mentioned license application request to the license server, if it subsequently receives a license application response from the license server indicating that the license application was successful, it will also record the attribute information of the target AP and the device information of the source device of the license applied for for the target AP locally.

[0038] It should be further noted that, in this embodiment of the application, after receiving the above-mentioned license application request, if the License Server determines that the local record contains the above-mentioned attribute information and the number of licenses allocated to the target AP corresponding to the above-mentioned attribute information in the local record is the first number of licenses, then it is determined that it has allocated the first number of licenses to the target AP corresponding to the attribute information; otherwise, it is determined that it has not allocated the first number of licenses to the target AP corresponding to the attribute information.

[0039] Furthermore, in this embodiment of the application, the License Server may also perform the following operations:

[0040] The system receives a license release request sent by the first AC to release the license used by the target AP. The license release request is sent by the first AC when it detects that the target AP is offline and determines that the license used by the target AP comes from the License Server (the first AC can determine this based on the device information of the source device of the license applied for by the target AP recorded locally). The license release request carries attribute information.

[0041] If it is determined that it has recorded the number of licenses allocated to the target AP based on the first AC as attribute information, then the licenses allocated to the target AP are released, and the attribute information, the first AC that applied for the license for the target AP, and the number of licenses allocated to the target AP are deleted locally.

[0042] Send a License release response to the first AC.

[0043] It should be noted that, in this embodiment of the application, after receiving the above-mentioned license release request sent by the first AC, if the License Server determines that it has not recorded that it has allocated the first number of licenses based on the first AC as the target AP corresponding to the attribute information, it does not do anything locally and directly sends a license release response to the first AC.

[0044] Of course, in this embodiment of the application, the License Server can also release the allocated license according to the existing license release mechanism configured locally, and the specific release process will not be described in detail here.

[0045] It should be further noted that, in this embodiment of the application, in order to further improve the user experience, after receiving the above-mentioned License application response, the first AC can set the usage time of the License for the target AP. During the usage time, the target AP is allowed to access the first AC regardless of whether the License Server is online.

[0046] As can be seen from the above technical solutions, in this embodiment of the application, when the License Server receives a License application request sent by the first AC for applying for a License for the target AP requesting access to the first AC (the License application request carries the attribute information of the target AP, and the attribute information includes the serial number of the target AP and the first number of Licenses required by the target AP), if it determines that it has allocated the first number of Licenses to the target AP corresponding to the attribute information, and determines that the second AC that applied for the License for the target AP in the local record is different from the first AC, it will modify the second AC that applied for the License for the target AP in the local record to the first AC, and send a License application response to the first AC to indicate that the License application was successful, so that the first AC allows the target AP to access the first AC based on the application response.

[0047] This avoids the problem of service interruption caused by the AP being unable to reapply for a license on a new AC when the AC that the AP was previously connected to exits abnormally and cannot notify the License Server to release the corresponding license, thus improving the user experience.

[0048] Based on the same inventive concept, this application also provides a license management device, which is applied to a license server, and its structural schematic diagram is shown below. Figure 2 As shown, it specifically includes:

[0049] The receiving module 21 is configured to receive a license application request sent by the first access controller AC for applying for a license for a target AP that requests access to the first AC, wherein the license application request carries attribute information of the target AP, and the attribute information includes the serial number of the target AP and the first number of licenses required by the target AP.

[0050] The management module 22 is configured to, if it determines that it has allocated the first number of licenses to the target AP corresponding to the attribute information, and determines that the second AC that applied for the license for the target AP in the local record is different from the first AC, modify the second AC that applied for the license for the target AP in the local record to the first AC, and send a license application response to the first AC to indicate that the license application was successful, so that the first AC allows the target AP to access the first AC based on the application response.

[0051] Preferably, the management module 22 is further configured to:

[0052] After the receiving module 21 receives the license application request sent by the first AC, if it determines that it has not allocated the first number of licenses to the target AP corresponding to the attribute information, it further determines whether the number of second licenses that can be allocated locally is not less than the number of first licenses.

[0053] When the determination result is yes, allocate the first number of licenses to the target AP corresponding to the attribute information, record the first AC that applied for the license for the target AP locally, and record the attribute information and the first number of licenses allocated to the target AP.

[0054] If the determination result is negative, a License application response indicating a failed License application is sent to the first AC, so that the first AC refuses the target AP's access to the first AC based on the application response; or, the first AC refuses to respond to the License application request, so that if the first AC does not receive a License application response for the License application request within a set time period, it refuses the target AP's access to the first AC.

[0055] Preferably, the management module 22 is further configured to:

[0056] After receiving the License application request sent by the first AC, if the receiving module 21 determines that it has allocated the first number of Licenses to the target AP corresponding to the attribute information, and determines that the second AC that the target AP applies for the License in the local record is the same as the first AC, then it sends a License application response to the first AC to indicate that the License application was successful, so that the first AC allows the target AP to access the first AC based on the application response.

[0057] Preferably, the receiving module 21 is further configured to:

[0058] The system receives a license release request sent by the first AC to release the license used by the target AP. The license release request is sent by the first AC when it detects that the target AP is offline and determines that the license used by the target AP comes from the License Server. The license release request carries the attribute information.

[0059] The management module 22 is also used for:

[0060] If it is determined that it has recorded the first number of licenses allocated to the target AP corresponding to the attribute information based on the first AC, then the licenses allocated to the target AP are released, and the attribute information, the first AC that applied for the licenses for the target AP, and the first number of licenses allocated to the target AP are deleted from the local records.

[0061] Send a License release response to the first AC.

[0062] As can be seen from the above technical solutions, in this embodiment of the application, when the License Server receives a License application request sent by the first AC for applying for a License for the target AP requesting access to the first AC (the License application request carries the attribute information of the target AP, and the attribute information includes the serial number of the target AP and the first number of Licenses required by the target AP), if it determines that it has allocated the first number of Licenses to the target AP corresponding to the attribute information, and determines that the second AC that applied for the License for the target AP in the local record is different from the first AC, it will modify the second AC that applied for the License for the target AP in the local record to the first AC, and send a License application response to the first AC to indicate that the License application was successful, so that the first AC allows the target AP to access the first AC based on the application response.

[0063] This avoids the problem of service interruption caused by the AP being unable to reapply for a license on a new AC when the AC that the AP was previously connected to exits abnormally and cannot notify the License Server to release the corresponding license, thus improving the user experience.

[0064] This application also provides an electronic device, such as... Figure 3 As shown, it includes a processor 31 and a machine-readable storage medium 32, the machine-readable storage medium 32 storing machine-executable instructions that can be executed by the processor 31, the processor 31 being prompted by the machine-executable instructions to implement the steps of the above-described license management method.

[0065] 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.

[0066] 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.

[0067] 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 management method.

[0068] 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 management method, characterized in that, The method is applied to a License server (Server), and the method includes: The system receives a license application request sent by a first access controller (AC) for applying for a license for a target AP that requests access to the first AC. The license application request carries attribute information of the target AP, including the serial number of the target AP and the first number of licenses required by the target AP. If it is determined that it has allocated the first number of licenses to the target AP corresponding to the attribute information, and it is determined that the second AC that applied for the license for the target AP in the local record is different from the first AC, then the second AC that applied for the license for the target AP in the local record is modified to the first AC, and a license application response indicating that the license application was successful is sent to the first AC, so that the first AC allows the target AP to access the first AC based on the application response.

2. The method according to claim 1, characterized in that, The method further includes: After receiving the License application request sent by the first AC, if it is determined that it has not allocated the first number of Licenses to the target AP corresponding to the attribute information, it further determines whether the number of second Licenses that can be allocated locally is not less than the number of first Licenses. When the determination result is yes, allocate the first number of licenses to the target AP corresponding to the attribute information, record the first AC that applied for the license for the target AP locally, and record the attribute information and the first number of licenses allocated to the target AP. If the determination result is negative, a License application response indicating a failed License application is sent to the first AC, so that the first AC refuses the target AP's access to the first AC based on the application response; or, the first AC refuses to respond to the License application request, so that if the first AC does not receive a License application response for the License application request within a set time period, it refuses the target AP's access to the first AC.

3. The method according to claim 1, characterized in that, The method further includes: After receiving the License application request sent by the first AC, if it determines that it has allocated the first number of Licenses to the target AP corresponding to the attribute information, and determines that the second AC that the target AP applies for the License in the local record is the same as the first AC, then it sends a License application response to the first AC to indicate that the License application was successful, so that the first AC allows the target AP to access the first AC based on the application response.

4. The method according to claim 1, characterized in that, The method further includes: The system receives a license release request sent by the first AC to release the license used by the target AP. The license release request is sent by the first AC when it detects that the target AP is offline and determines that the license used by the target AP comes from the License Server. The license release request carries the attribute information. If it is determined that it has recorded the first number of licenses allocated to the target AP corresponding to the attribute information based on the first AC, then the licenses allocated to the target AP are released, and the attribute information, the first AC that applied for the licenses for the target AP, and the first number of licenses allocated to the target AP are deleted from the local records. Send a License release response to the first AC.

5. A license management device, characterized in that, The device is used in a License Server, and the device includes: The receiving module is configured to receive a license application request sent by a first access controller AC for applying for a license for a target AP that requests access to the first AC, wherein the license application request carries attribute information of the target AP, and the attribute information includes the serial number of the target AP and the first number of licenses required by the target AP. The management module is configured to, if it determines that it has allocated the first number of licenses to the target AP corresponding to the attribute information, and determines that the second AC that applied for the license for the target AP in the local record is different from the first AC, modify the second AC that applied for the license for the target AP in the local record to the first AC, and send a license application response to the first AC to indicate that the license application was successful, so that the first AC allows the target AP to access the first AC based on the application response.

6. The apparatus according to claim 5, characterized in that, The management module is also used for: After the receiving module receives the license application request sent by the first AC, if it determines that it has not allocated the first number of licenses to the target AP corresponding to the attribute information, it further determines whether the number of second licenses that can be allocated locally is not less than the number of first licenses. When the determination result is yes, allocate the first number of licenses to the target AP corresponding to the attribute information, record the first AC that applied for the license for the target AP locally, and record the attribute information and the first number of licenses allocated to the target AP. If the determination result is negative, a License application response indicating a failed License application is sent to the first AC, so that the first AC refuses the target AP's access to the first AC based on the application response; or, the first AC refuses to respond to the License application request, so that if the first AC does not receive a License application response for the License application request within a set time period, it refuses the target AP's access to the first AC.

7. The apparatus according to claim 5, characterized in that, The management module is also used for: After the receiving module receives the license application request sent by the first AC, if it determines that it has allocated the first number of licenses to the target AP corresponding to the attribute information, and determines that the second AC that the target AP applies for a license locally is the same as the first AC, then it sends a license application response to the first AC to indicate that the license application was successful, so that the first AC allows the target AP to access the first AC based on the application response.

8. The apparatus according to claim 5, characterized in that, The receiving module is further configured to: The system receives a license release request sent by the first AC to release the license used by the target AP. The license release request is sent by the first AC when it detects that the target AP is offline and determines that the license used by the target AP comes from the license server. The license release request carries the attribute information and the number of the first licenses that need to be released. The management module is also used for: If it is determined that the first AC has allocated the first number of licenses to the target AP corresponding to the attribute information, then the license allocated to the target AP is released, and the attribute information, the first AC that applied for the license for the target AP, and the first number of licenses allocated to the target AP are deleted from the local records.

9. 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-4.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method steps of any one of claims 1-4.

Citation Information

Patent Citations

  • Method and apparatus for controlling AP (Access Point) access

    CN107659948A

  • Connection establishment method and connection establishment device

    CN108769984A