CN101753611A - Method and device for canceling synchronization - Google Patents

Method and device for canceling synchronization Download PDF

Info

Publication number
CN101753611A
CN101753611A CN 200810241224 CN200810241224A CN101753611A CN 101753611 A CN101753611 A CN 101753611A CN 200810241224 CN200810241224 CN 200810241224 CN 200810241224 A CN200810241224 A CN 200810241224A CN 101753611 A CN101753611 A CN 101753611A
Authority
CN
China
Prior art keywords
cancellation
synchronous
synchronization
notice
synchronously
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200810241224
Other languages
Chinese (zh)
Other versions
CN101753611B (en
Inventor
易永健
李克鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200810241224 priority Critical patent/CN101753611B/en
Priority to PCT/CN2009/074655 priority patent/WO2010069207A1/en
Publication of CN101753611A publication Critical patent/CN101753611A/en
Application granted granted Critical
Publication of CN101753611B publication Critical patent/CN101753611B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method and a device for canceling synchronization. The method comprises the following steps: generating a synchronization canceling notice when the synchronization needs to be canceled; and transmitting the synchronization canceling notice to the synchronizing side so as to ensure that the synchronizing side can cancel synchronization according to the synchronization canceling notice. In the synchronization canceling notice, the synchronization can be canceled by using codes reserved in synchronizing markup language or by increasing control parametric representation in a transmission protocol, so that coherence and timeliness of two synchronizing sides on synchronization canceling operation can be realized.

Description

A kind of synchronous method and device cancelled
Technical field
The present invention relates to the communications field, particularly a kind of synchronous method and device cancelled.
Background technology
In the prior art, the purpose of SyncML (Synchronization Markup Language synchronization makeup language) is, make terminal use, equipment development merchant, basic component developer, metadata provider, use software developer and service provider's collaborative work, the real any terminal equipment of use of realizing all can be visited any network data whenever and wherever possible.Typical case's application of SyncML is the data sync between mobile device and the network service.In addition, SyncML also can be used for the data sync of equity, between two PC.
In data synchronization process, each step all may comprise a plurality of message (MSG), and each message all represent one subsynchronous bipartite mutual (as client->server, perhaps server->client).Being example alternately between the server and client side, server can generate this simultaneous session (preserving relevant informations such as this subsynchronous account number of user, mode, synchrodata) at server end after receiving from first message of client, and when returning last message, client closes this simultaneous session (discharge related resource simultaneously, record synchronized result daily record).
But the inventor finds that in the invention process in actual application, the user usually can initiatively cancel the data sync operation in synchronizing process, cause the normal messages between client and the server to be interrupted alternately.At this moment, server can continue to wait for the client return messages, client can be cancelled synchronous behavior and treat as Synchronization timeout mistakenly, can not in time cancel synchronously.
Summary of the invention
The scheme that the embodiment of the invention provides is when being cancelled synchronously, and cancellation can be to notify synchronous the other side, so that the other side can be according to this notice cancellation synchronously.
The embodiment of the invention provides a kind of synchronous method of cancelling on the one hand, comprising:
Cancel when synchronous when needs, generate the cancellation synchronization notice;
Send described cancellation synchronization notice to described synchronous the other side, so that described synchronous the other side is described synchronously according to described cancellation synchronization notice cancellation.
The embodiment of the invention provides a kind of synchronous method of cancelling on the one hand, comprising:
Receive the cancellation synchronization notice that synchronization counterpart sends;
Resolve described cancellation synchronization notice, and discern the cancellation synchronically controlling information that comprises in the described cancellation synchronization notice;
Described synchronously according to described cancellation synchronically controlling information cancellation.
The embodiment of the invention provides a kind of synchronizer on the one hand, comprising:
The notice generation unit is used for generating the cancellation synchronization notice when the needs cancellation is synchronous;
The notice transmitting element is used to send described cancellation synchronization notice to synchronous the other side, so that described synchronous the other side is described synchronously according to described cancellation synchronization notice cancellation.
The embodiment of the invention provides a kind of synchronizer on the one hand, comprising:
The notice receiving element is used to receive the cancellation synchronization notice that synchronous the other side sends;
Resolution unit is used to resolve described cancellation synchronization notice, and discerns the cancellation synchronically controlling information that described cancellation synchronization notice comprises;
The cancellation lock unit is used for according to described cancellation synchronically controlling information cancellation described synchronously.
A kind of synchronous method and device cancelled that the embodiment of the invention provides by sending the cancellation synchronization notice to synchronous the other side, makes synchronous the other side can be after notified, and this is subsynchronous in cancellation in time, discharges the resource of sync correlation, thus conserve system resources.
Description of drawings
Fig. 1 is a flow chart of cancelling synchronous method in the one embodiment of the invention;
Fig. 2 is a flow chart of cancelling synchronous method in the another embodiment of the present invention;
Fig. 3 is the synchronizer structural representation in the one embodiment of the invention;
Fig. 4 is the synchronizer structural representation in the another embodiment of the present invention;
Fig. 5 is the flow chart of cancellation method for synchronous in specific embodiment of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Fig. 1 is a flow chart of cancelling synchronous method in the one embodiment of the invention, comprising:
101 when the needs cancellation is synchronous, generates the cancellation synchronization notice;
Can be to carry out between client (as mobile phone, PC etc.) and server synchronously, also can be to carry out between two-server.When needing cancellation synchronous, be meant after a synchronous side receives the synchronous request of cancellation, perhaps special circumstances taking place, be filled with or when making a mistake, when needing cancellation synchronous, carry out the synchronous operation of cancellation, and synchronization notice cancelled in generation as interior.
Can use the code that keeps among the synchronization makeup language SyncML in the cancellation synchronization notice of this generation; Or, use the Control Parameter that in host-host protocol, increases to represent that cancellation is synchronously.Control Parameter can be arranged among any one of host-host protocol message header, required parameter, message body.
A kind of situation is to generate and use the coded representation that keeps among the synchronization makeup language SyncML to cancel in the synchronous cancellation synchronization notice.In the existing special alarm code (Special Alert code) of SyncML, 226-250 is a reserved of codes.In the embodiment of the invention, the cancellation synchronization notice can adopt the arbitrary alarm coded representation cancellation among the 226-250 originally subsynchronous, this alarm code can be included in the message body of host-host protocol, with HTTP (HTML (Hypertext Markup Language) Hypertext Transfer Protocol) is example, and message packet can be as follows:
<SyncML>
<SyncHdr>
<VerDTD>1.2</VerDTD>
<VerProto>SyncML/1.2</VerProto>
<SessionID>1</SessionID>
<MsgID>3</MsgID>
<Target>
<LocURI>http://www.syncml.org/sync-server</LocURI>
</Target>
<Source>
<LocURI>IMEI:493005100592800</LocURI>
</Source>
</SyncHdr>
<SyncBody>
<Alert>
<CmdID>1</CmdID>
<Data〉226</Data〉<!-these code 226 expression cancellations are synchronous--〉
<Item>
<Target>
<LocURI>http://www.syncml.org/sync-server</LocURI>
</Target>
<Source>
<LocURI>IMEI:493005100592800</LocURI>
</Source>
</Item>
</Alert>
</SyncBody>
</SyncML>
Wherein,<Data 226</Data in the cancellation of special alarm code 226 expression notice synchronization counterpart this is subsynchronous synchronously.Above-mentioned host-host protocol also can be other available bearing protocol, as OBEX (Object Exchange, Object Exchange) and WSP (WSP, Wireless Session Protocol) etc.
In addition, also can be in the Status of synch command, to use reserved of codes indication cancellation synchronously in the cancellation synchronization notice.Like this, the recipient just can learn that the other side wishes cancellation synchronously after receiving Status, thereby both sides finish simultaneous operation.Message packet is exemplified below:
<SyncML>
<SyncHdr>
<VerDTD>1.2</VerDTD>
<VerProto>SyncML/1.2</VerProto>
<SessionID>1</SessionID>
<MsgID>2</MsgID>
<Target>
<LocURI>IMEI:493005100592800</LocURI>
</Target>
<Source>
<LocURI>http://www.syncml.org/sync-server</LocURI>
</Source>
</SyncHdr>
<SyncBody>
<Status>
<CmdID>1</CmdID>
<MsgRef>2</MsgRef>
<CmdRef>0</CmdRef>
<Cmd>SyncHdr</Cmd>
<TargetRef>http://ww?w.syncml.org/sync-server</TargetRef>
<SourceRef>IMEI:493005100592800</SourceRef>
<Data〉519</Data〉<! The 519 expression cancellations of-code are synchronous--〉
</Status>
</SyncBody>
</SyncML〉go up in the example, conditional code 519 is illustrated in the synchronizing process to be cancelled synchronously.After the recipient receives this cancellation synchronization notice, can be by extracting conditional code 519 and resolving its implication and carry out the synchronous operation of cancellation.
Another kind of mode is to generate and use the Control Parameter that increases in host-host protocol to represent to cancel synchronous cancellation synchronization notice.Control Parameter can be arranged among any one of host-host protocol message header, required parameter, message body.
Host-host protocol can be HTTP, OBEX and WSP etc.With the HTTP bearing mode is example, as when needs cancellations is synchronous, when the HTTP message header increases Control Parameter, as increasing Control Parameter " X-DS-Abort-Sync ", and X-DS-Abort-Sync value is made as True, and the cancellation of expression notice synchronization counterpart is synchronous.Do not need to cancel when synchronous, do not carry this parameter or the X-DS-Abort-Sync value is made as False at the HTTP message header.
Also can in the HTTP required parameter, increase Control Parameter, as:
POST
http://my.ds.com/sync?sid=MS0yMTEuMTM4LjE4NC4yMDE&Abort-Sync=y
Wherein, the Control Parameter of Abort-Sync=y for increasing, expression notifies the other side to cancel synchronously.
In addition, can also increase Control Parameter and notify the other side to cancel synchronously in HTTP message body, this moment, message body can have various ways, and example is as follows:
Example message one:
<SyncML>
<AbortSync/>
</SyncML>
Example message two:
<SyncML>
<SyncHdr>
</SyncHdr>
<SyncBody>
<AbortSync/>
</SyncBody>
</SyncML>
Example message three:
<SyncML>
<SyncHdr>
<AbortSync/>
</SyncHdr>
<SyncBody>
</SyncBody>
</SyncML>
Example message four:
<AbortSync/>
Use Control Parameter<AbortSync/ in the above-mentioned example message〉represent to notify the other side to cancel synchronously.
Certainly, Control Parameter can be consulted to determine that multiple manifestation mode can be arranged by synchronous each side.
102 send the cancellation synchronization notice to described synchronous the other side, so that described synchronous the other side is described synchronously according to described cancellation synchronization notice cancellation.
A synchronous side sends to synchronous the other side with this synchronization notice after generating synchronization message, and this action can and be carried out before transmit leg is carried out the synchronous action of cancellation afterwards.
By cancelling at needs when synchronous, send the cancellation synchronization notice to synchronous the other side in the present embodiment, like this, the other side just can be after notified, and in time cancellation is originally subsynchronous.
In the embodiment shown in fig. 1, a synchronous side can also accept the cancellation sync response that the other side sends after sending the cancellation synchronization notice.This cancellation sync response represents that the other side has successfully cancelled synchronously, and the concrete form of cancellation synchronous response message and content are not given unnecessary details at this referring to embodiment shown in Figure 2.
In addition, in simultaneous session, synchronous both sides are synchronous a plurality of databases simultaneously, perhaps carry out some asynchronous operation, such as exchange both sides' facility information, exchange both sides' authentication information etc., in this case, cancellation may just finish simultaneous operation synchronously, and does not mean that finishing simultaneous session is connected with disconnecting synchronously.At this moment, need both sides to indicate or arrange, after cancellation synchronously, whether can finish simultaneous session, disconnect bipartite connection.Therefore, after cancellation synchronously, can also further disconnect synchronous attended operation.
When the operation that disconnects synchronous connection, cancel synchronous transmit leg and can initiatively disconnect synchronous connection, also can disconnect synchronous connection according to the indication of synchronization counterpart.
When the synchronous transmit leg of cancellation initiatively disconnects synchronous connection, also need to indicate the other side to connect synchronously in cancellation back disconnection synchronously.The indication that this disconnection connects synchronously sends among can being included in the cancellation synchronization notice; Also can send separately, can be to send after receiving response message when sending separately, also can be to receive that response message sends before.
After the transmission, transmit leg can disconnect synchronous connection at once, also can wait until to disconnect synchronously after the other side responds to connect again.Concrete operations can be to close synchronous port.
In the time of among the indication that disconnects connection synchronously is included in the cancellation synchronization notice, can be, also can increase an order again and indicate disconnection to connect synchronously with two kinds of meanings of a coded representation.
As usefulness<Data〉226</Data in special alarm code 226 promptly represent cancellation synchronously, also expression disconnects synchronously and connecting; Equally, also the serviceable condition sign indicating number 519, or<AbortSync/〉order and both represented cancellation synchronously, also expression disconnects synchronous the connection.
When above-mentioned code or order when only expression cancellation is synchronous, can in the cancellation synchronization notice, increase an order and indicate to disconnect synchronously and connect, perhaps send separately and disconnect the notice that connects synchronously and indicate.
As can being with<Alert〉order indicates to disconnect synchronously and connects, and message packet is exemplified below:
<Alert>
<CmdID>1</CmdID>
<Data〉211</Data〉<!-this code 211 shows it is to disconnect synchronously connecting--〉
<Item>
<Target>
<LocURI>http://www.syncml.org/sync-server</LocURI>
</Target>
<Source>
<LocURI>IMEI:493005100592800</LocURI>
</Source>
</Item>
</Alert>
Above code can be included among the synchronous notice of cancellation, also can be to be included in<SyncBody〉among send as a single message.
Certainly, also can use Control Parameter, as<CloseSession〉represent to disconnect synchronous connection.Can be included among the synchronous notice of cancellation, also can send separately.
The recipient who receives this order can select to reply or do not reply this message.When select replying, i.e. answer<Status 〉, return code is 200 (OK), agrees to disconnect synchronous connection.The recipient disconnects the operation that connects synchronously according to this command execution, specifically can be to close synchronous port.
Under the synchronous situation of cancellation, both sides' anchor value does not need to upgrade synchronously, keeps original anchor value.Anchor value mainly is the position that is used for writing down synchronizing process synchronously, is used for breakpoint transmission.Under the synchronous situation of cancellation, the very difficult position of learning sync break exactly of both sides.Therefore, in this case, in fact the synchronizing process of this cancellation is not complete, has no idea to realize breakpoint transmission, this is subsynchronous be considered as invalid.When down subsynchronous, need hold consultation again, the place of finishing since last time is synchronous again.
Disconnect the synchronous indication that connects to the other side by transmission in the present embodiment, and after transmission, disconnect synchronous the connection, in time discharged the sync correlation resource.
Fig. 2 is the flow chart of the synchronous method of the cancellation in the another embodiment of the present invention, comprising:
201 receive the cancellation synchronization notice that synchronous the other side sends.
Can be to carry out between client (as mobile phone, PC etc.) and server synchronously, also can be to carry out between two-server.In carrying out synchronous process,, receive the cancellation synchronization notice that sends by the other side when the other side need cancel when synchronous.
202 resolve described cancellation synchronization notice, and discern the cancellation synchronically controlling information that described cancellation synchronization notice comprises.
Wherein, the cancellation synchronization notice can use the Control Parameter that increases in the code that keeps among the synchronization makeup language SyncML or the host-host protocol to represent cancellation synchronously, and object lesson is referring to as shown in Figure 1 embodiment.The synchronous information of expression cancellation is the cancellation synchronically controlling information in the cancellation synchronization notice, that is to say, the cancellation synchronically controlling information can comprise: be used for representing to cancel the code that synchronous synchronization makeup language SyncML keeps in the cancellation synchronization notice; Or what increase in the host-host protocol of cancellation synchronization notice is used to represent to cancel synchronous Control Parameter.When resolving synchronization notice, need from the message that parses, discern these information.
203 according to described cancellation synchronically controlling information cancellation synchronously.
Cancelling synchronous concrete operations can be only to stop synchronous operation, and both sides can also keep connecting synchronously, carry out synchronous port and do not close, and just no longer carry out this simultaneous operation.
In the present embodiment, carry out cancellation simultaneous operation, realized the consistency of synchronous both sides when cancellation is synchronous, so that in time discharge the sync correlation resource by the cancellation synchronization notice of resolving the synchronization counterpart transmission.
In the synchronous method of cancellation shown in Figure 2, can also be after carrying out cancellation simultaneous operation, send the cancellation sync response for the transmit leg of cancellation synchronization notice, this cancellation sync response notice can be to send with form of message, can use the code that keeps among the synchronization makeup language SyncML; Or, use the Control Parameter that in host-host protocol, increases to represent successfully to cancel synchronously.Control Parameter can be arranged among any one of host-host protocol message header, required parameter, message body.
In the existing special alarm code (Special Alert code) of SyncML, 226-250 is a reserved of codes.In the embodiment of the invention, the cancellation sync response can adopt arbitrary alarm coded representation among the 226-250 cancel successfully that this is subsynchronous, distinguishes mutually but need notify the other side to cancel synchronous code with the expression used among the embodiment of Fig. 1.This alarm code can be included in the message body of host-host protocol, is example with the HTTP(Hypertext Transport Protocol), and message packet can be as follows:
Example message one:
<SyncML>
<SyncHdr>
<VerDTD>1.2</VerDTD>
<VerProto>SyncML/1.2</VerProto>
<SessionID>1</SessionID>
<MsgID>2</MsgID>
<Target><LocURI>IMEI:493005100592800</LocURI></Target>
<Source>
<LocURI>http://www.syncml.org/sync-server</LocURI></Source>
</SyncHdr>
<SyncBody>
<Status>
<CmdID>1</CmdID>
<MsgRef>2</MsgRef><CmdRef>0</CmdRef>
<Cmd>SyncHdr</Cmd>
<TargetRef>http://www.syncml.org/sync-server</TargetRef>
<SourceRef>IMEI:493005100592800</SourceRef>
<Data>200</Data></Status>
</SyncBody>
</SyncML>
Example message two:
<StatusCode>200</StatusCode>
Wherein, in the example message one<Data 200</Data and example message two in code 200 expression cancelled successfully that this is subsynchronous.Above-mentioned host-host protocol also can be other available bearing protocol, as OBEX and WSP.
Another kind of mode is to use the Control Parameter that increases in host-host protocol to represent successfully to cancel synchronously in the cancellation sync response.Control Parameter can be arranged among any one of host-host protocol message header, required parameter, message body.
Host-host protocol can be HTTP, OBEX and WSP etc.With the HTTP bearing mode is example,
As increasing Control Parameter " X-Abort-Sync-Result:200 " at the HTTP message header, expression successfully cancellation is synchronous.
Also can directly utilize HTTP condition of information representation cancellation result, as " HTTP/1.1200OK ", expression successfully cancellation is synchronous.
In addition, can also in HTTP message body, increase Control Parameter, as<AbortSyncOK/〉represent successfully to cancel synchronously.
In the present embodiment, return the cancellation sync response by transmit leg to the cancellation synchronization notice, expression has cancelled successfully that this is subsynchronous, has realized synchronous both sides mutual when cancellation is synchronous, makes the synchronous initiator of cancellation can in time understand the synchronous implementation status of cancellation.
In the synchronous method of cancellation shown in Figure 2, can also be after carrying out cancellation simultaneous operation, the transmit leg that write down this cancellation simultaneous operation and write down described cancellation synchronization notice.Specifically being record in daily record, can be this cancellation simultaneous operation to be recorded as the other side cancel synchronously.As: the cancellation synchronization notice that user end to server sends, server can write down this cancellation simultaneous operation in daily record after carrying out cancellation simultaneous operation according to this notice so, can be recorded as: " the client cancellation is synchronously "; After the cancellation synchronization notice that same client sends according to server is carried out cancellation synchronously, can in daily record, write down this cancellation simultaneous operation and be: " the server cancellation is synchronous ".
In addition, after cancellation synchronously, can also further disconnect synchronous attended operation.When the operation that disconnects synchronous connection, the recipient of cancellation synchronization notice also can initiatively disconnect synchronous connection, or disconnects synchronous connection according to the indication of synchronization counterpart.
When the recipient of cancellation synchronization notice initiatively disconnects synchronous connection, also need to indicate the other side to connect synchronously in cancellation back disconnection synchronously.Concrete, can in the cancellation sync response, can comprise the indication that disconnects synchronous connection, perhaps, the recipient of cancellation synchronization notice sends a notice of indicating the other side to disconnect synchronous connection separately.
The recipient of cancellation synchronization notice can be in the cancellation sync response uses<Alert order represents to disconnect the indication of synchronous connection, also can<AbortSyncOK/ command definition successfully cancel synchronously, and indicates the synchronous connection of disconnection.
Certainly, also can send a notice, use<Alert in addition〉order or conditional code represent to disconnect synchronous connection.Use<Alert〉example of order can be referring to the explanation of as shown in Figure 1 embodiment.
It is as follows that the user mode representation disconnects the example that connects synchronously in disconnecting the notice that connects synchronously:
<SyncBody>
<!-->
<Status>
<!-->
<Data〉520</Data〉<!-show to disconnect synchronously to connect--
</Status>
</SyncBody>
In the last example, recipient use<Status〉beam back an errored response, such as return code 520, show that session is unusual, need to disconnect connection synchronously.The recipient can specifically can be to close synchronous port sending the synchronous attended operation of this response back execution disconnection.
The recipient of cancellation synchronization notice disconnects the synchronous indication that connects to the other side by transmission in the present embodiment, and disconnects synchronous the connection after transmission, has in time discharged Internet resources.
Fig. 3 is the structural representation of the synchronizer in the one embodiment of the invention, comprising:
Notice generation unit 301 is used for generating the cancellation synchronization notice when the needs cancellation is synchronous;
Concrete, after this synchronizer receives the synchronous request of cancellation, perhaps special circumstances are taking place, be filled with or when making a mistake, when needing cancellation synchronous, the notice generation unit generates the cancellation synchronization notice as interior.
The cancellation synchronization notice of this generation can use the coded representation cancellation that keeps among the synchronization makeup language SyncML synchronous; Or, represent that by in host-host protocol, increasing Control Parameter cancellation is synchronously.Specific implementation referring in 101 for example.
Notice transmitting element 302 is used to send this cancellation synchronization notice to synchronous the other side, and this is subsynchronous so that synchronous the other side cancels synchronization notice cancellation according to this.
Synchronizer in the present embodiment when synchronous, sends the cancellation synchronization notice to synchronous the other side by cancelling at needs, and like this, the other side just can be after notified, and in time cancellation is originally subsynchronous.
This synchronizer can also comprise response receiving element 303, is used to receive the cancellation sync response that synchronous the other side sends.Realizing and synchronization counterpart mutual, thereby in time understand the implementation status of cancelling simultaneous operation.
In one embodiment, notice generation unit 301 is when generating the cancellation synchronization notice, can in this cancellation synchronization notice, comprise simultaneously and disconnect the indication that connects synchronously, this indication can be with representing to cancel synchronous reserved of codes or Control Parameter is represented, i.e. reserved of codes that expression cancellation is synchronous or Control Parameter represent that simultaneously cancellation synchronously and disconnect the synchronous two layers of meaning that is connected; Also can represent with reserved of codes or the Control Parameter different with representing to cancel synchronous reserved of codes or Control Parameter, promptly promptly comprise synchronous reserved of codes or the Control Parameter of expression cancellation in this cancellation synchronization notice, comprise that again expression disconnects reserved of codes or the Control Parameter that connects synchronously.
In another embodiment, disconnecting the indication that connects synchronously can adopt independent notification message to send.At this moment, notice generation unit 301 also is used for generation and is used to indicate the other side to disconnect synchronous connection notice, and this disconnection connects notice synchronously and is independent of the cancellation synchronization notice.Specific implementation can be referring to the explanation among Fig. 1 embodiment.
Notice transmitting element 302 also is used to send the notice that this indication the other side disconnects synchronous connection.Be about to the synchronous notice that connects of this disconnection and can be independent of the transmission of cancellation synchronization notice.
In addition, this synchronizer can also comprise switching units 304, is used to disconnect synchronous connection.After the synchronous connection of the disconnection here is meant the transmission that stops synchrodata, disconnect this synchronous connection, concrete operations can be to close synchronous port, so that in time discharge the Internet resources of sync correlation.
Fig. 4 is the structural representation of the synchronizer in the another embodiment of the present invention, specifically comprises:
Notice receiving element 401 is used to receive the cancellation synchronization notice that synchronous the other side sends; This cancellation synchronization notice is sent by synchronous the other side, can be to send with form of message, can use the special alarm code that keeps among the synchronization makeup language SyncML; Or, represent that by in host-host protocol message header or host-host protocol required parameter or host-host protocol message body, increasing Control Parameter cancellation is synchronously.Specific implementation referring in 101 for example.
Resolution unit 402 is used to resolve this cancellation synchronization notice, and discerns the cancellation synchronically controlling information that this cancellation synchronization notice comprises;
Resolution unit is discerned the cancellation synchronically controlling information that this cancellation synchronization notice comprises and is specially: discern the code that keeps among the synchronization makeup language SyncML that comprises in the described cancellation synchronization notice; Or, discern the Control Parameter that in host-host protocol, increases that comprises in the described cancellation synchronization notice.
As discern the special alarm code 226 described in 101, or the Control Parameter X-DS-Abort-Sync=true that in the HTTP message header, carries, or the Control Parameter Abort-Sync=y that in the HTTP required parameter, carries.
Cancellation lock unit 403 is used for according to the cancellation of cancellation synchronically controlling information synchronously.
Cancellation lock unit 403 can read the implication of the cancellation synchronically controlling information of resolution unit 402 identifications, and carries out this subsynchronous operation of cancellation according to this control information.
Also can be to receive the indication of resolution unit 402, and carry out the originally subsynchronous operation of cancellation according to this indication according to the execution cancellation simultaneous operation of cancellation synchronically controlling information transmission.Cancel synchronous concrete operations and can be and close this simultaneous session, discharge this sync correlation resource simultaneously.
The synchronizer that the embodiment of the invention provides is carried out cancellation simultaneous operation by the cancellation synchronization notice of resolving the synchronization counterpart transmission, has realized the consistency of synchronous both sides when cancellation is synchronous, so that in time discharge the sync correlation resource.
This synchronizer can also comprise response generation unit 404, response transmitting element 405, and response generation unit 404 is used for generating the cancellation sync response, and this cancellation sync response can be used the code that keeps among the synchronization makeup language SyncML; Or, represent successfully to cancel synchronously by increasing Control Parameter at host-host protocol.This cancellation sync response particular content sees also the explanation of embodiment shown in Figure 2.Response transmitting element 405 sends the cancellation sync response to synchronous the other side.
In the present embodiment, return the cancellation sync response by the transmit leg to the cancellation synchronization notice, expression has cancelled successfully that this is subsynchronous, has realized synchronous both sides mutual when cancellation is synchronous.
Response generation unit 404 is when generating the cancellation sync response, can in this cancellation synchronization notice, comprise simultaneously and disconnect the indication that connects synchronously, this indication can be with representing successfully to cancel synchronous reserved of codes or Control Parameter is represented, i.e. synchronous reserved of codes is successfully cancelled in expression or Control Parameter is represented successfully to cancel synchronously simultaneously and indicate the other side to disconnect the synchronous two layers of meaning that is connected; Also can represent with reserved of codes or the Control Parameter different with representing successfully to cancel synchronous reserved of codes or Control Parameter, comprise promptly in this cancellation synchronization notice that promptly expression successfully cancels synchronous reserved of codes or Control Parameter, comprise that again expression disconnects reserved of codes or the Control Parameter that connects synchronously.
In addition, in one embodiment, response generation unit 404 can also be used for generating indication the other side and disconnect synchronous connection notice, and this indication the other side disconnects synchronous connection notice and is independent of the cancellation synchronization notice.Can be referring to the explanation among Fig. 2 embodiment.
Response transmitting element 405 also is used to send the notice that this indication the other side disconnects synchronous connection.Be about to the notice that this indication the other side disconnects synchronous connection and be independent of the transmission of cancellation synchronization notice.
This synchronizer can also comprise switching units 406, is used to disconnect synchronous connection.After the synchronous connection of the disconnection here is meant the transmission that stops synchrodata, disconnect this synchronous connection, close synchronous port, so that in time discharge the resource of sync correlation.
Synchronizer shown in Figure 4 can also comprise that record cell 407 is used to write down this cancellation simultaneous operation.Record cell is used for that specifically this cancellation simultaneous operation is recorded as the other side to be cancelled synchronously.Specifically being record in daily record, can be this cancellation simultaneous operation to be recorded as the other side cancel synchronously.As: the cancellation synchronization notice that user end to server sends, server can write down this cancellation simultaneous operation in daily record after carrying out cancellation simultaneous operation according to this notice so, can be recorded as: " the client cancellation is synchronously "; After the cancellation synchronization notice that same client sends according to server is carried out cancellation synchronously, can in daily record, write down this cancellation simultaneous operation and be: " the server cancellation is synchronous ".
Fig. 5 is a kind of flow chart of cancelling an embodiment of method for synchronous of the present invention.Comprise:
501, a synchronous side A detects needs cancellation synchronously, carries out cancellation simultaneous operation.
A can be a client, also can be server.Can be that client detects the user and cancels synchronously, also can be that the reason of device itself need be cancelled synchronously.The concrete form of cancellation synchronization notice message packet referring in 101 for example.
502, A generates the cancellation synchronization notice.
The concrete form of cancellation synchronization notice message packet referring in 101 for example.
503, send the cancellation synchronization notice to synchronous the other side B.
B can be that server also can be a client.
504, after B receives this cancellation synchronization notice, resolve this cancellation synchronization notice, extract the synchronous control information of expression cancellation that wherein comprises.
505, B carries out cancellation simultaneous operation according to this control information, and writes down this and be operating as " the A cancellation synchronously ".
Cancellation simultaneous operation comprises closes simultaneous session, discharges related resource.
506, B sends the cancellation sync response to A.
The cancellation sync response is represented successfully to cancel synchronously.The concrete form of response message has detailed introduction in the embodiment shown in Figure 2, does not repeat them here.
507, A sends to disconnect connecting synchronously and is notified to B.
508, A disconnects synchronously and connecting, and is specially and closes synchronous port.
Above-mentioned execution sequence also can be other order, can carry out cancellation simultaneous operation again after sending the cancellation synchronization notice or receiving the cancellation sync response as A.
Present embodiment is cancelled when synchronous at needs by a synchronous side, send the cancellation synchronization notice to synchronous the other side, after the other side carries out cancellation simultaneous operation according to this synchronization notice, return the cancellation sync response again, realized consistency and the interactivity of synchronous both sides in cancellation simultaneous operation, so that in time discharge related resource, improved the accuracy of synchronous behavioural analysis.Avoided a side to cancel synchronously, and the opposing party and not knowing, the synchronous behavior of cancellation has been treated as mistakenly the situation of Synchronization timeout.
Need to prove that the embodiment of the invention does not need to introduce independently functional part, can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that the technical scheme of the embodiment of the invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprises that some instructions are in order to carry out the described method of each embodiment of the present invention.Here alleged storage medium, as: ROM/RAM, disk, CD etc.
In sum, more than be preferred embodiment of the present invention only, be not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (24)

1. the method that cancellation is synchronous is characterized in that, comprising:
Cancel when synchronous when needs, generate the cancellation synchronization notice;
Send described cancellation synchronization notice to described synchronous the other side, so that described synchronous the other side is described synchronously according to described cancellation synchronization notice cancellation.
2. the method for claim 1 is characterized in that, described cancellation synchronization notice uses the coded representation cancellation that keeps in the synchronization makeup language synchronous; Or, represent that by in host-host protocol, increasing Control Parameter cancellation is synchronously.
3. method as claimed in claim 1 or 2 is characterized in that, also comprises:
Receive the cancellation sync response that described synchronization counterpart sends.
4. method as claimed in claim 1 or 2 is characterized in that, also comprises: initiatively disconnect connection synchronously, and indicate the other side to disconnect synchronous connection in described cancellation synchronization notice or send the notice that disconnects connection synchronously and indicate the other side to disconnect synchronous connection.
5. method as claimed in claim 1 or 2 is characterized in that, also comprises: receive the disconnection indication of connection synchronously that described synchronization counterpart sends, disconnect described synchronous connection according to described indication.
6. the method that cancellation is synchronous is characterized in that, comprising:
Receive the cancellation synchronization notice that synchronization counterpart sends;
Resolve described cancellation synchronization notice, and discern the cancellation synchronically controlling information that comprises in the described cancellation synchronization notice;
Described synchronously according to described cancellation synchronically controlling information cancellation.
7. method as claimed in claim 6 is characterized in that, described cancellation synchronically controlling information comprises: the code that keeps in the synchronization makeup language, the code of described reservation are used for the expression cancellation synchronously; Or what increase in host-host protocol is used to represent to cancel synchronous Control Parameter.
8. method as claimed in claim 6 is characterized in that, also comprises: the transmit leg that writes down this cancellation simultaneous operation and described cancellation synchronization notice.
9. method as claimed in claim 6 is characterized in that, also comprises: generate the cancellation sync response, and send the cancellation sync response to described synchronization counterpart.
10. method as claimed in claim 9 is characterized in that, described cancellation sync response uses the coded representation that keeps among the synchronization makeup language SyncML successfully to cancel synchronously; Or, represent successfully to cancel synchronously by in host-host protocol, increasing Control Parameter.
11. as each described method of claim 6-9, it is characterized in that, also comprise: initiatively disconnect connection synchronously, and in described cancellation sync response, indicate the other side to disconnect synchronous connection or send the notice that disconnects connection synchronously and indicate the other side to disconnect synchronous connection.
12. as each described method of claim 6-9, it is characterized in that, also comprise: receive the disconnection indication of connection synchronously that described synchronization counterpart sends, disconnect described synchronous connection according to described indication.
13. a synchronizer is characterized in that, comprising:
The notice generation unit is used for generating the cancellation synchronization notice when the needs cancellation is synchronous;
The notice transmitting element is used to send described cancellation synchronization notice to synchronous the other side, so that described synchronous the other side is described synchronously according to described cancellation synchronization notice cancellation.
14. synchronizer as claimed in claim 13 is characterized in that, described cancellation synchronization notice uses the coded representation cancellation that keeps among the synchronization makeup language SyncML synchronous; Or, represent that by in host-host protocol, increasing Control Parameter cancellation is synchronously.
15. as claim 13 or 14 described synchronizers, it is characterized in that, also comprise: the response receiving element is used to receive the cancellation sync response that described synchronous the other side sends.
16. as claim 13 or 14 described synchronizers, it is characterized in that, also comprise in the described cancellation synchronization notice disconnecting the indication that connects synchronously.
17., it is characterized in that described notice generation unit also is used to generate the described synchronization counterpart of indication and disconnects the notice that connects synchronously as claim 13 or 14 described synchronizers;
Described notice transmitting element also is used to send the described synchronization counterpart of described indication and disconnects the notice that connects synchronously.
18. a synchronizer is characterized in that, comprising:
The notice receiving element is used to receive the cancellation synchronization notice that synchronous the other side sends;
Resolution unit is used to resolve described cancellation synchronization notice, and discerns the cancellation synchronically controlling information that described cancellation synchronization notice comprises;
The cancellation lock unit is used for according to described cancellation synchronically controlling information cancellation described synchronously.
19. synchronizer as claimed in claim 18 is characterized in that, described cancellation synchronically controlling information comprises: the code that keeps in the synchronization makeup language, the code of described reservation are used for the expression cancellation synchronously; Or what increase in host-host protocol is used to represent to cancel synchronous Control Parameter.
20. synchronizer as claimed in claim 18 is characterized in that, also comprises:
Record cell is used to the transmit leg that writes down this cancellation simultaneous operation and write down described cancellation synchronization notice.
21. as each described synchronizer of claim 18-20, it is characterized in that, also comprise:
The response generation unit is used for generating the cancellation sync response;
The response transmitting element is used for sending described cancellation sync response to described synchronous the other side.
22. synchronizer as claimed in claim 21 is characterized in that, described cancellation sync response uses the coded representation that keeps among the synchronization makeup language SyncML successfully to cancel synchronously; Or, represent successfully to cancel synchronously by in host-host protocol, increasing Control Parameter.
23. synchronizer as claimed in claim 21 is characterized in that, described cancellation sync response also comprises the indication that disconnects synchronous connection.
24. synchronizer as claimed in claim 21 is characterized in that, described response generation unit also is used to generate the described synchronization counterpart of indication and disconnects the notice that connects synchronously; Described response transmitting element also is used to send the described synchronization counterpart of described indication and disconnects the notice that connects synchronously.
CN 200810241224 2008-12-16 2008-12-16 Method and device for canceling synchronization Expired - Fee Related CN101753611B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 200810241224 CN101753611B (en) 2008-12-16 2008-12-16 Method and device for canceling synchronization
PCT/CN2009/074655 WO2010069207A1 (en) 2008-12-16 2009-10-28 Canceling synchronization method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810241224 CN101753611B (en) 2008-12-16 2008-12-16 Method and device for canceling synchronization

Publications (2)

Publication Number Publication Date
CN101753611A true CN101753611A (en) 2010-06-23
CN101753611B CN101753611B (en) 2012-12-12

Family

ID=42268301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810241224 Expired - Fee Related CN101753611B (en) 2008-12-16 2008-12-16 Method and device for canceling synchronization

Country Status (2)

Country Link
CN (1) CN101753611B (en)
WO (1) WO2010069207A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294635A (en) * 2017-06-28 2017-10-24 中国银行股份有限公司 Information processing method, device and server
CN108390989A (en) * 2018-01-05 2018-08-10 郑州信大捷安信息技术股份有限公司 Synchronous method is notified between a kind of system based on Android dual systems

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002067533A1 (en) * 2001-02-19 2002-08-29 Nokia Corporation Closing a sip active session
CN100571140C (en) * 2004-09-15 2009-12-16 华为技术有限公司 The method that a kind of informing user multimedia broadcast/group broadcast service conversation finishes
EP1691508B1 (en) * 2005-02-04 2007-08-15 Samsung Electronics Co., Ltd. Method and apparatus for dispersing user equipments to non-preferred frequencies in a multimedia broadcast/multicast service system
US7305420B2 (en) * 2005-05-25 2007-12-04 Microsoft Corporation Synchronizing modifiable documents with multiple clients using document subsections

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294635A (en) * 2017-06-28 2017-10-24 中国银行股份有限公司 Information processing method, device and server
CN108390989A (en) * 2018-01-05 2018-08-10 郑州信大捷安信息技术股份有限公司 Synchronous method is notified between a kind of system based on Android dual systems

Also Published As

Publication number Publication date
WO2010069207A1 (en) 2010-06-24
CN101753611B (en) 2012-12-12

Similar Documents

Publication Publication Date Title
CN104137587B (en) A kind of method and terminal device for sending, receiving user data
CN101582927B (en) Server, movable terminal and method used for information backup and restoration
CN105119877A (en) Voice verification method, device and system
CN101686141B (en) Method and equipment for synchronizing read states
CN103856391A (en) Information communication method and system, and server
CN104954492A (en) Instant messaging method, distribution server, user terminals and instant messaging system
CN102111728B (en) Network connection management module and method of mobile terminal
US20060089164A1 (en) Method and system for transmitting MMS notification message
CN101753611B (en) Method and device for canceling synchronization
CN103338523A (en) Method for setting up a call via internet between mobile terminals, computer program and storage medium
JP2008016990A (en) Data transfer method for transferring data with mobile terminal as medium, base station, mobile terminal, and program
KR20110079235A (en) Group message service method
US10158724B2 (en) Management of notifications in a mobile web application
CN101166129A (en) Method, terminal, device and system for obtaining application server identifier information
CN103379015A (en) Website server and IM client data transmission method, apparatus and system
JP5222973B2 (en) Wireless communication system and message notification method
CN102598735B (en) Set up the method for utility cession, equipment and corresponding notice
CN108900575B (en) Long connection hierarchical communication method and system based on mobile terminal
CN108512741A (en) Instant communication method, apparatus and system
KR20100024728A (en) Method and apparatus for providing instant messaging service between mobile terminals
CN101400020B (en) Method, system and server for customer passively entering group to obtain group lists
CN102868837A (en) Conference call control system and conference call control method
CN102377243A (en) Collocation method of 101 protocol parameter, collocation device thereof and collocation system thereof
KR101990584B1 (en) Apparatus for managing user information in ptt system and method for updating user information in real time using the apparatus
JP4989440B2 (en) Terminal management system, terminal management server, and terminal device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121212

Termination date: 20161216