CN104519142B - A kind of method of data synchronization and system, client, protocol server - Google Patents
A kind of method of data synchronization and system, client, protocol server Download PDFInfo
- Publication number
- CN104519142B CN104519142B CN201510012125.0A CN201510012125A CN104519142B CN 104519142 B CN104519142 B CN 104519142B CN 201510012125 A CN201510012125 A CN 201510012125A CN 104519142 B CN104519142 B CN 104519142B
- Authority
- CN
- China
- Prior art keywords
- client
- data
- server
- protocol server
- response
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of method of data synchronization systems.The system includes: client, browser, protocol server, dns server, network server, Resource Server, content management server, backup server and/or independent data service device;Wherein, multinomial transmission synchrodata is realized using batch data transmission mode between client and protocol server.By using the above method and system, client according to circumstances can dynamically adjust the size of batchwise transfer data, to better adapt to different terminals and different network environments, transmission rate can be not only improved, moreover it is possible to effectively reduce and the case where failure of data synchronization occur.
Description
Technical field
The present invention relates to data synchronization technology fields, more particularly to carry out letter data between a client and a server and synchronize
Method and apparatus.
Background technique
With the development of technology, in mobile internet era, from original fixed terminal, built-in terminal at present rapidly
Diversified fast-developing trend is just being presented in the intelligent terminal of development, terminal and platform, and the terminal device of each user is no longer
Uniquely.On these terminals, the data of user form information island one by one, how to realize cross-platform, cross-terminal number
It is always insoluble problem according to consistency.
There are many based on cross-terminal, the real-time Multidirectional synchronous technology of cross-platform data, such as Google in the prior art
Synchronous (Google Sync) is synchronous with HTC (HTC Sync).Wherein, Google Sync is bi-directional synchronization quasi real time, user
The modification made in a client, which is generally wanted several minutes, could reflect onto another client.HTC Sync is HTC mobile phone
Synchronous applications between computer, but HTC Sync only supports that the data between mobile phone and computer are synchronous, does not support mobile phone and net
Data between the server of network side are synchronous.
Multinomial simultaneous techniques in the prior art treats synchrodata and carries out Integral synchronous, causes transmission rate low, together
It is long to walk the time, especially in the case where network rate is lower or Netowrk tape width, the case where often will appear synchronization failure.Cause
This, it is desirable to provide cross-platform, cross-terminal the multinomial information synchronous method of one kind and system not only improve transmission rate, can also drop
Low failure of data synchronization rate.
Summary of the invention
Based on the above problem in background technique, the present invention provides a kind of method of data synchronization, and the method is for one kind
The system of sync server and client data, the system include: client, browser, protocol server, dns server, net
Network server, Resource Server, content management server, backup server and/or independent data service device;Wherein, resource takes
Business device, content management server and independent data service device are used to storing data;Dns server and network server are used for net
Network access;Protocol server is for providing cell phone client the core processing ability synchronous with network side server data;Backup
Data and processing capacity backup of the server for protocol server;Wherein, client and protocol server pass through following steps
Realize that data are synchronous:
User logs in client;
Initialization client database is logged in for this;
In this account of client query it is subsynchronous after data update;
Client sends client more new data to protocol server;
Protocol server carries out data update after receiving more new data;
The data of the upper subsynchronous rear protocol server of protocol server inquiry update;
Protocol server sends protocol server more new data to client;
Client carries out data update after receiving the more new data that protocol server is sent.
Wherein, client sends client more new data and sends protocol server more to protocol server and protocol server
New data is all made of batchwise transfer mode to client and transmit;The client sends client more new data to agreement
Server and protocol server, which send protocol server more new data and be all made of batchwise transfer mode to client, transmit
Specifically comprise the following steps:
Client sends data synch command to protocol server;The data synch command carries fixed size
The client of BatchSize more new data;
Protocol server returns to server data confirmation of synchronization and responds to client;
Client judges whether that there are also client to be sent more new datas;
If so, then client continues to send data synch command to protocol server;
Otherwise, client sends inquiry request to protocol server;
Protocol server returns to server command and is responsive to client;The server command response carries protocol server
More new data.
Specifically, client is according to the relevant hardware attributes of client, software attributes and/or the network connecting with client
The value of the BatchSize is arranged in situation.
Specifically, the server data confirmation of synchronization response that protocol server returns can carry up to fixed size
The data of BatchSize.
Specifically, there are also after client to be sent more new data, continue to judge also to be sent for client judgement
Client updates whether size of data is less than BatchSize, if it is, further wrapping in the data synch command to be sent
Containing inquiry request.
Specifically, protocol server judges the data after receiving the data synch command that client is sent to protocol server
It whether include inquiry request in synch command, if it is, continuing the server data confirmation of synchronization response that judgement will return
Whether the size of data of carrying is less than BatchSize, if it is, area protocol server update data are included in server
Client is sent in the response of data confirmation of synchronization.
Specifically, after client sends inquiry request, the server data that protocol server returns to client is synchronous
The size of data for confirming that response or server command response carry is less than BatchSize, then this same the end of the step of data.
The present invention also provides a kind of data synchronous system, which includes: client, browser, protocol server, DNS
Server, network server, Resource Server, content management server, backup server and/or independent data service device;Its
In, Resource Server, content management server and independent data service device are used to storing data;Dns server and network take
Device be engaged in for network access;Protocol server is for providing cell phone client the core processing synchronous with network side server data
Ability;Data and processing capacity backup of the backup server for protocol server;The system is for executing above-mentioned method.
The present invention also provides a kind of protocol servers, are used for a kind of data synchronous system, which includes: client and association
Server is discussed, the protocol server includes:
Reception device, for receiving more new data;
Updating device, for carrying out data update after reception device receives more new data;
Inquiry unit, the data for inquiring upper subsynchronous rear protocol server update;
Sending device, for sending protocol server more new data to client;
Wherein, after the reception device receives the data synch command that client is sent, the sending device sends service
Device data confirmation of synchronization responds to client;After the reception device receives the inquiry request of client transmission, the transmission
Device sends server command and is responsive to client;The server command response carries protocol server more new data.
The present invention also provides a kind of clients, are used for a kind of data synchronous system, which includes: client and agreement clothes
Business device, the client include:
Entering device device, for initializing client database;
Inquiry unit, for inquire in this account it is subsynchronous after client data update;
Sending device, for sending the client more new data to protocol server;
Reception device, for receiving the more new data of protocol server transmission;
Updating device carries out data update after receiving the more new data of protocol server transmission for reception device;
Judgment means;
Wherein, the sending device sends data synch command to protocol server;The data synch command carries solid
Determine the client more new data of size BatchSize;The reception device receives the server data of protocol server transmission
After confirmation of synchronization response, the judgment means judge whether that there are also client to be sent more new datas;If so, the then hair
Device is sent to continue to send data synch command to protocol server;Otherwise, the sending device sends inquiry request and takes to agreement
Business device;The reception device is further used for receiving the server command sound that protocol server returns after receiving inquiry request
It answers;The server command response carries protocol server more new data.
The present invention also provides a kind of method of data synchronization, the method is for synchronous between client and protocol server
Data, which is characterized in that the method specifically comprises the following steps:
Client sends data synch command to protocol server;The data synch command carries fixed size
The client of BatchSize more new data;
Protocol server returns to server data confirmation of synchronization and responds to client;
Client judges whether that there are also client to be sent more new datas;
If so, then client continues to send data synch command to protocol server;
Otherwise, client sends inquiry request to protocol server;
Protocol server returns to server command and is responsive to client;The server command response carries protocol server
More new data.
By using the above method and system, client according to circumstances can dynamically adjust the size of batchwise transfer data,
To better adapt to different terminals and different network environments, transmission rate can be not only improved, moreover it is possible to effectively reduce and number occur
The case where according to synchronization failure.
Detailed description of the invention
Fig. 1 is system construction drawing according to the present invention;
Fig. 2 is the flow chart of sync client according to the present invention and protocol server data;
Fig. 3 is synchronous flow chart according to the present invention;
Fig. 4 is batchwise transfer data flowchart according to the present invention;
Fig. 5 is according to protocol server structure chart of the present invention;
Fig. 6 is according to client terminal structure figure of the present invention.
Specific embodiment
The preferred embodiment of the present invention hereafter is described with detailed reference to attached drawing, whereby to the present invention how applied technology method
Technical problem is solved, and the realization process for reaching technical effect can fully understand and implement.For this hair of comprehensive understanding
It is bright, many details are referred in the following detailed description, it will be understood by those skilled in the art that the present invention may not need these
Detail and realize.In other embodiments, it is not described in detail well known method, process, component and circuit, so as not to it is unnecessary
Ground keeps embodiment fuzzy.
The system that Fig. 1 show a kind of sync client and server data.The system comprises: cell phone clients, clear
Look at device, protocol server, dns server, network server, Resource Server, content management server, backup server and/
Or independent data service device.Wherein, Resource Server, content management server and independent data service device are used to storage number
According to;Dns server and network server are accessed for conventional network;Protocol server is for providing cell phone client and network
The synchronous core processing ability of side server data;Data and processing capacity backup of the backup server for protocol server.
Fig. 2 show the method flow diagram that user logs in sync client and protocol server data after cell phone client.
The synchronous method includes the following steps:
User logs in client;
Initialization client database is logged in for this;
In this account of client query it is subsynchronous after data update;
Herein, client query synchronization time last time, while minute book subsynchronous time, synchronization time herein are visitor
The family end time inquires the data to be updated, the data packet updated herein based on synchronization time last time and this synchronization time
Include any form of data variations such as increased data, the data of deletion, the data of merging.
Herein, more new data type is specifically as follows address list data, calendar data, communication record data, file storage
Data etc..Wherein, communication record data include message registration data, note data, multimedia message data, instant communication message data,
EMAIL data etc..
Client sends client more new data to protocol server;
Herein, the data of deletion are also sent to protocol server by client.
Protocol server carries out data update after receiving more new data;
Herein, protocol server inquires synchronization time last time, while minute book subsynchronous time, synchronization time herein are equal
For server-end time.The more new data sent from client was used to be counted based on synchronization time last time and this synchronization time
According to update.
The data of the upper subsynchronous rear protocol server of protocol server inquiry update;
Herein, this synchronization time of the inquiry of protocol server is inquired before synchronization time last time and record will be more
New data.
Protocol server sends protocol server more new data to client;
Herein, the server of deletion is also sent to client by protocol server.
Client carries out data update after receiving the more new data that protocol server is sent;
Herein, this use synchronization time of client based on synchronization time last time and record inquired before client from
The received more new data of protocol server carries out data update.
In the above-mentioned methods, it is not necessary to so have the step of precedence relationship can parallel processing completion.
Wherein, client sends client more new data and sends protocol server more to protocol server and protocol server
New data is all made of batchwise transfer mode to client and transmit;The client sends client more new data to agreement
Server and protocol server, which send protocol server more new data and be all made of batchwise transfer mode to client, transmit
Specifically comprise the following steps:
Client sends data synch command to protocol server;The data synch command carries fixed size
The client of BatchSize more new data;
Protocol server returns to server data confirmation of synchronization and responds to client;
Client judges whether that there are also client to be sent more new datas;
If so, then client continues to send data synch command to protocol server;
Otherwise, client sends inquiry request to protocol server;
Protocol server returns to server command and is responsive to client;The server command response carries protocol server
More new data.
As shown in figure 3, being illustrated in three batches to above-mentioned batchwise transfer synchrodata, but those skilled in the art
It can know and specifically divide how many batches be determined according to the size for being actually subjected to transmission data, however it is not limited to the case where being described below.
Client more new data, which is sent, in client sends protocol server update to protocol server and protocol server
For data into client process, it further comprises following steps that data transmission, which is all made of batchwise transfer mode:
Client sends the first batch data synch command to protocol server;
Protocol server returns to the first batch data of server confirmation of synchronization and responds to client;
Client sends the second batch data synch command;
Protocol server returns to the second batch data of server confirmation of synchronization and responds to client;
Client sends third batch data synch command;
Protocol server returns to server third batch data confirmation of synchronization and is responsive to client;
Client sends second inquiry request to protocol server;Protocol server returns to the order of server second batch and rings
Client should be arrived;Client sends third inquiry request to protocol server;
Protocol server returns to server third batch command response to client.
Before above-mentioned steps, client is first determined in batches according to mobile phone hardware attribute, software attributes and/or Network status
Transmit the size BatchSize of data.Client to be transmitted more new data is split by client according to BatchSize
It transmits again afterwards, by the segmentation, client to be transmitted more new data will form N number of batch, and Fig. 3 and above-mentioned steps are with N=3
It is described, in fact, according to the actual situation, N may be any positive integer.
Client sends protocol server for the data of first BatchSize by the first batch data synch command,
The synchronous required parameter of the data such as LastSyncTime synchronization time last time and BatchSize is also transmitted simultaneously.
Protocol server returns to server the first batch data confirmation of synchronization sound after receiving the first batch data synch command
Client should be given, includes the confirmation to Client command and service device in server the first batch data confirmation of synchronization response
Synchronization time SeverSyncTime.And protocol server also returns to the data of BatchSize size, including to all
The confirmation for the first batch data synch command that client is sent does not include the order that protocol server is initiated.
Client sends protocol server for the data of second batch BatchSize by the second batch data synch command,
Synchronous with the data such as the BatchSize required parameter of LastSyncTime synchronization time last time can be transmitted simultaneously or does not transmit the ginseng
Number, if transmission, protocol server are ignored.
If client data to be transmitted amount is less than or equal to BatchSize, it is synchronous that client sends the second batch data
Order and protocol server return the second batch data of server confirmation of synchronization respond to client and can not execute.
If client data to be transmitted amount is greater than 3 times of BatchSize, client needs repeat transmission
Second batch data synch command and reception the second batch data of server confirmation of synchronization response of step, number of repetition is according to visitor to be transmitted
Family end more amount of new data determines.
For example, client only needs to send two lot numbers if client data to be transmitted amount is 2 times of BatchSize
Protocol server can be sent by client more new data according to synch command, that is, execute the first batch data synch command and third
Batch data synch command, without executing the second batch data synch command;
If client data volume to be sent is 5 times of BatchSize, client needs to send the synchronous life of five batch datas
Order could send protocol server for client more new data, that is, after executing the first batch data synch command, Yao Zhihang is three times
After second batch data synch command, then execute third batch data data synch command.
Client sends protocol server for the data of second batch BatchSize by third batch data synch command,
Synchronous with the data such as the BatchSize required parameter of LastSyncTime synchronization time last time can be transmitted simultaneously or does not transmit the ginseng
Number, if transmission, protocol server are ignored.
Herein, if the client third batch data synch command number to be transmitted is less than BatchSize, illustrate client more
New data will be transmitted after being transmitted by this data synch command, at this point, can be into third batch data synch command
One step includes first inquiry request of client;First inquiry request of the client is for requesting first protocol server
More new data.
After protocol server receives third batch data synch command, further determine whether that first is looked into comprising client
Request is ask, if comprising part server more new data is added in the response of server third batch data confirmation of synchronization and is returned
Back to client.Herein, part server more new data for supplement server third batch data confirmation of synchronization respond so that its
Data volume is maintained at BatchSize.If the data volume after supplement is still less than BatchSize, then illustrating server update number
According to end of transmission, no longer needing to execute the step backup server that subsequent client sends data synch command has and agreement
The identical function of server, protocol server timing update local data to backup server, when protocol server breaks down
When, it is switched to backup server, the function of protocol server is realized by backup server.
It is illustrated in figure 5 protocol server structure chart.The protocol server is used for a kind of data synchronous system, the system
It include: client and protocol server, the protocol server includes:
Reception device, for receiving more new data;
Herein, the inquiry unit of protocol server was inquired synchronization time last time, while the recording device note of protocol server
This synchronization time is recorded, synchronization time herein is server-end time.Based on synchronization time last time and this synchronization time
Data update is carried out using the more new data sent from client.
Updating device, for carrying out data update after reception device receives more new data;
Inquiry unit, the data for inquiring upper subsynchronous rear protocol server update;
Herein, the record that synchronization time last time and protocol server that the updating device is inquired according to inquiry unit include
This synchronization time of device record inquires the data to be updated.
Sending device, for sending protocol server more new data to client;
Herein, the server of deletion is also sent to client by the sending device of protocol server.
Wherein, after the reception device receives the data synch command that client is sent, the sending device sends service
Device data confirmation of synchronization responds to client;After the reception device receives the inquiry request of client transmission, the transmission
Device sends server command and is responsive to client;The server command response carries protocol server more new data.
It is illustrated in figure 6 client terminal structure figure, the client is used for a kind of data synchronous system, which includes: visitor
Family end and protocol server, the client include:
Entering device device, for initializing client database;
Inquiry unit, for inquire in this account it is subsynchronous after client data update;
Herein, the enquiry module of client was inquired synchronization time last time, while the logging modle of client is used for minute book
Subsynchronous time, synchronization time herein are client time, are looked into based on synchronization time last time and this synchronization time
The module polls data to be updated are ask, the data updated herein include that increased data, the data of deletion, data of merging etc. are appointed
The data variation of meaning form.
Herein, more new data type is specifically as follows address list data, calendar data, communication record data, file storage
Data etc..Wherein, communication record data include message registration data, note data, multimedia message data, instant communication message data,
EMAIL data etc..
Sending device, for sending the client more new data to protocol server;
Herein, the data of deletion are also sent to protocol server by client sending device.
Reception device, for receiving the more new data of protocol server transmission;
Updating device carries out data update after receiving the more new data of protocol server transmission for reception device;
Herein, when the sheet of updating device is inquired based on inquiry unit synchronization time last time and recording device records are subsynchronous
Between use from the received more new data of protocol server carry out data update.
The client further includes judgment means;
Wherein, the sending device sends data synch command to protocol server;The data synch command carries solid
Determine the client more new data of size BatchSize;The reception device receives the server data of protocol server transmission
After confirmation of synchronization response, the judgment means judge whether that there are also client to be sent more new datas;If so, the then hair
Device is sent to continue to send data synch command to protocol server;Otherwise, the sending device sends inquiry request and takes to agreement
Business device;The reception device is further used for receiving the server command sound that protocol server returns after receiving inquiry request
It answers;The server command response carries protocol server more new data.
By using the above method and system, client according to circumstances can dynamically adjust the size of batchwise transfer data,
To better adapt to different terminals and different network environments, transmission rate can be not only improved, moreover it is possible to effectively reduce and number occur
The case where according to synchronization failure.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to restrict the invention, all in spirit of that invention and original
Any modifications, equivalent replacements, and improvements etc. done within then, is both contained within protection scope of the present invention.
Claims (6)
1. a kind of method of data synchronization, the method is used for a kind of synchronization system, which includes: client and protocol service
Device;Wherein, protocol server is for providing cell phone client the core processing ability synchronous with network side;
Wherein, client realizes that data are synchronous by following steps with protocol server:
User logs in client;
Initialization client database is logged in for this;
In this account of client query it is subsynchronous after client data update;
Client sends client more new data to protocol server;
Protocol server carries out data update after receiving more new data;
The data of the upper subsynchronous rear protocol server of protocol server inquiry update;
Protocol server sends protocol server more new data to client;
Client carries out data update after receiving the more new data that protocol server is sent;
Wherein, client sends client more new data and sends protocol server update number to protocol server and protocol server
It is transmitted according to the mode for being all made of batchwise transfer to client;The client sends client more new data to protocol service
Device and protocol server send protocol server more new data and transmit specifically to the mode that client is all made of batchwise transfer
Include the following steps:
Client sends data synch command to protocol server;The data synch command carries fixed size BatchSize
Client more new data;Protocol server returns to the response of server data confirmation of synchronization after receiving the data synch command
To client;Client judges whether that there are also clients to be sent to update number after receiving the response of server data confirmation of synchronization
According to;If so, then client continues to send data synch command to protocol server;Otherwise, client send inquiry request to
Protocol server;Return server command is responsive to client after protocol server receives inquiry request;The server life
Response is enabled to carry protocol server more new data;
The server data confirmation of synchronization response that protocol server returns can carry the number of up to fixed size BatchSize
According to;
There are also the client update numbers to be sent for after client to be sent more new data, continuing to judge also for client judgement
Whether it is less than BatchSize according to size, if it is, further including inquiry request in the data synch command to be sent;
Protocol server receives client to judging in the data synch command after the data synch command that protocol server is sent
It whether include inquiry request, if it is, continuing the data for the server data confirmation of synchronization response carrying that judgement will return
Whether size is less than BatchSize, synchronizes really if it is, area protocol server update data are included in server data
Recognize in response and is sent to client;
After client sends inquiry request, protocol server returns to the response of server data confirmation of synchronization or the clothes of client
The size of data that device command response of being engaged in carries is less than BatchSize, then this same the end of the step of data.
2. the method according to claim 1, wherein client is according to the relevant hardware attributes of client, software
The value of the BatchSize is arranged in attribute and/or the Network status connecting with client.
3. a kind of data synchronous system, which includes: client and protocol server;The system is for executing such as claim
Method described in 1 or 2.
4. a kind of protocol server, is used for a kind of data synchronous system, which includes: client and protocol server, spy
Sign is that the protocol server includes:
Reception device, for receiving more new data;
Updating device, for carrying out data update after reception device receives more new data;
Inquiry unit, the data for inquiring upper subsynchronous rear protocol server update;
Sending device, for sending protocol server more new data to client;
Wherein, after the reception device receives the data synch command that client is sent, the sending device sends server count
Client is responded to according to confirmation of synchronization;After the reception device receives the inquiry request of client transmission, the sending device
It sends server command and is responsive to client;
The server command response carries protocol server more new data;
Wherein, client sends client more new data and sends protocol server update number to protocol server and protocol server
It is transmitted, is specifically comprised the following steps: according to the mode for being all made of batchwise transfer to client
Client sends data synch command to protocol server;The data synch command carries fixed size BatchSize
Client more new data;Protocol server returns to the response of server data confirmation of synchronization after receiving the data synch command
To client;Client judges whether that there are also clients to be sent to update number after receiving the response of server data confirmation of synchronization
According to;If so, then client continues to send data synch command to protocol server;Otherwise, client send inquiry request to
Protocol server;Return server command is responsive to client after protocol server receives inquiry request;The server life
Response is enabled to carry protocol server more new data;
The server data confirmation of synchronization response that protocol server returns can carry the number of up to fixed size BatchSize
According to;
There are also the client update numbers to be sent for after client to be sent more new data, continuing to judge also for client judgement
Whether it is less than BatchSize according to size, if it is, further including inquiry request in the data synch command to be sent;
Protocol server receives client to judging in the data synch command after the data synch command that protocol server is sent
It whether include inquiry request, if it is, continuing the data for the server data confirmation of synchronization response carrying that judgement will return
Whether size is less than BatchSize, synchronizes really if it is, area protocol server update data are included in server data
Recognize in response and is sent to client;
After client sends inquiry request, protocol server returns to the response of server data confirmation of synchronization or the clothes of client
The size of data that device command response of being engaged in carries is less than BatchSize, then this same the end of the step of data.
5. a kind of client is used for a kind of data synchronous system, which includes: client and protocol server, and feature exists
In the client includes:
Entering device, for initializing client database;
Inquiry unit, for inquire in this account it is subsynchronous after client data update;
Sending device, for sending the client more new data to protocol server;
Reception device, for receiving the more new data of protocol server transmission;
Updating device carries out data update after receiving the more new data of protocol server transmission for reception device;Judgement dress
It sets;
Wherein, the sending device sends data synch command to protocol server;The data synch command carries fixed big
The client of small BatchSize more new data;
After the reception device receives the server data confirmation of synchronization response of protocol server transmission, the judgment means are sentenced
It is disconnected that whether there are also client to be sent more new datas;If so, then the sending device continues to send number to protocol server
According to synch command;Otherwise, the sending device sends inquiry request to protocol server;The reception device is further used for connecing
Receive the server command response that protocol server returns after receiving inquiry request;The server command response carries agreement
Server update data;
The server data confirmation of synchronization response that protocol server returns can carry the number of up to fixed size BatchSize
According to;
There are also the client update numbers to be sent for after client to be sent more new data, continuing to judge also for client judgement
Whether it is less than BatchSize according to size, if it is, further including inquiry request in the data synch command to be sent;
Protocol server receives client to judging in the data synch command after the data synch command that protocol server is sent
It whether include inquiry request, if it is, continuing the data for the server data confirmation of synchronization response carrying that judgement will return
Whether size is less than BatchSize, synchronizes really if it is, area protocol server update data are included in server data
Recognize in response and is sent to client;
After client sends inquiry request, protocol server returns to the response of server data confirmation of synchronization or the clothes of client
The size of data that device command response of being engaged in carries is less than BatchSize, then this same the end of the step of data.
6. a kind of method of data synchronization, the method is used for synchrodata, feature between client and protocol server and exists
In the method specifically comprises the following steps:
Client sends data synch command to protocol server;
The data synch command carries the client more new data of fixed size BatchSize;
Protocol server returns to server data confirmation of synchronization and responds to client;
Client judges whether that there are also client to be sent more new datas;If so, then client continues to protocol server
Send data synch command;Otherwise, client sends inquiry request to protocol server;Protocol server returns to server command
It is responsive to client;The server command response carries protocol server more new data;
The server data confirmation of synchronization response that protocol server returns can carry the number of up to fixed size BatchSize
According to;
There are also the client update numbers to be sent for after client to be sent more new data, continuing to judge also for client judgement
Whether it is less than BatchSize according to size, if it is, further including inquiry request in the data synch command to be sent;
Protocol server receives client to judging in the data synch command after the data synch command that protocol server is sent
It whether include inquiry request, if it is, continuing the data for the server data confirmation of synchronization response carrying that judgement will return
Whether size is less than BatchSize, synchronizes really if it is, area protocol server update data are included in server data
Recognize in response and is sent to client;
After client sends inquiry request, protocol server returns to the response of server data confirmation of synchronization or the clothes of client
The size of data that device command response of being engaged in carries is less than BatchSize, then this same the end of the step of data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510012125.0A CN104519142B (en) | 2015-01-10 | 2015-01-10 | A kind of method of data synchronization and system, client, protocol server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510012125.0A CN104519142B (en) | 2015-01-10 | 2015-01-10 | A kind of method of data synchronization and system, client, protocol server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104519142A CN104519142A (en) | 2015-04-15 |
CN104519142B true CN104519142B (en) | 2019-09-20 |
Family
ID=52793845
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510012125.0A Active CN104519142B (en) | 2015-01-10 | 2015-01-10 | A kind of method of data synchronization and system, client, protocol server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104519142B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101022612A (en) * | 2006-02-16 | 2007-08-22 | 杭州波导软件有限公司 | Mobile terminal user information data duplicate method |
CN101707785A (en) * | 2009-10-31 | 2010-05-12 | 青岛海信移动通信技术股份有限公司 | Data synchronization method for mobile communication terminal |
CN103354560A (en) * | 2013-06-28 | 2013-10-16 | 广州菁英信息技术有限公司 | Method and system for data decomposition and synchronization |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101009516B (en) * | 2006-01-26 | 2011-05-04 | 华为技术有限公司 | A method, system and device for data synchronization |
-
2015
- 2015-01-10 CN CN201510012125.0A patent/CN104519142B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101022612A (en) * | 2006-02-16 | 2007-08-22 | 杭州波导软件有限公司 | Mobile terminal user information data duplicate method |
CN101707785A (en) * | 2009-10-31 | 2010-05-12 | 青岛海信移动通信技术股份有限公司 | Data synchronization method for mobile communication terminal |
CN103354560A (en) * | 2013-06-28 | 2013-10-16 | 广州菁英信息技术有限公司 | Method and system for data decomposition and synchronization |
Non-Patent Citations (2)
Title |
---|
Visual Studio 2012高级编程 第4版;约翰逊;《清华大学出版社》;20140131;第715页第6段 * |
手机个人信息同步管理系统方案设计;谷晓雨;《中国优秀硕士学位论文全文数据库》;20120215;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN104519142A (en) | 2015-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102377817B (en) | Connection management system and the method being used for linking connection management server | |
CN104283926B (en) | A kind of method of data synchronization, device and server | |
CN105900391A (en) | Real-time communications using RESTLIKE API | |
CN105930121B (en) | Handwriting synchronization method and system for multiple clients | |
CN103139157A (en) | Network communication method based on socket, device and system | |
CN108390950A (en) | A kind of information push method, device and equipment | |
CN107197036A (en) | A kind of consistent processing method of information based on block chain and terminal | |
CN101729441B (en) | Update reminding method, system thereof, update source server and access server | |
CN103605798A (en) | Method for directly operating file stored at cloud end | |
CN112121413B (en) | Response method, system, device, terminal and medium for function service | |
CN113391979A (en) | Processing method, equipment and system for monitoring data display and storage medium | |
CN107438084A (en) | Multi-client data synchronization method and apparatus | |
CN112839067A (en) | Data synchronization method and device | |
CN100407627C (en) | Method and system for realizing end-to-end data sharing | |
CN106713391A (en) | Session information sharing method and sharing system | |
CN107919971A (en) | Method, apparatus and system for audio/video communication connection disaster tolerance | |
CN106060797A (en) | SIM card-based information synchronization method, device, server and system | |
CN107870982A (en) | Data processing method, system and computer-readable recording medium | |
CN111277483B (en) | Multi-terminal message synchronization method, server and storage medium | |
CN108055199A (en) | Support the mobile method for pushing and system that deferred information preserves | |
CN106713684A (en) | Method and equipment for binding unified communication client account number with phone number | |
CN103716230A (en) | Message sending method, device and server | |
CN102594874B (en) | Synchronization processing method and device | |
US20190245827A1 (en) | Method and apparatus for synchronizing contact information and medium | |
CN104519142B (en) | A kind of method of data synchronization and system, client, protocol server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100041 A-0337, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing. Applicant after: Blue letter mobile (Beijing) Technology Co., Ltd. Address before: 100041 A-0337, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing. Applicant before: Lanseen workshop (Beijing) Technology Co. Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |