CN106790343B - Resource downloading method and server - Google Patents

Resource downloading method and server Download PDF

Info

Publication number
CN106790343B
CN106790343B CN201610959426.9A CN201610959426A CN106790343B CN 106790343 B CN106790343 B CN 106790343B CN 201610959426 A CN201610959426 A CN 201610959426A CN 106790343 B CN106790343 B CN 106790343B
Authority
CN
China
Prior art keywords
server
data
download
downloading
target data
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.)
Active
Application number
CN201610959426.9A
Other languages
Chinese (zh)
Other versions
CN106790343A (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.)
Shenzhen Launch Software Co Ltd
Original Assignee
Shenzhen Launch Software 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 Shenzhen Launch Software Co Ltd filed Critical Shenzhen Launch Software Co Ltd
Priority to CN201610959426.9A priority Critical patent/CN106790343B/en
Priority to PCT/CN2017/071202 priority patent/WO2018082212A1/en
Publication of CN106790343A publication Critical patent/CN106790343A/en
Application granted granted Critical
Publication of CN106790343B publication Critical patent/CN106790343B/en
Active 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/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • 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 embodiment of the invention discloses a resource downloading method and a server, wherein the method comprises the following steps: after receiving a downloading request sent by terminal equipment, a first server determines target data specified by the downloading request and sends a downloading instruction to a second server, wherein the downloading instruction instructs the second server to send the target data to the terminal equipment, the target data comprises first data and second data, the second data is stored in the first server, and the first data is stored in the second server but the second data is not stored in the second server; the first server sends the second data to the second server. The resource downloading method and the server provided by the embodiment of the invention are used for improving the speed of downloading network resources and reducing the cost of operation and maintenance of the server.

Description

Resource downloading method and server
Technical Field
The present invention relates to the field of network technologies, and in particular, to a resource downloading method and a server.
Background
With the advancement of computer technology and the network age, downloading of large-scale software and other types of network resources is often required during production and life. When downloading large-scale software or other large-scale data, a plurality of servers are required to be erected to complete the downloading task together, so that the downloading speed of a user is increased, and the requirement of the user on the downloading speed is met.
At present, when large-scale software is downloaded, a plurality of servers are usually required to be erected, and a load balancing technology is adopted to balance and distribute a load (a download task) to a plurality of servers, such as a File Transfer Protocol (FTP) server, an enterprise key application server, other key task servers and the like, for execution, so that a work task is completed together. The downloading task can be distributed to a plurality of servers to be completed together through a load balancing technology, and the downloading speed is improved. The adoption of the load balancing technology requires the installation of load balancing equipment, so that the cost is high and the realization process is complex.
According to the technical scheme, the servers need to be erected with balanced load, and the operation and maintenance cost is high.
Disclosure of Invention
The embodiment of the invention provides a resource downloading method and a server, which are used for improving the speed of downloading network resources and reducing the cost of operation and maintenance of the server.
In one aspect, an embodiment of the present invention provides a resource downloading method, including:
after receiving a downloading request sent by terminal equipment, a first server determines target data specified by the downloading request and sends a downloading instruction to a second server, wherein the downloading instruction instructs the second server to send the target data to the terminal equipment, the target data comprises first data and second data, the second data is stored in the first server, and the first data is stored in the second server but the second data is not stored in the second server;
the first server sends the second data to the second server.
In an optional implementation manner, before the determining the target data specified by the download request and sending the download instruction to the second server, the method further includes:
detecting the downloading speed between the terminal equipment and a server associated with the first server, and determining that the server with the downloading speed meeting the downloading speed requirement of the terminal equipment is a second server, wherein the associated server is the server storing the first data.
In an optional implementation manner, after receiving a download request sent by a terminal device, the determining, by the first server, target data specified by the download request and sending a download instruction to the second server includes:
after receiving a downloading request sent to a target website by a terminal device through a browser, the first server determines target data specified by the downloading request and sends a downloading instruction to a second server, wherein the target website is operated by the first server, and the target website is not operated by the second server.
In an optional implementation manner, after the first server receives a download request sent by the terminal device, before the determining target data specified by the download request and sending a download instruction to the second server, the method further includes:
the first server verifies the downloading authority of the terminal equipment;
the determining the target data specified by the download request and sending the download instruction to the second server comprises:
and after the download authority passes the verification, determining target data specified by the download request and sending a download instruction to a second server.
In an optional implementation, the method further includes:
the first server detects whether first data in the target data are updated by utilizing update data;
if yes, sending an updating instruction and the updating data to the second server, wherein the updating instruction instructs the second server to update the first data in the second server according to the updating data.
In another aspect, an embodiment of the present invention further provides a server, including:
a receiving unit, configured to receive a download request sent by a terminal device;
a determination unit configured to determine target data specified by the download request;
a sending unit, configured to send a download instruction to a second server, where the download instruction instructs the second server to send the target data to the terminal device, where the target data includes first data and second data, the first server stores the second data, and the second server stores the first data and does not store the second data;
the sending unit is further configured to send the second data to the second server by the first server.
In an optional implementation manner, the server further includes:
a detection unit configured to detect a download speed between the terminal device and a server associated with the first server, the associated server being a server storing the first data;
the determining unit is further configured to determine that the server with the download speed meeting the download speed requirement of the terminal device is a second server.
In an optional implementation manner, the receiving unit is specifically configured to receive a download request sent by a terminal device to a target website through a browser;
the determining unit is specifically configured to determine target data specified by the download request;
the sending unit is specifically configured to send a download instruction to a second server, where the second server does not run the target website.
In an optional implementation manner, the server further includes:
the verification unit is used for verifying the downloading authority of the terminal equipment by the first server;
the determining unit is specifically configured to determine, after the download permission verification is passed, target data specified by the download request and send a download instruction to a second server.
In an optional implementation manner, the detecting unit is further configured to detect, by the first server, whether first data in the target data has been updated by using update data;
the sending unit is further configured to send an update instruction to the second server and send the update data to the second server after the detecting unit detects that the first data in the target data has been updated by using the update data, where the update instruction instructs the second server to update the first data according to the update data.
Embodiments of the present invention in three aspects further provide a server, including: a processor and a memory, wherein the processor is configured to perform any one of the methods provided by the embodiments of the invention.
According to the technical scheme, the embodiment of the invention has the following advantages: when the speed of the terminal device for downloading the target data through the first server cannot meet the requirement of the terminal device for the downloading speed, the first server sends second data which is not stored in the second server in the target data to the second server, and the second server combines the second data and the first data stored in the second server into the target data and sends the target data to the terminal device. The target data includes first data and second data. By the technical scheme, the speed of downloading the network resources by the user can be increased, and the operation and maintenance cost of the server is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a resource downloading method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of target data storage according to an embodiment of the present invention;
fig. 3 is a schematic view of a browser interface of a terminal device according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a resource downloading method according to another embodiment of the present invention;
FIG. 5 is a diagram illustrating a server structure according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a server structure according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a server structure according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a server structure according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a resource downloading method, as shown in fig. 1, including:
101. after receiving a downloading request sent by terminal equipment, a first server determines target data specified by the downloading request and sends a downloading instruction to a second server.
In an embodiment of the present invention, the download instruction instructs the second server to transmit the target data to the terminal device, the target data includes first data and second data, the first server stores the second data, and the second server stores the first data and does not store the second data.
It is understood that the target data is data that the user needs to download, and may be software, documents, audio files, and the like. The first server may be, for example, a World Wide Web (Web) server, a File Transfer Protocol (FTP) server, an enterprise critical application server, other mission critical servers, and the like. The terminal equipment can be a desktop computer, a notebook computer, a mobile phone, a tablet computer and the like.
It is to be understood that the type of the second server may be the same as or different from the first server, and the embodiment of the present invention is not limited thereto. The first server and the second server may provide services for the same website, or the second server may not provide services for the website. The download request may include identification information of the terminal device, internet protocol address (IP) information, and information of target data to be downloaded. The first server may parse the download request and extract information of target data included in the download request, thereby determining the target data required by the terminal device. The first server may also provide the identifier information or the IP information of the terminal device from the download request, and then determine the download right of the terminal device according to the identifier information or the IP information. The first server may determine, after the download permission verification passes, that a certain server that can satisfy the download requirement of the terminal device, such as download speed, download delay, and the like, is a second server. And the first server sends a downloading instruction to the second server. The download instruction may include information of the terminal device and information of the target data. The download instruction instructs the second server to send the target data to the terminal device.
As shown in fig. 2, the target data includes first data and second data; the first server stores the second data, and the second server stores the first data and does not store the second data. For example, the first server may send a download instruction to the second server to instruct the second server to send the target data to the terminal device when the load is heavy or the requirement of the terminal device for downloading the target data cannot be met. The terminal device downloads the target data through the second server to meet the requirement of the terminal device on the downloading speed.
102. The first server transmits the second data to the second server.
In an embodiment of the present invention, the second data is stored in the first server. The second server stores first data and does not store the second data. The second data may be, for example, encrypted data in the target data, and the encrypted data in the target data may be changed every time of downloading. The first data may be data in the target data that is not changed, i.e., the portion of data in the target data is not changed each time it is downloaded. The first server transmits the second data to the second server, and the second server combines the received second data and the first data stored therein into the target data and transmits the target data to the terminal device. The embodiment of the present invention does not limit the types and specific contents of the first data and the second data.
The access between the servers is generally fast. When the first server cannot meet the download requirement of the terminal device, the second server may be designated to send target data to the terminal device, and data lacking in the second server may be sent to the second server. In this way, the speed of downloading the target data by the terminal equipment can be improved.
The embodiment of the invention selects the server which can meet the downloading requirement of the terminal equipment as the second server, and the second server sends the target data to the terminal equipment to meet the downloading requirement of the terminal equipment.
The embodiment of the invention provides a scheme for determining a second server, which comprises the following specific steps: before the determining the target data specified by the download request and sending a download instruction to the second server, the method further includes:
and detecting the downloading speed between the terminal equipment and a server associated with the first server, and determining that the server with the downloading speed meeting the downloading speed requirement of the terminal equipment is a second server, wherein the associated server is the server storing the first data.
There may be a plurality of servers associated with the first server, and these servers may store the first data or obtain the first data from the first server. The first server may detect the speed of sending data to the terminal device by the servers associated with the first server one by one until a server that can meet the download speed requirement of the terminal device is detected, and determine the server as the second server. The first server may also determine, according to existing information, that the servers are to be detected, and detect the speed at which the servers to be detected send data to the terminal device, respectively, so as to determine that the server with the highest download speed is the second server. The embodiment of the present invention is not limited to these two ways of determining the second server, and the embodiment of the present invention may also determine the second server in other ways.
In the embodiment of the present invention, the server that can meet the downloading requirement of the terminal device is determined to be the second server by detecting the downloading speed between the terminal device and the server associated with the first server. The method of the invention can improve the downloading speed of the user and improve the user experience.
In an embodiment of the present invention, a method for receiving the download request by the first server may be as follows:
after receiving a download request sent by a terminal device, the first server determines target data specified by the download request and sends a download instruction to a second server, including:
after receiving a download request sent by a terminal device to a target website through a browser, the first server determines target data specified by the download request and sends a download instruction to a second server, wherein the target website is operated by the first server, and the target website is not operated by the second server.
Referring to fig. 3, fig. 3 is a schematic view of a browser interface of a terminal device. The operation of clicking the download key by the user is to send a download request to the target website through the browser. For example, if the user clicks the download button on the right side of the software 1 in fig. 3, a download request is sent to the target website to request to download the software 1. The first server runs the target website and provides service for the target website. After receiving the download request sent by the target website, the first server determines target data contained in the download request and information of the terminal device needing to download the target data. The first server may determine target data specified by the download request and send a download instruction to the second server. The second server does not run the target website and cannot directly provide the downloading service for the terminal equipment.
In this embodiment of the present invention, after the terminal device sends the download request to the target website through the browser, the first server receives the download request and sends a download instruction to the second server that does not operate the target website, and instructs the second server to send the target data to the terminal device. In this way, the download speed of the terminal device is increased.
The embodiment of the invention further provides an implementation scheme for verifying the downloading authority of the terminal equipment, which comprises the following specific steps: after the first server receives a download request sent by a terminal device, before the determining target data specified by the download request and sending a download instruction to a second server, the method further includes:
the first server verifies the downloading authority of the terminal equipment;
the determining the target data specified by the download request and sending the download instruction to the second server includes:
and after the download authority passes the verification, determining the target data specified by the download request and sending a download instruction to a second server.
The first server may determine the download right of the terminal device according to the authorization information of the terminal device extracted from the download request. And after the first server determines that the terminal equipment has the corresponding downloading authority, determining the target data specified by the downloading request and sending a downloading instruction to a second server.
In the embodiment of the present invention, after verifying that the terminal device has the corresponding download permission, the first server determines the target data specified by the download request and sends the download instruction to the second server, thereby ensuring the security of resource download.
An embodiment of the present invention further provides a method for updating the first data in the second server, and specifically, the method further includes:
the first server detects whether first data in the target data are updated by using update data;
if so, sending an update instruction and the update data to the second server, wherein the update instruction instructs the second server to update the first data in the second server according to the update data.
The first data in the target data may be updated using the update data. The first server acquires the update data after detecting that the first data in the target data is updated, and sends an update instruction and the update data to the second server, wherein the update instruction instructs the second server to update the first data in the second server according to the update data.
For example, after the first server detects that the first data in the target data has the updated data, whether the first server has the updated data is checked, and if not, the updated data is acquired from other servers. And after detecting that the first data in the second server is not updated, the first server sends an update instruction and the update data to the second server.
In an embodiment of the present invention, the first server sends an update command and the update data to the second server, and instructs the second server to update the first data in the second server according to the update data. The user may be provided with the latest version of the target data.
An embodiment of the present invention further provides another resource downloading method, as shown in fig. 4, which may include:
401. the terminal equipment sends a downloading request to a first server;
the terminal device may be, for example, a mobile phone, a notebook computer, a desktop computer, a tablet computer, and the like. The terminal device may send a download request to the first server through the browser. The download request may contain information of an internet protocol address (IP) of the terminal device and information of target data to be downloaded.
402. The first server verifies the download authority of the terminal equipment, and executes 403 after the verification is passed;
the first server may be, for example, a World Wide Web (Web) server, a File Transfer Protocol (FTP) server, an enterprise critical application server, other mission critical servers, and the like. The first server may determine whether the terminal device has a download right according to the IP address of the terminal device.
403. The first server sends a download address to the terminal equipment;
the first server may transmit a download address for causing the terminal device to download the target data from the first server, or may transmit a download address for causing the terminal device to download the target data from the second server. The first server can detect whether the first server can meet the downloading requirement of the terminal equipment, and if so, a downloading address enabling the terminal equipment to download the target data from the first server is sent to the terminal equipment; if not, determining that the server which can meet the downloading requirement of the terminal equipment and stores the first data is a second server, and sending a downloading address which enables the terminal equipment to download the target data from the second server to the terminal equipment.
404. Detecting whether the target data is downloaded through the first server; if yes, execute 405, otherwise, execute 407;
the terminal device detects whether the target data is downloaded through the first server or the second server according to the download address.
405. The terminal equipment establishes communication connection with the first server through the download address;
the user can establish communication connection with the first server by clicking the download address returned by the first server.
406. The first server sends target data to the terminal equipment;
the first server may compress the target data and then send the compressed target data to the terminal device, and the terminal device receives the compressed target data.
407. The terminal equipment establishes communication connection with the second server through the download address;
the user can establish communication connection with the second server by clicking the download address returned by the first server.
408. The second server sends a download verification request to the first server, wherein the download verification request is used for requesting the first server to verify the download authority of the terminal equipment;
before the second server sends the target data to the terminal device, the first server needs to verify the download authority of the terminal device and acquire the second data. The download verification request may include second data request information requesting the first server to send the second data thereto.
409. The download authority of the terminal equipment passes the verification of the first server;
410. the first server transmitting the second data to the second server;
411. the second server combines the received second data and the first data stored by the second server into the target data;
the second server may merge the received second data and the first data stored in the second server into the target data, and then perform a corresponding compression operation on the target data.
412. And the second server sends the target data to the terminal equipment.
And the second server sends the compressed target data to the terminal equipment, and the terminal equipment receives the compressed target data.
In the embodiment of the present invention, the first server may designate, according to the download requirement of the terminal device, a server capable of meeting the download requirement of the terminal device to send the target data to the terminal device, or may not designate a server and send the target data required by the terminal device to the server by itself. By the method, the service can be better provided for the user, and the downloading requirement of the user is met.
An embodiment of the present invention further provides a server, as shown in fig. 5, including:
a receiving unit 501, configured to receive a download request sent by a terminal device;
a determining unit 502, configured to determine target data specified by the download request;
a sending unit 503, configured to send a download instruction to a second server, where the download instruction instructs the second server to send the target data to the terminal device, where the target data includes first data and second data, the first server stores the second data, and the second server stores the first data and does not store the second data;
the sending unit 503 is further configured to send the second data to the second server by the first server.
The first server may be, for example, a World Wide Web (Web) server, a File Transfer Protocol (FTP) server, an enterprise critical application server, other mission critical servers, and the like. The terminal equipment can be a desktop computer, a notebook computer, a mobile phone, a tablet computer and the like. The type of the second server may be the same as or different from that of the first server. The first server and the second server may provide services for the same website, or the second server may not provide services for the website. The download request may include identification information of the terminal device, internet protocol address (IP) information, and information of target data to be downloaded. The first server may parse the download request and extract information of target data included in the download request, thereby determining the target data required by the terminal device. The first server may also provide the identifier information or the IP information of the terminal device from the download request, and then determine the download right of the terminal device according to the identifier information or the IP information. The first server may determine, after the download permission verification passes, that a certain server that can satisfy the download requirement of the terminal device, such as download speed, download delay, and the like, is a second server. And the first server sends a downloading instruction to the second server. The download instruction may include information of the terminal device and information of the target data. The download instruction instructs the second server to send the target data to the terminal device. As shown in fig. 2, the target data includes first data and second data; the first server stores the second data, and the second server stores the first data and does not store the second data. For example, the first server may send a download instruction to the second server to instruct the second server to send the target data to the terminal device when the load is heavy or the requirement of the terminal device for downloading the target data cannot be met. The terminal device downloads the target data through the second server to meet the requirement of the terminal device on the downloading speed.
The second data is stored in the first server. The second server stores first data and does not store the second data. The second data may be, for example, encrypted data in the target data, which is changed every time of downloading. The first data may be data in the target data that is not changed, i.e., the portion of data in the target data is not changed each time it is downloaded. The first server transmits the second data to the second server, and the second server combines the received second data and the first data stored therein into the target data and transmits the target data to the terminal device. The embodiment of the present invention does not limit the types and specific contents of the first data and the second data.
The access between the servers is generally fast. When the first server cannot meet the download requirement of the terminal device, the second server may be designated to send target data to the terminal device, and data lacking in the second server may be sent to the second server.
The embodiment of the invention selects the server which can meet the downloading requirement of the terminal equipment as the second server, and the second server sends the target data to the terminal equipment to meet the downloading requirement of the terminal equipment.
The embodiment of the invention provides a scheme for determining a second server, which comprises the following specific steps: further, as shown in fig. 6, the server further includes:
a detecting unit 601, configured to detect a download speed between the terminal device and a server associated with the first server, where the associated server is a server in which the first data is stored;
the determining unit 502 is further configured to determine that a server with a download speed meeting the download speed requirement of the terminal device is a second server.
There may be a plurality of servers associated with the first server, and these servers may store the first data or obtain the first data from the first server. The first server may detect the speed of sending data to the terminal device by the servers associated with the first server one by one until a server that can meet the download speed requirement of the terminal device is detected, and determine the server as the second server. The first server may also determine, according to existing information, that the servers are to be detected, and detect the speed at which the servers to be detected send data to the terminal device, respectively, so as to determine that the server with the highest download speed is the second server. The embodiment of the present invention is not limited to these two ways of determining the second server, and the embodiment of the present invention may also determine the second server in other ways.
In the embodiment of the present invention, the server that can meet the downloading requirement of the terminal device is determined to be the second server by detecting the downloading speed between the terminal device and the server associated with the first server. The method can improve the downloading speed of the user and improve the user experience.
In an embodiment of the present invention, a method for receiving the download request by the first server may be as follows:
the receiving unit 501 is specifically configured to receive a download request sent by a terminal device to a target website through a browser, where the first server operates in the target website;
the determining unit 502 is specifically configured to determine target data specified by the download request;
the sending unit 503 is specifically configured to send a download instruction to a second server, where the second server does not run the target website.
Referring to fig. 3, fig. 3 is a schematic view of a browser interface of a terminal device. The operation of clicking the download key by the user is to send a download request to the target website through the browser. For example, if the user clicks the download button on the right side of the software 1 in fig. 3, a download request is sent to the target website to request to download the software 1. The first server runs the target website and provides service for the target website. After receiving the download request sent by the target website, the first server determines target data contained in the download request and information of the terminal device needing to download the target data. The first server may determine target data specified by the download request and send a download instruction to the second server. The second server does not run the target website and cannot directly provide the downloading service for the terminal equipment.
In this embodiment of the present invention, after the terminal device sends the download request to the target website through the browser, the first server receives the download request and sends a download instruction to the second server that does not operate the target website, and instructs the second server to send the target data to the terminal device. In this way, the download speed of the terminal device is increased.
The embodiment of the invention further provides an implementation scheme for verifying the downloading authority of the terminal equipment, which comprises the following specific steps: further, as shown in fig. 7, the server further includes:
a verification unit 701, configured to verify, by the first server, a download right of the terminal device;
the determining unit 502 is specifically configured to determine the target data specified by the download request and send a download instruction to the second server after the download permission verification is passed.
And the first server determines the downloading authority of the terminal equipment according to the authorization information of the terminal equipment extracted from the downloading request. And after the first server determines that the terminal equipment has the corresponding downloading authority, determining the target data specified by the downloading request and sending a downloading instruction to a second server.
In the embodiment of the present invention, after verifying that the terminal device has the corresponding download permission, the first server determines the target data specified by the download request and sends the download instruction to the second server, thereby ensuring the security of resource download.
The embodiment of the present invention further provides a method for updating the first data in the second server, which specifically includes: the detecting unit 601 is further configured to detect whether first data in the target data has been updated by using update data;
the sending unit 503 is further configured to send an update instruction to the second server and send the update data to the second server after the detecting unit detects that the first data in the target data is updated by the update data, where the update instruction instructs the second server to update the first data according to the update data.
The first data in the target data may be updated using the update data. The first server acquires the update data after detecting that the first data in the target data is updated, and sends an update instruction and the update data to the second server, wherein the update instruction instructs the second server to update the first data in the second server according to the update data.
For example, after the first server detects that the first data in the target data has the updated data, whether the first server has the updated data is checked, and if not, the updated data is acquired from other servers. And after detecting that the first data in the second server is not updated, the first server sends an update instruction and the update data to the second server.
In an embodiment of the present invention, the first server sends an update command and the update data to the second server, and instructs the second server to update the first data in the second server according to the update data. The user may be provided with the latest version of the target data.
Fig. 8 is a schematic diagram of a server structure provided by an embodiment of the present invention, where the server 800 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 822 (e.g., one or more processors) and a memory 832, one or more storage media 830 (e.g., one or more mass storage devices) for storing applications 842 or data 844. Memory 832 and storage medium 830 may be, among other things, transient or persistent storage. The program stored in the storage medium 830 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, a central processor 822 may be provided in communication with the storage medium 830 for executing a series of instruction operations in the storage medium 830 on the server 800.
The server 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input-output interfaces 858, and/or one or more operating systems 841, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
The central processing unit 822 is configured to, after receiving a download request sent by a terminal device, the first server determines target data specified by the download request and sends a download instruction to the second server; and sending the second data to the second server.
The first server may be, for example, a World Wide Web (Web) server, a File Transfer Protocol (FTP) server, an enterprise critical application server, other mission critical servers, and the like. The terminal equipment can be a desktop computer, a notebook computer, a mobile phone, a tablet computer and the like. The type of the second server may be the same as or different from that of the first server. The first server and the second server may provide services for the same website, or the second server may not provide services for the website. The download request may include identification information of the terminal device, internet protocol address (IP) information, and information of target data to be downloaded. The first server may parse the download request and extract information of target data included in the download request, thereby determining the target data required by the terminal device. The first server may also provide the identifier information or the IP information of the terminal device from the download request, and then determine the download right of the terminal device according to the identifier information or the IP information. The first server may determine, after the download permission verification passes, that a certain server that can satisfy the download requirement of the terminal device, such as download speed, download delay, and the like, is a second server. And the first server sends a downloading instruction to the second server. The download instruction may include information of the terminal device and information of the target data. The download instruction instructs the second server to send the target data to the terminal device. As shown in fig. 2, the target data includes first data and second data; the first server stores the second data, and the second server stores the first data and does not store the second data. For example, the first server may send a download instruction to the second server to instruct the second server to send the target data to the terminal device when the load is heavy or the requirement of the terminal device for downloading the target data cannot be met. The terminal device downloads the target data through the second server to meet the requirement of the terminal device on the downloading speed.
The second data is stored in the first server. The second server stores first data and does not store the second data. The second data may be, for example, encrypted data in the target data, which is changed every time of downloading. The first data may be data in the target data that is not changed, i.e., the portion of data in the target data is not changed each time it is downloaded. The first server transmits the second data to the second server, and the second server combines the received second data and the first data stored therein into the target data and transmits the target data to the terminal device. The embodiment of the present invention does not limit the types and specific contents of the first data and the second data.
The access between the servers is generally fast. When the first server cannot meet the download requirement of the terminal device, the second server may be designated to send target data to the terminal device, and data lacking in the second server may be sent to the second server.
The embodiment of the invention selects the server which can meet the downloading requirement of the terminal equipment as the second server, and the second server sends the target data to the terminal equipment to meet the downloading requirement of the terminal equipment.
The embodiment of the invention provides a scheme for determining a second server, which comprises the following specific steps: the cpu 822 is further configured to detect a download speed between the terminal device and a server associated with the first server before the target data specified by the download request is determined and a download instruction is sent to a second server, and determine that the server whose download speed satisfies a download speed requirement of the terminal device is the second server, where the associated server is the server in which the first data is stored.
There may be a plurality of servers associated with the first server, and these servers may store the first data or obtain the first data from the first server. The first server may detect the speed of sending data to the terminal device by the servers associated with the first server one by one until a server that can meet the download speed requirement of the terminal device is detected, and determine the server as the second server. The first server may also determine, according to existing information, that the servers are to be detected, and detect the speed at which the servers to be detected send data to the terminal device, respectively, so as to determine that the server with the highest download speed is the second server. The embodiment of the present invention is not limited to these two ways of determining the second server, and the embodiment of the present invention may also determine the second server in other ways.
In the embodiment of the present invention, the server that can meet the downloading requirement of the terminal device is determined to be the second server by detecting the downloading speed between the terminal device and the server associated with the first server. The method can improve the downloading speed of the user and improve the user experience.
In an embodiment of the present invention, a method for receiving the download request by the first server may be as follows: the central processing unit 822 is configured to, after receiving the download request sent by the terminal device, the first server determines the target data specified by the download request and sends the download instruction to the second server, where the determining includes:
after receiving a download request sent by a terminal device to a target website through a browser, the first server determines target data specified by the download request and sends a download instruction to a second server, wherein the target website is operated by the first server, and the target website is not operated by the second server.
Referring to fig. 3, fig. 3 is a schematic view of a browser interface of a terminal device. The operation of clicking the download key by the user is to send a download request to the target website through the browser. The first server runs the target website and provides service for the target website. After receiving the download request sent by the target website, the first server determines target data contained in the download request and information of the terminal device needing to download the target data. The first server may determine target data specified by the download request and send a download instruction to the second server. The second server does not run the target website and cannot directly provide the downloading service for the terminal equipment.
In this embodiment of the present invention, after the terminal device sends the download request to the target website through the browser, the first server receives the download request and sends a download instruction to the second server that does not operate the target website, and instructs the second server to send the target data to the terminal device. In this way, the download speed of the terminal device is increased.
The embodiment of the invention further provides an implementation scheme for verifying the downloading authority of the terminal equipment, which comprises the following specific steps: the central processing unit 822 is further configured to verify a download authority of the terminal device after the first server receives the download request sent by the terminal device and before the target data specified by the download request is determined and the download instruction is sent to the second server;
and after the download authority passes the verification, determining the target data specified by the download request and sending a download instruction to a second server.
And the first server determines the downloading authority of the terminal equipment according to the authorization information of the terminal equipment extracted from the downloading request. And after the first server determines that the terminal equipment has the corresponding downloading authority, determining the target data specified by the downloading request and sending a downloading instruction to a second server.
In the embodiment of the present invention, after verifying that the terminal device has the corresponding download permission, the first server determines the target data specified by the download request and sends the download instruction to the second server, thereby ensuring the security of resource download.
The embodiment of the present invention further provides a method for updating the first data in the second server, which specifically includes: the central processing unit 822 is further configured to detect whether a first data in the target data has been updated by using an update data;
if so, sending an update instruction and the update data to the second server, wherein the update instruction instructs the second server to update the first data in the second server according to the update data.
The first data in the target data may be updated using the update data. The first server acquires the update data after detecting that the first data in the target data is updated, and sends an update instruction and the update data to the second server, wherein the update instruction instructs the second server to update the first data in the second server according to the update data.
For example, after the first server detects that the first data in the target data has the updated data, whether the first server has the updated data is checked, and if not, the updated data is acquired from other servers. And after detecting that the first data in the second server is updated, the first server sends an update instruction and the update data to the second server.
In an embodiment of the present invention, the first server sends an update command and the update data to the second server, and instructs the second server to update the first data in the second server according to the update data. The user may be provided with the latest version of the target data.
The steps performed by the server in the above embodiments may be based on the server structure shown in fig. 8.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the embodiment of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for downloading resources, comprising:
after receiving a downloading request sent by terminal equipment, a first server determines target data specified by the downloading request and sends a downloading instruction to a second server, wherein the downloading instruction instructs the second server to send the target data to the terminal equipment, the target data comprises first data and second data, the second data is stored in the first server, and the first data is stored in the second server but the second data is not stored in the second server; wherein the first data is invariant data in the target data and the second data is variant data in the target data;
the first server sends the second data to the second server;
before the determining the target data specified by the download request and sending a download instruction to a second server, the method further comprises:
detecting the downloading speed between the terminal equipment and a server associated with the first server, and determining that the server with the downloading speed meeting the downloading speed requirement of the terminal equipment is a second server, wherein the associated server is the server storing the first data.
2. The method of claim 1, wherein the first server, after receiving a download request sent by a terminal device, determines target data specified by the download request and sends a download instruction to a second server, comprises:
after receiving a downloading request sent to a target website by a terminal device through a browser, the first server determines target data specified by the downloading request and sends a downloading instruction to a second server, wherein the target website is operated by the first server, and the target website is not operated by the second server.
3. The method of claim 1, wherein after the first server receives a download request sent by a terminal device, before the determining target data specified by the download request and sending a download instruction to the second server, the method further comprises:
the first server verifies the downloading authority of the terminal equipment;
the determining the target data specified by the download request and sending the download instruction to the second server comprises:
and after the download authority passes the verification, determining target data specified by the download request and sending a download instruction to a second server.
4. The method of claim 1, further comprising:
the first server detects whether first data in the target data are updated by utilizing update data;
if yes, sending an updating instruction and the updating data to the second server, wherein the updating instruction instructs the second server to update the first data in the second server according to the updating data.
5. A server, wherein the server is a first server, comprising:
a receiving unit, configured to receive a download request sent by a terminal device;
a determination unit configured to determine target data specified by the download request;
a sending unit, configured to send a download instruction to a second server, where the download instruction instructs the second server to send the target data to the terminal device, where the target data includes first data and second data, the first server stores the second data, and the second server stores the first data and does not store the second data; wherein the first data is invariant data in the target data and the second data is variant data in the target data;
the sending unit is further configured to send the second data to the second server by the first server;
the server further comprises:
a detection unit configured to detect a download speed between the terminal device and a server associated with the first server, the associated server being a server storing the first data;
the determining unit is further configured to determine that the server with the download speed meeting the download speed requirement of the terminal device is a second server.
6. The server according to claim 5,
the receiving unit is specifically configured to receive a download request sent by a terminal device to a target website through a browser, where the target website runs on the first server;
the determining unit is specifically configured to determine target data specified by the download request;
the sending unit is specifically configured to send a download instruction to a second server, where the second server does not run the target website.
7. The server according to claim 5, wherein the server further comprises:
the verification unit is used for verifying the downloading authority of the terminal equipment by the first server;
the determining unit is specifically configured to determine, after the download permission verification is passed, target data specified by the download request and send a download instruction to a second server.
8. The server according to claim 5,
the detection unit is further configured to detect, by the first server, whether first data in the target data has been updated by using update data;
the sending unit is further configured to send an update instruction to the second server and send the update data to the second server after the detecting unit detects that the first data in the target data has been updated by using the update data, where the update instruction instructs the second server to update the first data according to the update data.
CN201610959426.9A 2016-11-03 2016-11-03 Resource downloading method and server Active CN106790343B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610959426.9A CN106790343B (en) 2016-11-03 2016-11-03 Resource downloading method and server
PCT/CN2017/071202 WO2018082212A1 (en) 2016-11-03 2017-01-16 Resource download method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610959426.9A CN106790343B (en) 2016-11-03 2016-11-03 Resource downloading method and server

Publications (2)

Publication Number Publication Date
CN106790343A CN106790343A (en) 2017-05-31
CN106790343B true CN106790343B (en) 2020-05-19

Family

ID=58972392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610959426.9A Active CN106790343B (en) 2016-11-03 2016-11-03 Resource downloading method and server

Country Status (2)

Country Link
CN (1) CN106790343B (en)
WO (1) WO2018082212A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107623743A (en) * 2017-10-09 2018-01-23 山东浪潮通软信息科技有限公司 A kind of remote document access method, service end and system
CN115061939B (en) * 2022-06-30 2023-08-01 北京瑞莱智慧科技有限公司 Data set security test method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1939036A (en) * 2004-06-08 2007-03-28 国际商业机器公司 Optimized concurrent data download within a grid computing environment
CN101459678A (en) * 2009-01-08 2009-06-17 中国科学院计算技术研究所 Fusion implementation method for digital media ordering and digital resource downloading
CN101534205A (en) * 2008-03-11 2009-09-16 中国网通集团宽带业务应用国家工程实验室有限公司 Application layer multicast service realizing method, terminal and system thereof
CN103577503A (en) * 2012-08-10 2014-02-12 鸿富锦精密工业(深圳)有限公司 Cloud file storage system and method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6122660A (en) * 1999-02-22 2000-09-19 International Business Machines Corporation Method for distributing digital TV signal and selection of content
US20080034394A1 (en) * 2005-04-04 2008-02-07 Jacobs John S System and method for content distribution
CN101753603A (en) * 2008-12-02 2010-06-23 华为技术有限公司 Method, server and system for providing media content in P2P system
CN101841570B (en) * 2010-05-21 2013-05-08 北京傲天动联技术股份有限公司 File transmission method
CN103902299B (en) * 2012-12-24 2017-03-29 航天信息股份有限公司 A kind of update method and system of software version
CN103595782A (en) * 2013-11-11 2014-02-19 中安消技术有限公司 Distributed storage system and method for downloading files thereof
CN105100133A (en) * 2014-04-25 2015-11-25 广州市动景计算机科技有限公司 Resource downloading method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1939036A (en) * 2004-06-08 2007-03-28 国际商业机器公司 Optimized concurrent data download within a grid computing environment
CN101534205A (en) * 2008-03-11 2009-09-16 中国网通集团宽带业务应用国家工程实验室有限公司 Application layer multicast service realizing method, terminal and system thereof
CN101459678A (en) * 2009-01-08 2009-06-17 中国科学院计算技术研究所 Fusion implementation method for digital media ordering and digital resource downloading
CN103577503A (en) * 2012-08-10 2014-02-12 鸿富锦精密工业(深圳)有限公司 Cloud file storage system and method

Also Published As

Publication number Publication date
CN106790343A (en) 2017-05-31
WO2018082212A1 (en) 2018-05-11

Similar Documents

Publication Publication Date Title
CN108040108B (en) Communication switching method, device, coordination server and readable storage medium
US10127057B2 (en) Method and apparatus for dynamically implementing application function
US10193971B2 (en) Method, server and system for application synchronization
US10142425B2 (en) Session reliability for a redirected USB device
EP3276917B1 (en) Terminal remote assistance method, device and system
KR101281825B1 (en) Apparatus and method that enhance security using virtual interface in cloud system
CN106534268B (en) Data sharing method and device
US20180146072A1 (en) Creation of a binding based on a description associated with a server
CN110995513A (en) Data sending and receiving method in Internet of things system, Internet of things equipment and platform
CN111176794A (en) Container management method and device and readable storage medium
CN106778229B (en) VPN-based malicious application downloading interception method and system
CN107689975B (en) Cloud computing-based computer virus identification method and system
CN111597567A (en) Data processing method, data processing device, node equipment and storage medium
CN113411404A (en) File downloading method, device, server and storage medium
US20170147483A1 (en) Tracking asynchronous entry points for an application
CN111143031A (en) Method and device for changing capacity of virtual machine
CN106790343B (en) Resource downloading method and server
CN113259479A (en) Data processing method and equipment
CN111782730A (en) File uploading method and device and storage medium
CN114489690A (en) Distributed system deployment method and device, electronic equipment and storage medium
CN114327846A (en) Cluster capacity expansion method and device, electronic equipment and computer readable storage medium
WO2015003570A1 (en) Data downloading method,device and system thereof
CN111666567A (en) Detection method, device, computer program and medium for malicious modification of application program
US11777870B1 (en) Machine-learning (ML)-based systems and methods for maximizing resource utilization
EP2680135B1 (en) Methods for updating applications

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
GR01 Patent grant
GR01 Patent grant