CN108459869A - ISSU upgrade methods and device - Google Patents

ISSU upgrade methods and device Download PDF

Info

Publication number
CN108459869A
CN108459869A CN201711459205.6A CN201711459205A CN108459869A CN 108459869 A CN108459869 A CN 108459869A CN 201711459205 A CN201711459205 A CN 201711459205A CN 108459869 A CN108459869 A CN 108459869A
Authority
CN
China
Prior art keywords
control board
data
version
initial data
main control
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
CN201711459205.6A
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 CN201711459205.6A priority Critical patent/CN108459869A/en
Publication of CN108459869A publication Critical patent/CN108459869A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to distributed system technical field, a kind of ISSU upgrade methods and device are provided, in the ISSU upgradings for carrying out distributed system, using independent third party database, first, third party database receives the initial data that main control board is sent;Then, according to the data difference between preset initial data version and target data version, initial data is updated, target data is obtained;Finally, the read requests of the slave control board of edition upgrading are completed in response, and target data is sent to realize the data update of slave control board to slave control board.The embodiment of the present invention passes through the third party database that is communicated with main control board and slave control board, it allows users to data completing conversion between the front and back version of ISSU upgradings, to while ensureing ISSU compatibility, reduce the complexity of Software for Design.

Description

ISSU upgrade methods and device
Technical field
The present invention relates to distributed system technical fields, in particular to a kind of ISSU upgrade methods and device.
Background technology
ISSU (In-Service Software Upgrade, non-interrupting service upgrading), which is one kind, can ensure to upgrade The upgrading mode that business is not interrupted in journey or the break period is shorter.During carrying out ISSU upgradings, the most important point Be upgrade former and later two versions compatibility, ensure it is completely compatible be run on the network equipment each software module (for example, Bgp protocol) it is required for considering the problems of.For each software module, influence ISSU compatibility there are two aspect:Communication Data and storage data.
Most current manufacturer is all that this problem is addressed from Software for Design, for example, when bgp protocol stores neighbours The marker bit sPeerFlag of information is not enough, need by short types increase be int types when, it is necessary to newly-increased one is completely new Field receives new information, meanwhile, in order to ensure that the compatibility of data structure, BGP modules handle neighbor information in new version When have to complete following thing:To be that each field assigns conjunction 1. when BGP modules generate a neighbor information Suitable initial value;2. when from bgp neighbor information is recovered in communication structure or in storage organization, it is necessary to be tied according to communication The minimum value of length and current data physical length in structure obtains.That is, main control board and slave control board sheet The data structure that ground uses must be consistent in position, field size etc., this will greatly improve the complexity of software Degree.
Invention content
The embodiment of the present invention is designed to provide a kind of ISSU upgrade methods and device, to ensure ISSU compatibility Meanwhile reducing the complexity of Software for Design.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, an embodiment of the present invention provides a kind of ISSU upgrade methods, it is applied to ISSU supplementary modules, it is described ISSU supplementary modules are communicated with main control board and slave control board, and the slave control board is logical with the main control board Letter, the method includes:Receive the initial data that the main control board is sent;Wherein, the initial data is primary master control Plate responds what version upgrade request obtained, and edition upgrading request is synchronized to the spare master control by the main control board Plate is to realize the edition upgrading of the slave control board;According to the number between preset initial data version and target data version According to difference, the initial data is updated, target data is obtained;The slave control board of edition upgrading is completed in response Read requests send target data to realize the data update of the slave control board to the slave control board.
Second aspect, an embodiment of the present invention provides a kind of ISSU update devices, are applied to ISSU supplementary modules, described ISSU supplementary modules are communicated with main control board and slave control board, and the slave control board is logical with the main control board Letter, described device include initial data receiving module, target data acquisition module and the first data update module.Wherein, original Data reception module is used to receive the initial data that the main control board is sent;Wherein, the initial data is primary master control Plate responds what version upgrade request obtained, and edition upgrading request is synchronized to the spare master control by the main control board Plate is to realize the edition upgrading of the slave control board;Target data obtain module be used for according to preset initial data version and Data difference between target data version is updated the initial data, obtains target data;First data update mould Block is used to respond the read requests for the slave control board for completing edition upgrading, and target data is sent to the slave control board To realize the data update of the slave control board.
Compared with the prior art, a kind of ISSU upgrade methods provided in an embodiment of the present invention and device are carrying out distributed system When the ISSU upgradings of system, using independent third party database, first, third party database receives the original that main control board is sent Beginning data;Then, according to the data difference between preset initial data version and target data version, initial data is carried out Update, obtains target data;Finally, the read requests of the slave control board of edition upgrading are completed in response, are sent out to slave control board Target data is sent to realize the data update of slave control board.The embodiment of the present invention by with main control board and slave control board The third party database communicated, enabling complete to convert between the front and back version of ISSU upgradings by data, to protect While demonstrate,proving ISSU compatibility, the complexity of Software for Design is reduced.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the first block diagram of distributed system provided in an embodiment of the present invention.
Fig. 2 shows the second block diagrams of distributed system provided in an embodiment of the present invention.
Fig. 3 shows the ISSU upgrade method flow charts applied to distributed system that first embodiment of the invention provides.
Fig. 4 shows the ISSU upgrade method flows applied to ISSU supplementary modules that second embodiment of the invention provides Figure.
Fig. 5 shows the block diagram for the electronic equipment that third embodiment of the invention provides.
Fig. 6 shows the box for the ISSU update devices applied to ISSU supplementary modules that fourth embodiment of the invention provides Schematic diagram.
Icon:10- main control board;20- slave control board;30- electronic equipments;31-ISSU supplementary modules;301- processing Device;302- memories;303- buses;304- communication interfaces;400-ISSU update devices;401- initial data receiving modules; 402- target datas obtain module;The first data update modules of 403-;The second data update modules of 404-.
Specific implementation mode
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing The every other embodiment obtained under the premise of going out creative work, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Fig. 1 is please referred to, Fig. 1 shows the first block diagram of distributed system provided in an embodiment of the present invention.Distribution Formula system includes main control board 10, multiple slave control board 20 and electronic equipment 30, main control board 10 and multiple spare masters Control plate 20 is communicated with electronic equipment 30, and main control board 10 is communicated with multiple slave control board 20.
Electronic equipment 30 includes third party database, the third party database and main control board 10 and multiple spare master controls Plate 20 communicates.In the ISSU upgradings for carrying out distributed system, third party database is written in initial data by main control board 10, Third party database is according to the data difference between preset initial data version and target data version, more by the initial data It is newly target data, slave control board 20 reads target data from third party database after edition upgrading and is converted into local Operation data, with ensure ISSU compatibility.
ISSU supplementary modules 31 are equipped in the third party database of electronic equipment 30 so that ISSU supplementary modules 31 can be with By the function of the third party database, for example, increase field, field length variation, delete field etc., by main control board 10 The initial data of write-in is updated to the target data of the edition compatibility after upgrading with ISSU.Third party database can be, but not It is limited to ORACLE, SQL Server, MySQL, Access etc..Electronic equipment 30 may be, but not limited to, PC (personal computer, PC), tablet computer, data server etc..
It should be pointed out that under another application scenarios, electronic equipment 30 is not required, and can not depend on electronics In the case of equipment 30, data are completed to convert between the front and back version of ISSU upgradings, main control board 10 includes the at this time ISSU upgrade methods provided in an embodiment of the present invention may be implemented in three party databases, main control board 10.Fig. 2 is please referred to, Fig. 2 shows The second block diagram of distributed system provided in an embodiment of the present invention is gone out.In the third party database of main control board 10 Equipped with ISSU supplementary modules 31 so that ISSU supplementary modules 31 can be by the work(of the third party database of main control board 10 Can, for example, increase field, field length variation, delete field etc., by the initial data that main control board 10 is written be updated to The target data of edition compatibility after ISSU upgradings.
Furthermore it is also possible to be equipped in 20 corresponding third party database of main control board 10 and multiple slave control board ISSU supplementary modules 31, main control board 10 initial data is written in the ISSU supplementary modules 31 of main control board 10, primary Initial data is synchronized to 20 corresponding ISSU supplementary modules of multiple slave control board by the ISSU supplementary modules 31 of master control borad 10 again In 31 so that 20 corresponding ISSU supplementary modules 31 of slave control board by initial data be updated to ISSU upgrade after version it is simultaneous The target data of appearance.The specific equipment mode of ISSU supplementary modules 31 is not limited thereto, and is further explained below.
First embodiment
Fig. 3 is please referred to, Fig. 3 shows the upgrading sides ISSU applied to distributed system that first embodiment of the invention provides Method flow chart.ISSU upgrade methods applied to distributed system include the following steps:
Step S101, main control board receive the edition upgrading upgraded to distributed system and ask, and according to version Upgrade request obtains the initial data of main control board, and edition upgrading request is synchronized to slave control board by main control board.
In embodiments of the present invention, edition upgrading request may be, but not limited to, user and upgrade to distributed system Confirmation instruction, first will be under the application program of new version when needing distributed system upgrading to new version by early version It is sent to main control board 10 and each slave control board 20, after issuing completion, the pop-up prompt user of main control board 10 carries out The pop-up of edition upgrading, for example, " detecting new version, if Upgrade Now", if user clicks "Yes", primary master control Plate 10 receives the edition upgrading that user upgrades distributed system and asks.
In embodiments of the present invention, main control board 10 receives the upgrade request that user upgrades distributed system Later, edition upgrading request is synchronized to each slave control board 20.Meanwhile main control board 10 is asked according to the edition upgrading It can be the sheet on main control board 10 before carrying out edition upgrading to ask the initial data for obtaining main control board 10, initial data Ground data may include communication data and storage data on main control board 10.
It should be pointed out that after edition upgrading request is synchronized to each slave control board 20 by main control board 10, The initial data on the slave control board 20 can be obtained by any one slave control board 20, and utilizes ISSU supplementary modules 31 The initial data is updated.In embodiments of the present invention, obtaining the initial data of main control board 10 can ensure to obtain The initial data arrived is more complete, can preferably ensure ISSU compatibility.
ISSU supplementary modules are written in initial data by step S102, main control board.
In embodiments of the present invention, the equipment of ISSU supplementary modules 31 gets main control board in third party database After 10 initial data, main control board 10 is auxiliary by initial data write-in ISSU by the database interface of third party database Help module 31.
Step S103, ISSU supplementary module is according to the data difference between preset initial data version and target data version It is different, initial data is updated, target data is obtained.
In embodiments of the present invention, the data difference between initial data version and target data version can be number of targets According to version compared to the changed part of initial data version, for example, increase field, field length variation, delete field etc.. The data difference upgrades what the data structure in front and back version was determined according to ISSU, and in advance in ISSU supplementary modules 31 In be configured so that initial data can be updated to target by ISSU supplementary modules 31 by the function of third party database Data, the target data meet the data characteristics of ISSU new versions.For example, ISSU upgrading before version in storage bgp neighbor letter The partial data structure of breath is:
structstBgpPeer{
structin_addrs_addr;
shortsPeerFlag;
intiAclNumIn;
};
Wherein, address style data s_addr:Indicate the neighbor address of bgp neighbor;Short categorical datas sPeerFlag: Indicate the marker bit on bgp neighbor, the state for characterizing neighbours;Int categorical datas iAclNumIn:It indicates to match on bgp neighbor The entrance ACL information set.
The partial data structure of storage bgp neighbor information is updated in version after ISSU upgradings:
structstBgpPeer{
structin_addrs_addr;
shortsPeerFlag;
intiAclNumIn;
intiAclNumOut;
};
Wherein, int categorical datas iAclNumOut:Indicate the outlet ACL information configured on bgp neighbor.Obviously, data difference It is different to have increased outlet ACL information newly for bgp neighbor, then only it need to increase a field iAclNumOut newly in ISSU supplementary modules 31, And the initial value that the field is arranged is illegal ACL, it is ensured that the compatibility of the front and back data structure of ISSU upgradings.
In embodiments of the present invention, data difference may include in the first difference, the second difference and third difference at least It is a kind of, wherein the first difference provides the field information to be increased of initial data version, and the second difference provides initial data version Field information to be modified, third difference provide the field information to be deleted of initial data version, the first difference, the second difference and the Three differences are determined all in accordance with the data structure in the front and back version of ISSU upgradings, are carried out in ISSU supplementary modules 31 in advance Setting.
If data difference includes the first difference, ISSU supplementary modules 31 are according to preset initial data version and target Field information to be increased is added to initial data, obtains target data by the first difference between versions of data.For example, data Difference is that bgp neighbor has increased outlet ACL information newly, and has increased a field newly in advance in ISSU supplementary modules 31 IAclNumOut, and the initial value that the field is arranged is illegal ACL, then when ISSU is written in initial data by main control board 10 After supplementary module 31, ISSU supplementary modules 31 can add field iAclNumOut, the word in the bgp neighbor of initial data The initial value of section is defaulted as illegal ACL.
If data difference includes the second difference, ISSU supplementary modules 31 are according to preset initial data version and target The second difference between versions of data is modified to the field to be modified of initial data using field information to be modified, is obtained Target data.For example, ISSU upgrading before version in storage bgp neighbor information partial data structure be:
structstBgpPeer{
structin_addrs_addr;
shortsPeerFlag;
intiAclNumIn;
};
The partial data structure of storage bgp neighbor information is updated in version after ISSU upgradings:
structstBgpPeer{
structin_addrs_addr;
intsPeerFlag;
intiAclNumIn;
};
Wherein, int categorical datas sPeerFlag:Indicate the marker bit on bgp neighbor, the state for characterizing neighbours.It is aobvious So, data difference is that neighbor state is changed to int by bgp neighbor from short, has increased outlet ACL information newly, then only need to be in ISSU The data type of sPeerFlag is changed to int types in supplementary module 31.When initial data is written main control board 10 After ISSU supplementary modules 31, ISSU supplementary modules 31 can be directly by the neighbor state of bgp neighbor in initial data from short It is changed to int.
If data difference includes third difference, ISSU supplementary modules 31 are according to preset initial data version and target Third difference between versions of data is deleted the field to be deleted of initial data using field information to be deleted, obtains number of targets According to.For example, ISSU upgrading before version in storage bgp neighbor information partial data structure be:
structstBgpPeer{
structin_addrs_addr;
shortsPeerFlag;
intiAclNumIn;
intiAclNumOut;
};
The partial data structure of storage bgp neighbor information is updated in version after ISSU upgradings:
structstBgpPeer{
structin_addrs_addr;
shortsPeerFlag;
intiAclNumIn;
};
Obviously, data difference is that bgp neighbor deletes outlet ACL information, then need to only be deleted in ISSU supplementary modules 31 Field iAclNumOut.After supplementary module 31 ISSU are written in initial data by main control board 10, ISSU supplementary modules 31 Directly the field iAclNumOut of bgp neighbor in initial data can be deleted.
Step S104, multiple slave control board realize upgrading according to edition upgrading request and target data.
In embodiments of the present invention, main control board 10 by edition upgrading request be synchronized to multiple slave control board 20 it Afterwards, multiple slave control board 20 ask the application program of operation new version according to the edition upgrading, carry out edition upgrading.It is spare Master control borad 20 is upgraded to after new version, and target data is read from ISSU supplementary modules 31;Slave control board 20 reads mesh After marking data, the initial data on the slave control board 20 is replaced with target data, i.e., it is spare target data to be converted into this The local operation data of master control borad 20, operation data include the local communication data of slave control board 20 and store data, so that New version after the slave control board 20 upgrading and data compatibility.
As an implementation, slave control board 20 is upgraded to after new version, is read from ISSU supplementary modules 31 The slave control board 20 that the triggering mode of target data may be, but not limited to, completion edition upgrading is sent out to ISSU supplementary modules 31 Read requests are sent, to obtain target data from ISSU supplementary modules 31;Or initial data is updated to by ISSU supplementary modules 31 After target data, which is sent completely instruction to slave control board 20, and slave control board 20 is receiving After completion instruction, target data is read from ISSU supplementary modules 31.
Step S105 selects one as target main control board, by mesh from the multiple slave control board for realizing upgrading It marks main control board and main control board carries out masterslave switchover.
In embodiments of the present invention, the selection of target main control board can foundation, but be not limited to each slave control board The operational reliability etc. of communication distance, each slave control board 20 between 20 and main control board 10 is selected.For example, choosing It selects in multiple slave control board 20 and is used as the primary master control of target with the shortest slave control board 20 of 10 communication distance of main control board Plate, or select in multiple slave control board 20 the highest slave control board 20 of operational reliability as target main control board, The selection mode of target main control board is not limited thereto.
In embodiments of the present invention, from realize upgrading multiple slave control board 20 in select target main control board it Afterwards, the target main control board and main control board 10 are subjected to masterslave switchover, so as to realize the target main control board of upgrading As new main control board 10, the main control board 10 for taking over script works.
Step S106, main control board realize upgrading according to edition upgrading request and target data.
In embodiments of the present invention, after target main control board and main control board 10 carry out masterslave switchover, primary master Plate 10 is controlled to ask to carry out edition upgrading according to edition upgrading.Main control board 10 is upgraded to after new version, and mould is assisted from ISSU Target data is read in block 31, and after reading target data, the original on the main control board 10 is replaced with target data Beginning data, that is, target data is converted into the local operation data of the main control board 10, so that the main control board 10 New version after upgrading and data compatibility.
As an implementation, main control board 10 is upgraded to after new version, is read from ISSU supplementary modules 31 The main control board 10 that the triggering mode of target data may be, but not limited to, completion edition upgrading is sent out to ISSU supplementary modules 31 Read requests are sent, to obtain target data from ISSU supplementary modules 31;Or initial data is updated to by ISSU supplementary modules 31 After target data, which is sent completely instruction to main control board 10, and main control board 10 is receiving After completion instruction, target data is read from ISSU supplementary modules 31.Specific triggering mode is not limited thereto.
In embodiments of the present invention, data are upgraded in ISSU by introducing ISSU supplementary modules 31 in a distributed system Conversion is completed between front and back version, compared with prior art, is had the advantages that:
First, the operation carried out to data is all concentrated in ISSU supplementary modules 31, answering for programming is reduced Miscellaneous degree;
Second, ISSU supplementary module 31 need not realize complicated service logic, it is only necessary to simple mathematical logic is handled, What therefore ISSU supplementary modules 31 can design is very succinct;
Third, using ISSU upgrade methods provided in an embodiment of the present invention, user can be real-time according to practical business demand Position and the size for adjusting data make program more suit business intention, improve the maintainability of program.
Second embodiment
Fig. 4 is please referred to, Fig. 4 shows the ISSU liters applied to ISSU supplementary modules 31 that second embodiment of the invention provides Grade method flow diagram.ISSU upgrade methods applied to ISSU supplementary modules 31 include the following steps:
Step S201 receives the initial data that main control board is sent;Wherein, initial data is main control board version response What this upgrade request obtained, and edition upgrading request is synchronized to slave control board to realize slave control board by main control board Edition upgrading.
In embodiments of the present invention, main control board 10 receives the edition upgrading that user upgrades distributed system After request, according to the initial data of the edition upgrading acquisition request main control board 10, and initial data is sent to ISSU Supplementary module 31, meanwhile, edition upgrading request is synchronized to each slave control board 20 by main control board 10.Initial data can May include the communication data on main control board 10 to be the local data before carrying out edition upgrading on main control board 10 With storage data.
Step S202, according to the data difference between preset initial data version and target data version, to original number According to being updated, target data is obtained.
In embodiments of the present invention, the data difference of initial data version and target data version can be target data version This is compared to the changed part of initial data version, for example, increasing field, field length variation, deletion field etc..The number It is determined according to the data structure in the front and back version of ISSU upgradings by developer according to difference, and is assisted in advance in ISSU It is configured in module 31 so that ISSU supplementary modules 31 can update initial data by the function of third party database For target data, which meets the data characteristics of ISSU new versions.
In embodiments of the present invention, data difference may include in the first difference, the second difference and third difference at least It is a kind of, wherein the first difference provides the field information to be increased of initial data version, and the second difference provides initial data version Field information to be modified, third difference provide the field information to be deleted of initial data version, the first difference, the second difference and the Three differences are determined by developer according to the data structure in the front and back version of ISSU upgradings, assist mould in ISSU in advance It is configured in block 31.
As an implementation, if data difference includes the first difference, ISSU supplementary modules 31 are according to preset Field information to be increased is added to initial data, obtained by the first difference between initial data version and target data version Target data;If data difference includes the second difference, ISSU supplementary modules 31 are according to preset initial data version and mesh The second difference between versions of data is marked, is modified, is obtained to the field to be modified of initial data using field information to be modified To target data;If data difference includes third difference, ISSU supplementary modules 31 according to preset initial data version and Third difference between target data version is deleted the field to be deleted of initial data using field information to be deleted, obtains mesh Mark data.
The read requests of the slave control board of edition upgrading are completed in step S203, response, and target is sent to slave control board Data are to realize the data update of slave control board.
In embodiments of the present invention, main control board 10 by edition upgrading request be synchronized to multiple slave control board 20 it Afterwards, multiple slave control board 20 ask to carry out edition upgrading according to the edition upgrading.Slave control board 20 is upgraded to new version Later, read requests are sent to ISSU supplementary modules 31;The slave control board of edition upgrading is completed in the response of ISSU supplementary modules 31 20 read requests send target data so that slave control board 20 carries out data according to the target data to slave control board 20 Update, so that the new version after the slave control board 20 upgrading and data compatibility.
The read requests of the main control board after masterslave switchover are completed in step S204, response, and mesh is sent to main control board Data are marked to realize the data update of main control board, wherein masterslave switchover is in main control board and the one of completion data update It is realized between a slave control board.
In embodiments of the present invention, after the completion of multiple slave control board 20 upgrade, from the multiple spare master controls for realizing upgrading A slave control board 20 and main control board 10 is selected to carry out masterslave switchover in plate 20, after the completion of masterslave switchover, primary master control Plate 10 sends read requests to ISSU supplementary modules 31;The main control board after masterslave switchover is completed in the response of ISSU supplementary modules 31 10 read requests send target data to realize the data update of main control board 10 to main control board 10.
It should be pointed out that ISSU supplementary modules 31 are equally applicable in the distributed system for needing progress ISSU degradations In, the equipment in distributed system carries out ISSU and is downgraded into after new version, and ISSU supplementary modules 31 are for completing ISSU degradations Data conversion between middle new version and early version, ISSU demotion processes and ISSU upgrade methods one provided in an embodiment of the present invention It causes, details are not described herein, realizes that ISSU degrades using ISSU supplementary modules 31, belongs to the protection domain of the embodiment of the present invention.
In embodiments of the present invention, by ISSU supplementary modules 31, ISSU new versions during upgrading and old can be automatically performed Data conversion between version.When the equipment in distributed system needs to carry out the upgradings of the ISSU between new early version or degrades When, user only needs to run ISSU supplementary modules 31 in third party database, and the content adaptation in initial data is changed, is made Obtained target data meets the data characteristics of new version.Equipment in distributed system carry out ISSU upgradings at new version it Afterwards, the target data of storage is read out from third party's data, and reverts to local operation data, to complete entire ISSU The data backup procedure of upgrading.Using ISSU upgrade methods provided in an embodiment of the present invention, it can ensure ISSU compatibility Simultaneously, additionally it is possible to greatly reduce the complexity of Current software design.
3rd embodiment
Fig. 5 shows the block diagram for the electronic equipment 30 that third embodiment of the invention provides.The electronic equipment 30 wraps Include processor 301, memory 302, bus 303 and communication interface 304, the processor 301, memory 302 and communication interface 304 are connected by bus 303;Processor 301 is for executing the executable module stored in memory 302, such as computer journey Sequence.
Wherein, memory 302 may include high-speed random access memory (RAM:Random Access Memory), May further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely A few communication interface 304 (can be wired or wireless) is realized logical between the system network element and at least one other network element Letter connection.
Bus 303 can be isa bus, pci bus or eisa bus etc..It is only indicated with a four-headed arrow in Fig. 5, but It is not offered as only a bus or a type of bus.
Wherein, memory 302 is for storing program, ISSU update devices 400 as shown in FIG. 6.The ISSU update devices 400 can be stored in the memory 302 or be solidificated in institute including at least one in the form of software or firmware (firmware) State the software function module in the operating system of electronic equipment 30.The processor 301 executes institute after receiving and executing instruction Program is stated to realize the ISSU upgrade methods of second embodiment of the invention announcement.
Processor 301 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 301 or the instruction of software form.On The processor 301 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 (DSP), special Integrated circuit (ASIC), field programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor Logical device, discrete hardware components.The storage medium is located at memory 302, and processor 301 reads the information in memory 302, The step of above method being completed in conjunction with its hardware.
The present embodiment additionally provides a kind of computer readable storage medium, is stored thereon with computer program, computer journey The ISSU upgrade methods that second embodiment of the invention discloses are realized when sequence is executed by processor 301.
Fourth embodiment
Fig. 6 is please referred to, Fig. 6 shows the module map for the ISSU update devices 400 that fourth embodiment of the invention provides.It is described ISSU update devices 400 are stored in the memory 302 of the electronic equipment 30 of third embodiment of the invention offer, and are set by electronics Standby 30 processor 301 executes.The ISSU update devices 400 include initial data receiving module 401, target data acquisition mould Block 402, the first data update module 403 and the second data update module 404.
Initial data receiving module 401, the initial data for receiving main control board transmission;Wherein, initial data is Main control board respond version upgrade request obtain, and edition upgrading request by main control board be synchronized to slave control board with Realize the edition upgrading of slave control board.
In embodiments of the present invention, initial data receiving module 401 can execute step S201.
Target data obtains module 402, for according to the number between preset initial data version and target data version According to difference, initial data is updated, obtains target data.
In embodiments of the present invention, target data, which obtains module 402, can execute step S202.
First data update module 403, the read requests of the slave control board for respond completion edition upgrading, to spare Master control borad sends target data to realize the data update of slave control board.
In embodiments of the present invention, the first data update module 403 can execute step S203.
Second data update module 404, the read requests for responding the main control board after completing masterslave switchover, to master Target data is sent to realize the data update of main control board with master control borad, wherein masterslave switchover is in main control board and complete It is realized between a slave control board of data update.
In embodiments of the present invention, the second data update module 404 can execute step S204.
It should be pointed out that not depending on electronic equipment 30, by data, the completion between the front and back version of ISSU upgradings is converted Application scenarios under, main control board 10 or slave control board 20 have to be set with the electronics provided in third embodiment of the invention Standby 30 identical structure and functions.That is, main control board 10 or slave control board 20 include processor 301, storage Device 302, bus 303 and communication interface 304 are stored with above-mentioned ISSU update devices 400 in memory 302, when ISSU upgrades When device 400 is executed by processor 301 so that processor 301 realizes the ISSU upgrade methods that second embodiment of the invention discloses.
It should be pointed out that interface signified in the embodiment of the present invention is routine interface, by caller interface, with Realize the program function under corresponding routine interface.
In conclusion a kind of ISSU upgrade methods provided in an embodiment of the present invention and device, are applied to distributed system, point Cloth system includes main control board, third party database and multiple slave control board, multiple slave control board and primary master control Board communications, third party database are communicated with main control board and multiple slave control board, and ISSU is equipped in third party database Supplementary module, the method includes:Main control board receives the edition upgrading that user upgrades distributed system and asks, and According to edition upgrading acquisition request main control board initial data, and edition upgrading request be synchronized to by main control board it is spare Master control borad;ISSU supplementary modules are written in initial data by main control board;ISSU supplementary modules are according to preset initial data version Originally the data difference between target data version, initial data is updated, target data is obtained;Multiple slave control board Upgrading is realized according to edition upgrading request and target data;From realize upgrading multiple slave control board in select one as Target main control board and main control board are carried out masterslave switchover by target main control board;Main control board is according to version liter Grade request and target data realize upgrading.The embodiment of the present invention passes through the third that is communicated with main control board and slave control board Party database allows users to data completing conversion between the front and back version of ISSU upgradings, to ensure ISSU compatibilities While property, the complexity of Software for Design is reduced.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart in attached drawing and block diagram Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part for the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be to be different from The sequence marked in attached drawing occurs.For example, two continuous boxes can essentially be basically executed in parallel, they are sometimes It can execute in the opposite order, this is depended on the functions involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use function or the dedicated base of action as defined in executing It realizes, or can be realized using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed 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 People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.It needs Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities The relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and is explained.

Claims (10)

1. a kind of ISSU upgrade methods, which is characterized in that be applied to third party database, the third party database and primary master It controls plate and slave control board communication, the slave control board is communicated with the main control board, the method includes:
Receive the initial data that the main control board is sent;Wherein, the initial data is that main control board responds version liter Grade acquisition request, and to be synchronized to the slave control board by the main control board described to realize for edition upgrading request The edition upgrading of slave control board;
According to the data difference between preset initial data version and target data version, the initial data is carried out more Newly, target data is obtained;
Response complete edition upgrading the slave control board read requests, to the slave control board send target data with Realize the data update of the slave control board.
2. the method as described in claim 1, which is characterized in that the data difference includes the first difference, and described first poor The field information to be increased of the different offer initial data version;
The data difference according between preset initial data version and target data version carries out the initial data The step of update includes:
According to the first difference between preset initial data version and target data version, the field information to be increased is added The initial data is added to, target data is obtained.
3. the method as described in claim 1, which is characterized in that the data difference includes the second difference, and described second poor The field information to be modified of the different offer initial data version;
The data difference according between preset initial data version and target data version carries out the initial data Update, the step of obtaining target data include:
According to the second difference between preset initial data version and target data version, the field information to be modified is utilized It modifies to the field to be modified of the initial data, obtains target data.
4. the method as described in claim 1, which is characterized in that the data difference includes third difference, and the third is poor The field information to be deleted of the different offer initial data version;
The data difference according between preset initial data version and target data version carries out the initial data Update, the step of obtaining target data include:
According to the third difference between preset initial data version and target data version, the field information to be deleted is utilized The field to be deleted for deleting the initial data, obtains target data.
5. the method as described in claim 1, which is characterized in that the method further includes:
The read requests of the main control board after masterslave switchover are completed in response, and target data is sent to the main control board To realize the data update of the main control board, wherein masterslave switchover the main control board and the completion data more It is realized between a new slave control board.
6. a kind of ISSU update devices, which is characterized in that be applied to third party database, the third party database and primary master It controls plate and slave control board communication, the slave control board is communicated with the main control board, described device includes:
Initial data receiving module, the initial data sent for receiving the main control board;Wherein, the initial data is Main control board responds what version upgrade request obtained, and edition upgrading request be synchronized to by the main control board it is described Slave control board is to realize the edition upgrading of the slave control board;
Target data obtains module, is used for according to the data difference between preset initial data version and target data version, The initial data is updated, target data is obtained;
First data update module, the read requests of the slave control board for respond completion edition upgrading, to described standby Target data is sent to realize the data update of the slave control board with master control borad.
7. device as claimed in claim 6, which is characterized in that the data difference includes the first difference, and described first poor The field information to be increased of the different offer initial data version;The target data obtains module and is specifically used for:
According to the first difference between preset initial data version and target data version, the field information to be increased is added The initial data is added to, target data is obtained.
8. device as claimed in claim 6, which is characterized in that the data difference includes the second difference, and described second poor The field information to be modified of the different offer initial data version;The target data obtains module and is specifically used for:
According to the second difference between preset initial data version and target data version, the field information to be modified is utilized It modifies to the field to be modified of the initial data, obtains target data.
9. device as claimed in claim 6, which is characterized in that the data difference includes third difference, and the third is poor The field information to be deleted of the different offer initial data version;The target data obtains module and is specifically used for:
According to the third difference between preset initial data version and target data version, the field information to be deleted is utilized The field to be deleted for deleting the initial data, obtains target data.
10. device as claimed in claim 6, which is characterized in that the ISSU update devices further include:
Second data update module, the read requests for respond the main control board after completion masterslave switchover, to described Main control board sends target data to realize the data update of the main control board, wherein masterslave switchover is described primary It is realized between master control borad and a slave control board for completing data update.
CN201711459205.6A 2017-12-28 2017-12-28 ISSU upgrade methods and device Pending CN108459869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711459205.6A CN108459869A (en) 2017-12-28 2017-12-28 ISSU upgrade methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711459205.6A CN108459869A (en) 2017-12-28 2017-12-28 ISSU upgrade methods and device

Publications (1)

Publication Number Publication Date
CN108459869A true CN108459869A (en) 2018-08-28

Family

ID=63220866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711459205.6A Pending CN108459869A (en) 2017-12-28 2017-12-28 ISSU upgrade methods and device

Country Status (1)

Country Link
CN (1) CN108459869A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220507A (en) * 2021-04-28 2021-08-06 杭州迪普科技股份有限公司 Version consistency checking method and device for double-master control system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559065A (en) * 2013-11-13 2014-02-05 广东欧珀移动通信有限公司 Method and system for OTA (Over-the-Air Technology) upgrade
CN104320475A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Equipment upgrading method and device
WO2016078362A1 (en) * 2014-11-21 2016-05-26 中兴通讯股份有限公司 Method and device for upgrade board by board in dual master control isolation
WO2016177127A1 (en) * 2015-10-09 2016-11-10 中兴通讯股份有限公司 Single board upgrading method and device
CN106156052A (en) * 2015-03-27 2016-11-23 中兴通讯股份有限公司 Terminal data upgrade method and device
CN106469069A (en) * 2015-08-17 2017-03-01 中兴通讯股份有限公司 A kind of version upgrading method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559065A (en) * 2013-11-13 2014-02-05 广东欧珀移动通信有限公司 Method and system for OTA (Over-the-Air Technology) upgrade
CN104320475A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Equipment upgrading method and device
WO2016078362A1 (en) * 2014-11-21 2016-05-26 中兴通讯股份有限公司 Method and device for upgrade board by board in dual master control isolation
CN106156052A (en) * 2015-03-27 2016-11-23 中兴通讯股份有限公司 Terminal data upgrade method and device
CN106469069A (en) * 2015-08-17 2017-03-01 中兴通讯股份有限公司 A kind of version upgrading method and system
WO2016177127A1 (en) * 2015-10-09 2016-11-10 中兴通讯股份有限公司 Single board upgrading method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220507A (en) * 2021-04-28 2021-08-06 杭州迪普科技股份有限公司 Version consistency checking method and device for double-master control system
CN113220507B (en) * 2021-04-28 2023-08-22 杭州迪普科技股份有限公司 Version consistency checking method and device for double-master control system

Similar Documents

Publication Publication Date Title
CN104573093B (en) A kind of method and apparatus for managing file directory
CN111221726A (en) Test data generation method and device, storage medium and intelligent equipment
EP3252592A1 (en) Method and device for storing and reading data
CN108737325A (en) A kind of multi-tenant data partition method, apparatus and system
CN104391725A (en) Page display method and page display device
CN108388604A (en) User right data administrator, method and computer readable storage medium
CN110162525A (en) Read/write conflict solution, device and storage medium based on B+ tree
US20170316159A1 (en) System And Method For Updating Customer Data
CN109447820B (en) Data processing method, device, computer equipment and storage medium
CN105260404A (en) Time sequence data storage method and apparatus
CN108932286B (en) Data query method and device
CN106406952B (en) Electric terminal and application program management apparatus and method
CN108521458A (en) Application platform access method and device
CN108363684A (en) List creation method, device and server
CN108270626A (en) A kind of method, apparatus, equipment and the readable storage medium storing program for executing of upgrade server firmware
CN107463341A (en) Method for deleting, device and the mobile terminal of FLASH chip
CN112148337A (en) Firmware upgrading method and device
CN107423395A (en) Navigation data processing system
CN107590682A (en) Advertisement placement method, server, hotspot device and system
CN106789236A (en) A kind of method of the FOTA remote onlines upgrading of fusion WiFiP2P
CN103442085A (en) Method, terminal, server and system used for maintaining user information
CN110187872A (en) A kind of BIOS development approach, system and electronic equipment and storage medium
CN108459869A (en) ISSU upgrade methods and device
CN114444478A (en) Voucher visualization method and device, electronic equipment and storage medium
CN102317942B (en) Methods and devices for generating theme's properties

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

Application publication date: 20180828

WD01 Invention patent application deemed withdrawn after publication