[go: up one dir, main page]

CN105162885B - Resource downloading method, resource downloading system and terminal - Google Patents

Resource downloading method, resource downloading system and terminal Download PDF

Info

Publication number
CN105162885B
CN105162885B CN201510623673.7A CN201510623673A CN105162885B CN 105162885 B CN105162885 B CN 105162885B CN 201510623673 A CN201510623673 A CN 201510623673A CN 105162885 B CN105162885 B CN 105162885B
Authority
CN
China
Prior art keywords
resource
download
downloading
downloaded
thread
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.)
Expired - Fee Related
Application number
CN201510623673.7A
Other languages
Chinese (zh)
Other versions
CN105162885A (en
Inventor
江跃龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201510623673.7A priority Critical patent/CN105162885B/en
Priority to PCT/CN2015/093493 priority patent/WO2017049722A1/en
Publication of CN105162885A publication Critical patent/CN105162885A/en
Application granted granted Critical
Publication of CN105162885B publication Critical patent/CN105162885B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention provides a kind of resource downloading method, resource downloading system and terminals, wherein resource downloading method includes: at least two user domain in the multiple user domain of control respectively to asset creation download thread to be downloaded;Resources to be downloaded are divided into multiple resource blocks identical with download thread quantity, any resource block in multiple resource blocks includes head file and data length;Multiple resource blocks are respectively sent to corresponding download thread;Multiple resource blocks are downloaded according to head file and data length control download thread, wherein at least two user domain are connected to the Resource Server of resources to be downloaded by different communication channels.According to the technical solution of the present invention, the multichannel downloading to Internet resources is realized, the experience that user downloads resource is improved.

Description

Resource downloading method, resource downloading system and terminal
Technical field
The present invention relates to field of terminal technology, in particular to a kind of resource downloading method, a kind of resource downloading system With a kind of terminal.
Background technique
With becoming increasingly abundant for internet information, more and more users obtain resource letter by way of the Internet download Breath, still, when being downloaded using single communication channel to any resource file, probably due to network congestion and cause downloading slow Slowly or even failed download.
In the related technology, in order to improve download efficiency, multiple download threads are created in single communication channel to any resource File is downloaded, and still, the channel quality in single communication channel still seriously affects download efficiency, under single communication channel Load mode has become the bottleneck for improving download efficiency.
Therefore, the new resource downloading scheme of one kind how is designed to ask to improve download efficiency as technology urgently to be resolved Topic.
Summary of the invention
The present invention is based at least one above-mentioned technical problem, proposes a kind of new resource downloading scheme, by Multiple user domain are created in terminal and Resource Server is connected to by multiple and different communication channels, to overcome single communication logical Limitation of the road to resource downloading process, improves the download efficiency of user.
In view of this, the embodiment of first invention of the invention, proposes a kind of resource downloading method, comprising: control institute At least two user domain in multiple user domain are stated respectively to asset creation download thread to be downloaded;The resources to be downloaded are drawn It is divided into multiple resource blocks identical with the download thread quantity, any resource block in the multiple resource block includes head file And data length;The multiple resource block is respectively sent to corresponding download thread;According to the head file and the data Length controls the download thread and is downloaded to the multiple resource block, wherein at least two user domain passes through difference Communication channel be connected to the Resource Servers of the resources to be downloaded.
In the technical scheme, by least two user domain of control to asset creation download thread to be downloaded, and according to Head file and data length control the downloading process of each thread, to realize the effect of multichannel downloading, overcome single Limitation of the communication channel to resource downloading process, improves the download efficiency of user.
Specifically, the user domain created at the terminal can all download resource, or choose several specified users Domain carries out resource block downloading, for example, a user domain is connected to Resource Server by the communication channel of mobile cellular data, separately One user domain accesses hot spot 1 by Wi-Fi and is connected to Resource Server, another user domain accesses hot spot 2 by Wi-Fi and connects It is connected to Resource Server, resources to be downloaded are divided into three resource blocks and distribute to above three user domain, and any of the above-described User domain at least creates a download thread and is downloaded to the resource block of distribution.
Wherein, after resource block is divided, URLs (Uniform Resource Locators, the whole world money of each resource block Source finger URL) head file and data length be that determining namely corresponding download thread is determined according to head file and data length Download resource block.
It is worth it is emphasized that each user domain can create multiple download threads, namely need further to resource block It is divided into child resource block, and determines the head file and data length of each child resource block, is carried out with distributing to each download thread Downloading.
In the above-mentioned technical solutions, it is preferred that further include: determine the identity information of the download thread;Under described The local storage space of the terminal is written in the multiple resource block for completing downloading by the identity information for carrying thread.
In the technical scheme, pass through the identity information of determining download thread, it is determined that the allocation order of resource block, thus After whole resource blocks complete downloading, multiple resource blocks are integrated by resource packet according to the identity information of download thread, and be written Local storage space, to complete the downloading of resource.
In any of the above-described technical solution, it is preferred that controlling at least two user domain in the multiple user domain Respectively to asset creation download thread to be downloaded before, further includes: by virtual network device by least two user domain with The Resource Server creation connection;The resource sent to the Resource Server is filtered processing, described under to determine Carry resource.
In the technical scheme, at least two user domain are connected to by Resource Server by virtual network device, and right Resource is filtered processing, realizes being isolated for user domain and Resource Server, and then improve the safety of user domain, reduces The threat of junk information and Virus Info to terminal in downloading process.
In any of the above-described technical solution, it is preferred that according to the head file and the data length control it is described under It carries thread to be downloaded the multiple resource block, specifically includes the following steps: determining any thread in the download thread To the buffer area of a resource block of distribution;Control any thread according to the buffer area from the head file to described point The resource block matched is downloaded, until the length of downloading data is mutually simultaneously stopped with the data length.
In the technical scheme, the efficiency of downloading is improved to the buffer area of resource block by determining download thread, namely Threshold value buffer area, which avoids, downloads situations such as interrupting caused by unstable networks.
In any of the above-described technical solution, it is preferred that the resources to be downloaded include audio resource, video resource, text At least one of this resource and picture resource.
The embodiment of second invention of the invention proposes a kind of resource downloading system, comprising: control unit, for controlling At least two user domain in the multiple user domain are made respectively to asset creation download thread to be downloaded;Division unit is used for The resources to be downloaded are divided into multiple resource blocks identical with the download thread quantity, appointing in the multiple resource block One resource block includes head file and data length;Transmission unit, for by the multiple resource block be respectively sent to it is corresponding under Carry thread;Download unit, for controlling the download thread to the multiple money according to the head file and the data length Source block is downloaded, wherein at least two user domain is connected to the resources to be downloaded by different communication channels Resource Server.
In the technical scheme, by least two user domain of control to asset creation download thread to be downloaded, and according to Head file and data length control the downloading process of each thread, to realize the effect of multichannel downloading, overcome single Limitation of the communication channel to resource downloading process, improves the download efficiency of user.
Specifically, the user domain created at the terminal can all download resource, or choose several specified users Domain carries out resource block downloading, for example, a user domain is connected to Resource Server by the communication channel of mobile cellular data, separately One user domain accesses hot spot 1 by Wi-Fi and is connected to Resource Server, another user domain accesses hot spot 2 by Wi-Fi and connects It is connected to Resource Server, resources to be downloaded are divided into three resource blocks and distribute to above three user domain, and any of the above-described User domain at least creates a download thread and is downloaded to the resource block of distribution.
Wherein, after resource block is divided, URLs (Uniform Resource Locators, the whole world money of each resource block Source finger URL) head file and data length be that determining namely corresponding download thread is determined according to head file and data length Download resource block.
It is worth it is emphasized that each user domain can create multiple download threads, namely need further to resource block It is divided into child resource block, and determines the head file and data length of each child resource block, is carried out with distributing to each download thread Downloading.
In the above-mentioned technical solutions, it is preferred that further include: determination unit, for determining that the identity of the download thread is believed Breath;Writing unit, for will be completed described in the multiple resource block write-in of downloading according to the identity information of the download thread The local storage space of terminal.
In the technical scheme, pass through the identity information of determining download thread, it is determined that the allocation order of resource block, thus After whole resource blocks complete downloading, multiple resource blocks are integrated by resource packet according to the identity information of download thread, and be written Local storage space, to complete the downloading of resource.
In any of the above-described technical solution, it is preferred that further include: connection creating unit, for being set by virtual network It is standby to connect at least two user domain and Resource Server creation;Filter element, for the Resource Server The resource of transmission is filtered processing, with the determination resources to be downloaded.
In the technical scheme, at least two user domain are connected to by Resource Server by virtual network device, and right Resource is filtered processing, realizes being isolated for user domain and Resource Server, and then improve the safety of user domain, reduces The threat of junk information and Virus Info to terminal in downloading process.
In any of the above-described technical solution, it is preferred that the determination unit is also used to: determining in the download thread Buffer area of any thread to a resource block of distribution;Described control unit is also used to: control any thread is according to institute It states buffer area to be downloaded from a resource block of the head file to the distribution, until the length of downloading data and the data Length is mutually simultaneously stopped.
In the technical scheme, the efficiency of downloading is improved to the buffer area of resource block by determining download thread, namely Threshold value buffer area, which avoids, downloads situations such as interrupting caused by unstable networks.
The embodiment of third invention of the invention, proposes a kind of terminal, comprising: such as the money of any of the above-described technical solution Source download system.
By above technical scheme, by least two user domain of control to asset creation download thread to be downloaded, and root The downloading process of each thread is controlled according to head file and data length, to realize the effect of multichannel downloading, overcomes list Limitation of one communication channel to resource downloading process, improves the download efficiency of user.
Detailed description of the invention
Fig. 1 shows the schematic flow diagram of the resource downloading method of embodiment according to the present invention;
Fig. 2 shows the schematic block diagrams of the resource downloading system of embodiment according to the present invention;
Fig. 3 shows the schematic block diagram of the terminal of embodiment according to the present invention;
Fig. 4 shows the schematic block diagram of the multi-user domain of the terminal of embodiment according to the present invention;
Fig. 5 shows the schematic diagram of resource downloading scheme according to an embodiment of the invention;
Fig. 6 shows the schematic diagram of resource downloading scheme according to another embodiment of the invention;
Fig. 7 shows the schematic flow diagram of the resource downloading scheme of embodiment according to the present invention.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the schematic flow diagram of the resource downloading method of embodiment according to the present invention.
As shown in Figure 1, the resource downloading method of embodiment according to the present invention, comprising: step 102, control multiple users At least two user domain in domain are respectively to asset creation download thread to be downloaded;Step 104, by resources to be downloaded be divided into The identical multiple resource blocks of download thread quantity, any resource block in multiple resource blocks includes head file and data length;Step Rapid 106, multiple resource blocks are respectively sent to corresponding download thread;Step 108, according under head file and data length control It carries thread to be downloaded multiple resource blocks, wherein at least two user domain are connected to be downloaded by different communication channels The Resource Server of resource.
In the technical scheme, by least two user domain of control to asset creation download thread to be downloaded, and according to Head file and data length control the downloading process of each thread, to realize the effect of multichannel downloading, overcome single Limitation of the communication channel to resource downloading process, improves the download efficiency of user.
Specifically, the user domain created at the terminal can all download resource, or choose several specified users Domain carries out resource block downloading, for example, a user domain is connected to Resource Server by the communication channel of mobile cellular data, separately One user domain accesses hot spot 1 by Wi-Fi and is connected to Resource Server, another user domain accesses hot spot 2 by Wi-Fi and connects It is connected to Resource Server, resources to be downloaded are divided into three resource blocks and distribute to above three user domain, and any of the above-described User domain at least creates a download thread and is downloaded to the resource block of distribution.
Wherein, after resource block is divided, URLs (Uniform Resource Locators, the whole world money of each resource block Source finger URL) head file and data length be that determining namely corresponding download thread is determined according to head file and data length Download resource block.
It is worth it is emphasized that each user domain can create multiple download threads, namely need further to resource block It is divided into child resource block, and determines the head file and data length of each child resource block, is carried out with distributing to each download thread Downloading.
In the above-mentioned technical solutions, it is preferred that further include: determine the identity information of download thread;According to download thread Identity information will complete the local storage space of multiple resource blocks write-in terminal of downloading.
In the technical scheme, pass through the identity information of determining download thread, it is determined that the allocation order of resource block, thus After whole resource blocks complete downloading, multiple resource blocks are integrated by resource packet according to the identity information of download thread, and be written Local storage space, to complete the downloading of resource.
In any of the above-described technical solution, it is preferred that controlling at least two user domain difference in multiple user domain Before asset creation download thread to be downloaded, further includes: by virtual network device by least two user domain and resource service Device creation connection;The resource sent to Resource Server is filtered processing, to determine resources to be downloaded.
In the technical scheme, at least two user domain are connected to by Resource Server by virtual network device, and right Resource is filtered processing, realizes being isolated for user domain and Resource Server, and then improve the safety of user domain, reduces The threat of junk information and Virus Info to terminal in downloading process.
In any of the above-described technical solution, it is preferred that according to head file and data length control download thread to multiple Resource block is downloaded, specifically includes the following steps: determining any thread in download thread to a resource block of distribution Buffer area;It controls any thread and is downloaded according to buffer area from a resource block of the head file to distribution, until downloading data Length is mutually simultaneously stopped with data length.
In the technical scheme, the efficiency of downloading is improved to the buffer area of resource block by determining download thread, namely Threshold value buffer area, which avoids, downloads situations such as interrupting caused by unstable networks.
In any of the above-described technical solution, it is preferred that resources to be downloaded include audio resource, video resource, text money At least one of source and picture resource.
Fig. 2 shows the schematic block diagrams of the resource downloading system of embodiment according to the present invention.
As shown in Fig. 2, the resource downloading system 200 of embodiment according to the present invention, comprising: control unit 202 divides list Member 204, transmission unit 206 and download unit 208, wherein control unit 202 is used to control at least two in multiple user domain User domain is respectively to asset creation download thread to be downloaded, and division unit 204 is used to for resources to be downloaded being divided into and downloading wire The identical multiple resource blocks of number of passes amount, any resource block in multiple resource blocks includes head file and data length, transmission unit 206 for being respectively sent to corresponding download thread for multiple resource blocks, and download unit 208 is used for long according to head file and data Degree control download thread is downloaded multiple resource blocks, wherein at least two user domain are connected by different communication channels To the Resource Server of resources to be downloaded.
In the technical scheme, by least two user domain of control to asset creation download thread to be downloaded, and according to Head file and data length control the downloading process of each thread, to realize the effect of multichannel downloading, overcome single Limitation of the communication channel to resource downloading process, improves the download efficiency of user.
Specifically, the user domain created at the terminal can all download resource, or choose several specified users Domain carries out resource block downloading, for example, a user domain is connected to Resource Server by the communication channel of mobile cellular data, separately One user domain accesses hot spot 1 by Wi-Fi and is connected to Resource Server, another user domain accesses hot spot 2 by Wi-Fi and connects It is connected to Resource Server, resources to be downloaded are divided into three resource blocks and distribute to above three user domain, and any of the above-described User domain at least creates a download thread and is downloaded to the resource block of distribution.
Wherein, after resource block is divided, URLs (Uniform Resource Locators, the whole world money of each resource block Source finger URL) head file and data length be that determining namely corresponding download thread is determined according to head file and data length Download resource block.
It is worth it is emphasized that each user domain can create multiple download threads, namely need further to resource block It is divided into child resource block, and determines the head file and data length of each child resource block, is carried out with distributing to each download thread Downloading.
In the above-mentioned technical solutions, it is preferred that further include: determination unit 210 and writing unit 212, wherein determination unit 210 for determining that the identity letter of download thread, writing unit 212 are used to that downloading will to be completed according to the identity information of download thread The local storage space of multiple resource block write-in terminals.
In the technical scheme, pass through the identity information of determining download thread, it is determined that the allocation order of resource block, thus After whole resource blocks complete downloading, multiple resource blocks are integrated by resource packet according to the identity information of download thread, and be written Local storage space, to complete the downloading of resource.
In any of the above-described technical solution, it is preferred that further include: connection creating unit 214 and filter element 216, In, connection creating unit 214 is used to connect at least two user domain and Resource Server creation by virtual network device, mistake Filter unit 216 is for being filtered processing to the resource that Resource Server is sent, to determine resources to be downloaded.
In the technical scheme, at least two user domain are connected to by Resource Server by virtual network device, and right Resource is filtered processing, realizes being isolated for user domain and Resource Server, and then improve the safety of user domain, reduces The threat of junk information and Virus Info to terminal in downloading process.
In any of the above-described technical solution, it is preferred that determination unit 210 is also used to: determining any in download thread Buffer area of the thread to a resource block of distribution;Control unit 202 is also used to: controlling any thread according to buffer area from the beginning word Section is downloaded a resource block of distribution, until the length of downloading data is mutually simultaneously stopped with data length.
In the technical scheme, the efficiency of downloading is improved to the buffer area of resource block by determining download thread, namely Threshold value buffer area, which avoids, downloads situations such as interrupting caused by unstable networks.
Fig. 3 shows the schematic block diagram of the terminal of embodiment according to the present invention.
As shown in figure 3, the terminal 300 of embodiment according to the present invention, comprising: such as the resource of any of the above-described technical solution Download system 200.
Below with reference to fig. 4 to fig. 6, the resource downloading scheme of embodiment according to the present invention is specifically described.
As shown in figure 4, the present invention in built in mobile phone by having a user domain A (including firewall A01, road By device A02, virtual network interface A03 and communications network interface A04 etc.) and a user domain B (including firewall B01, road By device B02 and physical network interface B03 etc.), wherein the pipe for being responsible for user domain A data connection state is managed in data service concentratedly Reason, the foundation including data connection is removed and the maintenance of data connection state and notice etc., is then matched to corresponding routing letter After breath, data packet is transmitted to user domain B by corresponding virtual network interface A03.
In addition, data service centralized management is mainly responsible for the management of user domain B data connection status, receive and process simultaneously The data service connection request that user domain A is forwarded;Then pass through the filtering of firewall A01 and firewall B01 to data packet, Filtering only allows certain data packets to pass through, and forbids or abandon other data packets, and data packet here includes Veth The data packet and use of (virtual network device, virtual network device) interface A03 and physical network interface B03 input The data packet that family domain B web application issues.
As shown in figure 5, the resources to be downloaded that size is 6M are divided into three resource blocks, the size of each resource block is 2M, and distribute to user domain 1, user domain 2 and user domain 3 and be downloaded, since user domain 1, user domain 2 and user domain 3 are distinguished It is connected to Resource Server by the first communication channel, the second communication channel and third communication channel, user can be according to downloading Progress determines whether to start to download or suspend each download thread.
As shown in fig. 6, resources to be downloaded block File1 has been determined according to head file 1 and data length 1, similarly, according to head word Section 2 and data length 2 have determined resources to be downloaded block File2, and resources to be downloaded have been determined according to head file 3 and data length 3 Block File3, wherein when saving File2 to QQWubisetup.exe, can be realized using random writing grammer, such as:
RandomAccessFile threadfile=new RandomAccessFile (" QQWubisetup.exe ", " rwd");
Threadfile.seek(2097152)。
As shown in fig. 7, the resource downloading scheme of embodiment according to the present invention, comprising: step 702, determine trigger event Occur namely user's touch-control selects multi-user domain downloading mode;Step 704, operating system switches to multi-user domain operating mode; Step 706, after switching to multi-user domain, the communication channel of each user domain is determined, and determine the allocation order of resources to be downloaded; Step 708, start the downloading process of multiple user domain;Step 710, after whole user domain complete downloading process, under each Carry the resource random writing specified file position of thread.
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, it is contemplated that how to design a kind of new resource downloading The technical issues of scheme is to improve download efficiency.Therefore, the invention proposes a kind of new resource downloading schemes, by terminal It is middle to create multiple user domain and Resource Server is connected to by multiple and different communication channels, to overcome single communication channel pair The limitation of resource downloading process improves the download efficiency of user.These are only the preferred embodiment of the present invention, and does not have to In the limitation present invention, for those skilled in the art, the invention may be variously modified and varied.It is all of the invention Within spirit and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (8)

1.一种资源下载方法,适用于终端,所述终端创建有多个用户域,其特征在于,所述资源下载方法包括:1. A resource downloading method, applicable to a terminal, wherein the terminal is created with a plurality of user domains, wherein the resource downloading method comprises: 控制所述多个用户域中的至少两个用户域分别对待下载资源创建下载线程;Controlling at least two user domains in the plurality of user domains to create download threads for resources to be downloaded respectively; 将所述待下载资源划分为与所述下载线程数量相同的多个资源块,所述多个资源块中的任一资源块包括头字段和数据长度;dividing the resource to be downloaded into a plurality of resource blocks with the same number of download threads, and any resource block in the plurality of resource blocks includes a header field and a data length; 将所述多个资源块分别发送至对应的下载线程;sending the multiple resource blocks to the corresponding download threads respectively; 根据所述头字段和所述数据长度控制所述下载线程对所述多个资源块进行下载,Controlling the download thread to download the plurality of resource blocks according to the header field and the data length, 其中,所述至少两个用户域通过不同的通信信道连接至所述待下载资源的资源服务器;Wherein, the at least two user domains are connected to the resource server of the resource to be downloaded through different communication channels; 在控制所述多个用户域中的至少两个用户域分别对待下载资源创建下载线程前,还包括:Before controlling at least two user domains in the plurality of user domains to create download threads for downloading resources respectively, the method further includes: 通过虚拟网络设备将所述至少两个用户域与所述资源服务器创建连接;establishing a connection between the at least two user domains and the resource server through a virtual network device; 对所述资源服务器发送的资源进行过滤处理,以确定所述待下载资源。Perform filtering processing on the resource sent by the resource server to determine the resource to be downloaded. 2.根据权利要求1所述的资源下载方法,其特征在于,还包括:2. resource downloading method according to claim 1, is characterized in that, also comprises: 确定所述下载线程的身份信息;determining the identity information of the download thread; 根据所述下载线程的身份信息将完成下载的所述多个资源块写入所述终端的本地存储空间。Write the downloaded resource blocks into the local storage space of the terminal according to the identity information of the download thread. 3.根据权利要求1所述的资源下载方法,其特征在于,根据所述头字段和所述数据长度控制所述下载线程对所述多个资源块进行下载,具体包括以下步骤:3. The resource downloading method according to claim 1, characterized in that, controlling the downloading thread to download the plurality of resource blocks according to the header field and the data length, specifically comprising the following steps: 确定所述下载线程中的任一线程对分配的一个资源块的缓冲区;Determine the buffer of a resource block allocated by any thread in the download thread; 控制所述任一线程根据所述缓冲区从所述头字段对所述分配的一个资源块进行下载,至下载数据的长度与所述数据长度相同时停止。The any thread is controlled to download the allocated resource block from the header field according to the buffer, and stops when the length of the downloaded data is the same as the length of the data. 4.根据权利要求1至3中任一项所述的资源下载方法,其特征在于,所述待下载资源包括音频资源、视频资源、文本资源和图片资源中的至少一种。4 . The resource downloading method according to claim 1 , wherein the resources to be downloaded include at least one of audio resources, video resources, text resources and picture resources. 5 . 5.一种资源下载系统,适用于终端,所述终端创建有多个用户域,其特征在于,所述资源下载系统包括:5. A resource downloading system, suitable for a terminal, wherein the terminal is created with a plurality of user domains, wherein the resource downloading system comprises: 控制单元,用于控制所述多个用户域中的至少两个用户域分别对待下载资源创建下载线程;a control unit, configured to control at least two user domains in the plurality of user domains to create download threads for downloading resources respectively; 划分单元,用于将所述待下载资源划分为与所述下载线程数量相同的多个资源块,所述多个资源块中的任一资源块包括头字段和数据长度;a dividing unit, configured to divide the resource to be downloaded into a plurality of resource blocks with the same number as the downloading threads, and any resource block in the plurality of resource blocks includes a header field and a data length; 发送单元,用于将所述多个资源块分别发送至对应的下载线程;a sending unit, configured to send the multiple resource blocks to the corresponding download threads respectively; 下载单元,用于根据所述头字段和所述数据长度控制所述下载线程对所述多个资源块进行下载,a download unit, configured to control the download thread to download the multiple resource blocks according to the header field and the data length, 其中,所述至少两个用户域通过不同的通信信道连接至所述待下载资源的资源服务器;Wherein, the at least two user domains are connected to the resource server of the resource to be downloaded through different communication channels; 连接创建单元,用于通过虚拟网络设备将所述至少两个用户域与所述资源服务器创建连接;a connection creation unit, configured to create a connection between the at least two user domains and the resource server through a virtual network device; 过滤单元,用于对所述资源服务器发送的资源进行过滤处理,以确定所述待下载资源。A filtering unit, configured to filter the resources sent by the resource server to determine the resources to be downloaded. 6.根据权利要求5所述的资源下载系统,其特征在于,还包括:6. The resource downloading system according to claim 5, characterized in that, further comprising: 确定单元,用于确定所述下载线程的身份信息;a determining unit for determining the identity information of the download thread; 写入单元,用于根据所述下载线程的身份信息将完成下载的所述多个资源块写入所述终端的本地存储空间。A writing unit, configured to write the plurality of downloaded resource blocks into the local storage space of the terminal according to the identity information of the downloading thread. 7.根据权利要求5所述的资源下载系统,其特征在于,7. The resource downloading system according to claim 5, wherein, 所述确定单元还用于:确定所述下载线程中的任一线程对分配的一个资源块的缓冲区;The determining unit is further configured to: determine a buffer of a resource block allocated by any thread pair in the downloading threads; 所述控制单元还用于:控制所述任一线程根据所述缓冲区从所述头字段对所述分配的一个资源块进行下载,至下载数据的长度与所述数据长度相同时停止。The control unit is further configured to: control any thread to download the allocated resource block from the header field according to the buffer, and stop when the length of the downloaded data is the same as the length of the data. 8.一种终端,其特征在于,包括:如权利要求5至7中任一项所述的资源下载系统。8. A terminal, comprising: the resource downloading system according to any one of claims 5 to 7.
CN201510623673.7A 2015-09-25 2015-09-25 Resource downloading method, resource downloading system and terminal Expired - Fee Related CN105162885B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510623673.7A CN105162885B (en) 2015-09-25 2015-09-25 Resource downloading method, resource downloading system and terminal
PCT/CN2015/093493 WO2017049722A1 (en) 2015-09-25 2015-10-31 Resource downloading method, resource downloading system, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510623673.7A CN105162885B (en) 2015-09-25 2015-09-25 Resource downloading method, resource downloading system and terminal

Publications (2)

Publication Number Publication Date
CN105162885A CN105162885A (en) 2015-12-16
CN105162885B true CN105162885B (en) 2019-04-12

Family

ID=54803637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510623673.7A Expired - Fee Related CN105162885B (en) 2015-09-25 2015-09-25 Resource downloading method, resource downloading system and terminal

Country Status (2)

Country Link
CN (1) CN105162885B (en)
WO (1) WO2017049722A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338657B (en) * 2022-03-15 2022-07-12 北京搜狐新动力信息技术有限公司 A method and device for downloading a video file, an electronic device, and a storage medium
CN119402704A (en) * 2025-01-02 2025-02-07 杭州阿启视科技有限公司 Android mobile video cache optimization method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391454A (en) * 2013-07-12 2013-11-13 三星电子(中国)研发中心 Multithreading downloading method and device
CN103716719A (en) * 2013-12-02 2014-04-09 乐视网信息技术(北京)股份有限公司 Multimedia file downloading method and user terminal
CN103841181A (en) * 2014-01-24 2014-06-04 东蓝数码股份有限公司 Local area network multi-threading file transmission method
CN104219271A (en) * 2013-06-05 2014-12-17 北京齐尔布莱特科技有限公司 Method for synchronizing multiple servers on basis of multi-thread asynchronous download pages
CN104702646A (en) * 2013-12-09 2015-06-10 腾讯科技(深圳)有限公司 Data transmission method and device and communication system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8230098B2 (en) * 2006-05-10 2012-07-24 At&T Intellectual Property Ii, L.P. System and method for streaming media objects
CN101247582A (en) * 2007-02-16 2008-08-20 乐金电子(中国)研究开发中心有限公司 Mobile phone downloading method based on WAP protocol and mobile phone adopting the same
CN101437051B (en) * 2008-12-04 2011-09-28 四川长虹电器股份有限公司 Method for downloading network resource
CN102710630B (en) * 2012-05-29 2016-03-16 新华网股份有限公司 A kind of cloud of multithreading burst uploads method for down loading and system
CN103327415B (en) * 2013-06-05 2017-04-12 北京奇虎科技有限公司 Method and device for accelerating network video downloading
CN103533097B (en) * 2013-10-10 2017-03-15 北京京东尚科信息技术有限公司 A kind of web crawlers download parsing method and device
CN104915227B (en) * 2015-05-25 2019-07-30 努比亚技术有限公司 A kind of method for upgrading software and system of multi-source multithreading

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219271A (en) * 2013-06-05 2014-12-17 北京齐尔布莱特科技有限公司 Method for synchronizing multiple servers on basis of multi-thread asynchronous download pages
CN103391454A (en) * 2013-07-12 2013-11-13 三星电子(中国)研发中心 Multithreading downloading method and device
CN103716719A (en) * 2013-12-02 2014-04-09 乐视网信息技术(北京)股份有限公司 Multimedia file downloading method and user terminal
CN104702646A (en) * 2013-12-09 2015-06-10 腾讯科技(深圳)有限公司 Data transmission method and device and communication system
CN103841181A (en) * 2014-01-24 2014-06-04 东蓝数码股份有限公司 Local area network multi-threading file transmission method

Also Published As

Publication number Publication date
CN105162885A (en) 2015-12-16
WO2017049722A1 (en) 2017-03-30

Similar Documents

Publication Publication Date Title
KR101962620B1 (en) Software-defined network-based method and system for implementing content distribution network
CN103476062B (en) Data flow scheduling method, equipment and system
CN105009521B (en) Message treatment method and gateway
EP2649759B1 (en) Technique for managing traffic at a router
CN103248521B (en) Method, device and the communication system of a kind of business game rule configuration
CN104253767B (en) A kind of implementation method of virtual burst network and a kind of interchanger
CN105122747B (en) Control device and control method in SDN network
US10701582B2 (en) Dynamic application QoS profile provisioning
WO2015096417A1 (en) State migration method and switch in software defined network
CN104394080A (en) Method and device for achieving function of security group
CN106453126A (en) Virtual machine traffic control method and device
CN111194543B (en) Flow control system for use in a network
JP2006512662A (en) Quality of service for iSCSI
CN103533527A (en) Service data stream sending processing method and device
CN108738071A (en) A kind of method and device that resource is established
CN104426813A (en) Method, device and controller for controlling flow table updating
CN106487590A (en) A method of realizing port speed limit of batch virtual machines based on virtual network
CN104641606B (en) The method and virtual network management entity of Internet resources equilibrium treatment
CN105162885B (en) Resource downloading method, resource downloading system and terminal
CN102546840B (en) Method, device and system for binding virtual serial port and physical serial port
CN100370843C (en) Resource allocation strategy system and method for controlling communication resource allocation
CN104135379B (en) Port control method and device based on OpenFlow protocol
CN105812277A (en) Access request control method, access request control system and communication equipment
WO2017211161A1 (en) Resource management method and device based on software defined network
CN108092787B (en) A cache adjustment method, network controller and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190412

Termination date: 20210925