Data transmission
First Claim
1. A client apparatus for data transmission, the client apparatus comprising:
- a processor; and
a memory coupled to the processor, wherein the memory comprises instructions which, when executed by the processor, cause the processor to;
in response to a first file locally cached in the memory having expired, send a first request to a server for obtaining a new version of the first file, wherein the first request includes a first version identifier indicating a current version of the first file locally cached in the memory;
in response to version differences being detected by comparing the first version identifier to a second version identifier and in response to determining that difference information is smaller in size than a size of the new version of the first file, receive a first response from the server including difference information and the second version identifier, wherein the difference information indicates differences in the current version of the first file locally cached in the memory and the new version of the first file on the server, wherein the second version identifier is for indicating the new version of the first file, and, wherein the client apparatus receives the first response from the server including the difference information and the second version identifier in further response to the server determining that overheads for generating the difference information are less than a defined value;
send a second request to the server to obtain only changed content in current version of the first file locally cached in the memory based on the difference information;
receive the changed content from the server; and
use the changed content received from the server and unchanged content from the first file locally cached in the memory to display the new version of the first file to a user.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of this disclosure belong to the data processing field and disclose a method and apparatus for data transmission. The method comprises sending a first request to a server in response to a first file locally cached having expired. The first request is for obtaining a first file in a new version, and the first request containing a first version identifier. The first version identifier being for indicating a version of the first file locally cached. Receiving a first response includes difference information and a second version identifier. The difference information makes it possible to obtain the first file in the new version based on the first file locally cached, and the second version identifier is for indicating the new version. The first file in the new version is obtained based on the difference information and the first file locally cached. Using the technical solution provided by the present embodiment(s), pressures on network transmission are reduced.
-
Citations
9 Claims
-
1. A client apparatus for data transmission, the client apparatus comprising:
-
a processor; and a memory coupled to the processor, wherein the memory comprises instructions which, when executed by the processor, cause the processor to; in response to a first file locally cached in the memory having expired, send a first request to a server for obtaining a new version of the first file, wherein the first request includes a first version identifier indicating a current version of the first file locally cached in the memory; in response to version differences being detected by comparing the first version identifier to a second version identifier and in response to determining that difference information is smaller in size than a size of the new version of the first file, receive a first response from the server including difference information and the second version identifier, wherein the difference information indicates differences in the current version of the first file locally cached in the memory and the new version of the first file on the server, wherein the second version identifier is for indicating the new version of the first file, and, wherein the client apparatus receives the first response from the server including the difference information and the second version identifier in further response to the server determining that overheads for generating the difference information are less than a defined value; send a second request to the server to obtain only changed content in current version of the first file locally cached in the memory based on the difference information; receive the changed content from the server; and use the changed content received from the server and unchanged content from the first file locally cached in the memory to display the new version of the first file to a user. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A server apparatus for data transmission, the server apparatus comprising:
-
a processor; and a memory coupled to the processor, wherein the memory comprises instructions which, when executed by the processor, cause the processor to; in response to a first file locally cached in a memory of a client device having expired, receive from the client device a first request for obtaining a new version of the first file from the server apparatus, wherein the first request includes a first version identifier indicating a current version of the first file locally cached in the memory of the client device; in response to version differences being detected by comparing the first version identifier to a second version identifier and in response to determining that difference information is smaller in size than a size of the new version of the first file, send a first response to the client device including difference information and the second version identifier, wherein the difference information indicates differences in the current version of the first file locally cached in the memory of the client device and the new version of the first file in the server apparatus, wherein the second version identifier is for indicating the new version of the first file, and wherein the server apparatus sends the first response to the client device including the difference information and the second version identifier in further response to determining that overheads for generating the difference information are less than a defined value; receive a second request from the client device to obtain only changed content in current version of the first file locally cached in the memory based on the difference information; and send the changed content to the client device in order that the client device uses the changed content received from the server apparatus and unchanged content from the first file locally cached in the memory of the client device to display the new version of the first file to a user. - View Dependent Claims (7, 8, 9)
-
Specification