CN101610281B - Method and device for storing data fingerprints - Google Patents

Method and device for storing data fingerprints Download PDF

Info

Publication number
CN101610281B
CN101610281B CN2008101270657A CN200810127065A CN101610281B CN 101610281 B CN101610281 B CN 101610281B CN 2008101270657 A CN2008101270657 A CN 2008101270657A CN 200810127065 A CN200810127065 A CN 200810127065A CN 101610281 B CN101610281 B CN 101610281B
Authority
CN
China
Prior art keywords
fingerprint
terminal
algorithm
fingerprint algorithm
unified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2008101270657A
Other languages
Chinese (zh)
Other versions
CN101610281A (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 CN2008101270657A priority Critical patent/CN101610281B/en
Priority to PCT/CN2009/071870 priority patent/WO2009152716A1/en
Priority to CN2009801013612A priority patent/CN101897147B/en
Publication of CN101610281A publication Critical patent/CN101610281A/en
Application granted granted Critical
Publication of CN101610281B publication Critical patent/CN101610281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Collating Specific Patterns (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a method and a device for storing data fingerprints. The method comprises the following steps: acquiring equipment parameters and fingerprint algorithms of a plurality of terminals; judging whether the equipment parameters of the terminals are same or not; judging whether terminals with same equipment parameters can unify the fingerprint algorithms or not and selecting a fingerprint unifying algorithm for the terminals with the same equipment parameters and unifiable fingerprint algorithms; and only storing a set of same data fingerprints obtained by the fingerprint unifying algorithm for all the terminals with the same equipment parameters and the unifiable fingerprint algorithms. The invention solves the problem for storing a plurality of sets of fingerprints by a server when the same database in a plurality of kinds of equipment and servers is synchronized, thereby achieving the effects of simplifying the generated server processing process and reducing resource occupation.

Description

A kind of data fingerprint store method and device
Technical field
The present invention relates to data communication field, particularly relate to a kind of data fingerprint store method and device.
Background technology
Modern society is an information-intensive society.The user can carry out the reception and the transmission of information whenever and wherever possible, can be whenever and wherever possible with the application program in the handheld device actuating equipment.And this data interaction and execution result need store in the handheld device, also need be consistent with such data in other data equipments.Through data communication, keep the consistent of terminal and server data, be exactly data sync.
Terminal and server rely on the operation of Anchor and execution to come decision data whether to pass through change usually; But the record of Anchor and executable operations upgrades after accomplishing according to synch command or to the change indication of data; If communication disruption takes place in operating process; As do not receive synchronous response message, then the record of Anchor and executable operations possibly not match.Therefore a kind of fingerprint technique occurred, can realize the data element is identified through data fingerprint.
Such as, through certain data elements is made an abstract, obtain the fingerprint of data element.Fingerprint can only be produced by the terminal, also can produce by both party.The purposes of fingerprint is to be used for server whether differentiate data that it receives from the terminal identical with the data of self storage.Because no matter data have been revised on which limit, fingerprint all can be inconsistent.If fingerprint is consistent, show that server is the same with the data at terminal, the terminal does not need to send, if fingerprint is different, shows that data have modification, at this moment will see the collision detection strategy, if be as the criterion with the data of server end, that terminal also there is no need to send data.Like this, can save flow, avoid sending some unnecessary data through comparing fingerprint.In addition, fingerprint also can be used as breakpoint transmission.
Fingerprint has multiple algorithm, for communicating pair uses consistent algorithm, need carry out negotiating algorithm.One side sends to the opposing party with its set of algorithms of supporting, and the opposing party therefrom finds the fingerprint algorithm of its support, and informs the other side, thereby accomplishes the negotiation of fingerprint algorithm.In database, each node all must have fingerprint, and the fingerprint of database or catalogue is called Container.
DS MO (Management Object, management object) mainly is the service parameter that is used to dispose DS.On the terminal; Have a management object; Be used to store the service parameter of some DS; Such as: the address of server, authentication information, database information, wheel synchronization type etc., server comes these parameters are carried out initial configuration or obtained, revise these parameters through DM (DeviceManagement, equipment control) agreement.
Device Info mainly is used for storing device information, at server side and end side an XML document is arranged all, is used to store facility information separately.In the synchronous initiation process, client and server exchange facility information separately, thus learn the other side's situation, be convenient to later synchronous flow process.Canned data comprises among the DeviceInfo: the hardware information of equipment (such as; Model, manufacturing firm etc.), software information (such as; Software version, whether support big object etc.), the information of database (such as, support which attribute, support which filter type etc.).
In the prior art; If fingerprint is only produced by the terminal; Then server need all be preserved a cover fingerprint to each terminal, and server is through being the fingerprint of this terminal storage in the contrast fingerprint that sends of terminal and the server, judge in the terminal data whether with server in data identical.In addition, server is after the intact data of terminal synchronizes, and the terminal need report the fingerprint of these data by server for saving, is provided with the back and uses.
If a plurality of terminal pins are carried out synchronously same database and server, server is all preserved a cover fingerprint for each terminal, wastes very much memory space.And server is when the fingerprint to terminal to report compares; If server for saving many covers fingerprint of same database; Need repeatedly contrast could confirm whether the terminal needs reported data; This can let the processing of server very complicated, and in addition, each terminal all reports fingerprint can increase the expense of air resource to server.
Summary of the invention
The embodiment of the invention provides a kind of data fingerprint store method; The same database of solution in a plurality of equipment and server carries out when synchronous; Server need be preserved the problem of many cover fingerprints, thereby reaches the server process flow process that simplification produces thereupon, reduces the effect of resource occupation.
For achieving the above object, the embodiment of the invention proposes a kind of data fingerprint store method on the one hand, may further comprise the steps:
Obtain the device parameter and the fingerprint algorithm at a plurality of terminals;
Whether the device parameter of judging said a plurality of terminals is identical;
Judge whether the terminal that device parameter is identical in said a plurality of terminal can unify fingerprint algorithm, unified fingerprint algorithm is selected at the terminal that, fingerprint algorithm identical for device parameter can be unified;
, fingerprint algorithm identical for each said device parameter can be unified the terminal only preserve that a cover is identical to pass through the data fingerprint that said unified fingerprint algorithm obtains.
On the other hand, the embodiment of the invention also proposes a kind of server, comprising:
The information acquisition module is used to obtain the device parameter and the fingerprint algorithm at a plurality of terminals;
Signal judgement module, whether the device parameter at each the said terminal that is used to judge that said information acquisition module is received is identical;
The unified algorithms module is used for judging whether device parameter identical terminal in said a plurality of terminals can unify fingerprint algorithm, and unified fingerprint algorithm is selected at the terminal that, fingerprint algorithm identical for device parameter can be unified;
Fingerprint is preserved module; Be used for after said unified algorithms module is selected said unified fingerprint algorithm;, fingerprint algorithm identical for each said device parameter can be unified the terminal only preserve that a cover is identical to pass through the data fingerprint that unified fingerprint algorithm that said unified algorithms module selects obtains; Or when said unified algorithms module can not be selected the unification fingerprint algorithm, for preserving corresponding data fingerprint respectively in each said terminal.
On the other hand, the embodiment of the invention also proposes a kind of data fingerprint store method, may further comprise the steps:
Obtain the fingerprint algorithm at a plurality of terminals;
Judge whether to unify the fingerprint algorithm at said a plurality of terminals, for selecting unified fingerprint algorithm in each terminal that can unify fingerprint algorithm;
Obtain said support and unify the data fingerprint that the terminal of fingerprint algorithm obtains according to said unified fingerprint algorithm;
Judge whether the fingerprint algorithm terminal is unified in said support identical according to the data fingerprint that said unified fingerprint algorithm obtains, and only preserve one for the identical terminal of said data fingerprint and overlap the identical data fingerprint that said unified fingerprint algorithm obtains that passes through.
On the other hand, the embodiment of the invention also proposes a kind of server, comprising:
The information acquisition module is used to obtain the fingerprint algorithm at a plurality of terminals;
The unified algorithms module is used for judging whether to unify according to the fingerprint algorithm that said information acquisition module is obtained the fingerprint algorithm at each said terminal, and for selecting unified fingerprint algorithm in each terminal that can unify fingerprint algorithm;
The fingerprint acquisition module is used to obtain the resulting data fingerprint of unified fingerprint algorithm according to said unified algorithms module selection that send at each the said terminal that can unify fingerprint algorithm;
The fingerprint judge module is used to judge whether the data fingerprint of said fingerprint acquisition module reception is identical;
Fingerprint is preserved module; The judged result that is used to each said fingerprint judge module is that identical terminal only preserves that a cover is identical to pass through the data fingerprint that said unified fingerprint algorithm obtains; Or when said unified algorithms module can not be selected the unification fingerprint algorithm, for preserving corresponding data fingerprint respectively in each said terminal.
Through the present invention, server can have been practiced thrift memory space, and can save the data volume in the subsequent synchronisation flow process for only preserve a cover fingerprint to a plurality of terminals of same database synchronization, has saved interface-free resources.In addition, make in this way, be equivalent in server, to preserve the up-to-date fingerprint of a cover, when intelligent synchronization, whether a server association of sense terminals very easily is up-to-date, saved the processing time.
Description of drawings
The schematic flow sheet of a kind of data fingerprint store method that Fig. 1 provides for the embodiment of the invention one;
The schematic flow sheet of a kind of data fingerprint store method that Fig. 2 provides for the embodiment of the invention two;
Fig. 3 is in the embodiment of the invention three, the synchronous flow chart at server and terminal when preserving a cover fingerprint;
Fig. 4 is in the embodiment of the invention four, the synchronous flow chart at server and terminal when preserving a cover fingerprint;
Fig. 5 is in the embodiment of the invention five, and a kind of server is initiated the method flow diagram that a test simultaneous session judges whether to preserve same set of fingerprint separately;
Fig. 6 is in the embodiment of the invention six, and the fingerprint management at terminal is to the structural representation of MO elephant;
Fig. 7 is in the embodiment of the invention nine, a kind of structural representation of server;
Fig. 8 is in the embodiment of the invention ten, a kind of structural representation of server.
Embodiment
The embodiment of the invention provides a kind of data fingerprint store method; The same database of solution in a plurality of equipment and server carries out when synchronous; Server need be preserved the problem of many cover fingerprints, thereby reaches the server process flow process that simplification produces thereupon, reduces the effect of resource occupation.
Fingerprint store method of the present invention is to being produced by the terminal, by the fingerprint that server is preserved, also is unidirectional fingerprint.Server has confirmed that server can be informed data item that the terminal need not be sent and the fingerprint that need not send for behind a plurality of terminals preservation one cover fingerprint.
As shown in Figure 1, the schematic flow sheet of a kind of data fingerprint store method that provides for the embodiment of the invention one.Server determines whether a cover fingerprint is preserved at each terminal through the device parameter at the fingerprint algorithm collection that contrasts each terminal support, the fingerprint algorithm that is directed against a certain data and terminal.
The method of obtaining terminal fingerprint algorithm/set of algorithms comprises:
Send by terminal to server during data sync;
Server directly obtains from the MO at terminal;
Obtain in the direct slave unit information of server.
Server just can compare and select a kind of algorithm that each terminal is all supported to them after obtaining fingerprint algorithm, and notifies the terminal through suitable mode, and server just can be preserved a cover fingerprint to these terminals then.
Concrete steps are following:
Step S101, server obtain the device parameter and the fingerprint algorithm at a plurality of terminals.
Server obtains the device parameter at each terminal, the fingerprint algorithm collection that is directed against the fingerprint algorithm of certain database and obtains the terminal support alternatively.
Wherein, facility information is specially production firm and unit type, or, one or multinomial combination in OS Type, device type, device identification, the software version.
Need to prove that the idiographic flow of the acquisition methods of device parameter, fingerprint algorithm and fingerprint algorithm collection can comprise following two kinds of methods in this step:
Method one: server sends the GET message of DM session to each terminal; And of receiving that the fingerprint algorithm supported in the fingerprint algorithm that returns at each terminal, sign that whether fingerprint algorithm can be changed and each terminal concentrates or multinomial; On the other hand; Comprise also when data sync is carried out at server and terminal that server obtains the facility information at each terminal through data synchronization session.
Method two: when data sync was carried out at server and terminal, server was directly through of obtaining the fingerprint algorithm sign that whether facility information, fingerprint algorithm, this fingerprint algorithm at each terminal can change and each terminal supported concentrates of data synchronization session or multinomial.
Step S102, server judge whether the device parameter at each terminal is identical.
When judged result is the device parameter at each terminal when inequality, change step S109 over to;
When judged result is the device parameter at each terminal when identical, change step S103 over to, server begins further to judge whether to unify the fingerprint algorithm at each terminal, and this deterministic process comprises that a plurality of sons judge flow processs and branches, specifies as follows:
Step S103, server judge whether the identical terminal of each device parameter specifies fingerprint algorithm.
When judged result is each terminal when having specified fingerprint algorithm, change step S104 over to;
When judged result is each terminal when not specifying fingerprint algorithm, change step S107 over to.
Step S104, server are judged that each device parameter is identical and are specified the terminal of fingerprint algorithm whether to allow to revise the appointment fingerprint algorithm.
When specifying fingerprint algorithm not allow to be modified, change step S105 over to;
When specifying fingerprint algorithm to allow to be modified, change step S107 over to.
Need further be pointed out that; Because the application scenarios of the embodiment of the invention comprises a plurality of terminals, so, in above-mentioned step S103 and S104; Exist the terminal do not specify fingerprint algorithm with assignment algorithm but allow to change the situation of the terminal coexistence of assignment algorithm; In this case, all need change step S107 over to, promptly; To the terminal of not specifying fingerprint algorithm and assignment algorithm but the operation that allows the terminal of change assignment algorithm to unify fingerprint algorithm simultaneously, such variation belongs to protection scope of the present invention equally.
Whether step S105, server are judged that each device parameter is identical and are specified the appointment fingerprint algorithm at the unchangeable terminal of fingerprint algorithm identical.
When the appointment fingerprint algorithm at each terminal is identical, change step S106 over to;
When the appointment fingerprint algorithm at each terminal is inequality, change step S109 over to.
It is the unified fingerprint algorithm at the identical and terminal that the appointment fingerprint algorithm is identical of each device parameter that step S106, server select this to specify fingerprint algorithm; And preserve for these terminals and to unify the same set of data fingerprint that fingerprint algorithm calculates through this; So far, the step of this flow process finishes.
Step S107, server are according to priority rule, and concentrating the fingerprint algorithm of the terminal that each device parameter of selection is identical and the appointment fingerprint algorithm can be modified and/or the whole supports of the terminal of not specifying fingerprint algorithm or most of support at fingerprint algorithm is the unification fingerprint algorithm.
That is, server is according to priority rule, and concentrating the fingerprint algorithm that the terminal is all supported or major part is supported that each device parameter of selection is identical, fingerprint algorithm can be unified at fingerprint algorithm is unified fingerprint algorithm.
Wherein, Priority rule; Be specially: select unified fingerprint algorithm according to the sequencing of each preset fingerprint algorithm; Unify fingerprint algorithm according to each fingerprint algorithm in the terminal supporting rate height selective sequential that fingerprint algorithm is concentrated, pay the utmost attention to the fingerprint algorithm of terminal appointment and select unified fingerprint algorithm etc.
The terminal of step S108, the unified fingerprint algorithm of each support of server notification changes to fingerprint algorithm unified fingerprint algorithm and unifies the same set of data fingerprint that fingerprint algorithm calculates for these terminals preservations through this, and so far, the step of this flow process finishes.
Step S109, server are respectively each terminal and preserve corresponding data fingerprint.
As shown in Figure 2, the schematic flow sheet of a kind of data fingerprint store method that provides for the embodiment of the invention two.Server determines whether a cover fingerprint is preserved at each terminal through fingerprint algorithm and the reference data fingerprint that contrasts each terminal, and wherein, reference data specifically comprises the fingerprint of synchronized data or the fingerprint of test data.
Concrete, this method may further comprise the steps:
Step S201, server obtain the fingerprint algorithm at a plurality of terminals.
Server obtains the fingerprint algorithm collection that each terminal pins is supported the fingerprint algorithm and/or the terminal of certain database.After accomplishing this step, server begins further to judge whether to unify the fingerprint algorithm at each terminal, and this deterministic process comprises a plurality of son judgement flow processs and branch, specifies as follows:
Step S202, server judge whether each terminal specifies fingerprint algorithm.
When judged result is each terminal when having specified fingerprint algorithm, change step S203 over to;
When judged result is each terminal when not specifying fingerprint algorithm, change step S205 over to.
Step S203, server judge whether to allow to revise the appointment fingerprint algorithm.
When specifying fingerprint algorithm not allow to be modified, change step S204 over to;
When specifying fingerprint algorithm to allow to be modified, change step S205 over to.
Need further be pointed out that; Because the application scenarios of the embodiment of the invention comprises a plurality of terminals, so, in above-mentioned step S203 and S204; Exist the terminal do not specify fingerprint algorithm with assignment algorithm but allow to change the situation of the terminal coexistence of assignment algorithm; In this case, all need change step S205 over to, promptly; To the terminal of not specifying fingerprint algorithm and assignment algorithm but the operation that allows the terminal of change assignment algorithm to unify fingerprint algorithm simultaneously, such variation belongs to protection scope of the present invention equally.
Step S204, server judge whether the appointment fingerprint algorithm is identical.
When the appointment fingerprint algorithm at each terminal is identical, change step S207 over to;
When the appointment fingerprint algorithm at each terminal is inequality, change step S209 over to.
Step S205, server are according to priority rule, and concentrating the fingerprint algorithm that the terminal is all supported or major part is supported that each fingerprint algorithm of selection can be unified at fingerprint algorithm is unified fingerprint algorithm.
Wherein, Priority rule; Be specially: select unified fingerprint algorithm according to the sequencing of each preset fingerprint algorithm; Unify fingerprint algorithm according to each fingerprint algorithm in the terminal supporting rate height selective sequential that fingerprint algorithm is concentrated, pay the utmost attention to the fingerprint algorithm of terminal appointment and select unified fingerprint algorithm etc.
The terminal of step S206, the unified fingerprint algorithm of each support of server notification changes to unified fingerprint algorithm with fingerprint algorithm.
Step S207, server obtain the data fingerprint that each terminal obtains according to unified fingerprint algorithm, and judge whether this data fingerprint is identical.
Wherein, the correction data fingerprint comprises two kinds of situation:
Situation one: server sends test data to each terminal of using the identical fingerprints algorithm, and terminal pins is to this data based unified fingerprint algorithm calculated data fingerprint and feed back to server, and server receives and contrast this data fingerprint.
Situation two: server obtains the fingerprint of the terminal transmission of using identical fingerprints algorithm (promptly unified fingerprint algorithm), and the fingerprint to the synchronized data item is compared.Wherein, the data in synchronization item is meant that the same data clauses and subclauses in each terminal equate.
When the data fingerprint at each terminal is identical, change step S208 over to;
When the data fingerprint at each terminal not simultaneously, change step S209 over to.
Step S208, server are supported the terminal preservation of unified fingerprint algorithm and unify the same set of data fingerprint that fingerprint algorithm calculates through this that so far, the step of this flow process finishes for each.
Step S209, server are respectively each terminal and preserve corresponding data fingerprint.
Through using above-mentioned data fingerprint store method; After server is confirmed as a plurality of terminals preservation one cover fingerprint; Be equivalent in server, preserve the up-to-date fingerprint that send at each terminal of cover, server can change some handling processes accordingly to simplify the operation and to practice thrift air resource like this.
In practical application, above-mentioned data fingerprint store method comprises following three kinds of application scenarioss:
Scene one, next time synchronously the time, need be for the terminal to the data item of server sync, server can obtain the fingerprint of these data item earlier from the terminal; Compare with the fingerprint of the above-mentioned data item of preserving in the server; If come to the same thing, the server indicating terminal does not need these data item synchronously, when for a plurality of terminals a data item being produced equivalent modifications; Can more effective judgement whether need carry out having simplified the operation of flow process and server synchronously.
Scene two, next time synchronously the time; Need be for server to the data item of terminal synchronizes; The terminal can obtain the fingerprint of these data item of preserving in the server earlier, and compares with the fingerprint that calculates this locality, if come to the same thing; Terminal indication server does not need these data item synchronously, has equally simplified flow process yet.
Scene three, for data item identical in each terminal, server only need obtain fingerprint and get final product from one of them terminal, so also simplified flow process and practiced thrift interface-free resources.
Below in conjunction with accompanying drawing and embodiment, specific embodiments of the invention describes in further detail:
As shown in Figure 3, in the embodiment of the invention three, the synchronous flow chart at server and terminal when preserving a cover fingerprint, this flow chart has comprised two kinds of above-mentioned scenes, i.e. scene one and scene three.
Compare with the flow process of prior art, the difference of flow process is following several respects among Fig. 3:
Step S301, terminal to server send packet Pkg#1.Wherein, Pkg#1 is included as the fingerprint algorithm of database appointment, fingerprint algorithm collection, the fingerprint algorithm dirty bit that the terminal is supported given server.
The fingerprint algorithm information of step S302, each equipment of server analysis-by-synthesis, wherein, analytical equipment parameter alternatively also.
After receiving Pkg#1; Server is according to the method that is proposed in the embodiment of the invention one; The fingerprint algorithm information at each terminal that analysis-by-synthesis has been received and device parameter information are preserved a cover fingerprint and are confirmed to notify which terminal determined algorithm for a plurality of terminals determining whether, or; Server confirms to use the terminal of same algorithm earlier according to the method that is proposed in the embodiment of the invention two.
Step S303, server send Pkg#2 to the terminal, and the fingerprint algorithm that the notice terminal server is confirmed at last (promptly unified fingerprint algorithm) is if the terminal is using this algorithm need not inform.
After this step is accomplished,, and notified and supported this terminal of unifying fingerprint algorithm to change the unified fingerprint algorithm of current algorithm for confirming if server has been accomplished the process of confirming unified fingerprint algorithm for each terminal.In follow-up step, server will utilize the same set of fingerprint of preserving that the data sync operation is carried out at each terminal, and detailed process is following:
Step S304, terminal to server send Pkg#3, data item ID and fingerprint that announcement server terminal desire is sent.Step S305, server judge whether the fingerprint that sends at this terminal equates with the fingerprint of preserving.
Through this step, server compares the fingerprint of the fingerprint that receives with local storage, need to confirm the indication client to send which data.
If equate then to carry out step S308;
If the unequal step S306 that then carries out.
Step S306, the unequal data item of server record fingerprint, and through the ID notice terminal of Pkg#4 with these data item.
Promptly need the terminal to send the unequal data item of fingerprint with update service device data.
Step S307, terminal to server send Pkg#5, and the data item that above-mentioned Pkg#4 is indicated sends to server.
Step S308, server analysis need send to the data of client, and determining whether needs indication client feedback fingerprint and feed back which fingerprint.
If the fingerprint of these data has existed; Promptly from other terminal feedback these fingerprints, server just can inform that this terminal need not feed back the fingerprint of these data, so before sending Pkg#6; Whether the fingerprint that server need be analyzed these data exists; Inform when Pkg#6 that then the terminal need not feed back fingerprint if all exist,, to inform when Pkg#6 that then the terminal need feed back all or part of fingerprint if do not exist or have part not exist.
Step S309, server send Pkg#6, return receiving status information, the data that send server is revised, and whether indicating terminal feeds back fingerprint and feeds back which fingerprint.
Pkg#7 is sent at step S310, terminal, feeds back all or part of fingerprint according to the requirement of server, does not perhaps feed back.
Through this step, client is returned the state that receives data, sends mapping directive and gives server, and select whether to feed back fingerprint or part fingerprint according to the indication of server.
Step S311, server send Pkg#8, return the state information to mapping directive.
Step S312, if the method that adopts the embodiment of the invention two to provide; When adopting the fingerprint of fingerprint algorithm and the synchronized data of server through contrasting each terminal to determine whether that each terminal preserved the method for a cover fingerprint; After step S311 finishes; Server can be selected one from the fingerprint of terminal feedback, contrast with the fingerprint of other terminal feedback, to determine whether preserving same set of fingerprint.
Certainly, the fingerprint that server will guarantee to participate in contrast is based on that identical data computation draws, and if at Spoke-to-Client end synchronously time the next time.
As shown in Figure 4, in the embodiment of the invention four, the synchronous flow chart at server and terminal when preserving a cover fingerprint.Under many equipment situation, server carries out synchronous one-way synchronization flow process to the terminal, and promptly server need be issued the terminal with data updated.In the prior art, the fingerprint of preserving in the server is can not send to the terminal, because those fingerprints itself just come self terminal.
And the terminal obtains fingerprint to server earlier in this flow process; Indicate server to send data again; This is because the fingerprint preserved can be from other terminal in the server, and this terminal just can be compared fingerprint and specifically may further comprise the steps to determine whether the corresponding data of needs like this:
Step S401~S403, with step S301~S303.
Step S404, the local data change situation of terminal analysis.
Step S405, when local data has change, terminal to server sends Pkg#3, the indication server sends fingerprint.
Step S406, server send Pkg#4 according to the indication at terminal, send to the terminal and desire the data in synchronization fingerprint.
After step S407, terminal receive Pkg#4, data fingerprint and local fingerprint are made comparisons, need to determine whether server to send corresponding data.
Step S408, if desired, Pkg#5 is sent at the terminal, and the indication server sends data.
Subsequent step S409~S411 is identical with prior art.
If do not need, Pkg#5 is sent at the terminal, notification server, and server in Pkg#6, reply acknowledge message after flow process promptly finish.
The embodiment of the invention five provides a kind of server to initiate the method that a test simultaneous session judges whether to preserve same set of fingerprint separately.
Independent test simultaneous session is the one-way synchronization that server is initiated to client, only sends a test data to the terminal, and flow process is as shown in Figure 5:
Accomplish the initialization of one-way synchronization between step S501, server and the terminal.
Step S502, terminal to server send Pkg#3, comprise Alert message.
Step S503, server carry out the Synchronization Analysis at this terminal according to the information that receives.
Step S504, server send Pkg#4 to the terminal, and synchronization packets is sent to the terminal, wherein comprise the information and the test data of the definite unified fingerprint algorithm of server.
Server can indicate a GUID for test data; LUID also can be distributed in the terminal; These data can not belong to some databases, are to be used for test fingerprint but server need indicate these data, and this can inform in the conversation initialization stage; For example in Pkg#2, inform the terminal, perhaps inform the terminal with the form of wheel synchronization type in the Notification before session begins (notice) message.
Step S505, client upgrade local fingerprint algorithm according to the synchronization packets that receives and are unified fingerprint algorithm, and to unify fingerprint algorithm through this be test data calculated data fingerprint.
Pkg#5 is sent at step S506, terminal, to the fingerprint of server feedback test data.
This test data can not be preserved at the terminal, whether preserves this test data but the terminal can be chosen among the Pkg#5 notification server, if fingerprint algorithm changes and server when needing again test fingerprint, server can send this data once more like this.
Step S507, server send Pkg#6 to the terminal, the affirmation result of feedback test data fingerprint.
If identical, then preserve same set of identical data fingerprint for the terminal that produces identical test data fingerprint, if inequality, then be respectively each terminal and preserve corresponding data fingerprint.
Through this test synchronously, server just can obtain the fingerprint of terminal to the calculating of this data test, compares then with decision and could preserve a cover fingerprint to the terminal that takes one's test.
On the other hand, in the aforesaid embodiment of the invention one and two, mentioned server and used independent DM and DS session to determine whether to preserve a cover fingerprint, rather than when data sync, carried out as the terminal.The present invention describes through six pairs of corresponding processes of embodiment.
Through using this flow process, aforesaid step S101 and S108 can realize that among the two step S102, what server used is the independent DS session of only switching equipment information through the method for DM.
The corresponding embodiment of the invention one, detailed process is following:
The content alteration of step S101 is: server obtains the terminal to the fingerprint algorithm of certain database appointment, fingerprint algorithm collection that the terminal is supported and assignment algorithm revisable flag bit whether through the Get order that issues DM.This moment, the MO at terminal was as shown in Figure 6.
Wherein, among the MO each parameter declaration as following each the table shown in:
Table 1 < FP>parameter list
Status Occurrence Format Access
REQUIRED One Node Get
As shown in table 1, this is an internal node, record DS client or the server information relevant with fingerprint.
Table 2 < FP >/< SupportedAlg>parameter list
Status ?Occurrence Format Access
REQUIRED ?ZeroOrOne Node Get
As shown in table 2, this is an internal node, the fingerprint algorithm that record DS client is supported.
Table 3 < FP >/< SupportedAlg >/< X>parameter list
?Status Occurrence Format Access
?REQUIRED ZeroOrMore Node Get
As shown in table 3, this is a placeholder node, is used to comprise one or more leaf nodes, the fingerprint algorithm that record DS client is supported.
Table 4 < FP >/< SupportedAlg >/< X >/< Algorithm>parameter list
Status Occurrence Format Access
REQUIRED One Chr Get
As shown in table 4, this is a leaf node, the fingerprint algorithm that record DS client is supported.
This node possible values and implication thereof are as shown in table 5:
The tabulation of table 5 node probable value
?Value Explanation (explanation)
?Changed?Flag Whether labeling algorithm to a data elements, changes its value as its fingerprint, and 0 expression does not change, and 1 expression changes
?Changed?Count Counting algorithm, to a data elements, with the number of times that changes as its fingerprint
?Sub-Item?specific The field special algorithm, to the data element, which field finger print information can indicate be modified
?MD5 Digest algorithm is made MD5 digest to the data element, with digest value as its fingerprint
?CRC The cyclic redundancy algorithm is made CRC to the data element, with the value of CRC as its fingerprint
?Timestamp The timestamp algorithm will be to the last timestamp of changing of data element as its fingerprint
?Reserved Subsequent use after giving over to
Table 6 < FP >/< x>parameter list
Status Occurrence Format Access
REQUIRED ZeroOrMore Chr Get
As shown in table 6, the placeholder node is used to indicate the fingerprint characteristic for the different database of client or server.
Table 7 < FP >/< x >/< DataStore>parameter list
Status Occurrence Format Access
REQUIRED One Node Get
As shown in table 7, it is relevant with which database being used to indicate this fingerprint characteristic.The identification information of the node database that the storage client and server is corresponding down.
Table 8 < FP >/< x >/< DataStore >/< Client>parameter list
Status Occurrence Format Access
REQUIRED One Chr Get
As shown in table 8, be used to indicate the sign of client database.
Table 9 < FP >/< x >/< DataStore >/< Server>parameter list
Status Occurrence Format Access
REQUIRED One Chr Get
As shown in table 9, be used to indicate the sign of server end database.Client database and server database must be paired, in correspondence with each other.
Table 10 < FP >/< x >/< FPSupport>parameter list
Status Occurrence Format Access
REQUIRED One Bool Get
As shown in table 10, be used to indicate certain database of DS client or server whether to support the fingerprint characteristic.Its value implication is as shown in table 11:
The tabulation of table 11 functional value implication
?Value Description
?True Support the fingerprint characteristic
?False Do not support the fingerprint characteristic
Table 12 < FP >/< x >/< Algorithm>parameter list
Status Occurrence Format Access
REQUIRED ZeroOrOne Chr Get
As shown in table 12, this is a leaf node, the fingerprint algorithm that record DS client or certain database of server are adopted.In the algorithm that its value is supported for client one.
Table 13 < FP >/< x >/< AlgChange>parameter list
Status Occurrence Format Access
REQUIRED ZeroOrOne Bool Get
As shown in table 13, this is a leaf node, and indication is for certain database, and whether fingerprint algorithm can be changed by server.
Based on above parameter setting, server just can obtain corresponding fingerprint parameter through the Get order from this MO.
Step S108 changes to: server is changed < FP >/< x >/< Algorithm>node of MO in the terminal through the Replace order of DM.
After step is accomplished, in the subsequent synchronisation of terminal and server, just use the fingerprint algorithm of server appointment.
Application scenarios that embodiment of the invention combination is concrete and numerical value describe the application process of technical scheme of the present invention, and is specifically of the embodiment of the invention seven and the embodiment of the invention eight:
The embodiment of the invention seven, existing hypothesis has 6 terminals, and the fingerprint algorithm parameter at these 6 terminals, device parameter are as shown in table 14:
The parameter at each terminal of table 14 and algorithm situation 1
Fingerprint algorithm The fingerprint algorithm collection Fingerprint can be revised Device parameter
Terminal 1 MD5 ChangedFlag,MD5,MD4,HTTP-Digest Be Nokia/N70
Terminal 2 MD5 MD5,MD4,HTTP-Digest Be Nokia/N70
Terminal 3 MD4 ChangedFlag,MD5,MD4,HTTP-Digest Not Nokia/N70
Terminal 4 MD5,HTTP-Digest Be Nokia/N95
Terminal 5 MD4 MD4,ChangedFlag Not Nokia/N95
Terminal 6 MD5,ChangedFlag Be Nokia/1110
Wherein the fingerprint algorithm parameter comprises three: but but the fingerprint algorithm collection fingerprint algorithm that the fingerprint algorithm of terminal appointment, terminal are supported dirty bit whether.Device parameter is the combination of production firm and model; Device parameter can also be that device identification, device type, software version etc. can identify the parameter that maybe can make up the marking terminal storage mode; If storage mode is identical, show that then the fingerprint that calculate certain data item at a terminal equates with what calculated at another terminal.
The situation of the data change of preserving in the server (ChangeLog) is as shown in Tble 15:
The ChangeLog situation 1 of table 15 server for saving
Terminal 1 Terminal 2 Terminal 4 Fingerprint
Data item 1 222 222 0562
Data item 2 444 444 0564
Data item 3 0560
Data item 4 sss sss sss
Wherein 222 is terminal 2 changes to data on server, and this modification is recorded among the ChangeLog at terminal 1.The 444th, the change that do on server at terminal 4, and sss is the change of server oneself to data.Last classifies the corresponding fingerprint of these data item as, and wherein sss did not also send to any terminal, so also there is not corresponding fingerprint.
ChangeLog situation in the terminal 1: shown in table 16:
The ChangeLog situation 1 that preserve at table 16 terminal 1
Data change
Data item 1 222
Data item 2 data item 3 ?111
Visual data item 1 has also changed to 222 in terminal 1 from table, and data item 2 has no change.
According to the scene description of the embodiment of the invention three, the synchronous flow process at server and terminal 1 is (each parameter server of supposing other terminal obtains) as follows:
Step S1, in Pkg#1, terminal 1 is that device parameter has sent to server with corresponding algorithm parameter in the table 15.
Step S2, receive Pkg#1 after, if according to the flow process in the method one, server carries out following analysis:
(1) analyze the device parameter at each terminal, find terminal 1 and terminal the 2,3,4, the 5th, the isonomic equipment of same manufacturers produce carries out next step.Though and be the equipment of same manufacturers produce for terminal 6, but different series, server is confirmed as its and is preserved fingerprint separately;
(2) server judges that whether each terminal specified fingerprint algorithm for this database; It is thus clear that has specified at terminal 1,2,3,5; Server judges further whether the algorithm of these appointments can be revised then; It is thus clear that the algorithm of terminal 3 and 5 cannot be revised, and terminal 3 is identical with 5 assignment algorithm, and this moment, server was preserved same set of fingerprint to these two terminals.For other three not assignment algorithm and the terminals 1,2 and 4 that can revise algorithm, server gets into next step.
(3) server optimizes a kind of algorithm in the fingerprint algorithm of these three terminal appointments and set of algorithms.According to the highest principle of supporting rate and preferentially select the principle of the fingerprint algorithm of appointment, server is selected the MD5 algorithm.
The fingerprint algorithm that step S3, server notify terminal 1 to select in Pkg#2 is MD5.
The fingerprint that data item ID and corresponding use MD5 algorithm computation go out is sent to server in step S4, terminal in Pkg#3, wherein, data item ID is data item 1 and data item 3, and fingerprint is 0562 and 0561.After server is received Pkg#3, make analysis according to the step that 2.2.5 joint is described, that preserves in the fingerprint of finding the data item 1 that send at terminal 1 and the server equates, and the fingerprint of data item 3 correspondences is unequal, and then indicating terminal only sends data item 3 in Pkg#4.Thereafter, data item 3 is sent at the terminal in Pkg#5.
Step S5, before sending Pkg#6; Server at first sends to the data at terminal 1 according to ChangeLog judgement needs; Send data item 2 and data item 4 according to the visible needs of table 15, judgement needs the fingerprint of terminal feedback then, is data item 4 it is thus clear that need the data item of feedback fingerprint.Therefore server sends data item 2 and 4 to terminal 1 in Pkg#6, and informs the fingerprint of terminal 1 feedback data item 4.
Step S6, in Pkg#7 terminal 1 feedback data to 4 fingerprint 056s.
Step S7, suppose in this process step S 2; Server is not selected the device parameter of analysing terminal 1; Then server can be noted the fingerprint 0561 of terminal 1 feedback data item 3 in 4; Next time to synchronous these data in terminal 2 time, 2 fingerprints of data item 3 of reentrying from the terminal, and compare to determine whether and can preserve a cover fingerprint to terminal 1 and terminal 2.The embodiment of the inventive method that Here it is two.
Can find that through present embodiment server can be according to the fingerprint situation of preserving other terminal, judge and inform the data item that the terminal need be sent that so just reduced the data volume that send at the terminal, S4 is said like step.In addition, server can be informed a terminal feedback fraction fingerprint, has also reduced the data volume that send at the terminal, and is of step S5 and step S6.
The embodiment of the invention eight, shown in table 17, be the fingerprint parameter and the device parameter situation of each equipment:
The parameter at each terminal of table 17 and algorithm situation 2
Fingerprint algorithm The fingerprint algorithm collection Fingerprint can be revised Device parameter
Terminal 1 MD5 ChangedFlag,MD5,MD4,HTTP-Digest Be Nokia/N70
Terminal 2 HTTP-Digest MD5,MD4,HTTP-Digest Be Nokia/N70
Figure S2008101270657D00191
ChangeLog situation and embodiment in the server and the terminal 1 cause the July 1st.
According to the scene description of the embodiment of the invention four, at first be that the method that proposed according to the embodiment of the invention one confirms have two terminals not specify fingerprint algorithm according to table 17 is visible to fingerprint algorithm in the flow process of Pkg#1 and Pkg#2; The fingerprint algorithm of other three terminal appointments also has nothing in common with each other; Server is taken all factors into consideration the fingerprint algorithm collection that each terminal is supported then, for MD5, MD4 and TimeStamp algorithm, all has 4 terminals to support; Be that supporting rate is the same; This moment, server can go out an algorithm by the algorithm selective sequential in the set of algorithms, and promptly the MD5 algorithm (can certainly be selected by the priority that in server, is provided with in advance; For example the priority of MD4 is high, then selects the MD4 algorithm.) then server in Pkg#2, inform the algorithm that terminal 1 is selected.
In addition, for terminal 5, because it does not support the MD5 algorithm, server can be selected an algorithm for it, notifies it then, and preserves a cover fingerprint for it separately.
Step S1, before sending Pkg#3 the local data change situation of terminal analysis, local data item 1 and 3 has change, then the fingerprint of the first transmission of server data item indicate at the terminal when Pkg#3.
Step S 2, server send the fingerprint of data item 1,2 and 4 to the terminal when Pkg#4.
Step S 3, receive Pkg#4 after, terminal and local fingerprint are made comparisons, that preserves in the fingerprint of finding data item 1 and the server equates, then notes data item 1.
Step S4, terminal indicate server only to send data item 2 and 4 when Pkg#5, and subsequent step is identical with prior art.
Can find out that through present embodiment the fingerprint of server for saving is used in before one-way synchronization is carried out at the terminal and sends to the terminal, let the reception data of terminal selectively, to reduce the data volume of sending to the terminal.
The method that the corresponding embodiment of the invention one is proposed, the embodiment of the invention nine has proposed a kind of server, and is as shown in Figure 7, specifically comprises:
Information acquisition module 71 is used to obtain the device parameter and the fingerprint algorithm at a plurality of terminals.
Wherein, according to the difference of obtain manner, information acquisition module 71 specifically comprises two kinds of constituted modes:
Constituted mode one, information acquisition module 71 comprises:
Send submodule 711, be used for the message of obtaining to each terminal transmitting apparatus managing conversation;
Receive submodule 712, be used to receive the fingerprint algorithm supported in the fingerprint algorithm that returns at each terminal, sign that whether fingerprint algorithm can be changed and each terminal concentrates one or multinomial;
The first synchronous submodule 713 is used for obtaining through data synchronization session the facility information at each terminal.
Constituted mode two, information acquisition module 71 comprises:
The second synchronous submodule 714, of being used for obtaining through data synchronization session that the fingerprint algorithm supported in the fingerprint algorithm at facility information, each terminal at each terminal, sign that whether fingerprint algorithm can be changed and each terminal concentrates or multinomial.
Signal judgement module 72, whether the device parameter at each terminal that is used to judge that information acquisition module 71 is received is identical.
Unified algorithms module 73; Be used for when signal judgement module 72 judges that the device parameter at each terminal is identical, further judging whether to unify the fingerprint algorithm at each terminal, when the fingerprint algorithm at each terminal can be unified; Select unified fingerprint algorithm for each terminal, specifically comprise:
First judges submodule 731, is used to judge whether each terminal specifies fingerprint algorithm;
Second judges submodule 732, is used for when the first judgement submodule 731 judges that fingerprint algorithm is specified at each terminal, further judging whether to allow to revise the appointment fingerprint algorithm;
The 3rd judges submodule 733, is used for when the second judgement submodule 732 judges that the appointment fingerprint algorithms do not allow to be modified, judging further whether the appointment fingerprint algorithm is identical;
Algorithm chooser module 734; Be used for when first judges that submodule 731 judges that fingerprint algorithm is not specified at each terminal; Or when second judges that submodule 732 judges that the appointment fingerprint algorithm allows to be modified; According to priority rule, concentrate the fingerprint algorithm of selecting whole supports in each terminal or major part to support to be the unification fingerprint algorithm at the fingerprint algorithm that information acquisition module 71 obtained.
Fingerprint is preserved module 74; Be used for after unified algorithms module 73 is selected unified fingerprint algorithm; For only preserving the data fingerprint that the identical unified fingerprint algorithm that passes through 73 selections of unified algorithms module of a cover obtains in each terminal; Or when unified algorithms module 73 can not be selected the unification fingerprint algorithm, preserve corresponding data fingerprint respectively for each terminal, specifically comprise:
Fingerprint receives submodule 741, is used to receive that each terminal sends passes through the data fingerprint that unified fingerprint algorithm that unified algorithms module 73 selects obtains.
Algorithm sending module 75 is used for transmission algorithm and unifies the unified fingerprint algorithm that module 73 selects and send to each terminal, so that the corresponding fingerprint algorithm of each terminal updating is for unifying fingerprint algorithm.
The method that the corresponding embodiment of the invention two is proposed, the embodiment of the invention ten has proposed a kind of server, and is as shown in Figure 8, comprising:
Information acquisition module 81 is used to obtain the fingerprint algorithm at a plurality of terminals.
Wherein, according to the difference of obtain manner, information acquisition module 81 specifically comprises two kinds of constituted modes:
Constituted mode one, information acquisition module 81 specifically comprises:
Send submodule 811, be used for the message of obtaining to each terminal transmitting apparatus managing conversation;
Receive submodule 812, be used to receive the fingerprint algorithm supported in the fingerprint algorithm that returns at each terminal, sign that whether fingerprint algorithm can be changed and each terminal concentrates one or multinomial.
Constituted mode two, information acquisition module 81 specifically comprises:
Synchronous submodule 813, of being used for obtaining through data synchronization session that the fingerprint algorithm supported in the fingerprint algorithm at each terminal, sign that whether fingerprint algorithm can be changed and each terminal concentrates or multinomial.
Unified algorithms module 82 is used for judging whether to unify according to the fingerprint algorithm that information acquisition module 81 is obtained the fingerprint algorithm at each terminal, when the fingerprint algorithm at each terminal can be unified, is that unified fingerprint algorithm is selected at each terminal, specifically comprises:
First judges submodule 821, is used to judge whether each terminal specifies fingerprint algorithm;
Second judges submodule 822, is used for when the first judgement submodule 821 judges that fingerprint algorithm is specified at each terminal, further judging whether to allow to revise the appointment fingerprint algorithm;
The 3rd judges submodule 823, is used for when the second judgement submodule 822 judges that the appointment fingerprint algorithms do not allow to be modified, judging further whether the appointment fingerprint algorithm is identical;
Algorithm chooser module 824; Be used for when first judges that submodule 821 judges that fingerprint algorithm is not specified at each terminal; Or when second judges that submodule 822 judges that the appointment fingerprint algorithm allows to be modified; According to priority rule, concentrate the fingerprint algorithm of selecting whole supports in each terminal or major part to support to be the unification fingerprint algorithm at the fingerprint algorithm that the information acquisition module obtained.
Fingerprint acquisition module 83 is used to obtain the resulting data fingerprint of unified fingerprint algorithm according to 82 selections of unified algorithms module that send at each terminal;
Fingerprint judge module 84 is used to judge whether the data fingerprint of fingerprint acquisition module 81 receptions is identical;
Fingerprint is preserved module 85; Be used in the judged result of fingerprint judge module 84 when being identical; Only preserve one for each terminal and overlap the identical data fingerprint that unified fingerprint algorithm obtains that passes through; Or when unified algorithms module 82 can not be selected the unification fingerprint algorithm, preserve corresponding data fingerprint respectively for each terminal, specifically comprise:
Fingerprint receives submodule 851, is used to receive that each terminal sends passes through the data fingerprint that unified fingerprint algorithm that the unified algorithms module selects obtains.
Algorithm sending module 86 is used for transmission algorithm and unifies the unified fingerprint algorithm that module 82 selects and send to each terminal, so that the corresponding fingerprint algorithm of each terminal updating is for unifying fingerprint algorithm.
Test data sending module 87 is used for sending test data to each terminal.
Through the present invention, server can have been practiced thrift memory space, and can save the data volume in the subsequent synchronisation flow process for only preserve a cover fingerprint to a plurality of terminals of same database synchronization, has saved interface-free resources.In addition, make in this way, be equivalent in server, to preserve the up-to-date fingerprint of a cover, when intelligent synchronization, whether a server association of sense terminals very easily is up-to-date, saved the processing time.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprise some instructions with so that a station terminal equipment (can be mobile phone, personal computer; Server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be looked protection scope of the present invention.

Claims (32)

1. a data fingerprint store method is characterized in that, may further comprise the steps:
Obtain the device parameter and the fingerprint algorithm at a plurality of terminals;
Whether the device parameter of judging said a plurality of terminals is identical;
Judge whether the terminal that device parameter is identical in said a plurality of terminal can unify fingerprint algorithm, unified fingerprint algorithm is selected at the terminal that, fingerprint algorithm identical for device parameter can be unified;
, fingerprint algorithm identical for each said device parameter can be unified the terminal only preserve that a cover is identical to pass through the data fingerprint that said unified fingerprint algorithm obtains.
2. data fingerprint store method according to claim 1 is characterized in that said device parameter specifically comprises:
In production firm, unit type, OS Type, device type, device identification, the software version one or multinomial.
3. data fingerprint store method according to claim 1 is characterized in that said device parameter and the fingerprint algorithm that obtains a plurality of terminals also comprises:
Obtain the fingerprint algorithm collection that said a plurality of terminal is supported.
4. like each described data fingerprint store method of claim 1 to 3, it is characterized in that said device parameter and the fingerprint algorithm that obtains a plurality of terminals is specially:
Obtain GET message to said a plurality of terminals transmitting apparatus management DM session; Receive that the fingerprint algorithm supported in sign that whether fingerprint algorithm that returns at said a plurality of terminal, said fingerprint algorithm can change and said a plurality of terminals concentrates one or multinomial, and the facility information through the said a plurality of terminals of data synchronization DS acquisition conversation; Or,
One of concentrating of the fingerprint algorithm that the sign that whether can change through the fingerprint algorithm at the facility information at the said a plurality of terminals of data synchronization DS acquisition conversation, said a plurality of terminals, said fingerprint algorithm and said a plurality of terminals are supported or multinomial.
5. data fingerprint store method according to claim 1 is characterized in that, saidly judges whether the device parameter at a plurality of terminals is identical, also comprises:
When the device parameter at said a plurality of terminals is inequality, is respectively said a plurality of terminal and preserves corresponding data fingerprint.
6. like the said data fingerprint store method of claim 3; It is characterized in that; Whether the said terminal of judging that device parameter is identical in a plurality of terminals can unify fingerprint algorithm, and unified fingerprint algorithm is selected at the terminal that, fingerprint algorithm identical for device parameter can be unified, specifically comprises:
Judge whether the identical terminal of said device parameter specifies fingerprint algorithm;
When fingerprint algorithm was not specified at the identical terminal of said device parameter, according to priority rule, concentrating the fingerprint algorithm of selecting whole supports in the identical terminal of said device parameter or major part to support at said fingerprint algorithm was said unified fingerprint algorithm;
When fingerprint algorithm is specified at the identical terminal of said device parameter, further judge whether to allow to revise said appointment fingerprint algorithm, according to the result of said judgement, carry out selecting the operation of unified fingerprint algorithm for the identical terminal of said device parameter.
7. like the said data fingerprint store method of claim 6, it is characterized in that, said according to the result who judges, carry out selecting the operation of unified fingerprint algorithm for the identical terminal of said device parameter, be specially:
When said appointment fingerprint algorithm allowed to be modified, according to priority rule, concentrating the fingerprint algorithm of selecting whole supports in the identical terminal of said device parameter or major part to support at said fingerprint algorithm was said unified fingerprint algorithm;
When said appointment fingerprint algorithm does not allow to be modified, judge further whether said appointment fingerprint algorithm is identical, when said appointment fingerprint algorithm was identical, selecting said appointment fingerprint algorithm was said unified fingerprint algorithm.
8. data fingerprint store method according to claim 1; It is characterized in that; Whether the said terminal of judging that device parameter is identical in a plurality of terminals can unify fingerprint algorithm, and the terminal that, fingerprint algorithm identical for device parameter can be unified is selected also to comprise after the unified fingerprint algorithm:
Notice supports the terminal of unified fingerprint algorithm that fingerprint algorithm is changed to said unified fingerprint algorithm.
9. like the said data fingerprint store method of claim 8, it is characterized in that, said for identical, the fingerprint algorithm of each device parameter can be unified the terminal only preserve after identical the passing through of the cover data fingerprint that said unified fingerprint algorithm obtains, also comprise:
Receive said support and unify data item identifier and the fingerprint that the desire of the terminal transmission of fingerprint algorithm is sent;
Judge the said fingerprint that receives with preserved said identical pass through the data fingerprint that said unified fingerprint algorithm obtains and whether equate;
Notify said terminal to send the unequal data item of said fingerprint.
10. like the said data fingerprint store method of claim 8, it is characterized in that, said for identical, the fingerprint algorithm of each device parameter can be unified the terminal only preserve after identical the passing through of the cover data fingerprint that said unified fingerprint algorithm obtains, also comprise:
Whether the fingerprint of the data item that judgement need be sent to said terminal exists;
Notify said terminal feedback not have the fingerprint of the said data item of fingerprint.
11. like the said data fingerprint store method of claim 8; It is characterized in that; Said for identical, the fingerprint algorithm of each device parameter can be unified the terminal only preserve after identical the passing through of the cover data fingerprint that said unified fingerprint algorithm obtains;,, said support also comprises when unifying the terminal initiation one-way synchronization of fingerprint algorithm at server:
The terminal that fingerprint algorithm is unified in said support receives the fingerprint of the desire data in synchronization item that said server sends, and it is that the same set of fingerprint that preserve at the terminal of fingerprint algorithm is unified in said a plurality of support that said fingerprint is specially said server;
Whether the said fingerprint that receives of terminal judges that fingerprint algorithm is unified in said support equates with the data fingerprint that obtains through said unified fingerprint algorithm;
Said support is unified the terminal of fingerprint algorithm and is notified said server to send the unequal data item of said fingerprint.
12. like the said data fingerprint store method of claim 7, it is characterized in that, when said appointment fingerprint algorithm is inequality, is respectively said a plurality of terminal and preserves corresponding data fingerprint.
13., it is characterized in that said priority rule is specially in the following rule one or multinomial like claim 6 or 7 said data fingerprint store methods:
Sequencing according to each preset fingerprint algorithm; Or,
According to each fingerprint algorithm in terminal supporting rate height order that said fingerprint algorithm is concentrated; Or,
Pay the utmost attention to the fingerprint algorithm of terminal appointment.
14. a server is characterized in that, comprising:
The information acquisition module is used to obtain the device parameter and the fingerprint algorithm at a plurality of terminals;
Signal judgement module, whether the device parameter at the said a plurality of terminals that are used to judge that said information acquisition module is received is identical;
The unified algorithms module is used for judging whether device parameter identical terminal in said a plurality of terminals can unify fingerprint algorithm, and unified fingerprint algorithm is selected at the terminal that, fingerprint algorithm identical for device parameter can be unified;
Fingerprint is preserved module; Be used for after said unified algorithms module is selected said unified fingerprint algorithm;, fingerprint algorithm identical for said device parameter can be unified the terminal only preserve that a cover is identical to pass through the data fingerprint that unified fingerprint algorithm that said unified algorithms module selects obtains; Or when said unified algorithms module can not be selected the unification fingerprint algorithm, for preserving corresponding data fingerprint respectively in said a plurality of terminals.
15., it is characterized in that said unified algorithms module specifically comprises like the said server of claim 14:
First judges submodule, is used to judge whether the identical terminal of said device parameter specifies fingerprint algorithm;
Second judges submodule, is used for when said first judges that submodule judges that fingerprint algorithm is specified at the identical terminal of said device parameter, further judging whether to allow to revise said appointment fingerprint algorithm;
The 3rd judges submodule, is used for when said second judges that submodule judges that the appointment fingerprint algorithm does not allow to be modified, judging further whether said appointment fingerprint algorithm is identical;
Algorithm chooser module; Be used for when said first judges that submodule judges that fingerprint algorithm is not specified at the identical terminal of said device parameter; Or when said second judges that submodule judges that the appointment fingerprint algorithm allows to be modified; According to priority rule, the whole supports in terminal that the said device parameter of the concentrated selection of fingerprint algorithm that is obtained at said information acquisition module is identical or the fingerprint algorithm of most of support are said unified fingerprint algorithm.
16. like the said server of claim 14, it is characterized in that, also comprise:
The algorithm sending module; Be used to send the terminal that unified fingerprint algorithm that said unified algorithms module selects sends to the said unified fingerprint algorithm of said support, make that the fingerprint algorithm of the terminal updating correspondence of supporting said unified fingerprint algorithm is said unified fingerprint algorithm.
17. a data fingerprint store method is characterized in that, may further comprise the steps:
Obtain the fingerprint algorithm at a plurality of terminals;
Judge whether to unify the fingerprint algorithm at said a plurality of terminals, for selecting unified fingerprint algorithm in each terminal that can unify fingerprint algorithm;
Obtain support and unify the data fingerprint that the terminal of fingerprint algorithm obtains according to said unified fingerprint algorithm;
Judge whether the fingerprint algorithm terminal is unified in said support identical according to the data fingerprint that said unified fingerprint algorithm obtains, and only preserve one for the identical terminal of said data fingerprint and overlap the identical data fingerprint that said unified fingerprint algorithm obtains that passes through.
18., it is characterized in that the said fingerprint algorithm that obtains a plurality of terminals also comprises like the said data fingerprint store method of claim 17:
Obtain the fingerprint algorithm collection that said a plurality of terminal is supported.
19., it is characterized in that the said fingerprint algorithm that obtains a plurality of terminals is specially like the said data fingerprint store method of claim 18:
Obtain GET message, receive that the fingerprint algorithm supported in sign that whether fingerprint algorithm that returns at said a plurality of terminal, said fingerprint algorithm can change and said a plurality of terminals concentrates one or multinomial to said a plurality of terminals transmitting apparatus management DM session; Or,
Through the said a plurality of terminals of data synchronization DS acquisition conversation of concentrating of the fingerprint algorithm supported of fingerprint algorithm, sign that whether said fingerprint algorithm can be changed and said a plurality of terminals or multinomial.
20., it is characterized in that the said fingerprint algorithm that judges whether to unify each said terminal is selected unified fingerprint algorithm for each terminal that can unify fingerprint algorithm, specifically comprises like the said data fingerprint store method of claim 18:
Judge whether said a plurality of terminal specifies fingerprint algorithm;
When fingerprint algorithm is not specified at said a plurality of terminals,, concentrate to select said terminal of not specifying fingerprint algorithm all to support or most of fingerprint algorithm of supporting is said unified fingerprint algorithm at said fingerprint algorithm according to priority rule;
When fingerprint algorithm is specified at each said terminal, further judge whether to allow to revise said appointment fingerprint algorithm, according to the result of said judgement, carry out selecting the operation of unified fingerprint algorithm for the terminal of said appointment fingerprint algorithm.
21. like the said data fingerprint store method of claim 20, it is characterized in that, said according to the result who judges, carry out selecting the operation of unified fingerprint algorithm for the terminal of said appointment fingerprint algorithm, be specially:
When said appointment fingerprint algorithm allowed to be modified, according to priority rule, concentrating the fingerprint algorithm that the terminal is all supported or major part is supported of selecting each said appointment fingerprint algorithm at said fingerprint algorithm was said unified fingerprint algorithm;
When said appointment fingerprint algorithm does not allow to be modified, judge further whether said appointment fingerprint algorithm is identical, when said appointment fingerprint algorithm was identical, selecting said appointment fingerprint algorithm was said unified fingerprint algorithm.
22., it is characterized in that the said fingerprint algorithm that judges whether to unify said a plurality of terminals is selected unified fingerprint algorithm for each terminal that can unify fingerprint algorithm, also comprises like the said data fingerprint store method of claim 17:
Notice supports the terminal of said unified fingerprint algorithm that fingerprint algorithm is changed to said unified fingerprint algorithm.
23. like the said data fingerprint store method of claim 22, it is characterized in that, saidly only preserve identical the passing through of a cover for the identical terminal of said data fingerprint and also comprise after the data fingerprint that said unified fingerprint algorithm obtains:
Receive said support and unify data item identifier and the fingerprint that the desire of the terminal transmission of fingerprint algorithm is sent;
Judge the said fingerprint that receives with preserved said identical pass through the data fingerprint that said unified fingerprint algorithm obtains and whether equate;
Notify said terminal to send the unequal data item of said fingerprint.
24. like the said data fingerprint store method of claim 22, it is characterized in that, saidly only preserve identical the passing through of a cover for the identical terminal of said data fingerprint and also comprise after the data fingerprint that said unified fingerprint algorithm obtains:
Whether the fingerprint of the data item that judgement need be sent to said terminal exists;
Notify said terminal feedback not have the fingerprint of the said data item of fingerprint.
25. like the said data fingerprint store method of claim 22; It is characterized in that; It is said that a cover is identical to be passed through after the data fingerprint that said unified fingerprint algorithm obtains for only preserve at the identical terminal of said data fingerprint;,, said support also comprises when unifying the terminal initiation one-way synchronization of fingerprint algorithm at server:
The terminal that fingerprint algorithm is unified in said support receives the fingerprint of the desire data in synchronization item that said server sends, and it is that the same set of fingerprint that preserve at the terminal of fingerprint algorithm is unified in said a plurality of support that said fingerprint is specially said server;
Whether the said fingerprint that receives of terminal judges that fingerprint algorithm is unified in said support equates with the data fingerprint that obtains through said unified fingerprint algorithm;
Said support is unified the terminal of fingerprint algorithm and is notified said server to send the unequal data item of said fingerprint.
26. like the said data fingerprint store method of claim 21, it is characterized in that, when said appointment fingerprint algorithm is inequality, is respectively each said terminal and preserves corresponding data fingerprint.
27., it is characterized in that said priority rule is specially in the following rule one or multinomial like claim 20 or 21 said data fingerprint store methods:
Sequencing according to each preset fingerprint algorithm; Or,
According to each fingerprint algorithm in terminal supporting rate height order that said fingerprint algorithm is concentrated; Or,
Pay the utmost attention to the fingerprint algorithm of terminal appointment.
28., it is characterized in that said each said terminal that obtains is specially according to the data fingerprint that said unified fingerprint algorithm obtains like the said data fingerprint store method of claim 17:
Send test data to each said terminal, and receive the corresponding data fingerprint of said test data that each said terminal obtains according to said unified fingerprint algorithm; Or,
Receive the corresponding data fingerprint of synchronized data item in each said terminal that each said terminal obtains according to said unified fingerprint algorithm, the said item of data in synchronization is meant that the same data clauses and subclauses in each terminal equate.
29. like the said data fingerprint store method of claim 17, it is characterized in that, saidly judge that whether each said terminal is identical according to the data fingerprint that said unified fingerprint algorithm obtains, and also comprises:
When said judged result when being inequality, be respectively each said terminal and preserve corresponding data fingerprint.
30. a server is characterized in that, comprising:
The information acquisition module is used to obtain the fingerprint algorithm at a plurality of terminals;
The unified algorithms module is used for judging whether to unify according to the fingerprint algorithm that said information acquisition module is obtained the fingerprint algorithm at each said terminal, and for selecting unified fingerprint algorithm in each terminal that can unify fingerprint algorithm;
The fingerprint acquisition module is used to obtain the resulting data fingerprint of unified fingerprint algorithm according to said unified algorithms module selection that send at each the said terminal that can unify fingerprint algorithm;
The fingerprint judge module is used to judge whether the data fingerprint of said fingerprint acquisition module reception is identical;
Fingerprint is preserved module; The judged result that is used to each said fingerprint judge module is that identical terminal only preserves that a cover is identical to pass through the data fingerprint that said unified fingerprint algorithm obtains; Or when said unified algorithms module can not be selected the unification fingerprint algorithm, for preserving corresponding data fingerprint respectively in each said terminal.
31., it is characterized in that said unified algorithms module specifically comprises like the said server of claim 30:
First judges submodule, is used to judge whether each said terminal specifies fingerprint algorithm;
Second judges submodule, is used for when said first judges that submodule judges that fingerprint algorithm is specified at each said terminal, further judging whether to allow to revise said appointment fingerprint algorithm;
The 3rd judges submodule, is used for when said second judges that submodule judges that the appointment fingerprint algorithm does not allow to be modified, judging further whether said appointment fingerprint algorithm is identical;
Algorithm chooser module; Be used for when said first judges that submodule judges that fingerprint algorithm is not specified at each said terminal; Or when said second judges that submodule judges that the appointment fingerprint algorithm allows to be modified; According to priority rule, the fingerprint algorithm that is obtained at said information acquisition module is concentrated and is selected each said terminal all to support or most of fingerprint algorithm of supporting is said unified fingerprint algorithm.
32. like the said server of claim 30, it is characterized in that, also comprise one or more in algorithm sending module and the test data sending module:
Said algorithm sending module is used to send the unified fingerprint algorithm that said unified algorithms module selects and sends to each said terminal, so that the fingerprint algorithm of each said terminal updating correspondence is said unified fingerprint algorithm.
Said test data sending module is used for sending test data to each said terminal.
CN2008101270657A 2008-06-19 2008-06-19 Method and device for storing data fingerprints Active CN101610281B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN2008101270657A CN101610281B (en) 2008-06-19 2008-06-19 Method and device for storing data fingerprints
PCT/CN2009/071870 WO2009152716A1 (en) 2008-06-19 2009-05-20 Method, device for storing data fingerprint and method for synchronizing data of plurality of devices
CN2009801013612A CN101897147B (en) 2008-06-19 2009-05-20 Method, device for storing data fingerprint and method for synchronizing data of plurality of devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101270657A CN101610281B (en) 2008-06-19 2008-06-19 Method and device for storing data fingerprints

Publications (2)

Publication Number Publication Date
CN101610281A CN101610281A (en) 2009-12-23
CN101610281B true CN101610281B (en) 2012-11-21

Family

ID=41433681

Family Applications (2)

Application Number Title Priority Date Filing Date
CN2008101270657A Active CN101610281B (en) 2008-06-19 2008-06-19 Method and device for storing data fingerprints
CN2009801013612A Active CN101897147B (en) 2008-06-19 2009-05-20 Method, device for storing data fingerprint and method for synchronizing data of plurality of devices

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN2009801013612A Active CN101897147B (en) 2008-06-19 2009-05-20 Method, device for storing data fingerprint and method for synchronizing data of plurality of devices

Country Status (2)

Country Link
CN (2) CN101610281B (en)
WO (1) WO2009152716A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995863B (en) * 2014-05-19 2018-06-19 华为技术有限公司 A kind of method and device of data de-duplication
CN106407768B (en) * 2015-07-29 2019-06-07 阿里巴巴集团控股有限公司 A kind of determination of device-fingerprint, the method and apparatus that target device is identified
CN112395436B (en) * 2019-08-14 2024-07-02 天津极豪科技有限公司 Bottom library input method and device
CN113923012B (en) * 2021-09-30 2024-01-26 杭州默安科技有限公司 Fingerprint generation method and tamper-proof method of client device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859188A (en) * 2005-12-29 2006-11-08 华为技术有限公司 Communication fingerprint system and communication fingerprint collecting and managing method
CN101009516A (en) * 2006-01-26 2007-08-01 华为技术有限公司 A method and system for data synchronization
CN101183323A (en) * 2007-12-10 2008-05-21 华中科技大学 Data stand-by system based on finger print

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7574451B2 (en) * 2004-11-02 2009-08-11 Microsoft Corporation System and method for speeding up database lookups for multiple synchronized data streams
US20060126829A1 (en) * 2004-11-24 2006-06-15 Binbin Lai Image encryption method
CN100393048C (en) * 2006-01-13 2008-06-04 武汉大学 Method for building network fault diagnosis rule base

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859188A (en) * 2005-12-29 2006-11-08 华为技术有限公司 Communication fingerprint system and communication fingerprint collecting and managing method
CN101009516A (en) * 2006-01-26 2007-08-01 华为技术有限公司 A method and system for data synchronization
CN101183323A (en) * 2007-12-10 2008-05-21 华中科技大学 Data stand-by system based on finger print

Also Published As

Publication number Publication date
CN101897147A (en) 2010-11-24
WO2009152716A1 (en) 2009-12-23
CN101610281A (en) 2009-12-23
CN101897147B (en) 2013-04-24

Similar Documents

Publication Publication Date Title
CN111800443B (en) Data processing system and method, device and electronic equipment
CN101409614A (en) Data synchronization method, system and equipment
CN106777308A (en) The synchronous method and device of civil aviaton&#39;s sequence information
CN110598110B (en) Service pushing method and device
CN103237075B (en) A kind of method of data synchronization, Apparatus and system
CN109710655A (en) Data base query method, device, terminal device and storage medium
CN101610281B (en) Method and device for storing data fingerprints
CN106814975A (en) A kind of memory management method and its system for polymorphic type storage device
US20070118570A1 (en) Method and apparatus for data configuration in communication device
CN112199447A (en) Database synchronization method, device and system and electronic equipment
CN110505081A (en) A kind of abnormal log upload, acquisition method and processing system for saving flow
CN109710676A (en) Data capture method, device and the electronic equipment of CMDB model
US7797273B2 (en) System and a method for reliable symmetric data synchronization
US20160212570A1 (en) Fault Management Method and Apparatus
CN112015812B (en) Data synchronization method and data synchronization device
CN114791927A (en) Data analysis method and device
CN116094907B (en) Complaint information processing method, complaint information processing device and storage medium
CN107609197A (en) A kind of method of data synchronization, data synchronization unit and mobile terminal
CN101068162B (en) Method for realizing warning position condition selection
CN107577822A (en) A kind of method of data synchronization, data synchronization unit and mobile terminal
CN106469168B (en) The method and device that diversiform data is handled in data integrated system
CN112291312B (en) ETL data synchronization method and device, electronic equipment and storage medium
CN107529137A (en) A kind of localization method and Internet of Things server based on Internet of Things
CN107770265B (en) A kind of method of data synchronization, data synchronization unit and mobile terminal
CN104935461A (en) Network resource management method and system in multi-network environment

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