CN110474793A - A kind of upgrade method and device of the network equipment - Google Patents
A kind of upgrade method and device of the network equipment Download PDFInfo
- Publication number
- CN110474793A CN110474793A CN201910619954.3A CN201910619954A CN110474793A CN 110474793 A CN110474793 A CN 110474793A CN 201910619954 A CN201910619954 A CN 201910619954A CN 110474793 A CN110474793 A CN 110474793A
- Authority
- CN
- China
- Prior art keywords
- upgrade
- address
- title
- server
- network equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the present invention provides the upgrade method and device of a kind of network equipment.This method comprises: after the corresponding upgrade file of upgrade server downloading software to be upgraded, the address of upgrade server and the title of upgrade file are saved in environmental variance, wherein environmental variance is not belonging to the main program subregion of the network equipment for the addressable environmental variance of bootstrap and environmental variance subregion of the network equipment;If upgrading failure obtains the address of upgrade server and the title of upgrade file under bootstrap guidance from environmental variance;Upgrade file corresponding with the title of upgrade file is reacquired according to the address of upgrade server;Under bootstrap guidance, the corresponding software to be upgraded of installation upgrade file.The upgrade method of the network equipment provided in an embodiment of the present invention can be restored under bootstrap automatically if escalation process exception occurs and upgrading is caused to fail, improve the reliability of upgrading network equipment, reduce network operation cost.
Description
Technical field
The present embodiments relate to fields of communication technology, and in particular to a kind of upgrade method and device of the network equipment.
Background technique
In actual use, it is often necessary to Embedded Network Device is upgraded, and it is unsuccessfully also unavoidable for upgrading
, the solution for Embedded Network Device upgrading reliability has following several at present:
1, equipment Area-Specific Archive method
The flash memory FLASH subregion of equipment is usually divided into two parts by such method, and one is main partition, and one is backup point
Area, two subregions have the master program file that can guarantee equipment trouble-free operation.The stage of FLASH is write with a brush dipped in Chinese ink in device upgrade, only
Equipment main partition is write with a brush dipped in Chinese ink, causes to write with a brush dipped in Chinese ink failure if there is abnormal, is unable to operate normally the program in main partition, then pass through backup point
Area enters equipment main program, then is upgraded under the main program of backup subregion again.
2, upgrade file preservation method
Such method is not directly write with a brush dipped in Chinese ink program file on FLASH under main program in device upgrade, but will rise
Grade program file is saved in an independent subregion of FLASH.After the completion of upgrade file downloading, the file information is verified,
If file is complete, complete machine is restarted under bootstrap BOOT, then writes with a brush dipped in Chinese ink program file in FLASH at BOOT.Make
In this way, stage appearance exception is saved if it is in main program downloading upgrade file, itself does not influence the operation of main program,
Carry out device upgrade can be re-downloaded;There is exception if it is the FLASH stage is write with a brush dipped in Chinese ink at BOOT, BOOT can not normal boot
Into main program, but the upgrade file saved is downloaded before itself not influencing, it can be again again from point for saving upgrade file
It is read in area, writes with a brush dipped in Chinese ink upgrading again.
3, the automatic degree-raising approach of BOOT
Such method has configured the upgrade file of equipment, equipment firstly the need of network administrator on file server manually
In the starting vectoring phase, IP address is applied for by boot protocol (Bootstrap Protocol, BOOTP) at BOOT,
It is downloaded and is risen to file server by Simple File Transfer Protocol (Trivial File Transfer Protocol, TFTP) again
Grade file, upgrade file carry out main program upgrading after downloading successfully at BOOT again.Because entire escalation process is all at BOOT
It carries out, even if downloading or upgrading failure, program upgrading can be also re-requested by BOOT, is not in that equipment can not start
Problem.
Above-mentioned 3 kinds of schemes, first two are all the guarantees for carrying out upgrading reliability using the additional space FLASH, and for
The network equipment, usually because FLASH size is limited on hardware the considerations of equipment cost, it cannot be guaranteed that there is exceptional space progress
The backup of main program subregion or upgrade file.And the 3rd kind of method, directly allow device upgrade all to pass through simple files at BOOT
Transport protocol carries out, and starts every time under BOOT, requires first to obtain address, reattempt connection upgrade server, judges whether to need
Device upgrade is wanted, the time for causing equipment normally to launch into main program becomes more long.
Summary of the invention
For the defects in the prior art, the embodiment of the invention provides a kind of upgrade method of network equipment and devices.
In a first aspect, the embodiment of the present invention provides a kind of upgrade method of network equipment, comprising:
After the corresponding upgrade file of upgrade server downloading software to be upgraded, the upgrading is saved in environmental variance
The title of the address of server and the upgrade file, wherein the environmental variance is addressable for the bootstrap of the network equipment
Environmental variance and the environmental variance subregion are not belonging to the main program subregion of the network equipment;
If upgrading failure obtains the upgrade server under bootstrap guidance from the environmental variance
Address and the upgrade file title;
Upgrade file corresponding with the title of the upgrade file is reacquired according to the address of the upgrade server;
Under bootstrap guidance, the corresponding software to be upgraded of the upgrade file is installed.
As the above method optionally if the address of the network equipment is static address, is protected in the environmental variance
Deposit the address of the upgrade server, the title of the upgrade file and the static address;
Correspondingly, described under bootstrap guidance, the upgrade server is obtained from the environmental variance
The title of address and the upgrade file, comprising:
Under bootstrap guidance, the address of the upgrade server, the liter are obtained from the environmental variance
The title of grade file and the static address;
Correspondingly, described corresponding with the title of the upgrade file according to the reacquisition of the address of the upgrade server
Upgrade file, comprising:
Establish connection according to the address of the static address and the upgrade server, according to the network equipment with it is described
Communication protocol between upgrade server reacquires upgrade file corresponding with the title of the upgrade file.
As the above method optionally if the address of the network equipment is dynamic address, is guided in the bootstrap
Under, the address of the upgrade server and the title of the upgrade file are obtained from the environmental variance, further includes:
The dynamic address of the network equipment is obtained by boot protocol;
Correspondingly, described corresponding with the title of the upgrade file according to the reacquisition of the address of the upgrade server
Upgrade file, comprising:
Establish connection according to the address of the dynamic address and the upgrade server, according to the network equipment with it is described
Communication protocol between upgrade server reacquires upgrade file corresponding with the title of the upgrade file.
Such as the above method, optionally, further includes:
After downloading the upgrade file, the upgrading that last time upgrading whether has been saved in the environmental variance is judged
The address of server and the title of upgrade file;
If so, deleting the address of the upgrade server for the last time upgrading being saved and the title of upgrade file;
The address of the upgrade server of this upgrading and the title of upgrade file are saved in the environmental variance.
Such as the above method, optionally, further includes:
If the upgrading network equipment success, deletes the ground for the upgrade server being saved from the environmental variance
The title of location and upgrade file.
Such as the above method, optionally, if the network equipment is wireless access points, the upgrade server is
Through the radio network controller for opening Simple File Transfer Protocol server.
Second aspect, the embodiment of the present invention provide a kind of update device of network equipment, comprising:
Preserving module, after downloading the corresponding upgrade file of software to be upgraded from upgrade server, in environmental variance
The title of the middle address for saving the upgrade server and the upgrade file, wherein the environmental variance is drawing for the network equipment
The addressable environmental variance of lead sequence and the environmental variance subregion are not belonging to the main program subregion of the network equipment;
Module is obtained, if under bootstrap guidance, institute is obtained from the environmental variance for upgrading failure
State the address of upgrade server and the title of the upgrade file;
Download module is opposite with the title of the upgrade file for being reacquired according to the address of the upgrade server
The upgrade file answered;
Module is installed, for installing the corresponding software to be upgraded of the upgrade file under bootstrap guidance.
Such as above-mentioned apparatus, optionally, if the address of the network equipment is static address, the preserving module is also used to
The static address is saved in environmental variance;
Correspondingly, the acquisition module is specifically used for:
Under bootstrap guidance, the address of the upgrade server, the liter are obtained from the environmental variance
The title of grade file and the static address;
Correspondingly, the download module is specifically used for:
Establish connection according to the address of the static address and the upgrade server, according to the network equipment with it is described
Communication protocol between upgrade server reacquires upgrade file corresponding with the title of the upgrade file.
Such as above-mentioned apparatus, optionally, if the address of the network equipment is dynamic address, the acquisition module is also used
In:
The dynamic address of the network equipment is obtained by boot protocol;
Correspondingly, the download module is specifically used for:
Establish connection according to the address of the dynamic address and the upgrade server, according to the network equipment with it is described
Communication protocol between upgrade server reacquires upgrade file corresponding with the title of the upgrade file.
Such as above-mentioned apparatus, optionally, further includes:
Judgment module, for judging whether saved in the environmental variance after downloading the upgrade file
The address of the upgrade server of last time upgrading and the title of upgrade file;
First removing module, if the address of the upgrade server for having saved last time upgrading in the environmental variance
With the title of upgrade file, then the address of the upgrade server for the last time upgrading being saved and the title of upgrade file are deleted;
Correspondingly, the preserving module is specifically used for saving the upgrade server of this upgrading in the environmental variance
The title of address and upgrade file.
Such as above-mentioned apparatus, optionally, further includes:
Second removing module, if deleting and having protected from the environmental variance for upgrading network equipment success
The address for the upgrade server deposited and the title of upgrade file.
The upgrade method of the network equipment provided in an embodiment of the present invention becomes before upgrading in the addressable environment of bootstrap
Upgrade file title and upgrade server address information are saved in amount, if there is exception and upgrading is caused to fail in escalation process,
It can restore under bootstrap automatically, not need network administrator and restore manually, improve the reliability of upgrading network equipment,
Reduce network operation cost.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the upgrade method flow diagram of the network equipment provided in an embodiment of the present invention;
Fig. 2 is the upgrade method flow diagram of wireless access point AP provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the update device of the network equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is the upgrade method flow diagram of the network equipment provided in an embodiment of the present invention, as shown in Figure 1, this method
Include:
Step S11, it after the corresponding upgrade file of upgrade server downloading software to be upgraded, is saved in environmental variance
The title of the address of the upgrade server and the upgrade file, wherein the environmental variance is the bootstrap of the network equipment
Addressable environmental variance and the environmental variance subregion are not belonging to the main program subregion of the network equipment;
Specifically, for needing to download the network equipment that file is upgraded by upgrade server, when network is set
After the standby foundation communication connection with upgrade server, the software version number of operation, upgrade server can be reported to upgrade server
Judge whether the software version of current network device operation and the software version that upgrade server saves are consistent, if inconsistent,
The network device software version number saved on upgrade server is transmitted to network equipment end by message, the network equipment compares liter
The software version number and the current software version number of the machine that grade server issues, if version is inconsistent, to upgrade server
Request software version downloading that software program can be write with a brush dipped in Chinese ink to the flash memory of equipment after the network equipment downloads complete software version
On FLASH, equipment restarts after the completion of writing with a brush dipped in Chinese ink, if software program writes with a brush dipped in Chinese ink success, can run and want with upgrade server
Seek consistent software version.
But during actual upgrading network equipment, in fact it could happen that various fortuitous events, such as upgrading network equipment
Software version occurs the exceptions such as equipment operation crash, device powers down when writing with a brush dipped in Chinese ink FLASH, will lead to network device software upgrading and loses
It loses, network equipment main program is unable to operate normally, and cannot naturally also be upgraded again to upgrade server request version again.
In order to solve this problem, the application downloads the corresponding upgrading of software to be upgraded from upgrade server in the network equipment
Before being upgraded after file, the title of the address of upgrade server and upgrade file is saved in bootstrap by the network equipment
In the addressable environmental variance of BOOT, the subregion of the environmental variance is not belonging to the main program subregion of the network equipment, to upgrade
When unsuccessfully cannot be introduced into main program only can run bootstrap, also available address and upgrade file to upgrade server
Title.Upgrading is caused to fail if exception occurs in escalation process, the network equipment can restore at BOOT automatically, not need network
Administrator restores manually.
If step S12, upgrading failure, under bootstrap guidance, the liter is obtained from the environmental variance
The grade address of server and the title of the upgrade file;
Specifically, after the network equipment saves upgrade server address and upgrade file title in environmental variance, start
Upgrading will lead to upgrading failure if exception occurs in escalation process, and the network equipment is restarted, first in bootstrap after restarting
It under guidance, needs to enter main program, since upgrading fails, main program can not be normally entered, at this point, in the guidance of bootstrap
Under, the network equipment can obtain address and the liter of the upgrade server being saved from the addressable environmental variance of bootstrap
The title of grade file, in this way, the network equipment can re-request software version downloading under bootstrap.
Step S13, it is reacquired according to the address of the upgrade server corresponding with the title of the upgrade file
Upgrade file;
Step S14, under bootstrap guidance, the corresponding software to be upgraded of the upgrade file is installed.
Specifically, it after the address of network equipment acquisition upgrade server, can be attached with upgrade server, then
The title that upgrade file is sent to upgrade server re-downloads upgrade file, after downloading is completed, guides in bootstrap
Under, the corresponding software to be upgraded of installation upgrade file.After upgrading successfully, the network equipment is restarted, at this time drawing in bootstrap
It leads down, the network equipment can normally enter main program, re-establish and connect with upgrade server, protect in upgrade server at this time
The software version deposited is consistent with the software version that the network equipment saves.
The upgrade method of the network equipment provided in an embodiment of the present invention becomes before upgrading in the addressable environment of bootstrap
Upgrade file title and upgrade server address information are saved in amount, if there is exception and upgrading is caused to fail in escalation process,
It can restore under bootstrap automatically, not need network administrator and restore manually, improve the reliability of upgrading network equipment,
Reduce network operation cost.
On the basis of the above embodiments, further, if the address of the network equipment is static address, described
The address of the upgrade server, the title of the upgrade file and the static address are saved in environmental variance;
Correspondingly, described under bootstrap guidance, the upgrade server is obtained from the environmental variance
The title of address and the upgrade file, comprising:
Under bootstrap guidance, the address of the upgrade server, the liter are obtained from the environmental variance
The title of grade file and the static address;
Correspondingly, described corresponding with the title of the upgrade file according to the reacquisition of the address of the upgrade server
Upgrade file, comprising:
Establish connection according to the address of the static address and the upgrade server, according to the network equipment with it is described
Communication protocol between upgrade server reacquires upgrade file corresponding with the title of the upgrade file.
Specifically, it if the static address that the network equipment uses, such as is configured using static ip address, then will upgrade clothes
It is engaged in the address of device and when the title of upgrade file is saved in bootstrap addressable environmental variance, it can also be the network equipment
Static address, such as static ip address and default gateway are also written in environmental variance.After upgrading network equipment failure, guiding
Under the guidance of program, the address of upgrade server, the title and the machine static address of upgrade file are obtained from environmental variance, so
It is established and is communicated to connect according to the address of the machine static address and upgrade server afterwards, obtained again according to communication protocol between the two
Take upgrade file corresponding with the title of upgrade file.Communication protocol includes but is not limited to: File Transfer Protocol (File
Transfer Protocol, FTP), Simple File Transfer Protocol (Trivial File Transfer Protocol, TFTP),
Hypertext transfer protocol (HyperText Transfer Protocol, HTTP) etc..
On the basis of the various embodiments described above, further, if the address of the network equipment is dynamic address, in institute
It states under bootstrap guidance, the address of the upgrade server and the name of the upgrade file is obtained from the environmental variance
Claim, further includes:
The dynamic address of the network equipment is obtained by boot protocol;
Correspondingly, described corresponding with the title of the upgrade file according to the reacquisition of the address of the upgrade server
Upgrade file, comprising:
Establish connection according to the address of the dynamic address and the upgrade server, according to the network equipment with it is described
Communication protocol between upgrade server reacquires upgrade file corresponding with the title of the upgrade file.
Specifically, if the dynamic address that the network equipment uses, such as dynamic host configuration protocol (Dynamic is used
Host Configuration Protocol, DHCP) configuration address, then on the ground for obtaining upgrade server from environmental variance
When the title of location and upgrade file, the dynamic address of the network equipment can also be obtained by boot protocol.Work as the network equipment
After upgrading failure, under the guidance of bootstrap, the address of upgrade server, the title of upgrade file are obtained from environmental variance
With the machine dynamic address, then according to the address of the machine dynamic address and upgrade server establish communicate to connect, according to the two it
Between communication protocol reacquire corresponding with the title of upgrade file upgrade file.Communication protocol includes but is not limited to:
FTP, TFTP, HTTP etc..
The upgrade method of the network equipment provided in an embodiment of the present invention becomes before upgrading in the addressable environment of bootstrap
Upgrade file title and upgrade server address information are saved in amount, if there is exception and upgrading is caused to fail in escalation process,
It is established and is communicated to connect according to the address of the network equipment and upgrade server, upgrade file is reacquired according to communication protocol, it can
Automatically restore under bootstrap, do not need network administrator and restore manually, further improve the reliable of upgrading network equipment
Property, reduce network operation cost.
On the basis of the various embodiments described above, further, this method further include:
After downloading the upgrade file, the upgrading that last time upgrading whether has been saved in the environmental variance is judged
The address of server and the title of upgrade file;
If so, deleting the address of the upgrade server for the last time upgrading being saved and the title of upgrade file;
The address of the upgrade server of this upgrading and the title of upgrade file are saved in the environmental variance.
Specifically, the network equipment is written in downloading upgrade file and after judging upgrade file inerrancy to environmental variance
Before the address of upgrade server and the title of upgrade file, first determine whether last time upgrading whether has been saved in environmental variance
Upgrade server address and upgrade file title, if stored in environmental variance last time upgrading upgrade service
The address of device and the title of upgrade file, then delete these information, and the upgrade service of this upgrading is saved in environmental variance
The address of device and the title of upgrade file, with keep upgrading software version number and upgrade server software version number it is consistent
Property.
On the basis of the various embodiments described above, further, this method further include:
If the upgrading network equipment success, deletes the ground for the upgrade server being saved from the environmental variance
The title of location and upgrade file.
Specifically, in order to keep upgrading software version number and upgrade server software version number consistency, may be used also
Main program can be normally entered after judging upgrading network equipment success, such as after upgrading, then deleted from environmental variance
The address for the upgrade server being saved and the title of upgrade file, in this way, when next time needs to upgrade, directly in environmental variance
The title of the middle address for saving current upgrade server and upgrade file.
It is further, described if the network equipment is wireless access points on the basis of the various embodiments described above
Upgrade server is the radio network controller for having been switched on Simple File Transfer Protocol server.
Specifically, WLAN (WirelessLocalAreaNetworks, WLAN) technology is from single wireless
Access point (AccessPoint, AP) is evolved to centered on radio network controller (AccessController, AC), is passed through
The thin AP architecture of all AP of the cable network centralized control second line of a couplet.In the thin AP network architecture, it can connect into hundred under an AC
Thousands of AP, AC are controlled and are configured (ControlAndProvisioningofWi by special communication protocol wireless access point
RelessAccessPoints, CAPWAP) consultative management and configuration AP.In actual use, it is often necessary to AP is upgraded,
And upgrading issuing for configuration is also that unified configuration and management are carried out by AC.
But in actual AP escalation process, in fact it could happen that various fortuitous events, such as AP updating software release are being brushed
It is abnormal to occur equipment operation crash, device powers down etc. when writing FLASH, will lead to AP software upgrading failure, AP main program can not be just
Often operation, cannot naturally also be upgraded again to AC request version again by CAPWAP agreement.Network management is generally required at this time
Member carries out manual reversion to the AP equipment of upgrading failure, under bootstrap it is lower by Simple File Transfer Protocol TFTP or its
His transmission mode re-downloads equipment main program and restores.But under thin AP architecture network, while the AP upgraded has on hundred
Thousand, and upgrading unsuccessfully is also to can hardly be avoided, network can be greatly increased by carrying out manual reversion to the AP equipment of upgrading failure
Maintenance cost.In order to solve this problem, before AC issues upgrade file, Simple File Transfer Protocol tftp server is opened
Function, such AC can serve as upgrade server, the upgrading network equipment method provided through the invention, to upgrading failure
AP is upgraded again.
Fig. 2 is the upgrade method flow diagram of wireless access point AP provided in an embodiment of the present invention, as shown in Fig. 2, should
Method includes:
Step S201, it imports on AP upgrade file to AC equipment, default opens tftp server functionality on AC;
Step S202, after AP accesses AC, the software version number of the machine is reported;
Step S203, the software version number that AC judgement reports and the software version number itself stored are inconsistent, need to AP
Upgraded, AP upgrading configuration is carried out on AC, AP upgrade file title is handed down to AP by message element by AC, and AP passes through
CAPWAP tunnel downloads AP upgrade file, can be upgraded by distributed upgrading or multicast and broadcast by CAPWAP tunnel upgrading
Raising efficiency;
Step S204, AP downloads upgrade file and terminates, and the complete inerrancy of upgrade file, is ready for upgrading;
Step S205, the addressable environmental variance of BOOT, the environmental variance is written in the address of AC, upgrade file title by AP
Partitions of file is not belonging to main program subregion, and not upgraded by main program influences.If AP is configured using static ip address, by AP's
Environmental variance is also written in static ip address and default gateway;
Step S206, AP judges whether itself upgrades successfully, no to then follow the steps if then going to step S210
S207;
Step S207, AP escalation process occurs abnormal, and upgrading is caused to fail, and AP equipment is restarted, and AP is since upgrading fails, nothing
Method normally enters main program, and automatic upgrading is entered at BOOT;
Step S208, local IP address is got by BOOTP (Bootstrap Protocol, boot protocol),
The environmental variance information that AP is saved before upgrading is read, the AP upgrade file name that the IP address and the end AC for getting AC save
Claim;
Step S209, according to the information of above-mentioned acquisition, by TFTP agreement, AP upgrade file is downloaded to AC;
Step S210, AP upgrade file downloading is completed, and starts upgrading, device upgrade success under BOOT;It is set after upgrading successfully
It is standby to restart, main program is normally entered by BOOT guidance, AP accesses AC again, what the software version and AC of AP operation at this time required
Version is consistent, and AP is smoothly online.
The upgrade method of the network equipment provided in an embodiment of the present invention, after AP upgrades failure under main program, Neng Gou
Software version is requested to AC again through TFTP under BOOT, is restored automatically, solves thin AP equipment in the space hardware FLASH
In insufficient situation, exception occur causes upgrading failure that can not reenter the problem of main program upgrades again, can exist automatically
Restore under BOOT, do not need network administrator's manual intervention, improve the reliability of thin AP upgrade, reduce network operation at
This.
Based on same inventive concept, the embodiment of the present invention also provides a kind of update device of network equipment, and Fig. 3 is this hair
The structural schematic diagram of the update device for the network equipment that bright embodiment provides, as shown in Figure 3, comprising: preserving module 31 obtains mould
Block 32, download module 33 and installation module 34, in which:
After preserving module 31 is used to download the corresponding upgrade file of software to be upgraded from upgrade server, in environmental variance
The title of the middle address for saving the upgrade server and the upgrade file, wherein the environmental variance is drawing for the network equipment
The addressable environmental variance of lead sequence and the environmental variance subregion are not belonging to the main program subregion of the network equipment;Obtain module 32
If failing for upgrading, under bootstrap guidance, the ground of the upgrade server is obtained from the environmental variance
The title of location and the upgrade file;Download module 33 is used to be reacquired and the liter according to the address of the upgrade server
The corresponding upgrade file of title of grade file;Module 34 is installed to be used under bootstrap guidance, the upgrading is installed
The corresponding software to be upgraded of file.
Such as above-mentioned apparatus, optionally, if the address of the network equipment is static address, the preserving module is also used to
The static address is saved in environmental variance;
Correspondingly, the acquisition module is specifically used for:
Under bootstrap guidance, the address of the upgrade server, the liter are obtained from the environmental variance
The title of grade file and the static address;
Correspondingly, the download module is specifically used for:
Establish connection according to the address of the static address and the upgrade server, according to the network equipment with it is described
Communication protocol between upgrade server reacquires upgrade file corresponding with the title of the upgrade file.
Such as above-mentioned apparatus, optionally, if the address of the network equipment is dynamic address, the acquisition module is also used
In:
The dynamic address of the network equipment is obtained by boot protocol;
Correspondingly, the download module is specifically used for:
Establish connection according to the address of the dynamic address and the upgrade server, according to the network equipment with it is described
Communication protocol between upgrade server reacquires upgrade file corresponding with the title of the upgrade file.
Such as above-mentioned apparatus, optionally, further includes:
Judgment module, for judging whether saved in the environmental variance after downloading the upgrade file
The address of the upgrade server of last time upgrading and the title of upgrade file;
First removing module, if the address of the upgrade server for having saved last time upgrading in the environmental variance
With the title of upgrade file, then the address of the upgrade server for the last time upgrading being saved and the title of upgrade file are deleted;
Correspondingly, the preserving module is specifically used for saving the upgrade server of this upgrading in the environmental variance
The title of address and upgrade file.
Such as above-mentioned apparatus, optionally, further includes:
Second removing module, if deleting and having protected from the environmental variance for upgrading network equipment success
The address for the upgrade server deposited and the title of upgrade file.
Device provided in an embodiment of the present invention, for realizing the above method, function referring in particular to above method embodiment,
Details are not described herein again.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, which exists
When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic or disk
Etc. the various media that can store program code.
The embodiments such as device described above are only schematical, wherein the unit as illustrated by the separation member
It may or may not be physically separated, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case where, it can understand and implement.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the embodiment of the present invention, rather than it is right
It is limited;Although the embodiment of the present invention is described in detail referring to foregoing embodiments, the ordinary skill of this field
Personnel are it is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, or to part
Or all technical features are equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution
The range of various embodiments of the present invention technical solution.
Claims (11)
1. a kind of upgrade method of the network equipment characterized by comprising
After the corresponding upgrade file of upgrade server downloading software to be upgraded, the upgrade service is saved in environmental variance
The title of the address of device and the upgrade file, wherein the environmental variance is the addressable environment of bootstrap of the network equipment
Variable and the environmental variance subregion are not belonging to the main program subregion of the network equipment;
If upgrading failure obtains the ground of the upgrade server under bootstrap guidance from the environmental variance
The title of location and the upgrade file;
Upgrade file corresponding with the title of the upgrade file is reacquired according to the address of the upgrade server;
Under bootstrap guidance, the corresponding software to be upgraded of the upgrade file is installed.
2. the method according to claim 1, wherein if the address of the network equipment be static address,
The address of the upgrade server, the title of the upgrade file and the static address are saved in the environmental variance;
Correspondingly, described under bootstrap guidance, the address of the upgrade server is obtained from the environmental variance
With the title of the upgrade file, comprising:
Under bootstrap guidance, address, the upgrading text of the upgrade server are obtained from the environmental variance
The title of part and the static address;
Correspondingly, described that liter corresponding with the title of the upgrade file is reacquired according to the address of the upgrade server
Grade file, comprising:
Connection is established according to the address of the static address and the upgrade server, according to the network equipment and the upgrading
Communication protocol between server reacquires upgrade file corresponding with the title of the upgrade file.
3. the method according to claim 1, wherein if the address of the network equipment be dynamic address,
Under the bootstrap guidance, the address of the upgrade server and the name of the upgrade file are obtained from the environmental variance
Claim, further includes:
The dynamic address of the network equipment is obtained by boot protocol;
Correspondingly, described that liter corresponding with the title of the upgrade file is reacquired according to the address of the upgrade server
Grade file, comprising:
Connection is established according to the address of the dynamic address and the upgrade server, according to the network equipment and the upgrading
Communication protocol between server reacquires upgrade file corresponding with the title of the upgrade file.
4. method according to claim 1 to 3, which is characterized in that further include:
After downloading the upgrade file, the upgrade service that last time upgrading whether has been saved in the environmental variance is judged
The address of device and the title of upgrade file;
If so, deleting the address of the upgrade server for the last time upgrading being saved and the title of upgrade file;
The address of the upgrade server of this upgrading and the title of upgrade file are saved in the environmental variance.
5. method according to claim 1 to 3, which is characterized in that further include:
If upgrading network equipment success, deleted from the environmental variance upgrade server being saved address and
The title of upgrade file.
6. method according to claim 1 to 3, which is characterized in that if the network equipment is accessing wirelessly access
Point, then the upgrade server is the radio network controller for having been switched on Simple File Transfer Protocol server.
7. a kind of update device of the network equipment characterized by comprising
Preserving module is protected in environmental variance after downloading the corresponding upgrade file of software to be upgraded from upgrade server
The address of the upgrade server and the title of the upgrade file are deposited, wherein the environmental variance is the guidance journey of the network equipment
The addressable environmental variance of sequence and the environmental variance subregion are not belonging to the main program subregion of the network equipment;
Module is obtained, if under bootstrap guidance, the liter is obtained from the environmental variance for upgrading failure
The grade address of server and the title of the upgrade file;
Download module, it is corresponding with the title of the upgrade file for being reacquired according to the address of the upgrade server
Upgrade file;
Module is installed, for installing the corresponding software to be upgraded of the upgrade file under bootstrap guidance.
8. device according to claim 7, which is characterized in that if the address of the network equipment is static address, institute
Preserving module is stated to be also used to save the static address in environmental variance;
Correspondingly, the acquisition module is specifically used for:
Under bootstrap guidance, address, the upgrading text of the upgrade server are obtained from the environmental variance
The title of part and the static address;
Correspondingly, the download module is specifically used for:
Connection is established according to the address of the static address and the upgrade server, according to the network equipment and the upgrading
Communication protocol between server reacquires upgrade file corresponding with the title of the upgrade file.
9. device according to claim 7, which is characterized in that if the address of the network equipment is dynamic address, institute
Acquisition module is stated to be also used to:
The dynamic address of the network equipment is obtained by boot protocol;
Correspondingly, the download module is specifically used for:
Connection is established according to the address of the dynamic address and the upgrade server, according to the network equipment and the upgrading
Communication protocol between server reacquires upgrade file corresponding with the title of the upgrade file.
10. according to any device of claim 7-9, which is characterized in that further include:
Judgment module, for judging whether saved last time in the environmental variance after downloading the upgrade file
The address of the upgrade server of upgrading and the title of upgrade file;
First removing module, if the address of the upgrade server for having saved last time upgrading in the environmental variance and liter
The title of grade file then deletes the address of the upgrade server for the last time upgrading being saved and the title of upgrade file;
Correspondingly, the preserving module is specifically used for saving the address of the upgrade server of this upgrading in the environmental variance
With the title of upgrade file.
11. according to any device of claim 7-9, which is characterized in that further include:
Second removing module, if delete from the environmental variance and to be saved for upgrading network equipment success
The address of upgrade server and the title of upgrade file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910619954.3A CN110474793A (en) | 2019-07-10 | 2019-07-10 | A kind of upgrade method and device of the network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910619954.3A CN110474793A (en) | 2019-07-10 | 2019-07-10 | A kind of upgrade method and device of the network equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110474793A true CN110474793A (en) | 2019-11-19 |
Family
ID=68507212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910619954.3A Pending CN110474793A (en) | 2019-07-10 | 2019-07-10 | A kind of upgrade method and device of the network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110474793A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124465A (en) * | 2019-11-28 | 2020-05-08 | 武汉虹信技术服务有限责任公司 | Cross-network C/S program remote upgrading method and system |
CN111698283A (en) * | 2020-04-29 | 2020-09-22 | 中国平安财产保险股份有限公司 | Distributed cluster host management and control method, device, equipment and storage medium |
CN112328268A (en) * | 2020-11-20 | 2021-02-05 | 苏州浪潮智能科技有限公司 | Method, device and equipment for upgrading white box switch software and readable medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090271780A1 (en) * | 2008-04-24 | 2009-10-29 | Moschip Semiconductor Technology Limited | Automatic complete firmware upgrade |
CN101826026A (en) * | 2010-04-12 | 2010-09-08 | 中兴通讯股份有限公司 | Embedded equipment and on-line updating system and method of firmware in embedded equipment |
CN102026032A (en) * | 2010-12-21 | 2011-04-20 | 中兴通讯股份有限公司 | Set top box upgrading method and device |
CN104915226A (en) * | 2015-05-21 | 2015-09-16 | 北京星网锐捷网络技术有限公司 | Network device software starting method, device and network device |
CN108958767A (en) * | 2018-06-21 | 2018-12-07 | 厦门亿联网络技术股份有限公司 | A kind of safe mode automatically updating method realized based on minimum system backup |
-
2019
- 2019-07-10 CN CN201910619954.3A patent/CN110474793A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090271780A1 (en) * | 2008-04-24 | 2009-10-29 | Moschip Semiconductor Technology Limited | Automatic complete firmware upgrade |
CN101826026A (en) * | 2010-04-12 | 2010-09-08 | 中兴通讯股份有限公司 | Embedded equipment and on-line updating system and method of firmware in embedded equipment |
CN102026032A (en) * | 2010-12-21 | 2011-04-20 | 中兴通讯股份有限公司 | Set top box upgrading method and device |
CN104915226A (en) * | 2015-05-21 | 2015-09-16 | 北京星网锐捷网络技术有限公司 | Network device software starting method, device and network device |
CN108958767A (en) * | 2018-06-21 | 2018-12-07 | 厦门亿联网络技术股份有限公司 | A kind of safe mode automatically updating method realized based on minimum system backup |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124465A (en) * | 2019-11-28 | 2020-05-08 | 武汉虹信技术服务有限责任公司 | Cross-network C/S program remote upgrading method and system |
CN111124465B (en) * | 2019-11-28 | 2023-06-20 | 武汉虹信技术服务有限责任公司 | Cross-network C/S program remote upgrading method and system |
CN111698283A (en) * | 2020-04-29 | 2020-09-22 | 中国平安财产保险股份有限公司 | Distributed cluster host management and control method, device, equipment and storage medium |
CN111698283B (en) * | 2020-04-29 | 2024-04-05 | 中国平安财产保险股份有限公司 | Management and control method, device, equipment and storage medium of distributed cluster host |
CN112328268A (en) * | 2020-11-20 | 2021-02-05 | 苏州浪潮智能科技有限公司 | Method, device and equipment for upgrading white box switch software and readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8122447B2 (en) | Firmware installation | |
CN110474793A (en) | A kind of upgrade method and device of the network equipment | |
CN101188516B (en) | A highly reliable and self-adapted remote update method for network device software system | |
CN102833344B (en) | Local boot mapping file-based diskless computer boot method | |
US20120117557A1 (en) | Method and system for upgrading wireless data card | |
CN103324507A (en) | Method and apparatus for updating terminal preset application program | |
CN101593121A (en) | The method of on-line software updating, Apparatus and system | |
CN101826026A (en) | Embedded equipment and on-line updating system and method of firmware in embedded equipment | |
CN103425527A (en) | Multi-system switching method and switching device | |
CN102541595A (en) | Method and device for upgrading intelligent device and intelligent device | |
CN107566169A (en) | A kind of firmware upgrade method and router based on openwrt | |
CN105912365A (en) | Method and system for updating mobile terminal system | |
CN109710297B (en) | Method for upgrading and backing equipment wholly or in modules | |
CN105721204A (en) | Firmware upgrading method and system for network adapters | |
CN101330695A (en) | Mobile terminal as well as system upgrade method and device thereof | |
CN104699499A (en) | Heterogeneous terminal software upgrading method | |
CN101616430B (en) | Management method of gateway software version and home gateway | |
CN106201584B (en) | Version upgrading method and terminal device | |
CN106775874A (en) | The method for upgrading system of terminal device | |
US9665364B2 (en) | Dual-bank telecommunication apparatus and method of upgrading firmware in dual-bank telecommunication apparatus | |
CN103731301A (en) | Dual backup achieving method of remote network system | |
CN116243946A (en) | Service upgrading processing method and system | |
CN106445601A (en) | Device and method for plugin upgrading | |
CN101826977A (en) | Remote management method, processing device and network system | |
CN110309018B (en) | Charging equipment system switching method, charging equipment and readable 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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20191119 |