CN101741569A - Data synchronization method, data synchronization system, client and server - Google Patents

Data synchronization method, data synchronization system, client and server Download PDF

Info

Publication number
CN101741569A
CN101741569A CN200910260894A CN200910260894A CN101741569A CN 101741569 A CN101741569 A CN 101741569A CN 200910260894 A CN200910260894 A CN 200910260894A CN 200910260894 A CN200910260894 A CN 200910260894A CN 101741569 A CN101741569 A CN 101741569A
Authority
CN
China
Prior art keywords
finger print
print data
secondary finger
data
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200910260894A
Other languages
Chinese (zh)
Other versions
CN101741569B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2009102608947A priority Critical patent/CN101741569B/en
Publication of CN101741569A publication Critical patent/CN101741569A/en
Application granted granted Critical
Publication of CN101741569B publication Critical patent/CN101741569B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention provides a data synchronization method, a data synchronization system, a client and a server, which belong to the field of mobile communication. The data synchronization method comprises the following steps that: the client transmits an update request to a server, wherein the update request carries a local unique identifier and more than two pieces of secondary fingerprint data; the client receives an synchronization request which carries the secondary fingerprint data and is returned by the server, wherein the secondary fingerprint data carried in the synchronization request is the secondary fingerprint data different from the secondary fingerprint data stored in the server; and the client transmits a data item corresponding to the secondary fingerprint data carried in the synchronization request to the sever. The method, the device, the client and the server of each embodiment of the invention can reduce the quantity of the data needed to be transmitted in the data synchronization and enhance the efficiency of the data synchronization. The technical scheme of the invention can be widely applied in the technical field of the data synchronization.

Description

Method of data synchronization, system and client, server
Technical field
The present invention relates to moving communicating field, particularly a kind of method of data synchronization, system and client, server.
Background technology
Development along with wireless traffic, the personal information of mobile phone terminal stored, calendar information and e-mail messages etc. become more and more important, SyncML (Synchronization Markup Language, synchronization makeup language) agreement can realize the data sync of the mobile phone terminal and the webserver, data in the mobile phone terminal are backuped in the webserver, when the data that the user changes mobile phone or mobile phone terminal stored change, can easily Backup Data be returned in the mobile phone terminal.
The user utilizes the client in the mobile phone terminal to register a PIM (PersonalInformation Manager on the webserver, personal information manager) number of the account, when the data in the mobile phone terminal change, the user can directly utilize client to carry out data sync, makes data in the server and the data in the mobile phone terminal be consistent.
Can generate finger print data according to Data Identification by the fingerprint generating algorithm, finger print data changes along with the change of data, when carrying out data sync, can come check data whether to change by finger print data, also be consistent for its finger print data of data of client and server unanimity.When the data in the mobile phone terminal change, client produces new finger print data, and new finger print data sent to server, server checks whether the finger print data of self storing is consistent with this finger print data, if inconsistent, shows that change has taken place the data in the mobile phone terminal, server just sends request to client, request sends to server with the data in the mobile phone terminal, and server upgrades the data of preserving after the data that receive the client transmission.
But the inventor states in the process in realization, find that prior art has following defective: often include a lot of data item in the mobile phone terminal, but only corresponding one-level finger print data of all data item, even wherein the low volume data item changes, this finger print data also can change, server checks that finger print data and the finger print data after the change that self stores are inconsistent, will require the data item of client with this finger print data correspondence, just all data item of client stores all send over, cause some data item that may not change also will be transmitted, making needs data quantity transmitted bigger, and the efficient of data sync is lower.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of can the minimizing needs data quantity transmitted in the data sync, promote method of data synchronization, system and client, the server of data synchronization efficiency.
For solving the problems of the technologies described above, embodiments of the invention provide technical scheme as follows:
On the one hand, embodiments of the invention provide a kind of method of data synchronization, comprising:
User end to server sends update request, carries local unique identification and two above secondary finger print datas in the described update request;
Described client receives the synchronization request that carries the secondary finger print data that described server returns, and the secondary finger print data that carries in the described synchronization request is and the inconsistent secondary finger print data of the secondary finger print data of described server stores;
The corresponding data item of secondary finger print data that described client is carried in described server transmission and described synchronization request.
Wherein, can also carry the one-level finger print data in the described update request.
Further, described user end to server also comprises before sending update request:
Described client generates the one-level finger print data according to described local unique identification by the fingerprint generating algorithm;
Described client is encoded to two above data item under the described local unique identification, and generates two the above secondary finger print datas corresponding with described data item according to described coding by the fingerprint generating algorithm.
Embodiments of the invention also provide a kind of method of data synchronization, comprising:
Server receives the update request that client sends, and carries local unique identification and two above secondary finger print datas in the described update request;
Described server is compared described two above secondary finger print datas with the secondary finger print data of being stored, the inconsistent secondary finger print data of secondary finger print data that finds out Yu stored;
Described server sends the synchronization request that carries described inconsistent secondary finger print data to described client, and request transmits and the corresponding data item of described inconsistent secondary finger print data.
Wherein, also comprise before the update request that described server reception client sends:
Described server defines the local unique identification of described client and the corresponding relation between the global unique identification, and stores described corresponding relation.
Wherein, described server is compared described two above secondary finger print datas and is comprised with the secondary finger print data of being stored:
Local unique identification that described whois lookup is stored and global unique identification corresponding relation are found out and the corresponding global unique identification of local unique identification that receives;
Described server is compared two received above secondary finger print datas with the secondary finger print data under the described global unique identification.
Further, also carry the one-level finger print data in the described update request, described server also comprises before described two above secondary finger print datas are compared with the secondary finger print data of being stored:
Described server judges that one-level finger print data that carries in the described update request and the one-level finger print data of being stored are inconsistent.
Embodiments of the invention also provide a kind of client, comprising:
Sending module is used for sending update request to server, carries local unique identification and two above secondary finger print datas in the described update request;
Receiver module is used to receive the synchronization request that carries the secondary finger print data that described server returns, and the secondary finger print data that carries in the described synchronization request is and the inconsistent secondary finger print data of the secondary finger print data of described server stores;
Respond module is used for sending the corresponding data item of secondary finger print data of carrying with described synchronization request to described server.
Wherein, described client also comprises:
Coding module is used for two above data item under the described local unique identification are encoded;
Generation module is used for generating two the above secondary finger print datas corresponding with described data item according to described coding by the fingerprint generating algorithm.
Embodiments of the invention also provide a kind of server, comprising:
Receiver module is used to receive the update request that client sends, and carries local unique identification and two above secondary finger print datas in the described update request;
Comparison module, two above secondary finger print datas that are used for described receiver module is received are compared with the secondary finger print data of being stored, the inconsistent secondary finger print data of secondary finger print data that finds out Yu stored;
Processing module is used for sending the synchronization request that carries described inconsistent secondary finger print data to described client, and request transmits and the corresponding data item of described inconsistent secondary finger print data.
Wherein, described server also comprises:
Definition module is used to define the local unique identification of described client and the corresponding relation between the global unique identification;
Memory module is used to store described corresponding relation.
Wherein, described comparison module comprises:
Search submodule, be used to search the local unique identification of described memory module storage and the corresponding relation of global unique identification, find out the corresponding global unique identification of local unique identification that receives with described receiver module;
Comparison sub-module, two above secondary finger print datas that are used for described receiver module is received are compared with the secondary finger print data under the described global unique identification, find out with described global unique identification under the inconsistent secondary finger print data of secondary finger print data.
Embodiments of the invention also provide a kind of data synchronous system, comprising:
Client, be used for sending update request to server, carry local unique identification and two above secondary finger print datas in the described update request, receive the synchronization request that carries the secondary finger print data that described server returns, the secondary finger print data that carries in the described synchronization request is and the inconsistent secondary finger print data of the secondary finger print data of described server stores the corresponding data item of secondary finger print data of carrying in described server transmission and described synchronization request;
Described server, be used to receive the update request that client sends, described two above secondary finger print datas are compared with the secondary finger print data of being stored, the inconsistent secondary finger print data of the secondary finger print data that finds out and stored, send the synchronization request that carries described inconsistent secondary finger print data to described client, request transmits and the corresponding data item of described inconsistent secondary finger print data.
Embodiments of the invention have following beneficial effect:
In the such scheme, server is compared two above secondary finger print datas that client sends with the secondary finger print data of self storing, the inconsistent secondary finger print data of the secondary finger print data of finding out and being stored, and to client transmission synchronization request, request transmits and the corresponding data item of this inconsistent secondary finger print data.By technical scheme provided by the invention, client only need be transferred to server with the corresponding data item of inconsistent secondary finger print data, and do not need all data item all are transferred to server, having reduced needs data quantity transmitted, reaches the purpose that promotes data synchronization efficiency.
Description of drawings
Fig. 1 is the schematic flow sheet of embodiments of the invention method of data synchronization;
Fig. 2 is another schematic flow sheet of embodiments of the invention method of data synchronization;
Fig. 3 is the structural representation of embodiments of the invention client;
Fig. 4 is the structural representation of embodiments of the invention server;
Fig. 5 is the structural representation of embodiments of the invention data synchronous system;
Fig. 6 is the one-level finger print data of embodiments of the invention client and the corresponding relation schematic diagram between the secondary finger print data;
Fig. 7 is the local unique identification of embodiments of the invention server and the corresponding relation schematic diagram between the global unique identification;
Fig. 8 is the one-level finger print data of embodiments of the invention server and the corresponding relation schematic diagram between the secondary finger print data;
Fig. 9 is the schematic flow sheet of the method for data synchronization of system shown in Figure 5.
Embodiment
For technical problem, technical scheme and advantage that embodiments of the invention will be solved is clearer, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
Embodiments of the invention are in the available data simultaneous techniques, need data quantity transmitted bigger, the problem that the efficient of data sync is lower, provide a kind of can the minimizing to need data quantity transmitted in the data sync, promote method of data synchronization, system and client, the server of data synchronization efficiency.
As shown in Figure 1, the embodiments of the invention method of data synchronization comprises:
Step 101, user end to server send update request, carry local unique identification and two above secondary finger print datas in this update request;
The synchronization request that carries the secondary finger print data that step 102, client reception server return, the secondary finger print data that carries in this synchronization request is and the inconsistent secondary finger print data of the secondary finger print data of server stores;
The corresponding data item of secondary finger print data of carrying in step 103, user end to server transmission and this synchronization request.
Wherein, can also carry and the corresponding one-level finger print data of this part unique identification in the update request that user end to server sends, the one-level finger print data finger print data that just client generates according to all data item of storage in the prior art, if the one-level finger print data that one-level finger print data that client sends and server are stored is inconsistent, server is compared above-mentioned two above secondary finger print datas with the secondary finger print data of being stored, the inconsistent secondary finger print data of secondary finger print data that finds out Yu stored.If the one-level finger print data that client sends is consistent with the one-level finger print data that server is stored, then server no longer compares the secondary finger print data, adds the workload that the one-level finger print data can reduce server in update request.
Among this embodiment, client is after receiving the synchronization request that carries the secondary finger print data that server returns, only need and to send to server with the corresponding data item of this secondary finger print data, and do not need to transmit all data item, having significantly reduced needs data quantity transmitted, has promoted data synchronization efficiency.
As shown in Figure 2, embodiments of the invention also provide a kind of method of data synchronization, comprising:
Step 201, server receive the update request that client sends, and carry local unique identification and two above secondary finger print datas in this update request;
Step 202, server are compared above-mentioned two above secondary finger print datas the inconsistent secondary finger print data of secondary finger print data that finds out Yu stored with the secondary finger print data of being stored;
Step 203, server send the synchronization request that carries this inconsistent secondary finger print data to client, and request transmits and the corresponding data item of this inconsistent secondary finger print data.
Can also carry and the corresponding one-level finger print data of this part unique identification in the update request that the client that server receives sends, if the one-level finger print data that one-level finger print data that client sends and server are stored is inconsistent, server is compared above-mentioned two above secondary finger print datas again with the secondary finger print data of being stored, the inconsistent secondary finger print data of secondary finger print data that finds out Yu stored.If the one-level finger print data that client sends is consistent with the one-level finger print data that server is stored, then server no longer compares the secondary finger print data, and the introduction of one-level finger print data can reduce the workload of server.
Among this embodiment, secondary finger print data that server relatively receives and the secondary finger print data of being stored, the inconsistent secondary finger print data of the secondary finger print data that finds out and stored, and sending the synchronization request carry this inconsistent secondary finger print data to client, request transmits and the corresponding data item of this inconsistent secondary finger print data.In the present embodiment, server just request transmits the data item that changes, and does not need to ask to transmit all data item, and having significantly reduced needs data quantity transmitted, has promoted data synchronization efficiency.
As shown in Figure 3, embodiments of the invention provide a kind of client, comprising:
Sending module 31 is used for sending update request to server, carries local unique identification and two above secondary finger print datas in this update request;
Receiver module 32 is used for the synchronization request that carries the secondary finger print data that reception server returns, and the secondary finger print data that carries in this synchronization request is and the inconsistent secondary finger print data of the secondary finger print data of server stores;
Respond module 33 is used for sending the corresponding data item of secondary finger print data of carrying with this synchronization request to server.
Further, this client also comprises:
Coding module 34 is used for two above data item under this part unique identification are encoded;
Generation module 35 is used for generating two the above secondary finger print datas corresponding with above-mentioned data item according to above-mentioned coding by the fingerprint generating algorithm.
Wherein, generation module 35 also is used for generating the one-level finger print data according to this part unique identification by the fingerprint generating algorithm, and sending module 31 can also carry and the corresponding one-level finger print data of this part unique identification in the update request that server sends.
Among this embodiment, client is after receiving the synchronization request that carries the secondary finger print data that server returns, only need and to send to server with the corresponding data item of this secondary finger print data, and do not need to transmit all data item, having significantly reduced needs data quantity transmitted, has promoted data synchronization efficiency.
As shown in Figure 4, embodiments of the invention provide a kind of server, comprising:
Receiver module 41 is used to receive the update request that client sends, and carries local unique identification and two above secondary finger print datas in this update request;
Comparison module 42, two above secondary finger print datas that are used for receiver module 41 is received are compared with the secondary finger print data of being stored, the inconsistent secondary finger print data of secondary finger print data that finds out Yu stored;
Processing module 43 is used for sending the synchronization request that carries this inconsistent secondary finger print data to client, and request transmits and the corresponding data item of this inconsistent secondary finger print data.
Further, this server also comprises:
Definition module 44 is used to define the local unique identification of client and the corresponding relation between the global unique identification;
Memory module 45 is used to store this corresponding relation.
Further, comparison module 42 comprises:
Search submodule 46, be used to search the local unique identification of memory module 45 storages and the corresponding relation of global unique identification, find out the corresponding global unique identification of local unique identification that receives with receiver module 41;
Comparison sub-module 47, two above secondary finger print datas that are used for receiver module 41 is received are compared with the secondary finger print data under this global unique identification, find out with this global unique identification under the inconsistent secondary finger print data of secondary finger print data.
Can also carry in the update request that receiver module 41 receives and the corresponding one-level finger print data of this part unique identification, memory module 45 also stores one-level finger print data that should global unique identification, comparison module 42 is compared the one-level finger print data that receives earlier with the one-level finger print data of being stored, when above-mentioned one-level finger print data is inconsistent, secondary finger print data that relatively receives again and the secondary finger print data of being stored.
Wherein, the data item under the local unique identification that client sent before memory module 45 also stored and the secondary finger print data of corresponding data item, behind the inconsistent secondary finger print data of secondary finger print data that comparison sub-module 47 finds out and stored, processing module 43 sends the synchronization request that carries this secondary finger print data to client, and request transmits and the corresponding data item of this secondary finger print data.
Among this embodiment, server is compared the one-level finger print data that receives earlier with the one-level finger print data of being stored, if it is inconsistent, then continue secondary finger print data that relatively receives and the secondary finger print data of being stored, the inconsistent secondary finger print data of the secondary finger print data that finds out and stored, and sending the synchronization request carry this inconsistent secondary finger print data to client, request transmits and the corresponding data item of this inconsistent secondary finger print data.In the present embodiment, server just request transmits the data item that changes, and does not need to ask to transmit all data item, and having significantly reduced needs data quantity transmitted, has promoted data synchronization efficiency.
As shown in Figure 5, embodiments of the invention provide a kind of data synchronous system, comprising:
Client 51, be used for sending update request to server 52, carry local unique identification and two above secondary finger print datas in this update request, the synchronization request that carries the secondary finger print data that reception server 52 returns, the secondary finger print data that carries in this synchronization request is the inconsistent secondary finger print data of storing with server 52 of secondary finger print data, the corresponding data item of secondary finger print data of carrying in server 52 transmissions and this synchronization request;
Server 52, be used to receive the update request that client 51 sends, above-mentioned two above secondary finger print datas are compared with the secondary finger print data of being stored, the inconsistent secondary finger print data of the secondary finger print data that finds out and stored, send the synchronization request that carries above-mentioned inconsistent secondary finger print data to client 51, request transmits and the corresponding data item of above-mentioned inconsistent secondary finger print data.
Each mobile phone terminal all has unique local unique identification, under the local unique identification to data item concrete more than two should be arranged, such as name data item, image data item etc.Client 51 produces the one-level finger print data according to this part unique identification by the fingerprint generating algorithm, and the data item under this part unique identification encoded, such as the name data item is compiled is 1, it is 2 that the image data item is compiled, coding according to data item produces the secondary finger print data by the fingerprint generating algorithm then, each data item Figure 6 shows that the one-level finger print data of client 51 generations and the corresponding relation schematic diagram between the secondary finger print data to a secondary finger print data should be arranged.Client 51 sends to server 52 with all finger print datas, local unique identification and all data item and backs up after generating one-level finger print datas and two above secondary finger print datas.
52 pairs of servers should have an above client 51, server 52 is that each client 51 is distributed a global unique identification, and set up as shown in Figure 7 local unique identification and the corresponding relation between the global unique identification, after the data that server 52 reception clients 51 send over, as shown in Figure 8, with two above secondary finger print datas and corresponding store data items under the catalogue of the global unique identification of correspondence.
Below in conjunction with system shown in Figure 5 method of data synchronization of the present invention is described in detail, as shown in Figure 9, present embodiment comprises:
Step 901, client 51 generate one-level finger print data and two above secondary finger print datas;
After client 51 is initiated data sync, client 51 utilizes the fingerprint generating algorithm to produce the one-level finger print data according to the local unique identification of mobile phone terminal, if any data item under should the part unique identification changes, this one-level finger print data also can change so.
Client 51 utilizes the fingerprint generating algorithm to produce the secondary finger print data according to the coding of each data item under the local unique identification, and each data item is to having a secondary finger print data, the corresponding one-level finger print data of all data item.If change has taken place a certain data item in the client, client will be to this data item recompile so, also can change to secondary finger print data that should data item; If a certain data item in the client is deleted, client will be deleted secondary finger print data that should data item; If added a certain data item in the client, client can be encoded to this data item so, and generates secondary finger print data that should data item, and the change of any secondary finger print data will cause the one-level finger print data also to change;
Step 902, client 51 send update request to server 52;
Client 51 sends update requests to server 52, comprises local unique identification, one-level finger print data, two above secondary finger print datas and data item coding in this update request;
The one-level finger print data of the one-level finger print data that step 903, server 52 relatively receive and self storage;
Server 52 is searched the local unique identification of storage and the corresponding relation between the global unique identification, the corresponding global unique identification of local unique identification of finding out and receiving sees whether the one-level finger print data of this global unique identification correspondence is consistent with the one-level finger print data that receives.If consistent, show that all data item under this part unique identification all do not change, all data item of client 51 storages just all do not send and change, and then server 52 does not require the transmission of any data item in the response of returning to client 51; If inconsistent, show that change has taken place the data item under this part unique identification, just variation has taken place in client 51 stored data items, turns to step 904;
The secondary finger print data of the secondary finger print data that step 904, server 52 relatively receive and self storage finds out inconsistent secondary finger print data;
Server 52 can know that by searching secondary finger print data that relatively receives and the secondary finger print data of self storing variation has taken place which data item of client 51, server 52 is compared the secondary finger print data under this global unique identification with the secondary finger print data that receives, find out inconsistent secondary finger print data, comprise secondary finger print data newly-increased, that delete and change;
Step 905, server 52 send the synchronization request that carries this inconsistent secondary finger print data to client 51, and the request transmission is to data item that should inconsistent secondary finger print data;
If newly-increased secondary finger print data is arranged, show that then client 51 has increased newly data item that should the secondary finger print data; If the secondary finger print data that changes shows that then change has taken place the data item that 51 pairs of clients should the secondary finger print data; If the secondary finger print data of deletion is arranged, show that then client 51 deleted data item that should the secondary finger print data.Server 52 is by comparison secondary finger print data, which variation has taken place in the data that can clearly know client 51 storages, then the data item that only needs the request transmission to change gets final product, avoided after finding that the one-level finger print data changes, ask all data item of transmission client 51 storages, significantly reduced the transmission quantity of data sync;
Step 906, client 51 will send to server 52 to data item that should inconsistent secondary finger print data;
Step 907, server 52 upgrade self stored data items and finger print data.
The server 52 one-level finger print data of storage before replaces with the one-level finger print data that receives, and replaces with the data item that receives with sending the data item that changes, and upgrades the secondary finger print data of this data item correspondence simultaneously.If increased data item in the client newly, this newly-increased data item of server 52 storages and corresponding secondary finger print data; If deleted data item in the client, server 52 these data item of deletion and corresponding secondary finger print data; If the data item in the client changes, server 52 upgrades this data item and corresponding secondary finger print data.By above-mentioned steps 901~907, just finished the data sync between the client and server.
Among this embodiment, also can include only local unique identification and two above secondary finger print datas in the update request, server is after receiving update request, two above secondary finger print datas that directly will receive compare with the secondary finger print data under the corresponding global unique identification, search inconsistent secondary finger print data.When the data item of client does not change, can avoid again the secondary finger print data being compared by in update request, carrying the one-level finger print data, reduced the workload of server.
Adopt the fingerprint generating algorithm to generate finger print data in the embodiment of the invention, and come the judgment data item whether to change by the variation of finger print data, some similar algorithms can be used in embodiments of the present invention equally, such as adopting the MD5 algorithm that data item is carried out digital signature, come the judgment data item whether to change according to the variation of digital signature.The embodiment of the invention adopts the data that the secondary finger print data relatively reduces needs transmission, along with the segmentation of data item and further increasing of data volume, can also adopt three grades or the above finger print data coupling of level Four further to reduce the data that need transmit.
The technical scheme of the embodiment of the invention not only can be applied in mobile phone terminal and data in server synchronously in, can also be applied in other scenes that need data sync simultaneously.
Among this embodiment, server stores one-level finger print data and the secondary finger print data that sends before the client in advance, receive one-level finger print data and secondary finger print data that client sends afterwards, and the one-level finger print data that receives compared with the one-level finger print data of being stored, if it is inconsistent, then continue secondary finger print data that relatively receives and the secondary finger print data of being stored, the inconsistent secondary finger print data of the secondary finger print data that finds out and stored, and sending the synchronization request carry this inconsistent secondary finger print data to client, request transmits and the corresponding data item of this inconsistent secondary finger print data.In the present embodiment, the data item that client only need change to Server Transport, and do not need to transmit all data item, having significantly reduced needs data quantity transmitted, has promoted data synchronization efficiency.
Described method embodiment is corresponding with described device embodiment, the description of relevant portion gets final product among the part comparable device embodiment that does not describe in detail in method embodiment, and the description of relevant portion gets final product among the part reference method embodiment that does not describe in detail in device embodiment.
One of ordinary skill in the art will appreciate that, realize that all or part of step in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise step as above-mentioned method embodiment, described storage medium, as: magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
In each method embodiment of the present invention; the sequence number of described each step can not be used to limit the sequencing of each step; for those of ordinary skills, under the prerequisite of not paying creative work, the priority of each step is changed also within protection scope of the present invention.
The above 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 principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (13)

1. a method of data synchronization is characterized in that, comprising:
User end to server sends update request, carries local unique identification and two above secondary finger print datas in the described update request;
Described client receives the synchronization request that carries the secondary finger print data that described server returns, and the secondary finger print data that carries in the described synchronization request is and the inconsistent secondary finger print data of the secondary finger print data of described server stores;
The corresponding data item of secondary finger print data that described client is carried in described server transmission and described synchronization request.
2. method of data synchronization according to claim 1 is characterized in that, also carries the one-level finger print data in the described update request.
3. method of data synchronization according to claim 1 is characterized in that, described user end to server also comprises before sending update request:
Described client generates the one-level finger print data according to described local unique identification by the fingerprint generating algorithm;
Described client is encoded to two above data item under the described local unique identification, and generates two the above secondary finger print datas corresponding with described data item according to described coding by the fingerprint generating algorithm.
4. a method of data synchronization is characterized in that, comprising:
Server receives the update request that client sends, and carries local unique identification and two above secondary finger print datas in the described update request;
Described server is compared described two above secondary finger print datas with the secondary finger print data of being stored, the inconsistent secondary finger print data of secondary finger print data that finds out Yu stored;
Described server sends the synchronization request that carries described inconsistent secondary finger print data to described client, and request transmits and the corresponding data item of described inconsistent secondary finger print data.
5. method of data synchronization according to claim 4 is characterized in that, the update request that described server receives the client transmission also comprises before:
Described server defines the local unique identification of described client and the corresponding relation between the global unique identification, and stores described corresponding relation.
6. according to claim 4 or 5 described method of data synchronization, it is characterized in that described server is compared described two above secondary finger print datas and comprised with the secondary finger print data of being stored:
Local unique identification that described whois lookup is stored and global unique identification corresponding relation are found out and the corresponding global unique identification of local unique identification that receives;
Described server is compared two received above secondary finger print datas with the secondary finger print data under the described global unique identification.
7. method of data synchronization according to claim 4 is characterized in that, also carries the one-level finger print data in the described update request, and described server also comprises before described two above secondary finger print datas are compared with the secondary finger print data of being stored:
Described server judges that one-level finger print data that carries in the described update request and the one-level finger print data of being stored are inconsistent.
8. a client is characterized in that, comprising:
Sending module is used for sending update request to server, carries local unique identification and two above secondary finger print datas in the described update request;
Receiver module is used to receive the synchronization request that carries the secondary finger print data that described server returns, and the secondary finger print data that carries in the described synchronization request is and the inconsistent secondary finger print data of the secondary finger print data of described server stores;
Respond module is used for sending the corresponding data item of secondary finger print data of carrying with described synchronization request to described server.
9. client according to claim 8 is characterized in that, described client also comprises:
Coding module is used for two above data item under the described local unique identification are encoded;
Generation module is used for generating two the above secondary finger print datas corresponding with described data item according to described coding by the fingerprint generating algorithm.
10. a server is characterized in that, comprising:
Receiver module is used to receive the update request that client sends, and carries local unique identification and two above secondary finger print datas in the described update request;
Comparison module, two above secondary finger print datas that are used for described receiver module is received are compared with the secondary finger print data of being stored, the inconsistent secondary finger print data of secondary finger print data that finds out Yu stored;
Processing module is used for sending the synchronization request that carries described inconsistent secondary finger print data to described client, and request transmits and the corresponding data item of described inconsistent secondary finger print data.
11. server according to claim 10 is characterized in that, described server also comprises:
Definition module is used to define the local unique identification of described client and the corresponding relation between the global unique identification;
Memory module is used to store described corresponding relation.
12., it is characterized in that described comparison module comprises according to claim 10 or 11 described servers:
Search submodule, be used to search the local unique identification of described memory module storage and the corresponding relation of global unique identification, find out the corresponding global unique identification of local unique identification that receives with described receiver module;
Comparison sub-module, two above secondary finger print datas that are used for described receiver module is received are compared with the secondary finger print data under the described global unique identification, find out with described global unique identification under the inconsistent secondary finger print data of secondary finger print data.
13. a data synchronous system is characterized in that, comprising:
Client, be used for sending update request to server, carry local unique identification and two above secondary finger print datas in the described update request, receive the synchronization request that carries the secondary finger print data that described server returns, the secondary finger print data that carries in the described synchronization request is and the inconsistent secondary finger print data of the secondary finger print data of described server stores the corresponding data item of secondary finger print data of carrying in described server transmission and described synchronization request;
Described server, be used to receive the update request that client sends, described two above secondary finger print datas are compared with the secondary finger print data of being stored, the inconsistent secondary finger print data of the secondary finger print data that finds out and stored, send the synchronization request that carries described inconsistent secondary finger print data to described client, request transmits and the corresponding data item of described inconsistent secondary finger print data.
CN2009102608947A 2009-12-24 2009-12-24 Data synchronization method, data synchronization system, client and server Expired - Fee Related CN101741569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102608947A CN101741569B (en) 2009-12-24 2009-12-24 Data synchronization method, data synchronization system, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102608947A CN101741569B (en) 2009-12-24 2009-12-24 Data synchronization method, data synchronization system, client and server

Publications (2)

Publication Number Publication Date
CN101741569A true CN101741569A (en) 2010-06-16
CN101741569B CN101741569B (en) 2012-06-13

Family

ID=42464508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102608947A Expired - Fee Related CN101741569B (en) 2009-12-24 2009-12-24 Data synchronization method, data synchronization system, client and server

Country Status (1)

Country Link
CN (1) CN101741569B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082791A (en) * 2010-12-31 2011-06-01 成都市华为赛门铁克科技有限公司 Data backup implementation method, client, server and system
CN103295426A (en) * 2012-02-22 2013-09-11 腾讯科技(深圳)有限公司 Method, device and system for processing electronic book
CN103634410A (en) * 2013-12-12 2014-03-12 北京奇虎科技有限公司 Data synchronization method based on content distribution network (CDN), client end and server
CN103731253A (en) * 2013-12-20 2014-04-16 上海华勤通讯技术有限公司 Communication device and synchronization method and communication system of wearable device paired with communication device
CN104580085A (en) * 2013-10-17 2015-04-29 腾讯科技(深圳)有限公司 Business data updating method, system, client side and server
CN105897382A (en) * 2016-06-08 2016-08-24 乐视控股(北京)有限公司 Data synchronization method and device
CN108833509A (en) * 2018-05-31 2018-11-16 出门问问信息科技有限公司 Method of data synchronization and device
CN110489389A (en) * 2019-08-16 2019-11-22 北京旷视科技有限公司 A kind of method of data synchronization and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082791A (en) * 2010-12-31 2011-06-01 成都市华为赛门铁克科技有限公司 Data backup implementation method, client, server and system
CN103295426A (en) * 2012-02-22 2013-09-11 腾讯科技(深圳)有限公司 Method, device and system for processing electronic book
CN103295426B (en) * 2012-02-22 2015-12-16 腾讯科技(深圳)有限公司 Method, the equipment and system of process e-book
CN104580085A (en) * 2013-10-17 2015-04-29 腾讯科技(深圳)有限公司 Business data updating method, system, client side and server
CN104580085B (en) * 2013-10-17 2019-12-13 腾讯科技(深圳)有限公司 service data updating method, system, client and server
CN103634410B (en) * 2013-12-12 2017-01-11 北京奇安信科技有限公司 Data synchronization method based on content distribution network (CDN), client end and server
CN103634410A (en) * 2013-12-12 2014-03-12 北京奇虎科技有限公司 Data synchronization method based on content distribution network (CDN), client end and server
CN103731253A (en) * 2013-12-20 2014-04-16 上海华勤通讯技术有限公司 Communication device and synchronization method and communication system of wearable device paired with communication device
WO2015090101A1 (en) * 2013-12-20 2015-06-25 上海华勤通讯技术有限公司 Communications device and synchronization method and communications system of wearable device paired with communications device
CN105897382A (en) * 2016-06-08 2016-08-24 乐视控股(北京)有限公司 Data synchronization method and device
CN108833509A (en) * 2018-05-31 2018-11-16 出门问问信息科技有限公司 Method of data synchronization and device
CN110489389A (en) * 2019-08-16 2019-11-22 北京旷视科技有限公司 A kind of method of data synchronization and device
CN110489389B (en) * 2019-08-16 2022-04-22 北京旷视科技有限公司 Data synchronization method and device

Also Published As

Publication number Publication date
CN101741569B (en) 2012-06-13

Similar Documents

Publication Publication Date Title
CN101741569B (en) Data synchronization method, data synchronization system, client and server
CN1988535B (en) Synchronous method, system for file storage and customer terminal
CN101677325B (en) Method, device and system for publishing media description information and acquiring media
CN103873451B (en) A kind of method, apparatus and system of data syn-chronization
CN101080056B (en) A management method and system of network browser collection folder of mobile terminal
CN103457905A (en) Data synchronizing method, data synchronizing system and data synchronizing device
CN107656937B (en) Method and device for realizing consistency of read-write data
CN102769640B (en) The update method of user profile, server and system
CN102932439A (en) Method and device for synchronizing content
CN110399348A (en) File deletes method, apparatus, system and computer readable storage medium again
CN102932472A (en) Data processing method and communication system
CN101340425A (en) Method and apparatus for data synchronization between terminals
CN104283926A (en) Data synchronization method, device and server
CN102438278A (en) Load allocation method and device for mobile communication network
CN103281798A (en) Method, device and system for achieving modification synchronization
CN105786646A (en) Data backup method and device and electronic equipment
CN104901983A (en) Information synthesizing method, device and system
CN103747032A (en) File transmission method, device and system
CN103036948A (en) Network file processing method and execution node and software as a service (SaaS) platform
CN101645090A (en) Page display method, server and network system
CN102437925A (en) Data backup method, device and system in distributed system
CN106155842B (en) A kind of data migration method and device
US7478118B2 (en) Method and apparatus for synchronizing of databases connected by wireless interface
CN111026755B (en) Transaction sequence number acquisition method and device based on full sequence number generator
CN103095891A (en) Method, device and terminal of quickly inputting information of business card

Legal Events

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

Granted publication date: 20120613

Termination date: 20161224

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