WO2012113262A1 - 用于移动终端的下载方法、系统和设备 - Google Patents
用于移动终端的下载方法、系统和设备 Download PDFInfo
- Publication number
- WO2012113262A1 WO2012113262A1 PCT/CN2011/084720 CN2011084720W WO2012113262A1 WO 2012113262 A1 WO2012113262 A1 WO 2012113262A1 CN 2011084720 W CN2011084720 W CN 2011084720W WO 2012113262 A1 WO2012113262 A1 WO 2012113262A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- server
- resource
- download
- download request
- information
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/564—Enhancement of application control based on intercepted application data
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/563—Data redirection of data network streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/18—Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a download method, system, and device for a mobile terminal, that is, a mobile terminal and a proxy download server. Background technique
- mobile phones can be used not only for browsing web pages, but also for resource downloading. Users can download pictures, audio, video, etc. through mobile browsers. Current mobile browser downloads typically use a direct http connection to the original server to download according to standard protocols.
- a downloading method for a mobile terminal comprising:
- the local storage information includes the backup server information of the download request indication resource, sending the backup server information to the mobile terminal, so that the mobile terminal downloads a resource according to the backup server information.
- Determining whether the local server includes the backup server information of the download request indication resource specifically:: querying, in the locally saved peer resource list, whether the download request indication resource and the backup server address storing the resource are included, if And the local storage information includes the backup server information of the download request indication resource; if not, the local save information does not include the backup server information of the download request indication resource.
- the method further includes:
- the method further includes:
- a download method for a mobile terminal comprising:
- the backup server is a server where the resource indicated by the download request is located.
- the resource indicated by the download request is downloaded from the resource cache server, and if not, the resource indicated by the download request is downloaded from the original server.
- Downloading, by the server in the backup server information, the resource indicated by the download request specifically: sending a fragment request to the backup server in the original server and the backup server information, and from the original server and the The backup server in the backup server information downloads the resource indicated by the download request after the fragmentation.
- the method further includes:
- a breakpoint resume download request is sent to the original server or the resource cache server or the backup server in the backup server information.
- a proxy download server including:
- a receiving module configured to receive a download request of the mobile terminal, and start a determining module for determining whether the local information includes the backup server information of the download request indication resource;
- a sending module configured to: when the local storage information includes the backup server information of the download request indication resource, send the backup server information to the mobile terminal, so that the mobile terminal downloads according to the backup server information Resources.
- the determining module includes - a query unit, configured to query, in the locally saved peer resource list, whether the download request indication resource and a backup server address that saves the resource are included, and if yes, the local save information includes the download request indication resource Backup server information; if not, the local save information does not include backup server information of the download request indication resource.
- the proxy download server further includes:
- a cache module configured to save a resource whose download frequency exceeds a first preset threshold in the preset duration to a resource cache server, and save a resource that downloads the preset frequency within the preset duration and exceeds a first preset threshold The mapping relationship of the resource cache server.
- the proxy download server further includes:
- a mobile terminal includes:
- a sending module configured to send a download request to the proxy download server
- a downloading module configured to receive the backup server information returned by the proxy download server, and download the resource indicated by the download request from the backup server in the backup server information; where the backup server is the resource indicated by the download request server.
- the mobile terminal further includes:
- a determining module configured to: when the backup server information returned by the proxy download server is not received within a preset duration, determine whether the resource cache server has the resource indicated by the download request,
- the resource indicated by the download request is downloaded from the resource cache server, and if not, the resource indicated by the download request is downloaded from the original server.
- the download module includes:
- a fragmentation unit configured to initiate a fragmentation request to the backup server in the original server and the backup server information
- a downloading unit configured to download the resource indicated by the download request after the fragmentation from the backup server in the original server and the backup server information.
- the mobile terminal further includes:
- the breakpoint resuming module is configured to send a breakpoint resume download request to the original server or the resource cache server or the backup server in the backup server information when the resource is not completely downloaded and the download is interrupted.
- the sending module is further configured to send a download request to the original server, and receive a response returned by the original server.
- a header, the response header is a non-web page file resource type.
- a downloading system, the downloading system includes: a mobile terminal and a proxy download server;
- the mobile terminal is configured to send a download request to the proxy download server
- the proxy download server is configured to receive a download request of the mobile terminal, and determine whether the local server includes the backup server information of the download request indication resource; and when the local save information includes the download request indication resource Sending the backup server information to the mobile terminal when backing up server information;
- the mobile terminal is further configured to receive backup server information returned by the proxy download server, and download the resource indicated by the download request from a backup server in the backup server information; the backup server is instructed by the download request The server where the resource is located.
- the agent download server includes:
- a determining module configured to query, in the locally saved peer resource list, whether the download request indication resource and the backup server address of the resource are included, and if yes, the local save information includes the download request indication resource Backup server information; if not, the local save information does not include backup server information of the download request indication resource.
- proxy download server further includes:
- a cache module configured to save a resource whose download frequency exceeds a first preset threshold in the preset duration to a resource cache server, and save a resource that downloads the preset frequency within the preset duration and exceeds a first preset threshold The mapping relationship of the resource cache server.
- proxy download server further includes:
- a deleting module configured to delete, when the resource saved by the resource cache server exceeds a second preset threshold, the resource that is downloaded the least in the resource.
- the mobile terminal further includes:
- a determining module configured to: when the backup server information returned by the proxy download server is not received within a preset duration, determine whether the resource cache server has the resource indicated by the download request, and if yes, download from the resource cache server The resource indicated by the download request, if not, downloading the resource indicated by the download request from the original server.
- the mobile terminal further includes:
- the mobile terminal further includes:
- the breakpoint resuming module is configured to send a breakpoint resume download request to the original server or the resource cache server or the backup server in the backup server information when the resource is not completely downloaded and the download is interrupted.
- the mobile terminal further includes: a sending module, configured to send a download request to the original server, and receive a response header returned by the original server, where the response header is a non-webpage file resource type.
- a sending module configured to send a download request to the original server, and receive a response header returned by the original server, where the response header is a non-webpage file resource type.
- FIG. 1 is a flowchart of a method for downloading a mobile terminal according to an embodiment of the present invention
- FIG. 2 is a flowchart of another downloading method for a mobile terminal according to an embodiment of the present invention.
- FIG. 3 is a flowchart of a method for downloading a mobile terminal according to an embodiment of the present invention
- FIG. 4 is a schematic structural diagram of a proxy download server according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a proxy download server according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. detailed description
- Mobile Browser A browser that can browse Internet pages on your mobile phone.
- Proxy download server The relay server that the proxy client downloads network resources.
- Offline download When the original server is too slow, the proxy download server first downloads for the user, and the user can obtain the resource from the proxy download server at a high speed.
- Resource Local Cache Server Used to cache resources on the original download server, so that users can download to a resource when they lose the connection with the original download server.
- the embodiment of the present invention provides a downloading method for the mobile terminal.
- the execution entity of the method is a proxy download server.
- the downloading method includes:
- the local save information includes the backup server information of the download request indication resource
- the backup server information includes one or more information related to the server location, such as a server IP address, a server name, and a MAC address.
- the determining whether the local information includes the backup server information of the download request indication resource includes: querying, in the locally saved peer resource list, whether the download request indication resource and the backup server address storing the resource are included, and if yes, The local save information includes the backup server information of the download request indication resource; if not, the local save information does not include the backup server information of the download request indication resource.
- the method further includes:
- the resource cache server when a resource (such as a piece of audio) is downloaded more than 100 within 24 hours, the resource is saved to the resource cache server and saved.
- the mapping relationship between the resource and the resource cache server, that is, the save event is recorded, so that in the subsequent download process, the resource cache server can be informed that the resource is saved on the resource cache server.
- the first preset threshold in this embodiment may be set by the technician according to the comprehensive consideration of the processing capabilities of the proxy download server and the resource cache server.
- the method further includes:
- the resource saved by the resource cache server exceeds a second preset threshold, the resource with the least number of downloads in the resource is deleted.
- the resource cache server when the resource saved on the resource cache server exceeds 50M, the resource is slowed down.
- the processing speed of the storage server may be affected, and the resource with the least number of downloads among the saved resources is deleted.
- the resource cache server counts the number of times it is downloaded (or the number of times of being copied), and before the deleting step, compares the number of times each resource is downloaded, and determines The resource that was downloaded the least.
- the second preset threshold in this embodiment may be set by a technician according to the processing capability of the resource cache server.
- the embodiment of the present invention provides a downloading method for the mobile terminal, where the execution body of the method is a client, and preferably, the client may be a mobile phone browser, as shown in FIG. 2
- the download method includes:
- the backup server is a server where the resource indicated by the download request is located.
- the download request is sent to the proxy download server, and then includes:
- the resource indicated by the download request is downloaded from the resource cache server, and if not, the resource indicated by the download request is downloaded from the original server.
- downloading, by the server in the backup server information, the resource indicated by the download request specifically: sending a fragmentation request to the backup server in the original server and the backup server information, and from the original server and the server information
- the server downloads the resources indicated by the download request after the shard.
- the server in the server information refers to the backup server in the backup server information.
- the method further includes:
- a download request is sent to the original server or the resource cache server or the server in the server information.
- the server in the server information refers to the backup server letter. Backup server in the interest rate.
- the method before sending the download request to the proxy download server, the method includes:
- a download request is sent to the origin server, and a response header returned by the origin server is received, the response header being a non-web page file resource type.
- the embodiment of the present invention provides a downloading method for the mobile terminal.
- the client may be a browser of the mobile terminal.
- the downloading method includes:
- the client makes an HTTP request to the original server
- the client browses the webpage, and when the client receives the download instruction from the user, initiates an HTTP request to the origin server where the resource is located.
- the origin server returns an HTTP response header to the client
- the original server ie, the WEB server parses the HTTP request, locates the specified resource, and returns an HTTP response header to the client, and the client learns the type of the specified resource by parsing the HTTP response header, and the type of the resource. It can be a non-web page file resource type or a web page file resource type.
- the client receives an HTTP response packet header, and sends a download request to the proxy download server when the HTTP response packet header is a non-webpage file resource type;
- the proxy download server receives a download request from the client (which may also be a mobile terminal), and determines whether the local information includes the backup server information of the download request indication resource;
- step 306 is performed; if no, that is, the local server does not include the backup server information of the download request indication resource, step 305 is performed;
- the proxy download server saves the backup server information during the downloading process.
- the backup server information is a peer resource node list, where the resource includes the resource and the server where the resource is located, that is, another backup server of a certain resource. List, convenient for users to download offline for multiple connections.
- step 304 determining whether the local server includes the backup server information of the download request indication resource, including: querying, in the locally saved peer resource list, whether the download request indication resource and the backup server storing the resource are included Address, if yes, the local save information includes backup server information indicating the download request resource; If no, the backup server information of the download request indication resource is not included in the local save information.
- the proxy download server can obtain the list of peer resource nodes by the following methods:
- the client sends the hash value and url of the file resource to the proxy download server.
- a hash value is equivalent to a keyword that uniquely identifies a file.
- the peer node resources are the same hash value and different urls, thus forming a list of peer resource nodes. Therefore, after obtaining the list of peer resource nodes, when a user downloads a file next time, all the urls of the peer resource list can be found according to the hash value of the file.
- the method provided in this embodiment can download the resource to the original website when the temporary fault may occur, and the proxy download server periodically updates its resource list in order to ensure the synchronization of the resources.
- the step 304 is used to determine whether the resource exists in other servers, and returns a list of the servers to the client for client selection.
- the proxy download server further needs to check the validity of the download request
- the step 304 may be: the proxy download server receives the download request from the client (which may also be a mobile terminal), and checks the The validity of the download request, when the download request is legal, that is, the client that initiated the download request is a legitimate user or the resource indicated by the download request is a legitimate resource, it is determined whether the local save information includes a backup server that downloads the request indication resource. Information, when the download request is illegal, the request is rejected and ends.
- the mobile browser performs general encryption processing on the url in the download request of the proxy download server, thereby ensuring that the proxy download server is protected from other illegal request attacks.
- the client (or mobile terminal) downloads the resource indicated by the download request from the original server, and ends; those skilled in the art may know that when the proxy download server does not save the resource and does not save the information of the backup server where the resource is located When the client (or mobile terminal) downloads from the original server.
- the proxy download server sends the backup server information to the client (or the mobile terminal), and performs step 307.
- the proxy download server caches the resource whose download frequency is relatively high in the latest period of time. It can be cached to the resource cache server specified by the proxy download server, or it can be stored in the proxy download server.
- the resource cache server or the locally saved resource exceeds a second preset threshold, the resource with the least number of downloads among the resources is deleted.
- the client After receiving the backup server information, the client (or the mobile terminal) initiates a fragmentation request to the backup server in the original server and the backup server information;
- the shard request is used to request the server to divide the download resource into several parts in order to make full use of the network bandwidth and connect multiple servers to download the same resource.
- a client may correspond to multiple servers, including an original server, a proxy download server, or a backup server.
- the client may initiate a fragment request to any server connected to the client.
- These three types of servers are not necessarily required. At the same time, they can be combined in any way. For example, if the client receives the backup server information, the client can initiate a fragmentation request to the original server and the backup server, and download the resource from the original server and the backup server; the client receives the backup.
- Server information, and the resource is also saved on the proxy download server or the resource cache server, the client may initiate a slice request to the original server, the backup server, the resource cache server, and the proxy download server, and download the program from the above four servers. Resources.
- the client (or mobile terminal) downloads the resource from the origin server, the backup server.
- the connection may be disconnected, and other connections may continue to download.
- the user's choice of multiple download servers from high to low is the backup server, the original download server, and the resource cache server, which can minimize the load of the resource local cache server.
- the third preset threshold may be set by the technician according to the network average speed and the processing capability of the mobile terminal.
- the third preset threshold has no relationship with the foregoing first preset threshold and second preset threshold.
- a download of the breakpoint resume is sent to the original server or the resource cache server or the server in the server information. That is, each time a http request is sent, it continues from the last resource end position received, thus avoiding repeating the request from scratch every time.
- the server in the server information refers to the backup server in the backup server information.
- the proxy download server includes:
- the receiving module 401 is configured to receive a download request of the mobile terminal, and start a determining module 402 for determining whether the local information includes the backup server information of the download request indication resource;
- the sending module 403 is configured to: when the local storage information includes the backup server information of the download request indication resource, send the backup server information to the mobile terminal, so that the mobile terminal is configured according to the backup service. Information download resource.
- the determining module 403 includes:
- a query unit configured to query, in the locally saved peer resource list, whether the download request indication resource and a backup server address that saves the resource are included, and if yes, the local save information includes the download request indication resource Backup server information; if not, the local save information does not include backup server information of the download request indication resource.
- the proxy download server further includes:
- the cache module 404 is configured to save the resource whose download frequency exceeds the first preset threshold in the preset duration to the resource cache server, and save the resource and the download frequency exceeding the first preset threshold within the preset duration The mapping relationship of the resource cache server.
- the proxy download server further includes:
- the deleting module 405 is configured to delete, when the resource saved by the resource cache server exceeds a second preset threshold, the resource that is downloaded the least in the resource.
- the proxy download server provided in this embodiment is the same as the method embodiment, and the specific implementation process is described in the method embodiment, and details are not described herein again.
- the embodiment of the present invention provides a mobile terminal.
- the method includes: a sending module 601, configured to send a download request to the proxy download server;
- the downloading module 602 is configured to receive the backup server information returned by the proxy download server, and download the resource indicated by the download request from the backup server in the backup server information; where the backup server indicates the resource indicated by the download request Server.
- the mobile terminal further includes:
- the determining module 603 is configured to: when the backup server information returned by the proxy download server is not received within the preset duration, determine whether the resource cache server has the resource indicated by the download request,
- the resource indicated by the download request is downloaded from the resource cache server, and if not, the resource indicated by the download request is downloaded from the original server.
- the download module 602 includes:
- a fragmentation unit 602a configured to initiate a fragmentation request to the backup server in the original server and the backup server information
- the download unit 602b is configured to download the resource indicated by the download request after the fragmentation from the server in the original server and the server information.
- the mobile terminal further includes:
- the breakpoint retransmission module 604 is configured to send a breakpoint resume download request to the original server or the resource cache server or the server in the server information when the resource is not completely downloaded and the download is interrupted.
- the sending module is further configured to send a download request to the original server, and receive a response header returned by the original server, where the response header is a non-webpage file resource type.
- the embodiment of the present invention provides a downloading system, where the downloading system includes: a mobile terminal and a proxy download server;
- the mobile terminal is configured to send a download request to the proxy download server
- the proxy download server is configured to receive a download request of the mobile terminal, and determine whether the local server includes the backup server information of the download request indication resource; and when the local save information includes the download request indication resource Sending the backup server information to the mobile terminal when backing up server information;
- the mobile terminal is further configured to receive backup server information returned by the proxy download server, and download the resource indicated by the download request from a backup server in the backup server information; the backup server is instructed by the download request The server where the resource is located.
- the agent download server includes:
- a determining module configured to query, in the locally saved peer resource list, whether the download request indication resource and the backup server address of the resource are included, and if yes, the local save information includes the download request indication resource Backup server information; if not, the local save information does not include backup server information of the download request indication resource.
- proxy download server further includes:
- a cache module configured to save a resource whose download frequency exceeds a first preset threshold in the preset duration to a resource cache server, and save a resource that downloads the preset frequency within the preset duration and exceeds a first preset threshold The mapping relationship of the resource cache server.
- proxy download server further includes:
- a deleting module configured to delete, when the resource saved by the resource cache server exceeds a second preset threshold, the resource that is downloaded the least in the resource.
- the mobile terminal further includes:
- a determining module configured to: when the backup server information returned by the proxy download server is not received within a preset duration, determine whether the resource cache server has the resource indicated by the download request, and if yes, from the resource cache service The device downloads the resource indicated by the download request, and if not, downloads the resource indicated by the download request from the original server.
- the mobile terminal further includes:
- a downloading module configured to initiate a fragmentation request to the backup server in the original server and the backup server information; download the sliced download request indication from the backup server in the original server and the backup server information resource of.
- the mobile terminal further includes:
- the breakpoint resuming module is configured to send a breakpoint resume download request to the original server or the resource cache server or the backup server in the backup server information when the resource is not completely downloaded and the download is interrupted.
- the mobile terminal further includes: a sending module, configured to send a download request to the original server, and receive a response header returned by the original server, where the response header is a non-webpage file resource type.
- a sending module configured to send a download request to the original server, and receive a response header returned by the original server, where the response header is a non-webpage file resource type.
- the mobile terminal In the process of downloading a resource by the mobile terminal, when receiving the download request of the mobile terminal, the mobile terminal provides server information according to the local save information, so that the mobile terminal can download the server or other server from the proxy according to the server information. Download resources, improve the download speed and bandwidth utilization of the mobile terminal browser, improve the performance of the mobile terminal browser and the performance of the mobile terminal. All or part of the above technical solutions provided by the embodiments of the present invention may be completed by hardware related to program instructions, and the program may be stored in a readable storage medium, and the storage medium includes: R0M, RAM, disk or CD. And other media that can store program code.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种用于移动终端的下载方法、系统和设备,属于通讯技术领域。该方法包括:接收移动终端的下载请求,并判断本地信息中是否包含所述下载请求指示资源的备份服务器信息;当所述本地保存信息中包含所述下载请求指示资源的备份服务器信息时,将所述备份服务器信息发送给所述移动终端,使得所述移动终端根据所述备份服务器信息下载资源。该代理下载服务器包括:接收模块、判断模块和发送模块。该移动终端包括发送模块和下载模块。下载系统包括:移动终端和代理下载服务器。本发明提高移动终端浏览器的下载速度和带宽利用率,提高了移动终端浏览器性能和移动终端性能。
Description
用于移动终端的下载方法、 系统和设备 技术领域
本发明涉及通讯技术领域, 特别涉及一种用于移动终端的下载方法、 系统和设备, 即 移动终端和代理下载服务器。 背景技术
随着网络速度的提高和资费的降低, 手机不仅可以用于浏览网页, 还可以用于资源下 载, 用户可以通过手机浏览器下载图片、 音频、 视频等。 当前的手机浏览器下载通常采用 直接和原始服务器建立 http连接, 根据标准协议进行下载。
在对现有技术进行分析后, 发明人发现现有技术至少具有如下缺点:
由于手机网络中, 服务器的出口速度有限, 导致手机直连下载的速度比较慢, 且一旦 手机浏览器进行的下载过多, 会大量占用带宽, 导致手机浏览器性能差, 手机的性能下降。 发明内容
本发明实施例提供了一种用于移动终端的下载方法、 系统和设备。 所述技术方案如下: 一种用于移动终端的下载方法, 包括:
接收移动终端的下载请求, 并判断本地信息中是否包含所述下载请求指示资源的备份 服务器信息;
当所述本地保存信息中包含所述下载请求指示资源的备份服务器信息时, 将所述备份 服务器信息发送给所述移动终端, 使得所述移动终端根据所述备份服务器信息下载资源。
判断本地信息中是否包含所述下载请求指示资源的备份服务器信息, 具体包括: 在本地保存的对等资源列表中查询是否包括所述下载请求指示资源及保存所述资源的 备份服务器地址, 如果是, 则所述本地保存信息中包含所述下载请求指示资源的备份服务 器信息; 如果否, 则所述本地保存信息中不包含所述下载请求指示资源的备份服务器信息。
所述方法还包括:
将所述预设时长内下载频率超过第一预设阈值的资源保存至资源缓存服务器, 并保存 下载所述预设时长内下载频率超过第一预设阈值的资源与所述资源缓存服务器的映射关 系。
所述方法还包括:
当所述资源缓存服务器保存的资源超过第二预设阈值时, 删除所述资源中被下载次数 最少的资源。 一种用于移动终端的下载方法, 包括:
向代理下载服务器发送下载请求;
接收所述代理下载服务器返回的备份服务器信息, 从所述备份服务器信息中的备份服 务器下载所述下载请求指示的资源; 所述备份服务器为所述下载请求指示的资源所在的服 务器。
向代理下载服务器发送所述下载请求, 之后包括:
当在预设时长内未接收到所述代理下载服务器返回的备份服务器信息时, 判断资源缓 存服务器是否有所述下载请求指示的资源,
如果是, 从所述资源缓存服务器下载所述下载请求指示的资源, 如果否, 从所述原始 服务器下载所述下载请求指示的资源。
从所述备份服务器信息中的服务器下载所述下载请求指示的资源, 具体包括: 向所述原始服务器和所述备份服务器信息中的备份服务器发起分片请求, 并从所述原 始服务器和所述备份服务器信息中的备份服务器下载分片后的所述下载请求指示的资源。
所述方法还包括:
当资源未下载完全而所述下载中断时, 向原始服务器或资源缓存服务器或所述备份服 务器信息中的备份服务器发送断点续传下载请求。
向代理下载服务器发送下载请求之前包括:
向原始服务器发送下载请求, 并接收所述原始服务器返回的响应包头, 所述响应包头 为非网页的文件资源类型。 一种代理下载服务器, 包括:
接收模块, 用于接收移动终端的下载请求, 并出发用于判断本地信息中是否包含所述 下载请求指示资源的备份服务器信息的判断模块;
发送模块, 用于当所述本地保存信息中包含所述下载请求指示资源的备份服务器信息 时, 将所述备份服务器信息发送给所述移动终端, 使得所述移动终端根据所述备份服务器 信息下载资源。
所述判断模块包括-
查询单元, 用于在本地保存的对等资源列表中查询是否包括所述下载请求指示资源及 保存所述资源的备份服务器地址, 如果是, 则所述本地保存信息中包含所述下载请求指示 资源的备份服务器信息; 如果否, 则所述本地保存信息中不包含所述下载请求指示资源的 备份服务器信息。
所述代理下载服务器还包括:
缓存模块, 用于将所述预设时长内下载频率超过第一预设阈值的资源保存至资源缓存 服务器, 并保存下载所述预设时长内下载频率超过第一预设阈值的资源与所述资源缓存服 务器的映射关系。
所述代理下载服务器还包括:
删除模块, 用于当所述资源缓存服务器保存的资源超过第二预设阈值时, 删除所述资 源中被下载次数最少的资源。 一种移动终端, 包括:
发送模块, 用于向代理下载服务器发送下载请求;
下载模块, 用于接收所述代理下载服务器返回的备份服务器信息, 从所述备份服务器 信息中的备份服务器下载所述下载请求指示的资源; 所述备份服务器为所述下载请求指示 的资源所在的服务器。
所述移动终端还包括:
判断模块, 用于当在预设时长内未接收到所述代理下载服务器返回的备份服务器信息 时, 判断资源缓存服务器是否有所述下载请求指示的资源,
如果是, 从所述资源缓存服务器下载所述下载请求指示的资源, 如果否, 从所述原始 服务器下载所述下载请求指示的资源。
所述下载模块包括:
分片单元, 用于向所述原始服务器和所述备份服务器信息中的备份服务器发起分片请 求;
下载单元, 用于从所述原始服务器和所述备份服务器信息中的备份服务器下载分片后 的所述下载请求指示的资源。
所述移动终端还包括:
断点续传模块, 用于当资源未下载完全而所述下载中断时, 向原始服务器或资源缓存 服务器或所述备份服务器信息中的备份服务器发送断点续传下载请求。
所述发送模块还用于向原始服务器发送下载请求, 并接收所述原始服务器返回的响应
包头, 所述响应包头为非网页的文件资源类型。 一种下载系统, 所述下载系统包括: 移动终端和代理下载服务器;
所述移动终端, 用于向所述代理下载服务器发送下载请求;
所述代理下载服务器, 用于接收所述移动终端的下载请求, 并判断本地信息中是否包 含所述下载请求指示资源的备份服务器信息; 当所述本地保存信息中包含所述下载请求指 示资源的备份服务器信息时, 将所述备份服务器信息发送给所述移动终端;
所述移动终端, 还用于接收所述代理下载服务器返回的备份服务器信息, 从所述备份 服务器信息中的备份服务器下载所述下载请求指示的资源; 所述备份服务器为所述下载请 求指示的资源所在的服务器。
其中, 所述代理下载服务器包括:
判断模块, 用于在本地保存的对等资源列表中查询是否包括所述下载请求指示资源及 保存所述资源的备份服务器地址, 如果是, 则所述本地保存信息中包含所述下载请求指示 资源的备份服务器信息; 如果否, 则所述本地保存信息中不包含所述下载请求指示资源的 备份服务器信息。
进一步, 所述代理下载服务器还包括:
缓存模块, 用于将所述预设时长内下载频率超过第一预设阈值的资源保存至资源缓存 服务器, 并保存下载所述预设时长内下载频率超过第一预设阈值的资源与所述资源缓存服 务器的映射关系。
进一步, 所述代理下载服务器还包括:
删除模块, 用于当所述资源缓存服务器保存的资源超过第二预设阈值时, 删除所述资 源中被下载次数最少的资源。
进一步, 所述移动终端还包括:
判断模块, 用于当在预设时长内未接收到所述代理下载服务器返回的备份服务器信息 时, 判断资源缓存服务器是否有所述下载请求指示的资源, 如果是, 从所述资源缓存服务 器下载所述下载请求指示的资源, 如果否, 从所述原始服务器下载所述下载请求指示的资 源。
进一步, 所述移动终端还包括:
下载模块, 用于向所述原始服务器和所述备份服务器信息中的备份服务器发起分片请 求; 从所述原始服务器和所述备份服务器信息中的备份服务器下载分片后的所述下载请求 指示的资源。
进一步, 所述移动终端还包括:
断点续传模块, 用于当资源未下载完全而所述下载中断时, 向原始服务器或资源缓存 服务器或所述备份服务器信息中的备份服务器发送断点续传下载请求。
进一步, 所述移动终端还包括:发送模块, 用于向原始服务器发送下载请求, 并接收所 述原始服务器返回的响应包头, 所述响应包头为非网页的文件资源类型。
本发明实施例提供的技术方案的有益效果是:
通过在移动终端下载资源的过程中, 当接收到移动终端的下载请求时, 根据本地保存 信息为移动终端提供服务器信息, 使得该移动终端能够根据服务器信息从代理下载服务器 或其他服务器上下载资源, 提高移动终端浏览器的下载速度和带宽利用率, 提高了移动终 端浏览器性能和移动终端性能。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或现有技 术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以 根据这些附图获得其他的附图。
图 1是本发明实施例提供的一种用于移动终端的下载方法的流程图;
图 2是本发明实施例提供的另一种用于移动终端的下载方法的流程图;
图 3是本发明实施例提供的一种用于移动终端的下载方法的流程图;
图 4是本发明实施例提供的一种代理下载服务器的结构示意图;
图 5是本发明实施例提供的一种代理下载服务器的结构示意图;
图 6是本发明实施例提供的一种移动终端的结构示意图;
图 7是本发明实施例提供的一种移动终端的结构示意图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作 进一步地详细描述。
在介绍本发明提供的用于移动终端的下载方法之前, 首先对本发明的基础知识进行简 要的介绍:
手机浏览器: 在手机上可以浏览互联网页面的浏览器。
断点续传: 碰到网络故障, 允许用户从上次下载断线的地方继续下载, 避免重新下载。
代理下载服务器: 代理客户端下载网络资源的中转服务器。
离线下载: 原始服务器速度过慢时, 由代理下载服务器先行替用户下载, 用户可以高 速的从代理下载服务器获得该资源。
资源本地缓存服务器: 用来缓存原始下载服务器上的资源, 方便用户在失去和原始下 载服务器连接时也能够下载到某资源。
实施例 1
为了提高移动终端的浏览器性能, 本发明实施例提供了一种用于移动终端的下载方法, 该方法的执行主体为代理下载服务器, 参见图 1, 该下载方法包括:
101: 接收移动终端的下载请求, 并判断本地信息中是否包含该下载请求指示资源的备 份服务器信息;
102: 当该本地保存信息中包含该下载请求指示资源的备份服务器信息时, 将该备份服 务器信息发送给该移动终端, 使得该移动终端根据该备份服务器信息下载资源。
其中, 备份服务器信息包括服务器 IP地址、 服务器名称、 MAC地址等一种或几种与服 务器位置相关的信息。
其中, 判断本地信息中是否包含该下载请求指示资源的备份服务器信息, 具体包括: 在本地保存的对等资源列表中查询是否包括该下载请求指示资源及保存该资源的备份 服务器地址, 如果是, 则该本地保存信息中包含该下载请求指示资源的备份服务器信息; 如果否, 则该本地保存信息中不包含该下载请求指示资源的备份服务器信息。
进一步地, 该方法还包括:
将该预设时长内下载频率超过第一预设阈值的资源保存至资源缓存服务器, 并保存下 载该预设时长内下载频率超过第一预设阈值的资源与该资源缓存服务器的映射关系。
例如, 设预设时长为 24小时, 第一预设阈值为 100, 则当某资源 (如一段音频) 在 24 小时内的被下载次数超过 100, 则将该资源保存至资源缓存服务器, 并保存资源与资源缓存 服务器的映射关系, 即记录该次保存事件, 以便在后续的下载过程中, 可以根据该保存事 件获知资源缓存服务器上保存有该资源。
需要说明的是, 本实施例中的第一预设阈值可以由技术人员根据代理下载服务器和资 源缓存服务器的处理能力综合考虑进行设置。
进一步地, 该方法还包括:
当该资源缓存服务器保存的资源超过第二预设阈值时, 删除该资源中被下载次数最少 的资源。
例如, 设第二预设阈值为 50M, 当资源缓存服务器上保存的资源超过 50M, 则该资源缓
存服务器的处理速度可能受到影响, 则删除保存的资源中下载次数最少的资源。 本领域技 术人员可以获知, 在资源被下载时, 资源缓存服务器会对其被下载次数 (也可以是被复制 次数) 进行计数, 在删除步骤前, 可以比较每个资源的被下载次数, 并确定被下载次数最 少的资源。
需要说明的是, 本实施例中的第二预设阈值可以由技术人员根据资源缓存服务器的处 理能力进行设置。
通过在移动终端下载资源的过程中, 当接收到移动终端的下载请求时, 根据本地保存 信息为移动终端提供服务器信息, 使得该移动终端能够根据服务器信息从代理下载服务器 或其他服务器上下载资源, 提高手机浏览器的下载速度和带宽利用率, 提高了手机浏览器 性能和手机性能。
实施例 2
为了提高移动终端的浏览器性能, 本发明实施例提供了一种用于移动终端的下载方法, 该方法的执行主体为客户端, 优选地, 该客户端可以为手机浏览器, 参见图 2, 该下载方法 包括:
201: 向代理下载服务器发送下载请求;
202: 接收该代理下载服务器返回的备份服务器信息, 从该备份服务器信息中的备份服 务器下载该下载请求指示的资源; 该备份服务器为该下载请求指示的资源所在的服务器。
进一步地, 向代理下载服务器发送该下载请求, 之后包括:
当在预设时长内未接收到该代理下载服务器返回的备份服务器信息时, 判断资源缓存 服务器是否有该下载请求指示的资源,
如果是, 从该资源缓存服务器下载该下载请求指示的资源, 如果否, 从该原始服务器 下载该下载请求指示的资源。
进一步地, 从该备份服务器信息中的服务器下载该下载请求指示的资源, 具体包括: 向该原始服务器和该备份服务器信息中的备份服务器发起分片请求, 并从该原始服务 器和该服务器信息中的服务器下载分片后的该下载请求指示的资源。 其中, 该服务器信息 中的服务器是指该备份服务器信息中的备份服务器。
本领域技术人员可以获知, 移动终端发起的该分片请求以及后续所做的分片数据处理 的原理与个人电脑同理, 在此不赘述。
进一步地, 该方法还包括:
当资源未下载完全而该下载中断时, 向原始服务器或资源缓存服务器或该服务器信息 中的服务器发送断点续传下载请求。 其中, 该服务器信息中的服务器是指该备份服务器信
息中的备份服务器。
进一步地, 向代理下载服务器发送下载请求之前包括:
向原始服务器发送下载请求, 并接收该原始服务器返回的响应包头, 该响应包头为非 网页的文件资源类型。
通过在移动终端下载资源的过程中, 当接收到移动终端的下载请求时, 根据本地保存 信息为移动终端提供服务器信息, 使得该移动终端能够根据服务器信息从代理下载服务器 或其他服务器上下载资源, 提高手机浏览器的下载速度和带宽利用率, 提高了手机浏览器 性能和手机性能。
实施例 3
为了提高移动终端的浏览器性能, 本发明实施例提供了一种用于移动终端的下载方法, 其中, 客户端可以为移动终端浏览器, 参见图 3, 该下载方法包括:
301: 客户端向原始服务器进行 HTTP请求;
在本实施例中, 客户端浏览网页, 当客户端接收到来自用户的下载指示时, 向资源所 在的原始服务器发起 HTTP请求。
302: 原始服务器向客户端返回 HTTP响应包头;
在本实施例中, 原始服务器 (即 WEB服务器) 解析该 HTTP请求, 定位指定资源, 并向 客户端返回 HTTP响应包头, 客户端通过解析该 HTTP响应包头, 获知该指定资源的类型, 资源的类型可以为非网页的文件资源类型, 也可以为网页的文件资源类型。
303: 客户端接收 HTTP响应包头, 当该 HTTP响应包头是非网页的文件资源类型时, 向 代理下载服务器发送下载请求;
304: 代理下载服务器接收来自客户端 (也可以为移动终端) 下载请求, 判断本地信息 中是否包含下载请求指示资源的备份服务器信息;
如果是, 即本地信息中包含下载请求指示资源的备份服务器信息, 则执行步骤 306 ; 如果否, 即本地信息中不包含下载请求指示资源的备份服务器信息, 则执行步骤 305 ; 在本发明实施例中, 代理下载服务器在下载过程中会保存备份服务器信息, 优选地, 该备份服务器信息为对等资源节点列表, 在该信息中包含资源以及该资源所在的服务器, 即某一资源的其他备份服务器列表, 方便用户进行多连接的离线下载。
具体地, 该步骤 304 中, 判断本地信息中是否包含该下载请求指示资源的备份服务器 信息, 包括- 在本地保存的对等资源列表中查询是否包括该下载请求指示资源及保存该资源的备份 服务器地址, 如果是, 则该本地保存信息中包含该下载请求指示资源的备份服务器信息;
如果否, 则该本地保存信息中不包含该下载请求指示资源的备份服务器信息。 本领域技术人员可以获知, 代理下载服务器在获取对等资源节点列表时, 可以通过以 下方法:
1、 通过爬虫服务器获取网络中各个资源文件的 hash值和 url。
2、 客户端向代理下载服务器上报文件资源的 hash值和 url。
在该两种方法中, 一个 hash值就相当于唯一标识一个文件的关键字, 对等节点资源就 是相同的 hash值, 不同的 url, 这样就组成了对等资源节点列表。 因此, 在获取到对等资 源节点列表后, 当下次某个用户去下载某个文件时, 就可以根据文件的 hash值找到对等资 源列表的所有 url。
本实施例提供的方法, 当原始网站可能发生临时故障时用户也可以下载到该资源, 同 时为了保证资源的同步, 代理下载服务器会定时的更新其资源列表。
综上, 该步骤 304用于判断该资源是否存在于其他的服务器, 并向客户端返回这些服 务器的列表以供客户端选择。
在本实施例中, 进一步地, 代理下载服务器还需检查该下载请求的有效性, 则该步骤 304还可以为: 代理下载服务器接收来自客户端(也可以为移动终端)下载请求, 并检查该 下载请求的有效性, 当下载请求合法, 也即是发起该下载请求的客户端为合法用户或该下 载请求指示的资源为合法资源时, 判断本地保存信息中是否包含下载请求指示资源的备份 服务器信息, 当下载请求不合法, 则拒绝该请求, 结束。 其中, 手机浏览器向代理下载服 务器的下载请求中对 url 进行通用的加密处理, 这样就保证了代理下载服务器免受其他非 法请求攻击。
305: 客户端 (或移动终端) 从原始服务器上下载该下载请求指示的资源, 结束; 本领域技术人员可以获知, 当代理下载服务器中没有保存该资源且没有保存该资源所 在的备份服务器的信息时, 客户端 (或移动终端) 从原始服务器上进行下载。
306: 代理下载服务器将备份服务器信息发送给客户端 (或移动终端), 执行步骤 307; 在本发明实施例中, 代理下载服务器对用户在最近一段时间下载频率比较高的资源进 行缓存, 该缓存可以是缓存到代理下载服务器指定的资源缓存服务器上, 也可以是存储于 该代理下载服务器中。
进一步地, 当所述资源缓存服务器或本地保存的资源超过第二预设阈值时, 删除所述 资源中被下载次数最少的资源。
307: 客户端 (或移动终端) 在接收到备份服务器信息后, 向原始服务器以及备份服务 器信息中的备份服务器发起分片请求;
该分片请求用于向服务器请求将下载资源分成若干份, 以便充分利用网络带宽, 连接 多个服务器去下载同一资源。
需要说明的是, 一个客户端可能会对应多个服务器, 包括原始服务器、 代理下载服务 器或备份服务器, 客户端可以向该客户端所连接的任一个服务器发起分片请求, 这 3类服 务器不一定同时都存在, 可以任意方式组合, 例如, 客户端接收到备份服务器信息, 则客 户端可以向原始服务器、 备份服务器发起分片请求, 并从原始服务器、 备份服务器下载该 资源; 客户端接收到备份服务器信息, 且代理下载服务器或资源缓存服务器上也保存有该 资源, 则客户端可以向原始服务器、 备份服务器、 资源缓存服务器和代理下载服务器发起 分片请求, 并从上述四种服务器上下载该资源。
308: 客户端 (或移动终端) 从原始服务器、 备份服务器中下载该资源。
需要说明的是, 在客户端下载过程中, 若某一链接发生网络故障或者速度低于第三预 设阈值时, 可以断开该连接, 而由其他的连接去继续下载。 用户对多个下载服务器的选择 优先级从高到低依次为备份服务器、 原始下载服务器和资源缓存服务器, 这样可以最大程 度的减少资源本地缓存服务器的负载。
需要说明的是, 该第三预设阈值可以由技术人员根据网络平均速度和移动终端处理能 力等综合进行设置。 该第三预设阈值与前述的第一预设阈值和第二预设阈值之间没有关联 关系。
进一步地, 当资源未下载完全而所述下载中断时, 向原始服务器或资源缓存服务器或 所述服务器信息中的服务器发送断点续传下载请求。 即每次的发送 http请求都是从上次收 到的资源结尾位置开始继续, 这样避免了每次从头开始重复请求。 其中, 该服务器信息中 的服务器是指该备份服务器信息中的备份服务器。
通过在移动终端下载资源的过程中, 当接收到移动终端的下载请求时, 根据本地保存 信息为移动终端提供服务器信息, 使得该移动终端能够根据服务器信息从代理下载服务器 或其他服务器上下载资源, 提高手机浏览器的下载速度和带宽利用率, 提高了手机浏览器 性能和手机性能。
为了提高移动终端的浏览器性能,本发明实施例提供了一种代理下载服务器,参见图 4, 该代理下载服务器包括:
接收模块 401, 用于接收移动终端的下载请求, 并出发用于判断本地信息中是否包含所 述下载请求指示资源的备份服务器信息的判断模块 402;
发送模块 403,用于当所述本地保存信息中包含所述下载请求指示资源的备份服务器信 息时, 将所述备份服务器信息发送给所述移动终端, 使得所述移动终端根据所述备份服务
器信息下载资源。
所述判断模块 403包括:
查询单元, 用于在本地保存的对等资源列表中查询是否包括所述下载请求指示资源及 保存所述资源的备份服务器地址, 如果是, 则所述本地保存信息中包含所述下载请求指示 资源的备份服务器信息; 如果否, 则所述本地保存信息中不包含所述下载请求指示资源的 备份服务器信息。
参见图 5, 所述代理下载服务器还包括:
缓存模块 404,用于将所述预设时长内下载频率超过第一预设阈值的资源保存至资源缓 存服务器, 并保存下载所述预设时长内下载频率超过第一预设阈值的资源与所述资源缓存 服务器的映射关系。
所述代理下载服务器还包括:
删除模块 405, 用于当所述资源缓存服务器保存的资源超过第二预设阈值时, 删除所述 资源中被下载次数最少的资源。
本实施例提供的代理下载服务器, 与方法实施例属于同一构思, 其具体实现过程详见 方法实施例, 这里不再赘述。
为了提高移动终端的浏览器性能,本发明实施例提供了一种移动终端,参见图 6,包括: 发送模块 601, 用于向代理下载服务器发送下载请求;
下载模块 602, 用于接收所述代理下载服务器返回的备份服务器信息, 从所述备份服务 器信息中的备份服务器下载所述下载请求指示的资源; 所述备份服务器为所述下载请求指 示的资源所在的服务器。
所述移动终端还包括:
判断模块 603,用于当在预设时长内未接收到所述代理下载服务器返回的备份服务器信 息时, 判断资源缓存服务器是否有所述下载请求指示的资源,
如果是, 从所述资源缓存服务器下载所述下载请求指示的资源, 如果否, 从所述原始 服务器下载所述下载请求指示的资源。
参见图 7, 所述下载模块 602包括:
分片单元 602a, 用于向所述原始服务器和所述备份服务器信息中的备份服务器发起分 片请求;
下载单元 602b, 用于从所述原始服务器和所述服务器信息中的服务器下载分片后的所 述下载请求指示的资源。
所述移动终端还包括:
断点续传模块 604, 用于当资源未下载完全而所述下载中断时, 向原始服务器或资源缓 存服务器或所述服务器信息中的服务器发送断点续传下载请求。
所述发送模块还用于向原始服务器发送下载请求, 并接收所述原始服务器返回的响应 包头, 所述响应包头为非网页的文件资源类型。
本实施例提供的移动终端, 与方法实施例属于同一构思, 其具体实现过程详见方法实 施例, 这里不再赘述。 为了提高移动终端的浏览器性能, 本发明实施例提供了一种下载系统, 所述下载系统 包括: 移动终端和代理下载服务器;
所述移动终端, 用于向所述代理下载服务器发送下载请求;
所述代理下载服务器, 用于接收所述移动终端的下载请求, 并判断本地信息中是否包 含所述下载请求指示资源的备份服务器信息; 当所述本地保存信息中包含所述下载请求指 示资源的备份服务器信息时, 将所述备份服务器信息发送给所述移动终端;
所述移动终端, 还用于接收所述代理下载服务器返回的备份服务器信息, 从所述备份 服务器信息中的备份服务器下载所述下载请求指示的资源; 所述备份服务器为所述下载请 求指示的资源所在的服务器。
其中, 所述代理下载服务器包括:
判断模块, 用于在本地保存的对等资源列表中查询是否包括所述下载请求指示资源及 保存所述资源的备份服务器地址, 如果是, 则所述本地保存信息中包含所述下载请求指示 资源的备份服务器信息; 如果否, 则所述本地保存信息中不包含所述下载请求指示资源的 备份服务器信息。
进一步, 所述代理下载服务器还包括:
缓存模块, 用于将所述预设时长内下载频率超过第一预设阈值的资源保存至资源缓存 服务器, 并保存下载所述预设时长内下载频率超过第一预设阈值的资源与所述资源缓存服 务器的映射关系。
进一步, 所述代理下载服务器还包括:
删除模块, 用于当所述资源缓存服务器保存的资源超过第二预设阈值时, 删除所述资 源中被下载次数最少的资源。
进一步, 所述移动终端还包括:
判断模块, 用于当在预设时长内未接收到所述代理下载服务器返回的备份服务器信息 时, 判断资源缓存服务器是否有所述下载请求指示的资源, 如果是, 从所述资源缓存服务
器下载所述下载请求指示的资源, 如果否, 从所述原始服务器下载所述下载请求指示的资 源。 进一步, 所述移动终端还包括:
下载模块, 用于向所述原始服务器和所述备份服务器信息中的备份服务器发起分片请 求; 从所述原始服务器和所述备份服务器信息中的备份服务器下载分片后的所述下载请求 指示的资源。
进一步, 所述移动终端还包括:
断点续传模块, 用于当资源未下载完全而所述下载中断时, 向原始服务器或资源缓存 服务器或所述备份服务器信息中的备份服务器发送断点续传下载请求。
进一步, 所述移动终端还包括:发送模块, 用于向原始服务器发送下载请求, 并接收所 述原始服务器返回的响应包头, 所述响应包头为非网页的文件资源类型。
本实施例通过在移动终端下载资源的过程中, 当接收到移动终端的下载请求时, 根据 本地保存信息为移动终端提供服务器信息, 使得该移动终端能够根据服务器信息从代理下 载服务器或其他服务器上下载资源, 提高移动终端浏览器的下载速度和带宽利用率, 提高 了移动终端浏览器性能和移动终端性能。 本发明实施例提供的上述技术方案的全部或部分可以通过程序指令相关的硬件来完 成, 所述程序可以存储在可读取的存储介质中, 该存储介质包括: R0M、 RAM, 磁碟或者光 盘等各种可以存储程序代码的介质。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。
Claims
1、 一种用于移动终端的下载方法, 其特征在于, 包括:
接收移动终端的下载请求, 并判断本地信息中是否包含所述下载请求指示资源的备份服 务器信息;
当所述本地保存信息中包含所述下载请求指示资源的备份服务器信息时, 将所述备份服 务器信息发送给所述移动终端, 使得所述移动终端根据所述备份服务器信息下载资源。
2、 根据权利要求 1所述的方法, 其特征在于, 判断本地信息中是否包含所述下载请求指 示资源的备份服务器信息, 具体包括:
在本地保存的对等资源列表中查询是否包括所述下载请求指示资源及保存所述资源的备 份服务器地址, 如果是, 则所述本地保存信息中包含所述下载请求指示资源的备份服务器信 息; 如果否, 则所述本地保存信息中不包含所述下载请求指示资源的备份服务器信息。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括:
将所述预设时长内下载频率超过第一预设阈值的资源保存至资源缓存服务器, 并保存下 载所述预设时长内下载频率超过第一预设阈值的资源与所述资源缓存服务器的映射关系。
4、 根据权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括:
当所述资源缓存服务器保存的资源超过第二预设阈值时, 删除所述资源中被下载次数最 少的资源。
5、 一种用于移动终端的下载方法, 其特征在于, 包括:
向代理下载服务器发送下载请求;
接收所述代理下载服务器返回的备份服务器信息, 从所述备份服务器信息中的备份服务 器下载所述下载请求指示的资源;所述备份服务器为所述下载请求指示的资源所在的服务器。
6、 根据权利要求 5所述的方法, 其特征在于, 向代理下载服务器发送所述下载请求, 之 后包括:
当在预设时长内未接收到所述代理下载服务器返回的备份服务器信息时, 判断资源缓存 服务器是否有所述下载请求指示的资源,
如果是, 从所述资源缓存服务器下载所述下载请求指示的资源, 如果否, 从所述原始服 务器下载所述下载请求指示的资源。
7、 根据权利要求 6所述的方法, 其特征在于, 从所述备份服务器信息中的服务器下载所 述下载请求指示的资源, 具体包括:
向所述原始服务器和所述备份服务器信息中的备份服务器发起分片请求, 并从所述原始 服务器和所述备份服务器信息中的备份服务器下载分片后的所述下载请求指示的资源。
8、 根据权利要求 7所述的方法, 其特征在于, 所述方法还包括:
当资源未下载完全而所述下载中断时, 向原始服务器或资源缓存服务器或所述备份服务 器信息中的备份服务器发送断点续传下载请求。
9、 根据权利要求 5-8任一项所述的方法, 其特征在于, 向代理下载服务器发送下载请求 之前包括:
向原始服务器发送下载请求, 并接收所述原始服务器返回的响应包头, 所述响应包头为 非网页的文件资源类型。
10、 一种代理下载服务器, 其特征在于, 包括:
接收模块, 用于接收移动终端的下载请求, 并出发用于判断本地信息中是否包含所述下 载请求指示资源的备份服务器信息的判断模块;
发送模块,用于当所述本地保存信息中包含所述下载请求指示资源的备份服务器信息时, 将所述备份服务器信息发送给所述移动终端, 使得所述移动终端根据所述备份服务器信息下 载资源。
11、 根据权利要求 10所述的代理下载服务器, 其特征在于, 所述判断模块包括: 查询单元, 用于在本地保存的对等资源列表中查询是否包括所述下载请求指示资源及保 存所述资源的备份服务器地址, 如果是, 则所述本地保存信息中包含所述下载请求指示资源 的备份服务器信息; 如果否, 则所述本地保存信息中不包含所述下载请求指示资源的备份服 务器信息。
12、 根据权利要求 10或 11所述的代理下载服务器, 其特征在于, 所述代理下载服务器 还包括:
缓存模块, 用于将所述预设时长内下载频率超过第一预设阈值的资源保存至资源缓存服 务器, 并保存下载所述预设时长内下载频率超过第一预设阈值的资源与所述资源缓存服务器 的映射关系。
13、 根据权利要求 10或 11所述的代理下载服务器, 其特征在于, 所述代理下载服务器 还包括:
删除模块, 用于当所述资源缓存服务器保存的资源超过第二预设阈值时, 删除所述资源 中被下载次数最少的资源。
14、 一种移动终端, 其特征在于, 包括:
发送模块, 用于向代理下载服务器发送下载请求;
下载模块, 用于接收所述代理下载服务器返回的备份服务器信息, 从所述备份服务器信 息中的备份服务器下载所述下载请求指示的资源; 所述备份服务器为所述下载请求指示的资 源所在的服务器。
15、 根据权利要求 14所述的移动终端, 其特征在于, 所述移动终端还包括:
判断模块,用于当在预设时长内未接收到所述代理下载服务器返回的备份服务器信息时, 判断资源缓存服务器是否有所述下载请求指示的资源,
如果是, 从所述资源缓存服务器下载所述下载请求指示的资源, 如果否, 从所述原始服 务器下载所述下载请求指示的资源。
16、 根据权利要求 15所述的方法, 其特征在于, 所述下载模块包括:
分片单元,用于向所述原始服务器和所述备份服务器信息中的备份服务器发起分片请求; 下载单元, 用于从所述原始服务器和所述备份服务器信息中的备份服务器下载分片后的 所述下载请求指示的资源。
17、 根据权利要求 16所述的方法, 其特征在于, 所述移动终端还包括: 断点续传模块, 用于当资源未下载完全而所述下载中断时, 向原始服务器或资源缓存服 务器或所述备份服务器信息中的备份服务器发送断点续传下载请求。
18、 根据权利要求 14-17任一项所述的移动终端, 其特征在于, 所述发送模块还用于向 原始服务器发送下载请求, 并接收所述原始服务器返回的响应包头, 所述响应包头为非网页 的文件资源类型。
19、 一种下载系统, 其特征在于, 所述下载系统包括: 移动终端和代理下载服务器; 所述移动终端, 用于向所述代理下载服务器发送下载请求;
所述代理下载服务器, 用于接收所述移动终端的下载请求, 并判断本地信息中是否包含 所述下载请求指示资源的备份服务器信息; 当所述本地保存信息中包含所述下载请求指示资 源的备份服务器信息时, 将所述备份服务器信息发送给所述移动终端;
所述移动终端, 还用于接收所述代理下载服务器返回的备份服务器信息, 从所述备份服 务器信息中的备份服务器下载所述下载请求指示的资源; 所述备份服务器为所述下载请求指 示的资源所在的服务器。
20、 根据权利要求 19所述的下载系统, 其特征在于, 所述代理下载服务器包括: 判断模块, 用于在本地保存的对等资源列表中查询是否包括所述下载请求指示资源及保 存所述资源的备份服务器地址, 如果是, 则所述本地保存信息中包含所述下载请求指示资源 的备份服务器信息; 如果否, 则所述本地保存信息中不包含所述下载请求指示资源的备份服 务器信息。
21、 根据权利要求 19或 20所述的下载系统, 其特征在于, 所述代理下载服务器还包括: 缓存模块, 用于将所述预设时长内下载频率超过第一预设阈值的资源保存至资源缓存服 务器, 并保存下载所述预设时长内下载频率超过第一预设阈值的资源与所述资源缓存服务器 的映射关系。
22、 根据权利要求 19或 20所述的下载系统, 其特征在于, 所述代理下载服务器还包括: 删除模块, 用于当所述资源缓存服务器保存的资源超过第二预设阈值时, 删除所述资源 中被下载次数最少的资源。
23、 根据权利要求 19所述的下载系统, 其特征在于, 所述移动终端还包括: 判断模块,用于当在预设时长内未接收到所述代理下载服务器返回的备份服务器信息时, 判断资源缓存服务器是否有所述下载请求指示的资源, 如果是, 从所述资源缓存服务器下载 所述下载请求指示的资源, 如果否, 从所述原始服务器下载所述下载请求指示的资源。
24、 根据权利要求 23所述的下载系统, 其特征在于, 所述移动终端还包括:
下载模块,用于向所述原始服务器和所述备份服务器信息中的备份服务器发起分片请求; 从所述原始服务器和所述备份服务器信息中的备份服务器下载分片后的所述下载请求指示的 资源。
25、 根据权利要求 24所述的下载系统, 其特征在于, 所述移动终端还包括:
断点续传模块, 用于当资源未下载完全而所述下载中断时, 向原始服务器或资源缓存服 务器或所述备份服务器信息中的备份服务器发送断点续传下载请求。
26、 根据权利要求 19-25 任一项所述的下载系统, 其特征在于, 所述移动终端还包括: 发送模块, 用于向原始服务器发送下载请求, 并接收所述原始服务器返回的响应包头, 所述 响应包头为非网页的文件资源类型。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US13/974,572 US20130346552A1 (en) | 2011-02-24 | 2013-08-23 | Download method, system, and device for mobile terminal |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110045443.9A CN102651861B (zh) | 2011-02-24 | 2011-02-24 | 用于移动终端的下载方法、移动终端和代理下载服务器 |
| CN201110045443.9 | 2011-02-24 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US13/974,572 Continuation US20130346552A1 (en) | 2011-02-24 | 2013-08-23 | Download method, system, and device for mobile terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2012113262A1 true WO2012113262A1 (zh) | 2012-08-30 |
Family
ID=46693738
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2011/084720 Ceased WO2012113262A1 (zh) | 2011-02-24 | 2011-12-27 | 用于移动终端的下载方法、系统和设备 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20130346552A1 (zh) |
| CN (1) | CN102651861B (zh) |
| WO (1) | WO2012113262A1 (zh) |
Families Citing this family (19)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103078848B (zh) * | 2012-12-27 | 2015-09-23 | 合一网络技术(北京)有限公司 | 一种多屏融合协作的系统及方法 |
| CN103067523A (zh) * | 2013-01-15 | 2013-04-24 | 惠州Tcl移动通信有限公司 | 移动终端的文件下载方法及系统 |
| CN103442064A (zh) * | 2013-08-29 | 2013-12-11 | 北京网秦天下科技有限公司 | 移动终端、服务器和方法 |
| CN103474080A (zh) * | 2013-09-02 | 2013-12-25 | 百度在线网络技术(北京)有限公司 | 基于码率切换的音频数据的处理方法及装置、系统 |
| CN103458029A (zh) * | 2013-09-02 | 2013-12-18 | 百度在线网络技术(北京)有限公司 | 通过浏览器进行加速下载的方法、系统和装置 |
| CN105100133A (zh) * | 2014-04-25 | 2015-11-25 | 广州市动景计算机科技有限公司 | 资源下载方法及装置 |
| CN104219312B (zh) * | 2014-09-05 | 2017-08-08 | 无锡天脉聚源传媒科技有限公司 | 一种安装程序的方法及装置 |
| CN105635213B (zh) * | 2014-10-31 | 2019-08-16 | 广州市动景计算机科技有限公司 | 一种网络连接下载方法及装置 |
| CN104378428B (zh) * | 2014-11-14 | 2018-12-04 | 北京京东尚科信息技术有限公司 | 一种用于文件下载的方法和装置 |
| CN104363284A (zh) * | 2014-11-17 | 2015-02-18 | 厦门美图之家科技有限公司 | 一种移动应用的预约提供方法及其服务基站 |
| CN106412137B (zh) * | 2016-12-20 | 2019-07-09 | 北京并行科技股份有限公司 | 一种文件下载系统及文件下载方法 |
| CN106453668A (zh) * | 2016-12-26 | 2017-02-22 | 网宿科技股份有限公司 | 一种文件反向上传方法和系统 |
| CN106850273B (zh) * | 2016-12-30 | 2020-01-07 | 上海帝联信息科技股份有限公司 | 服务器及其流媒体服务提供方法 |
| CN107220369B (zh) * | 2017-06-13 | 2021-02-26 | 广发证券股份有限公司 | 基于http的网站留痕方法 |
| CN111309473A (zh) * | 2020-01-17 | 2020-06-19 | 政采云有限公司 | 一种数据下载方法、装置、设备、介质 |
| CN112866272B (zh) * | 2021-01-27 | 2022-11-01 | 天翼数字生活科技有限公司 | 一种云平台的防盗链管控方法、下载平台和设备 |
| CN113536171B (zh) * | 2021-07-02 | 2024-12-20 | 龙芯中科(合肥)技术有限公司 | 基于浏览器的数据下载方法、系统、电子设备及存储介质 |
| CN113713378B (zh) * | 2021-09-02 | 2024-07-05 | 北京百度网讯科技有限公司 | 内容生成方法和装置 |
| CN118890349A (zh) * | 2024-08-01 | 2024-11-01 | 福建天晴在线互动科技有限公司 | 一种文件下载优化的方法与系统 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101127781A (zh) * | 2007-09-26 | 2008-02-20 | 北京搜狐新时代信息技术有限公司 | 移动终端下载文件的方法、装置及移动终端 |
| CN101257670A (zh) * | 2007-02-28 | 2008-09-03 | 中国移动通信集团公司 | 手机文件搜索下载的方法、设备及系统 |
| CN101668046A (zh) * | 2009-10-13 | 2010-03-10 | 成都市华为赛门铁克科技有限公司 | 资源缓存方法、资源获取方法及其装置、系统 |
| CN101841570A (zh) * | 2010-05-21 | 2010-09-22 | 北京傲天动联技术有限公司 | 一种文件传输方法 |
| CN101938524A (zh) * | 2010-09-19 | 2011-01-05 | 中兴通讯股份有限公司 | 一种处理p2p业务的方法及系统 |
Family Cites Families (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8296396B2 (en) * | 1998-02-10 | 2012-10-23 | Level 3 Communications, Llc | Delivering resources to clients in a distributed computing environment with rendezvous based on load balancing and network conditions |
| US6286031B1 (en) * | 1999-01-21 | 2001-09-04 | Jerry Richard Waese | Scalable multimedia distribution method using client pull to retrieve objects in a client-specific multimedia list |
| US8750480B2 (en) * | 2001-08-03 | 2014-06-10 | Nokia Corporation | Mobile browsing |
| US7076544B2 (en) * | 2002-04-08 | 2006-07-11 | Microsoft Corporation | Caching techniques for streaming media |
| CN1879081B (zh) * | 2003-11-04 | 2011-07-13 | 汤姆森许可贸易公司 | 用于下载服务的热点处的高速缓存服务器 |
| US7530093B2 (en) * | 2004-04-30 | 2009-05-05 | Microsoft Corporation | Securing applications and operating systems |
| FI20040727L (fi) * | 2004-05-27 | 2005-11-28 | Nokia Corp | Tietosisällön tallentaminen etätietokoneeseen |
| US7571167B1 (en) * | 2004-06-15 | 2009-08-04 | David Anthony Campana | Peer-to-peer network content object information caching |
| US9262490B2 (en) * | 2004-08-12 | 2016-02-16 | Oracle International Corporation | Adaptively routing transactions to servers |
| US7818402B1 (en) * | 2006-02-08 | 2010-10-19 | Roxbeam Media Network Corporation | Method and system for expediting peer-to-peer content delivery with improved network utilization |
| US8395794B2 (en) * | 2007-02-15 | 2013-03-12 | Xerox Corporation | System for maintaining a cache of printer-readable prioritized content |
| US8433854B2 (en) * | 2008-06-25 | 2013-04-30 | Intel Corporation | Apparatus and method for cache utilization |
| JP5408257B2 (ja) * | 2009-07-22 | 2014-02-05 | 日本電気株式会社 | コンテンツ配信システム、コンテンツ配信方法、コンテンツ配信プログラム |
| JPWO2011024949A1 (ja) * | 2009-08-31 | 2013-01-31 | 日本電気株式会社 | コンテンツ配信装置、コンテンツ配信方法、およびプログラム |
| CN102299963A (zh) * | 2011-08-29 | 2011-12-28 | 鸿富锦精密工业(深圳)有限公司 | 文件下载系统 |
-
2011
- 2011-02-24 CN CN201110045443.9A patent/CN102651861B/zh active Active
- 2011-12-27 WO PCT/CN2011/084720 patent/WO2012113262A1/zh not_active Ceased
-
2013
- 2013-08-23 US US13/974,572 patent/US20130346552A1/en not_active Abandoned
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101257670A (zh) * | 2007-02-28 | 2008-09-03 | 中国移动通信集团公司 | 手机文件搜索下载的方法、设备及系统 |
| CN101127781A (zh) * | 2007-09-26 | 2008-02-20 | 北京搜狐新时代信息技术有限公司 | 移动终端下载文件的方法、装置及移动终端 |
| CN101668046A (zh) * | 2009-10-13 | 2010-03-10 | 成都市华为赛门铁克科技有限公司 | 资源缓存方法、资源获取方法及其装置、系统 |
| CN101841570A (zh) * | 2010-05-21 | 2010-09-22 | 北京傲天动联技术有限公司 | 一种文件传输方法 |
| CN101938524A (zh) * | 2010-09-19 | 2011-01-05 | 中兴通讯股份有限公司 | 一种处理p2p业务的方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102651861B (zh) | 2014-08-20 |
| CN102651861A (zh) | 2012-08-29 |
| US20130346552A1 (en) | 2013-12-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2012113262A1 (zh) | 用于移动终端的下载方法、系统和设备 | |
| CN102571997B (zh) | 一种数据访问的方法、系统及设备 | |
| CN102984286B (zh) | 一种dns服务器的缓存更新方法、装置及系统 | |
| EP3080972B1 (en) | A method and network node for caching web content | |
| CN103457993B (zh) | 本地缓存装置和提供内容缓存服务的方法 | |
| EP2503759A1 (en) | Method, apparatus and cache system for providing file downloading service | |
| TWI535255B (zh) | 一種發送業務請求訊息的方法及裝置 | |
| WO2018107784A1 (zh) | 检测网页后门的方法和装置 | |
| US8868638B2 (en) | Methods for reducing latency in network connections using automatic redirects and systems thereof | |
| KR20140131523A (ko) | 보안 프로토콜의 동적 선택 기법 | |
| CN102929985A (zh) | 一种收藏网页展示的方法和系统 | |
| WO2013131472A1 (zh) | 消息处理方法、装置和系统 | |
| CN106453461A (zh) | 资源缓存方法及装置 | |
| WO2014194580A1 (zh) | 浏览器重定向方法及装置 | |
| WO2013185693A1 (zh) | 一种路由器处理网页数据的方法以及路由器 | |
| WO2008077328A1 (fr) | Système, procédé et appareil permettant d'accéder à un élément de page web | |
| WO2017080459A1 (zh) | 服务内容的缓存及提供方法、装置、系统和存储介质 | |
| CN104717314A (zh) | 一种ip管理方法及系统、客户端、服务器 | |
| CN104518968B (zh) | 一种报文处理的方法和透明代理服务器 | |
| CN102098328B (zh) | 超文本传输协议http流关联方法和设备 | |
| CN103618799B (zh) | 浏览器缓存处理方法、系统及代理服务器 | |
| WO2014166078A1 (zh) | 数据发送处理方法及路由器 | |
| US10382981B2 (en) | Cellular network protocol optimizations | |
| CN103731396B (zh) | 资源访问方法、系统及缓存资源信息推送装置 | |
| CN103380607A (zh) | Dns客户端地址、rr ttl更新的方法、装置及系统 |
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: 11859130 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 1205A DATED 14/01/2014) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 11859130 Country of ref document: EP Kind code of ref document: A1 |