Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A file download method and server

A file download and server technology, applied in electrical components, transmission systems, etc., can solve problems such as network paralysis and network congestion, and achieve the effect of improving efficiency and reducing the possibility of network congestion

Active Publication Date: 2022-05-24
密信(北京)数字科技有限公司
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a file download method and server to solve the problem in the prior art that the network congestion that is easily caused by a large number of simultaneous downloads leads to network paralysis

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A file download method and server
  • A file download method and server
  • A file download method and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0040] figure 1 It is a flowchart of the file download method according to the embodiment of the present invention, such as figure 1 As shown, the method includes:

[0041] Step S01, receiving a download request sent by a client.

[0042] The network of the embodiment of the present invention consists of a server and at least one...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present invention provide a file downloading method and server. The method includes receiving a download request sent by a client; assigning an idle token to the download request, and checking the current available bandwidth; if the ratio of the available bandwidth to the total download bandwidth is less than a preset ratio threshold, the The download speed of the token is set as a speed-limited bandwidth; according to the download speed of the token, download the file corresponding to the download request, and release the token after the download is complete; send the downloaded file to For the client, in the embodiment of the present invention, the server allocates a token after receiving the download request sent by the client, and when the ratio of the current available bandwidth to the download bandwidth is less than a preset ratio threshold, the server assigns a token to the client. The download speed of the above tokens is limited, which effectively reduces the possibility of network congestion caused by multiple clients downloading files at the same time, and improves the efficiency of file downloading.

Description

technical field [0001] The invention relates to the technical field of electronic communication, and in particular, to a file downloading method and a server. Background technique [0002] How to control the download speed in the Java design network program From the perspective of Input / Output (I / O), the speed-limiting control techniques are: Assuming that the upper limit of the download or upload speed is m (KB / s), then The time spent to send a fixed byte of data (assuming it is n bytes) is: n / m; assuming that n bytes of data are to be sent now, the theoretical time required should be n / m, and in practice , it only takes t seconds to send n bytes of data, then the sending thread should sleep for n / m-t seconds, thus basically achieving speed control. [0003] However, when there are a large number of simultaneous download requests initiated by clients at the same time, the above-mentioned prior art is likely to cause network congestion when a large number of simultaneous do...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L67/06
CPCH04L67/06
Inventor 林皓杨强高林武
Owner 密信(北京)数字科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products