CN109996262B - AC starting method and device - Google Patents

AC starting method and device Download PDF

Info

Publication number
CN109996262B
CN109996262B CN201910209068.3A CN201910209068A CN109996262B CN 109996262 B CN109996262 B CN 109996262B CN 201910209068 A CN201910209068 A CN 201910209068A CN 109996262 B CN109996262 B CN 109996262B
Authority
CN
China
Prior art keywords
file
image file
information
mirror image
stored
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.)
Active
Application number
CN201910209068.3A
Other languages
Chinese (zh)
Other versions
CN109996262A (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 Information Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
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 filed Critical New H3C Technologies Co Ltd
Priority to CN201910209068.3A priority Critical patent/CN109996262B/en
Publication of CN109996262A publication Critical patent/CN109996262A/en
Application granted granted Critical
Publication of CN109996262B publication Critical patent/CN109996262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/0889Techniques to speed-up the configuration process
    • 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/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/12Access point controller devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Abstract

The embodiment of the application provides an AC starting method and device, relates to the technical field of communication, and aims to solve the problem that AC starting is slow. The scheme of the embodiment of the application comprises the following steps: in the restarting process of the AC, judging whether the version of the AC is updated or not, if the version of the AC is not updated, judging whether a first file and a second file are consistent or not, wherein the first file is a specification list of a decompressed AC, the specification list comprises AP mirror image file information of all APs supported by the current version of the AC, the second file comprises AP mirror image file information of the decompressed AP mirror image file stored after the AC is started and completed last time, and if the first file and the second file are inconsistent, updating the decompressed AP mirror image file stored after the AC is started and completed last time according to the inconsistent information in the second file and the first file; and if the first file is consistent with the second file, reserving the decompressed AP image file stored after the AC is started last time.

Description

AC starting method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to an AC starting method and apparatus.
Background
With the large-scale development of wireless networks, a large number of Access Points (APs) need to be deployed, high labor cost is brought to management work such as upgrading and configuration of the APs, and in order to solve the problem, subordinate APs can be centrally controlled and managed through an Access Controller (AC).
The AC can pack and store the AP image file of the AP model supported by the AC, the AP image file comprises information such as the model and the version of the AP, and in the process of starting the AC, the AC can decompress the AP image file and store the decompressed AP image file. However, each time the AC is started, the stored decompressed AP image is deleted and the AP image is decompressed and stored again, which makes the AC slow to start.
Disclosure of Invention
In view of this, embodiments of the present application provide an AC starting method and apparatus to solve the problem of slow AC starting. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides an AC starting method, including:
in the restarting process of an Access Controller (AC), judging whether the AC has version updating;
if the version of the AC is not updated, judging whether a first file and a second file are consistent, wherein the first file is a specification list of the decompressed AC, the specification list comprises AP mirror image file information of all Access Points (APs) supported by the current version of the AC, and the second file comprises AP mirror image file information of the decompressed AP mirror image file stored after the AC is started last time;
if the first file is inconsistent with the second file, updating the decompressed AP mirror image file stored after the AC is started last time according to the inconsistent information in the second file and the first file;
and if the first file is consistent with the second file, reserving the decompressed AP image file stored after the AC is started last time.
In one possible implementation manner, the updating the decompressed image file stored in the AC according to the information in the second file that is inconsistent with the information in the first file includes:
if the second file has redundant AP image file information, deleting an image file corresponding to the redundant AP image file information stored in the AC, wherein the redundant AP image file information is the AP image file information which is contained in the second file but not contained in the first file;
if the second file has missing AP mirror image file information, decompressing and storing an AP mirror image file corresponding to the missing AP mirror image file information, wherein the missing AP mirror image file information is the AP mirror image file information which is contained in the first file but not contained in the second file;
and if the AP mirror image file information stored for the target AP mirror image file in the first file and the second file is different, deleting the target AP mirror image file stored in the AC, and decompressing and storing the target AP mirror image file again.
In one possible implementation manner, after the updating the decompressed AP image file stored in the AC according to the information in the second file that is inconsistent with the information in the first file, the method further includes:
and updating the second file according to the updated decompressed AP image file stored in the AC.
In one possible implementation manner, after the determining whether the version update occurs to the AC, the method further includes:
if the AC is updated, deleting the decompressed AP image file stored in the AC;
decompressing the specification list of the AC to generate a third file, wherein the specification list comprises AP mirror image file information of all APs supported by the current version of the AC;
decompressing and storing the AP mirror image file again;
generating a fourth file according to the re-decompressed and stored AP image file, wherein the fourth file comprises AP image file information of the AP image file decompressed in the starting process at this time and stored in the AC;
judging whether the third file and the fourth file are consistent;
if the fourth file has redundant AP image file information, deleting an image file corresponding to the redundant AP image file information stored in the AC, wherein the redundant image file information is the AP image file information which is contained in the fourth file but not contained in the third file;
if the fourth file has missing AP image file information, decompressing and storing an AP image file corresponding to the missing AP image file information, wherein the missing AP image file information is AP image file information which is contained in the third file but not contained in the fourth file;
and if the AP mirror image file information stored for the target AP mirror image file in the third file and the fourth file is different, deleting the target AP mirror image file stored in the AC, and decompressing and storing the target AP mirror image file again.
In a possible implementation manner, the AP image file information includes any one or more of a name, a version number, a compilation date, and a file size of the AP image file.
In a second aspect, an embodiment of the present application provides an AC starting apparatus, including:
the judging module is used for judging whether the AC is updated in version or not in the restarting process of the access controller AC; if the version of the AC is not updated, judging whether a first file and a second file are consistent, wherein the first file is a specification list of the decompressed AC, the specification list comprises AP mirror image file information of all Access Points (APs) supported by the current version of the AC, and the second file comprises AP mirror image file information of the decompressed AP mirror image file stored after the AC is started last time;
the updating module is used for updating the decompressed AP mirror image file stored after the AC is started last time according to the inconsistent information in the second file and the first file if the first file and the second file are inconsistent; and if the first file is consistent with the second file, reserving the decompressed AP image file stored after the AC is started last time.
In a possible implementation manner, the update module is specifically configured to:
if the second file has redundant AP image file information, deleting an image file corresponding to the redundant AP image file information stored in the AC, wherein the redundant AP image file information is the AP image file information which is contained in the second file but not contained in the first file;
if the second file has missing AP mirror image file information, decompressing and storing an AP mirror image file corresponding to the missing AP mirror image file information, wherein the missing AP mirror image file information is the AP mirror image file information which is contained in the first file but not contained in the second file;
and if the AP mirror image file information stored for the target AP mirror image file in the first file and the second file is different, deleting the target AP mirror image file stored in the AC, and decompressing and storing the target AP mirror image file again.
In a possible implementation manner, the update module is further configured to update the second file according to the updated decompressed AP image file stored in the AC after updating the decompressed AP image file stored in the AC according to information that is inconsistent with the information in the first file in the second file.
In one possible implementation, the apparatus further includes:
a deleting module, configured to delete a decompressed AP image file stored in the AC if the AC has a version update;
the generating module is used for decompressing the specification list of the AC to generate a third file, wherein the specification list comprises AP mirror image file information of all APs supported by the current version of the AC;
the decompression module is used for decompressing and storing the AP mirror image file again;
the generation module is further configured to regenerate a fourth file according to the re-decompressed and stored AP image file, where the fourth file includes AP image file information of the AP image file decompressed in the starting process at this time and stored in the AC;
the judging module is further configured to judge whether the third file and the fourth file are consistent;
the update module is specifically further configured to:
if the fourth file has redundant AP image file information, deleting an image file corresponding to the redundant AP image file information stored in the AC, wherein the redundant image file information is the AP image file information which is contained in the fourth file but not contained in the third file;
if the fourth file has missing AP image file information, decompressing and storing an AP image file corresponding to the missing AP image file information, wherein the missing AP image file information is AP image file information which is contained in the third file but not contained in the fourth file;
and if the AP mirror image file information stored for the target AP mirror image file in the third file and the fourth file is different, deleting the target AP mirror image file stored in the AC, and decompressing and storing the target AP mirror image file again.
In a possible implementation manner, the AP image file information includes any one or more of a name, a version number, a compilation date, and a file size of the AP image file.
In a third aspect, an embodiment of the present application provides an AC, including: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the AC start-up method described in the first aspect is implemented.
In a fourth aspect, this application further provides a computer-readable storage medium, in which a computer program is stored, and when executed by a processor, the computer program implements the AC booting method described in the first aspect.
In a fifth aspect, embodiments of the present application further provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the AC booting method described in the first aspect.
By adopting the AC starting method provided by the embodiment of the application, in the AC restarting process, whether the version of the AC is updated or not can be judged, if the version of the AC is not updated, the information of the AP mirror image file supported by the AC is not changed, whether the first file and the second file are consistent or not can be judged, namely whether the AP mirror image file information of the AP supported by the current version of the AC is consistent with the AP mirror image file information of the decompressed AP mirror image file stored after the AC is started last time is judged, and if the AP mirror image file information is not consistent with the AP mirror image file information of the decompressed AP mirror image file stored after the AC is started last time, the decompressed AP mirror image file stored after the AC is started last time can be updated according to the information which is inconsistent with the first file in the second file; and if the AP image files are consistent, reserving the decompressed AP image files stored after the AC is started last time. That is, in the embodiment of the present application, if the AC is restarted but the version update does not occur, the AP image file information of the decompressed AP image file stored after the AC is started last time may be compared with the AP image file information of the AP supported by the current version of the AC. If the two are consistent, adjustment is not needed, if the two are not consistent, only the inconsistent content is adjusted, so that the two are consistent, the decompressed AP image files stored after the last startup are not required to be deleted completely, and the AP image files are decompressed again.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an AC starting method according to an embodiment of the present application;
fig. 2 is a flowchart of another AC starting method provided in the embodiment of the present application;
fig. 3 is a schematic structural diagram of an AC starting apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an AC according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the problem that the AC start speed is slow because the AC restarts each time the AP image file is deleted, and the AP image file is decompressed and stored again, an embodiment of the present application provides an AC start method, where the AC start method is executed by an AC, and as shown in fig. 1, the method includes:
s101, in the process of restarting the AC, judging whether the AC has version updating.
And S102, if the AC does not have version updating, judging whether the first file and the second file are consistent.
The first file is a specification list of the decompressed AC, the specification list comprises AP image file information of all APs supported by the current version of the AC, and the second file comprises AP image file information of the decompressed AP image file stored after the AC is started last time.
If the version of the AC is updated in the last time of starting, the AP image file is decompressed again in the last AC starting process, and if the decompressed AP image file stored in the AC is not updated after being decompressed again, the second file stores the AP image file information of the AP image file decompressed in the last AC starting process; if the decompressed AP image file stored in the AC is updated after the re-decompression, the second file stores the image file information of the decompressed AP image file finally stored in the AC after the updating is completed.
Or, if the version update does not occur in the last startup of the AC, the second file stores the AP image file information of the decompressed AP image file that is finally retained after the last startup is completed.
The first file is specifically a specification list of the decompressed AC, that is, AP image file information of all APs supported by the current AC version. The second file is an information summary extracted from the decompressed AP image file, that is, the AP image file information of the decompressed AP image file stored after the last startup is completed.
The AP image file information includes any one or more of a name, a version number, a compilation date, and a file size of the AP image file, and may further include other information capable of embodying a file characteristic.
The first file and the second file are in a consistent format for comparison. For example, the first file and the second file each store, in a table form, an AP image file name, a version number, a compilation date, and a file size corresponding to the AP image file.
Typically, the AP image file before decompression includes all AP image files supported by the current version of the AC.
And S103, if the first file is inconsistent with the second file, updating the decompressed AP mirror image file stored after the AC is started last time according to the inconsistent information in the second file and the first file.
Because the first file stores the information of the AP mirror image files of all the APs supported by the current version of the AC, if the first file is inconsistent with the second file, the decompressed AP mirror image file stored after the AC is started last time is updated according to the inconsistent information in the second file and the first file by taking the first file as a criterion.
Specifically, if the second file has the redundant AP image file information, the image file corresponding to the redundant AP image file information stored in the AC is deleted. The redundant AP image file information is the AP image file information which is contained in the second file but not contained in the first file.
And if the second file has the missing AP mirror image file information, decompressing and storing the AP mirror image file corresponding to the missing AP mirror image file information. The missing AP image file information is AP image file information that is included in the first file but not included in the second file.
And if the AP mirror image file information stored aiming at the target AP mirror image file in the first file and the second file is different, deleting the target AP mirror image file stored in the AC, and re-decompressing and storing the target AP mirror image file.
Illustratively, the first file includes: AP mirror image file information 1, AP mirror image file information 2 and AP mirror image file information 5.
The second file includes: AP mirror image file information 1, AP mirror image file information 2 and AP mirror image file information 6.
As can be seen from the comparison, if the second file lacks the AP mirror image file information 5, the mirror image file corresponding to the AP mirror image file information 5 can be searched from the mirror image file before decompression according to the AP mirror image file information 5, and the mirror image file is independently decompressed.
In addition, the second file also has redundant AP image file information 6, and an image file corresponding to the AP image file information 6 stored in the AC may be deleted.
For another example, if the version number of the AP image file information 1 included in the first file is different from the version number of the AP image file information 1 included in the second file, the image file corresponding to the AP image file information 1 stored in the AC may be deleted, and the image file corresponding to the AP image file information 1 may be decompressed and stored.
It will be appreciated that after updating the decompressed AP image file, the second file may be updated based on the decompressed AP image file stored in the updated AC. After the update is completed, the first file is consistent with the second file.
And S104, if the first file is consistent with the second file, reserving the decompressed AP image file stored after the AC is started last time.
By adopting the AC starting method provided by the embodiment of the application, in the AC process, whether the version of the AC is updated or not can be judged, if the version of the AC is not updated, the information of the AP mirror image file supported by the AC is not changed, whether the first file and the second file are consistent or not can be judged, namely whether the AP mirror image file information of the AP supported by the current version of the AC is consistent with the AP mirror image file information of the decompressed AP mirror image file stored after the AC is started last time or not is judged, and if the AP mirror image file information is not consistent, the decompressed AP mirror image file stored after the AC is started last time can be updated according to the information which is inconsistent with the information in the first file in the second file; and if the AP image files are consistent, reserving the decompressed AP image files stored after the AC is started last time. That is, in the embodiment of the present application, if the AC is restarted but the version update does not occur, the AP image file information of the decompressed AP image file stored after the AC is started last time may be compared with the AP image file information of the AP supported by the current version of the AC. If the two are consistent, adjustment is not needed, if the two are not consistent, only the inconsistent content is adjusted, so that the two are consistent, the decompressed AP image files stored after the last startup are not required to be deleted completely, and the AP image files are decompressed again.
In an embodiment, after the step S101, if the determination result is that the version update occurs to the AC, as shown in fig. 2, the method further includes: S105-S108.
And S105, if the version of the AC is updated, deleting the decompressed AP image file stored in the AC.
And S106, decompressing the AC specification list to generate a third file.
Wherein, the specification list comprises AP image file information of all APs supported by the current version of the AC.
And S107, re-decompressing and storing the AP image file.
And S108, generating a fourth file according to the re-decompressed and stored AP image file.
And the fourth file comprises AP image file information of the AP image file decompressed in the starting process of the time and stored by the AC.
It is understood that, when the AC is restarted next time, the method may still be performed according to the method flow shown in fig. 1, and if the AC is restarted next time and a version update occurs, the third file may be used as the first file, and the fourth file may be used as the second file.
It should be noted that in the embodiment of the present application, S107 needs to be executed before S108, but the execution order between S106 and S107-S108 is not limited. For example, S106 and S107 may be performed in parallel, and then S108 is performed; or S107 is executed first, and then S106 and S108 can be executed in parallel, and the specific sequence is not illustrated here, and S106 is executed first and then S107-S108 are executed in fig. 1 as an example.
After the AC generates the third file and the fourth file, it may be determined whether the third file and the fourth file are consistent, and if not, the AP image file decompressed in the update process stored in the AC is updated according to the information in the fourth file that is inconsistent with the information in the third file. This may prevent the problem of the AC storing the wrong AP image file due to an AP image file decompression error.
Specifically, if the fourth file has the redundant AP image file information, the image file corresponding to the redundant AP image file information stored in the AC is deleted. The redundant image file information is AP image file information that is included in the fourth file but not included in the third file.
And if the fourth file has the missing AP mirror image file information, decompressing and storing the AP mirror image file corresponding to the missing AP mirror image file information. The missing AP image information is AP image information that is included in the third file but not included in the fourth file.
And if the AP mirror image file information stored aiming at the target AP mirror image file in the third file and the fourth file is different, deleting the target AP mirror image file stored in the AC, and re-decompressing and storing the target AP mirror image file.
It can be understood that, after the version of the AC is updated, the information of the AP image file supported by the new version generally changes, so that the specification list of the AC can be decompressed again after the version is updated, the third file is generated, the AP image file is decompressed again, the summary information of the decompressed AP image file is extracted, and the fourth file is generated, so that when the AC is restarted but the version is not updated, the AC can store the correct decompressed AP image file by comparing the third file with the fourth file, the decompression process of the AP image file is not required to be executed again, and the restart speed of the AC can be accelerated.
Corresponding to the above method embodiment, an embodiment of the present application further provides an AC starting apparatus, which is applied to an AC, and as shown in fig. 3, the apparatus includes: a judging module 301 and an updating module 302.
The judging module 301 is configured to judge whether the version of the access controller AC is updated in the restart process of the AC; and if the version of the AC is not updated, judging whether the first file is consistent with the second file, wherein the first file is a specification list of the decompressed AC, the specification list comprises AP mirror image file information of all AP supported by the current version of the AC, and the second file comprises AP mirror image file information of the decompressed AP mirror image file stored after the AC is started last time.
The AP image file information comprises any one or more of the name, the version number, the compiling date and the file size of the AP image file.
An updating module 302, configured to update, if the determining module 301 determines that the first file and the second file are inconsistent, the decompressed AP image file stored after the AC is started last time according to information that is inconsistent with the first file in the second file; and if the first file is consistent with the second file, reserving the decompressed AP image file stored after the AC is started last time.
Optionally, the updating module 302 is specifically configured to:
if the second file has redundant AP image file information, deleting an image file corresponding to the redundant AP image file information stored in the AC, wherein the redundant AP image file information is the AP image file information which is contained in the second file but not contained in the first file;
if the second file has the missing AP mirror image file information, decompressing and storing the AP mirror image file corresponding to the missing AP mirror image file information, wherein the missing AP mirror image file information is the AP mirror image file information which is contained in the first file but not contained in the second file;
and if the AP mirror image file information stored aiming at the target AP mirror image file in the first file and the second file is different, deleting the target AP mirror image file stored in the AC, and re-decompressing and storing the target AP mirror image file.
Optionally, the updating module 302 is further configured to update the second file according to the decompressed AP image file stored in the updated AC after updating the decompressed AP image file stored in the AC according to the information in the second file that is inconsistent with the information in the first file.
Optionally, the apparatus further comprises: the device comprises a deleting module, a decompressing module and a generating module.
The deletion module is used for deleting the decompressed AP image file stored in the AC if the AC has version update;
the generating module is used for decompressing a specification list of the AC to generate a third file, wherein the specification list comprises AP mirror image file information of all APs supported by the current version of the AC;
the decompression module is used for decompressing and storing the AP mirror image file again;
and the generation module is further used for generating a fourth file according to the re-decompressed and stored AP image file, wherein the fourth file comprises the AP image file information of the AP image file decompressed in the starting process at this time and stored in the AC.
The judging module 301 is further configured to judge whether the third file and the fourth file are consistent;
the update module 302 is further specifically configured to:
if the fourth file has redundant AP image file information, deleting an image file corresponding to the redundant AP image file information stored in the AC, wherein the redundant image file information is the AP image file information which is contained in the fourth file but not contained in the third file;
if the fourth file has the missing AP mirror image file information, decompressing and storing the AP mirror image file corresponding to the missing AP mirror image file information, wherein the missing AP mirror image file information is the AP mirror image file information which is contained in the third file but not contained in the fourth file;
and if the AP mirror image file information stored aiming at the target AP mirror image file in the third file and the fourth file is different, deleting the target AP mirror image file stored in the AC, and re-decompressing and storing the target AP mirror image file.
The embodiment of the present application further provides an AC, as shown in fig. 4, which includes a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication via the communication bus 404,
a memory 403 for storing a computer program;
the processor 401, when executing the program stored in the memory 403, implements the steps performed by the AC in the above method embodiments.
The communication bus mentioned in the above AC may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the AC and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also 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, discrete hardware components.
In yet another embodiment provided by the present application, there is also provided a computer readable storage medium having a computer program stored therein, the computer program, when executed by a processor, implementing the steps of any of the AC startup methods described above.
In yet another embodiment provided herein, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the AC boot methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, 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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (8)

1. An AC startup method, comprising:
in the restarting process of an Access Controller (AC), judging whether the AC has version updating;
if the version of the AC is not updated, judging whether a first file and a second file are consistent, wherein the first file is a specification list of the decompressed AC, the specification list comprises AP mirror image file information of all Access Points (APs) supported by the current version of the AC, and the second file comprises AP mirror image file information of the decompressed AP mirror image file stored after the AC is started last time;
if the first file is inconsistent with the second file, updating the decompressed AP mirror image file stored after the AC is started last time according to the inconsistent information in the second file and the first file;
if the first file is consistent with the second file, reserving a decompressed AP mirror image file stored after the AC is started last time;
the updating the decompressed image file stored in the AC according to the information in the second file that is inconsistent with the information in the first file includes:
if the second file has redundant AP image file information, deleting an image file corresponding to the redundant AP image file information stored in the AC, wherein the redundant AP image file information is the AP image file information which is contained in the second file but not contained in the first file;
if the second file has missing AP mirror image file information, decompressing and storing an AP mirror image file corresponding to the missing AP mirror image file information, wherein the missing AP mirror image file information is the AP mirror image file information which is contained in the first file but not contained in the second file;
and if the AP mirror image file information stored for the target AP mirror image file in the first file and the second file is different, deleting the target AP mirror image file stored in the AC, and decompressing and storing the target AP mirror image file again.
2. The method of claim 1, wherein after updating the decompressed AP image file stored in the AC based on the information in the second file that is inconsistent with the information in the first file, the method further comprises:
and updating the second file according to the updated decompressed AP image file stored in the AC.
3. The method of claim 1, wherein after the determining whether the AC has a version update, the method further comprises:
if the AC is updated, deleting the decompressed AP image file stored in the AC;
decompressing the specification list of the AC to generate a third file, wherein the specification list comprises AP mirror image file information of all APs supported by the current version of the AC;
decompressing and storing the AP mirror image file again;
generating a fourth file according to the re-decompressed and stored AP image file, wherein the fourth file comprises AP image file information of the AP image file decompressed in the starting process at this time and stored in the AC;
judging whether the third file and the fourth file are consistent;
if the fourth file has redundant AP image file information, deleting an image file corresponding to the redundant AP image file information stored in the AC, wherein the redundant image file information is the AP image file information which is contained in the fourth file but not contained in the third file;
if the fourth file has missing AP image file information, decompressing and storing an AP image file corresponding to the missing AP image file information, wherein the missing AP image file information is AP image file information which is contained in the third file but not contained in the fourth file;
and if the AP mirror image file information stored for the target AP mirror image file in the third file and the fourth file is different, deleting the target AP mirror image file stored in the AC, and decompressing and storing the target AP mirror image file again.
4. An AC starting device, comprising:
the judging module is used for judging whether the AC is updated in version or not in the restarting process of the access controller AC; if the version of the AC is not updated, judging whether a first file and a second file are consistent, wherein the first file is a specification list of the decompressed AC, the specification list comprises AP mirror image file information of all Access Points (APs) supported by the current version of the AC, and the second file comprises AP mirror image file information of the decompressed AP mirror image file stored after the AC is started last time;
the updating module is used for updating the decompressed AP mirror image file stored after the AC is started last time according to the inconsistent information in the second file and the first file if the first file and the second file are inconsistent; if the first file is consistent with the second file, reserving a decompressed AP mirror image file stored after the AC is started last time;
the update module is specifically configured to:
if the second file has redundant AP image file information, deleting an image file corresponding to the redundant AP image file information stored in the AC, wherein the redundant AP image file information is the AP image file information which is contained in the second file but not contained in the first file;
if the second file has missing AP mirror image file information, decompressing and storing an AP mirror image file corresponding to the missing AP mirror image file information, wherein the missing AP mirror image file information is the AP mirror image file information which is contained in the first file but not contained in the second file;
and if the AP mirror image file information stored for the target AP mirror image file in the first file and the second file is different, deleting the target AP mirror image file stored in the AC, and decompressing and storing the target AP mirror image file again.
5. The apparatus of claim 4,
the updating module is further configured to update the second file according to the updated decompressed AP image file stored in the AC after the decompressed AP image file stored in the AC is updated according to the information in the second file that is inconsistent with the information in the first file.
6. The apparatus of claim 4, further comprising:
a deleting module, configured to delete a decompressed AP image file stored in the AC if the AC has a version update;
the generating module is used for decompressing the specification list of the AC to generate a third file, wherein the specification list comprises AP mirror image file information of all APs supported by the current version of the AC;
the decompression module is used for decompressing and storing the AP mirror image file again;
the generation module is further configured to generate a fourth file according to the re-decompressed and stored AP image file, where the fourth file includes AP image file information of the AP image file decompressed in the starting process at this time and stored in the AC;
the judging module is further configured to judge whether the third file and the fourth file are consistent;
the update module is specifically further configured to:
if the fourth file has redundant AP image file information, deleting an image file corresponding to the redundant AP image file information stored in the AC, wherein the redundant image file information is the AP image file information which is contained in the fourth file but not contained in the third file;
if the fourth file has missing AP image file information, decompressing and storing an AP image file corresponding to the missing AP image file information, wherein the missing AP image file information is AP image file information which is contained in the third file but not contained in the fourth file;
and if the AP mirror image file information stored for the target AP mirror image file in the third file and the fourth file is different, deleting the target AP mirror image file stored in the AC, and decompressing and storing the target AP mirror image file again.
7. An AC comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 3.
8. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: carrying out the method steps of any one of claims 1 to 3.
CN201910209068.3A 2019-03-19 2019-03-19 AC starting method and device Active CN109996262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910209068.3A CN109996262B (en) 2019-03-19 2019-03-19 AC starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910209068.3A CN109996262B (en) 2019-03-19 2019-03-19 AC starting method and device

Publications (2)

Publication Number Publication Date
CN109996262A CN109996262A (en) 2019-07-09
CN109996262B true CN109996262B (en) 2022-04-22

Family

ID=67129111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910209068.3A Active CN109996262B (en) 2019-03-19 2019-03-19 AC starting method and device

Country Status (1)

Country Link
CN (1) CN109996262B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547245A (en) * 2017-05-27 2018-01-05 新华三技术有限公司 A kind of version upgrading method and device
CN109189480A (en) * 2018-07-02 2019-01-11 新华三技术有限公司成都分公司 File system starts method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327519A (en) * 2013-07-11 2013-09-25 成都西加云杉科技有限公司 AP (Access Point) and system based AP and AC (AP Controller) architecture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547245A (en) * 2017-05-27 2018-01-05 新华三技术有限公司 A kind of version upgrading method and device
CN109189480A (en) * 2018-07-02 2019-01-11 新华三技术有限公司成都分公司 File system starts method and device

Also Published As

Publication number Publication date
CN109996262A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN110058873B (en) Application page updating method, device, equipment and storage medium
US9043778B2 (en) Method and system for upgrading software
JP2021002317A (en) Method, apparatus, device and storage medium for upgrading application
CN110162429B (en) System repair method, server and storage medium
CN110908681A (en) Method and device for upgrading software
WO2019161620A1 (en) Application dependency update method, terminal and device, and storage medium
CN108664255B (en) Software upgrading method and device
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN110750286A (en) Management method, device, system, equipment and medium for upgrading Mbn through OTA
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
WO2016074460A1 (en) Data processing method and device
WO2019041891A1 (en) Method and device for generating upgrade package
CN109996262B (en) AC starting method and device
WO2017036197A1 (en) Method and device for managing network element model
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN110806888A (en) Application program upgrading method and device and electronic equipment
CN110955460A (en) Service process starting method and device, electronic equipment and storage medium
CN115421764A (en) Method, device, equipment and storage medium for identifying module to be upgraded
CN115729590A (en) Service deployment method, device, equipment and computer readable storage medium
CN112100479A (en) Application access method and device, electronic equipment and storage medium
CN112000354A (en) Version information updating method, version information updating device, version information updating equipment and storage medium
CN114968963A (en) File overwriting method and device and electronic equipment
CN111913733A (en) Method and device for making automatic upgrade package, computer equipment and storage medium
JP2018197993A (en) Terminal device, server device, control program for terminal device, control method for server device, and system
US11445036B1 (en) Cluster management method and apparatus, electronic device and storage medium

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230609

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.