WO2018082212A1 - Resource download method and server - Google Patents

Resource download method and server Download PDF

Info

Publication number
WO2018082212A1
WO2018082212A1 PCT/CN2017/071202 CN2017071202W WO2018082212A1 WO 2018082212 A1 WO2018082212 A1 WO 2018082212A1 CN 2017071202 W CN2017071202 W CN 2017071202W WO 2018082212 A1 WO2018082212 A1 WO 2018082212A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
data
download
terminal device
target data
Prior art date
Application number
PCT/CN2017/071202
Other languages
French (fr)
Chinese (zh)
Inventor
刘均
周杰宁
Original Assignee
深圳市元征软件开发有限公司
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 深圳市元征软件开发有限公司 filed Critical 深圳市元征软件开发有限公司
Publication of WO2018082212A1 publication Critical patent/WO2018082212A1/en

Links

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]

Definitions

  • the server further includes:
  • FIG. 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • An embodiment of the present invention provides a resource downloading method, as shown in FIG. 1 , including:
  • the server that meets the downloading requirement of the terminal device is selected as the second server, and the target data is sent to the terminal device by the second server to meet the downloading requirement of the terminal device.
  • the second data is stored in the first server.
  • the second server stores the 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 is changed each time it is downloaded.
  • the first data may be data that is unchanged in the target data, that is, the data in the target data is not changed every time the target data is downloaded.
  • the first server transmits the second data to the second server, and the second server merges the received second data and the first data stored by itself into the target data, and then sends the 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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a resource download method and a server. The method comprises: after receiving a download request sent by a terminal device, a first server determines target data specified by the download request and sends a download instruction to a second server, the download instruction being used for indicating the second server to send the target data to the terminal device, the target data comprising first data and second data, the first server storing the second data, and the second server storing the first data but not storing the second data; the first server sends the second data to the second server. The resource download method and the server provided by embodiments of the present invention are used for increasing the speed for downloading network resources and reducing server operation & maintenance costs.

Description

说明书 发明名称:一种资源下载方法、 及服务器  Instruction title: A resource downloading method, and a server
[0001] 技术领域  [0001] Technical Field
[0002] 本发明涉及网络技术领域, 尤其涉及一种资源下载方法、 及服务器。  [0002] The present invention relates to the field of network technologies, and in particular, to a resource downloading method and a server.
[0003] 背景技术 BACKGROUND
[0004] 伴随着计算机技术和网络吋代的推进, 在生产生活过程中经常会需要下载大型 软件和其它类型的网络资源。 在下载大型软件或其它大型数据吋, 通常需要架 设多个服务器共同完成下载任务, 提高用户的下载速度, 满足用户对下载速度 的需求。  [0004] With the advancement of computer technology and network generation, large software and other types of network resources are often required to be downloaded during production and life. After downloading large software or other large data, it is usually necessary to set up multiple servers to complete the download task together, improve the user's download speed, and meet the user's demand for download speed.
[0005] 目前, 下载大型软件吋通常需要架设多个服务器, 采用负载均衡技术, 将负载 (下载任务)进行平衡、 分摊到多个服务器例如文件传输协议 (File Transfer Protocol, FTP) 服务器、 企业关键应用服务器和其它关键任务服务器等上进行 执行, 从而共同完成工作任务。 通过负载均衡技术可以将下载任务分给多个服 务器共同完成, 提高下载速度。 采用负载均衡技术需要安装负载均衡设备, 成 本高, 实现过程复杂。  [0005] At present, downloading large software usually requires setting up multiple servers, using load balancing technology to balance the load (download task) and distribute it to multiple servers such as File Transfer Protocol (FTP) servers, enterprise key Execute on the application server and other mission-critical servers to complete the work tasks together. Load balancing technology can be used to distribute download tasks to multiple servers to improve download speed. Load balancing technology requires the installation of load balancing equipment, which is costly and complex.
[0006] 上述技术方案中服务器需要架设负载均衡, 运营和维护成本比较高。  [0006] In the above technical solution, the server needs to set load balancing, and the operation and maintenance costs are relatively high.
[0007] 发明内容  SUMMARY OF THE INVENTION
[0008] 本发明实施例提供了一种资源下载方法、 及服务器, 用于提高下载网络资源的 速度, 减少服务器运营和维护的成本。  [0008] Embodiments of the present invention provide a resource downloading method and a server, which are used to improve the speed of downloading network resources and reduce the cost of server operation and maintenance.
[0009] 一方面本发明实施例提供了一种资源下载方法, 包括: An embodiment of the present invention provides a resource downloading method, including:
[0010] 第一服务器在接收到终端设备发送的下载请求后, 确定所述下载请求所指定的 目标数据并向第二服务器发送下载指令, 所述下载指令指示所述第二服务器向 所述终端设备发送所述目标数据, 所述目标数据包括第一数据和第二数据, 所 述第一服务器存储有所述第二数据, 所述第二服务器存储有所述第一数据且未 存储所述第二数据;  [0010] after receiving the download request sent by the terminal device, the first server determines the target data specified by the download request and sends a download instruction to the second server, where the download command instructs the second server to the terminal The device sends the target data, 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;
[0011] 所述第一服务器向所述第二服务器发送所述第二数据。  [0011] The first server sends the second data to the second server.
[0012] 在一个可选的实现方式中, 在所述确定所述下载请求所指定的目标数据并向第 二服务器发送下载指令之前, 所述方法还包括: [0012] In an optional implementation manner, determining, by the determining, the target data specified by the download request Before the second server sends the download instruction, the method further includes:
[0013] 检测所述终端设备与所述第一服务器相关联的服务器之间的下载速度, 确定下 载速度满足所述终端设备的下载速度需求的服务器为第二服务器, 所述相关联 的服务器是存储有所述第一数据的服务器。  [0013] detecting a download speed between the terminal device and a server associated with the first server, determining that a server whose download speed meets a download speed requirement of the terminal device is a second server, and the associated server is A server storing the first data.
[0014] 在一个可选的实现方式中, 所述第一服务器在接收到终端设备发送的下载请求 后, 确定所述下载请求所指定的目标数据并向第二服务器发送下载指令包括: [0015] 所述第一服务器在接收到终端设备通过浏览器向目标网站发送的下载请求后, 确定所述下载请求所指定的目标数据并向第二服务器发送下载指令, 所述第一 服务器运行有所述目标网站, 所述第二服务器未运行所述目标网站。 [0014] In an optional implementation manner, after receiving the download request sent by the terminal device, the first server determines target data specified by the download request and sends a download instruction to the second server, including: [0015] After receiving the download request sent by the terminal device to the target website by using the browser, the first server determines the target data specified by the download request and sends a download instruction to the second server, where the first server runs The target website, the second server is not running the target website.
[0016] 在一个可选的实现方式中, 在第一服务器接收到终端设备发送的下载请求之后[0016] In an optional implementation manner, after the first server receives the download request sent by the terminal device,
, 在所述确定所述下载请求所指定的目标数据并向第二服务器发送下载指令之 前, 所述方法还包括: Before the determining the target data specified by the download request and sending the download instruction to the second server, the method further includes:
[0017] 所述第一服务器验证所述终端设备的下载权限; [0017] the first server verifies download permission of the terminal device;
[0018] 所述确定所述下载请求所指定的目标数据并向第二服务器发送下载指令包括: [0019] 在所述下载权限验证通过后, 确定所述下载请求所指定的目标数据并向第二服 务器发送下载指令。  [0018] the determining the target data specified by the download request and sending the download instruction to the second server includes: [0019] after the download authority verification is passed, determining target data specified by the download request and The second server sends a download instruction.
[0020] 在一个可选的实现方式中, 所述方法还包括: [0020] In an optional implementation manner, the method further includes:
[0021] 所述第一服务器检测所述目标数据中的第一数据是否已利用更新数据进行更新  [0021] the first server detects whether the first data in the target data has been updated with the update data
[0022] 若是, 向所述第二服务器发送更新指令和所述更新数据, 所述更新指令指示所 述第二服务器根据所述更新数据对所述第二服务器中的第一数据进行更新。 [0022] If yes, sending an update instruction and the update data to the second server, the update instruction instructing the second server to update the first data in the second server according to the update data.
[0023] 二方面本发明实施例还提供了一种服务器, 包括: [0023] The second embodiment of the present invention further provides a server, including:
[0024] 接收单元, 用于接收终端设备发送的下载请求; [0024] a receiving unit, configured to receive a download request sent by the terminal device;
[0025] 确定单元, 用于确定所述下载请求所指定的目标数据; [0025] a determining unit, configured to determine target data specified by the download request;
[0026] 发送单元, 用于向第二服务器发送下载指令, 所述下载指令指示所述第二服务 器向所述终端设备发送所述目标数据, 所述目标数据包括第一数据和第二数据 , 所述第一服务器存储有所述第二数据, 所述第二服务器存储有所述第一数据 且未存储所述第二数据; [0027] 所述发送单元, 还用于所述第一服务器向所述第二服务器发送所述第二数据。 a sending unit, configured to send a download instruction to the second server, where the downloading 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; [0027] The sending unit is further configured to send, by the first server, the second data to the second server.
[0028] 在一个可选的实现方式中, 所述服务器还包括: [0028] In an optional implementation manner, the server further includes:
[0029] 检测单元, 用于检测所述终端设备与所述第一服务器相关联的服务器之间的下 载速度, 所述相关联的服务器是存储有所述第一数据的服务器;  [0029] a detecting unit, 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 that stores the first data;
[0030] 所述确定单元, 还用于确定下载速度满足所述终端设备的下载速度需求的服务 器为第二服务器。  [0030] The determining unit is further configured to determine that the server whose download speed meets the download speed requirement of the terminal device is the second server.
[0031] 在一个可选的实现方式中, 所述接收单元, 具体用于接收终端设备通过浏览器 向目标网站发送的下载请求;  [0031] In an optional implementation manner, the receiving unit is specifically configured to receive a download request sent by the terminal device to the target website by using a browser;
[0032] 所述确定单元, 具体用于确定所述下载请求所指定的目标数据;  [0032] the determining unit is specifically configured to determine target data specified by the download request;
[0033] 所述发送单元, 具体用于向第二服务器发送下载指令, 所述第二服务器未运行 所述目标网站。  [0033] The sending unit is specifically configured to send a download instruction to the second server, where the second server does not run the target website.
[0034] 在一个可选的实现方式中, 所述服务器还包括:  [0034] In an optional implementation manner, the server further includes:
[0035] 验证单元, 用于所述第一服务器验证所述终端设备的下载权限;  [0035] a verification unit, configured to verify, by the first server, a download permission of the terminal device;
[0036] 所述确定单元, 具体用于在所述下载权限验证通过后, 确定所述下载请求所指 定的目标数据并向第二服务器发送下载指令。  [0036] The determining unit is specifically configured to: after the verification of the download authority passes, determine target data specified by the download request and send a download instruction to the second server.
[0037] 在一个可选的实现方式中, 所述检测单元, 还用于所述第一服务器检测所述目 标数据中的第一数据是否已利用更新数据进行更新;  [0037] In an optional implementation, the detecting unit is further configured to: use the first server to detect whether the first data in the target data has been updated by using updated data;
[0038] 所述发送单元, 还用于在所述检测单元检测到所述目标数据中的第一数据已利 用更新数据进行更新之后, 向所述第二服务器发送更新指令, 并将所述更新数 据发送给所述第二服务器, 所述更新指令指示所述第二服务器根据所述更新数 据对所述第一数据进行更新。  [0038] the sending unit is further configured to: after the detecting unit detects that the first data in the target data has been updated by using the update data, send an update instruction to the second server, and send the update The data is sent to the second server, and the update instruction instructs the second server to update the first data according to the update data.
[0039] 三方面本发明实施例还提供了一种服务器, 包括: 处理器和存储器, 其中, 所 述处理器用于执行本发明实施例提供的任意一项的方法。  The embodiment of the present invention further provides a server, including: a processor and a memory, where the processor is used to execute the method of any one of the embodiments of the present invention.
[0040] 从以上技术方案可以看出, 本发明实施例具有以下优点: 当终端设备通过第一 服务器下载目标数据的速度不能满足该终端设备对下载速度的需求吋, 上述第 一服务器将该目标数据中未存储在第二服务器的第二数据发送给该第二服务器 , 该第二服务器将该第二数据和它存储的第一数据合并为目标数据后发送给该 终端设备。 该目标数据包括第一数据和第二数据。 通过上述技术方案可以提高 用户下载网络资源的速度, 并且减少服务器运营和维护的成本。 [0040] It can be seen from the above technical solution that the embodiment of the present invention has the following advantages: When the speed at which the terminal device downloads the target data through the first server cannot meet the requirement of the download speed of the terminal device, the first server targets the target The second data that is not stored in the second server in the data is sent to the second server, and the second server merges the second data and the first data it stores into the target data and sends the data to the terminal device. The target data includes first data and second data. Through the above technical solutions can be improved The speed at which users download network resources and reduce the cost of server operations and maintenance.
[0041] 附图说明 BRIEF DESCRIPTION OF THE DRAWINGS
[0042] 图 1为本发明实施例一种资源下载方法流程示意图;  1 is a schematic flowchart of a resource downloading method according to an embodiment of the present invention;
[0043] 图 2为本发明实施例中目标数据的存储示意图; 2 is a schematic diagram of storage of target data in an embodiment of the present invention;
[0044] 图 3为本发明实施例终端设备的浏览器界面的示意图; 3 is a schematic diagram of a browser interface of a terminal device according to an embodiment of the present invention;
[0045] 图 4为本发明实施例又一种资源下载方法流程示意图; 4 is a schematic flowchart of another resource downloading method according to an embodiment of the present invention;
[0046] 图 5为本发明实施例服务器结构示意图; 5 is a schematic structural diagram of a server according to an embodiment of the present invention;
[0047] 图 6为本发明实施例服务器结构示意图; 6 is a schematic structural diagram of a server according to an embodiment of the present invention;
[0048] 图 7为本发明实施例服务器结构示意图; 7 is a schematic structural diagram of a server according to an embodiment of the present invention;
[0049] 图 8为本发明实施例服务器结构示意图。 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
[0050] 具体实施方式 DETAILED DESCRIPTION
[0051] 本发明的说明书和权利要求书及上述附图中的术语"第一"、 "第二 "等是用于区 别不同的对象, 而不是用于描述特定顺序。 此外, 术语"包括"和"具有"以及它们 任何变形, 意图在于覆盖不排他的包含。 例如包含了一系列步骤或单元的过程 、 方法、 系统、 产品或设备没有限定于已列出的步骤或单元, 而是可选地还包 括没有列出的步骤或单元, 或可选地还包括对于这些过程、 方法或设备固有的 其他步骤或单元。  The terms "first", "second" and the like in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, and are not intended to describe a specific order. Furthermore, the terms "comprising" and "having" and "having" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units not listed, or, optionally, Other steps or units inherent to these processes, methods or devices.
[0052] 本发明实施例提供了一种资源下载方法, 如图 1所示, 包括:  An embodiment of the present invention provides a resource downloading method, as shown in FIG. 1 , including:
[0053] 101、 第一服务器在接收到终端设备发送的下载请求后, 确定上述下载请求所 指定的目标数据并向第二服务器发送下载指令。  [0053] 101. After receiving the download request sent by the terminal device, the first server determines the target data specified by the download request and sends a download command to the second server.
[0054] 本发明实施例中, 上述下载指令指示上述第二服务器向上述终端设备发送上述 目标数据, 上述目标数据包括第一数据和第二数据, 上述第一服务器存储有上 述第二数据, 上述第二服务器存储有上述第一数据且未存储上述第二数据。  [0054] In the embodiment of the present invention, the downloading instruction instructs the second server to send the target data to the terminal device, the target data includes first data and second data, and the first server stores the second data, where The second server stores the first data and does not store the second data.
[0055] 可以理解的是, 上述目标数据是用户需要下载的数据, 例如可以是软件、 文档 、 音频文件等。 上述第一服务器例如可以是网络服务器、 FTP服务器、 企业关键 应用服务器和其它关键任务服务器等。 上述终端设备可以是台式电脑、 笔记本 电脑、 手机、 平板电脑等。  [0055] It can be understood that the above target data is data that the user needs to download, and may be, for example, software, documents, audio files, and the like. The first server may be, for example, a web server, an FTP server, an enterprise critical application server, and other mission-critical servers. The above terminal device may be a desktop computer, a notebook computer, a mobile phone, a tablet computer or the like.
[0056] 可以理解的是, 上述第二服务器的类型可以和上述第一服务器相同, 也可以不 同, 本发明实施例不作限定。 上述第一服务器和第二服务器可以为相同的网站 提供服务, 上述第二服务器也可以不为网站提供服务。 上述下载请求可以包含 上述终端设备的标识信息、 网际协议 (Internet Protocol, IP) 地址信息和需要下 载的目标数据的信息。 上述第一服务器可以解析上述下载请求并提取出该下载 请求中包含的目标数据的信息, 进而确定上述终端设备所需的目标数据。 上述 第一服务器也可以从该下载请求中提出上述终端设备的标识信息或 IP地址信息, 再根据该标识信息或 IP地址信息确定上述终端设备的下载权限。 上述第一服务器 可以在上述下载权限验证通过后, 确定能够满足上述终端设备的下载需求例如 下载速度、 下载吋延等的某个服务器为第二服务器。 上述第一服务器向上述第 二服务器发送下载指令。 上述下载指令可以包含上述终端设备的信息和上述目 标数据的信息。 上述下载指令指示上述第二服务器向上述终端设备发送上述目 标数据。 [0056] It can be understood that the type of the second server may be the same as the first server, or may not The embodiments of the present invention are not limited. The first server and the second server may provide services for the same website, and the second server may not provide services for the website. The above download request may include identification information of the terminal device, Internet Protocol (IP) address information, and information of target data to be downloaded. The first server may parse the download request and extract information of the target data included in the download request, thereby determining target data required by the terminal device. The first server may also provide the identifier information or the IP address information of the terminal device from the download request, and determine the download authority of the terminal device according to the identifier information or the IP address information. The first server may determine, after the verification of the download authority is passed, that the server that satisfies the download requirement of the terminal device, such as the download speed, the download delay, and the like, is the second server. The first server sends a download command to the second server. The download instruction may include information of the terminal device and information of the target data. The downloading instruction instructs the second server to send the target data to the terminal device.
[0057] 如图 2所示, 上述目标数据包括第一数据和第二数据; 上述第一服务器存储有 上述第二数据, 上述第二服务器存储有上述第一数据且未存储上述第二数据。 举例来说, 上述第一服务器可以在负载较重或者不能满足该终端设备的下载目 标数据的需求吋, 向上述第二服务器发送下载指令指示上述第二服务器向上述 终端设备发送上述目标数据。 上述终端设备通过上述第二服务器下载上述目标 数据可以满足该终端设备对下载速度的需求。  [0057] 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 send the target data to the terminal device after the load is heavy or cannot meet the requirement of the download target data of the terminal device. The terminal device downloading the target data by using the foregoing second server may satisfy the requirement of the terminal device for the download speed.
[0058] 102、 上述第一服务器向上述第二服务器发送上述第二数据。 [0058] 102. The first server sends the second data to the second server.
[0059] 本发明实施例中, 上述第二数据存储在上述第一服务器中。 上述第二服务器存 储有第一数据且未存储上述第二数据。 上述第二数据例如可以是目标数据中的 加密数据, 每次下载吋上述目标数据中的加密数据可以是变化的。 上述第一数 据可以是目标数据中不变的数据, 即每次下载吋目标数据中的这一部分数据都 不改变。 上述第一服务器将上述第二数据发送上述第二服务器, 上述第二服务 器将接收到的上述第二数据和它本身存储的上述第一数据合并为上述目标数据 后, 发送给上述终端设备。 本发明实施例并不限制第一数据和第二数据的类型 和具体内容。 In the embodiment of the present invention, the second data is stored in the first server. The second server stores the 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 each time the download is performed. The first data may be data that is unchanged in the target data, that is, the data in the target data is not changed every time the target data is downloaded. The first server transmits the second data to the second server, and the second server merges the received second data and the first data stored by itself into the target data, and then sends the 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.
[0060] 服务器之间的访问, 一般速度都很快。 当上述第一服务器不能满足该终端设备 的下载需求吋, 可以指定上述第二服务器向该终端设备发送目标数据, 并将上 述第二服务器缺少的数据发送给上述第二服务器。 通过这种方式可以提高上述 终端设备下载上述目标数据的速度。 [0060] Access between servers is generally fast. When the first server cannot satisfy the terminal device The downloading request may specify that the second server sends the target data to the terminal device, and sends the data that is missing by the second server to the second server. In this way, the speed at which the above terminal device downloads the target data can be improved.
[0061] 本发明实施例选择可以满足上述终端设备下载需求的服务器为第二服务器, 通 过该第二服务器向该终端设备发送目标数据, 满足该终端设备的下载需求。  [0061] The embodiment of the present invention selects a server that can meet the downloading requirement of the terminal device as a second server, and sends the target data to the terminal device through the second server to satisfy the downloading requirement of the terminal device.
[0062] 本发明实施例提供了一种确定第二服务器的方案, 具体如下: 在上述确定上述 下载请求所指定的目标数据并向第二服务器发送下载指令之前, 上述方法还包 括:  The embodiment of the present invention provides a solution for determining a second server, which is specifically as follows: Before the foregoing determining the target data specified by the download request and sending the download instruction to the second server, the method further includes:
[0063] 检测上述终端设备与上述第一服务器相关联的服务器之间的下载速度, 确定下 载速度满足上述终端设备的下载速度需求的服务器为第二服务器, 上述相关联 的服务器是存储有上述第一数据的服务器。  [0063] detecting a download speed between the terminal device and a server associated with the first server, determining that the server whose download speed meets the download speed requirement of the terminal device is a second server, and the associated server stores the foregoing A data server.
[0064] 与上述第一服务器相关联的服务器可以有多个, 这些服务器可以存储有第一数 据也可以从上述第一服务器获取上述第一数据。 上述第一服务器可以逐个检测 与上述第一服务器相关联的服务器向该终端设备发送数据的速度, 直到检测到 可以满足该终端设备下载速度需求的服务器, 将该服务器确定为第二服务器。 上述第一服务器也可以根据已有的信息确定几个服务器为待检测的服务器, 分 别检测这几个待检测的服务器向该终端设备发送数据的速度, 可以确定下载速 度最快的服务器为第二服务器。 本发明实施例不限于这两种确定第二服务器的 方式, 本发明实施例也可以采用其他方式确定第二服务器。  [0064] There may be a plurality of servers associated with the first server, and the servers may store the first data or may acquire the first data from the first server. The first server may detect the speed at which the server associated with the first server sends data to the terminal device one by one until it detects a server that can satisfy the download speed requirement of the terminal device, and determines the server as the second server. The first server may also determine that several servers are the servers to be detected according to the existing information, and respectively detect the speed at which the servers to be detected send data to the terminal device, and determine that the server with the fastest download speed is the second. server. The embodiment of the present invention is not limited to the two methods for determining the second server. The embodiment of the present invention may also determine the second server by other means.
[0065] 本发明实施例中, 通过检测上述终端设备与上述第一服务器相关联的服务器之 间的下载速度, 确定可以满足该终端设备下载需求的服务器为第二服务器。 本 发明实施的方法可以提高用户的下载速度, 改善用户体验。  In the embodiment of the present invention, by detecting a download speed between the terminal device and a server associated with the first server, the server that can satisfy the download requirement of the terminal device is determined to be the second server. The method implemented by the present invention can improve the download speed of the user and improve the user experience.
[0066] 本发明实施例中, 上述第一服务器接收上述下载请求的方法可以如下:  [0066] In the embodiment of the present invention, the method for receiving the foregoing download request by the first server may be as follows:
[0067] 上述第一服务器在接收到终端设备发送的下载请求后, 确定上述下载请求所指 定的目标数据并向第二服务器发送下载指令包括:  [0067] 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 command to the second server, including:
[0068] 上述第一服务器在接收到终端设备通过浏览器向目标网站发送的下载请求后, 确定上述下载请求所指定的目标数据并向第二服务器发送下载指令, 上述第一 服务器运行有上述目标网站, 上述第二服务器未运行上述目标网站。 [0069] 请参阅图 3, 图 3是终端设备的浏览器界面的示意图。 用户点击下载按键的操作 就是通过浏览器向目标网站发送下载请求。 举例来说, 若用户点击了图 3中软件 1右侧的下载按键, 就是向目标网站发送下载请求, 请求下载软件 1。 上述第一 服务器运行有上述目标网站, 为上述目标网站提供服务。 上述第一服务器在接 收到上述目标网站发送的下载请求后, 确定该下载请求包含的目标数据和需要 下载该目标数据的终端设备的信息。 上述第一服务器可以确定上述下载请求所 指定的目标数据并向上述第二服务器发送下载指令。 上述第二服务器未运行上 述目标网站, 不能直接为该终端设备提供下载服务。 [0068] after receiving the download request sent by the terminal device to the target website through the browser, the first server determines the target data specified by the download request and sends a download instruction to the second server, where the first server runs the target The website, the above second server is not running the above target website. Please refer to FIG. 3. FIG. 3 is a schematic diagram of a browser interface of the terminal device. The user clicks the download button 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, it sends a download request to the target website, requesting to download the software 1. The first server runs the above target website to provide services for the target website. After receiving the download request sent by the target website, the first server determines the target data included in the download request and the information of the terminal device that needs 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 foregoing second server does not run the target website, and cannot directly provide a download service for the terminal device.
[0070] 本发明实施例中, 上述终端设备通过浏览器向目标网站发送的下载请求后, 上 述第一服务器接收该下载请求并向未运行该目标网站的第二服务器发送下载指 令, 指示上述第二服务器向该终端设备发送目标数据。 通过这种方式, 提高该 终端设备的下载速度。  [0070] In the embodiment of the present invention, after the terminal device sends a download request to the target website by using the browser, the first server receives the download request and sends a download command to the second server that does not run the target website, indicating the foregoing The second server transmits the target data to the terminal device. In this way, the download speed of the terminal device is increased.
[0071] 本发明实施例进一步提供了验证终端设备下载权限的实现方案, 具体如下: 在 上述第一服务器接收到终端设备发送的下载请求之后, 在上述确定上述下载请 求所指定的目标数据并向第二服务器发送下载指令之前, 上述方法还包括: [0071] The embodiment of the present invention further provides an implementation scheme for verifying the download permission of the terminal device, which is specifically as follows: after the first server receives the download request sent by the terminal device, determining the target data specified by the download request Before the second server sends the download instruction, the foregoing method further includes:
[0072] 上述第一服务器验证上述终端设备的下载权限; [0072] the first server verifies the download authority of the terminal device;
[0073] 上述确定上述下载请求所指定的目标数据并向第二服务器发送下载指令包括: [0074] 在上述下载权限验证通过后, 确定上述下载请求所指定的目标数据并向第二服 务器发送下载指令。  [0073] the determining the target data specified by the download request and sending the download instruction to the second server includes: [0074] after the download authority verification is passed, determining the target data specified by the download request and sending the download to the second server instruction.
[0075] 上述第一服务器可以根据从上述下载请求中提取出的该终端设备的授权信息, 确定该终端设备的下载权限。 在上述第一服务器确定该终端设备具备相应的下 载权限后, 确定上述下载请求所指定的目标数据并向第二服务器发送下载指令  [0075] The first server may determine the download authority of the terminal device according to the authorization information of the terminal device extracted from the download request. After the first server determines that the terminal device has the corresponding download permission, determines the target data specified by the download request and sends a download instruction to the second server.
[0076] 本发明实施例中, 上述第一服务器在验证上述终端设备具备相应的下载权限后 , 才确定上述下载请求所指定的目标数据并向第二服务器发送下载指令, 保证 了资源下载的安全性。 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 a download instruction to the second server, thereby ensuring the security of resource downloading. Sex.
[0077] 本发明实施例还进一步提供了更新上述第二服务器中的第一数据的方法, 具体 如下, 上述方法还包括: [0078] 上述第一服务器检测上述目标数据中的第一数据是否已利用更新数据进行更新 [0077] The embodiment of the present invention further provides a method for updating the first data in the foregoing second server, and the method further includes the following: [0078] the first server detects whether the first data in the target data has been updated with the update data
[0079] 若是, 向上述第二服务器发送更新指令和上述更新数据, 上述更新指令指示上 述第二服务器根据上述更新数据对上述第二服务器中的第一数据进行更新。 [0079] If yes, sending an update command and the update data to the second server, the update command instructing the second server to update the first data in the second server according to the update data.
[0080] 上述目标数据中的第一数据可以利用更新数据进行更新。 上述第一服务器在检 测到上述目标数据中的第一数据进行更新后, 获取上述更新数据, 并向上述第 二服务器发送更新指令和上述更新数据, 上述更新指令指示上述第二服务器根 据上述更新数据对上述第二服务器中的第一数据进行更新。  [0080] The first data in the target data may be updated using the update data. After detecting the first data in the target data, the first server acquires the update data, and sends an update command and the update data to the second server, where the update command instructs the second server to update the data according to the Updating the first data in the second server.
[0081] 举例来说, 当上述第一服务器检测到上述目标数据中的第一数据有更新数据后 , 査看上述第一服务器是否有该更新数据, 若否, 从其他服务器获取该更新数 据。 上述第一服务器检测到上述第二服务器中的第一数据未进行更新后, 向上 述第二服务器发送更新指令和上述更新数据。  For example, after the first server detects that the first data in the target data has update data, it checks whether the first server has the update data, and if not, acquires the update data from another server. After detecting that the first data in the second server is not updated, the first server sends the update command and the update data to the second server.
[0082] 本发明实施例中, 上述第一服务器向上述第二服务器发送更新指令和上述更新 数据, 指示上述第二服务器根据上述更新数据对上述第二服务器中的第一数据 进行更新。 可以为用户提供最新版本的目标数据。  In the 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 can be provided with the latest version of the target data.
[0083] 本发明实施例还提供了另一种资源下载方法, 如图 4所示, 可以包括:  The embodiment of the present invention further provides another resource downloading method. As shown in FIG. 4, the method may include:
[0084] 401、 终端设备向第一服务器发送下载请求;  [0084] 401. The terminal device sends a download request to the first server.
[0085] 终端设备例如可以是手机、 笔记本电脑、 台式电脑、 平板电脑等。 该终端设备 可以通过浏览器向该第一服务器发送下载请求。 该下载请求可以包含该终端设 备的 IP地址信息和需要下载的目标数据的信息。  [0085] The terminal device may be, for example, a mobile phone, a notebook computer, a desktop computer, a tablet computer, or the like. The terminal device can send a download request to the first server through a browser. The download request may contain the IP address information of the terminal device and the information of the target data to be downloaded.
[0086] 402、 上述第一服务器验证该终端设备的下载权限, 验证通过后执行 403;  [0086] 402, the first server to verify the download authority of the terminal device, after the verification is passed 403;
[0087] 上述第一服务器例如可以是网络服务器、 FTP服务器、 企业关键应用服务器和 其它关键任务服务器等。 上述第一服务器可以根据该终端设备的 IP地址确定该终 端设备是否有下载权限。  [0087] The first server may be, for example, a web server, an FTP server, an enterprise critical application server, and other mission-critical servers. The first server may determine whether the terminal device has download permission according to the IP address of the terminal device.
[0088] 403、 上述第一服务器向该终端设备发送下载地址;  [0088] 403. The first server sends a download address to the terminal device.
[0089] 上述第一服务器可以发送使得该终端设备从上述第一服务器下载目标数据的下 载地址, 也可以发送使得该终端设备从第二服务器下载目标数据的下载地址。 上述第一服务器可以检测它是否可以满足该终端设备的下载需求, 若是, 则向 该终端设备发送使得该终端设备从第一服务器下载目标数据的下载地址; 若否 , 则确定可以满足该终端设备下载需求且存储有第一数据的服务器为第二服务 器, 向该终端设备发送使得该终端设备从上述第二服务器下载目标数据的下载 地址。 [0089] The first server may send a download address that causes the terminal device to download target data from the first server, and may also send a download address that causes the terminal device to download target data from the second server. The first server can detect whether it can meet the downloading requirement of the terminal device, and if so, The terminal device sends a download address that causes the terminal device to download target data from the first server; if not, determines that the server that can satisfy the downloading requirement of the terminal device and stores the first data is the second server, and sends the server to the terminal device The terminal device downloads a download address of the target data from the second server.
[0090] 404、 检测是否通过上述第一服务器下载上述目标数据; 若是, 执行 405, 否则 , 执行 407;  [0090] 404, detecting whether the target data is downloaded by the first server; if yes, executing 405, otherwise, executing 407;
[0091] 该终端设备根据上述下载地址检测通过上述第一服务器还是上述第二服务器下 载上述目标数据。  [0091] The terminal device detects whether the target data is downloaded by the first server or the second server according to the download address.
[0092] 405、 该终端设备通过上述下载地址与上述第一服务器建立通信连接;  [0092] 405. The terminal device establishes a communication connection with the first server by using the foregoing download address.
[0093] 用户通过点击上述第一服务器返回的下载地址的操作就可以与上述第一服务器 建立通信连接。  [0093] The user can establish a communication connection with the first server by clicking the operation of the download address returned by the first server.
[0094] 406、 上述第一服务器向该终端设备发送目标数据;  [0094] 406. The first server sends the target data to the terminal device.
[0095] 上述第一服务器可以将上述目标数据进行压缩后发送给该终端设备, 该终端设 备接收压缩后的目标数据。  [0095] The first server may compress the target data and send the target data to the terminal device, and the terminal device receives the compressed target data.
[0096] 407、 该终端设备通过上述下载地址与上述第二服务器建立通信连接; [0096] 407. The terminal device establishes a communication connection with the second server by using the foregoing download address.
[0097] 用户通过点击上述第一服务器返回的下载地址的操作就可以与上述第二服务器 建立通信连接。 [0097] The user can establish a communication connection with the second server by clicking the operation of the download address returned by the first server.
[0098] 408、 上述第二服务器向上述第一服务器发送下载验证请求, 该下载验证请求 用于请求上述第一服务器验证该终端设备的下载权限;  [0098] 408. The second server sends a download verification request to the first server, where the download verification request is used to request the first server to verify the download permission of the terminal device.
[0099] 上述第二服务器在向该终端设备发送上述目标数据之前, 需要通过上述第一服 务器验证该终端设备的下载权限和获取上述第二数据。 该下载验证请求可以包 含第二数据请求信息, 请求上述第一服务器向其发送上述第二数据。 [0099] Before transmitting the target data to the terminal device, the second server needs to verify the download authority of the terminal device and obtain the second data by using the first server. The download verification request may include second data request information, requesting the first server to send the second data to the first server.
[0100] 409、 该终端设备的下载权限通过上述第一服务器的验证; [0100] 409. The download permission of the terminal device is verified by the first server.
[0101] 410、 上述第一服务器向上述第二服务器发送上述第二数据; [0101] 410. The first server sends the second data to the second server.
[0102] 411、 上述第二服务器将接收到的上述第二数据和它本身存储的第一数据合并 为上述目标数据; [0102] 411. The foregoing second server merges the received second data and the first data stored by itself into the target data.
[0103] 上述第二服务器可以先将接收到的上述第二数据和它本身存储的第一数据合并 为上述目标数据, 再对目标数据采取相应的压缩操作。 [0104] 412、 上述第二服务器向该终端设备发送上述目标数据。 [0103] The second server may first merge the received second data and the first data stored by itself into the target data, and then perform a corresponding compression operation on the target data. [0104] 412. The foregoing second server sends the target data to the terminal device.
[0105] 上述第二服务器将压缩后的目标数据发送给该终端设备, 该终端设备接收压缩 后的目标数据。  [0105] The second server sends the compressed target data to the terminal device, and the terminal device receives the compressed target data.
[0106] 本发明实施例中第一服务器根据该终端设备的下载需求可以指定能够满足该终 端设备的下载需求的服务器向该终端设备发送上述目标数据, 也可以不指定服 务器, 自行向其发送该终端设备所需的目标数据。 通过这种方式可以更好的为 用户提供服务, 满足用户的下载需求。  [0106] In the embodiment of the present invention, the first server may specify that the server that meets the download requirement of the terminal device sends the target data to the terminal device according to the download requirement of the terminal device, or may send the target data to the terminal device without specifying the server. Target data required by the terminal device. In this way, the user can be better served to meet the user's download needs.
[0107] 本发明实施例还提供了一种服务器, 如图 5所示, 包括: [0107] The embodiment of the present invention further provides a server, as shown in FIG. 5, including:
[0108] 接收单元 501, 用于接收终端设备发送的下载请求; [0108] The receiving unit 501 is configured to receive a download request sent by the terminal device.
[0109] 确定单元 502, 用于确定上述下载请求所指定的目标数据; [0109] determining unit 502, configured to determine target data specified by the download request;
[0110] 发送单元 503, 用于向第二服务器发送下载指令, 上述下载指令指示上述第二 服务器向上述终端设备发送上述目标数据, 上述目标数据包括第一数据和第二 数据, 上述第一服务器存储有上述第二数据, 上述第二服务器存储有上述第一 数据且未存储上述第二数据; [0110] The sending unit 503 is configured to send a download instruction to the second server, where the downloading 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 Storing the second data, the second server storing the first data and not storing the second data;
[0111] 上述发送单元 503, 还用于上述第一服务器向上述第二服务器发送上述第二数 据。 [0111] The sending unit 503 is further configured to send, by the first server, the second data to the second server.
[0112] 上述第一服务器例如可以是网络服务器、 FTP服务器、 企业关键应用服务器和 其它关键任务服务器等。 上述终端设备可以是台式电脑、 笔记本电脑、 手机、 平板电脑等。 上述第二服务器的类型可以和上述第一服务器相同, 也可以不同 。 上述第一服务器和第二服务器可以为相同的网站提供服务, 上述第二服务器 也可以不为网站提供服务。 上述下载请求可以包含上述终端设备的标识信息、 IP 地址信息和需要下载的目标数据的信息。 上述第一服务器可以解析上述下载请 求并提取出该下载请求中包含的目标数据的信息, 进而确定上述终端设备所需 的目标数据。 上述第一服务器也可以从该下载请求中提出上述终端设备的标识 信息或 IP地址信息, 再根据该标识信息或 IP地址信息确定上述终端设备的下载权 限。 上述第一服务器可以在上述下载权限验证通过后, 确定能够满足上述终端 设备的下载需求例如下载速度、 下载吋延等的某个服务器为第二服务器。 上述 第一服务器向上述第二服务器发送下载指令。 上述下载指令可以包含上述终端 设备的信息和上述目标数据的信息。 上述下载指令指示上述第二服务器向上述 终端设备发送上述目标数据。 如图 2所示, 上述目标数据包括第一数据和第二数 据; 上述第一服务器存储有上述第二数据, 上述第二服务器存储有上述第一数 据且未存储上述第二数据。 举例来说, 上述第一服务器可以在负载较重或者不 能满足该终端设备的下载目标数据的需求吋, 向上述第二服务器发送下载指令 指示上述第二服务器向上述终端设备发送上述目标数据。 上述终端设备通过上 述第二服务器下载上述目标数据可以满足该终端设备对下载速度的需求。 [0112] The first server may be, for example, a web server, an FTP server, an enterprise critical application server, and other mission-critical servers. The above terminal device may be a desktop computer, a notebook computer, a mobile phone, a tablet computer or the like. The type of the second server may be the same as or different from the first server. The first server and the second server may provide services for the same website, and the second server may not provide services for the website. The above download request may include the identification information of the terminal device, the IP address information, and the information of the target data to be downloaded. The first server may parse the download request and extract information of the target data included in the download request, thereby determining target data required by the terminal device. The first server may also provide the identifier information or the IP address information of the terminal device from the download request, and determine the download authority of the terminal device according to the identifier information or the IP address information. The first server may determine, after the verification of the download authority is passed, that the server that satisfies the download requirement of the terminal device, such as the download speed, the download delay, and the like, is the second server. The first server sends a download command to the second server. The above download instruction may include the above terminal Information of the device and information of the above target data. The downloading 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 send the target data to the terminal device after the load is heavy or cannot meet the requirement of the download target data of the terminal device. The terminal device downloading the target data by using the foregoing second server may satisfy the requirement of the terminal device for the download speed.
[0113] 上述第二数据存储在上述第一服务器中。 上述第二服务器存储有第一数据且未 存储上述第二数据。 上述第二数据例如可以是目标数据中的加密数据, 每次下 载吋上述目标数据中的加密数据都是变化的。 上述第一数据可以是目标数据中 不变的数据, 即每次下载吋目标数据中的这一部分数据都不改变。 上述第一服 务器将上述第二数据发送上述第二服务器, 上述第二服务器将接收到的上述第 二数据和它本身存储的上述第一数据合并为上述目标数据后, 发送给上述终端 设备。 本发明实施例并不限制第一数据和第二数据的类型和具体内容。  [0113] The second data is stored in the first server. The second server stores the 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 is changed each time it is downloaded. The first data may be data that is unchanged in the target data, that is, the data in the target data is not changed every time the target data is downloaded. The first server transmits the second data to the second server, and the second server merges the received second data and the first data stored by itself into the target data, and then sends the 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.
[0114] 服务器之间的访问, 一般速度都很快。 当上述第一服务器不能满足该终端设备 的下载需求吋, 可以指定上述第二服务器向该终端设备发送目标数据, 并将上 述第二服务器缺少的数据发送给上述第二服务器。  [0114] Access between servers is generally fast. When the first server cannot meet the downloading requirement of the terminal device, the second server may be configured to send the target data to the terminal device, and send the data that is missing by the second server to the second server.
[0115] 本发明实施例选择可以满足终端设备下载需求的服务器为第二服务器, 通过该 第二服务器向该终端设备发送目标数据, 满足该终端设备的下载需求。  [0115] In the embodiment of the present invention, the server that meets the downloading requirement of the terminal device is selected as the second server, and the target data is sent to the terminal device by the second server to meet the downloading requirement of the terminal device.
[0116] 本发明实施例提供了一种确定第二服务器的方案, 具体如下: 进一步地, 如图 6所示, 上述服务器还包括:  [0116] The embodiment of the present invention provides a solution for determining a second server, which is specifically as follows: Further, as shown in FIG. 6, the foregoing server further includes:
[0117] 检测单元 601, 用于检测上述终端设备与上述第一服务器相关联的服务器之间 的下载速度, 上述相关联的服务器是存储有上述第一数据的服务器;  [0117] The detecting unit 601 is 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 that stores the first data;
[0118] 上述确定单元 502, 还用于确定下载速度满足上述终端设备的下载速度需求的 服务器为第二服务器。  [0118] The determining unit 502 is further configured to determine that the server whose download speed meets the download speed requirement of the terminal device is the second server.
[0119] 与上述第一服务器相关联的服务器可以有多个, 这些服务器可以存储有第一数 据也可以从上述第一服务器获取上述第一数据。 上述第一服务器可以逐个检测 与上述第一服务器相关联的服务器向该终端设备发送数据的速度, 直到检测到 可以满足该终端设备下载速度需求的服务器, 将该服务器确定为第二服务器。 上述第一服务器也可以根据已有的信息确定几个服务器为待检测的服务器, 分 别检测这几个待检测的服务器向该终端设备发送数据的速度, 可以确定下载速 度最快的服务器为第二服务器。 本发明实施例不限于这两种确定第二服务器的 方式, 本发明实施例也可以采用其他方式确定第二服务器。 [0119] There may be a plurality of servers associated with the first server, and the servers may store the first data or may acquire the first data from the first server. The first server may detect the speed at which the server associated with the first server sends data to the terminal device one by one until detecting A server that satisfies the download speed requirement of the terminal device, and determines the server as the second server. The first server may also determine that several servers are the servers to be detected according to the existing information, and respectively detect the speed at which the servers to be detected send data to the terminal device, and determine that the server with the fastest download speed is the second. server. The embodiment of the present invention is not limited to the two methods for determining the second server. The embodiment of the present invention may also determine the second server by using other methods.
[0120] 本发明实施例中, 通过检测上述终端设备与上述第一服务器相关联的服务器之 间的下载速度, 确定可以满足该终端设备下载需求的服务器为第二服务器。 本 实施的方法可以提高用户的下载速度, 改善用户体验。 [0120] In the embodiment of the present invention, by detecting a download speed between the terminal device and a server associated with the first server, the server that can satisfy the download requirement of the terminal device is determined to be the second server. The method of the implementation can improve the download speed of the user and improve the user experience.
[0121] 本发明实施例中, 上述第一服务器接收上述下载请求的方法可以如下: [0121] In the embodiment of the present invention, the method for receiving the foregoing download request by the first server may be as follows:
[0122] 上述接收单元 501, 具体用于接收终端设备通过浏览器向目标网站发送的下载 请求, 上述目标网站运行有上述第一服务器; [0122] The receiving unit 501 is specifically configured to receive a download request sent by the terminal device to the target website by using a browser, where the target website runs the first server;
[0123] 上述确定单元 502, 具体用于确定上述下载请求所指定的目标数据; [0123] The determining unit 502 is specifically configured to determine target data specified by the download request.
[0124] 上述发送单元 503, 具体用于向第二服务器发送下载指令, 上述第二服务器未 运行上述目标网站。 [0124] The sending unit 503 is specifically configured to send a download command to the second server, where the second server does not run the target website.
[0125] 请参阅图 3, 图 3是终端设备的浏览器界面的示意图。 用户点击下载按键的操作 就是通过浏览器向目标网站发送下载请求。 举例来说, 若用户点击了图 3中软件 1右侧的下载按键, 就是向目标网站发送下载请求, 请求下载软件 1。 上述第一 服务器运行有上述目标网站, 为上述目标网站提供服务。 上述第一服务器在接 收到上述目标网站发送的下载请求后, 确定该下载请求包含的目标数据和需要 下载该目标数据的终端设备的信息。 上述第一服务器可以确定上述下载请求所 指定的目标数据并向上述第二服务器发送下载指令。 上述第二服务器未运行上 述目标网站, 不能直接为该终端设备提供下载服务。  [0125] Please refer to FIG. 3, which is a schematic diagram of a browser interface of the terminal device. The user clicks the download button 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, it sends a download request to the target website, requesting to download the software 1. The first server runs the above-mentioned target website to provide services for the above-mentioned target website. After receiving the download request sent by the target website, the first server determines the target data included in the download request and the information of the terminal device that needs to download the target data. The first server may determine the target data specified by the download request and send a download instruction to the second server. The foregoing second server does not run the target website, and cannot directly provide a download service for the terminal device.
[0126] 本发明实施例中, 上述终端设备通过浏览器向目标网站发送的下载请求后, 上 述第一服务器接收该下载请求并向未运行该目标网站的第二服务器发送下载指 令, 指示上述第二服务器向该终端设备发送目标数据。 通过这种方式, 提高该 终端设备的下载速度。  [0126] In the embodiment of the present invention, after the downloading request sent by the terminal device to the target website by the browser, the first server receives the download request and sends a download command to the second server that does not run the target website, indicating the foregoing The second server transmits the target data to the terminal device. In this way, the download speed of the terminal device is increased.
[0127] 本发明实施例还进一步提供了验证终端设备下载权限的实现方案, 具体如下: 进一步地, 如图 7所示, 上述服务器还包括: [0128] 验证单元 701, 用于上述第一服务器验证上述终端设备的下载权限; [0127] The embodiment of the present invention further provides an implementation scheme for verifying the download permission of the terminal device, which is specifically as follows: Further, as shown in FIG. 7, the server further includes: [0128] The verification unit 701 is configured to verify, by the first server, the download permission of the terminal device.
[0129] 上述确定单元 502, 具体用于在上述下载权限验证通过后, 确定上述下载请求 所指定的目标数据并向第二服务器发送下载指令。  [0129] The determining unit 502 is specifically configured to: after the verification of the download authority is passed, determine target data specified by the download request and send a download instruction to the second server.
[0130] 上述第一服务器根据从上述下载请求中提取出的该终端设备的授权信息, 确定 该终端设备的下载权限。 在上述第一服务器确定该终端设备具备相应的下载权 限后, 确定上述下载请求所指定的目标数据并向第二服务器发送下载指令。 [0130] The first server determines the download authority of the terminal device according to the authorization information of the terminal device extracted from the download request. After the first server determines that the terminal device has the corresponding download right, the target data specified by the download request is determined and a download command is sent to the second server.
[0131] 本发明实施例中, 上述第一服务器在验证上述终端设备具备相应的下载权限后[0131] In the embodiment of the present invention, after the first server verifies that the terminal device has the corresponding download permission,
, 才确定上述下载请求所指定的目标数据并向第二服务器发送下载指令, 保证 了资源下载的安全性。 , determining the target data specified by the above download request and sending a download instruction to the second server, thereby ensuring the security of resource downloading.
[0132] 本发明实施例还进一步提供了更新上述第二服务器中的第一数据的方法, 具体 如下: 上述检测单元 601, 还用于检测上述目标数据中的第一数据是否已利用更 新数据进行更新;  [0132] The embodiment of the present invention further provides a method for updating the first data in the second server, as follows: The detecting unit 601 is further configured to detect whether the first data in the target data has been updated by using the updated data. Update
[0133] 上述发送单元 503, 还用于在上述检测单元检测到上述目标数据中的第一数据 已利用更新数据进行更新之后, 向上述第二服务器发送更新指令, 并将上述更 新数据发送给上述第二服务器, 上述更新指令指示上述第二服务器根据上述更 新数据对上述第一数据进行更新。  [0133] The sending unit 503 is further configured to: after the detecting unit detects that the first data in the target data has been updated by using the update data, send an update command to the second server, and send the update data to the foregoing The second server, the update instruction instructing the second server to update the first data according to the update data.
[0134] 上述目标数据中的第一数据可以利用更新数据进行更新。 上述第一服务器在检 测到上述目标数据中的第一数据进行更新后, 获取上述更新数据, 并向上述第 二服务器发送更新指令和上述更新数据, 上述更新指令指示上述第二服务器根 据上述更新数据对上述第二服务器中的第一数据进行更新。  [0134] The first data in the above target data may be updated using the update data. After detecting the first data in the target data, the first server acquires the update data, and sends an update command and the update data to the second server, where the update command instructs the second server to update the data according to the Updating the first data in the second server.
[0135] 举例来说, 当上述第一服务器检测到上述目标数据中的第一数据有更新数据后 , 査看上述第一服务器是否有该更新数据, 若否, 从其他服务器获取该更新数 据。 上述第一服务器检测到上述第二服务器中的第一数据未进行更新后, 向上 述第二服务器发送更新指令和上述更新数据。  [0135] For example, after the first server detects that the first data in the target data has update data, it checks whether the first server has the update data, and if not, acquires the update data from another server. After detecting that the first data in the second server is not updated, the first server sends the update command and the update data to the second server.
[0136] 本发明实施例中, 上述第一服务器向上述第二服务器发送更新指令和上述更新 数据, 指示上述第二服务器根据上述更新数据对上述第二服务器中的第一数据 进行更新。 可以为用户提供最新版本的目标数据。  [0136] In the 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 can be provided with the latest version of the target data.
[0137] 图 8是本发明实施例提供的一种服务器结构示意图, 该服务器 800可因配置或性 能不同而产生比较大的差异, 可以包括一个或一个以上中央处理器 (central processing units , CPU) 822 (例如, 一个或一个以上处理器) 和存储器 832, 一 个或一个以上存储应用程序 842或数据 844的存储介质 830 (例如一个或一个以上 海量存储设备) 。 其中, 存储器 832和存储介质 830可以是短暂存储或持久存储 。 存储在存储介质 830的程序可以包括一个或一个以上模块 (图示没标出) , 每 个模块可以包括对服务器中的一系列指令操作。 更进一步地, 中央处理器 822可 以设置为与存储介质 830通信, 在服务器 800上执行存储介质 830中的一系列指令 操作。 [0137] FIG. 8 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 800 may be configured or A large difference can be made, including one or more central processing units (CPUs) 822 (eg, one or more processors) and memory 832, one or more storage applications 842 or data. 844 storage medium 830 (for example, one or one storage device in Shanghai). Among them, the memory 832 and the storage medium 830 may be short-term storage or persistent storage. The program stored on storage medium 830 may include one or more modules (not shown), each of which may include a series of instruction operations in the server. Still further, central processor 822 can be configured to communicate with storage medium 830, executing a series of instruction operations in storage medium 830 on server 800.
[0138] 服务器 800还可以包括一个或一个以上电源 826, 一个或一个以上有线或无线网 络接口 850, 一个或一个以上输入输出接口 858, 和 /或, 一个或一个以上操作系 统 841, 例如 Windows ServerTM, Mac OS XTM, UnixTM,  [0138] Server 800 may also include one or more power sources 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, and/or one or more operating systems 841, such as Windows ServerTM. , Mac OS XTM, UnixTM,
LinuxTM, FreeBSDTM等等。  LinuxTM, FreeBSDTM and more.
[0139] 上述中央处理器 822, 用于第一服务器在接收到终端设备发送的下载请求后, 确定上述下载请求所指定的目标数据并向第二服务器发送下载指令; 向上述第 二服务器发送上述第二数据。  [0139] The central processing unit 822 is configured to: after receiving the download request sent by the terminal device, determine, by the first server, target data specified by the download request, and send a download instruction to the second server; and send the foregoing to the second server. Second data.
[0140] 上述第一服务器例如可以是网络服务器、 FTP服务器、 企业关键应用服务器和 其它关键任务服务器等。 上述终端设备可以是台式电脑、 笔记本电脑、 手机、 平板电脑等。 上述第二服务器的类型可以和上述第一服务器相同, 也可以不同 。 上述第一服务器和第二服务器可以为相同的网站提供服务, 上述第二服务器 也可以不为网站提供服务。 上述下载请求可以包含上述终端设备的标识信息、 IP 地址信息和需要下载的目标数据的信息。 上述第一服务器可以解析上述下载请 求并提取出该下载请求中包含的目标数据的信息, 进而确定上述终端设备所需 的目标数据。 上述第一服务器也可以从该下载请求中提出上述终端设备的标识 信息或 IP地址信息, 再根据该标识信息或 IP地址信息确定上述终端设备的下载权 限。 上述第一服务器可以在上述下载权限验证通过后, 确定能够满足上述终端 设备的下载需求例如下载速度、 下载吋延等的某个服务器为第二服务器。 上述 第一服务器向上述第二服务器发送下载指令。 上述下载指令可以包含上述终端 设备的信息和上述目标数据的信息。 上述下载指令指示上述第二服务器向上述 终端设备发送上述目标数据。 如图 2所示, 上述目标数据包括第一数据和第二数 据; 上述第一服务器存储有上述第二数据, 上述第二服务器存储有上述第一数 据且未存储上述第二数据。 举例来说, 上述第一服务器可以在负载较重或者不 能满足该终端设备的下载目标数据的需求吋, 向上述第二服务器发送下载指令 指示上述第二服务器向上述终端设备发送上述目标数据。 上述终端设备通过上 述第二服务器下载上述目标数据可以满足该终端设备对下载速度的需求。 [0140] The first server may be, for example, a web server, an FTP server, an enterprise critical application server, and other mission-critical servers. The above terminal device may be a desktop computer, a notebook computer, a mobile phone, a tablet computer or the like. The type of the second server may be the same as or different from the first server. The first server and the second server may provide services for the same website, and the second server may not provide services for the website. The above download request may include the identification information of the terminal device, the IP address information, and the information of the target data to be downloaded. The first server may parse the download request and extract information of the target data included in the download request, thereby determining target data required by the terminal device. The first server may also provide the identifier information or the IP address information of the terminal device from the download request, and determine the download authority of the terminal device according to the identifier information or the IP address information. The first server may determine, after the verification of the download authority is passed, that the server that satisfies the download requirement of the terminal device, such as the download speed, the download delay, and the like, is the second server. The first server sends a download command 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 the above The terminal device transmits the above target data. 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 send the target data to the terminal device after the load is heavy or cannot meet the requirement of the download target data of the terminal device. The terminal device downloading the target data by using the foregoing second server may satisfy the requirement of the terminal device for the download speed.
[0141] 上述第二数据存储在上述第一服务器中。 上述第二服务器存储有第一数据且未 存储上述第二数据。 上述第二数据例如可以是目标数据中的加密数据, 每次下 载吋上述目标数据中的加密数据都是变化的。 上述第一数据可以是目标数据中 不变的数据, 即每次下载吋目标数据中的这一部分数据都不改变。 上述第一服 务器将上述第二数据发送上述第二服务器, 上述第二服务器将接收到的上述第 二数据和它本身存储的上述第一数据合并为上述目标数据后, 发送给上述终端 设备。 本发明实施例并不限制第一数据和第二数据的类型和具体内容。  [0141] The second data is stored in the first server. The second server stores the 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 is changed each time it is downloaded. The first data may be data that is unchanged in the target data, that is, the data in the target data is not changed every time the target data is downloaded. The first server transmits the second data to the second server, and the second server merges the received second data and the first data stored by itself into the target data, and then sends the 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.
[0142] 服务器之间的访问, 一般速度都很快。 当上述第一服务器不能满足该终端设备 的下载需求吋, 可以指定上述第二服务器向该终端设备发送目标数据, 并将上 述第二服务器缺少的数据发送给上述第二服务器。  [0142] Access between servers is generally fast. When the first server cannot meet the downloading requirement of the terminal device, the second server may be configured to send the target data to the terminal device, and send the data that is missing by the second server to the second server.
[0143] 本发明实施例选择可以满足终端设备下载需求的服务器为第二服务器, 通过该 第二服务器向该终端设备发送目标数据, 满足该终端设备的下载需求。  [0143] The embodiment of the present invention selects a server that can meet the downloading requirement of the terminal device as the second server, and sends the target data to the terminal device through the second server to meet the downloading requirement of the terminal device.
[0144] 本发明实施例提供了一种确定第二服务器的方案, 具体如下: 上述中央处理器 822, 还用于在上述确定上述下载请求所指定的目标数据并向第二服务器发送下 载指令之前, 检测上述终端设备与上述第一服务器相关联的服务器之间的下载 速度, 确定下载速度满足上述终端设备的下载速度需求的服务器为第二服务器 , 上述相关联的服务器是存储有上述第一数据的服务器。  [0144] The embodiment of the present invention provides a solution for determining a second server, which is specifically as follows: The central processing unit 822 is further configured to: before determining the target data specified by the download request and sending a download instruction to the second server, And detecting a download speed between the terminal device and the server associated with the first server, determining that the server whose download speed meets the download speed requirement of the terminal device is a second server, where the associated server stores the first data. Server.
[0145] 与上述第一服务器相关联的服务器可以有多个, 这些服务器可以存储有第一数 据也可以从上述第一服务器获取上述第一数据。 上述第一服务器可以逐个检测 与上述第一服务器相关联的服务器向该终端设备发送数据的速度, 直到检测到 可以满足该终端设备下载速度需求的服务器, 将该服务器确定为第二服务器。 上述第一服务器也可以根据已有的信息确定几个服务器为待检测的服务器, 分 别检测这几个待检测的服务器向该终端设备发送数据的速度, 可以确定下载速 度最快的服务器为第二服务器。 本发明实施例不限于这两种确定第二服务器的 方式, 本发明实施例也可以采用其他方式确定第二服务器。 [0145] There may be a plurality of servers associated with the first server, and the servers may store the first data or may acquire the first data from the first server. The first server may detect the speed at which the server associated with the first server sends data to the terminal device one by one until detecting a server that can satisfy the download speed requirement of the terminal device, and determine the server as the second server. The first server may also determine, according to the existing information, that several servers are servers to be detected, and Do not detect the speed at which the servers to be detected send data to the terminal device, and determine that the server with the fastest download speed is the second server. The embodiment of the present invention is not limited to the two methods for determining the second server. The embodiment of the present invention may also determine the second server by using other methods.
[0146] 本发明实施例中, 通过检测上述终端设备与上述第一服务器相关联的服务器之 间的下载速度, 确定可以满足该终端设备下载需求的服务器为第二服务器。 本 实施的方法可以提高用户的下载速度, 改善用户体验。  [0146] In the embodiment of the present invention, by detecting a download speed between the terminal device and a server associated with the first server, determining that the server that can satisfy the download requirement of the terminal device is the second server. The method of the implementation can improve the download speed of the user and improve the user experience.
[0147] 本发明实施例中, 上述第一服务器接收上述下载请求的方法可以如下: 上述中 央处理器 822, 用于上述第一服务器在接收到终端设备发送的下载请求后, 确定 上述下载请求所指定的目标数据并向第二服务器发送下载指令包括:  In the embodiment of the present invention, the method for receiving the download request by the first server may be as follows: The central processor 822 is configured to determine, by the first server, the download request after receiving the download request sent by the terminal device. The specified target data and send download instructions to the second server include:
[0148] 上述第一服务器在接收到终端设备通过浏览器向目标网站发送的下载请求后, 确定上述下载请求所指定的目标数据并向第二服务器发送下载指令, 上述第一 服务器运行有上述目标网站, 上述第二服务器未运行上述目标网站。  [0148] after receiving the download request sent by the terminal device to the target website through the browser, the first server determines the target data specified by the download request and sends a download instruction to the second server, where the first server runs the target The website, the above second server is not running the above target website.
[0149] 请参阅图 3, 图 3是终端设备的浏览器界面的示意图。 用户点击下载按键的操作 就是通过浏览器向目标网站发送下载请求。 上述第一服务器运行有上述目标网 站, 为上述目标网站提供服务。 上述第一服务器在接收到上述目标网站发送的 下载请求后, 确定该下载请求包含的目标数据和需要下载该目标数据的终端设 备的信息。 上述第一服务器可以确定上述下载请求所指定的目标数据并向上述 第二服务器发送下载指令。 上述第二服务器未运行上述目标网站, 不能直接为 该终端设备提供下载服务。  [0149] Please refer to FIG. 3, which is a schematic diagram of a browser interface of the terminal device. The user clicks the download button to send a download request to the target website through the browser. The first server runs the above target website to provide services for the target website. After receiving the download request sent by the target website, the first server determines the target data included in the download request and the information of the terminal device that needs 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 foregoing second server does not run the above target website, and cannot directly provide a download service for the terminal device.
[0150] 本发明实施例中, 上述终端设备通过浏览器向目标网站发送的下载请求后, 上 述第一服务器接收该下载请求并向未运行该目标网站的第二服务器发送下载指 令, 指示上述第二服务器向该终端设备发送目标数据。 通过这种方式, 提高该 终端设备的下载速度。  [0150] In the embodiment of the present invention, after the downloading request sent by the terminal device to the target website by the browser, the first server receives the download request and sends a download command to the second server that does not run the target website, indicating the foregoing The second server transmits the target data to the terminal device. In this way, the download speed of the terminal device is increased.
[0151] 本发明实施例还进一步提供了验证终端设备下载权限的实现方案, 具体如下: 上述中央处理器 822, 还用于在上述第一服务器接收到终端设备发送的下载请求 后, 在上述确定上述下载请求所指定的目标数据并向第二服务器发送下载指令 之前, 验证上述终端设备的下载权限;  The embodiment of the present invention further provides an implementation scheme for verifying the download permission of the terminal device, which is specifically as follows: The central processing unit 822 is further configured to: after the first server receives the download request sent by the terminal device, Verifying the download authority of the terminal device before downloading the target data specified by the request and sending the download command to the second server;
[0152] 在上述下载权限验证通过后, 确定上述下载请求所指定的目标数据并向第二服 务器发送下载指令。 [0152] after the verification of the download authority is passed, determining target data specified by the download request and applying to the second service The server sends a download instruction.
[0153] 上述第一服务器根据从上述下载请求中提取出的该终端设备的授权信息, 确定 该终端设备的下载权限。 在上述第一服务器确定该终端设备具备相应的下载权 限后, 确定上述下载请求所指定的目标数据并向第二服务器发送下载指令。  [0153] The first server determines the download authority of the terminal device according to the authorization information of the terminal device extracted from the download request. After the first server determines that the terminal device has the corresponding download right, the target data specified by the download request is determined and a download command is sent to the second server.
[0154] 本发明实施例中, 上述第一服务器在验证上述终端设备具备相应的下载权限后 , 才确定上述下载请求所指定的目标数据并向第二服务器发送下载指令, 保证 了资源下载的安全性。  [0154] 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 a download instruction to the second server, thereby ensuring the security of resource downloading. Sex.
[0155] 本发明实施例还进一步提供了更新上述第二服务器中的第一数据的方法, 具体 如下: 上述中央处理器 822, 还用于检测上述目标数据中的第一数据是否已利用 更新数据进行更新;  The embodiment of the present invention further provides a method for updating the first data in the second server, as follows: The central processing unit 822 is further configured to detect whether the first data in the target data has used updated data. Update;
[0156] 若是, 向上述第二服务器发送更新指令和上述更新数据, 上述更新指令指示上 述第二服务器根据上述更新数据对上述第二服务器中的第一数据进行更新。  [0156] If yes, sending an update command and the update data to the second server, the update command instructing the second server to update the first data in the second server according to the update data.
[0157] 上述目标数据中的第一数据可以利用更新数据进行更新。 上述第一服务器在检 测到上述目标数据中的第一数据进行更新后, 获取上述更新数据, 并向上述第 二服务器发送更新指令和上述更新数据, 上述更新指令指示上述第二服务器根 据上述更新数据对上述第二服务器中的第一数据进行更新。  [0157] The first data in the above target data may be updated using the update data. After detecting the first data in the target data, the first server acquires the update data, and sends an update command and the update data to the second server, where the update command instructs the second server to update the data according to the Updating the first data in the second server.
[0158] 举例来说, 当上述第一服务器检测到上述目标数据中的第一数据有更新数据后 , 査看上述第一服务器是否有该更新数据, 若否, 从其他服务器获取该更新数 据。 上述第一服务器检测到上述第二服务器中的第一数据为进行更新后, 向上 述第二服务器发送更新指令和上述更新数据。  [0158] For example, after the first server detects that the first data in the target data has update data, it checks whether the first server has the update data, and if not, acquires the update data from another server. After detecting that the first data in the second server is updated, the first server sends an update command and the update data to the second server.
[0159] 本发明实施例中, 上述第一服务器向上述第二服务器发送更新指令和上述更新 数据, 指示上述第二服务器根据上述更新数据对上述第二服务器中的第一数据 进行更新。 可以为用户提供最新版本的目标数据。  [0159] In the 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 can be provided with the latest version of the target data.
[0160] 上述实施例中由服务器所执行的步骤可以基于该图 8所示的服务器结构。 [0160] The steps performed by the server in the above embodiment may be based on the server structure shown in FIG. 8.
[0161] 需要说明的是, 对于前述的各个方法实施例, 为了简单描述, 故将其都表述为 一系列的动作组合, 但是本领域技术人员应该知悉, 本发明并不受所描述的动 作顺序的限制, 因为依据本发明, 某一些步骤可以采用其他顺序或者同吋进行 。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属于优选实 施例, 所涉及的动作和模块并不一定是本发明所必须的。 [0161] It should be noted that, for the foregoing various method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not subject to the described action sequence. The limitation is that, in accordance with the present invention, certain steps may be performed in other orders or in the same manner. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred. The embodiments, the actions and modules involved are not necessarily required by the present invention.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可 以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算机可 读取存储介质中, 该程序在执行吋, 可包括如上述各方法的实施例的流程。 其 中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体 (Read-Only  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. After execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only)
Memory , ROM) 或随机存取存储器 (Random Access Memory, 简称 RAM) 等 技术问题 Memory, ROM) or random access memory (RAM)
问题的解决方案 Problem solution
发明的有益效果 Advantageous effects of the invention

Claims

权利要求书 Claim
一种资源下载方法, 其特征在于, 包括: A resource downloading method, comprising:
第一服务器在接收到终端设备发送的下载请求后, 确定所述下载请求 所指定的目标数据并向第二服务器发送下载指令, 所述下载指令指示 所述第二服务器向所述终端设备发送所述目标数据, 所述目标数据包 括第一数据和第二数据, 所述第一服务器存储有所述第二数据, 所述 第二服务器存储有所述第一数据且未存储所述第二数据; After receiving the download request sent by the terminal device, the first server determines target data specified by the download request and sends a download instruction to the second server, where the download command instructs the second server to send the location information to the terminal device Target data, 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 first server sends the second data to the second server.
根据权利要求 1所述方法, 其特征在于, 在所述确定所述下载请求所 指定的目标数据并向第二服务器发送下载指令之前, 所述方法还包括 检测所述终端设备与所述第一服务器相关联的服务器之间的下载速度 , 确定下载速度满足所述终端设备的下载速度需求的服务器为第二服 务器, 所述相关联的服务器是存储有所述第一数据的服务器。 The method according to claim 1, wherein before the determining the target data specified by the download request and transmitting the download instruction to the second server, the method further comprises detecting the terminal device and the first The download speed between the servers associated with the server, the server determining that the download speed meets the download speed requirement of the terminal device is the second server, and the associated server is the server storing the first data.
根据权利要求 1所述方法, 其特征在于, 所述第一服务器在接收到终 端设备发送的下载请求后, 确定所述下载请求所指定的目标数据并向 第二服务器发送下载指令包括: The method according to claim 1, wherein the first server, after receiving the download request sent by the terminal device, determining the target data specified by the download request and transmitting the download instruction to the second server includes:
所述第一服务器在接收到终端设备通过浏览器向目标网站发送的下载 请求后, 确定所述下载请求所指定的目标数据并向第二服务器发送下 载指令, 所述第一服务器运行有所述目标网站, 所述第二服务器未运 行所述目标网站。 After receiving the download request sent by the terminal device to the target website by using the browser, the first server determines the target data specified by the download request and sends a download instruction to the second server, where the first server runs the The target website, the second server is not running the target website.
根据权利要求 1所述方法, 其特征在于, 在第一服务器接收到终端设 备发送的下载请求之后, 在所述确定所述下载请求所指定的目标数据 并向第二服务器发送下载指令之前, 所述方法还包括: The method according to claim 1, wherein after the first server receives the download request sent by the terminal device, before determining the target data specified by the download request and sending the download command to the second server, The method also includes:
所述第一服务器验证所述终端设备的下载权限; The first server verifies download permission of the terminal device;
所述确定所述下载请求所指定的目标数据并向第二服务器发送下载指 令包括: The determining the target data specified by the download request and sending the download instruction to the second server includes:
在所述下载权限验证通过后, 确定所述下载请求所指定的目标数据并 向第二服务器发送下载指令。 After the download authority verification is passed, determining target data specified by the download request and Send a download instruction to the second server.
[权利要求 5] 根据权利要求 1所述方法, 其特征在于, 所述方法还包括:  [Claim 5] The method according to claim 1, wherein the method further comprises:
所述第一服务器检测所述目标数据中的第一数据是否已利用更新数据 进行更新;  The first server detects whether the first data in the target data has been updated with the update data;
若是, 向所述第二服务器发送更新指令和所述更新数据, 所述更新指 令指示所述第二服务器根据所述更新数据对所述第二服务器中的第一 数据进行更新。  If yes, sending an update instruction and the update data to the second server, the update instruction instructing the second server to update the first data in the second server according to the update data.
[权利要求 6] —种服务器, 其特征在于, 包括: [Claim 6] A server, comprising:
接收单元, 用于接收终端设备发送的下载请求; 确定单元, 用于确定所述下载请求所指定的目标数据;  a receiving unit, configured to receive a download request sent by the terminal device, and a determining unit, configured to determine target data specified by the download request;
发送单元, 用于向第二服务器发送下载指令, 所述下载指令指示所述 第二服务器向所述终端设备发送所述目标数据, 所述目标数据包括第 一数据和第二数据, 所述第一服务器存储有所述第二数据, 所述第二 服务器存储有所述第一数据且未存储所述第二数据;  a sending unit, configured to send a download instruction to the second server, where the downloading instruction instructs the second server to send the target data to the terminal device, where the target data includes first data and second data, where a server stores the second data, the second server stores the first data and does not store the second data;
所述发送单元, 还用于所述第一服务器向所述第二服务器发送所述第 二数据。  The sending unit is further configured to send, by the first server, the second data to the second server.
[权利要求 7] 根据权利要求 6所述服务器, 其特征在于, 所述服务器还包括:  [Claim 7] The server according to claim 6, wherein the server further comprises:
检测单元, 用于检测所述终端设备与所述第一服务器相关联的服务器 之间的下载速度, 所述相关联的服务器是存储有所述第一数据的服务 器;  a detecting unit, 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 that stores the first data;
所述确定单元, 还用于确定下载速度满足所述终端设备的下载速度需 求的服务器为第二服务器。  The determining unit is further configured to determine that the server whose download speed meets the download speed requirement of the terminal device is the second server.
[权利要求 8] 根据权利要求 6所述服务器, 其特征在于, [Claim 8] The server according to claim 6, wherein
所述接收单元, 具体用于接收终端设备通过浏览器向目标网站发送的 下载请求, 所述目标网站运行于所述第一服务器; 所述确定单元, 具体用于确定所述下载请求所指定的目标数据; 所述发送单元, 具体用于向第二服务器发送下载指令, 所述第二服务 器未运行所述目标网站。 [权利要求 9] 根据权利要求 6所述服务器, 其特征在于, 所述服务器还包括: The receiving unit is specifically configured to receive a download request sent by the terminal device to the target website by using a browser, where the target website runs on the first server, and the determining unit is specifically configured to determine the specified by the download request. The sending unit is specifically configured to send a download instruction to the second server, where the second server does not run the target website. [Claim 9] The server according to claim 6, wherein the server further comprises:
验证单元, 用于所述第一服务器验证所述终端设备的下载权限; 所述确定单元, 具体用于在所述下载权限验证通过后, 确定所述下载 请求所指定的目标数据并向第二服务器发送下载指令。  a verification unit, configured to verify, by the first server, the download permission of the terminal device, where the determining unit is configured to determine, after the verification of the download permission, the target data specified by the download request and to the second The server sends a download instruction.
[权利要求 10] 根据权利要求 6所述服务器, 其特征在于,  [Claim 10] The server according to claim 6, wherein
所述检测单元, 还用于所述第一服务器检测所述目标数据中的第一数 据是否已利用更新数据进行更新;  The detecting unit is further configured to: the first server detects whether the first data in the target data has been updated by using update data;
所述发送单元, 还用于在所述检测单元检测到所述目标数据中的第一 数据已利用更新数据进行更新之后, 向所述第二服务器发送更新指令 , 并将所述更新数据发送给所述第二服务器, 所述更新指令指示所述 第二服务器根据所述更新数据对所述第一数据进行更新。  The sending unit is further configured to: after the detecting unit detects that the first data in the target data has been updated by using the update data, send an update instruction to the second server, and send the update data to The second server, the update instruction instructing the second server to update the first data according to the update data.
PCT/CN2017/071202 2016-11-03 2017-01-16 Resource download method and server WO2018082212A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2018082212A1 true WO2018082212A1 (en) 2018-05-11

Family

ID=58972392

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/071202 WO2018082212A1 (en) 2016-11-03 2017-01-16 Resource download 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN101841570A (en) * 2010-05-21 2010-09-22 北京傲天动联技术有限公司 File transmission method
CN103595782A (en) * 2013-11-11 2014-02-19 中安消技术有限公司 Distributed storage system and method for downloading files thereof
CN103902299A (en) * 2012-12-24 2014-07-02 航天信息股份有限公司 Software version updating method and system

Family Cites Families (6)

* 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
US7631098B2 (en) * 2004-06-08 2009-12-08 International Business Machines Corporation Method, system and program product for optimized concurrent data download within a grid computing environment
CN101534205B (en) * 2008-03-11 2011-12-07 中国网通集团宽带业务应用国家工程实验室有限公司 Application layer multicast service realizing method, terminal and system thereof
CN101459678B (en) * 2009-01-08 2012-02-22 中国科学院计算技术研究所 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
CN105100133A (en) * 2014-04-25 2015-11-25 广州市动景计算机科技有限公司 Resource downloading method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN101841570A (en) * 2010-05-21 2010-09-22 北京傲天动联技术有限公司 File transmission method
CN103902299A (en) * 2012-12-24 2014-07-02 航天信息股份有限公司 Software version updating method and system
CN103595782A (en) * 2013-11-11 2014-02-19 中安消技术有限公司 Distributed storage system and method for downloading files thereof

Also Published As

Publication number Publication date
CN106790343B (en) 2020-05-19
CN106790343A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US10411956B2 (en) Enabling planned upgrade/downgrade of network devices without impacting network sessions
EP3276917B1 (en) Terminal remote assistance method, device and system
US10142425B2 (en) Session reliability for a redirected USB device
US11632247B2 (en) User security token invalidation
WO2013131337A1 (en) Cloud service-based application software installation method, device and system
US20120272320A1 (en) Method and system for providing mobile device scanning
WO2017198079A1 (en) File download method and apparatus, user terminal and machine-readable storage medium
CN105873055B (en) Wireless network access authentication method and device
US20160234307A1 (en) Data transmission method, device, and system
WO2014179950A1 (en) File uploading method, client, and server
CN106778229B (en) VPN-based malicious application downloading interception method and system
WO2018082212A1 (en) Resource download method and server
CN107026828B (en) Anti-stealing-link method based on Internet cache and Internet cache
CN114553693A (en) Gateway upgrading method and device
CN107634969B (en) Data interaction method and device
CN111937013A (en) Electronic device management
EP3772697A1 (en) Cryptographically secure dynamic third party resources
CN110022310B (en) Authorization method and device based on cloud computing open network operating system
EP2987093A1 (en) Website server request rerouting
CN113949562B (en) Portal authentication method, device, system, electronic equipment and storage medium
KR102058541B1 (en) Server monitering method and server monitering apparatus using the method
WO2022001810A1 (en) Transaction data processing method and apparatus, and data processing method and apparatus
CN107770209B (en) Resource sharing method and device
US10769586B2 (en) Implementation of rolling key to identify systems inventories
US10122823B2 (en) Transmission of data in a distributed data processing computer system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17867706

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 01/10/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17867706

Country of ref document: EP

Kind code of ref document: A1