A method for configuring AP and AP
By creating a virtual STA terminal on the AP, the problems of insufficient storage space for AP startup files and complexity of IP conversion on public and private networks are solved, and efficient file download is achieved, avoiding AC storage space occupation and operation complexity.
Patent Information
- Application Number
- CN202111425492.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-11-26
AI Technical Summary
In the prior art, when the startup file of the AP is stored in the AC, it cannot accommodate all files due to limited storage space. When the AP is located in the private network and the server needs additional public-private IP conversion when it is on the public network, adding operations and Traffic complexity.
By creating a virtual STA terminal on the AP, using the virtual STA to access the server to download the files to be downloaded, avoiding storing files in the AC to take up space, and downloading files from the public network server without changing the original network.
It effectively solves the problems of insufficient AP storage space and complexity of IP conversion on public and private networks, improves file download efficiency, and reduces AC storage space usage and operation complexity.
Smart Images

Figure CN114217868B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a method for configuring an AP and an AP. Background Art
[0002] Currently, when an AP obtains a startup file, the AP can use the capwap protocol to download it from the AC, or the AP can use ftp and other methods to download it from the AC or server.
[0003] In one method, the AP startup file is placed in the storage space of the AC, and the AP downloads the startup file from the storage space of the AC for upgrading. However, the storage space of the AC is limited. As the types of APs increase and the files become larger, it is no longer possible to put all the AP startup files in the AC. This method generally uses the capwap protocol between the AC and the AP to download files. Capwap download adds message interaction on the basis of udp to ensure the integrity and correctness of the file.
[0004] In another method, the AP startup file is placed on an external server, and the AP downloads the file from the server through FTP or HTTP, etc. However, if the server is on the public network and the AP is on the private network, additional public network and private network IP conversion is required, which increases the complexity of operation and traffic. Summary of the invention
[0005] The present disclosure provides a method for configuring an AP and the AP, through which the AP can obtain a file to be downloaded from a server.
[0006] The present disclosure provides a method for configuring an AP, the method comprising:
[0007] Receiving a first trigger instruction for triggering the AP to obtain a file to be downloaded, wherein the first trigger instruction includes: storing address information and wireless port information of the file to be downloaded;
[0008] Creating a virtual STA terminal, and downloading the file to be downloaded according to the first trigger instruction through the virtual STA;
[0009] The AP is configured according to the acquired file to be downloaded.
[0010] The receiving of a first trigger instruction for triggering the AP to obtain a file to be downloaded includes: obtaining the first trigger instruction from an AC associated with the AP;
[0011] The first trigger instruction is generated by the AC according to the second trigger instruction sent by the server, and the second trigger instruction includes: storing the address information of the file to be downloaded and the version information of the file to be downloaded.
[0012] The first trigger instruction is generated by the AC according to the second trigger instruction sent by the server, and includes:
[0013] When the AC determines that the version information of the file to be downloaded in the second trigger instruction is inconsistent with the version information of the file running in the AP, a first trigger instruction is generated according to the address information of the file to be downloaded stored in the second trigger instruction and the wireless port information selected by the AC for communicating with the AP.
[0014] The step of creating a virtual STA terminal includes:
[0015] A virtual STA is created according to the wireless port information, and address information of the virtual STA is acquired by using a DHCP protocol.
[0016] The downloading of the file to be downloaded according to the first trigger instruction by the virtual STA includes:
[0017] The file to be downloaded is downloaded using the address information of the virtual STA and the address information of the file to be downloaded.
[0018] Wherein, after creating the virtual STA terminal, the method further includes:
[0019] Obtain the size of the file to be downloaded, and compare it with the local storage space;
[0020] If the local storage space is greater than or equal to the size of the file to be downloaded, downloading the file to be downloaded according to the first trigger instruction through the virtual STA; otherwise,
[0021] A notification of rejecting the download is sent through the virtual STA.
[0022] Wherein, after downloading the file to be downloaded according to the first trigger instruction through the virtual STA, the method further includes:
[0023] Determine whether the result of downloading the file to be downloaded is successful, and feed back the result through the virtual STA.
[0024] It can be seen from the above embodiments that when the AP receives the first trigger instruction, it can create a virtual STA and use the created virtual STA to access the server to download the file to be downloaded, thereby solving the problem that when the file to be downloaded is stored in the AC, the storage space of the AC is wasted; and when the file to be downloaded is stored in the public network server, the AP needs to additionally configure the public / private network conversion technical problem.
[0025] The present disclosure provides an AP, the AP comprising:
[0026] A receiving module, configured to receive a first trigger instruction for triggering the AP to obtain a file to be downloaded, wherein the first trigger instruction includes: storing address information and wireless port information of the file to be downloaded;
[0027] Create a module for creating a virtual STA terminal;
[0028] A download module, configured to download the file to be downloaded according to the first trigger instruction through the virtual STA;
[0029] A configuration module is used to configure the AP according to the acquired file to be downloaded.
[0030] An embodiment of the present disclosure provides an AP, which includes: a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program implements the method steps in the above-mentioned embodiments when executed by the processor.
[0031] An embodiment of the present disclosure provides a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the method steps in the above embodiments are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.
[0033] Figure 1 A flowchart of a method for configuring an AP provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.
[0035] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0036] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0037] To solve the above technical problems, the present disclosure provides a method for configuring an AP, such as Figure 1 As shown, the method includes:
[0038] S101 receives a first trigger instruction for triggering an AP to obtain a file to be downloaded, wherein the first trigger instruction includes: storing address information and wireless port information of the file to be downloaded;
[0039] S102 creates a virtual STA terminal, and downloads the file to be downloaded according to the first trigger instruction through the virtual STA;
[0040] S103 configures the AP according to the acquired file to be downloaded.
[0041] In this embodiment, the file to be downloaded may be a startup file of the AP, or may be other configuration files or data files.
[0042] In this embodiment, the AP can access the public network through the virtual STA by creating a virtual STA, that is, without changing the original network, the AP can download files from the external server and from the AC; and the protocol type downloaded by the virtual STA can be a TCP-based protocol such as FTP or HTTP, while the communication between the AC and the AP can still use the original capwap encapsulation. At the same time, since the protocol type downloaded by the virtual STA can be a TCP-based protocol such as FTP or HTTP, the download efficiency is greatly improved compared to the capwap encapsulation.
[0043] For the convenience of description, it is assumed that the subject that executes steps S101 to S103 is a target AP.
[0044] In step S101, the first trigger instruction received by the target AP may be sent by the AC associated with itself. In one example, after the server determines the target AP that needs to be upgraded, it will send a second trigger instruction to the AC, and the second trigger instruction carries the address information of the file to be downloaded (the startup file of the target AP) and the version information of the file to be downloaded. The version information may include: version number, version size, download protocol. In other embodiments, the second trigger instruction may also carry the identification information of the target AP.
[0045] After receiving the second trigger instruction, AC obtains the version information of the file to be downloaded, and compares the obtained version information of the file to be downloaded with the version information of the file being run by the target AP. If the comparison results are consistent, it means that the target AP does not need to be upgraded, and the server can be fed back "no upgrade required". If the comparison results are inconsistent, it means that the target AP needs to be upgraded. At this time, the first trigger instruction is generated according to the second trigger instruction and sent to the target AP. Among them, the address information of the file to be downloaded in the first trigger instruction is consistent with the address information of the file to be downloaded in the second trigger instruction, and the wireless port information is determined by the AC according to the radio port between the AC and the target AP.
[0046] Specifically, when the AC determines that the target AP needs to be upgraded, the AC searches for the STA carried by the radio bound to the wireless service ID of the target AP based on the wireless service ID, finds the radio with the least STA on the target AP, and adds this radio number and wireless service ID as parameters to the first trigger instruction and sends it to the target AP.
[0047] When implementing the above steps, the server may be the AC or a server other than the AC, and is used to store the files to be downloaded by the AP.
[0048] The server stores the following entries:
[0049] Server table entry 1: server address.
[0050] Server entry 2: AP name and AP model.
[0051] Server entry 3: AP startup file name, version number, size and AP model comparison table. The entries can be increased or decreased as needed.
[0052] Server entry 4: User name and password for downloading files.
[0053] Server table entry 5: Download protocol (ftp, tftp, http, etc.).
[0054] Server table entry 6: Wireless service template (wireless service id, ssid, vlan, forwarding mode, etc.) table entries can be increased or decreased as needed. This table entry can be manually configured in the service or generated by AC reporting to the server.
[0055] Server entry 7: AP name, radio, etc.
[0056] The server and AC and AP also need to meet the basic configuration steps, which include:
[0057] Step 1. The server queries the AC and determines whether all APs on the AC are bound to the service template in table 6. If they are bound, it proceeds to the next step. If not, it sends a message to the AC. The AC establishes a service template and binds it to the corresponding AP, and updates table 7 to update the AP and radio of the newly added wireless service template to table 7.
[0058] Step 2. The server selects the AP to be upgraded based on the AP name and selects the download protocol. The server searches table item 2 and determines the AP model based on the AP name. It searches table item 3 and determines the AP startup file name and other parameters based on the AP model, and combines table item 1 and the AP startup file name into the address information of the file to be downloaded.
[0059] After completing the above configuration, the server can send a second trigger instruction to the AC according to the administrator's response.
[0060] In step S102, the target AP may create a virtual STA according to the wireless port information carried in the first trigger instruction and according to the wireless 802.11 protocol, and the virtual STA automatically obtains address information using the DHCP protocol.
[0061] In one example, after receiving the first trigger instruction, the target AP uses the corresponding wireless service ID according to the parameters to virtually create a STA on the radio port corresponding to the wireless port information, and simulates a DHCP discovery process to obtain an IP address for the virtual STA.
[0062] During this process, if the target AP finds that the STA is full, it can randomly delete a STA, and then generate a virtual STA table entry on the target AP, and pass the download address, the username and password for downloading, the protocol and other parameters to the STA table entry.
[0063] In this embodiment, the first trigger instruction sent by the AC to the target AP may also carry the size information of the file to be downloaded. After the target AP creates the virtual STA, it can also obtain the size information of the file to be downloaded from the first trigger instruction, and determine whether the local storage space can meet the needs of downloading the file to be downloaded. If so, it will be downloaded; if not, it will feedback "unable to download" to the server (or AC).
[0064] In this embodiment, after the target AP uses the virtual STA to download the file to be downloaded, it can feedback the download result to the server (or AC), for example, the server (or AC) feedbacks the download result of successful download. After sending the download result of successful download, the target AP can simulate the STA offline and clear the virtual STA.
[0065] In this embodiment, the target AP can create multiple virtual STAs according to demand, and each virtual STA occupies a single process in the total process, thereby achieving parallel downloading of multiple download processes.
[0066] In this embodiment, the server function can be split, for example, the server is only used as a download server, and only stores the AP startup file and the user name and password for downloading, while the other parts can be placed on the AC side as management functions.
[0067] In addition, the service template can be built into the code and bound to the target AP. This can omit the process of creating a service template and binding the target AP.
[0068] It can be seen from the above embodiments that by creating a virtual STA on the AP, the virtual STA can access the server (access the public network) and use TCP and other protocols to download the file to be downloaded (AP startup file), which can avoid storing the file to be downloaded in the AC, resulting in occupying AC space, and the AP cannot access the server in the public network, resulting in the inability to download the AP startup file. Technical problems.
[0069] Based on the above method embodiments, the present disclosure further provides an AP, which includes:
[0070] A receiving module, configured to receive a first trigger instruction for triggering the AP to obtain a file to be downloaded, wherein the first trigger instruction includes: storing address information and wireless port information of the file to be downloaded;
[0071] A creation module is used to create a virtual STA terminal according to the DHCP protocol;
[0072] A download module, configured to download the file to be downloaded according to the first trigger instruction through the virtual STA;
[0073] A configuration module is used to configure the AP according to the acquired file to be downloaded.
[0074] The embodiment of the present disclosure further provides an AP, which includes: a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program implements the steps in the above-mentioned method embodiments when executed by the processor.
[0075] The embodiments of the present disclosure further provide a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0076] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0077] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention claimed herein. The specification is intended to cover any variations, uses or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not claimed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.
[0078] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
[0079] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A method for configuring an AP, characterized in that: The method comprises: Receiving a first trigger instruction for triggering the AP to obtain a file to be downloaded, wherein the first trigger instruction includes: storing address information and wireless port information of the file to be downloaded; Creating a virtual STA terminal, and downloading the file to be downloaded according to the first trigger instruction through the virtual STA; Configuring the AP according to the acquired file to be downloaded; The receiving of a first trigger instruction for triggering the AP to obtain a file to be downloaded includes: Acquire the first trigger instruction from an AC associated with the AP; The first trigger instruction is generated by the AC according to the second trigger instruction sent by the server, and the second trigger instruction includes: storing the address information of the file to be downloaded and the version information of the file to be downloaded; The address information of the file to be downloaded in the first trigger instruction is consistent with the address information of the file to be downloaded in the second trigger instruction, and the wireless port information is determined by the AC according to the radio port between the AC and the target AP.
2. The method according to claim 1, characterized in that The first trigger instruction is generated by the AC according to the second trigger instruction sent by the server, and includes: When the AC determines that the version information of the file to be downloaded in the second trigger instruction is inconsistent with the version information of the file running in the AP, a first trigger instruction is generated according to the address information of the file to be downloaded stored in the second trigger instruction and the wireless port information selected by the AC for communicating with the AP.
3. The method according to claim 1, characterized in that The step of creating a virtual STA terminal includes: A virtual STA is created according to the wireless port information, and address information of the virtual STA is acquired by using a DHCP protocol.
4. The method according to claim 3, characterized in that The downloading the file to be downloaded according to the first trigger instruction by the virtual STA includes: The file to be downloaded is downloaded using the address information of the virtual STA and the address information of the file to be downloaded.
5. The method according to claim 1, characterized in that After creating the virtual STA terminal, the method further includes: Obtain the size of the file to be downloaded, and compare it with the local storage space; If the local storage space is greater than or equal to the size of the file to be downloaded, downloading the file to be downloaded according to the first trigger instruction through the virtual STA; otherwise, A notification of rejecting the download is sent through the virtual STA.
6. The method according to claim 1, characterized in that After downloading the file to be downloaded according to the first trigger instruction through the virtual STA, the method further includes: Determine whether the result of downloading the file to be downloaded is successful, and feed back the result through the virtual STA.
7. An AP, characterized in that: The AP includes: A receiving module, configured to receive a first trigger instruction for triggering the AP to obtain a file to be downloaded, wherein the first trigger instruction includes: storing address information and wireless port information of the file to be downloaded; Create a module for creating a virtual STA terminal; A download module, configured to download the file to be downloaded according to the first trigger instruction through the virtual STA; A configuration module, configured to configure the AP according to the acquired file to be downloaded; The receiving of a first trigger instruction for triggering the AP to obtain a file to be downloaded includes: Acquire the first trigger instruction from an AC associated with the AP; The first trigger instruction is generated by the AC according to the second trigger instruction sent by the server, and the second trigger instruction includes: storing the address information of the file to be downloaded and the version information of the file to be downloaded; The address information of the file to be downloaded in the first trigger instruction is consistent with the address information of the file to be downloaded in the second trigger instruction, and the wireless port information is determined by the AC according to the radio port between the AC and the target AP.
8. An AP, characterized in that: The AP comprises: a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program implements the method steps according to any one of claims 1 to 6 when executed by the processor.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, and when the program is executed by a processor, the method steps according to any one of claims 1 to 6 are implemented.
