CN109040230A - Method for down loading, device, equipment/terminal/server and the storage medium of file - Google Patents
Method for down loading, device, equipment/terminal/server and the storage medium of file Download PDFInfo
- Publication number
- CN109040230A CN109040230A CN201810858653.1A CN201810858653A CN109040230A CN 109040230 A CN109040230 A CN 109040230A CN 201810858653 A CN201810858653 A CN 201810858653A CN 109040230 A CN109040230 A CN 109040230A
- Authority
- CN
- China
- Prior art keywords
- file destination
- mobile terminal
- download
- speed
- downloading
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the present application provides method for down loading, device, equipment/terminal/server and the computer readable storage medium of a kind of file destination, is related to mobile Internet field.Wherein, the method for down loading of the file destination includes: the speed of download of the file destination in the detection mobile terminal;The maximum bandwidth of speed of download and the mobile terminal based on the file destination, quantity of the adjustment for the network thread of file destination downloading.By the embodiment of the present application, the network bandwidth of mobile terminal can make full use of to improve the speed of download of file destination.
Description
Technical field
The invention relates to mobile Internet field more particularly to a kind of method for down loading of file destination, device, set
Standby/terminal/server and computer readable storage medium.
Background technique
Caching in bandwidth, routing node and processor in mobile Internet etc., are all the resources of mobile Internet.?
Certain time, if the demand to resource a certain in network has been more than the available part that the resource can be provided, the performance of network is just
It can degenerate, thus the case where generating network congestion.In order to solve the problems, such as network congestion, the prior art is the congestion by TCP
Control strategy prevents in excessive data injection network, and the router or link in network can in this way will not overload.Tool
Body, TCP controls data flow using a kind of windowing mechanism.More specifically, when a connection is established, every one end point of connection
The data of input are saved with a buffer area, and the size of buffer area is sent to the other end.When the data arrives, recipient
Confirmation is sent, wherein containing oneself remaining buffer size.Wherein, the size of remaining buffer space is referred to as window
Mouthful, it is indicated that the notice of window size is known as window advertisement.
However, congestion control of the TCP based on window and not good enough.If file download is carried out by single thread, due to TCP
The limitation of window size, single thread downloading is difficult to make full use of network bandwidth, and the speed of download of file cannot obtain sufficiently
Performance.
Summary of the invention
In view of this, one of the technical issues of the embodiment of the present application is solved is to provide a kind of side of file destination downloading
Case, to solve the downloading speed existing in the prior art for being unable to fully improve file destination using the network bandwidth of mobile terminal
The problem of spending.
The embodiment of the present application provides a kind of method for down loading of file destination, which comprises detection is described mobile whole
The speed of download of file destination in end;The maximum bandwidth of speed of download and the mobile terminal based on the file destination,
Quantity of the adjustment for the network thread of file destination downloading.
The embodiment of the present application also provides a kind of download apparatus of file destination, described device includes: first detection module,
It is configured as detecting the speed of download of the file destination in the mobile terminal;Module is adjusted, is configured as based on the target
The maximum bandwidth of the speed of download of file and the mobile terminal, number of the adjustment for the network thread of file destination downloading
Amount.
The embodiment of the present application also provides a kind of equipment/terminal/servers, comprising: one or more processors;Storage dress
It sets, is configured to store one or more programs;When one or more of programs are executed by one or more of processors, make
Obtain the method for down loading that one or more of processors realize file destination as described above.
The embodiment of the present application also provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey
The method for down loading of file destination as described above is realized when sequence is executed by processor.
The technical solution downloaded by file destination provided by the embodiments of the present application detects the file destination in mobile terminal
Speed of download, and the maximum bandwidth of the speed of download based on file destination and mobile terminal, adjustment downloads for file destination
The quantity of network thread can make full use of the network bandwidth of mobile terminal compared with existing other way to improve mesh
Mark the speed of download of file.
Detailed description of the invention
The some specific of the embodiment of the present application is described in detail by way of example and not limitation with reference to the accompanying drawings hereinafter
Embodiment.Identical appended drawing reference denotes same or similar part or part in attached drawing.Those skilled in the art should manage
Solution, the drawings are not necessarily drawn to scale.In attached drawing:
Fig. 1 is the step flow chart according to a kind of method for down loading of file destination of the embodiment of the present application one;
Fig. 2 is the step flow chart according to a kind of method for down loading of file destination of the embodiment of the present application two;
Fig. 3 is the structural block diagram according to a kind of download apparatus of file destination of the embodiment of the present application three;
Fig. 4 is the structural block diagram according to a kind of download apparatus of file destination of the embodiment of the present application four;
Fig. 5 is the structural block diagram according to a kind of download apparatus of file destination of the embodiment of the present application five;
Fig. 6 is the structural schematic diagram according to a kind of equipment/terminal/server of the embodiment of the present application six.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present application, below in conjunction with the application
Attached drawing in embodiment, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described reality
Applying example only is the embodiment of the present application a part of the embodiment, instead of all the embodiments.Based on the implementation in the embodiment of the present application
The range of the embodiment of the present application protection all should belong in example, those of ordinary skill in the art's every other embodiment obtained.
Embodiment one
Referring to Fig.1, a kind of step flow chart of the method for down loading of file destination according to the embodiment of the present application one is shown.
The method for down loading of the file destination of the present embodiment the following steps are included:
Step S101: the speed of download of the file destination in the mobile terminal is detected.
In the embodiment of the present application, the mobile terminal may include at least one of following: mobile unit, amusement are set
Standby, advertising equipment, personal digital assistant (PDA), tablet computer, laptop, handheld device, intelligent glasses, intelligent hand
Table, wearable device, virtual display device or display enhancing equipment (such as Google Glass, Oculus Rift, Hololens,
Gear VR).The file destination may include at least one of following: text, picture, sequence of frames of video, compressed package, installation
Packet.It is understood that above description is exemplary only, the embodiment of the present application does not do any restriction to this.
In some optional embodiments, the speed of download of file destination can be detected by the relative client of mobile terminal.
It is understood that detecting to the speed of download of file destination can be used according to actual needs by those skilled in the art
Any suitable detection mode realizes that the embodiment of the present application does not do any restriction to this.
Step S102: the maximum bandwidth of speed of download and the mobile terminal based on the file destination, adjustment are used for
The quantity of the network thread of the file destination downloading.
When in the embodiment of the present application, by mobile terminal execution downloading task, need even to connect mobile terminal to the Net
File destination required for downloading afterwards, locating network environment generally includes mobile network and WiFi network when connecting network.
Wherein, mobile network includes common 2G network, 3G network, 4G network etc..WiFi network makes to move using WiFi wireless signal
Terminal can not carry out wireless networking by mobile networks such as 2G network, 3G network, 4G networks.In addition, by WiFi network
The stability and data interaction speed of net will be substantially better than the mobile networks such as 2G network, 3G network, 4G network.Thus may be used
See, for mobile terminal when executing downloading task, the network bandwidth of mobile terminal is variation, needs real-time detection and compares ability
Obtain the maximum bandwidth of mobile terminal.In some optional embodiments, downlink of the mobile terminal within the unit time is detected
Flow value;According to downstream magnitude of the mobile terminal within the unit time, the current bandwidth of the mobile terminal is determined;Such as
The current bandwidth of mobile terminal described in fruit is greater than predetermined maximum bandwidth, it is determined that the current bandwidth of the mobile terminal is
The maximum bandwidth of the mobile terminal.Wherein, downstream magnitude of the mobile terminal within the unit time includes the movement
The flow that terminal is downloaded file within the unit time or generated when receiving the feedback of access object.It is understood that any
Determine that the embodiment of the maximum bandwidth of mobile terminal may be applicable to this, the embodiment of the present application does not do any restriction to this.
In some optional embodiments, when determining the current bandwidth of the mobile terminal, the mobile terminal can be based on
Downstream magnitude within the unit time converts to obtain the current bandwidth of the mobile terminal.It is understood that above description
Exemplary only, the embodiment of the present application does not do any restriction to this.
In a specific example, the maximum bandwidth numerical value for the terminal device being locally stored can be obtained first, and assignment becomes
Then amount starts the background service that timing shift detection moves user equipment downlink flow, obtains the current bandwidth numerical value of mobile terminal.If
The current bandwidth numerical value of mobile terminal is greater than the maximum bandwidth of predetermined mobile terminal, then uses the current band of mobile terminal
Wide numerical value updates the maximum bandwidth of mobile terminal, and assigned variable.If the current bandwidth numerical value of mobile terminal is less than or equal to
The maximum bandwidth of predetermined mobile terminal is then spaced the bandwidth numerical value that preset time period obtains mobile terminal again.It repeats
The above process, the maximum bandwidth of real-time update mobile terminal.Wherein, the preset time period can by those skilled in the art according to
Actual needs is set, and the embodiment of the present application does not do any restriction to this.It is understood that above description is merely illustrative
, the embodiment of the present application does not do any restriction to this.
In the embodiment of the present application, the network thread can be regarded as download channel, and a network thread is exactly a mesh
The download channel of file is marked, multiple network threads are namely opened multiple download channels simultaneously and are downloaded to file destination.It is logical
It crosses and opens multiple network threads file destination is downloaded, can be improved the utilization rate of the network bandwidth of mobile terminal, and mention
The speed of download of high file destination.It is understood that above description is exemplary only, the embodiment of the present application does not appoint this
What is limited.
It in a particular embodiment, can court when the quantity for the network thread downloaded in adjustment for the file destination
Can make full use of the network bandwidth of mobile terminal but also improve the direction of the speed of download of file destination and be adjusted.It can be with
Understand, above description is exemplary only, and the embodiment of the present application does not do any restriction to this.
By the method for down loading of file destination provided by the embodiments of the present application, detect under the file destination in mobile terminal
Carry speed, and the maximum bandwidth of the speed of download based on file destination and mobile terminal, net of the adjustment for file destination downloading
The quantity of winding thread journey can make full use of the network bandwidth of mobile terminal compared with existing other way to improve target text
The speed of download of part.
The method for down loading of the file destination of the present embodiment can be held by any suitable equipment with data-handling capacity
Row, including but not limited to: mobile unit, amusement equipment, advertising equipment, personal digital assistant (PDA), tablet computer, notebook
Computer, handheld device, smart glasses, smart watches, wearable device, virtual display device or display enhancing equipment are (such as
Google Glass, Oculus Rift, Hololens, Gear VR) etc..
Embodiment two
Referring to Fig. 2, a kind of step flow chart of the method for down loading of file destination according to the embodiment of the present application two is shown.
The method for down loading of the file destination of the present embodiment the following steps are included:
In step s 201, the speed of download of the file destination in the mobile terminal is detected.
Since step S201 is similar with above-mentioned steps S101, details are not described herein.
In step S202, the ratio of the speed of download of the file destination and the maximum bandwidth of the mobile terminal is determined
Whether default ratio is less than.
In some optional embodiments, the default ratio can be 80%.It is understood that the default ratio can be by
Those skilled in the art set according to actual needs, and the embodiment of the present application does not do any restriction to this.
It is equal to or more than in the ratio of the speed of download and the maximum bandwidth of the mobile terminal that determine the file destination
When default ratio, then explanation has reached for the quantity of the network thread of file destination downloading and makes full use of mobile terminal most
Big bandwidth is come the standard that is downloaded to file destination, at this point, not needing network thread of the adjustment for file destination downloading
Quantity.It is understood that above description is exemplary only, the embodiment of the present application does not do any restriction to this.
In the embodiment of the present application, after the quantity for increasing network thread, the speed of download of file destination increases, and increase pair
The occupancy of the network bandwidth of mobile terminal, and be currently running in the system of mobile terminal inside task, need to occupy certain bandwidth
Might not there was only downloading task, if downloading task by bandwidth all occupy, it will the normal work of other tasks is made
At extreme influence, thus the normal work in order to guarantee other tasks, and downloading task can be made to occupy bandwidth more as far as possible, reach
The default ratio can be arranged for downloading task in speed of download as quickly as possible.
In step S203, if it is determined that the speed of download of the file destination and the maximum bandwidth of the mobile terminal
When ratio is less than default ratio, determine whether the current quantity of the network thread for file destination downloading is less than preset quantity.
Wherein, the preset quantity can be set according to actual needs by those skilled in the art, the embodiment of the present application
Any restriction is not done to this.
When determining that the current quantity of the network thread for file destination downloading is greater than or equal to preset quantity, then illustrate
The quantity for being currently used in the network thread of file destination downloading has exceeded the data transmission pressure of mobile terminal, at this point, not needing
Quantity of the adjustment for the network thread of file destination downloading.It is understood that above description is exemplary only, the application
Embodiment does not do any restriction to this.
In the embodiment of the present application, the normal work of the various tasks of mobile terminal not only needs bandwidth, it is also necessary to various
The system resources such as cpu resource and memory source.When the quantity for the network thread downloaded for file destination is more than preset quantity,
The cpu resource and memory source that file destination downloading task occupies are more than preset threshold, so that mobile terminal does not have enough systems
System resource guarantees the normal works of other tasks.Therefore, in order to guarantee mobile terminal other tasks normal work, can be with
For the quantity for the network thread downloaded for file destination, the preset quantity is set.
In step S204, if it is determined that the current quantity of the network thread for file destination downloading is less than preset quantity
When, increase the quantity of the network thread for file destination downloading.
In some optional embodiments, if it is determined that the current quantity of the network thread for file destination downloading is less than pre-
If when quantity, a network thread for file destination downloading can be increased.It is understood that specifically accelerating
It can be set according to actual needs by those skilled in the art, the embodiment of the present application does not do any restriction to this.
It in some optional embodiments, can after increasing the quantity for the network thread of file destination downloading
Using newly-increased network thread, the half of the file fragment that do not downloaded of the file destination is downloaded.Take this, it can be sufficiently sharp
It is downloaded with the file fragment do not downloaded of the newly-increased network thread to file destination.It is understood that above description
Exemplary only, the embodiment of the present application does not do any restriction to this.
In step S205, after increasing the quantity for the network thread of file destination downloading, interval is default
Period detects the speed of download of the file destination.
In some optional embodiments, the preset time period can be 5 seconds.It is understood that the preset time period
It can be set according to actual needs by those skilled in the art, the embodiment of the present application does not do any restriction to this.
In the embodiment of the present application, interval preset time period detects the speed of download of the file destination, can be avoided mesh
Detection is carried out to the speed of download of file destination when stable state has not yet been reached in the speed of download of mark file and causes testing result not
Accurate problem.
In the embodiment of the present application, if it is determined that the maximum belt of the speed of download of the file destination and the mobile terminal
Wide ratio is less than default ratio, and determines that the current quantity of the network thread for file destination downloading is less than preset quantity
When, then continue growing the quantity of the network thread for file destination downloading.That is, repeating the application implementation
Step S202 to step S205 in example, until the file destination in mobile terminal has been downloaded.
It in the embodiment of the present application, will be under all-network thread when the downloading task of all-network thread is complete
The file fragment of load is combined into file destination.
By the method for down loading of file destination provided by the embodiments of the present application, detect under the file destination in mobile terminal
Carry speed, if it is determined that the ratio of the speed of download of the file destination and the maximum bandwidth of the mobile terminal is less than default ratio
When being worth, and determining that the current quantity of the network thread for file destination downloading is less than preset quantity, then increase is for described
File destination downloading network thread quantity, compared with existing other way, guarantee mobile terminal except downloading task it
In the case that other outer tasks work normally, the network bandwidth of mobile terminal can make full use of to improve under file destination
Carry speed.
The method for down loading of the file destination of the present embodiment can be held by any suitable equipment with data-handling capacity
Row, including but not limited to: mobile unit, amusement equipment, advertising equipment, personal digital assistant (PDA), tablet computer, notebook
Computer, handheld device, smart glasses, smart watches, wearable device, virtual display device or display enhancing equipment are (such as
Google Glass, Oculus Rift, Hololens, Gear VR) etc..
Embodiment three
Referring to Fig. 3, a kind of structural block diagram of the download apparatus of file destination according to the embodiment of the present application three is shown.
The download apparatus of the file destination of the present embodiment includes: first detection module 301, is configured as detecting the movement
The speed of download of file destination in terminal;Module 302 is adjusted, speed of download and institute based on the file destination are configured as
State the maximum bandwidth of mobile terminal, quantity of the adjustment for the network thread of file destination downloading.
The download apparatus of the file destination of the present embodiment is for realizing target text corresponding in aforesaid plurality of embodiment of the method
The method for down loading of part, and the beneficial effect with corresponding embodiment of the method, details are not described herein.
Example IV
Referring to Fig. 4, a kind of structural block diagram of the download apparatus of file destination according to the embodiment of the present application four is shown.
The download apparatus of the file destination of the present embodiment includes: first detection module 401, is configured as detecting the movement
The speed of download of file destination in terminal;Module 405 is adjusted, speed of download and institute based on the file destination are configured as
State the maximum bandwidth of mobile terminal, quantity of the adjustment for the network thread of file destination downloading.
Optionally, before the adjustment module, described device further include: the second detection module 402 is configured as detecting
Downstream magnitude of the mobile terminal within the unit time;First determining module 403, is configured as according to the mobile terminal
Downstream magnitude within the unit time, determines the current bandwidth of the mobile terminal;Second determining module 404, is configured as
If the current bandwidth of the mobile terminal is greater than predetermined maximum bandwidth, it is determined that the current bandwidth of the mobile terminal
For the maximum bandwidth of the mobile terminal.
Optionally, the adjustment module 405, comprising: first increases module 4051, if being configured as the file destination
Speed of download and the ratio of maximum bandwidth of the mobile terminal be less than default ratio, then increase under the file destination
The quantity of the network thread of load.
Optionally, described device further include: third detection module 406 is configured as in the number for increasing the network thread
After amount, interval preset time period detects the speed of download of the file destination;Second increases module 407, if be configured as
The ratio of the speed of download of the file destination and the maximum bandwidth of the mobile terminal is less than the default ratio, then continues to increase
Add the quantity of the network thread for file destination downloading.
The download apparatus of the file destination of the present embodiment is for realizing target text corresponding in aforesaid plurality of embodiment of the method
The method for down loading of part, and the beneficial effect with corresponding embodiment of the method, details are not described herein.
Embodiment five
Referring to Fig. 5, a kind of structural block diagram of the download apparatus of file destination according to the embodiment of the present application five is shown.
The download apparatus of the file destination of the present embodiment includes: first detection module 501, is configured as detecting the movement
The speed of download of file destination in terminal;Module 502 is adjusted, speed of download and institute based on the file destination are configured as
State the maximum bandwidth of mobile terminal, quantity of the adjustment for the network thread of file destination downloading.
Optionally, the adjustment module 502, comprising: first increases module 5021, if being configured as the file destination
Speed of download and the ratio of maximum bandwidth of the mobile terminal be less than default ratio, then increase under the file destination
The quantity of the network thread of load.
Optionally, described device further include: download module 503 is configured as using newly-increased network thread, described in downloading
The half of the file fragment that do not downloaded of file destination.
Optionally, before described second increases module, described device further include: third determining module 504 is configured as
Determine whether the current quantity of the network thread is less than preset quantity;Third increases module 505, if being configured as the network
The current quantity of thread is less than the preset quantity, then continues growing the number of the network thread for file destination downloading
Amount.
The download apparatus of the file destination of the present embodiment is for realizing target text corresponding in aforesaid plurality of embodiment of the method
The method for down loading of part, and the beneficial effect with corresponding embodiment of the method, details are not described herein.
Embodiment six
Referring to Fig. 6, a kind of structural schematic diagram of equipment/terminal/server according to the embodiment of the present application six is shown, this
Application specific embodiment does not limit the specific implementation of equipment/terminal/server.
As shown in fig. 6, equipment/the terminal/server may include: processor (processor) 601, storage device
602。
Wherein:
Processor 601 can specifically execute in the method for down loading embodiment of above-mentioned file destination for executing program 603
Correlation step.
Specifically, program 603 may include program code, which includes computer operation instruction.
Processor 601 may be central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present application
Road.The one or more processors that equipment/terminal/server includes can be same type of processor, such as one or more
CPU;It is also possible to different types of processor, such as one or more CPU and one or more ASIC.
Storage device 602 is configured to store one or more programs 603.Storage device 602 may be deposited comprising high-speed RAM
Reservoir, it is also possible to further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 603 specifically can be used for so that processor 601 executes following operation: detect the target in the mobile terminal
The speed of download of file;The maximum bandwidth of speed of download and the mobile terminal based on the file destination, adjustment are used for institute
State the quantity of the network thread of file destination downloading.
In a kind of optional embodiment, program 603 is also used to so that processor 601 is used for the mesh in the adjustment
Before the quantity for marking the network thread of file download, downstream magnitude of the mobile terminal within the unit time is detected;According to
Downstream magnitude of the mobile terminal within the unit time, determines the current bandwidth of the mobile terminal;If the movement
The current bandwidth of terminal is greater than predetermined maximum bandwidth, it is determined that the current bandwidth of the mobile terminal is described mobile whole
The maximum bandwidth at end.
In a kind of optional embodiment, program 603 is also used to so that processor 601 is based on the file destination
The maximum bandwidth of speed of download and the mobile terminal, when adjustment is used for the quantity of the network thread of file destination downloading,
If the ratio of the speed of download of the file destination and the maximum bandwidth of the mobile terminal is less than default ratio, increase use
In the quantity of the network thread of file destination downloading.
In a kind of optional embodiment, program 603 is also used to so that processor 601 is using newly-increased network thread,
Download the half of the file fragment that do not downloaded of the file destination.
In a kind of optional embodiment, program 603 is also used to so that processor 601 is increasing the network thread
After quantity, interval preset time period detects the speed of download of the file destination;If the speed of download of the file destination
It is less than the default ratio with the ratio of the maximum bandwidth of the mobile terminal, then continues growing and downloaded for the file destination
Network thread quantity.
In a kind of optional embodiment, program 603 is also used to so that processor 601 is continued growing described for institute
Before the quantity for stating the network thread of file destination downloading, determine whether the current quantity of the network thread is less than present count
Amount;If the current quantity of the network thread is less than the preset quantity, continue growing for file destination downloading
The quantity of network thread.
The specific implementation of each step may refer to corresponding in the method for down loading embodiment of above-mentioned file destination in program 603
Corresponding description in step and unit, this will not be repeated here.It is apparent to those skilled in the art that for description
Convenienct and succinct, the equipment of foregoing description and the specific work process of module can be with reference to the correspondences in preceding method embodiment
Process description, details are not described herein.
Equipment/terminal/server through this embodiment detects the speed of download of the file destination in mobile terminal, and
The maximum bandwidth of speed of download and mobile terminal based on file destination, number of the adjustment for the network thread of file destination downloading
Amount can make full use of the network bandwidth of mobile terminal compared with existing other way to improve the downloading of file destination speed
Degree.
It may be noted that all parts/step described in the embodiment of the present application can be split as more according to the needs of implementation
The part operation of two or more components/steps or components/steps can also be combined into new component/step by multi-part/step
Suddenly, to realize the purpose of the embodiment of the present application.
Particularly, according to the embodiment of the present application, above with reference to the process of flow chart description, to may be implemented as computer soft
Part program.For example, the embodiment of the present application includes a kind of computer program product comprising carry on a computer-readable medium
Computer program, the computer program include the program code for executing method shown in multiple embodiments of the method above.
In such embodiments, which can be downloaded and installed from network by communications portion, and/or from removable
Medium is unloaded to be mounted.When the computer program is executed by central processing unit (CPU), the side shown in the embodiment of the present application is executed
The above-mentioned function of being limited in method.It should be noted that computer-readable medium described herein can be computer-readable letter
Number medium or computer readable storage medium either the two any combination.Computer readable storage medium for example may be used
To be, but be not limited to, electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above group
It closes.The more specific example of computer readable storage medium can include but is not limited to: have being electrically connected for one or more conducting wires
It connects, portable computer diskette, hard disk, random access memory device (RAM), read-only memory device (ROM), erasable type may be programmed
Read-only memory device (EPROM or flash memory), optical fiber, portable compact disc read-only memory device (CD-ROM), light storage device
Part, magnetic memory apparatus part or above-mentioned any appropriate combination.In this application, computer readable storage medium can be
It is any to include or the tangible medium of storage program, the program can be commanded execution system, device or device using or with
It is used in combination.And in this application, computer-readable signal media may include in a base band or as carrier wave one
Divide the data-signal propagated, wherein carrying computer-readable program code.The data-signal of this propagation can use more
Kind form, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media
It can also be any computer-readable medium other than computer readable storage medium, which can send,
It propagates or transmits for by the use of instruction execution system, device or device or program in connection.Computer
The program code for including on readable medium can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable,
RF etc. or above-mentioned any appropriate combination.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof
Machine program code, described program design language --- --- such as Java that includes object oriented program language,
Smalltalk, C++, further include conventional procedural programming language --- --- such as " C " language or similar programming
Language.Program code can be executed fully on the user computer, partly execute on the user computer, be only as one
Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part
Or it is executed on server.In situations involving remote computers, remote computer can pass through the net of any kind
Network --- --- it is connected to subscriber computer including local area network (LAN) or wide area network (WAN) --- ---, or, it may be connected to it is outer
Portion's computer (such as being connected using ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet
Include acquiring unit, processing unit and test cell.Wherein, the title of these units is not constituted under certain conditions to the list
The restriction of member itself, for example, acquiring unit is also described as " obtaining the business of target object to be tested according to test instruction
The unit of test file ".
As on the other hand, present invention also provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence realizes the method as described in above-mentioned any embodiment when the program is executed by processor.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should
Mobile terminal where device detects the speed of download of the file destination in the mobile terminal;Based under the file destination
Carry the maximum bandwidth of speed and the mobile terminal, quantity of the adjustment for the network thread of file destination downloading.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (14)
1. a kind of method for down loading of file destination, which is characterized in that the described method includes:
Detect the speed of download of the file destination in the mobile terminal;
The maximum bandwidth of speed of download and the mobile terminal based on the file destination, adjustment is under the file destination
The quantity of the network thread of load.
2. the method according to claim 1, wherein the network in the adjustment for file destination downloading
Before the quantity of thread, the method also includes:
Detect downstream magnitude of the mobile terminal within the unit time;
According to downstream magnitude of the mobile terminal within the unit time, the current bandwidth of the mobile terminal is determined;
If the current bandwidth of the mobile terminal be greater than predetermined maximum bandwidth, it is determined that the mobile terminal it is current
Bandwidth is the maximum bandwidth of the mobile terminal.
3. the method according to claim 1, wherein the speed of download based on the file destination with it is described
The maximum bandwidth of mobile terminal, quantity of the adjustment for the network thread of file destination downloading, comprising:
If the ratio of the speed of download of the file destination and the maximum bandwidth of the mobile terminal is less than default ratio, increase
Add the quantity of the network thread for file destination downloading.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Using newly-increased network thread, the half of the file fragment that do not downloaded of the file destination is downloaded.
5. according to the method described in claim 3, it is characterized in that, the method also includes:
After the quantity for increasing the network thread, interval preset time period detects the speed of download of the file destination;
If the ratio of the speed of download of the file destination and the maximum bandwidth of the mobile terminal is less than the default ratio,
Then continue growing the quantity of the network thread for file destination downloading.
6. according to the method described in claim 5, it is characterized in that, continuing growing described for file destination downloading
Before the quantity of network thread, the method also includes:
Determine whether the current quantity of the network thread is less than preset quantity;
If the current quantity of the network thread is less than the preset quantity, continue growing for file destination downloading
The quantity of network thread.
7. a kind of download apparatus of file destination, which is characterized in that described device includes:
First detection module is configured as detecting the speed of download of the file destination in the mobile terminal;
Module is adjusted, the maximum bandwidth of speed of download and the mobile terminal based on the file destination is configured as, is adjusted
The quantity of network thread for file destination downloading.
8. device according to claim 7, which is characterized in that before the adjustment module, described device further include:
Second detection module is configured as detecting downstream magnitude of the mobile terminal within the unit time;
First determining module is configured as the downstream magnitude according to the mobile terminal within the unit time, determines the shifting
The current bandwidth of dynamic terminal;
Second determining module, if the current bandwidth for being configured as the mobile terminal is greater than predetermined maximum bandwidth,
The current bandwidth for determining the mobile terminal is the maximum bandwidth of the mobile terminal.
9. device according to claim 7, which is characterized in that the adjustment module, comprising:
First increases module, if being configured as the speed of download of the file destination and the maximum bandwidth of the mobile terminal
Ratio is less than default ratio, then increases the quantity of the network thread for file destination downloading.
10. device according to claim 9, which is characterized in that described device further include:
Download module is configured as downloading the file fragment that do not downloaded of the file destination using newly-increased network thread
Half.
11. device according to claim 9, which is characterized in that described device further include:
Third detection module is configured as after the quantity for increasing the network thread, described in the preset time period detection of interval
The speed of download of file destination;
Second increases module, if being configured as the speed of download of the file destination and the maximum bandwidth of the mobile terminal
Ratio is less than the default ratio, then continues growing the quantity of the network thread for file destination downloading.
12. device according to claim 11, which is characterized in that before described second increases module, described device is also
Include:
Third determining module, is configured to determine that whether the current quantity of the network thread is less than preset quantity;
Third increases module, if the current quantity for being configured as the network thread is less than the preset quantity, continues growing
The quantity of network thread for file destination downloading.
13. a kind of equipment/terminal/server, comprising:
One or more processors;
Storage device is configured to store one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method for down loading of the file destination as described in any one of claim 1-6 claim.
14. a kind of computer readable storage medium, is stored thereon with computer program, realized such as when which is executed by processor
The method for down loading of file destination described in any one of claim 1-6 claim.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810858653.1A CN109040230B (en) | 2018-07-31 | 2018-07-31 | File downloading method, device, equipment/terminal/server and storage medium |
PCT/IB2018/056504 WO2020026018A1 (en) | 2018-07-31 | 2018-08-27 | Method for downloading file, device, apparatus/terminal/ server, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810858653.1A CN109040230B (en) | 2018-07-31 | 2018-07-31 | File downloading method, device, equipment/terminal/server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109040230A true CN109040230A (en) | 2018-12-18 |
CN109040230B CN109040230B (en) | 2021-06-04 |
Family
ID=64648017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810858653.1A Active CN109040230B (en) | 2018-07-31 | 2018-07-31 | File downloading method, device, equipment/terminal/server and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109040230B (en) |
WO (1) | WO2020026018A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110784520A (en) * | 2019-09-30 | 2020-02-11 | 北京字节跳动网络技术有限公司 | File downloading method and device and electronic equipment |
CN111142900A (en) * | 2019-12-17 | 2020-05-12 | 深圳市优必选科技股份有限公司 | Program updating method and device and terminal equipment |
CN112055036A (en) * | 2019-06-05 | 2020-12-08 | 阿里巴巴集团控股有限公司 | Data downloading method, device, equipment, system and readable storage medium |
CN113891170A (en) * | 2021-11-23 | 2022-01-04 | 维沃移动通信有限公司 | Downloading method, downloading device, electronic equipment and storage medium |
CN114500483A (en) * | 2021-09-23 | 2022-05-13 | 统信软件技术有限公司 | Task downloading method and device, computing equipment and storage medium |
CN114629895A (en) * | 2022-03-22 | 2022-06-14 | 平安证券股份有限公司 | File fragment breakpoint continuous transmission method and device, terminal equipment and medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103391454A (en) * | 2013-07-12 | 2013-11-13 | 三星电子(中国)研发中心 | Multithreading downloading method and device |
CN105873022A (en) * | 2015-12-07 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Downloading method and device for mobile terminal |
CN106254566A (en) * | 2016-10-31 | 2016-12-21 | 乐视控股(北京)有限公司 | A kind of data download processing method and device |
US20170142186A1 (en) * | 2015-11-17 | 2017-05-18 | Le Holdings (Beijing) Co., Ltd. | Method, apparatus, and electronic device for downloading files |
US20170331879A1 (en) * | 2016-05-14 | 2017-11-16 | Richard Banister | Multi-Threaded Download with Asynchronous Writing |
US20170331867A1 (en) * | 2015-06-17 | 2017-11-16 | Tencent Technology (Shenzhen) Company Limited | Method, device and system for pushing file |
CN107786583A (en) * | 2016-08-24 | 2018-03-09 | 中兴通讯股份有限公司 | A kind of document down loading method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9203892B2 (en) * | 2011-04-19 | 2015-12-01 | Accenture Global Services Limited | Content transfer accelerator |
US9304823B2 (en) * | 2012-07-17 | 2016-04-05 | Adobe Systems Incorporated | Method and apparatus for optimizing download operations |
CN102811258B (en) * | 2012-07-27 | 2015-11-25 | 北京星网锐捷网络技术有限公司 | Data Concurrent method for down loading, device and the network equipment |
CN106161524A (en) * | 2015-04-03 | 2016-11-23 | 中国移动通信集团上海有限公司 | A kind of resource downloading method based on distributed resource node and device |
CN106998349A (en) * | 2016-10-18 | 2017-08-01 | 深圳大宇无限科技有限公司 | Multithreading method for down loading and device |
-
2018
- 2018-07-31 CN CN201810858653.1A patent/CN109040230B/en active Active
- 2018-08-27 WO PCT/IB2018/056504 patent/WO2020026018A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103391454A (en) * | 2013-07-12 | 2013-11-13 | 三星电子(中国)研发中心 | Multithreading downloading method and device |
US20170331867A1 (en) * | 2015-06-17 | 2017-11-16 | Tencent Technology (Shenzhen) Company Limited | Method, device and system for pushing file |
US20170142186A1 (en) * | 2015-11-17 | 2017-05-18 | Le Holdings (Beijing) Co., Ltd. | Method, apparatus, and electronic device for downloading files |
CN105873022A (en) * | 2015-12-07 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Downloading method and device for mobile terminal |
US20170331879A1 (en) * | 2016-05-14 | 2017-11-16 | Richard Banister | Multi-Threaded Download with Asynchronous Writing |
CN107786583A (en) * | 2016-08-24 | 2018-03-09 | 中兴通讯股份有限公司 | A kind of document down loading method and device |
CN106254566A (en) * | 2016-10-31 | 2016-12-21 | 乐视控股(北京)有限公司 | A kind of data download processing method and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112055036A (en) * | 2019-06-05 | 2020-12-08 | 阿里巴巴集团控股有限公司 | Data downloading method, device, equipment, system and readable storage medium |
CN110784520A (en) * | 2019-09-30 | 2020-02-11 | 北京字节跳动网络技术有限公司 | File downloading method and device and electronic equipment |
CN111142900A (en) * | 2019-12-17 | 2020-05-12 | 深圳市优必选科技股份有限公司 | Program updating method and device and terminal equipment |
CN114500483A (en) * | 2021-09-23 | 2022-05-13 | 统信软件技术有限公司 | Task downloading method and device, computing equipment and storage medium |
CN114500483B (en) * | 2021-09-23 | 2024-02-27 | 统信软件技术有限公司 | Task downloading method and device, computing equipment and storage medium |
CN113891170A (en) * | 2021-11-23 | 2022-01-04 | 维沃移动通信有限公司 | Downloading method, downloading device, electronic equipment and storage medium |
CN113891170B (en) * | 2021-11-23 | 2024-05-03 | 维沃移动通信有限公司 | Downloading method, downloading device, electronic equipment and storage medium |
CN114629895A (en) * | 2022-03-22 | 2022-06-14 | 平安证券股份有限公司 | File fragment breakpoint continuous transmission method and device, terminal equipment and medium |
CN114629895B (en) * | 2022-03-22 | 2023-10-13 | 平安证券股份有限公司 | File fragment breakpoint continuous transmission method, device, terminal equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN109040230B (en) | 2021-06-04 |
WO2020026018A1 (en) | 2020-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109040230A (en) | Method for down loading, device, equipment/terminal/server and the storage medium of file | |
US11582146B2 (en) | High-quality adaptive bitrate video through multiple links | |
KR20170105582A (en) | Systems and methods for SDT for interworking with NFV and SDN | |
CN110765354B (en) | Information pushing method and device, electronic equipment and storage medium | |
US20210303344A1 (en) | Task processing method, electronic device, and computer program product | |
AU2021104939A4 (en) | Method and device for allocating resources | |
US10785163B2 (en) | Maintaining a queuing policy with multipath traffic | |
US9560694B2 (en) | Cache-induced opportunistic MIMO cooperation for wireless networks | |
CN108429701A (en) | network acceleration system | |
CN112291793A (en) | Resource allocation method and device of network access equipment | |
KR20200017589A (en) | Cloud server for offloading task of mobile node and therefor method in wireless communication system | |
US10983828B2 (en) | Method, apparatus and computer program product for scheduling dedicated processing resources | |
Lu et al. | Task allocation for mobile cloud computing in heterogeneous wireless networks | |
US10277377B2 (en) | Dynamic quality of service adjustment using device-side analytics | |
CN110764892A (en) | Task processing method, device and computer readable storage medium | |
CN109189483A (en) | Regulation method, apparatus, equipment/terminal/server and the storage medium of task execution | |
US20230156520A1 (en) | Coordinated load balancing in mobile edge computing network | |
CN115277504B (en) | Network traffic monitoring method, device and system | |
CN110719233A (en) | Method and device for sending information | |
US20150236910A1 (en) | User categorization in communications networks | |
KR101968259B1 (en) | System and Method for Deploymenting Fog Server by using Path with Minimum Link Usage in Local Area Networks | |
US20170331716A1 (en) | Active probing for troubleshooting links and devices | |
CN117251035B (en) | Heat dissipation control method, heat dissipation control device, electronic equipment and computer readable medium | |
Alotaibi et al. | Dynamic pricing and proactive caching with unknown demand profile | |
CN114826932B (en) | Data migration method, device, electronic equipment and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |