WO2016192195A1 - 双系统下载文件的方法及其装置 - Google Patents

双系统下载文件的方法及其装置 Download PDF

Info

Publication number
WO2016192195A1
WO2016192195A1 PCT/CN2015/085855 CN2015085855W WO2016192195A1 WO 2016192195 A1 WO2016192195 A1 WO 2016192195A1 CN 2015085855 W CN2015085855 W CN 2015085855W WO 2016192195 A1 WO2016192195 A1 WO 2016192195A1
Authority
WO
WIPO (PCT)
Prior art keywords
source node
file
download
downloading
mode
Prior art date
Application number
PCT/CN2015/085855
Other languages
English (en)
French (fr)
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 WO2016192195A1 publication Critical patent/WO2016192195A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/74Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information operating in dual or compartmented mode, i.e. at least one secure mode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • 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 present invention relates to the field of communications technologies, and in particular, to a method and apparatus for downloading files in a dual system.
  • the downloading of files in the prior art is a single system parallel download.
  • the download it is considered that multiple download sites can be used, multi-module operation download, and parallel download strategy to improve the download speed, but it does not consider how to improve the speed from the influence of the system itself.
  • the security rights management and storage location are not flexible enough.
  • an object of the present invention is to provide a method and apparatus for downloading files in a dual system to improve download speed of dual system download files.
  • the present invention provides a dual system download method, including:
  • Establishing a connection step establishing a download connection for the standard system to download at least one first file, and establishing a download connection for the security system to download at least one second file;
  • Downloading step the standard system and the security system download the first file and the second file in parallel respectively.
  • the establishing the connecting step comprises:
  • the standard system queries whether the local source node list has at least one first source node of the first file, and if so, downloads by the at least one first source node; if not, at least a source node of the first file establishes a TCP link, sends a request download task, and connects at least one second source node that gives a response;
  • the security system queries whether the local source node list has at least one third source node of the second file, and if so, downloads by the at least one third source node; if not; if not, at least one
  • the source node of the second file establishes a TCP link, sends a request download task, and connects at least one fourth source node that gives a response.
  • the establishing the connecting step further includes:
  • the address of the fourth source node to which the response is given is stored in a local routing directory of the security system; the local routing directory of the security system is shared with the standard system.
  • the downloading step comprises:
  • the standard system and the security system are in the multi-mode mode, in the downloading step, the standard system simultaneously downloads the first file in the multi-mode mode;
  • the security system simultaneously downloads the second file in multi-mode mode; or
  • the standard system downloads the first file in the multi-mode mode; Downloading the second file in a single mode in the multimode mode; or
  • the security system downloads the second file in the multi-mode mode;
  • the second file is downloaded in a single mode in the multimode mode.
  • the present invention also provides an apparatus for downloading files in a dual system, including:
  • Establishing a connection module configured to establish, for a standard system, a download connection of at least one first file that needs to be downloaded, and a download connection for the security system to establish at least one second file that needs to be downloaded;
  • a downloading module configured to download the first file and the second file in parallel with the standard system and the security system, respectively.
  • the establishing a connection module includes:
  • a first establishing a connection submodule configured to query, by the standard system, whether the local source node list has at least one first source node of the first file, and if yes, downloading by using the at least one first source node; If not, establishing a TCP link to the source node of the at least one of the first files, sending a request download task, and connecting at least one second source node that gives a response;
  • a second connection establishing submodule configured to query, by the security system, whether the local source node list has at least one third source node of the second file, and if yes, downloading by using the at least one third source node; If not, establishing a TCP link to the source node of the at least one of the second files, sending a request download task, and connecting at least one fourth source node that gives the response.
  • the establishing the connection module further includes:
  • a first storage submodule configured to save an address of the second source node that gives a response in a local routing directory of the standard system
  • a second storage submodule configured to save an address of the fourth source node that gives a response in a local routing directory of the security system
  • a second shared submodule configured to enter a local routing directory of the security system with the standard system Line sharing.
  • the download module includes:
  • a first downloading sub-module configured to divide, in the standard system, the first file that needs to be downloaded into a plurality of data blocks, and download one data block from each of the first source node or the second source node respectively;
  • a second downloading submodule configured to acquire a download performance parameter of each of the first source node or the second source node according to a download history record of each of the first source node or the second source node, according to the download performance
  • the parameter is that the first source node or the second source node in which the download bandwidth and/or the download speed is large is more than a download task of the other first source node or the second source node;
  • a third downloading sub-module configured to divide, in the security system, the second file that needs to be downloaded into a plurality of data blocks, and download one data block from each of the third source node or the fourth source node respectively;
  • a fourth downloading submodule configured to acquire a download performance parameter of each of the third source node or the fourth source node according to a download history record of each of the third source node or the fourth source node, according to the download performance
  • the parameter is that the third source node or the fourth source node in which the download bandwidth and/or the download speed is large is allocated more download tasks than the other third source node or the fourth source node.
  • the downloading module simultaneously downloads the first file in the multimode mode in the standard system
  • the downloading module downloads the second file in the multi-mode mode simultaneously in the security system;
  • the downloading module compares a storage space occupied by the first file and the second file
  • the downloading module downloads the first file in the multi-mode mode when the occupied storage space of the first file is larger than the occupied storage space of the second file;
  • the security system downloads the second file in a single mode of the multimode mode; or
  • the downloading module downloads the second file in the multi-mode mode when the occupied storage space of the second file is greater than the occupied storage space of the first file;
  • the standard system downloads the second file in a single mode of the multimode mode.
  • the present invention establishes a download connection for at least one first file to be downloaded for a standard system and a download connection for at least one second file that needs to be downloaded for the security system when both the standard system and the security system need to download the file;
  • the standard system and the security system download the first text in parallel, respectively Pieces and second file.
  • simultaneous downloads of both systems will increase the download speed, and the security of downloading files using the security system is higher.
  • the dual system also stores the source node of the new file, and shares the source node routing list with each other, and does not need to re-establish with the source node already in the routing list when downloading the corresponding file next time. TCP link to improve the speed of querying the source of each system download.
  • FIG. 1 is a schematic structural diagram of an apparatus for downloading a file by a dual system according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus for downloading files in a dual system according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for downloading a file by a dual system according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for downloading a file by a dual system according to an embodiment of the present invention.
  • an apparatus 100 for downloading files by a dual system including:
  • the downloading module 20 is configured to download the first file and the second file in parallel with the security system and the security system, respectively.
  • the standard system and the security system need to download multiple files at the same time.
  • the standard system needs to download one or more first files, and the plurality of first files are not the same file but multiple different files. , collectively referred to as the first file, said to download in the standard system.
  • the security system also needs to download one or more second files, and the plurality of second files are not the same file, but a plurality of different files, which are collectively referred to as a second file, indicating that they are downloaded in the security system.
  • Establishing the connection module 10 will establish a connection with multiple files that need to be downloaded for the standard system and the security system respectively. Pick up. After the download connection is established, the download module 20 will download the first file and the second file in parallel with the security system and the security system, respectively. Since the downloading of multiple files is performed in parallel in the dual system, the efficiency of downloading the file is improved.
  • establishing the connection module 10 includes:
  • a first connection connection sub-module 11 configured to query, for the standard system, whether the local source node list has at least one first source node of the first file, and if so, download through the at least one first source node If not, establishing a TCP (Transmission Control Protocol) link to the source node of the at least one of the first files, sending a request download task; and connecting at least one second source node that gives a response;
  • TCP Transmission Control Protocol
  • a second connection establishing sub-module 12 configured to query, for the security system, whether the local source node list has at least one third source node of the second file, and if yes, downloading by using the at least one third source node If not, establishing a TCP link to the source node of the at least one of the second files, sending a request download task; and connecting at least one second source node that gives the response.
  • the first connection connection sub-module 11 queries the standard system for the standard system whether there is one or more first source nodes of the first file that need to be downloaded; if so, it can directly The connection is performed by the at least one first source node. If not, the source node of the plurality of first files is required to establish a TCP link, and the request download task is sent. After obtaining the response of the second source node of one or more of the first files, the first connection connection sub-module 11 will be connected to the second source nodes.
  • the second connection connection sub-module 12 is configured to query the security system for whether the local source node list has one or more third source nodes of the second file that need to be downloaded, and if yes, directly connect to the third source. a node, downloading by the at least one third source node; if not, requesting to establish a TCP link to the source node of the second file, sending a request download task; obtaining one or more of the second files After the response of the fourth source node, the second connection connection sub-module 12 will be connected to the fourth source nodes.
  • establishing the connection module 10 further includes:
  • a first storage submodule 15 configured to save an address of the second source node that gives a response in a local routing directory of the standard system
  • a first sharing submodule 16 configured to locally route the standard system The directory is shared with the security system
  • a second storage sub-module 17 configured to save an address of the fourth source node that gives a response in a local routing directory of the security system
  • the second sharing sub-module 18 is configured to share the local routing directory of the security system with the standard system.
  • the first storage sub-module 15 saves the address of the second source node in the local routing directory of the standard system; thus, when the downloading needs to download these first files, the directory can be directly routed locally. Find the source node of the file.
  • the first shared sub-module 16 can also share the local routing directory of the standard system with the security system; when the first file needs to be downloaded in the security system, it can also be directly in the local routing directory. Find the source node of the first file, such as the first source node or the second source node. In this way, when downloading these first files, you can find the source node of the file directly in the local routing directory.
  • the second storage sub-module 17 saves the address of the fourth source node in the local routing directory of the security system; in addition, the second sharing sub-module 18 also stores the local routing directory of the security system with the Standard systems are shared.
  • the source node of the second file such as the third source node or the fourth source node, can also be found directly in the local routing directory.
  • the downloading module 20 includes:
  • a first downloading sub-module 21 configured to divide, in the standard system, the first file that needs to be downloaded into a plurality of data blocks, and download one data block from each of the first source node or the second source node respectively ;
  • a second downloading sub-module 22 configured to acquire, according to a download history record of each of the first source node or the second source node, a download performance parameter of each of the first source node or the second source node, according to the downloading
  • the performance parameter is that the first source node or the second source node in which the download bandwidth and/or the download speed is large is more than a download task of the other first source node or the second source node;
  • a third downloading sub-module 23 configured to divide, in the security system, the second file that needs to be downloaded into a plurality of data blocks, and download one data block from each of the third source node or the fourth source node respectively ;
  • a fourth download sub-module 24 configured to be used according to each of the third source node or the fourth source node Obtaining a download performance parameter of each of the third source node or the fourth source node, where the download performance parameter is the third source node or the fourth source node in which the download bandwidth and/or the download speed are large. More than the other download tasks of the third source node or the fourth source node are allocated.
  • the download module 20 has two ways of downloading files.
  • the first is the average block download mode: divide the file into N blocks equally, and download one piece from each source node.
  • the first download sub-module 21 divides the first file that needs to be downloaded into a plurality of data blocks in the standard system, and downloads one data block from each of the first source node or the second source node respectively.
  • the third download sub-module 23 divides the second file that needs to be downloaded into a plurality of data blocks in the security system, and downloads one data block from each of the third source node or the fourth source node. This is suitable for situations where multiple source nodes have comparable download performance.
  • the proportional block download mode can be performed: download performance (such as bandwidth) is obtained according to the history of the source node, and the download performance is performed according to the download performance of each source node, and the high performance bears more download tasks.
  • the second downloading sub-module 22 acquires download performance parameters of each of the first source node or the second source node according to a download history record of each of the first source node or the second source node, where the performance parameters include Download bandwidth, download speed and other information.
  • the first source node or the second source node in which the download bandwidth and/or the download speed is large is allocated more than the download tasks of the other first source node or the second source node according to the download performance parameter. For example, there are two first source nodes, wherein the download speed of one first source node is twice the download speed of another first source node, and when the download task is allocated, the first source node with fast download speed will allocate the download. 2/3 of the file data block. Another slow download speed only requires downloading 1/3 of the file data block.
  • the same fourth download sub-module 24 also obtains download performance parameters of each of the third source node or the fourth source node according to the download history record of each of the third source node or the fourth source node, and the performance parameters include Download bandwidth, download speed and other information. According to the information, the third source node or the fourth source node in which the download bandwidth and/or the download speed are large are allocated more download tasks than the other third source node or the fourth source node. In this way, according to the downloading capabilities of different source nodes, the number of corresponding downloaded file data blocks can be allocated to improve the speed of file downloading.
  • the download module 20 when the standard system and the security system are in the multi-mode mode, the download module 20 is simultaneously in the multi-mode mode in the standard system. Downloading the first file;
  • the downloading module 20 downloads the second file in the multi-mode mode at the same time in the security system;
  • the downloading module 20 compares the storage space occupied by the first file and the second file
  • the downloading module 20 downloads the first file in the multi-mode mode when the occupied storage space of the first file is larger than the occupied storage space of the second file;
  • the security system downloads the second file in a single mode of the multimode mode; or
  • the downloading module 20 downloads the second file in the multi-mode mode when the occupied storage space of the second file is larger than the occupied storage space of the first file;
  • the standard system downloads the second file in a single mode of the multimode mode.
  • the device 100 for downloading files by the dual system may be a multi-mode mobile terminal such as a dual mode handset. Then, the standard system downloads the first file in the dual mode mode, that is, two communication modules, through the download module 20; the security system can also download the second file in the dual mode by using the download module 20. This increases the rate at which files are downloaded.
  • the standard system downloads the first file in the dual mode by using the download module 20; the security system
  • the second file is downloaded only in one mode, ie one communication module; vice versa.
  • the download module 20 performs time-sharing processing on the occupancy of the dual system, that is, downloading in a standard system for a period of time, and downloading in a security system for a period of time.
  • the device 100 for downloading files by the dual system may be a software unit, a hardware unit or a combination of hardware and software built in the mobile terminal.
  • the mobile terminal can be a mobile phone, a PDA (Personal Digital Assistant), a palmtop computer, or the like.
  • a method for downloading a file by a dual system including:
  • step S301 a download connection of at least one first file that needs to be downloaded is established for the standard system, and a download connection of at least one second file that needs to be downloaded is established for the security system; this step is to establish a connection step, which is implemented by establishing the connection module 10. ;
  • step S302 the standard system and the security system respectively download the first file and the first Two documents.
  • the downloading step is implemented by the download module 20.
  • the standard system and the security system download files in parallel.
  • the connection module 10 establishes a download connection for the standard system and the security system to download at least one first file, and a download connection of the downloaded at least one second file. After the download connection is established, the standard system and the security system respectively download the first file and the second file in parallel, and the simultaneous downloading of the two systems will increase the download speed.
  • the step S301 includes:
  • the standard system queries whether the local source node list has at least one first source node of the first file, and if so, downloads by the at least one first source node; if not, to at least one of the first a source node of a file establishes a TCP link, and sends a request download task; and connects at least one second source node that gives a response; the step is implemented by the second connection establishment sub-module 12; the step is implemented by the first connection connection sub-module 11;
  • the security system queries whether the local source node list has at least one third source node of the second file, and if so, connects the third source node, and performs downloading by using the at least one third source node; if not, And establishing a TCP link to the source node of the at least one of the second files, sending a request download task; and connecting at least one second source node that gives a response; the step is implemented by the second connection connection sub-module 12.
  • the first connection connection sub-module 11 if the first source node of the first file is included in the local source node list, the first connection connection sub-module 11 is connected to the first source node, and the at least one first source node is used. Downloading; if not included, the first connection establishing sub-module 11 establishes a TCP link to the source node of the at least one of the first files, and sends a request download task, where the second source node of the one or more first files is obtained. After the response, the first connection connection sub-module 11 is connected to at least one second source node that gives a response.
  • the second connection connection sub-module 12 queries the security system to query whether the local source node list has one or more third source nodes of the second file that need to be downloaded, and if yes, directly connect the first And the third source node performs downloading by using the at least one third source node; if not, the second connection establishing submodule 12 establishes a TCP link to the source node of the at least one second file, and sends a request for downloading the task, obtaining a Or after the responses of the fourth source nodes of the plurality of second files, the second connection connection sub-module 12 will be connected to the fourth source nodes.
  • the method further includes:
  • this step is implemented by the first storage sub-module 15; performing the local routing directory of the standard system with the security system Sharing; this step is implemented by the first shared sub-module 16; or
  • the local routing directory of the security system is shared with the standard system; this step is implemented by the second shared sub-module 18.
  • the first storage sub-module 15 saves the address of the second source node in the local routing directory of the standard system; the first sharing sub-module 16 stores the local routing directory of the standard system
  • the security system is shared.
  • the second storage sub-module 17 saves the address of the fourth source node giving the response in the local routing directory of the security system; the second sharing sub-module 18 associates the local routing directory of the security system with the standard system Share.
  • the security system and the standard system can share a local routing directory with each other, which facilitates the downloading of files by the two systems. For example, if the file that the security system needs to download is downloaded by the standard system, and the source node address of the file is saved in the local routing directory, the security system can quickly download the file.
  • the step S302 includes:
  • the step is performed by the first download submodule 21 implementation;
  • the files are downloaded by an average block download method or a proportional allocation method, respectively. That is, if the ability of multiple source nodes to download files is almost the same, for example, the download speed or bandwidth is roughly the same, then the average block download mode can be selected. If the capability of downloading files by multiple source nodes is different, for example, the download speed or the bandwidth difference is relatively large, you can choose to allocate more download tasks to the source node with strong download capability for download.
  • the way in which the security system and the standard system download files may be the same or different. Adjust based on the source node of the two system download files. For example, the security system uses the average chunking method to download files, while the standard system uses a proportional allocation method to download files.
  • the apparatus 100 for downloading a file by the dual system includes a multimode mode
  • the standard system simultaneously downloads the first file in a multimode mode
  • the security system simultaneously downloads the second file in multi-mode mode; or
  • the standard system downloads the first file in the multi-mode mode; Downloading the second file in a single mode in the multimode mode; or
  • the security system downloads the second file in the multi-mode mode;
  • the second file is downloaded in a single mode in the multimode mode.
  • the download thread is reasonably allocated according to the size of the storage space occupied by the two system download files. For example, if the total file downloaded by the standard system is larger than the security system, it can be downloaded in multi-mode mode; while the security system is downloaded in only one mode, and when downloading files in this mode, the two systems will be Download the file for time-sharing.
  • a method for downloading a file by a dual system is provided, which is described as follows:
  • step S401 when the standard system downloads the file, the standard system queries the local source node list;
  • step S402 the standard system checks whether there is a source node of the downloaded file in the source node list, if yes, step S403 is performed, if not, step S404 is performed;
  • step S403 the file is downloaded in parallel, and the file is downloaded to the security system for downloading;
  • step S404 a download file request is sent to the source node of the file, and the source node that sent the response is recorded;
  • step S405 when the security system downloads the file, the security system queries the local source node list;
  • step S406 the security system checks whether there is a source node of the downloaded file in the source node list, if yes, step S407 is performed, if not, step S408 is performed;
  • step S407 the file is downloaded, and the file is downloaded to the security system for downloading;
  • step S408 a download file request is issued to the source node of the file, and the source node that sent the response is recorded.
  • the standard system distributes the download task by means of parallel downloading: average partitioning: divide the file into N blocks evenly, and download one block from each source node; proportional partitioning: obtain download performance (such as bandwidth) according to the history of the source node, according to each The download performance of the source nodes is allocated, and the high performance bears more download tasks.
  • the standard system will be downloaded simultaneously in dual mode (mobile phone system) to increase download speed.
  • the present invention establishes a download connection for at least one first file that needs to be downloaded for a standard system, and establishes at least one second file that needs to be downloaded for the security system when both the standard system and the security system need to download the file.
  • Downloading the connection; the standard system and the security system download the first file and the second file in parallel, respectively.
  • simultaneous downloading of the two systems will increase the speed of downloading files, and the security of downloading files using the security system is higher.
  • the dual system also stores the source node of the new file, and shares the source node routing list with each other, and does not need to re-establish with the source node already in the routing list when downloading the corresponding file next time. TCP link to improve the speed of querying the source of each system download.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Mathematical Physics (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)

Abstract

一种双系统下载文件的方法及其装置,适用于通信技术领域,所述方法包括:建立连接步骤:为标准系统建立需要下载的至少一个第一文件的下载连接,以及为安全系统建立需要下载的至少一个第二文件的下载连接(S301);下载步骤:所述标准系统与安全系统分别并行下载所述第一文件和第二文件(S302)。借此,提高了双系统下载文件的下载速度。

Description

双系统下载文件的方法及其装置
本申请要求于2015年06月05日提交中国专利局,申请号为201510307043.9、发明名称为“双系统下载文件的方法及其装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,尤其涉及一种双系统下载文件的方法及其装置。
背景技术
现有的技术中对文件的下载都是单系统并行下载。在下载时考虑到可以使用多个下载网点,采用多模块运作下载,以及并行下载的策略来提升下载的速度,但是并没有从系统本身的影响去考虑如何提升速度。另外,单系统在并行下载的时候,安全权限管理与存储位置不够灵活。
综上可知,现有的系统下载文件的技术在实际使用上,显然存在不便与缺陷,所以有必要加以改进。
发明内容
针对上述的缺陷,本发明的目的在于提供一种双系统下载文件的方法及其装置,以提高双系统下载文件的下载速度。
为了实现上述目的,本发明提供一种双系统下载文件的方法,包括:
建立连接步骤:为标准系统建立需要下载的至少一个第一文件的下载连接,以及为安全系统建立需要下载的至少一个第二文件的下载连接;
下载步骤:所述标准系统与安全系统分别并行下载所述第一文件和第二文件。
根据所述的方法,所述建立连接步骤包括:
所述标准系统查询本地源节点列表是否有所述第一文件的至少一个第一源节点,若有,则通过所述至少一个第一源节点进行下载;若没有,则向至少 一个所述第一文件的源节点建立TCP链接,发送请求下载任务,连接给予响应的至少一个第二源节点;
所述安全系统查询本地源节点列表是否有所述第二文件的至少一个第三源节点,若有,则通过所述至少一个第三源节点进行下载;若没有;若没有,则向至少一个所述第二文件的源节点建立TCP链接,发送请求下载任务,连接给予响应的至少一个第四源节点。
根据所述的方法,所述建立连接步骤还包括:
将给予响应的所述第二源节点的地址保存在所述标准系统的本地路由目录中;将所述标准系统的本地路由目录与所述安全系统进行共享;或者
将给予响应的所述第四源节点的地址保存在所述安全系统的本地路由目录中;将所述安全系统的本地路由目录与所述标准系统进行共享。
根据所述的方法,所述下载步骤包括:
在所述标准系统中将需要下载的所述第一文件平均分成多个数据块,分别从每个所述第一源节点或者第二源节点下载一个数据块;或者
根据每个所述第一源节点或者第二源节点的下载历史记录获取每个所述第一源节点或者第二源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第一源节点或者第二源节点分配多于其他的所述第一源节点或者第二源节点的下载任务;和/或
在所述安全系统中将需要下载的所述第二文件平均分成多个数据块,分别从每个所述第三源节点或者第四源节点下载一个数据块;或者
根据每个所述第三源节点或者第四源节点的下载历史记录获取每个所述第三源节点或者第四源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第三源节点或者第四源节点分配多于其他的所述第三源节点或者第四源节点的下载任务。
根据上述任一项所述的方法,当所述标准系统和安全系统处于多模模式下时,在所述下载步骤中,所述标准系统同时在多模模式下下载所述第一文件;以及
所述安全系统同时在多模模式下下载所述第二文件;或者
比较所述第一文件与所述第二文件所占用的存储空间;
在所述第一文件的所占用的存储空间大于所述第二文件的所占用的存储空间时,所述标准系统在所述多模模式下下载所述第一文件;所述安全系统在所述多模模式中的一个单一模式下下载所述第二文件;或者
在所述第二文件的所占用的存储空间大于所述第一文件的所占用的存储空间时,所述安全系统在所述多模模式下下载所述第二文件;所述标准系统在所述多模模式中的一个单一模式下下载所述第二文件。
为了实现本发明的另一发明目的,本发明还提供了一种双系统下载文件的装置,包括:
建立连接模块,用于为标准系统建立需要下载的至少一个第一文件的下载连接,以及为安全系统建立需要下载的至少一个第二文件的下载连接;
下载模块,用于所述标准系统与安全系统分别并行下载所述第一文件和第二文件。
根据所述的装置,所述建立连接模块包括:
第一建立连接子模块,用于为所述标准系统查询本地源节点列表是否有所述第一文件的至少一个第一源节点,若有,则通过所述至少一个第一源节点进行下载;若没有,则向至少一个所述第一文件的源节点建立TCP链接,发送请求下载任务,连接给予响应的至少一个第二源节点;
第二建立连接子模块,用于为所述安全系统查询本地源节点列表是否有所述第二文件的至少一个第三源节点,若有,则通过所述至少一个第三源节点进行下载;若没有,则向至少一个所述第二文件的源节点建立TCP链接,发送请求下载任务,连接给予响应的至少一个第四源节点。
根据所述的装置,所述建立连接模块还包括:
第一存储子模块,用于将给予响应的所述第二源节点的地址保存在所述标准系统的本地路由目录中;
第一共享子模块,用于将所述标准系统的本地路由目录与所述安全系统进行共享;或者
第二存储子模块,用于将给予响应的所述第四源节点的地址保存在所述安全系统的本地路由目录中;
第二共享子模块,用于将所述安全系统的本地路由目录与所述标准系统进 行共享。
根据所述的装置,所述下载模块包括:
第一下载子模块,用于在所述标准系统中将需要下载的所述第一文件平均分成多个数据块,分别从每个所述第一源节点或者第二源节点下载一个数据块;或者
第二下载子模块,用于根据每个所述第一源节点或者第二源节点的下载历史记录获取每个所述第一源节点或者第二源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第一源节点或者第二源节点分配多于其他的所述第一源节点或者第二源节点的下载任务;和/或
第三下载子模块,用于在所述安全系统中将需要下载的所述第二文件平均分成多个数据块,分别从每个所述第三源节点或者第四源节点下载一个数据块;或者
第四下载子模块,用于根据每个所述第三源节点或者第四源节点的下载历史记录获取每个所述第三源节点或者第四源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第三源节点或者第四源节点分配多于其他的所述第三源节点或者第四源节点的下载任务。
根据上述任一项所述的装置,当所述双系统下载文件的装置包括多模模式时,所述下载模块在所述标准系统同时在多模模式下下载所述第一文件;以及
所述下载模块在所述安全系统同时在多模模式下下载所述第二文件;或者
所述下载模块比较所述第一文件与所述第二文件所占用的存储空间;
所述下载模块在所述第一文件的所占用的存储空间大于所述第二文件的所占用的存储空间时,所述标准系统在所述多模模式下下载所述第一文件;所述安全系统在所述多模模式中的一个单一模式下下载所述第二文件;或者
所述下载模块在所述第二文件的所占用的存储空间大于所述第一文件的所占用的存储空间时,所述安全系统在所述多模模式下下载所述第二文件;所述标准系统在所述多模模式中的一个单一模式下下载所述第二文件。
本发明通过在标准系统和安全系统均需要下载文件时,为标准系统建立需要下载的至少一个第一文件的下载连接,以及为安全系统建立需要下载的至少一个第二文件的下载连接;所述标准系统与安全系统分别并行下载所述第一文 件和第二文件。由此,两个系统同时并行下载将提升下载速度,使用安全系统下载文件的安全性更高。并且,在下载文件的过程中,该双系统还存储新的文件的源节点,并且相互共享源节点路由列表,在下次再下载相应的文件时,不用与已在路由列表中的源节点重新建立TCP链接,提升下次各个系统下载时查询源的速度。
附图说明
图1是本发明实施例提供的双系统下载文件的装置的结构示意图;
图2是本发明实施例提供的双系统下载文件的装置的结构示意图;
图3是本发明实施例提供的双系统下载文件的方法的流程图;
图4是本发明实施例提供的双系统下载文件的方法的流程图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
参见图1,在本发明的第一实施例中,提供了一种双系统下载文件的装置100,包括:
建立连接模块10,用于为标准系统建立需要下载的至少一个第一文件的下载连接,以及为安全系统建立需要下载的至少一个第二文件的下载连接;
下载模块20,用于所述标准系统与安全系统分别并行下载所述第一文件和第二文件。
在该实施例中,标准系统和安全系统需要同时下载多个文件,例如标准系统需要下载一个或者多个第一文件,多个所述第一文件并不是同一文件,而是多个不同的文件,将其统称为第一文件,表示在标准系统中下载。同样的,安全系统也需要下载一个或者多个第二文件,多个所述第二文件并不是同一文件,而是多个不同的文件,将其统称为第二文件,表示在安全系统中下载。建立连接模块10则将分别为标准系统和安全系统建立需要下载的多个文件的连 接。在建立下载连接后,下载模块20将在所述标准系统与安全系统分别并行下载所述第一文件和第二文件。由于是在双系统中并行进行多个文件的下载,由此提高了下载文件的效率。
参见图2,在本发明的第二实施例中,建立连接模块10包括:
第一建立连接子模块11,用于为所述标准系统查询本地源节点列表是否有所述第一文件的至少一个第一源节点,若有,则通过所述至少一个第一源节点进行下载;若没有,则向至少一个所述第一文件的源节点建立TCP(Transmission Control Protocol传输控制协议)链接,发送请求下载任务;连接给予响应的至少一个第二源节点;
第二建立连接子模块12,用于为所述安全系统查询本地源节点列表是否有所述第二文件的至少一个第三源节点,若有,则通过所述至少一个第三源节点进行下载;若没有,则向至少一个所述第二文件的源节点建立TCP链接,发送请求下载任务;连接给予响应的至少一个第二源节点。
在该实施例中,由第一建立连接子模块11为所述标准系统查询本地源节点列表是否有需要下载的所述第一文件的一个或者多个第一源节点;若有则可以直接进行连接,通过所述至少一个第一源节点进行下载,若没有则需要对多个所述第一文件的源节点请求建立TCP链接,发送请求下载任务。在获得一个或者多个所述第一文件的第二源节点的响应后,第一建立连接子模块11将与这些第二源节点连接。
而第二建立连接子模块12则为所述安全系统查询本地源节点列表是否有需要下载的所述第二文件的一个或者多个第三源节点,若有则可以直接连接所述第三源节点,通过所述至少一个第三源节点进行下载;若没有则向需要向所述第二文件的源节点请求建立TCP链接,发送请求下载任务;在获得一个或者多个所述第二文件的第四源节点的响应后,第二建立连接子模块12将与这些第四源节点进行连接。
优选的,建立连接模块10还包括:
第一存储子模块15,用于将给予响应的所述第二源节点的地址保存在所述标准系统的本地路由目录中;第一共享子模块16,用于将所述标准系统的本地路由目录与所述安全系统进行共享;或者
第二存储子模块17,用于将给予响应的所述第四源节点的地址保存在所述安全系统的本地路由目录中;
第二共享子模块18,用于将所述安全系统的本地路由目录与所述标准系统进行共享。
在该实施例中,第一存储子模块15将所述第二源节点的地址保存在所述标准系统的本地路由目录中;这样在下载需要下载这些第一文件时,可以直接在本地路由目录中找到文件的源节点。此外,第一共享子模块16还可以将所述标准系统的本地路由目录与所述安全系统进行共享;则在所述安全系统中需要下载这些第一文件时,也能够直接在本地路由目录中找到第一文件的源节点,如第一源节点或第二源节点。这样在下载需要下载这些第一文件时,可以直接在本地路由目录中找到文件的源节点。
另外,第二存储子模块17将所述第四源节点的地址保存在所述安全系统的本地路由目录中;此外,第二共享子模块18还将所述安全系统的本地路由目录与所述标准系统进行共享。则在所述标准系统中需要下载这些第二文件时,也能够直接在本地路由目录中找到第二文件的源节点,如第三源节点或第四源节点。则在下载需要下载这些第二文件时,可以直接在本地路由目录中找到文件的源节点。
参见图2,在本发明的第三实施例中,下载模块20包括:
第一下载子模块21,用于在所述标准系统中将需要下载的所述第一文件平均分成多个数据块,分别从每个所述第一源节点或者第二源节点下载一个数据块;或者
第二下载子模块22,用于根据每个所述第一源节点或者第二源节点的下载历史记录获取每个所述第一源节点或者第二源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第一源节点或者第二源节点分配多于其他的所述第一源节点或者第二源节点的下载任务;和/或
第三下载子模块23,用于在所述安全系统中将需要下载的所述第二文件平均分成多个数据块,分别从每个所述第三源节点或者第四源节点下载一个数据块;或者
第四下载子模块24,用于根据每个所述第三源节点或者第四源节点的下 载历史记录获取每个所述第三源节点或者第四源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第三源节点或者第四源节点分配多于其他的所述第三源节点或者第四源节点的下载任务。
在该实施例中,下载模块20有两种下载文件的方式。第一种是平均分块下载方式:把文件平均分成N块,从每个源节点下载一块。具体的,第一下载子模块21在所述标准系统中将需要下载的所述第一文件平均分成多个数据块,分别从每个所述第一源节点或者第二源节点下载一个数据块。第三下载子模块23则在所述安全系统中将需要下载的所述第二文件平均分成多个数据块,分别从每个所述第三源节点或者第四源节点下载一个数据块。这适于多个源节点下载性能相当的情况下使用。
而若在多个源节点中,部分源节点的下载能力比较强,而另一些则比较弱。则可以进行比例分块下载方式:根据源节点的历史记录获取下载性能(如带宽),按照每个源节点的下载性能进行分配,性能高的承担更多的下载任务。具体的,第二下载子模块22根据每个所述第一源节点或者第二源节点的下载历史记录获取每个所述第一源节点或者第二源节点的下载性能参数,这些性能参数包括了下载带宽、下载速度等信息。根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第一源节点或者第二源节点分配多于其他的所述第一源节点或者第二源节点的下载任务。例如,有两个第一源节点,其中一个第一源节点的下载速度是另一个第一源节点下载速度的两倍,则在分配下载任务时,下载速度快的第一源节点将分配下载其中2/3的文件数据块。另一个下载速度慢的则只需要下载1/3的文件数据块。同样的第四下载子模块24也根据每个所述第三源节点或者第四源节点的下载历史记录获取每个所述第三源节点或者第四源节点的下载性能参数,这些性能参数包括了下载带宽、下载速度等信息。根据这些信息为其中下载带宽和/或下载速度大的所述第三源节点或者第四源节点分配多于其他的所述第三源节点或者第四源节点的下载任务。这样可以根据不同源节点的下载能力,分配相应的下载文件数据块的数量,以提高文件下载的速度。
在本发明的第四实施例中,在上述多个实施例中,当所述标准系统和安全系统处于多模模式下时,所述下载模块20在所述标准系统同时在多模模式下 下载所述第一文件;以及
所述下载模块20在所述安全系统同时在多模模式下下载所述第二文件;或者
所述下载模块20比较所述第一文件与所述第二文件所占用的存储空间;
所述下载模块20在所述第一文件的所占用的存储空间大于所述第二文件的所占用的存储空间时,所述标准系统在所述多模模式下下载所述第一文件;所述安全系统在所述多模模式中的一个单一模式下下载所述第二文件;或者
所述下载模块20在所述第二文件的所占用的存储空间大于所述第一文件的所占用的存储空间时,所述安全系统在所述多模模式下下载所述第二文件;所述标准系统在所述多模模式中的一个单一模式下下载所述第二文件。
在该实施例中,双系统下载文件的装置100可以是多模模式的移动终端,如双模手机。则所述标准系统通过下载模块20同时在双模模式即2个通信模块下下载所述第一文件;所述安全系统通过下载模块20也可以在双模模式下下载所述第二文件。由此提高了下载文件的速率。
另一方面,可以比较在安全系统和标准系统下所下载的文件所占用的存储空间。若所述第一文件的所占用的存储空间大于所述第二文件的所占用的存储空间时,所述标准系统通过下载模块20在双模模式下下载所述第一文件;所述安全系统只在一个模式即一个通信模块下下载所述第二文件;反之,亦然。下载模块20会对双系统的占用情况进行分时处理,即一段时间在标准系统下载,一段时间在安全系统下载。
在上述多个实施例中,该双系统下载文件的装置100可以是内置于移动终端的软件单元,硬件单元或软硬件结合单元。移动终端可以是手机、PDA(Personal Digital Assistant,个人数字助理)、掌上电脑等。
参见图3,在本发明的第五实施例中,提供了一种双系统下载文件的方法,包括:
步骤S301中,为标准系统建立需要下载的至少一个第一文件的下载连接,以及为安全系统建立需要下载的至少一个第二文件的下载连接;该步骤为建立连接步骤,由建立连接模块10实现;
步骤S302中,所述标准系统与安全系统分别并行下载所述第一文件和第 二文件。下载步骤,由下载模块20实现。
在该实施例中,标准系统和安全系统并行下载文件。首先,将是建立连接模块10分别为标准系统和安全系统建立需要下载的至少一个第一文件的下载连接,以及下载的至少一个第二文件的下载连接。在下载连接建立后,则标准系统与安全系统分别并行下载所述第一文件和第二文件,由于两个系统同时并行下载将提升下载速度。
在本发明的第六实例中,所述步骤S301包括:
所述标准系统查询本地源节点列表是否有所述第一文件的至少一个第一源节点,若有,则通过所述至少一个第一源节点进行下载;若没有,则向至少一个所述第一文件的源节点建立TCP链接,发送请求下载任务;连接给予响应的至少一个第二源节点;该步骤由第二建立连接子模块12实现;该步骤由第一建立连接子模块11实现;所述安全系统查询本地源节点列表是否有所述第二文件的至少一个第三源节点,若有,则连接所述第三源节点,通过所述至少一个第三源节点进行下载;若没有,则向至少一个所述第二文件的源节点建立TCP链接,发送请求下载任务;连接给予响应的至少一个第二源节点;该步骤由第二建立连接子模块12实现。
在该实施中,若在本地源节点列表包含了第一文件的下载的第一源节点,则第一建立连接子模块11连接所述第一源节点,通过所述至少一个第一源节点进行下载;若没有包含,则第一建立连接子模块11向至少一个所述第一文件的源节点建立TCP链接,发送请求下载任务,在获得一个或者多个所述第一文件的第二源节点的响应后,第一建立连接子模块11则连接给予响应的至少一个第二源节点。同样的,第二建立连接子模块12则为所述安全系统查询本地源节点列表是否有需要下载的所述第二文件的一个或者多个第三源节点,若有则可以直接连接所述第三源节点,通过所述至少一个第三源节点进行下载;;若没有则第二建立连接子模块12向至少一个所述第二文件的源节点建立TCP链接,发送请求下载任务,在获得一个或者多个所述第二文件的第四源节点的响应后,第二建立连接子模块12将与这些第四源节点进行连接。
优选的,在所述步骤S301中还包括:
将给予响应的所述第二源节点的地址保存在所述标准系统的本地路由目录中;该步骤由第一存储子模块15实现;将所述标准系统的本地路由目录与所述安全系统进行共享;该步骤由第一共享子模块16实现;或者
将给予响应的所述第四源节点的地址保存在所述安全系统的本地路由目录中;该步骤由第二存储子模块17实现;
将所述安全系统的本地路由目录与所述标准系统进行共享;该步骤由第二共享子模块18实现。
在该实施例中,第一存储子模块15将所述第二源节点的地址保存在所述标准系统的本地路由目录中;第一共享子模块16将所述标准系统的本地路由目录与所述安全系统进行共享。第二存储子模块17将给予响应的所述第四源节点的地址保存在所述安全系统的本地路由目录中;第二共享子模块18将所述安全系统的本地路由目录与所述标准系统进行共享。由此,所述安全系统和标准系统可以相互共享本地路由目录,方便了两个系统进行文件的下载。例如,若下次安全系统需要下载的文件是标准系统下载过,并且以及该文件的源节点地址保存在了本地路由目录中则,所述安全系统则可以快捷的进行文件的下载。
在本发明的第七实例中,所述步骤S302包括:
在所述标准系统中将需要下载的所述第一文件平均分成多个数据块,分别从每个所述第一源节点或者第二源节点下载一个数据块;该步骤由第一下载子模块21实现;或者
根据每个所述第一源节点或者第二源节点的下载历史记录获取每个所述第一源节点或者第二源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第一源节点或者第二源节点分配多于其他的所述第一源节点或者第二源节点的下载任务;该步骤由第二下载子模块22实现;和/或
在所述安全系统中将需要下载的所述第二文件平均分成多个数据块,分别从每个所述第三源节点或者第四源节点下载一个数据块;该步骤由第三下载子模块23实现;或者
根据每个所述第三源节点或者第四源节点的下载历史记录获取每个所述 第三源节点或者第四源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第三源节点或者第四源节点分配多于其他的所述第三源节点或者第四源节点的下载任务;该步骤由第四下载子模块24实现。
在该实施例中,分别通过平均分块下载方式或者是比例分配方式下载文件。即若多个源节点下载文件的能力相差无几,例如下载速度或者带宽都大致相同,则可以选用平均分块下载的方式。而若多个源节点下载文件的能力相差大,例如下载速度或者带宽相差比较大,则可以选用将更多的下载任务分配给下载能力强的源节点进行下载。另外,安全系统和标准系统的下载文件的方式可以相同,也可以不同。根据两个系统下载文件的源节点的情况进行调整。例如,安全系统实用平均分块的方式下载文件,而标准系统采用比例分配方式下载文件。
在本发明的第八实施中,当所述双系统下载文件的装置100包括多模模式时,在所述步骤S302中,所述标准系统同时在多模模式下下载所述第一文件;以及
所述安全系统同时在多模模式下下载所述第二文件;或者
比较所述第一文件与所述第二文件所占用的存储空间;
在所述第一文件的所占用的存储空间大于所述第二文件的所占用的存储空间时,所述标准系统在所述多模模式下下载所述第一文件;所述安全系统在所述多模模式中的一个单一模式下下载所述第二文件;或者
在所述第二文件的所占用的存储空间大于所述第一文件的所占用的存储空间时,所述安全系统在所述多模模式下下载所述第二文件;所述标准系统在所述多模模式中的一个单一模式下下载所述第二文件。上述步骤均由下载模块20实现。
在该实施例中,根据两个系统下载文件所占用的存储空间的大小,合理分配下载线程。例如,若标准系统下载的总文件大于安全系统的,则可以在多模模式下均进行下载;而安全系统则只在一个模式下下载,并且在该模式下下载文件时,将对两个系统下载文件进行分时处理。
参见图4,在本发明的一个实施例中,提供了双系统下载文件的方法,描述如下:
步骤S401中,在标准系统下载文件时,标准系统查询本地源节点列表;
步骤S402中,标准系统查看源节点列表中是否有下载文件的源节点,若有则执行步骤S403,若没有则执行步骤S404;
步骤S403中,并行下载文件,并切换到安全系统中进行文件的下载;
步骤S404中,向所述文件的源节点发出下载文件请求,并记录发出响应的源节点;
步骤S405中,在安全系统下载文件时,安全系统查询本地源节点列表;
步骤S406中,安全系统查看源节点列表中是否有下载文件的源节点,若有则执行步骤S407,若没有则执行步骤S408;
步骤S407中,进行下载文件,并切换到安全系统中进行文件的下载;
步骤S408中,向所述文件的源节点发出下载文件请求,并记录发出响应的源节点。
在该实施例中,假设在双模双系统手机上想要同时下载十个文件,其中七个文件下载到标准系统中,剩余的三个文件下载到安全系统中,下载到标准系统中的七个文件总占用空间大小要大于下载到安全系统中的三个文件。具体的流程如下:
在标准系统下载七个文件,查询本地源节点列表中是否有下载文件的源节点,如果有则可直接开始下载,没有则向数百个源节点建立TCP链接,发送请求任务。将给予响应的源节点地址将被保存在标准系统本地的路由目录中。标准系统通过并行下载的方式分配下载任务:平均分块:把文件平均分成N块,从每个源节点下载一块;比例分块:根据源节点的历史记录获取下载性能(如带宽),按照每个源节点的下载性能进行分配,性能高的承担更多的下载任务。标准系统将同时在双模(移动电话系统)同时下载,以提升下载速度。切换至安全系统,下载三个文件,同样的,查询本地源节点列表中是否有下载文件的源节点,如果有则可直接开始下载,没有则向数百个源节点建立TCP链接,发送请求任务。给予响应的源节点地址将被保存在安全系统本地的路由目录中。通过并行下载的方式分配任务。在带宽固定的条件下,由于标准系统已经占用了双模块,且七个文件的下载量较安全系统下载的三个文件偏大,所以安全系统可以占用其中的一个模块下载,该模块会对双系统的占用情况进行 分时处理,即一段时间在标准系统下载,一段时间在安全系统下载。完成下载任务,七个文件被下载到标准系统中,三个文件被下载到安全文件系统中,在安全系统中的文件安全系数更高。共享标准系统与安全系统的路由目录,每个系统可以享有另一个系统的源节点链接。其中,使用安全系统下载文件,安全系数更高。
综上所述,本发明通过在标准系统和安全系统均需要下载文件时,为标准系统建立需要下载的至少一个第一文件的下载连接,以及为安全系统建立需要下载的至少一个第二文件的下载连接;所述标准系统与安全系统分别并行下载所述第一文件和第二文件。由此,两个系统同时并行下载将提升下载文件的速度,使用安全系统下载文件的安全性更高。并且,在下载文件的过程中,该双系统还存储新的文件的源节点,并且相互共享源节点路由列表,在下次再下载相应的文件时,不用与已在路由列表中的源节点重新建立TCP链接,提升下次各个系统下载时查询源的速度。
本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。

Claims (10)

  1. 一种双系统下载文件的方法,其特征在于,包括:
    建立连接步骤:为标准系统建立需要下载的至少一个第一文件的下载连接,以及为安全系统建立需要下载的至少一个第二文件的下载连接;
    下载步骤:所述标准系统与安全系统分别并行下载所述第一文件和第二文件。
  2. 根据权利要求1所述的方法,其特征在于,所述建立连接步骤包括:
    所述标准系统查询本地源节点列表是否有所述第一文件的至少一个第一源节点,若有,则通过所述至少一个第一源节点进行下载;若没有,则向至少一个所述第一文件的源节点建立TCP链接,发送请求下载任务,连接给予响应的至少一个第二源节点;所述安全系统查询本地源节点列表是否有所述第二文件的至少一个第三源节点,若有,则通过所述至少一个第三源节点进行下载;若没有,则向至少一个所述第二文件的源节点建立TCP链接,发送请求下载任务,连接给予响应的至少一个第四源节点。
  3. 根据权利要求2所述的方法,其特征在于,所述建立连接步骤还包括:
    将给予响应的所述第二源节点的地址保存在所述标准系统的本地路由目录中,将所述标准系统的本地路由目录与所述安全系统进行共享;或者
    将给予响应的所述第四源节点的地址保存在所述安全系统的本地路由目录中,将所述安全系统的本地路由目录与所述标准系统进行共享。
  4. 根据权利要求2所述的方法,其特征在于,所述下载步骤包括:
    在所述标准系统中将需要下载的所述第一文件平均分成多个数据块,分别从每个所述第一源节点或者第二源节点下载一个数据块;或者
    根据每个所述第一源节点或者第二源节点的下载历史记录获取每个所述第一源节点或者第二源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第一源节点或者第二源节点分配多于其他的所述第一源节点或者第二源节点的下载任务;和/或
    在所述安全系统中将需要下载的所述第二文件平均分成多个数据块,分别从每个所述第三源节点或者第四源节点下载一个数据块;或者
    根据每个所述第三源节点或者第四源节点的下载历史记录获取每个所述第三源节点或者第四源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第三源节点或者第四源节点分配多于其他的所述第三源节点或者第四源节点的下载任务。
  5. 根据权利要求1~4任一项所述的方法,其特征在于,当所述标准系统和安全系统处于多模模式下时,在所述下载步骤中,所述标准系统同时在多模模式下下载所述第一文件;以及
    所述安全系统同时在多模模式下下载所述第二文件;或者
    比较所述第一文件与所述第二文件所占用的存储空间;
    在所述第一文件的所占用的存储空间大于所述第二文件的所占用的存储空间时,所述标准系统在所述多模模式下下载所述第一文件;所述安全系统在所述多模模式中的一个单一模式下下载所述第二文件;或者
    在所述第二文件的所占用的存储空间大于所述第一文件的所占用的存储空间时,所述安全系统在所述多模模式下下载所述第二文件;所述标准系统在所述多模模式中的一个单一模式下下载所述第二文件。
  6. 一种双系统下载文件的装置,其特征在于,包括:
    建立连接模块,用于为标准系统建立需要下载的至少一个第一文件的下载连接,以及为安全系统建立需要下载的至少一个第二文件的下载连接;
    下载模块,用于所述标准系统与安全系统分别并行下载所述第一文件和第二文件。
  7. 根据权利要求6所述的装置,其特征在于,所述建立连接模块包括:
    第一建立连接子模块,用于为所述标准系统查询本地源节点列表是否有所述第一文件的至少一个第一源节点,若有,则通过所述至少一个第一源节点进行下载;若没有,则向至少一个所述第一文件的源节点建立TCP链接,发送请求下载任务,连接给予响应的至少一个第二源节点;
    第二建立连接子模块,用于为所述安全系统查询本地源节点列表是否有所述第二文件的至少一个第三源节点,若有,则通过所述至少一个第三源节点进行下载;若没有,则向至少一个所述第二文件的源节点建立TCP链接,发送请求下载任务,连接给予响应的至少一个第四源节点。
  8. 根据权利要求7所述的装置,其特征在于,所述建立连接模块还包括:
    第一存储子模块,用于将给予响应的所述第二源节点的地址保存在所述标准系统的本地路由目录中;
    第一共享子模块,用于将所述标准系统的本地路由目录与所述安全系统进行共享;或者
    第二存储子模块,用于将给予响应的所述第四源节点的地址保存在所述安全系统的本地路由目录中;
    第二共享子模块,用于将所述安全系统的本地路由目录与所述标准系统进行共享。
  9. 根据权利要求7所述的装置,其特征在于,所述下载模块包括:
    第一下载子模块,用于在所述标准系统中将需要下载的所述第一文件平均分成多个数据块,分别从每个所述第一源节点或者第二源节点下载一个数据块;或者
    第二下载子模块,用于根据每个所述第一源节点或者第二源节点的下载历史记录获取每个所述第一源节点或者第二源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第一源节点或者第二源节点分配多于其他的所述第一源节点或者第二源节点的下载任务;和/或
    第三下载子模块,用于在所述安全系统中将需要下载的所述第二文件平均分成多个数据块,分别从每个所述第三源节点或者第四源节点下载一个数据块;或者
    第四下载子模块,用于根据每个所述第三源节点或者第四源节点的下载历史记录获取每个所述第三源节点或者第四源节点的下载性能参数,根据所述下载性能参数为其中下载带宽和/或下载速度大的所述第三源节点或者第四源节点分配多于其他的所述第三源节点或者第四源节点的下载任务。
  10. 根据权利要求6~9任一项所述的装置,其特征在于,当所述双系统下载文件的装置包括多模模式时,所述下载模块在所述标准系统同时在多模模式下下载所述第一文件;以及
    所述下载模块在所述安全系统同时在多模模式下下载所述第二文件;或者
    所述下载模块比较所述第一文件与所述第二文件所占用的存储空间;
    所述下载模块在所述第一文件的所占用的存储空间大于所述第二文件的所占用的存储空间时,所述标准系统在所述多模模式下下载所述第一文件;所述安全系统在所述多模模式中的一个单一模式下下载所述第二文件;或者
    所述下载模块在所述第二文件的所占用的存储空间大于所述第一文件的所占用的存储空间时,所述安全系统在所述多模模式下下载所述第二文件;所述标准系统在所述多模模式中的一个单一模式下下载所述第二文件。
PCT/CN2015/085855 2015-06-05 2015-07-31 双系统下载文件的方法及其装置 WO2016192195A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510307043.9A CN106295410B (zh) 2015-06-05 2015-06-05 双系统下载文件的方法及其装置
CN201510307043.9 2015-06-05

Publications (1)

Publication Number Publication Date
WO2016192195A1 true WO2016192195A1 (zh) 2016-12-08

Family

ID=57439843

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/085855 WO2016192195A1 (zh) 2015-06-05 2015-07-31 双系统下载文件的方法及其装置

Country Status (2)

Country Link
CN (1) CN106295410B (zh)
WO (1) WO2016192195A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566609B (zh) * 2017-08-07 2020-01-10 宇龙计算机通信科技(深圳)有限公司 一种下载任务处理方法、装置、终端和存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141921A (zh) * 2010-02-03 2011-08-03 华为终端有限公司 一种终端设备系统升级方法及终端设备
CN102984281A (zh) * 2012-12-20 2013-03-20 湖南纽曼数码科技有限公司 一种多系统车载设备的自动升级方法
CN104657658A (zh) * 2015-02-13 2015-05-27 深圳酷派技术有限公司 一种安装应用的方法及终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7120691B2 (en) * 2002-03-15 2006-10-10 International Business Machines Corporation Secured and access controlled peer-to-peer resource sharing method and apparatus
CN104123341A (zh) * 2014-06-26 2014-10-29 小米科技有限责任公司 文件下载方法、装置及路由设备
CN104683452B (zh) * 2015-02-09 2018-11-06 深圳酷派技术有限公司 一种数据下载方法、服务器及多系统移动终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141921A (zh) * 2010-02-03 2011-08-03 华为终端有限公司 一种终端设备系统升级方法及终端设备
CN102984281A (zh) * 2012-12-20 2013-03-20 湖南纽曼数码科技有限公司 一种多系统车载设备的自动升级方法
CN104657658A (zh) * 2015-02-13 2015-05-27 深圳酷派技术有限公司 一种安装应用的方法及终端

Also Published As

Publication number Publication date
CN106295410A (zh) 2017-01-04
CN106295410B (zh) 2019-04-12

Similar Documents

Publication Publication Date Title
TWI430102B (zh) 網路卡資源配置方法、儲存媒體、及電腦
CN113596191B (zh) 一种数据处理方法、网元设备以及可读存储介质
CN103581245A (zh) 一种内容分发网络内容分发的方法及系统
CN108920111B (zh) 数据共享方法及分布式数据共享系统
WO2016197628A1 (zh) 终端会议负载均衡方法、装置及系统
CN110727738B (zh) 基于数据分片的全局路由系统、电子设备及存储介质
US20110258318A1 (en) Network device and method for dynamically allocating connection resources
KR102329095B1 (ko) 네트워크 접속 방법, 관련 기기 및 시스템
WO2016180188A1 (zh) 分发建链方法、装置和系统
EP2709337B1 (en) Service data processing method, device and system
CN103441932A (zh) 一种主机路由表项生成方法及设备
CN113572864B (zh) 一种数据处理方法、网元设备以及可读存储介质
JP2022507816A (ja) V2xメッセージ送信方法、装置、及びシステム
CN110909030B (zh) 一种信息处理方法及服务器集群
WO2020119699A1 (zh) 物联网的资源发布方法、装置、设备及存储介质
CN105554126A (zh) 一种通过cdn加速机制实现多数据中心分布式部署的方法
CN112637088B (zh) 网络系统、网络处理方法和装置、电子设备以及计算机可读存储介质
WO2016192195A1 (zh) 双系统下载文件的方法及其装置
CN114866854B (zh) 视频接入方式动态分配方法、系统、电子设备和存储介质
CN101146107B (zh) 一种下载数据的方法及装置
TWI571077B (zh) 整合網路裝置及其服務整合方法
CN108259345B (zh) 端口生成方法和装置
CN109257227B (zh) 数据传输中的偶联管理方法、装置及系统
US8730811B2 (en) Managing network traffic
KR102367857B1 (ko) 노하드(no-hdd) 서비스를 제공하는 장치 및 서버

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: 15893851

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 30.04.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15893851

Country of ref document: EP

Kind code of ref document: A1