CN101079758A - Data check method, device and system - Google Patents

Data check method, device and system Download PDF

Info

Publication number
CN101079758A
CN101079758A CN 200710123223 CN200710123223A CN101079758A CN 101079758 A CN101079758 A CN 101079758A CN 200710123223 CN200710123223 CN 200710123223 CN 200710123223 A CN200710123223 A CN 200710123223A CN 101079758 A CN101079758 A CN 101079758A
Authority
CN
China
Prior art keywords
transaction identifier
data
executed transaction
veneer
system master
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.)
Granted
Application number
CN 200710123223
Other languages
Chinese (zh)
Other versions
CN100583787C (en
Inventor
郭子玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200710123223A priority Critical patent/CN100583787C/en
Publication of CN101079758A publication Critical patent/CN101079758A/en
Application granted granted Critical
Publication of CN100583787C publication Critical patent/CN100583787C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a data checking method and checking device and system of two kinds of data, which is characterized by the following: adopting main control unit and single board to maintain the allocated affair mark separately; affirming the consistence of allocating data between main control unit and single board; affirming the normal business on the single board without influencing and generating abnormal data processing for a long time due to inconsistent data; improving the satisfaction for user obviously.

Description

The check method of data, Apparatus and system
Technical field
The present invention relates to the communications field, be specifically related to a kind of check method, device and system of data.
Background technology
Because the hardware handles capabilities limits, communication system often adopts distributed design, and just system is made up of a plurality of processor systems (as the polylith veneer).For satisfying the access performance demand in distributed when design, veneer need just may have access to data in this locality, and this has just produced the distributed needs of data, and just a piece of data need be distributed on a plurality of veneers simultaneously.In this case,, may cause system handles fault or unusual if data are inconsistent between each veneer, at this moment just need be by system master unit shown in Figure 1 with its data as benchmark, each veneer is carried out data management.
As shown in Figure 1, for example, for configuration data, a veneer data file has all been safeguarded at every veneer in the system master unit, and veneer is then preserved portion self in this locality veneer data file starts from this locality fast with support.When system master cell failure or communication failure, veneer can be used local veneer data file of being preserved and start, and the veneer data file of the corresponding veneer that this veneer data file may be safeguarded with the system master unit is inconsistent, and this makes that the corresponding veneer data of being safeguarded in data that veneer is moved and the system master unit are inconsistent after startup.In addition, when system master unit during to the link occurs fault of veneer direction, in the system master unit, can't be issued to veneer at the data of veneer, this must cause the data of being preserved on data on the system master unit and the veneer inconsistent.The inconsistent problem of above-mentioned data will cause the veneer possibly can't operate as normal.
For the data consistency on checking system main control unit and the veneer, carry out flow process shown in Figure 2 at present usually to realize data check.As seen from Figure 2, the system master unit sends the data check request to veneer, veneer at the data of each object in its internal memory (for example, record) calculate each verification and.One two tuple of each object identity and verification thereof and formation, all two tuples of veneer side are carried on to verify in the response message and send to the system master unit; The system master unit according to the verification of these veneer data of being safeguarded in the local internal memory of the algorithm computation identical with veneer and, and each verification of relatively receiving and and each verification of self calculating and, to judge the whether consistent of self maintained data and veneer data.
Though the data of can the check system main control unit being safeguarded by above-mentioned data check process and the consistency of veneer data, but need be on veneer and system master unit respectively at the CRC check of the data of each object of veneer data computation and, cause this data check process very consuming time, and take more cpu resource, for this reason, operating personnel generally can be chosen in system and carry out the data check process when idle relatively, regular traffic is impacted avoiding, this just is found after can making the inconsistent situation of data keep the long period on the contrary, thereby very easily produces problems such as the veneer data processing is unusual.
Summary of the invention
The embodiment of the invention is to provide a kind of check method of data, can finish the consistency check of the data of being safeguarded in second side and first side fast.
The embodiment of the invention is to provide a kind of check device of data, is separately positioned on second side and first side, can finish the consistency check of its data of safeguarding fast.
The embodiment of the invention is to provide a kind of distributed system, can finish the consistency check of the data of being safeguarded between veneer side and the system master cell side fast.
For achieving the above object, the technical scheme of the embodiment of the invention is achieved in that
A kind of method of data check, relatively second executed Transaction Identifier of second side and the first executed Transaction Identifier of first side determine according to the consistency between the described Transaction Identifier whether first side is consistent with the data of second side;
Wherein, the described second executed Transaction Identifier is at the operation of the second side current data or the current command and set up, and the described first executed Transaction Identifier is set up at the last data of first side or last command operation.
A kind of device of realizing data check is characterized in that, described device comprises,
Memory stores at the second side current data or the current command and operates and the second executed Transaction Identifier of foundation;
Comparison module, relatively from memory, read the described second executed Transaction Identifier and from the first executed Transaction Identifier of first side, determine according to the consistency between the described Transaction Identifier whether first side is consistent with the data of second side, output comparative result when consistent; Wherein, the described first executed Transaction Identifier is set up at the last data of first side or last command operation.
A kind of device of realizing data check comprises,
Memory stores the first executed Transaction Identifier of setting up at the last data of first side or last command operation;
The Transaction Identifier distribution module is operated and is set up described first Transaction Identifier at the first side current data or the current command, and is saved to described memory as the first executed Transaction Identifier of renewal,
First comparison module, with the first executed Transaction Identifier of described renewal with from the second executed Transaction Identifier of second side relatively, determine according to the consistency between the described Transaction Identifier whether second side is consistent with the data of first side, output comparative result when consistent; Wherein, the described second executed Transaction Identifier is operated and is set up at the second side current data or the current command.
A kind of distributed system comprises a system master unit and several veneers by its management at least in this system, it is characterized in that, described system master unit comprises,
First memory stores the first executed Transaction Identifier of setting up at the last data of system master cell side or last command operation;
Described veneer comprises,
Second memory stores at veneer side current data or the current command and operates and the second executed Transaction Identifier of foundation;
Described system master unit also comprises,
The Transaction Identifier distribution module is operated and is set up described first Transaction Identifier at veneer side current data or the current command, and is saved to described first memory as the first executed Transaction Identifier of renewal,
First comparison module, with the first executed Transaction Identifier of described renewal with from the second executed Transaction Identifier of veneer side relatively, determine according to the consistency between the described Transaction Identifier whether the veneer side is consistent with the data of system master cell side, output comparative result when consistent;
Described veneer also comprises, comparison module, be used for the described second executed Transaction Identifier that reads from memory and from the first executed Transaction Identifier of system master cell side, and compare, determine according to the consistency between the described Transaction Identifier whether the veneer side is consistent with the data of system master cell side, output comparative result when consistent.
The method and apparatus that the embodiment of the invention provided, system can avoid the regular traffic on second side is affected as far as possible, more can not keep the long period and produce problems such as data processing is unusual according to inconsistent situation by factor, but by the Transaction Identifier between first side and second side relatively number, can finish the consistency check of the data that second side and first side are safeguarded fast, minimizing in the verification process to the taking of resource, improve user satisfaction.
Description of drawings
Fig. 1 is system data management schematic diagram;
Fig. 2 is that the configuration data of prior art is verified flow chart;
Fig. 3 is the system configuration data snapshot schematic diagram of the embodiment of the invention;
Fig. 4 is the schematic diagram of concrete transaction information in the embodiment of the invention; Fig. 5 is the Transaction Identifier storage format schematic diagram in the system master unit;
Fig. 6 is that the configuration data of online data layoutprocedure in one embodiment of the invention is verified flow chart;
Fig. 7 is that the configuration data during single board starting is verified flow chart in another embodiment of the present invention;
Fig. 8 is for judging whether to obtain the flow chart of inconsistent data details in one embodiment of the invention;
Fig. 9 is the flow chart that obtains about the inconsistent data details;
Figure 10 is the schematic diagram of the data consistency check device of system master unit;
The data consistency check device schematic diagram of the system master unit of the details subelement that Figure 11 has obtained inconsistent data for the embodiment of the invention has increased;
Figure 12 is the schematic diagram of the veneer data consistency check device of the embodiment of the invention.
Embodiment
Below in conjunction with drawings and the specific embodiments to the detailed description of the invention.
For clearly describing specific embodiments of the invention, below to verify as the system master unit of first side and to be that example is illustrated as the consistency of configuration data between the veneer of second side, institute is understood that, specific embodiments of the invention are not limited to verify the consistency of configuration data, and are suitable equally for needing to verify conforming any data between second side and first side.
In software running process,, need may have access to configuration data in veneer this locality for satisfying the access performance demand.Owing to involving reasons such as data volume, veneer quantity, it is feasible hardly that the configuration data between the veneer compares mutually, normally compares respectively with the configuration data of the configuration data in the system master unit as benchmark and each veneer.
Behind the system master unit power-up initializing first time, the set of the minimal configuration data that the system of foundation can normally move, this is integrated into the primary data that the system master cell side forms system configuration data.After system configuration data changes at every turn, all form corresponding data snapshot.As shown in Figure 3, Fig. 3 is a system configuration data snapshot schematic diagram, forms system configuration data snapshot 0 constantly at t0, forms system configuration data snapshot 1 constantly at t1 ... form system configuration data snapshot n constantly at tn.The content of these data snapshot forms data file and storage.
Because the variation of follow-up system configuration data can only be undertaken by configuration order, data snapshot after each configuration order runs succeeded is different with the last data snapshot, in other words, data snapshot is by primary data, a series of configuration order and set up, therefore, at least the Transaction Identifier (affairs ID) that comprises transaction number at the data configuration operation setting of configuration order correspondence, wherein, transaction number is to be primary data, every one number that configuration order is provided with, and can adopt and hold continuous incremental manner distribution.Transaction Identifier also can be used as sign and the binding of corresponding data file and the preservation of data snapshot except preserving in internal memory.Preferably, Transaction Identifier also can further comprise timestamp, in order to the rise time of designation data snapshot, to increase the uniqueness of Transaction Identifier, the appearance Transaction Identifier conflict on the veneer that is controlled by the other system main control unit that avoid being inserted into the native system main control unit and former.Timestamp is generated when the order of veneer down distributing configuration data in the system master unit usually, and with Transaction Identifier, configuration data one in the same way veneer issue.
Why this notion of Transaction Identifier is proposed, be because the data between system master unit and the veneer inconsistent be to fail to cause synchronously by data configuration.Therefore, whether realized data configuration operation (that is: data configuration has consistency) synchronously, just can determine the data consistency between system master unit and the veneer apace as long as can know system master unit and veneer.On the other hand, no matter be that system master unit or veneer can be considered as new affairs with each data configuration operation; Therefore, only need be each data configuration operated allocated Transaction Identifier, and the consistency of the Transaction Identifier of the Transaction Identifier of comparison system affairs that main control unit is realized and affairs that veneer is realized, just can determine the consistency of data configuration operation between system master unit and the veneer, and then finally determine the data consistency between system master unit and the veneer.As seen, just can directly draw the consistency of data by the consistency of Transaction Identifier.
Referring to shown in Figure 4, Fig. 4 is the schematic diagram of concrete transaction information in the embodiment of the invention.The system master unit links to each other with veneers such as veneer 1... veneer n respectively.In actual applications, the operating system that is adopted for the system master unit without limits, as: the system master unit is based on (SuSE) Linux OS, veneer is based on operating systems such as Linux, vxworks, for whether adopting database to preserve data also without limits, as: system master unit and veneer all adopt the main memory DBM data.
Preserve the veneer transaction information of each veneer in the system master unit, described veneer transaction information comprises veneer address, executed Transaction Identifier and response transactions sign, wherein, the described veneer address configuration data that obtains corresponding veneer for the system master unit; Described executed Transaction Identifier is in system master unit successful execution configuration order, promptly, after configuration data forever has been stored in the system master unit, generates and preserve when carrying out the data configuration operation, and be issued to veneer with configuration data at system master cell command veneer; Described response transactions sign system master unit receives that the Transaction Identifier that responds from veneer preserves.
Above-mentioned veneer transaction information can be kept in the transaction number file, storage format as shown in Figure 5, Fig. 5 shows the form of system master unit store transaction sign.As seen from Figure 5, the latest transaction sign that the system master unit stores the veneer number and distributed, wherein, the latest transaction sign stores all Transaction Identifiers that distribute in the systematic master control board, the overall situation that the expression Transaction Identifier distributes; Also store the transaction information of each veneer in order, comprise the address, executed Transaction Identifier of veneer, response transactions sign.
In the veneer side, when veneer is used the configuration data receive and is carried out the configuration of self, the up-to-date described executed Transaction Identifier of receiving is preserved as this veneer executed Transaction Identifier, simultaneously this Transaction Identifier is returned to the system master unit in the mode that responds.The executed Transaction Identifier of this preservation is preserved in the veneer data file that veneer self is preserved as the transaction information of veneer.
Referring to Fig. 6, Fig. 6 is that the configuration data of online data layoutprocedure in one embodiment of the invention is verified flow chart, and this flow process may further comprise the steps:
Step 501: the system master unit receives the data configuration order at veneer, generally includes the configuration data at this veneer in this order.
Step 502: the system master unit be the data configuration order of receiving at this data configuration operated allocated first Transaction Identifier, and carry out described data configuration order at the veneer data of self safeguarding.
Step 503: the system master unit upgrades the first executed Transaction Identifier of preserving from as described veneer with described first Transaction Identifier that distributes, and the first executed Transaction Identifier after will upgrading writes in veneer data file and/or the transaction number file; Also upgrade the veneer data file of preserving from as this veneer.
Step 504: the first executed Transaction Identifier before the system master unit upgrades described veneer and described first Transaction Identifier of distribution are carried at the first executed Transaction Identifier, first Transaction Identifier and the configuration data that send in the data configuration message before the described renewal of described veneer together with the configuration data in the described data configuration order and normally are carried on and send to described veneer in the data configuration message.
Step 505: when veneer is received from the first executed Transaction Identifier before the described renewal of system master unit, first Transaction Identifier and configuration data, judge whether the current second executed Transaction Identifier of self preserving is consistent with the first executed Transaction Identifier before the described renewal of receiving.
Step 506: at described decision operation, if judged result is consistent, illustrate that the situation of communication loss did not take place configuration order, the last performed data configuration of veneer is consistent with the data configuration that system master cell command veneer is carried out, therefore veneer determines that the data of self and the data of system master unit have consistency, and then use the described configuration data of receiving and self carrying out the data configuration operation, veneer also upgrades self second executed Transaction Identifier of storage originally with first Transaction Identifier of receiving usually; Otherwise, illustrate that the data configuration that last performed data configuration of veneer and system master cell command veneer are carried out is inconsistent, therefore veneer determines that the data of self and the data of system master unit do not have consistency, and does not use the described configuration data of receiving and carry out data configuration at self.
Step 507: at different judged results, veneer sends the data configuration response that comprises different content to the system master unit.Particularly, when veneer and system master unit have data consistency, include the second executed Transaction Identifier after veneer upgrades in the described data configuration response; When veneer and system master unit do not have data consistency, include the failure sign in the described data configuration response.
Step 508: when receiving from the response of the data configuration of veneer, the system master unit determines according to the content that is comprised in this response whether self is consistent with the configuration data between the veneer, and sends prompting.
Particularly, during the second executed Transaction Identifier after comprising renewal in the response of described data configuration, the first executed Transaction Identifier after the renewal that the system master unit relatively self is preserved and this described second executed Transaction Identifier, when both are consistent, determine to have data consistency between self and the veneer, and with this second executed Transaction Identifier as up-to-date first the response transactions sign preserve, and can be further to send mode reminder-data configuration successful and data consistency such as audio frequency and video; When comprising the failure sign in the response of described data configuration, the system master unit determines do not have data consistency between self and the veneer, and to send mode reminder-data configuration failure such as audio frequency and video.
Step 509: if the overtime data configuration of not receiving responds, the system master unit can be by the first response transactions sign of the first executed Transaction Identifier that relatively upgrades and self storage, when both are consistent, judge the data consistent between veneer and the system master unit, otherwise, then output prompting.Therefore, use the executed Transaction Identifier and response transactions identify the communication link fails that can distinguish different directions.
The foregoing description has only been described the online method of verifying when carrying out data configuration; similarly; when detecting the normal or communication link of single board state in the system master unit and recovering, step 504 can also be such: the first executed Transaction Identifier before system master unit active system main control unit upgrades veneer and described first Transaction Identifier of distribution send to veneer.
Referring to Fig. 7, Fig. 7 is that the configuration data when single board starting or fault recovery is verified flow chart in another embodiment of the present invention, and this flow process may further comprise the steps:
Step 601: after startup or fault recovery, veneer is to system master unit requests loading monoboard data file.
Step 602: when the timer that veneer self is provided with overtime, but when not receiving the configuration data from the system master unit as yet, veneer is directly used the data configuration of the allocation data recovering self in the local veneer data file (memory carrier of veneer configuration data) of being preserved.Certainly, if veneer has in time been received the configuration data from the system master unit, veneer is then used the configuration data of receiving and is carried out the data configuration of self.
What step 601 to step 602 was described is the data configuration strategy of veneer when starting, and does not have strict time order and function order between follow-up each step.
Step 603 is to step 604: finish or during fault recovery in startup, the system master unit is to the veneer transmitting system master control event notice that goes into operation.
Step 605: receive when system master from the system master unit goes into operation event notice that veneer is carried on Transaction Identifier with the current second executed Transaction Identifier of self preserving and verifies in the request and send to the system master unit.
Step 606: the current first executed Transaction Identifier of the relatively local described veneer of preserving in system master unit and from the second executed Transaction Identifier of this veneer, when comparative result is executed Transaction Identifier unanimity, illustrate that veneer performed data configuration last time is consistent with the data configuration that system master cell command veneer is carried out, therefore the system master unit determines that the data of self and the data of veneer have consistency; When comparative result is that the executed Transaction Identifier is when inconsistent, illustrate that the data configuration that data configuration that veneer last time is performed and system master cell command veneer are carried out is inconsistent, therefore the system master unit determines that the data of self and the data of veneer do not have consistency.
Step 607: when comparative result is executed Transaction Identifier when inconsistent, the system master unit sends prompting, as: to send mode reminder-data inconsistencies such as audio frequency and video.Certainly, when comparative result is executed Transaction Identifier when consistent, the system master unit also can send prompting, as: to send mode reminder-data consistency such as audio frequency and video.
Because above-mentioned verification process is simple, therefore can supports cycle or command triggers and carry out data check.
As shown in Figure 8, data check starts, when system master unit application Fig. 6 or flow process shown in Figure 7 determine that the data of system master unit and veneer do not have consistency, optionally, can also obtain the details of inconsistent data, can be by calculating CRC check and the details of obtaining inconsistent data, and, utilize Reset Board, perhaps synchrodata mode etc. is carried out the data sync operation, and it is consistent with the system master unit that the veneer data are returned to; When application drawing 6 or flow process shown in Figure 7 determine that the data of system master unit and veneer have consistency, need not Reset Board or carry out the simultaneous operation of data file.
Because the checkout procedure of Transaction Identifier is very fast in the embodiment of the invention, and when the data of verifying out system master unit and veneer are inconsistent just by calculating CRC check and obtaining details about inconsistent data, promptly need not be when verifying out the data consistent of system master unit and veneer by calculating CRC check and the details of obtaining about inconsistent data, avoided in the prior art at every turn all the calculated data CRC check and, thereby the resource of having saved system CPU on the whole.
Above-mentioned by calculating CRC check and obtaining as shown in Figure 9 about the flow process of the details of inconsistent data.Referring to Fig. 9, Fig. 9 is the flow chart that obtains about the inconsistent data details, and this flow process may further comprise the steps:
Step 701: the system master unit receive from its outside and at the system master unit have inconsistent data veneer obtain the order of inconsistent data details.It is alternatively, described that to obtain the order of inconsistent data details also can be from inside, system master unit.
Step 702: the system master unit sends a request message to veneer.
Step 703: when receiving the request message from the system master unit, veneer calculate local data CRC check and.
Step 704: veneer will calculate the CRC check of gained and be carried on and send to the system master unit in the response.
Step 705: the CRC check of the algorithm computation local data that the system master unit application is identical with veneer and.
Step 706: the system master unit relatively from the CRC check of veneer and with the CRC check of self calculating gained and.
Step 707: the system master unit sends to veneer with the sign of CRC check and inconsistent object data, to obtain the details of inconsistent data.
Particularly, described CRC check and normally calculate, the sign of object data and verification and constitute one two tuple jointly at object data; The CRC check that is comprised in the described response and be two above-mentioned tuples list, system master unit be by with this two tuples list and self calculate the CRC check of gained and compare, and can draw the lacking of object data, situation unnecessary and inequality.
Step 708: veneer is according to the details of obtaining corresponding configuration data from the sign of the object data of system master unit, and the configuration data details of obtaining are sent to the system master unit.
Step 709: the inconsistent data details from veneer are preserved in the system master unit, for watching.
Step 710: the response of inconsistent data details is obtained in the output of system master unit, can also point out the details of inconsistency data to send modes such as audio frequency and video.
Further, also can utilize board resetting or synchrodata mode, it is consistent with the system master cell data that the veneer data are returned to.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, and this program is carried out above institute in steps.Described storage medium is ROM/RAM, magnetic disc, CD etc.
The embodiment of the invention not only provides the data check method, but also the data check device is provided.
Referring to shown in Figure 10, Figure 10 realizes the device schematic diagram that data consistency is verified for the system master unit.Wherein,
From the data configuration order of system master unit and veneer outside, deliver to command execution module and Transaction Identifier distribution module respectively; Deliver to memory from the data configuration response that veneer returns, be deposited in the memory with response identification with the veneer feedback.
Command execution module is carried out the data configuration order, and the data after will carrying out are deposited in the memory, is the veneer data file of veneer preservation with the update system main control unit, as reference data.
The Transaction Identifier distribution module be the data configuration order of receiving at this data configuration operated allocated first Transaction Identifier, after command execution module is carried out the data configuration order, first Transaction Identifier is deposited into memory, to upgrade the first executed Transaction Identifier of preserving from as veneer, preserve as the first executed Transaction Identifier that upgrades with described first Transaction Identifier that distributes.
Sending module reads described first Transaction Identifier, upgrades first preceding executed Transaction Identifier and the configuration data in the data configuration order from memory, be carried at and send to described veneer in the data configuration message.
Receive the overtime enabling signal of inside, system master unit at first comparison module after, the first executed Transaction Identifier and first of the renewal of relatively reading from memory is the response transactions sign, when the first executed Transaction Identifier that upgrades when the response transactions sign is consistent with first, by sending module to outside output prompting about data consistent, otherwise, export about the inconsistent prompting of data to the outside by sending module.
When single board starting, after first comparison module receives and verifies request from the Transaction Identifier of veneer, with the first executed Transaction Identifier of the renewal of storing in the second executed Transaction Identifier that carries in this request and the memory relatively, when both are consistent, by sending module to outside output prompting about data consistent, otherwise, export about the inconsistent prompting of data to the outside by sending module.
Referring to shown in Figure 11, the data consistency of the system master unit of the details subelement that Figure 11 has obtained inconsistent data for the embodiment of the invention has increased is verified the subelement schematic diagram.In the system master unit, also comprise judge module and obtain inconsistent data details unit.Wherein,
Judge module is according to the comparative result of first comparison module output and obtain the order of inconsistent data details from the outside, determine whether to send triggering signal to the details unit that obtains inconsistent data, when comparative result shows the data consistent of the data of system master unit and veneer, then judge module does not send triggering signal to obtaining inconsistent data details unit, otherwise, judge module is having under the situation of verifying the data command input, sends triggering signal to obtaining inconsistent data details unit.
Obtain inconsistent data details subelement and comprise CRC check and the computing module and second comparison module.After CRC check and computing module receive triggering signal from judge module, calculate local data CRC check and, the CRC check that second comparison module calculates CRC check and computing module and with from the CRC check of veneer with compare, by sending module the sign of CRC check and inconsistent object data is sent to veneer, to obtain the details of inconsistent data.
Referring to shown in Figure 12, Figure 12 is the schematic diagram of the veneer data consistency check device of the embodiment of the invention.Be cached in the memory from the first executed Transaction Identifier and first Transaction Identifier before upgrading in the data configuration message of system master unit.Comparing unit will compare from first executed Transaction Identifier before the renewal in the data configuration message of system master unit and the second executed Transaction Identifier that reads from memory, if both unanimities, then to command execution module output comparative result, carry out configuration operation by command execution module, and first Transaction Identifier saved as the second executed Transaction Identifier, otherwise command execution module is not carried out configuration operation.Sending module is used for reading the second executed Transaction Identifier from memory, is carried in the data configuration response and returns to the system master unit, and when single board starting or fault recovery the Transaction Identifier request of verifying is sent to the system master unit.
Further comprise: when CRC check and computing module receive from the request message of system master unit, calculate the veneer data CRC check and, result of calculation is carried at by sending module is back to the system master unit in the response.
In application, miscellaneous service process on the veneer also need be verified the data in the business process and the consistency of the data in the system master unit, these business process can be considered business unit, also can realize the verification of data consistency with reference to embodiments of the invention, obtain the details of inconsistent data.
By the above as can be seen, the check method of the data that the embodiment of the invention provided and device, all can determine the consistency of this veneer configuration data of being safeguarded in the data of veneer side and the system master unit fast, thereby the regular traffic on the veneer is affected, more can not keep the long period and produce problems such as data processing is unusual according to inconsistent situation by factor, thereby can obviously improve user satisfaction.

Claims (20)

1, a kind of method of data check is characterized in that, relatively second executed Transaction Identifier of second side and the first executed Transaction Identifier of first side determine according to the consistency between the described Transaction Identifier whether first side is consistent with the data of second side;
Wherein, the described second executed Transaction Identifier is at the operation of the second side current data or the current command and set up, and the described first executed Transaction Identifier is set up at the last data of first side or last command operation.
2, the method for claim 1 is characterized in that, the step of described comparison comprises that second side joint is received the first executed Transaction Identifier from first side, the more described first executed Transaction Identifier and the second executed Transaction Identifier.
3, method as claimed in claim 1 or 2 is characterized in that, the described first executed Transaction Identifier is safeguarded by first side, and comprised:
Use first Transaction Identifier of setting up at the operation of the first side current data or the current command to upgrade the described first executed Transaction Identifier, save as the first executed Transaction Identifier of renewal.
4, method as claimed in claim 3, it is characterized in that, the step of described comparison also comprises, first side joint is received second side in start-up course or the Transaction Identifier that sends after the fault recovery request of verifying, the first executed Transaction Identifier of more described renewal and be carried at described Transaction Identifier and verify the second executed Transaction Identifier in asking.
5, method as claimed in claim 3 is characterized in that, if the data consistent of second side and first side, the described second executed Transaction Identifier is safeguarded by second side, and comprised:
Upgrade the described second executed Transaction Identifier with described first Transaction Identifier, and the second executed Transaction Identifier that will upgrade returns to first side.
6, method as claimed in claim 5, it is characterized in that, this method also comprises, when first side joint is received the second executed Transaction Identifier that described second side returns, the second executed Transaction Identifier that first side is returned described second side as first response identification preserve.
7, method as claimed in claim 6, it is characterized in that, this method also comprises, when first side is overtime when not receiving the second executed Transaction Identifier that described second side returns, if first side self is preserved the first response transactions sign, the first executed Transaction Identifier and first of more described renewal response transactions sign then determines to communicate by letter whether fault is arranged between first side and second side according to the consistency between the described Transaction Identifier.
8, method as claimed in claim 3 is characterized in that, this method also comprises, if the data of second side and first side are inconsistent, then first side is by calculating CRC check and obtain the details of inconsistent data, and preserves.
9, the method for claim 1, it is characterized in that described first side is the system master unit, described second side is a veneer, the first executed Transaction Identifier of all coupled veneers is preserved in described system master unit, and described command operation is the data configuration command operation.
10, a kind of device of realizing data check is characterized in that, described device comprises,
Memory stores at the second side current data or the current command and operates and the second executed Transaction Identifier of foundation;
Comparison module, the described second executed Transaction Identifier that relatively from memory, reads and from the first executed Transaction Identifier of first side, determine according to the consistency between the described Transaction Identifier whether first side is consistent with the data of second side, output comparative result when consistent; Wherein, the described first executed Transaction Identifier is set up at the last data of first side or last command operation.
11, device as claimed in claim 10, it is characterized in that, described device also comprises command execution module, when receiving the comparative result from described comparison module, use from first side and first Transaction Identifier that set up at the first side current data or the current command operation and upgrade the described second executed Transaction Identifier of storing in the described memory device.
12, device as claimed in claim 11 is characterized in that, described device also comprises:
Sending module returns to first side with the second executed Transaction Identifier that upgrades in the memory.
13, device as claimed in claim 12 is characterized in that, this device also comprises:
CRC check and computing module, receive from first side obtain inconsistent data details message, at object data calculate the CRC check and, and return to first side with the CRC check calculated with by described sending module.
14, a kind of device of realizing data check is characterized in that, this device comprises,
Memory stores the first executed Transaction Identifier of setting up at the last data of first side or last command operation;
The Transaction Identifier distribution module is operated and is set up described first Transaction Identifier at the first side current data or the current command, and is saved in memory as the first executed Transaction Identifier of renewal;
First comparison module, with the first executed Transaction Identifier of described renewal with from the second executed Transaction Identifier of second side relatively, determine according to the consistency between the described Transaction Identifier whether second side is consistent with the data of first side, output comparative result when consistent; Wherein, the described second executed Transaction Identifier is operated and is set up at the second side current data or the current command.
15, device as claimed in claim 14 is characterized in that, described device also comprises sending module, and the comparative result of described first comparison module is sent to the first side outside.
16, device as claimed in claim 14 is characterized in that,
Described memory module also stores first response identification, this first response identification be the second executed Transaction Identifier from second side;
Described first comparison module, also be used for overtime when not receiving the described second executed Transaction Identifier from second side, the first executed Transaction Identifier and described first of more described renewal is the response transactions sign, determine to communicate by letter whether fault is arranged between first side and second side according to the consistency between the described Transaction Identifier, and by described sending module output information.
17, as claim 14,15 or 16 described devices, it is characterized in that described device also comprises
Judge module; According to the comparative result of described first comparison module output and obtain the order of inconsistent data details from the outside; Determine whether to send triggering signal to the details unit that obtains inconsistent data; When comparative result shows the data consistent of the data of system master unit and veneer; Then do not send triggering signal to obtaining inconsistent data details unit; Otherwise; Have under the situation of obtaining inconsistent data details order input; Send triggering signal to obtaining inconsistent data details unit
Obtain inconsistent data details subelement, receive the triggering signal of judge module output, start and obtain the inconsistent data details.
18, device as claimed in claim 17 is characterized in that, the described inconsistent data details subelement that obtains comprises,
CRC check and computing module, receive the triggering signal of judge module output after, at first side data calculation and object CRC check and,
Second comparison module, the CRC check that CRC check and computing module are calculated and with from the CRC check of second side with compare, the sign of CRC check and inconsistent object data is sent to second side by sending module.
19, device as claimed in claim 14 is characterized in that, described device also comprises,
Command execution module receives the order of the first side outside, and the data after the command operation are saved in the described memory.
20, a kind of distributed system comprises a system master unit and several veneers by its management at least in this system, it is characterized in that, described system master unit comprises,
First memory stores the first executed Transaction Identifier of setting up at the last data of system master cell side or last command operation;
Described veneer comprises,
Second memory stores at veneer side current data or the current command and operates and the second executed Transaction Identifier of foundation;
Described system master unit also comprises,
The Transaction Identifier distribution module is operated and is set up described first Transaction Identifier at system master cell side current data or the current command, and is saved in the described first memory as the first executed Transaction Identifier of renewal; First comparison module, with the first executed Transaction Identifier of described renewal with from the second executed Transaction Identifier of veneer side relatively, determine according to the consistency between the described Transaction Identifier whether the veneer side is consistent with the data of system master cell side, output comparative result when consistent;
Described veneer also comprises,
Comparison module, be used for the described second executed Transaction Identifier that will read from second memory and compare from the first executed Transaction Identifier of system master cell side, determine according to the consistency between the described Transaction Identifier whether the veneer side is consistent with the data of system master cell side, output comparative result when consistent.
CN200710123223A 2007-07-02 2007-07-02 Data check method, device and system Expired - Fee Related CN100583787C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710123223A CN100583787C (en) 2007-07-02 2007-07-02 Data check method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710123223A CN100583787C (en) 2007-07-02 2007-07-02 Data check method, device and system

Publications (2)

Publication Number Publication Date
CN101079758A true CN101079758A (en) 2007-11-28
CN100583787C CN100583787C (en) 2010-01-20

Family

ID=38907003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710123223A Expired - Fee Related CN100583787C (en) 2007-07-02 2007-07-02 Data check method, device and system

Country Status (1)

Country Link
CN (1) CN100583787C (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638360A (en) * 2011-02-10 2012-08-15 中兴通讯股份有限公司 Method and system for acquiring one-board memory data
CN102739632A (en) * 2011-10-19 2012-10-17 新奥特(北京)视频技术有限公司 Method and system for real-time score broadcast of scoring system
CN103186678A (en) * 2013-04-24 2013-07-03 曙光信息产业(北京)有限公司 Data restoration method, device and system
WO2016015276A1 (en) * 2014-07-31 2016-02-04 Hewlett-Packard Development Company, L.P. Analysis of system information
CN105989025A (en) * 2015-01-30 2016-10-05 阿里巴巴集团控股有限公司 Data checking method ad device
WO2017041528A1 (en) * 2015-09-07 2017-03-16 中兴通讯股份有限公司 Cell-locking method, terminal and storage medium
CN108804464A (en) * 2017-05-03 2018-11-13 中兴通讯股份有限公司 Data consistency detection, device, distributed data base and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638360A (en) * 2011-02-10 2012-08-15 中兴通讯股份有限公司 Method and system for acquiring one-board memory data
CN102739632A (en) * 2011-10-19 2012-10-17 新奥特(北京)视频技术有限公司 Method and system for real-time score broadcast of scoring system
CN103186678A (en) * 2013-04-24 2013-07-03 曙光信息产业(北京)有限公司 Data restoration method, device and system
CN103186678B (en) * 2013-04-24 2016-09-14 曙光信息产业(北京)有限公司 Data recovery method, device and system
WO2016015276A1 (en) * 2014-07-31 2016-02-04 Hewlett-Packard Development Company, L.P. Analysis of system information
US10474651B2 (en) 2014-07-31 2019-11-12 Hewlett-Packard Development Company, L.P. Analysis of system information
CN105989025A (en) * 2015-01-30 2016-10-05 阿里巴巴集团控股有限公司 Data checking method ad device
WO2017041528A1 (en) * 2015-09-07 2017-03-16 中兴通讯股份有限公司 Cell-locking method, terminal and storage medium
CN108804464A (en) * 2017-05-03 2018-11-13 中兴通讯股份有限公司 Data consistency detection, device, distributed data base and storage medium

Also Published As

Publication number Publication date
CN100583787C (en) 2010-01-20

Similar Documents

Publication Publication Date Title
CN101079758A (en) Data check method, device and system
CA2414281C (en) System and method for updating and distributing information
US6832373B2 (en) System and method for updating and distributing information
CN1147787C (en) Remote load executive method, system, data processing equipment, management equipment and recording medium
US7805719B2 (en) System and method for updating and distributing information
EP0950948B1 (en) File distribution system and method thereof
JP4736370B2 (en) Hosting environment construction method and computer system
CN1812332A (en) Method for assurng conformity of exchanger various monoboard software edition
US20140053149A1 (en) Fast and automatic deployment method for cluster system
US7404095B2 (en) Firmware controlled supply voltage adjustment
CN1668010A (en) Tag-based schema for distributing update metadata in an update distribution system
KR101760778B1 (en) Computer system and method for updating program therein
CN104199706A (en) Firmware upgrade method and device for eMMC
CN101064630A (en) Data synchronization method and system
CN101110788A (en) Method and system for updating client software
CN105556488A (en) Dynamic sizing of memory caches
CN101056205A (en) A management method, system and device based on ATCA architecture-based server
GB2532299A (en) Over-the-air updates for BLE devices
CN102521289B (en) File synchronization method, device and system
WO2011006378A1 (en) Method and system for upgrading wireless data card
CN111309354A (en) OTA (over the air) upgrading method and device of networking equipment
CN1816039A (en) Method for checking data coherence and data synchronization, and distribution type system
WO2013040906A1 (en) Method and system for managing software version of base station
WO2018082079A1 (en) Method and apparatus for dynamically managing data exchange
EP3846023A1 (en) Method and device for updating algorithm

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100120

Termination date: 20170702

CF01 Termination of patent right due to non-payment of annual fee