Method and system for transmitting large object
First Claim
1. A method for transmitting a large object from a server to a client based on Open Mobile Alliance (OMA) Synchronization Markup Language (SyncML) protocol, the method comprising:
- dividing, by a server, a pre-transmitted large object into data blocks, and transmitting one by one in sequence acquired data blocks and their sizes to the client, wherein the large object is an object the size of which is larger than a maximum number of bytes in a message supported by the client;
determining, by the client, whether a received data block is transmitted successfully;
if the received data block is transmitted successfully, saving the data block, and returning a current data block transmission success message to the server;
if the received data block is not transmitted successfully, returning an end session request message or a re-transmitting current data block request message to the server; and
transmitting, by the server, the corresponding data block and its size or ending the session according to the received messages;
wherein the client determines whether the received data block is transmitted successfully by the following way;
calculating an actual size of the data block, andcomparing the actual size of the data block with the received size of the data block, if they are the same, the data block is transmitted successfully, otherwise, the data block is transmitted unsuccessfully;
wherein the step of transmitting, by the server, the corresponding data block and its size or ending the session according to the received messages comprises;
when the current data block transmission success message is received and there are other data blocks to be transmitted, transmitting, by the server, a next data block and its size to the client,when the re-transmitting current data block request message is received, transmitting sequentially, by the server, the current data block and its size to the client, andwhen the end session request message is received, ending, by the server, the current session.
2 Assignments
0 Petitions
Accused Products
Abstract
The present disclosure provides a method for transmitting a large object, after a server establishes a session with a client, the method includes: the server divides a pre-transmitted large object into data blocks, and transmits one by one in sequence acquired data blocks and their sizes to the client; the client determines whether a received data block is transmitted successfully, if the received data block is transmitted successfully, the data block is saved, and a current data block transmission success message is returned to the server; if the received data block is not transmitted successfully, an end session request message or a re-transmitting current data block request message is returned to the server; and the server transmits the corresponding data block and its size or ends the session according to the received messages. The present disclosure further provides a system for transmitting a large object. When there is an error in transmitting a data block of a large object, the method and the system in the present disclosure process it in advance, thus saving bandwidth resources.
10 Citations
9 Claims
-
1. A method for transmitting a large object from a server to a client based on Open Mobile Alliance (OMA) Synchronization Markup Language (SyncML) protocol, the method comprising:
-
dividing, by a server, a pre-transmitted large object into data blocks, and transmitting one by one in sequence acquired data blocks and their sizes to the client, wherein the large object is an object the size of which is larger than a maximum number of bytes in a message supported by the client; determining, by the client, whether a received data block is transmitted successfully; if the received data block is transmitted successfully, saving the data block, and returning a current data block transmission success message to the server; if the received data block is not transmitted successfully, returning an end session request message or a re-transmitting current data block request message to the server; and transmitting, by the server, the corresponding data block and its size or ending the session according to the received messages; wherein the client determines whether the received data block is transmitted successfully by the following way; calculating an actual size of the data block, and comparing the actual size of the data block with the received size of the data block, if they are the same, the data block is transmitted successfully, otherwise, the data block is transmitted unsuccessfully; wherein the step of transmitting, by the server, the corresponding data block and its size or ending the session according to the received messages comprises; when the current data block transmission success message is received and there are other data blocks to be transmitted, transmitting, by the server, a next data block and its size to the client, when the re-transmitting current data block request message is received, transmitting sequentially, by the server, the current data block and its size to the client, and when the end session request message is received, ending, by the server, the current session. - View Dependent Claims (2, 3, 4)
-
-
5. A system for transmitting a large object from a server to a client based on Open Mobile Alliance (OMA) Synchronization Markup Language (SyncML) protocol, comprising a server and a client,
wherein the server is configured to: - divide a pre-transmitted large object into data blocks and transmit one by one in sequence acquired data blocks and their sizes to the client; and
transmit corresponding data block and its size or end a session according to messages returned by the client;wherein the large object is an object the size of which is larger than a maximum number of bytes in a message supported by the client; and wherein the client is configured to;
determine whether a received data block is transmitted successfully, save the data block and return a current data block transmission success message to the server when the data block is transmitted successfully, and return an end session request message or a re-transmitting current data block request message to the server when the data block is not transmitted successfully;wherein the server is further configured to;
transmit a next data block and its size to the client when the current data block transmission success message is received and there are other data blocks to be transmitted, transmit sequentially the current data block and its size to the client when the re-transmitting current data block request message is received, and end the current session when the end session request message is received; andwherein the client is further configured to calculate an actual size of the data block and compare the actual size of the data block with the received size of the data block, if they are the same, the data block is transmitted successfully;
otherwise, the data block is transmitted unsuccessfully. - View Dependent Claims (6, 7, 8, 9)
- divide a pre-transmitted large object into data blocks and transmit one by one in sequence acquired data blocks and their sizes to the client; and
Specification