CN109032635A - Method for upgrading software, device and the network equipment - Google Patents

Method for upgrading software, device and the network equipment Download PDF

Info

Publication number
CN109032635A
CN109032635A CN201810781711.5A CN201810781711A CN109032635A CN 109032635 A CN109032635 A CN 109032635A CN 201810781711 A CN201810781711 A CN 201810781711A CN 109032635 A CN109032635 A CN 109032635A
Authority
CN
China
Prior art keywords
software
board
launched
business board
business
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
Application number
CN201810781711.5A
Other languages
Chinese (zh)
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 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 CN201810781711.5A priority Critical patent/CN109032635A/en
Publication of CN109032635A publication Critical patent/CN109032635A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Abstract

Present disclose provides a kind of method for upgrading software, device and the network equipments, it is related to the technical field of data communication, this method comprises: receiving version number and the single plate hardware device information for the board software to be run that business board to be launched is sent by communication channels among boards;Judge whether the version number of the board software for the business board to be launched being locally stored is consistent with the version number of board software to be run;If inconsistent, whether the hardware device information for comparing the board software support for the business board to be launched being locally stored is consistent with the single plate hardware device information of business board to be launched;If consistent, according to the board software for the business board to be launched being locally stored, the board software to be run of business board to be launched is upgraded.Method for upgrading software, device and the network equipment that the disclosure provides carry out whether decision upgrades business board to be launched by master control borad, frequently interact without master control borad and business board, not only reduce the complexity of software realization, also improve upgrading efficiency.

Description

Method for upgrading software, device and the network equipment
Technical field
This disclosure relates to the technical field of data communication, more particularly, to one of distributed environment software upgrading side Method, device and the network equipment.
Background technique
In data communications solutions, especially in middle- and high-end applications, due to needing support various types of industry Business interface, so that distributed frame type equipment becomes a kind of typical equipment form, in general, distributed frame type equipment is by one piece or two Block master control borad and muti-piece business board composition.Different business boards can provide different business interfaces, connect including different business Mouth type and interface quantity, so large-scale distributed apparatus often have a lot of business boards.
With the evolution of research and development version, needs constantly to extend and support new business board, to meet the needs of user is a variety of.It is logical Often, the software of distributed frame type equipment is generally concentrated on master control borad, is handed down to each industry by communication channels among boards by master control borad Business plate.The business board upgrading scheme of mainstream at present is that the software of business board is issued to each business board using master control borad, then by each Business board decides whether to upgrade, and therefore, there is the escalation policy of oneself respectively on master control borad and business board.There is maintenance on master control borad The strategy of board software is issued to business board, and that also safeguards on business board has to whether the board software that master control borad issues upgrades Strategy increase the complexity of decision process so that the process of business board upgrading is codetermined by business board and master control borad, into And reduce upgrading efficiency
Fig. 1 shows a kind of flow chart of business board software upgrading in the prior art, and the process is by master control borad and business board Shared Decision Making, main flow are as follows:
(1) business board start when and master control board communications, pass through communication between plates inform master control borad oneself single board software edition Number;
(2) master control borad receive business board upload single board software edition number, and with the single board software edition number in software package It compares;
(3) if version number is different, implementation procedure (4);If version number is the same, board software is not issued, directly It connects and executes step (6);
(4) board software is handed down to business board;
(5) after board software is issued to business board, business board carries out upgrade analysis according to oneself current escalation policy, such as Fruit veneer, which limits specific version, to be upgraded, then abandons the version, just support certain in particular version as being configured on business board Device;If there is no limit the versions for board software upgrade rule, board software upgrading is completed;
(6) business board completes board software upgrading to master control borad requesting host software or decision does not need upgrading veneer Business board continues to start when software, until business is available.
By the above process it is found that escalation policy is individually placed on business board and master control borad, master control borad will not meet industry The board software of business plate escalation policy is handed down to business board, wastes communication between plates bandwidth, increases the additional upgrading of business board Processing routine, even the escalation policy of upgrading master control borad and business board must also upgrade simultaneously therebetween, for having For the distributed apparatus of multiple business plate, master control borad is undoubtedly also increased, the business that the escalation policy of business board updates.
Summary of the invention
In view of this, the disclosure is designed to provide a kind of method for upgrading software, device and the network equipment, on alleviating State the lower technical problem of upgrading efficiency.
In a first aspect, disclosure embodiment provides a kind of method for upgrading software, this method comprises: passing through communication between plates The version number for the board software to be run that channel reception business board to be launched is sent and single plate hardware device information;Judgement is local Whether the version number of the board software of the business board to be launched of storage is consistent with the version number of board software to be run;If different It causes, compares the hardware device information and the veneer of business board to be launched that the board software for the business board to be launched being locally stored is supported Whether hardware device information is consistent;If consistent, according to the board software for the business board to be launched being locally stored, to industry to be launched The board software to be run of business plate is upgraded.
Second aspect, for the disclosure embodiment further provides a kind of software updating apparatus, which includes: that letter receives mould Block, the version number and veneer for receiving the board software to be run that business board to be launched is sent by communication channels among boards are hard Part device information;Judgment module, for judge the business board to be launched being locally stored board software version number with wait run Whether the version number of board software is consistent;Comparison module, for relatively locally depositing when the judging result of judgment module is inconsistent The single plate hardware device information of hardware device information and business board to be launched that the board software of the business board to be launched of storage is supported It is whether consistent;Upgraded module, for when the comparison result of comparison module is consistent, according to the business board to be launched being locally stored Board software upgrades the board software to be run of business board to be launched.
The third aspect, the disclosure include master control borad embodiment further provides a kind of network equipment, the network equipment, and Multiple business boards to be launched, master control borad and multiple business boards to be launched carry out communication between plates;Master control borad includes processor and storage Device, memory are stored with the machine-executable instruction that can be executed by processor, and processor executes machine-executable instruction with reality Method described in existing above-mentioned first aspect.
Fourth method, embodiment further provides a kind of machine readable storage medium, machine readable storage mediums for the disclosure It is stored with machine-executable instruction, for the machine-executable instruction when being called and being executed by processor, the machine is executable Instruction promotes processor to realize method described in above-mentioned first aspect.
Disclosure embodiment bring it is following the utility model has the advantages that
A kind of method for upgrading software, device and the network equipment that disclosure embodiment provides, can pass through communication between plates The version number for the board software to be run that channel reception business board to be launched is sent and single plate hardware device information, and judging The version number for the board software that the business to be launched being locally stored out is done and the version number of board software to be run are inconsistent, and The single plate hardware device of hardware device information and business board to be launched that the board software for the business board to be launched being locally stored is supported When part information is consistent, according to the board software for the business board to be launched being locally stored, to the veneer to be run of business board to be launched Software is upgraded, in escalation process, it is only necessary to which master control borad carries out whether decision upgrades, and does not need master control borad and business board carries out Frequently interaction, not only reduces the complexity of software realization, it helps improves upgrading efficiency.
Other feature and advantage of the disclosure will illustrate in the following description, also, partly become from specification It obtains it is clear that being understood by implementing the disclosure.The purpose of the disclosure and other advantages are in specification, claims And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features, and advantages of the disclosure to be clearer and more comprehensible, better embodiment is cited below particularly, and match Appended attached drawing is closed, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of disclosure specific embodiment or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the disclosure, for those skilled in the art, without creative efforts, It is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of business board software upgrading in the prior art;
Fig. 2 is a kind of flow chart for method for upgrading software that disclosure embodiment provides;
Fig. 3 is the flow chart for another method for upgrading software that disclosure embodiment provides;
Fig. 4 is the interaction schematic diagram of a kind of business board and master control borad that disclosure embodiment provides;
Fig. 5 is a kind of structural schematic diagram for software updating apparatus that disclosure embodiment provides;
Fig. 6 is the structural schematic diagram for another software updating apparatus that disclosure embodiment provides;
Fig. 7 is a kind of structural schematic diagram for network equipment that disclosure embodiment provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of disclosure embodiment clearer, below in conjunction with attached drawing to this public affairs The technical solution opened is clearly and completely described, it is clear that and described embodiment is a part of embodiment of the disclosure, Rather than whole embodiment.Based on the embodiment in the disclosure, those skilled in the art are not making creative labor Every other embodiment obtained under the premise of dynamic belongs to the range of disclosure protection.
Disclosure embodiment provides a kind of method for upgrading software, device and the network equipment, to reduce in the prior art Business board upgrades the complexity of decision process, improves upgrading efficiency.
For convenient for understanding disclosure embodiment, first to a kind of software liter provided by disclosure embodiment Grade method describes in detail.
Disclosure embodiment provides a kind of method for upgrading software, can carry out to the business board of distributed frame type equipment Upgrading, specifically, this method can be applied to the master control borad of distributed frame type equipment, and specifically, master control borad can be with multiple industry Business plate carries out communication between plates.A kind of flow chart of method for upgrading software as shown in Figure 2, method includes the following steps:
Step S202 receives the version number for the board software to be run that business board to be launched is sent by communication channels among boards And single plate hardware device information;
In general, after distributed frame type equipment powers on, business board to be launched during startup can with master control borad into Row communication between plates, also, the process of similar self-test can be executed in business board start-up course to be launched, the veneer to check itself is soft The version number of part and single plate hardware device information, and it is transmitted to master control borad.Therefore, the receive process of step S202 usually exist It is executed in business board start-up course to be launched.
In disclosure embodiment, business board to be launched refers to run host software after, prepare operation board software To complete the business board of entire start-up course.
Step S204, judge the board software for the business board to be launched being locally stored version number and board software to be run Version number it is whether consistent;
When specific implementation, software package is all previously stored on master control borad, which beats for host software The software package of packet, in general, the software in the version number and software package of the board software to be run that business board to be launched is sent Version number (or version number of the board software for the business board to be launched being locally stored) is consistent, when on business board to be launched Device have update, when perhaps increasing other types of business board newly corresponding board software be also required to update or change, this When just will appear the version number of the current board software to be run of business board to be launched and the business board to be launched of software package Board software the inconsistent situation of version number.
Step S206 compares the hardware device that the board software for the business board to be launched being locally stored is supported if inconsistent Whether part information is consistent with the single plate hardware device information of business board to be launched;
In general, when the hardware device on business board to be launched does not update, the list for the business board to be launched being locally stored The hardware device information of plate software support and the single plate hardware device information of business board to be launched are all consistent.When industry to be launched When hardware device on business plate has update, it just will appear the hardware device that the board software for the business board to be launched being locally stored is supported The part information situation inconsistent with the single plate hardware device information of business board to be launched.
Step S208, if unanimously, according to the board software for the business board to be launched being locally stored, to business board to be launched Board software to be run upgraded.
A kind of method for upgrading software that disclosure embodiment provides, can receive industry to be launched by communication channels among boards Be engaged in board software to be run that plate is sent version number and single plate hardware device information, and judging to be locally stored wait open The version number for the board software that dynamic business is done and the version number of board software to be run are inconsistent, and are locally stored to be launched When the hardware device information that the board software of business board is supported is consistent with the single plate hardware device information of business board to be launched, according to The board software for the business board to be launched being locally stored upgrades the board software to be run of business board to be launched, is rising During grade, it is only necessary to which master control borad carries out whether decision upgrades, and does not need master control borad and business board is frequently interacted, reduce soft The complexity that part is realized, it helps improve upgrading efficiency.
When specific implementation, the board software to be run that above-mentioned business board to be launched is sent is often referred to operate in business board veneer On and single plate hardware design closely related bottom software;Above-mentioned single plate hardware device information may include on business board veneer Device replace information, and the information of software version supported of device of replacement.In actual use, industry to be launched The version number of the board software of business plate and single plate hardware device information can store in the mating table of software, when business to be launched When the board software or single plate hardware device information of plate have update, the content of the mating table of the software also updates therewith.
It therefore, further include the software for establishing business board to be launched in method for upgrading software described in disclosure embodiment The process of mating table, wherein the mating table of the software records the version number of the board software for the business board to be launched being locally stored, And the hardware device information that the board software of business board to be launched is supported;When specific implementation, the mating table of the software can be by leading Control plate safeguarded, in order to compare the business board to be launched being locally stored board software support hardware device information with to Whether the single plate hardware device information for starting business board is consistent.Based on this, on the basis of method for upgrading software shown in Fig. 2, this Disclosed embodiment additionally provides another method for upgrading software, the flow chart of another method for upgrading software as shown in Figure 3, This method executes on the basis of Fig. 2, comprising the following steps:
Step S302 receives the version number for the board software to be run that business board to be launched is sent by communication channels among boards And single plate hardware device information;
Step S304, judge the board software for the business board to be launched being locally stored version number and board software to be run Version number it is whether consistent, if so, execute step S306, if not, execute step S312;
Step S306, obtains the mating table of software, and the veneer for extracting the business board to be launched saved in the mating table of the software is soft The hardware device information that part is supported;
In general, the version number of the board software for the business board to be launched recorded in the mating table of software, may include that product is matched Set project, software version number and corresponding version compatibility such as illustrate at the contents, e.g., NE software version number, single board software edition Number and the hardware device information etc. supported of corresponding board software, if for example, the veneer of business board to be launched uses When device A, then it is 2.00 or more board software etc. that business board to be launched, which must use single board software edition number,.
Step S308 judges hardware device information and currently veneer to be run that the board software of business board to be launched is supported Whether the single plate hardware device information of software is consistent;If so, executing step S310;If not, executing step S312;
Specifically, when the hardware device information and currently list to be run for judging that the board software of business board to be launched is supported When the single plate hardware device information of plate software is consistent, it is believed that the single plate hardware device information of current business board to be launched meets The above-mentioned mating table of software, otherwise, it is believed that the single plate hardware device information of current business board to be launched is unsatisfactory for above-mentioned software Mating table.
When specific implementation, above-mentioned hardware device information is consistent with the single plate hardware device information of business board to be launched, usually Refer to the board software or hardware of business board to be launched in the hardware device Informational support software package of business board to be launched Device information is compatible with the board software in software package.
Step S310, according to the board software for the business board to be launched being locally stored, to business board to be launched wait run Board software is upgraded;
Specific escalation process may comprise steps of: issue upgrading instruction to business board to be launched;Receive industry to be launched The software solicited message that business plate is sent according to upgrading instruction;The corresponding software of software solicited message is sent to business board to be launched Data packet, wherein software package carries board software to be upgraded so that business board to be launched according to software package into Row software upgrading.
Specifically, after business board to be launched gets software package, software package can be stored in starting text Under the corresponding root of part, is upgraded to read corresponding board software in subsequent start-up course, specifically upgraded Journey can realize that disclosure embodiment is not limited this with reference to related data.
When S308 compares the hardware device that the board software for the business board to be launched being locally stored is supported through the above steps When part information and the inconsistent single plate hardware device information of veneer to be launched, the process of step S312 is executed.
Step S312 sends the notice of upgrading failure, to business board to be launched to notify business board to be launched to continue to start.
Specifically, when the version number for judging the current board software of business board to be launched in the implementation procedure of step S304 It is consistent with the version number of board software to be run, alternatively, judging the veneer of current business board to be launched according to the mating table of software When hardware device information is unsatisfactory for above-mentioned software mating table, master control borad judges that current business board to be launched does not meet upgrading item Part, business board to be launched does not upgrade at this time, continues to execute subsequent start-up course.
In actual use, the mating table of above-mentioned software is usually completion to be pre-configured with by user, and save to master control borad In corresponding storage medium, safeguarded by master control borad.When having processing business and updates or device updates, user can also be to soft The mating table of part is configured and is updated accordingly, in order to carry out the upgrading of business board.Therefore, disclosure embodiment provides Method for upgrading software further includes following procedure: obtaining preset configuration information, is matched according to configuration information to the mating table of software It sets, wherein the configuration information can be inputted by user in advance, and be saved to specified position, and, which includes at least One of below: the configuration information of the board software of business board to be launched;The configuration information of hardware device information.By above-mentioned To the configuration mode of the mating table of software, the Analysis of Policy Making that the board software to business board to be launched can be upgraded concentrates on leading It is completed on control plate, centralized control is realized by master control borad, avoids the process that business board and master control borad frequently interact.
For the ease of understanding the method for upgrading software that above embodiment provides, Fig. 4 shows a kind of business board With the interaction schematic diagram of master control borad, in the schematic diagram, the Analysis of Policy Making of the software upgrade process of business board to be launched is concentrated on On master control borad, centralized control is carried out by master control borad, master control borad safeguards the mating table of software of business board and board software to be launched, with The mating table of software include for the Primary Component information that NE software version number, single board software edition number and board software are supported into Row explanation, main flow are as follows:
(1) version number of current single board software and single plate hardware device information are uploaded to master before business board starting to be launched Control plate;
(2) master control borad receives the version number for the current single board software that business board to be launched uploads, and inquires the soft of its maintenance The mating table of part, according to the mating table of software, whether decision to business board to be launched issues board software, if so, shown in Fig. 4 (3) process is that master control borad notifies business board to be launched to upgrade, and to business board transmitting single plate software to be launched, subsequent industry to be launched Business plate executes process (4) requesting host software, and business board to be launched completes board software upgrading, subsequent start-up.If master control borad Decision goes out business board to be launched and does not upgrade, then (3) process shown in Fig. 4 is that master control borad does not upgrade to business board to be launched notice Process, at this point, business board to be launched directly executes (4) process, requesting host software continues thereafter with starting.
For example it is assumed that there is following facility environment:
1) release status of board software are as follows: the currently running single board software edition of business board to be launched is 1.00, and is led The single board software edition being packaged in control plate host software is 1.05;
2) the current board software escalation policy of business board to be launched, master control borad includes: master control borad, when business board to be launched It uploads and is packaged inconsistent in the board software and host software that come up, then issue board software to business board to be launched;Wait open Dynamic business board: when receiving the board software that master control borad issues, then the upgrading of board software is completed, host software is restarted.But When veneer uses device A, it is necessary to use 2.00 or more single board software edition;
3) Primary Component state: current business board to be launched has used device A.
Interaction schematic diagram based on shown in Fig. 4, (such as software is mating according to the edition upgrading strategy of local maintenance for master control borad Table), the single board software edition number and single plate hardware device information that business board to be launched uploads are inquired, finds business to be launched The single board software edition number being packaged in the single board software edition number and host software that plate uploads is inconsistent, and has used device A, Master control borad can be gone out with decision and not need to upgrade board software to business board to be launched at this time, and business board to be launched is then notified to be not required to Upgrade, business board to be launched continues to start.Business board escalation process to be launched in this way reduces six links as shown in Figure 1 To four processes, meanwhile, master control borad does not need frequently to interact with business board to be launched in escalation process, reduces software realization Complexity.
In actual use, since the escalation process of board software usually requires just to be able to achieve after equipment is restarted, by upper State method for upgrading software, the time of business board analysis decision board software to be launched upgrading can be saved, especially master control borad to Business board to be launched has issued board software, and the case where do not upgrade board software after business plate analysis local policy to be launched Under, the method for upgrading software that disclosure embodiment provides does not have the link that board software issues, can be obviously shortened to be launched The starting time of business board reduces the frequent interaction between master control borad and business board to be launched.
In terms of the processing business and updates of business board to be launched, since the escalation policy of business board to be launched is complete in master control borad side At when business board to be launched supports new business, it is not necessary to modify the escalation policy of business board board software to be launched and publications New strategy version, it helps reduce the expense of software upgrading.
Corresponding to the method for upgrading software that above embodiment provides, embodiment further provides a kind of software liters for the disclosure Stage arrangement, the device can be set in master control borad, and master control borad can carry out communication between plates with multiple business boards, as shown in Figure 5 A kind of structural schematic diagram of software updating apparatus, the device include with flowering structure:
Receiving module 50, for receiving board software to be run that business board to be launched is sent by communication channels among boards Version number and single plate hardware device information;
Judgment module 52, the version number of the board software of the business board to be launched for judging to be locally stored and list to be run Whether the version number of plate software is consistent;
Comparison module 54, for when the judging result of judgment module is inconsistent, comparing the business to be launched being locally stored Whether the hardware device information that the board software of plate is supported is consistent with the single plate hardware device information of business board to be launched;
Upgraded module 56, for when the comparison result of comparison module is consistent, according to the business board to be launched being locally stored Board software, the board software to be run of business board to be launched is upgraded.
Specifically, above-mentioned upgraded module is used for: issuing upgrading instruction to business board to be launched;Receive business board root to be launched The software solicited message sent according to upgrading instruction;The corresponding software package of software solicited message is sent to business board to be launched, Wherein, software package carries board software to be upgraded, so that business board to be launched carries out software according to software package Upgrading.
On the basis of Fig. 5, Fig. 6 shows the structural schematic diagram of another software updating apparatus, removes structure shown in fig. 5 Outside, above-mentioned apparatus further include:
Module 58 is established, for establishing the mating table of software of above-mentioned business board to be launched, wherein the mating table of software records The hardware that the board software of the version number of the board software for the business board to be launched being locally stored and business board to be launched is supported Device information;
Therefore, above-mentioned comparison module is also used to: obtain the mating table of above-mentioned software, extract saved in the mating table of software wait open The hardware device information that the board software of dynamic business board is supported;Judge the hardware device that the board software of business board to be launched is supported Whether information is consistent with the single plate hardware device information of currently board software to be run.
In addition, in the structural schematic diagram of another software updating apparatus shown in Fig. 6, above-mentioned apparatus further include:
Configuration module 60 configures the mating table of software according to configuration information for obtaining preset configuration information, In, configuration information includes at least one of following: the configuration information of the board software of business board to be launched;Hardware device information Configuration information.
Notification module 62, the hardware device for being supported when the board software for comparing the business board to be launched being locally stored When information and the inconsistent single plate hardware device information of veneer to be launched, the notice of upgrading failure is sent to business board to be launched, To notify business board to be launched to continue to start.
The software updating apparatus that disclosure embodiment provides, the method for upgrading software provided with above embodiment have Identical technical characteristic reaches identical technical effect so also can solve identical technical problem.
For the disclosure embodiment further provides a kind of network equipment, which includes master control borad and multiple wait open Dynamic business board, master control borad and multiple business boards to be launched carry out communication between plates;Master control borad includes processor and memory, memory It is stored with the machine-executable instruction that can be executed by processor, processor executes machine-executable instruction to realize aforementioned implementation Method for upgrading software described in mode.
Further, embodiment further provides a kind of machine readable storage medium, the machine readable storage mediums for the disclosure It is stored with machine-executable instruction, when being called and being executed by processor, machine-executable instruction promotes machine-executable instruction Processor realizes method for upgrading software described in aforementioned embodiments.
Referring to Fig. 7, disclosure embodiment also provides a kind of structural schematic diagram of network equipment, comprising: processor 700, Memory 701, bus 702 and communication interface 703, the processor 700, communication interface 703 and memory 701 pass through bus 702 connections;Processor 700 is for executing the executable module stored in memory 701, such as computer program.
Wherein, memory 701 may include high-speed random access memory (RAM, Random Access Memory), It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely A few communication interface 703 (can be wired or wireless) is realized logical between the system network element and at least one other network element Letter connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 702 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, number According to bus, control bus etc..Only to be indicated with a four-headed arrow in Fig. 7, it is not intended that an only bus convenient for indicating Or a type of bus.
Wherein, memory 701 is for storing program, and processor 700 executes described program after receiving and executing instruction, Method performed by the software updating apparatus that aforementioned disclosure any embodiment discloses can be applied in processor 700, or Person is realized by processor 700.
Processor 700 may be a kind of IC chip, the processing capacity with signal.It is above-mentioned during realization Each step of method can be completed by the integrated logic circuit of the hardware in processor 700 or the instruction of software form.On The processor 700 stated can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or Person other programmable logic device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute sheet Disclosed each method, step and logic diagram in disclosed embodiment.General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..The step of method in conjunction with disclosed in disclosure embodiment, can direct body Now executes completion for hardware decoding processor, or in decoding processor hardware and software module combine and execute completion.It is soft Part module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically erasable programmable are deposited In the storage medium of this fields such as reservoir, register maturation.The storage medium is located at memory 701, and processor 700 reads storage Information in device 701, in conjunction with the step of its hardware completion above method.
The computer program product of method for upgrading software provided by disclosure embodiment, device and the network equipment, packet The computer readable storage medium for storing program code is included, the instruction that said program code includes can be used for executing previous methods Method described in embodiment, specific implementation can be found in method implementation, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description , can be with reference to the corresponding process in preceding method embodiment with the specific work process of the network equipment, details are not described herein.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the disclosure is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute all or part of step of each embodiment the method for the disclosure Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that embodiment of above, the only specific embodiment of the disclosure, to illustrate the disclosure Technical solution, rather than its limitations, the protection scope of the disclosure are not limited thereto, although referring to aforementioned embodiments to this public affairs It opens and is described in detail, it should be understood by those skilled in the art that: anyone skilled in the art is in this public affairs It opens in the technical scope of exposure, can still modify to technical solution documented by aforementioned embodiments or can think easily To variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make corresponding The essence of technical solution is detached from the spirit and scope of disclosure embodiment technical solution, should all cover the protection model in the disclosure Within enclosing.Therefore, the protection scope of the disclosure should be subject to the protection scope in claims.

Claims (12)

1. a kind of method for upgrading software, which is characterized in that the described method includes:
Version number and the single plate hardware of the board software to be run that business board to be launched is sent are received by communication channels among boards Device information;
Judge the version number of the board software for the business board to be launched being locally stored and the version of the board software to be run Whether this number consistent;
If inconsistent, compare the hardware device information and institute that the board software for the business board to be launched being locally stored is supported Whether the single plate hardware device information for stating business board to be launched is consistent;
If consistent, according to the board software for the business board to be launched being locally stored, to the business board to be launched to Operation board software is upgraded.
2. the method according to claim 1, wherein the method also includes:
Establish the mating table of software of the business board to be launched, wherein the mating table of software record be locally stored it is described The hardware device that the board software of the version number of the board software of business board to be launched and the business board to be launched is supported Part information;
The hardware device and the industry to be launched that the board software for the business board to be launched that the comparison is locally stored is supported The whether consistent step of single plate hardware device information of plate of being engaged in includes:
The mating table of the software is obtained, the board software branch of the business board to be launched saved in the mating table of the software is extracted The hardware device information held;
Judge the hardware device information and presently described veneer to be run that the board software of the business board to be launched is supported Whether the single plate hardware device information of software is consistent.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Preset configuration information is obtained, the mating table of the software is configured according to the configuration information, wherein the configuration Information includes at least one of following:
The configuration information of the board software of the business board to be launched;
The configuration information of the hardware device information.
4. the method according to claim 1, wherein the business board to be launched that the basis is locally stored Board software, the step of upgrading to the board software to be run of the business board to be launched include:
Upgrading instruction is issued to the business board to be launched;
Receive the software solicited message that the business board to be launched is sent according to the upgrading instruction;
The corresponding software package of the software solicited message is sent to the business board to be launched, wherein the software data Packet carries board software to be upgraded, so that the business board to be launched carries out software upgrading according to the software package.
5. the method according to claim 1, wherein the method also includes:
When compare the business board to be launched being locally stored board software support hardware device information with described wait open When the single plate hardware device information of dynamic veneer is inconsistent, the notice of upgrading failure is sent, to the business board to be launched with notice The business board to be launched continues to start.
6. a kind of software updating apparatus, which is characterized in that described device includes:
Receiving module, for receiving the version number for the board software to be run that business board to be launched is sent by communication channels among boards And single plate hardware device information;
Judgment module, for judge the business board to be launched being locally stored board software version number with described wait run Whether the version number of board software is consistent;
Comparison module, for when the judging result of the judgment module is inconsistent, comparing the industry to be launched being locally stored Whether the hardware device information that the board software of business plate is supported is consistent with the single plate hardware device information of the business board to be launched;
Upgraded module, for when the comparison result of the comparison module is consistent, according to the business to be launched being locally stored The board software of plate upgrades the board software to be run of the business board to be launched.
7. device according to claim 6, which is characterized in that described device further include:
Module is established, for establishing the mating table of software of the business board to be launched, wherein the mating table of software records this The version number of the board software of the business board to be launched of ground storage and the board software of the business board to be launched are supported The hardware device information;
The comparison module is also used to:
The mating table of the software is obtained, the board software branch of the business board to be launched saved in the mating table of the software is extracted The hardware device information held;
Judge the hardware device information and presently described veneer to be run that the board software of the business board to be launched is supported Whether the single plate hardware device information of software is consistent.
8. device according to claim 7, which is characterized in that described device further include:
Configuration module configures the mating table of the software according to the configuration information for obtaining preset configuration information, Wherein, the configuration information includes at least one of following:
The configuration information of the board software of the business board to be launched;
The configuration information of the hardware device information.
9. device according to claim 6, which is characterized in that the upgraded module is used for:
Upgrading instruction is issued to the business board to be launched;
Receive the software solicited message that the business board to be launched is sent according to the upgrading instruction;
The corresponding software package of the software solicited message is sent to the business board to be launched, wherein the software data Packet carries board software to be upgraded, so that the business board to be launched carries out software upgrading according to the software package.
10. device according to claim 6, which is characterized in that described device further include:
Notification module, the hardware device letter for being supported when the board software for comparing the business board to be launched being locally stored When the single plate hardware device information of breath and the veneer to be launched is inconsistent, upgrading failure is sent to the business board to be launched Notice, to notify the business board to be launched to continue to start.
11. a kind of network equipment, which is characterized in that the network equipment includes master control borad and multiple business boards to be launched, institute It states master control borad and multiple business boards to be launched carries out communication between plates;
The master control borad includes processor and memory, and the memory is stored with the machine that can be executed by the processor can It executes instruction, the processor executes the machine-executable instruction to realize method described in any one of claim 1 to 5.
12. a kind of machine readable storage medium, which is characterized in that the machine readable storage medium is stored with the executable finger of machine It enables, for the machine-executable instruction when being called and being executed by processor, the machine-executable instruction promotes the processor Realize method described in any one of claim 1 to 5.
CN201810781711.5A 2018-07-16 2018-07-16 Method for upgrading software, device and the network equipment Pending CN109032635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810781711.5A CN109032635A (en) 2018-07-16 2018-07-16 Method for upgrading software, device and the network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810781711.5A CN109032635A (en) 2018-07-16 2018-07-16 Method for upgrading software, device and the network equipment

Publications (1)

Publication Number Publication Date
CN109032635A true CN109032635A (en) 2018-12-18

Family

ID=64643223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810781711.5A Pending CN109032635A (en) 2018-07-16 2018-07-16 Method for upgrading software, device and the network equipment

Country Status (1)

Country Link
CN (1) CN109032635A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716741A (en) * 2019-09-26 2020-01-21 杭州安恒信息技术股份有限公司 Software product automatic inspection method based on script
CN110944042A (en) * 2019-11-12 2020-03-31 中核控制系统工程有限公司 Online automatic protocol updating method based on FPGA
CN111273924A (en) * 2020-01-10 2020-06-12 杭州迪普科技股份有限公司 Software updating method and device
CN113515304A (en) * 2021-06-10 2021-10-19 锐捷网络股份有限公司 Interaction method and device between board cards based on frame type network equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812332A (en) * 2005-01-26 2006-08-02 华为技术有限公司 Method for assurng conformity of exchanger various monoboard software edition
CN1845074A (en) * 2006-03-14 2006-10-11 华为技术有限公司 Net element apparatus operating method and net element apparatus
CN1901470A (en) * 2006-07-25 2007-01-24 华为技术有限公司 Control system and method for software batch distribution
CN101425930A (en) * 2008-12-05 2009-05-06 上海华为技术有限公司 Method and equipment for ensuring single board operation software
CN101853173A (en) * 2010-05-27 2010-10-06 杭州华三通信技术有限公司 Software upgrading method and device of programmable logic device of distributed system
CN104702633A (en) * 2013-12-04 2015-06-10 北京信威通信技术股份有限公司 Version updating method and version updating device
WO2015158120A1 (en) * 2014-04-18 2015-10-22 中兴通讯股份有限公司 Method and apparatus for upgrading software version
CN107632865A (en) * 2017-10-24 2018-01-26 新华三技术有限公司 A kind of FPGA configuration upgrade methods and device
CN108008969A (en) * 2017-12-28 2018-05-08 新华三技术有限公司 A kind of method for upgrading software version, device and the network equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812332A (en) * 2005-01-26 2006-08-02 华为技术有限公司 Method for assurng conformity of exchanger various monoboard software edition
CN1845074A (en) * 2006-03-14 2006-10-11 华为技术有限公司 Net element apparatus operating method and net element apparatus
CN1901470A (en) * 2006-07-25 2007-01-24 华为技术有限公司 Control system and method for software batch distribution
CN101425930A (en) * 2008-12-05 2009-05-06 上海华为技术有限公司 Method and equipment for ensuring single board operation software
CN101853173A (en) * 2010-05-27 2010-10-06 杭州华三通信技术有限公司 Software upgrading method and device of programmable logic device of distributed system
CN104702633A (en) * 2013-12-04 2015-06-10 北京信威通信技术股份有限公司 Version updating method and version updating device
WO2015158120A1 (en) * 2014-04-18 2015-10-22 中兴通讯股份有限公司 Method and apparatus for upgrading software version
CN107632865A (en) * 2017-10-24 2018-01-26 新华三技术有限公司 A kind of FPGA configuration upgrade methods and device
CN108008969A (en) * 2017-12-28 2018-05-08 新华三技术有限公司 A kind of method for upgrading software version, device and the network equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716741A (en) * 2019-09-26 2020-01-21 杭州安恒信息技术股份有限公司 Software product automatic inspection method based on script
CN110716741B (en) * 2019-09-26 2023-08-08 杭州安恒信息技术股份有限公司 Script-based software product automatic inspection method
CN110944042A (en) * 2019-11-12 2020-03-31 中核控制系统工程有限公司 Online automatic protocol updating method based on FPGA
CN111273924A (en) * 2020-01-10 2020-06-12 杭州迪普科技股份有限公司 Software updating method and device
CN111273924B (en) * 2020-01-10 2023-07-25 杭州迪普科技股份有限公司 Software updating method and device
CN113515304A (en) * 2021-06-10 2021-10-19 锐捷网络股份有限公司 Interaction method and device between board cards based on frame type network equipment

Similar Documents

Publication Publication Date Title
CN109032635A (en) Method for upgrading software, device and the network equipment
CN105763602B (en) A kind of method of data request processing, server and system
CN105979009B (en) A kind of increase load automatic balancing method for cloud application container
CN108023765A (en) Device firmware upgrade method, apparatus and storage medium
CN106850746B (en) The method and device of smooth service upgrading
CN109743199A (en) Containerization management system based on micro services
CN107463418B (en) Configuration file generation method and device for server middleware
EP3720189B1 (en) Data routing method and terminal
CN107533484A (en) System and method for dynamically managing virtual network function descriptor
WO2017024688A1 (en) Control method and system capable of system upgrade without interrupting services
CN105024839B (en) A kind of method and device of software release upgrade
CN110532009A (en) A kind of smart machine upgrading management system and method
CN105144102A (en) Adaptive data synchronization
WO2017107788A1 (en) Machine learning tool middleware and training method of machine learning
WO2019024679A1 (en) Method for upgrading network function and upgrade management entity
CN1973282A (en) System and method for managing a change to a cluster configuration
CN107682426A (en) interface proxy method and application server
CN109032661A (en) System version method for customizing, device and intelligent terminal
CN104793998B (en) Terminal system resource management method and device
CN104199789B (en) Method, management system, drive system and the system of autosensing configuration
CN109783135A (en) Multimode software version management system
CN101621792A (en) Method for upgrading telesoftware of wireless fixed phone terminal
CN110912725A (en) Configuration method and configuration device of OpenFlow virtual switch
CN108769241A (en) A kind of operating method of heat pump unit remote control, apparatus and system
CN110851166A (en) User-unaware application program updating method and device and computer equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181218

RJ01 Rejection of invention patent application after publication