CN111147595A - Document downloading method, system, server and client - Google Patents

Document downloading method, system, server and client Download PDF

Info

Publication number
CN111147595A
CN111147595A CN201911396652.0A CN201911396652A CN111147595A CN 111147595 A CN111147595 A CN 111147595A CN 201911396652 A CN201911396652 A CN 201911396652A CN 111147595 A CN111147595 A CN 111147595A
Authority
CN
China
Prior art keywords
client
downloading
document
target
target document
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.)
Pending
Application number
CN201911396652.0A
Other languages
Chinese (zh)
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.)
Kunshan Q Technology Co Ltd
Original Assignee
Kunshan Q Technology 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 Kunshan Q Technology Co Ltd filed Critical Kunshan Q Technology Co Ltd
Priority to CN201911396652.0A priority Critical patent/CN111147595A/en
Publication of CN111147595A publication Critical patent/CN111147595A/en
Pending legal-status Critical Current

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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention discloses a document downloading method, a system, a server and a client, wherein the method comprises the following steps: acquiring a downloading request, wherein the downloading request carries description information of a target document to be downloaded; searching a document list based on the description information to determine a client set, wherein each client in the client set stores the target document or the segment of the target document; generating a downloading task according to the storage distribution information of the target document in the client set; and sending the downloading task to the client side set or the target client side so that N downloading client sides in the client side set provide downloading service for the target client side, wherein N is a positive integer. The system, the device and the method are used for solving the technical problem that server load is high due to existing document downloading. The technical effects of reducing the load of the server and improving the downloading stability are achieved.

Description

Document downloading method, system, server and client
Technical Field
The invention relates to the technical field of computers, in particular to a document downloading method, a document downloading system, a document downloading server and a document downloading client.
Background
With the development of communication and information technology, the demand for document data transmission is increasing. For example, inside a company, information transfer and device management are often performed by documents.
However, when a document is updated or a new document is pushed out, a large amount of downloading needs often occur in a short time, and the server needs to provide document downloading services for a large number of clients in an extremely short time. The intensive update demand often causes a large load on the server, and the instantaneous peak traffic is difficult to digest, so that the server is jammed and even crashed.
Therefore, the existing document downloading has the technical problem of causing large load to the server.
Disclosure of Invention
In view of the above, the present invention has been made to provide a document downloading method, system, server and client that overcome or at least partially solve the above-mentioned problems.
In a first aspect, a document downloading method is provided, which is applied to a server, and the method includes:
acquiring a downloading request, wherein the downloading request carries description information of a target document to be downloaded;
searching a document list based on the description information to determine a client set, wherein each client in the client set stores the target document or the segment of the target document;
generating a downloading task according to the storage distribution information of the target document in the client set;
and sending the downloading task to the client side set or the target client side so that N downloading client sides in the client side set provide downloading service for the target client side, wherein N is a positive integer.
Optionally, before the searching the document list based on the description information to determine the client set, the method further includes: receiving self-stored document lists sent by all clients establishing communication connection with the server; generating the document list based on the received plurality of document manifests; the sending the download task to the set of clients or the target client includes: generating a downloading task according to the storage distribution information of the target document in the client set, wherein the downloading task comprises N downloading clients needing to provide downloading and specific downloading contents provided by each downloading client; sending the downloading task to the client set or the target client; or, the storage distribution information of the target document in the client set is used as a downloading task to be sent to the target client, so that the target client determines N downloading clients needing to provide downloading and specific downloading contents provided by each downloading client according to the storage distribution information.
Optionally, after the sending the download task to the set of clients or the target client, the method further includes: receiving an updated document list sent by the target client after downloading the target document or the target document fragment, wherein the updated document list records the downloaded target document or the target document fragment; and updating the document list according to the updated document list.
Optionally, after the sending the download task to the set of clients or the target client, the method further includes: receiving error reporting information sent by the target client, wherein the error reporting information comprises an identifier of a to-be-corrected segment of the target document which fails to pass the verification; and generating a correction downloading task according to the error reporting information and the storage distribution information, and sending the correction downloading task to a correction client or the target client so that the correction client provides a downloading service of the to-be-corrected segment to the target client again according to the correction downloading task, wherein the correction client is the client in which the to-be-corrected segment is stored.
In a second aspect, a document downloading method is provided, which is applied to a target client, and includes:
receiving a downloading task generated by a server based on storage distribution information of a target document in a client set;
determining N downloading clients providing downloading in the client set and specific downloading content provided by each downloading client based on the downloading task, and receiving the target document or the fragment of the target document sent by the N downloading clients;
the client set is a set of clients in which the server searches a document list based on the description information of the target document and determines to store the target document or the target document fragment; the downloading task is generated by the server according to the storage distribution information of the target document in the client set;
the downloading task comprises N downloading clients needing to be provided for downloading and specific downloading contents provided by each downloading client, wherein N is a positive integer, or the downloading task is the storage distribution information.
Optionally, after receiving the target document or the segment of the target document sent by the N download clients, the method further includes: sending an update document list to the server, wherein the update document list records the downloaded target document or the fragments of the target document; and providing the target document or the downloading service of the target document fragment to other clients based on the downloading task issued by the server according to the updated document list.
Optionally, after receiving the target document or the segment of the target document sent by the N download clients, the method further includes: verifying the received target document or a fragment of the target document; if the fragments to be corrected of the target document which cannot be verified pass exist, deleting the fragments to be corrected which cannot be verified pass, and receiving the fragments to be corrected sent by the correction client side determined based on the storage distribution information; wherein, the correction client is the client storing the segment to be corrected.
In a third aspect, a server is provided, including:
the system comprises a receiving module, a downloading module and a downloading module, wherein the receiving module is used for acquiring a downloading request which carries description information of a target document to be downloaded;
a determining module, configured to search a document list based on the description information to determine a client set, where each client in the client set stores the target document or a segment of the target document;
the generating module is used for generating a downloading task according to the storage distribution information of the target document in the client set;
and the sending module is used for sending the downloading task to the client side set or the target client side so as to enable N downloading client sides in the client side set to provide downloading service for the target client side, wherein N is a positive integer.
In a fourth aspect, a target client is provided, including:
the request module is used for receiving a downloading task generated by the server based on the storage distribution information of the target document in the client terminal set;
the downloading module is used for determining N downloading clients providing downloading in the client terminal set and specific downloading contents provided by each downloading client terminal based on the downloading task, and receiving the target document or the fragments of the target document sent by the N downloading client terminals; the client set is a set of clients in which the server searches a document list based on the description information of the target document and determines to store the target document or the target document fragment; the downloading task is generated by the server according to the storage distribution information of the target document in the client set; the downloading task comprises N downloading clients needing to be provided for downloading and specific downloading contents provided by each downloading client, wherein N is a positive integer, or the downloading task is the storage distribution information.
In a fifth aspect, a document download system is provided, comprising:
the system comprises a server and a plurality of clients which are in communication connection with the server;
the server is provided with a plurality of clients, wherein a document list is stored in the server and records a document list stored in each client of the plurality of clients;
after the server acquires a download request, a client set in which the target document or the fragments of the target document are stored is determined from the plurality of clients according to description information of the target document to be downloaded, wherein the description information is carried in the download request, and a download task is generated and sent to the client set according to storage distribution information of the target document in the client set, so that each download client in the client set is informed to provide download service for the target client.
The technical scheme provided by the embodiment of the invention at least has the following technical effects or advantages:
according to the document downloading method, the document downloading system, the server and the client, the document list recording the document lists stored by the clients is set on the server, after the downloading request is obtained, the client set storing the target documents or the target document fragments is determined by searching the document list, the downloading task is generated and sent to the client set or the target client, the downloading task is cooperatively provided through the client set, the overload of the server caused by the fact that the server is downloaded from the server alone is avoided, the load of the server is reduced, and the downloading stability is further guaranteed.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic diagram of a document download system in an embodiment of the invention;
FIG. 2 is a diagram illustrating the steps of a method for downloading a server-side document according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a first document downloading method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a second document downloading method according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating steps in a client-side document download method in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram of a server in an embodiment of the invention;
fig. 7 is a schematic diagram of a client according to an embodiment of the present invention.
Detailed Description
The technical scheme in the embodiment of the invention has the following general idea:
according to the document downloading method, the document downloading system, the server and the client, after receiving a downloading request sent by a target client, the server determines a client set in which a target document or a segment of the target document is stored according to description information of the target document to be downloaded, wherein the description information is carried in the downloading request, and generates and sends a downloading task to the client set according to storage distribution of the target document in the client set, so that each downloading client in the client set is informed to provide downloading service for the target client according to the downloading task. The downloading task is cooperatively provided through a client set, so that the overload of the server caused by downloading from the server alone is avoided, the load of the server is reduced, and the downloading stability is ensured.
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The present embodiment provides a document download system, as shown in fig. 1, including:
a server 100 and a plurality of clients 200 which establish communication connection with the server;
the server is provided with a plurality of clients, wherein a document list is stored in the server and records a document list stored in each client of the plurality of clients;
after the server acquires a download request, a client set in which the target document or the fragments of the target document are stored is determined from the plurality of clients according to description information of the target document to be downloaded, wherein the description information is carried in the download request, and a download task is generated and sent to the client set according to storage distribution information of the target document in the client set, so that each download client in the client set is informed to provide download service for the target client.
The server may obtain the download request, where the download request is sent by the target client received by the server, or the server itself may actively initiate the generated download request (for example, the download request generated based on an operation of a worker on the server), which is not limited herein.
The downloading task can comprise N downloading clients needing to provide downloading and specific downloading content provided by each downloading client, wherein N is a positive integer; the download task may also be directly storing the distribution information. Specifically, the server may determine the N download clients and the specific download content provided by each client according to the storage distribution information, and then send the N download clients and the specific download content as a download task to the target client or the set of clients for execution. The server may also send the determined storage distribution information to the target client as a download task, and the target client determines the N download clients and the specific download content provided by each client according to the storage distribution information and requests the determined download clients for a download service, which is not limited herein. It should be noted that the server 100 and the client 200 may be independent computer devices, or may be integrated on the same device, and a target client in the client 200 may be an independent computer device from other clients, or may be integrated on the same device, which is not limited herein. The document downloading system in this embodiment may be used for production document management on a production line, document management of a service user of a service provider, or document management in an enterprise local area network, which is not limited herein.
In this embodiment, the number of the clients establishing communication connection with the server may be increased or decreased along with the startup and shutdown of the clients. When a client is started, the client sends a login request to the server, and if the login is successful, the client sends a document list stored by the client to the server for storage, so that the server can add the document list to a stored document list to determine which documents can be downloaded currently by the client.
Further, the client which is logged on the server can be set to continuously update the document list of the client to the server. The specific updating method may be that the client periodically updates the document list and sends the updated document list to the server, or that the updated document list is triggered to be pushed to the server after the document stored in the client changes every time, which is not limited herein. Through the continuous update sending of the client to the document list, the latest document storage condition of each client connected currently is recorded in the document list stored in the server.
Based on the document downloading system, the embodiment further provides a document downloading method, applied to the server shown in fig. 1, where the method, as shown in fig. 2, includes:
step S201, obtaining a downloading request, wherein the downloading request carries description information of a target document to be downloaded;
step S202, searching a document list based on the description information to determine a client set, wherein each client in the client set stores the target document or the segment of the target document;
step S203, generating a downloading task according to the storage distribution of the target document in the client set;
step S204, the download tasks are sent to the client side set or the target client side, so that N download client sides in the client side set provide download service for the target client side.
The following describes the document downloading method provided by the present embodiment in detail from the perspective of system interaction with reference to fig. 1 and fig. 2:
first, step S201 is executed to obtain a download request, where the download request carries description information of a target document to be downloaded.
It should be noted that the download request may be sent by a target client to the server, where the target client is one of the clients that establish a communication connection with the server. When the target client sends a download request to the server, the target client carries description information of a target document to be downloaded, where the description information may be a name or a number of the document.
Of course, the download request may also be generated on the server, and the server actively pushes the download task.
Then, step S202 is executed to search a document list based on the description information to determine a client set, where each client in the client set stores the target document or the segment of the target document.
After the server receives the downloading request, the server searches in a document list according to the carried description information, and the client connected with the server stores the target document or the fragment of the target document. And forming a client set by the clients storing the target document or the fragments of the target document.
As described above, in order to ensure that the latest document storage condition of each currently connected client is recorded in the document list in the server, the client set can be accurately determined. Each client end which establishes communication connection with the server continuously sends the self-stored document list to the server when starting the login server and after logging in the server, so that the server generates the document list based on the latest document list.
Next, step S203 is executed to generate a download task according to the storage distribution information of the target document in the client collection.
The downloading task can be that the server determines N downloading clients which need to provide downloading and specific downloading contents provided by each downloading client; the stored distribution information may also be, but is not limited to, the described storage distribution information. It should be noted that the storage distribution information characterizes which segments of the target document are stored by each client in the client set. There may be various ways for the server or the target client to generate the download task according to the storage distribution, and two ways are listed as follows:
first, a download task is generated based on the maximum number of download clients. That is, the maximum number N of downloading clients providing downloading is ensured as much as possible in the downloading task to relieve the transmission pressure of each client as much as possible, and when a plurality of assignable conditions of the maximum number N exist, the downloading task can be randomly selected and generated.
For example, it is assumed that the target document can be divided into four segments, i.e., segments a, b, c, and d, and there are 5 clients in the determined client set, where the first client stores the segments b and c of the target document, the second client stores the segment c of the target document, the third client stores the full text of the target document, the fourth client stores the segment b of the target document, and the fifth client stores the segments a and b of the target document.
In order to obtain the maximum number of downloading clients, the downloading task can be set as follows: the first client provides the downloading of the segment b, the second client provides the downloading of the segment c, the third client provides the downloading of the segment d, the fifth client provides the downloading of the segment a, at the moment, N is equal to 4, and the number of the downloading clients is 4, namely the first client, the second client, the third client and the fifth client. Or the downloading task can be set as follows: the first client provides the downloading of the segment c, the third client provides the downloading of the segment d, the fourth client provides the downloading of the segment b, the fifth client provides the downloading of the segment a, at the moment, N is equal to 4, and the number of the downloading clients is 4, namely the first client, the third client, the fourth client and the fifth client.
Second, the maximum number of downloading clients is limited to generate the downloading task. That is, the download task ensures that the number N of the download clients providing the download is not greater than the preset limit, and when a plurality of allocable conditions meeting the requirement exist, the download task can be randomly selected and generated.
For example, assuming that the maximum number of downloaded clients is 3, the target document may be divided into four segments, i.e., segments a, b, c, and d, and there are 5 clients in the determined client set, where the first client stores the segments b and c of the target document, the second client stores the segment c of the target document, the third client stores the full text of the target document, the fourth client stores the segment b of the target document, and the fifth client stores the segments a and b of the target document.
The download task may be set as: the first client provides downloading of the segments b and c, the third client provides downloading of the segment d, and the fifth client provides downloading of the segment a, wherein N is equal to 3, and the number of the downloading clients is 3, namely the first client, the third client and the fifth client. Or the downloading task can be set as follows: the second client provides the downloading of the segment c, the third client provides the downloading of the segment d, and the fifth client provides the downloading of the segments a and b, wherein N is equal to 3, and the number of the downloading clients is 3, namely the second client, the third client and the fifth client.
Of course, the method for generating the download task by the server according to the storage distribution is not limited to the above two methods, and the download task may be generated randomly or according to the network condition of each client, which is not limited herein. For example, it may be further configured that each client may limit the maximum number of download connections, that is, the number of download services provided by the client at the same time does not exceed a preset value, so as to avoid the problem of jamming and the like.
Then, step S204 is executed to send the download task to the client set or the target client, so that the N download clients in the client set provide download services to the target client.
In the specific implementation process, there are various ways to send the download task to the client set or the target client, and two examples are listed below:
first, the server determines the download client and download content that specifically provides the download. The server determines N downloading clients needing to provide downloading and specific downloading contents provided by each downloading client according to the storage distribution information of the target document in the client set, and the N downloading clients and the specific downloading contents are used as downloading tasks; and sending the download task to the client set or the target client.
Optionally, the server sends the generated download tasks to the N download clients in the client set. And after receiving the downloading task, each downloading client provides downloading service to the target client according to the downloading content specified by the downloading task. For example, the downloading task requires the third client to provide the downloading of the segment d, and the third client sends the segment d of the target document to the target client after receiving the downloading task.
Optionally, the server sends the generated download task to the target client. And the target client sends the downloading tasks to the N downloading clients recorded in the downloading tasks, so that each downloading client provides downloading service for the target client according to the downloading content specified by the downloading tasks.
Second, the target client determines the download client and download content to provide for download. The server directly sends the storage distribution information of the target document in the client set as a downloading task to the target client, and then the target client determines N downloading clients needing to provide downloading and specific downloading content provided by each downloading client according to the storage distribution information, wherein N is a positive integer.
In an optional implementation manner, after the target client receives and stores the target document or the target document fragment sent by the download client, the target client updates its own document list to record the stored target document or the target document fragment, and sends the updated update document list to the server, so that the document list of the server updates and records that the target client has the stored target document or the target document fragment. Therefore, if the server acquires a downloading request that other clients need to download the target document, the target client can be listed in the downloaded client set, so that the target client can provide downloading service of the target document or the target document fragment to other clients needing to download the target document.
Specifically, the target client notifies the server in time after the document of the target client is updated, so that the server can be used as a downloading client for downloading the target document by other clients, the downloading source of the target document is increased, and the downloading load of other clients is reduced.
Furthermore, even if the target client does not complete the downloading of the target document, only the target document segment is downloaded, the target client can be used as the downloading client of the target document segment to provide downloading service for other clients, so that the number of the downloading clients can be enlarged to the maximum extent, the downloading load is prevented from being too concentrated, and the downloading pressure is relieved.
In an alternative embodiment, after receiving the target document or the target document fragment, the target client checks the received document or fragment, for example, by hashing. If the document or the fragment which is not verified is existed, error reporting information can be sent to the server, and the error reporting information comprises the identification of the document or the fragment to be corrected. For example, if the received fragment c of the target document fails to be checked, error reporting information carrying the identifier of the fragment c is sent to the server. After receiving the error reporting information, the server generates a correction download task according to the error reporting information and the previously obtained storage distribution of the target document and the target document fragment, and sends the correction download task to a correction client to inform the correction client to re-provide the download service of the to-be-corrected fragment to the target client according to the correction download task, wherein the correction client is the client storing the to-be-corrected fragment. Of course, the server may also send the correction download task to the target client to notify the target client to request the download service of the to-be-corrected segment from the correction client, where the correction client is the client storing the to-be-corrected segment. Optionally, if there is a document or a fragment that fails to pass the verification, the target client may not notify the server, determine the correction client according to the storage distribution information, and communicate with the correction client to obtain a download service with the correction fragment, which is not limited herein.
For example, it is assumed that the target document can be divided into four segments, i.e., segments a, b, c, and d, and there are 5 clients in the determined client set, where the first client stores the segments b and c of the target document, the second client stores the segment c of the target document, the third client stores the full text of the target document, the fourth client stores the segment b of the target document, and the fifth client stores the segments a and b of the target document. The downloading task is set as follows: the first client provides the downloading of the segment b, the second client provides the downloading of the segment c, the third client provides the downloading of the segment d, and the fifth client provides the downloading of the segment a.
If the target client side receives the segment b provided by the client side I and checks that the segment b does not pass, the target client side deletes the segment b and sends error reporting information to the server, and the server regenerates the correction downloading task according to the identification of the segment b in the error reporting information: and the client four is used as a correction client to provide the target client with the downloading of the segment b again.
Specifically, the real-time verification and correction downloading can ensure the correctness of the downloaded document, avoid the re-downloading of the whole document and save the consumption of downloading flow.
The following provides a specific example of the document downloading method of the present embodiment with reference to fig. 3-4:
assume that 6 clients each log in to the server to establish a communication connection therewith as shown in fig. 3. The 6 clients all send the document lists recording the documents stored by the clients to the server to be stored as the document list when logging in the server, and each client can continuously update the latest document list to the server.
When a first client (a target client) needs to download a target document a, a download request is sent to a server, (or the server receives an operation executed by a worker and needing to push the target document a to the first client, so as to generate a corresponding download request), the server searches a document list based on the download request, and knows that the second, fourth, fifth and sixth clients store the target document a or a segment of the target document a, namely the second, fourth, fifth and sixth clients are determined client sets. The server generates a download task according to the storage distribution information of the target document, and the download task is set as follows: the second client provides the downloading of the segment a-01, the fourth client provides the downloading of the segment a-04, the fifth client provides the downloading of the segment a-03, and the sixth client provides the downloading of the segments a-02 and a-05. (alternatively, the server directly sends the storage distribution information to the client side I as a download task, and the client side I determines according to the download task that the client side II provides the download of the segment a-01, the client side IV provides the download of the segment a-04, the client side V provides the download of the segment a-03, and the client side VI provides the download of the segments a-02 and a-05)
Optionally, as shown in fig. 3, after the server feeds back the download task to the first client, the first client forwards the download task to the second, fourth, fifth, and sixth clients. Then, as shown in fig. 4, the second, fourth, fifth and sixth clients respectively send the fragments of the target document a to the first client according to the requirements of the downloading task. And after the client receives all the fragments, combining the fragments into a complete target document a.
Optionally, the server directly sends the download task to the clients two, four, five, and six. Then, as shown in fig. 4, the second, fourth, fifth and sixth clients respectively send the fragments of the target document a to the first client according to the requirements of the downloading task. And after the client receives all the fragments, combining the fragments into a complete target document a.
Based on the document downloading system, the embodiment further provides a document downloading method, which is applied to the client shown in fig. 1, and as shown in fig. 5, the method includes:
step S501, receiving a download task generated by a server based on the storage distribution information of the target document in the client set.
Step S502, determining N downloading clients providing downloading in the client set and specific downloading contents provided by each downloading client based on the downloading task, and receiving the target document or the segment of the target document sent by the N downloading clients; the client set is a set of clients in which the server searches a document list based on the description information of the target document and determines to store the target document or the target document fragment; the downloading task is generated by the server according to the storage distribution information of the target document in the client set; the downloading task comprises N downloading clients needing to be provided for downloading and specific downloading contents provided by each downloading client, wherein N is a positive integer, or the downloading task is the storage distribution information.
In this embodiment of the present application, after receiving the target document or the segment of the target document sent by the N download clients, the method further includes:
sending an update document list to the server, wherein the update document list records the downloaded target document or the fragments of the target document;
and providing the target document or the downloading service of the target document fragment to other clients based on the downloading task issued by the server according to the updated document list.
In this embodiment of the present application, after receiving the target document or the segment of the target document sent by the N download clients, the method further includes:
verifying the received target document or a fragment of the target document;
if the fragments to be corrected of the target document which cannot be verified pass exist, deleting the fragments to be corrected which cannot be verified pass, and receiving the fragments to be corrected sent by the correction client side determined based on the storage distribution information; wherein, the correction client is the client storing the segment to be corrected.
Since the document downloading method described herein is a step of implementing the document downloading method on the target client side, based on the document downloading method of the system and the server side described in the present application, those skilled in the art can understand specific steps and variations of the document downloading method on the target client side, and thus details are not described herein again.
Based on the above document download system, the present embodiment also provides the server shown in fig. 1, which includes, as shown in fig. 6:
a receiving module 601, configured to obtain a download request, where the download request carries description information of a target document to be downloaded;
a determining module 602, configured to search a document list based on the description information to determine a client set, where each client in the client set stores the target document or a segment of the target document;
a generating module 603, configured to generate a downloading task according to the storage distribution information of the target document in the client collection;
a sending module 604, configured to send the download task to the client set or the target client, so that N download clients in the client set provide download services to the target client, where N is a positive integer.
Since the server described herein is a device corresponding to the above-mentioned server-side document downloading method, based on the system and the server-side document downloading method described in the present application, those skilled in the art can understand the specific structure and variations of the server, and thus, details thereof are not described herein again.
Based on the above document downloading system, the present embodiment further provides the client shown in fig. 1, and the client shown in fig. 7 includes:
a request module 701, configured to receive a download task generated by a server based on storage distribution information of a target document in a client set;
a downloading module 702, configured to determine, based on the downloading task, N downloading clients providing downloading in the client set and specific downloading content provided by each downloading client, and receive the target document or a segment of the target document sent by the N downloading clients; the client set is a set of clients in which the server searches a document list based on the description information of the target document and determines to store the target document or the target document fragment; the downloading task is generated by the server according to the storage distribution information of the target document in the client set; the downloading task comprises N downloading clients needing to be provided for downloading and specific downloading contents provided by each downloading client, wherein N is a positive integer, or the downloading task is the storage distribution information.
Since the client described herein is a device corresponding to the above-mentioned document downloading method on the client side (specifically, the target client side), based on the system and the document downloading method on the client side described in the present application, those skilled in the art can understand the specific structure and variations of the client, and thus, details are not described herein again.
The technical scheme provided by the embodiment of the invention at least has the following technical effects or advantages:
according to the document downloading method, the document downloading system, the server and the client, the document list recording the document lists stored by the clients is set on the server, after the downloading request is obtained, the client set storing the target documents or the target document fragments is determined by searching the document list, the downloading task is generated and sent to the client set or the target client, the downloading task is cooperatively provided through the client set, the overload of the server caused by the fact that the server is downloaded from the server alone is avoided, the load of the server is reduced, and the downloading stability is further guaranteed.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor, Digital Signal Processor (DSP), or embedded system may be used in practice to implement some or all of the functionality of some or all of the components of a gateway, proxy server, system according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (10)

1. A document downloading method is applied to a server, and the method comprises the following steps:
acquiring a downloading request, wherein the downloading request carries description information of a target document to be downloaded;
searching a document list based on the description information to determine a client set, wherein each client in the client set stores the target document or the segment of the target document;
generating a downloading task according to the storage distribution information of the target document in the client set;
and sending the downloading task to the client side set or the target client side so that N downloading client sides in the client side set provide downloading service for the target client side, wherein N is a positive integer.
2. The method of claim 1, wherein:
before the searching the document list based on the description information to determine the client set, the method further includes:
receiving self-stored document lists sent by all clients establishing communication connection with the server; generating the document list based on the received plurality of document manifests;
the sending the download task to the set of clients or the target client includes:
generating a downloading task according to the storage distribution information of the target document in the client set, wherein the downloading task comprises N downloading clients needing to provide downloading and specific downloading contents provided by each downloading client; sending the downloading task to the client set or the target client;
or, the storage distribution information of the target document in the client set is used as a downloading task to be sent to the target client, so that the target client determines N downloading clients needing to provide downloading and specific downloading contents provided by each downloading client according to the storage distribution information.
3. The method of claim 1, wherein after the sending the download task to the set of clients or the target client, further comprising:
receiving an updated document list sent by the target client after downloading the target document or the target document fragment, wherein the updated document list records the downloaded target document or the target document fragment;
and updating the document list according to the updated document list.
4. The method of claim 1, wherein after the sending the download task to the set of clients or the target client, further comprising:
receiving error reporting information sent by the target client, wherein the error reporting information comprises an identifier of a to-be-corrected segment of the target document which fails to pass the verification;
and generating a correction downloading task according to the error reporting information and the storage distribution information, and sending the correction downloading task to a correction client or the target client so that the correction client provides a downloading service of the to-be-corrected segment to the target client again according to the correction downloading task, wherein the correction client is the client in which the to-be-corrected segment is stored.
5. A document downloading method is applied to a target client and comprises the following steps:
receiving a downloading task generated by a server based on storage distribution information of a target document in a client set;
determining N downloading clients providing downloading in the client set and specific downloading content provided by each downloading client based on the downloading task, and receiving the target document or the fragment of the target document sent by the N downloading clients;
the client set is a set of clients in which the server searches a document list based on the description information of the target document and determines to store the target document or the target document fragment; the downloading task is generated by the server according to the storage distribution information of the target document in the client set;
the downloading task comprises N downloading clients needing to be provided for downloading and specific downloading contents provided by each downloading client, wherein N is a positive integer, or the downloading task is the storage distribution information.
6. The method of claim 5, wherein after said receiving the target document or the segment of the target document sent by the N download clients, further comprising:
sending an update document list to the server, wherein the update document list records the downloaded target document or the fragments of the target document;
and providing the target document or the downloading service of the target document fragment to other clients based on the downloading task issued by the server according to the updated document list.
7. The method of claim 5, wherein after said receiving the target document or the segment of the target document sent by the N download clients, further comprising:
verifying the received target document or a fragment of the target document;
if the fragments to be corrected of the target document which cannot be verified pass exist, deleting the fragments to be corrected which cannot be verified pass, and receiving the fragments to be corrected sent by the correction client side determined based on the storage distribution information; wherein, the correction client is the client storing the segment to be corrected.
8. A server, comprising:
the system comprises a receiving module, a downloading module and a downloading module, wherein the receiving module is used for acquiring a downloading request which carries description information of a target document to be downloaded;
a determining module, configured to search a document list based on the description information to determine a client set, where each client in the client set stores the target document or a segment of the target document;
the generating module is used for generating a downloading task according to the storage distribution information of the target document in the client set;
and the sending module is used for sending the downloading task to the client side set or the target client side so as to enable N downloading client sides in the client side set to provide downloading service for the target client side, wherein N is a positive integer.
9. A target client, comprising:
the request module is used for receiving a downloading task generated by the server based on the storage distribution information of the target document in the client terminal set;
the downloading module is used for determining N downloading clients providing downloading in the client terminal set and specific downloading contents provided by each downloading client terminal based on the downloading task, and receiving the target document or the fragments of the target document sent by the N downloading client terminals; the client set is a set of clients in which the server searches a document list based on the description information of the target document and determines to store the target document or the target document fragment; the downloading task is generated by the server according to the storage distribution information of the target document in the client set; the downloading task comprises N downloading clients needing to be provided for downloading and specific downloading contents provided by each downloading client, wherein N is a positive integer, or the downloading task is the storage distribution information.
10. A document download system, comprising:
the system comprises a server and a plurality of clients which are in communication connection with the server;
the server is provided with a plurality of clients, wherein a document list is stored in the server and records a document list stored in each client of the plurality of clients;
after the server acquires a download request, a client set in which the target document or the fragments of the target document are stored is determined from the plurality of clients according to description information of the target document to be downloaded, wherein the description information is carried in the download request, and a download task is generated and sent to the client set according to storage distribution information of the target document in the client set, so that each download client in the client set is informed to provide download service for the target client.
CN201911396652.0A 2019-12-30 2019-12-30 Document downloading method, system, server and client Pending CN111147595A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911396652.0A CN111147595A (en) 2019-12-30 2019-12-30 Document downloading method, system, server and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911396652.0A CN111147595A (en) 2019-12-30 2019-12-30 Document downloading method, system, server and client

Publications (1)

Publication Number Publication Date
CN111147595A true CN111147595A (en) 2020-05-12

Family

ID=70521880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911396652.0A Pending CN111147595A (en) 2019-12-30 2019-12-30 Document downloading method, system, server and client

Country Status (1)

Country Link
CN (1) CN111147595A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022267692A1 (en) * 2021-06-23 2022-12-29 中兴通讯股份有限公司 Data processing method, file service system, terminal device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710857A (en) * 2004-06-18 2005-12-21 千橡寰宇科技发展(北京)有限公司 Method and method for realizing document accelerated download
CN101079709A (en) * 2006-06-15 2007-11-28 腾讯科技(深圳)有限公司 Single-node-to-multi-node concurrent download system and method
US20130031214A1 (en) * 2011-07-25 2013-01-31 Sony Computer Entertainment America Llc Method and system for efficient download of data package
CN105635287A (en) * 2015-12-31 2016-06-01 深圳市网心科技有限公司 File transmission system and method
CN106657383A (en) * 2017-01-12 2017-05-10 腾讯科技(深圳)有限公司 Data downloading method and relevant equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710857A (en) * 2004-06-18 2005-12-21 千橡寰宇科技发展(北京)有限公司 Method and method for realizing document accelerated download
CN101079709A (en) * 2006-06-15 2007-11-28 腾讯科技(深圳)有限公司 Single-node-to-multi-node concurrent download system and method
US20130031214A1 (en) * 2011-07-25 2013-01-31 Sony Computer Entertainment America Llc Method and system for efficient download of data package
CN105635287A (en) * 2015-12-31 2016-06-01 深圳市网心科技有限公司 File transmission system and method
CN106657383A (en) * 2017-01-12 2017-05-10 腾讯科技(深圳)有限公司 Data downloading method and relevant equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022267692A1 (en) * 2021-06-23 2022-12-29 中兴通讯股份有限公司 Data processing method, file service system, terminal device, and storage medium

Similar Documents

Publication Publication Date Title
CN112839111B (en) System, method, and medium for customizable event-triggered computation at edge locations
US20150237113A1 (en) Method and system for file transmission
US20160088118A1 (en) Client side cache management
US20160150046A1 (en) Re-establishing push notification channels via user identifiers
US20130262628A1 (en) Incentive driven content delivery
CN109391673B (en) Method, system and terminal equipment for managing update file
US9792623B2 (en) Advertisement processing method and apparatus
CN112261172B (en) Service addressing access method, device, system, equipment and medium
US10051035B2 (en) Method and apparatus for providing secure file transmission
CN112118315A (en) Data processing system, method, device, electronic equipment and storage medium
CN107360254A (en) A kind of document down loading method, device, server and terminal
CN112513830A (en) Back-source method and related device in content distribution network
EP3584669B1 (en) Webpage loading method, webpage loading system, and server
US10977699B2 (en) Digital signage shim layer
US7793113B2 (en) Guaranteed deployment of applications to nodes in an enterprise
US8843915B2 (en) Signature-based update management
US20210344602A1 (en) Load-balancing establishment of connections among groups of connector servers
CN110572422A (en) Data downloading method and device
US11722481B2 (en) Multiple identity provider authentication system
CN109905479B (en) File transmission method and device
CN113364887B (en) File downloading method based on FTP, proxy server and system
CN111147595A (en) Document downloading method, system, server and client
CN111131498B (en) URL information updating method, cache server, equipment and storage medium
WO2019242279A1 (en) Message processing method and device
KR102196403B1 (en) Reduced redirection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200512