CN101753611B - Method and device for canceling synchronization - Google Patents

Method and device for canceling synchronization Download PDF

Info

Publication number
CN101753611B
CN101753611B CN 200810241224 CN200810241224A CN101753611B CN 101753611 B CN101753611 B CN 101753611B CN 200810241224 CN200810241224 CN 200810241224 CN 200810241224 A CN200810241224 A CN 200810241224A CN 101753611 B CN101753611 B CN 101753611B
Authority
CN
China
Prior art keywords
cancellation
synchronization
synchronous
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.)
Expired - Fee Related
Application number
CN 200810241224
Other languages
Chinese (zh)
Other versions
CN101753611A (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.The typical 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 possibly comprise a plurality of message (MSG), and each message is all represented once time synchronization bipartite mutual (like 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, client closes this simultaneous session (discharge related resource simultaneously, record synchronized result daily record) when returning last message.
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, can client be cancelled synchronous behavior and treat as Synchronization timeout by error, 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 said cancellation synchronization notice and give said synchronous the other side, so that said synchronous the other side is said synchronously based on said 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 is sent;
Resolve said cancellation synchronization notice, and discern the cancellation synchronically controlling information that comprises in the said cancellation synchronization notice;
Said synchronously according to said 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 when the needs cancellation is synchronous, generating the cancellation synchronization notice;
The notice transmitting element is used to send said cancellation synchronization notice and gives synchronous the other side, so that said synchronous the other side is said synchronously based on said 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 said cancellation synchronization notice, and discerns the cancellation synchronically controlling information that said cancellation synchronization notice comprises;
The cancellation lock unit is used for according to said cancellation synchronically controlling information cancellation said synchronously.
A kind of synchronous method and device cancelled that the embodiment of the invention provides given synchronous the other side through sending the cancellation synchronization notice, 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 the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.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 between client (like mobile phone, PC etc.) and server, to carry out synchronously, also can be between two-server, to carry out.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 (HTTP Hypertext Transfer Protocol) is example, and message packet can be following:
<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--&gt synchronously;
<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, like 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 hopes 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://www.syncml.org/sync-server</TargetRef>
<SourceRef>IMEI:493005100592800</SourceRef>
<data>519</Data><The 519 expression cancellations of-code are--&gt synchronously;
</Status>
</SyncBody>
</SyncML>In the last example, conditional code 519 is illustrated in the synchronizing process to be cancelled synchronously.After the recipient receives this cancellation synchronization notice, can be through 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 in host-host protocol, increases 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.Need not cancel when synchronous, 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 in HTTP message body, increase Control Parameter and notify the other side to cancel synchronously, this moment, message body can have various ways, and example is following:
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/>expression to notify the other side to cancel synchronously in the above-mentioned example message.
Certainly, Control Parameter can be consulted to confirm that multiple manifestation mode can be arranged by synchronous each side.
102 send the cancellation synchronization notice gives said synchronous the other side, so that said synchronous the other side is said synchronously based on said 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.
Through cancelling at needs when synchronous, send the cancellation synchronization notice and give 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 representes 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 double is 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 possibly just finish simultaneous operation synchronously, and does not mean that finishing simultaneous session is connected with breaking off synchronously.At this moment, need both sides to indicate or arrange, after cancellation synchronously, whether can finish simultaneous session, break off bipartite connection.Therefore, after cancellation synchronously, can also further break off synchronous attended operation.
When the operation of breaking off synchronous connection, cancel synchronous transmit leg and can initiatively break off synchronous connection, also can break off synchronous connection according to the indication of synchronization counterpart.
When the synchronous transmit leg of cancellation initiatively breaks off synchronous connection, also need indicate the other side to connect synchronously in cancellation back disconnection synchronously.The indication that this disconnection connects is synchronously sent among can being included in the cancellation synchronization notice; Also can send separately, can be after receiving response message, to send when sending separately, also can be to receive that response message sends before.
After the transmission, transmit leg can break off synchronous connection at once, also can wait until to break off synchronously after the other side responds to connect again.Concrete operations can be to close synchronous port.
In the time of among the indication of breaking off 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 using<data>226</Data>In special alarm code 226 promptly represent cancellation synchronously, also expression is broken off synchronously and being connected; Equally, also the serviceable condition sign indicating number 519, or<abortSync/>Order had both been represented cancellation synchronously, and also expression is broken off synchronously and being connected.
When above-mentioned code or order when only expression cancellation is synchronous, can in the cancellation synchronization notice, increase an order and indicate to break off synchronously and connect, perhaps send separately and break off the notice that connects synchronously and indicate.
As can be to indicate to break off synchronously with < Alert>order to connect, message packet is exemplified below:
<Alert>
<CmdID>1</CmdID>
<data>211</Data><-this code 211 shows it is to break off connecting--&gt synchronously;
<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 send as a single message among being included in < SyncBody >.
Certainly, also can use Control Parameter, represent to break off synchronous connection like < CloseSession >.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 selecting to reply, promptly reply < Status >, return code is 200 (OK), agrees to break off synchronous connection.The recipient breaks off 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.The synchronous anchor value mainly is the position that is used for writing down synchronizing process, 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 regarded as invalid.When subsynchronous down, need hold consultation again, synchronous since the place of completion last time again.
Give the other side through sending the indication of breaking off synchronous connection in the present embodiment, and after transmission, break off connection synchronously, 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 between client (like mobile phone, PC etc.) and server, to carry out synchronously, also can be between two-server, to carry out.In carrying out synchronous process,, receive the cancellation synchronization notice of sending by the other side when the other side need cancel when synchronous.
202 resolve said cancellation synchronization notice, and discern the cancellation synchronically controlling information that said 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 embodiment as shown in Figure 1.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 said 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 through 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 following:
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>Successfully cancelled originally subsynchronous with code 200 expressions in the example message two.Above-mentioned host-host protocol also can be other available bearing protocol, like OBEX and WSP.
Another kind of mode is to use the Control Parameter that in host-host protocol, increases 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, like " HTTP/1.1 200 OK ", expression successfully cancellation is synchronous.
In addition, can also in HTTP message body, increase Control Parameter, represent successfully to cancel synchronously like < AbortSyncOK/>.
In the present embodiment; Transmit leg through to the cancellation synchronization notice returns the cancellation sync response; 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 said 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 is sent 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 break off synchronous attended operation.When the operation of breaking off synchronous connection, the recipient of cancellation synchronization notice also can initiatively break off synchronous connection, or breaks off synchronous connection according to the indication of synchronization counterpart.
When the recipient of cancellation synchronization notice initiatively breaks off synchronous connection, also need indicate the other side to connect synchronously in cancellation back disconnection synchronously.Concrete, can in the cancellation sync response, can comprise and break off the indication that connects synchronously, perhaps, the recipient of cancellation synchronization notice sends the notice that an indication the other side breaks off synchronous connection separately.
The recipient of cancellation synchronization notice can use < Alert>order to represent to break off the indication of synchronous connection in cancelling sync response, also can < AbortSyncOK/>command definition successfully be cancelled synchronously, and synchronous the connection is broken off in indication.
Certainly, also can send a notice in addition, use < Alert>order or conditional code to represent to break off synchronous connection.The example that uses < Alert>to order can be referring to the explanation of embodiment as shown in Figure 1.
It is following that the user mode representation is broken off the example that connects synchronously in breaking off the notice that connects synchronously:
<SyncBody>
<!-->
<Status>
<!-->
<data>520</Data><-show to break off to connect--&gt synchronously;
</Status>
</SyncBody>
In the last example, the recipient uses < Status>to beam back an errored response, such as return code 520, shows that session is unusual, needs to break off synchronously to connect.The recipient can specifically can be to close synchronous port sending and should the execution of response back breaking off synchronous attended operation.
The recipient of cancellation synchronization notice gives the other side through sending the synchronous indication that connects of disconnection in the present embodiment, and after transmission, breaks off synchronous connection, 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 when the needs cancellation is synchronous, generating the cancellation synchronization notice;
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 through in host-host protocol, increasing Control Parameter cancellation is synchronously.Concrete realize referring in 101 for example.
Notice transmitting element 302 is used to send this cancellation synchronization notice and gives 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, sends the cancellation synchronization notice and gives synchronous the other side when synchronous through 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 mutual with synchronization counterpart, 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 break off 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 simultaneously cancellation synchronously with break off the synchronous two layers of meaning that is connected; Also can with represent to cancel synchronous reserved of codes or different reserved of codes or the Control Parameter of Control Parameter represented; Promptly promptly comprise synchronous reserved of codes or the Control Parameter of expression cancellation in this cancellation synchronization notice, comprise reserved of codes or Control Parameter that the expression disconnection connects synchronously again.
In another embodiment, breaking off 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 break off synchronous connection notice, and this disconnection connects notice synchronously and is independent of the cancellation synchronization notice.Concrete realization 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 breaks off 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 break off synchronous connection.After the synchronous connection of the disconnection here is meant the transmission that stops synchrodata, break off 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 through in host-host protocol message header or host-host protocol required parameter or host-host protocol message body, increasing Control Parameter cancellation is synchronously.Concrete realize referring in 101 for example.
Resolution unit 402 is used for resolving this cancellation synchronization notice, and discerns the cancellation synchronically controlling information that this cancellation synchronization notice comprises;
The cancellation synchronically controlling information that this cancellation synchronization notice of resolution unit identification comprises is specially: discern the code that keeps among the synchronization makeup language SyncML that comprises in the said cancellation synchronization notice; Or, discern the Control Parameter that in host-host protocol, increases that comprises in the said 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 based on 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 based on 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 through 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 through 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 through 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 break off 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. expression is successfully cancelled synchronous reserved of codes or Control Parameter and represented simultaneously successfully to cancel synchronously and indicate the other side to break off the synchronous two layers of meaning that is connected; Also can with represent successfully to cancel synchronous reserved of codes or different reserved of codes or the Control Parameter of Control Parameter represented; Comprise promptly in this cancellation synchronization notice that promptly expression successfully cancels synchronous reserved of codes or Control Parameter, comprise that again expression breaks off 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 break off synchronous connection notice, and this indication the other side breaks off 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 breaks off synchronous connection.Be about to the notice that this indication the other side breaks off synchronous connection and be independent of the transmission of cancellation synchronization notice.
This synchronizer can also comprise switching units 406, is used to break off synchronous connection.After the synchronous connection of the disconnection here is meant the transmission that stops synchrodata, break off 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 is sent 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 and give synchronous the other side B.
B can be that server also can be a client.
504, after B receives this cancellation synchronization notice, resolve and to cancel synchronization notice, extract the synchronous control information of expression cancellation that wherein comprises.
505, B carries out cancellation simultaneously operating based on 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 and gives 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, repeats no more at this.
507, A sends to break off connecting synchronously and is notified to B.
508, A breaks off synchronously and connecting, and is specially and closes synchronous port.
Above-mentioned execution sequence also can be other order, can after sending the cancellation synchronization notice or receiving the cancellation sync response, carry out cancellation simultaneous operation again like A.
Present embodiment is cancelled when synchronous at needs through a synchronous side; Send the cancellation synchronization notice and give synchronous the other side; The other side returns the cancellation sync response after carrying out cancellation simultaneous operation according to this synchronization notice again, has 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 by error the situation of Synchronization timeout.
Need to prove that the embodiment of the invention need not introduced 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 be come out with the embodied 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 being merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (20)

1. the method that cancellation is synchronous is characterized in that, comprising:
Need cancel when synchronous when client, generate the cancellation synchronization notice;
Send said cancellation synchronization notice and give the other side synchronous with said client; So that said synchronously based on said cancellation synchronization notice cancellation with the other side that said client is synchronous, wherein said cancellation synchronization notice uses the coded representation cancellation that keeps among the synchronization makeup language SyncML synchronous.
2. the method for claim 1 is characterized in that, also comprises:
Receive the cancellation sync response that said synchronization counterpart is sent.
3. the method for claim 1 is characterized in that, also comprises: initiatively break off connection synchronously, and indication the other side breaks off synchronous connection or sends the notice indication the other side who breaks off connection synchronously and break off synchronous connection in said cancellation synchronization notice.
4. the method for claim 1 is characterized in that, also comprises: receive the disconnection indication of connection synchronously that said synchronization counterpart is sent, break off said synchronous connection according to said indication.
5. the method that cancellation is synchronous is characterized in that, comprising:
Receive the cancellation synchronization notice that synchronization counterpart is sent;
Resolve said cancellation synchronization notice, and discern the cancellation synchronically controlling information that comprises in the said cancellation synchronization notice;
Said synchronously based on said cancellation synchronically controlling information cancellation, said cancellation synchronically controlling information comprises: the code that keeps in the synchronization makeup language, the code of said reservation are used for the expression cancellation synchronously.
6. method as claimed in claim 5 is characterized in that, also comprises: the transmit leg that writes down this cancellation simultaneous operation and said cancellation synchronization notice.
7. method as claimed in claim 5 is characterized in that, also comprises: generate the cancellation sync response, and send the cancellation sync response to said synchronization counterpart.
8. method as claimed in claim 7 is characterized in that, said 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 through in host-host protocol, increasing Control Parameter.
9. like each described method of claim 5-8, it is characterized in that, also comprise: initiatively break off connection synchronously, and indication the other side breaks off synchronous connection or sends the notice indication the other side who breaks off connection synchronously and break off synchronous connection in said cancellation sync response.
10. like each described method of claim 5-8, it is characterized in that, also comprise: receive the disconnection indication of connection synchronously that said synchronization counterpart is sent, break off said synchronous connection based on said indication.
11. a synchronizer is characterized in that, comprising:
The notice generation unit is used for when the needs cancellation is synchronous, generating the cancellation synchronization notice;
The notice transmitting element; Be used to send said cancellation synchronization notice and give synchronous the other side; So that said synchronous the other side is said synchronously based on said cancellation synchronization notice cancellation, said cancellation synchronization notice uses the coded representation cancellation that keeps among the synchronization makeup language SyncML synchronous.
12. synchronizer as claimed in claim 11 is characterized in that, also comprises: the response receiving element is used to receive the cancellation sync response that said synchronous the other side sends.
13. synchronizer as claimed in claim 11 is characterized in that, also comprises in the said cancellation synchronization notice breaking off the indication that connects synchronously.
14. synchronizer as claimed in claim 11 is characterized in that, said notice generation unit also is used to generate the said synchronization counterpart of indication and breaks off the notice that connects synchronously;
Said notice transmitting element also is used to send the said synchronization counterpart of said indication and breaks off the notice that connects synchronously.
15. 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 said cancellation synchronization notice, and discerns the cancellation synchronically controlling information that said cancellation synchronization notice comprises;
The cancellation lock unit is used for according to the cancellation of said cancellation synchronically controlling information saidly synchronously, and said cancellation synchronically controlling information comprises: the code that keeps in the synchronization makeup language, the code of said reservation are used for the expression cancellation synchronously.
16. synchronizer as claimed in claim 15 is characterized in that, also comprises:
Record cell is used to the transmit leg that writes down this cancellation simultaneous operation and write down said cancellation synchronization notice.
17. like each described synchronizer of claim 15-16, 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 said cancellation sync response to said synchronous the other side.
18. synchronizer as claimed in claim 17 is characterized in that, said 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 through in host-host protocol, increasing Control Parameter.
19. synchronizer as claimed in claim 17 is characterized in that, said cancellation sync response also comprises breaks off the indication that connects synchronously.
20. synchronizer as claimed in claim 17 is characterized in that, said response generation unit also is used to generate the said synchronization counterpart of indication and breaks off the notice that connects synchronously; Said response transmitting element also is used to send the said synchronization counterpart of said indication and breaks off 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 CN101753611A (en) 2010-06-23
CN101753611B true 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)

Families Citing this family (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
CN108390989B (en) * 2018-01-05 2021-08-27 郑州信大捷安信息技术股份有限公司 Inter-system notification synchronization method based on Android dual systems

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750465A (en) * 2004-09-15 2006-03-22 华为技术有限公司 Method for informing user multimedia broadcast/multi broadcast service conversation end
CN101167071A (en) * 2005-05-25 2008-04-23 微软公司 Methods, systems, and computer-readable media for synchronizing modifiable documents with multiple clients

Family Cites Families (2)

* 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
DE602006000065T2 (en) * 2005-02-04 2007-12-13 Samsung Electronics Co., Ltd. Method and apparatus for distributing user equipment to non-preferred frequencies in a multimedia broadcast / multi-call service system.

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750465A (en) * 2004-09-15 2006-03-22 华为技术有限公司 Method for informing user multimedia broadcast/multi broadcast service conversation end
CN101167071A (en) * 2005-05-25 2008-04-23 微软公司 Methods, systems, and computer-readable media for synchronizing modifiable documents with multiple clients

Also Published As

Publication number Publication date
CN101753611A (en) 2010-06-23
WO2010069207A1 (en) 2010-06-24

Similar Documents

Publication Publication Date Title
CN104137587B (en) A kind of method and terminal device for sending, receiving user data
EP1675327A1 (en) Mail distribution system, mail distribution method, and mail distribution program
EP3125594A1 (en) Intelligent communication method, terminal and system
CN101536559A (en) Method and system for managing message threads in converged IP messaging service
US20140031070A1 (en) Method and system for controlling message routing
CN103067410A (en) Method for delivery of messages in communication system
KR20120128025A (en) System and method for providing push service using feedback information
CN101188618B (en) Method, system, server and terminal for canceling push message
CN101223746B (en) Page-mode messaging
CN101753611B (en) Method and device for canceling synchronization
US20060089164A1 (en) Method and system for transmitting MMS notification message
JP2008016990A (en) Data transfer method for transferring data with mobile terminal as medium, base station, mobile terminal, and program
CN101548514B (en) Method for exchanging messages in a mobile radio network
CN116347513B (en) Communication method and device, communication system, storage medium and electronic device
US10158724B2 (en) Management of notifications in a mobile web application
CN109120578B (en) Method and device for realizing link connection processing
CN114500651B (en) Block chain data transmission method, device and equipment and readable storage medium
KR20100024728A (en) Method and apparatus for providing instant messaging service between mobile terminals
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
CN101400020B (en) Method, system and server for customer passively entering group to obtain group lists
CN108512741A (en) Instant communication method, apparatus and system
CN102377243A (en) Collocation method of 101 protocol parameter, collocation device thereof and collocation system thereof
CN102263808A (en) Session control service method, device and system
CN104301876A (en) Short message transmission method and 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

Granted publication date: 20121212

Termination date: 20161216

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