CN106550023A - A kind of method and apparatus for providing the user specified file piecemeal - Google Patents
A kind of method and apparatus for providing the user specified file piecemeal Download PDFInfo
- Publication number
- CN106550023A CN106550023A CN201610930736.8A CN201610930736A CN106550023A CN 106550023 A CN106550023 A CN 106550023A CN 201610930736 A CN201610930736 A CN 201610930736A CN 106550023 A CN106550023 A CN 106550023A
- Authority
- CN
- China
- Prior art keywords
- file
- data
- specified
- network equipment
- piecemeal
- 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.)
- Pending
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]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
It is an object of the invention to provide providing the user the method and apparatus of specified file piecemeal.Specifically, first download request of the user to the transmission of first network equipment to file, correspondingly, first download request of the first network equipment receive user to file, wherein, the specified scope of data of this document asked comprising user in the first download request;Then, when the partial data of this document or this document is not stored in first network equipment, first network equipment starts to download this document and determine the specified file piecemeal corresponding to specified scope of data by interacting with second network equipment;Subsequently, first network equipment determines the current download state of specified file piecemeal according to the current current download completeness for downloading this document;Then, the part or all of data in specified file piecemeal are supplied to user by current download state of the first network equipment according to specified file piecemeal.
Description
Technical field
The present invention relates to Internet technical field, more particularly to one kind provide the user specified file partition.
Background technology
Currently, when user is in a CDN (Content Delivery Network, i.e. content distributing network)
During the file that CDN server request is not stored in downloading the CDN server, the CDN server can be to this document
Data source server request intactly download this document, and while download request agency (proxy) by user to this document
To data source server.Before CDN server completely downloads this document, the data source server can be returned by CDN server
The result returned is directly returned to user.It is somebody's turn to do as this processing mode may require that data source server was both provided to CDN server
File, and while provide a user with this document, therefore, this processing mode greatly occupy the bandwidth of data source server and
Flow.
Also, the partial data in user's only demand file sometimes.In this case, above-mentioned processing mode more seems not
It is enough flexible, the download demand of user can neither be timely responded to, again so that data source server is by user and unwanted data are carried
Supply CDN server, wastes the bandwidth and flow of data source server.
The content of the invention
It is an object of the invention to provide providing the user the method and apparatus of specified file piecemeal.
According to an aspect of the invention, there is provided one kind provides the user specified file piecemeal in first network equipment
Method, wherein, the method includes:
The first download request of-receive user to file, wherein, the asked institute of user is included in first download request
State the specified scope of data of file;
- when the partial data that the file or the file are not stored in first network equipment, by with the second network
The interaction of equipment, starts to download the file and determines the specified file piecemeal corresponding to the specified scope of data, wherein, institute
One or more scope of data for stating file correspond respectively to corresponding file block;
- according to the current download completeness for currently downloading the file, determine the current download of the specified file piecemeal
State;
- according to the current download state of the specified file piecemeal, will be part or all of in the specified file piecemeal
Data are supplied to the user.
According to a further aspect of the invention, additionally provide one kind specified file is provided the user in second network equipment
The method of piecemeal, wherein, the method includes:
- by interacting with first network equipment, aid in the first network equipment to start to download the asked download of user
File and determine the specified file piecemeal corresponding to the specified scope of data, wherein, the file one or more number
Corresponding file block is corresponded respectively to according to scope.
According to another aspect of the present invention, additionally provide one kind specified file is provided the user in first network equipment
The device of piecemeal, wherein, the device includes:
- it is used for device of the receive user to the first download request of file, wherein, comprising use in first download request
The specified scope of data of the asked file in family;
- for when the partial data that the file or the file are not stored in first network equipment, by with second
The interaction of the network equipment, starts to download the file and determines the dress of specified file piecemeal corresponding to the specified scope of data
Put, wherein, one or more scope of data of the file correspond respectively to corresponding file block;
- be used to, according to the current download completeness for currently downloading the file, determine the current of the specified file piecemeal
The device of download state;
- for the current download state according to the specified file piecemeal, by the part in the specified file piecemeal or
Total data is supplied to the device of the user.
According to a further aspect of the invention, additionally provide one kind specified file is provided the user in second network equipment
The device of piecemeal, wherein, the device includes:
- for by interacting with first network equipment, aiding in the first network equipment to start downloading user being asked
The file of download simultaneously determines the device of specified file piecemeal corresponding to the specified scope of data, wherein, the one of the file
Individual or multiple scope of data correspond respectively to corresponding file block.
Compared with prior art, the present invention can be engaged to be embodied as user by first network equipment and second network equipment
Specified file piecemeal is provided.Specifically, first download request of the user to the transmission of first network equipment to file, correspondingly, the
First download request of one network equipment receive user to file, wherein, comprising being somebody's turn to do that user is asked in the first download request
The specified scope of data of file;Then, when this document is not stored in first network equipment, first network equipment is by with second
The interaction of the network equipment, starts to download this document and determine the specified file piecemeal corresponding to specified scope of data, correspondingly, the
Two network equipments auxiliary first network equipment starts to download this document and determine to specify the specified file corresponding to scope of data to divide
Block, wherein, one or more scope of data of this document correspond respectively to corresponding file block;Subsequently, first network equipment
According to the current current download completeness for downloading this document, the current download state of specified file piecemeal is determined;Then, the first net
Part or all of data in specified file piecemeal are supplied to use by current download state of the network equipment according to specified file piecemeal
Family.
With need data source server in prior art and meanwhile provide file to CDN server and the processing mode of user
Compare, in the present invention program, first network equipment can determine the finger corresponding to the specified scope of data of the file asked by user
Determine file block, and the current download state according to the specified file piecemeal in a subsequent step, will be from second network equipment
Part or all of data in the specified file piecemeal for the file for being obtained are supplied to user.Therefore, on the one hand, present invention side
Only need second network equipment that file is supplied to first network equipment in case, and the download of user is responded by first network equipment
Request, so as to the present invention program can save second network equipment (such as even higher level of node equipment of first network equipment, and for example
Data source server etc.) bandwidth and flow.On the other hand, first network equipment more rapidly, accurately can be provided a user with
The partial data of the specified scope of data specified by user is corresponded in its file asked.Jing experimental datas prove, first
The network equipment provides a user with the time delay of its partial data asked and can be received by user completely, improves making for user
With experience.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, other of the invention
Feature, objects and advantages will become more apparent upon:
Fig. 1 illustrate a kind of first network equipment according to an embodiment of the invention be engaged with second network equipment come for
User provides the method flow diagram of specified file piecemeal;
Fig. 2 is illustrated and according to an embodiment of the invention is engaged in first network equipment and second network equipment respectively
To provide the user the schematic device of specified file piecemeal.
In accompanying drawing, same or analogous reference represents same or analogous part.
Specific embodiment
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The process described as flow chart or method.Although operations to be described as flow chart the process of order, therein to be permitted
Multioperation can by concurrently, concomitantly or while implement.Additionally, the order of operations can be rearranged.When which
Process when operation is completed can be terminated, it is also possible to have the additional step being not included in accompanying drawing.The process
Can correspond to method, function, code, subroutine, subprogram etc..
Alleged within a context " computer equipment ", also referred to as " computer ", refer to and by running preset program or can refer to
Make performing the intelligent electronic device of the predetermined process process such as numerical computations and/or logical calculated, its can include processor with
Memorizer, the programmed instruction for being prestored by computing device in memory performing predetermined process process, or by ASIC,
The hardware such as FPGA, DSP perform predetermined process process, or are combined to realize by said two devices.Computer equipment includes but does not limit
In server, PC, notebook computer, panel computer, smart mobile phone etc..
The computer equipment for example includes user equipment and the network equipment.Wherein, the user equipment includes but does not limit
In smart mobile phone, PDA, PC, notebook computer etc.;The network equipment includes but is not limited to single network server, multiple nets
Network server group into server group or based on cloud computing (Cloud Computing) by a large amount of computers or the webserver
The cloud of composition, wherein, cloud computing is one kind of Distributed Calculation, and be made up of the loosely-coupled computer collection of a group is super
Virtual machine.Wherein, the computer equipment can isolated operation can access realizing the present invention, also network and by with network
In other computer equipments interactive operation realizing the present invention.Wherein, the network residing for the computer equipment include but
It is not limited to the Internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN etc..
It should be noted that the user equipment, the network equipment and network etc. are only for example, other are existing or from now on may be used
The computer equipment or network that can occur such as is applicable to the present invention, within also should being included in the scope of the present invention, and to draw
It is incorporated herein with mode.
The method (some of them are illustrated by flow process) for being discussed herein below can by hardware, software, firmware, in
Between part, microcode, hardware description language or its combination in any implementing.When with software, firmware, middleware or microcode come real
Shi Shi, can be stored in machine or computer-readable medium (such as to the program code or code segment of implementing necessary task
Storage medium) in.(one or more) processor can implement necessary task.
Concrete structure disclosed herein and function detail are only representational, and are for describing showing for the present invention
The purpose of example property embodiment.But the present invention can be implemented by many alternative forms, and is not interpreted as
It is limited only by the embodiments set forth herein.
Although it should be appreciated that may have been used term " first ", " second " etc. here to describe unit,
But these units should not be limited by these terms.Using these terms just for the sake of by a unit and another unit
Make a distinction.For example, in the case of the scope without departing substantially from exemplary embodiment, it is single that first module can be referred to as second
Unit, and similarly second unit can be referred to as first module.Term "and/or" used herein above include one of them or
Any and all combination of more listed associated items.
Term used herein above is not intended to limit exemplary embodiment just for the sake of description specific embodiment.Unless
Context clearly refers else, and singulative " one " otherwise used herein above, " one " also attempt to include plural number.Should also
When being understood by, term " including " used herein above and/or "comprising" specify stated feature, integer, step, operation,
The presence of unit and/or component, and do not preclude the presence or addition of one or more other features, integer, step, operation, unit,
Component and/or its combination.
It should further be mentioned that in some replaces realization modes, the function/action being previously mentioned can be according to different from attached
The order indicated in figure occurs.For example, depending on involved function/action, the two width figures for illustrating in succession actually may be used
Substantially simultaneously to perform or can perform in a reverse order sometimes.
The present invention can be engaged to realize by first network equipment and second network equipment.Specifically, user is to the first net
Network equipment sends the first download request to file, and correspondingly, first download of the first network equipment receive user to file please
Ask, wherein, the specified scope of data of this document asked comprising user in the first download request;Then, when first network sets
When not storing this document in standby, first network equipment starts to download this document and determine by interacting with second network equipment
Specified file piecemeal corresponding to specified scope of data, correspondingly, second network equipment auxiliary first network equipment starts to download
This document simultaneously determines the specified file piecemeal corresponding to specified scope of data, wherein, one or more scope of data of this document
Correspond respectively to corresponding file block;Subsequently, current download completeness of the first network equipment according to current download this document,
Determine the current download state of specified file piecemeal;Then, current download shape of the first network equipment according to specified file piecemeal
Part or all of data in specified file piecemeal are supplied to user by state.
Wherein, CDN can include multistage.Wherein highest is data source server.First network equipment such as CDN
Certain one-level CDN server in network, which can also be referred to as a node in CDN.Second network equipment is first
The upper level cache node of the network equipment.Second network equipment can be common CDN server, or five-star section
Point, that is, data source server, or source station can also be referred to as.
When the file asked by user is not stored in low one-level CDN server, the low one-level CDN server by with it is upper
The interaction of one-level CDN server (file asked by the user that may be stored with upper level CDN server), starts to download user
File simultaneously determines the specified file piecemeal corresponding to specified scope of data;Subsequently, low one-level CDN server should according to current download
The current download completeness of file, determines the current download state of specified file piecemeal;Then, low one-level CDN server according to
Part or all of data in specified file piecemeal are supplied to user by the current download state of specified file piecemeal.
With need data source server in prior art and meanwhile provide file to CDN server and the processing mode of user
Compare, the present invention program only needs data source server that file is supplied to CDN server, and responds user by CDN server
Download request, thus, the present invention program saves the bandwidth and flow of data source server.Also, for user only asks
The situation of the partial data in file is downloaded, CDN server can determine the specified scope of data institute of the file asked by user
Corresponding specified file piecemeal, and according to the current download state of the specified file piecemeal, by the portion in the specified file piecemeal
Divide or total data is supplied to user, such that it is able to more rapidly, accurately provide a user with its partial data asked.Jing realities
Number is tested it was demonstrated that the time delay that CDN server provides a user with its partial data asked can be received by user completely, is carried
The experience of user is risen.
Below in conjunction with the accompanying drawings the present invention is described in further detail.
Fig. 1 illustrate a kind of first network equipment according to an embodiment of the invention be engaged with second network equipment come for
User provides the method flow diagram of specified file piecemeal.
In step sl, first download request of the user to the transmission of first network equipment to file, correspondingly, first network
First download request of the equipment receive user to file, wherein, this document asked comprising user in the first download request
Specified scope of data;In step S2, when this document is not stored in first network equipment, first network equipment by with the second net
The interaction of network equipment, starts to download this document and determine the specified file piecemeal corresponding to specified scope of data, correspondingly, second
Network equipment auxiliary first network equipment starts download this document and determines the specified file piecemeal corresponding to specified scope of data,
Wherein, one or more scope of data of this document correspond respectively to corresponding file block;In step S3, first network equipment
According to the current current download completeness for downloading this document, the current download state of specified file piecemeal is determined;In step S4, the
Current download state of one network equipment according to specified file piecemeal, the part or all of data in specified file piecemeal are provided
To user.
Specifically, in step sl, first download request of the user to the transmission of first network equipment to file, correspondingly,
First download request of the first network equipment receive user to file, wherein, asked comprising user in the first download request
The specified scope of data of this document.
Here, the file asked by user can be the file of arbitrary format, such as video, audio frequency, document etc..
The specified scope of data of the file asked by user means partial data in this document of the specified request of user
Scope.For example, the file for a 10MB, user only ask the partial data in this document from 3MB to 4MB, then user is asked
The specified scope of data of this document asked is [3MB, 4MB].The first download request that user is sent can be http request, should
In http request, in header parts, Range fields can for example be Range:a-b.
In step S2, when the partial data of this document or this document is not stored in first network equipment, first network sets
It is standby by interacting with second network equipment, start to download this document and determine to specify the specified file corresponding to scope of data to divide
Block, correspondingly, second network equipment auxiliary first network equipment starts to download this document and determine to specify corresponding to scope of data
Specified file piecemeal, wherein, one or more scope of data of this document correspond respectively to corresponding file block.
Wherein, first network equipment, can be by the header data of this document and the file of this document in storage file
Content is stored.Wherein, in the header data of this document for example can comprising which file block in this file by
The information such as download, which file block are not downloaded, file size, CRC check code.
First network equipment can inquire about the header data corresponding to this document according to the file of the asked download of user,
To determine whether the file of the asked download of user is asked the file block of download by user in full storage or this document
Whether have and stored.
Here, being possible to not store the whole part of this document in first network equipment, it is also possible to be not store use
Data corresponding to the specified scope of data of the asked download in family (but there are other numbers in storage this document in first network equipment
According to the data corresponding to scope), that is, the file being stored in first network equipment is not complete, only some file blocks,
And the specified scope of data of the asked download of user is the current file block not stored in first network equipment.User is asked
File can be determined that multiple scope of data.For example, for the file of a 4MB, which is for example divided into 4
Scope of data, also, wherein, each scope of data corresponds respectively to corresponding file block.That is, [0MB, 1MB] correspondence
In the 1st file block, [1MB, 2MB] corresponding to the 2nd file block, [2MB, 3MB] corresponding to the 3rd file block,
[3MB, 4MB] is corresponding to the 4th file block.Those skilled in the art will be understood that this size according to 1MB to divide number
It is only for example according to the mode of scope.Other modes for dividing file that are existing or being likely to occur from now on are such as applicable to this
It is bright, within also should being included in the scope of the present invention, and it is incorporated herein by reference.
With need data source server in prior art and meanwhile provide file to CDN server and the processing mode of user
Compare, in the present invention program, first network equipment can determine the finger corresponding to the specified scope of data of the file asked by user
Determine file block, and the current download state according to the specified file piecemeal in a subsequent step, will be from second network equipment
Part or all of data in the specified file piecemeal for the file for being obtained are supplied to user.Therefore, on the one hand, present invention side
Only need second network equipment that file is supplied to first network equipment in case, and the download of user is responded by first network equipment
Request, so as to the present invention program can save the bandwidth and flow of second network equipment (such as data source server).The opposing party
Face, first network equipment are corresponded to specified by user in can more rapidly, accurately providing a user with the file asked by which
The partial data of specified scope of data.Jing experimental datas prove that first network equipment provides a user with the part number asked by which
According to time delay can be received by user completely, improve the experience of user.
Preferably, second download request of the first network equipment to the transmission of second network equipment to file, to start to download
Second network equipment responds the file returned by second download request.Correspondingly, second network equipment receives first network
This document is returned to first network equipment by the second download request to file that equipment is sent.
Here, the identification information of the file asked comprising user in the second download request, such as file name, reference number of a document
Deng.Second network equipment obtains this document, and this document is supplied to first network by the identification information of inquiry this document
Equipment.
Preferably, first network equipment determines that the mode for specifying the specified file piecemeal corresponding to scope of data is included but not
It is limited to following 2 kinds:
1) first network equipment sends the acquisition request of the size to file, correspondingly, the second net to second network equipment
Network equipment receives the acquisition request of the size to this document sent by first network equipment.Subsequently, second network equipment should
The size of file returns to first network equipment, and correspondingly, first network equipment obtains this article that second network equipment is returned
The size of part.Then, size of the first network equipment according to this document, carries out cutting to this document, to determine the one of this document
The corresponding relation of individual or multiple scope of data and corresponding file block.Subsequently, first network equipment is according to the first download request
Included in the asked this document of user specified scope of data, one or more data models of this document determined by inquiry
The corresponding relation with corresponding file block is enclosed, to determine the specified file piecemeal corresponding to specified scope of data.
For example, example A, after the acquisition request for receiving the size to a file sent by first network equipment, the
Two network equipments determine that the size of this document is 10MB, and the size of this document is returned to first network equipment.Then, first
Size (10MB) of the network equipment according to this document, is 5 scope of data by this document cutting, respectively [0MB, 2MB] correspondence
In the 1st file block, [2MB, 4MB] corresponding to the 2nd file block, [4MB, 6MB] corresponding to the 3rd file block,
[6MB, 8MB], corresponding to the 4th file block, [8MB, 10MB] is corresponding to the 5th file block.Wrapped in first download request
The specified scope of data of the asked this document of user for containing is, for example, [5MB, 7MB], then first network equipment is according to the specified number
According to scope, one or more scope of data of this document determined by inquiry and the corresponding relation of corresponding file block, with true
Surely scope of data is specified to correspond to the 3rd and the 4th file block, that is, specified file piecemeal is the 3rd and the 4th file
Piecemeal.
2) the specified scope of data of the user's requested document included in the first download request is carried by first network equipment
Second network equipment is supplied, one or more data models of file is inquired about with by second network equipment according to specified scope of data
The corresponding relation with corresponding file block is enclosed, it is determined that specifying the specified file piecemeal corresponding to scope of data.Correspondingly, second
The network equipment receives specifying for the asked this document of user included in the first download request that first network equipment is sent
Scope of data.Then, second network equipment inquires about one or more scope of data and phase of this document according to specified scope of data
The corresponding relation of the file block answered, it is determined that specifying the specified file piecemeal corresponding to scope of data.Subsequently, second network equipment
Specified file piecemeal corresponding to the specified scope of data is returned to into first network equipment.Correspondingly, first network equipment connects
Receive the specified file piecemeal corresponding to specified scope of data returned by second network equipment.
For example, example B, the specified scope of data of the user's requested document included in the first download request for [4MB,
6MB], the specified scope of data is supplied to second network equipment by first network equipment.One or more data models of this document
It can be for example [0MB, 2MB] corresponding to the 1st file block, [2MB, 4MB] to enclose with the corresponding relation of corresponding file block
Corresponding to the 2nd file block, [4MB, 6MB], corresponding to the 3rd file block, [6MB, 8MB] is corresponding to the 4th file point
Block, [8MB, 10MB] is corresponding to the 5th file block.After the specified scope of data is received, second network equipment is according to this
Specified scope of data, inquires about one or more scope of data of aforementioned this document and the corresponding relation of corresponding file block, really
Surely scope of data ([4MB, 6MB]) is specified corresponding to the 3rd file block, that is, specified file piecemeal is the 3rd file point
Block.Subsequently, the specified scope of data is returned to first network corresponding to the information of the 3rd file block and is set by second network equipment
It is standby.Correspondingly, the specified scope of data returned by second network equipment of first network equipment reception is corresponding to the 3rd file point
The information of block.
In step S3, first network equipment determines specified file according to the current current download completeness for downloading this document
The current download state of piecemeal.
Here, as in step s 2, first network equipment has begun to download the file asked by user, therefore, should
File is already at download state.The current download completeness of this document can for example be 0%, 1%, 10%, 20% etc..Or
Person, the current download completeness of this document can also be not complete, be partially completed, having completed.Specified file piecemeal it is current
Download state for example can be to have obtained, obtained, not yet obtain etc..
For example, both front example A, first network equipment have determined that this document includes 5 file blocks, and this document is worked as
Front download completeness is 60%, it is intended that file block is the 3rd and the 4th file block.Then first network equipment can determine
To have obtained, the current download completeness of the 4th file block is not yet to obtain to the current download state of the 3rd file block
.
And for example, both front example B, first network equipment have determined that this document includes 5 file blocks, and this document is worked as
Front download completeness is 50%, it is intended that file block is the 3rd file block.Then first network equipment can determine the 3rd it is literary
The current download state of part piecemeal is to obtain.
In step S4, current download state of the first network equipment according to specified file piecemeal, by specified file piecemeal
Part or all of data be supplied to user.
Here, first network equipment (can have been obtained, according to the different current download state of specified file piecemeal
Obtain and not yet obtain), the part or all of data for formulating file block kind are supplied to into user in different ways.
Preferably, first network equipment will can be carried corresponding to the partial data for specifying scope of data in specified file piecemeal
Supply user.
For example, the specified scope of data of user's requested document is [1MB, 2MB], and the number corresponding to specified file piecemeal
According to scope be [0MB, 2MB], then first network equipment can by the specified file piecemeal from this part number of 1MB start to finish
According to being supplied to user, and without the need for user in the specified file piecemeal unsolicited [0MB, 1MB] this partial data is supplied to use
Family.
Preferably, current download state of the first network equipment according to specified file piecemeal, by specified file piecemeal
Partly or entirely data are supplied to the including but not limited to following 3 kinds of situations of the mode of user:
1) when specified file piecemeal has been obtained, first network equipment can by the part in the specified file piecemeal or
Total data is supplied to user.
Here, the total data of specified file piecemeal can be both provided to user by first network equipment.Or, the first net
Network equipment can also be by the partial data of specified file piecemeal, such as corresponding to the partial data of specified scope of data, there is provided give
User.
2) when the specified file piecemeal is obtained, first network equipment is waited and ought obtain the specified file
Part or all of data in the specified file piecemeal are supplied to user by part or during total data in piecemeal.
For example, first network equipment is currently being obtained and is not fully obtaining specified file piecemeal, then first network
Equipment can be waited and during total data in the specified file piecemeal is obtained completely, then by the specified file piecemeal
Total data be supplied to user, or, first network equipment can also be waited and ought have been obtained in the specified file piecemeal
Partial data when, then the appropriate section data in the specified file piecemeal are supplied to into user, such as corresponding to specifying data model
The partial data enclosed.
And for example, first network equipment is currently being obtained and is not fully obtaining specified file piecemeal, then first network
Equipment can be waited and during partial data in the specified file piecemeal is obtained completely, such as right in the specified file piecemeal
Corresponding partial data should be supplied to into user when the partial data of scope of data is specified.
If 3) not yet obtain specified file piecemeal, first network equipment is then sent to specified file to second network equipment
3rd download request of piecemeal, responds the specified file piecemeal returned by the 3rd download request when second network equipment is obtained
When, wait and the part or during total data in specified file piecemeal has been obtained, by the part in specified file piecemeal or complete
Portion's data are supplied to user.
Here, the identification information of the identification information and specified file piecemeal of file in the 3rd download request, can be included,
Such as the 2nd file block, and/or the 3rd file block etc..After second network equipment receives the 3rd download request, can be with
According to the identification information of the identification information and specified file piecemeal of file, corresponding specified file piecemeal is obtained.Subsequently, the second net
The specified file piecemeal can be returned to first network equipment by network equipment.Correspondingly, first network equipment waits and ought be
Obtain in specified file piecemeal part or during total data, the part or all of data in specified file piecemeal are supplied to into use
Family.Here, first network equipment is waited and the part or during total data in specified file piecemeal has been obtained, by specified file
Part or all of data in piecemeal are supplied to the part in specified file piecemeal or complete in user and aforementioned the 2) kind mode
Portion's data are supplied to the mode of user identical or essentially identical, therefore repeat no more, and are incorporated herein by reference.
Here, the current download state of multiple specified file piecemeals determined by first network equipment can also be respectively not
With.For example, the asked specified scope of data for downloading file of user is 0-10MB, it is assumed that the size of each file block is
256KB (size of each file block can be dynamic adjustment), then user's request is the file point of the 0th to the 39th
Block.It is that (this can also be dynamic adjustment to 1MB, i.e., every time to assume that first network equipment is sent to the maximum data of user every time
4 file blocks are sent at most to user), first network equipment subscribes to the file block that numbering is the 0th, then first network
Equipment judges from the 0th file block and the contiguous file piecemeal (inquiry local index) for existing below there is the 0th file point
Block just sends the 0th file block, has the 0th and the 1st file block just sends the 0th and the 1st file block, at most
Send the 0th, the 1st, the 2nd, the 3rd file block be to user.Assume the 0th, the 1st, the 3rd file block presence,
And the 2nd file block is not present, then first network equipment only sends the 0th and the 1st file block, waits the user of user
Equipment is finished receiving.After the user equipment of user is finished receiving, first network equipment subscribes to the 2nd file point that numbering is 2
Block, then judges the 2nd file block and the contiguous file block for existing below.Because the 2nd file block is not present, then first
The network equipment need second network equipment download the 2nd file block (first network equipment can by the 2nd file block from
Numbering 2 changes into form rang of scope of data:512KB-768KB, is sent to second network equipment).First network device downloads
After completing the 2nd file block, first network equipment is judged from the 2nd file block and the contiguous file block for existing below, after
Continuous process above, circulation are subscribed to and send file block.
This mode for providing a user with file block can further reduce back source bandwidth.That is, first network equipment
Whole file need not all be downloaded, it is only necessary to download corresponding file block.Meanwhile, first network equipment can be faster
Send the file to user, whenever from second network equipment download a part file block can just be sent to user.Such as
In above example, the file of user's request downloading data scope 0-10M, whenever first network equipment is under second network equipment
A file block (256KB dynamic as needed can be adjusted) is carried, first network equipment can just provide a user with this document point
The data (256KB) of block, complete just to provide a user with data without waiting 0-10M all to download.
With need data source server in prior art and meanwhile provide file to CDN server and the processing mode of user
Compare, in the present invention program, first network equipment can determine the finger corresponding to the specified scope of data of the file asked by user
Determine file block, and according to the current download state of the specified file piecemeal, by the file obtained from second network equipment
Part or all of data in the specified file piecemeal are supplied to user.Therefore, on the one hand, in the present invention program, only need the second net
File is supplied to first network equipment by network equipment, and the download request of user is responded by first network equipment, so as to this
Bright scheme can save second network equipment (the even higher level of node equipment of such as first network equipment, and for example data source server
Deng) bandwidth and flow.On the other hand, first network equipment can more rapidly, accurately provide a user with its text asked
The partial data of the specified scope of data specified by user is corresponded in part.Jing experimental datas prove, first network equipment to
Family provides the time delay of its partial data asked and can be received by user completely, improves the experience of user.
Fig. 2 is illustrated and according to an embodiment of the invention is engaged in first network equipment and second network equipment respectively
To provide the user the schematic device of specified file piecemeal.Wherein, during first network equipment is included in first network equipment it is
User provides the device of specified file piecemeal, namely the first offer device 20.Further, the first offer device 20 includes device
21-24.Second network equipment aids in first network equipment to provide the user specified file piecemeal in being included in second network equipment
Device, namely the second offer device 30.Further, the second offer device 30 includes device 31.
As shown in Fig. 2 user sends the first download request to file, correspondingly, first network to first network equipment
Device 21 (for ease of distinguishing, is referred to as asked below to receive by 21 receive user of device of equipment to the first download request of file
Device 21), wherein, the specified scope of data of this document asked comprising user in the first download request;Then, when the first net
When the partial data of this document or this document is not stored in network equipment, the device 22 of first network equipment is by setting with the second network
Standby interaction, starts to download this document and determine the specified file piecemeal corresponding to specified scope of data (for ease of distinguishing, below
22) device 22 is referred to as into the first interactive device, correspondingly, under the auxiliary first network equipment of device 31 of second network equipment starts
Carry this document determining specified file piecemeal corresponding to scope of data is specified (for ease of distinguishing, below by device 31 referred to as the
Two interactive devices 31), wherein, one or more scope of data of this document correspond respectively to corresponding file block;Subsequently,
The device 23 of one network equipment according to the current current download completeness for downloading this document, determine specified file piecemeal when front lower
23) device 23 (for ease of distinguishing, is referred to as state determination device by load state below;Then, 24, the device of first network equipment
According to the current download state of specified file piecemeal, the part or all of data in specified file piecemeal are supplied to into user (for just
In differentiation, 24) device 24 is referred to as into data supplying device below.
Specifically, first download request of the user to the transmission of first network equipment to file, correspondingly, first network equipment
First download request of 21 receive user of request reception device to file, wherein, it is asked comprising user in the first download request
The specified scope of data of this document asked.
Here, the file asked by user can be the file of arbitrary format, such as video, audio frequency, document etc..
The specified scope of data of the file asked by user means partial data in this document of the specified request of user
Scope.For example, the file for a 10MB, user only ask the partial data in this document from 3MB to 4MB, then user is asked
The specified scope of data of this document asked is [3MB, 4MB].The first download request that user is sent can be http request, should
In http request, in header parts, Range fields can for example be Range:a-b.
Subsequently, when the partial data of this document or this document is not stored in first network equipment, first network equipment
First interactive device 22 starts to download this document and determine corresponding to specified scope of data by interacting with second network equipment
Specified file piecemeal, correspondingly, second interactive device 31 of second network equipment auxiliary first network equipment starts to download should
File simultaneously determines the specified file piecemeal corresponding to specified scope of data, wherein, one or more scope of data point of this document
Dui Yingyu not corresponding file block.
Wherein, first network equipment, can be by the header data of this document and the file of this document in storage file
Content is stored.Wherein, in the header data of this document for example can comprising which file block in this file by
The information such as download, which file block are not downloaded, file size, CRC check code.
First interactive device 22 of first network equipment can inquire about this document institute according to the file of the asked download of user
Corresponding header data, to determine whether the file of the asked download of user is asked by user in full storage or this document
Ask whether the file block of download has and stored.
Here, being possible to not store the whole part of this document in first network equipment, it is also possible to be not store use
Data corresponding to the specified scope of data of the asked download in family (but there are other numbers in storage this document in first network equipment
According to the data corresponding to scope), that is, the file being stored in first network equipment is not complete, only some file blocks,
And the specified scope of data of the asked download of user is the current file block not stored in first network equipment.
The file asked by user can be determined that multiple scope of data.For example, for the file of a 4MB,
Which is for example divided into 4 scope of data, also, wherein, each scope of data corresponds respectively to corresponding file block.
That is, [0MB, 1MB] is corresponding to the 1st file block, [1MB, 2MB] is corresponding to the 2nd file block, [2MB, 3MB] correspondence
In the 3rd file block, [3MB, 4MB] is corresponding to the 4th file block.Those skilled in the art will be understood that it is this according to
The size of 1MB is only for example come the mode for dividing scope of data.Other sides for dividing file that are existing or being likely to occur from now on
Formula is such as applicable to the present invention, within also should being included in the scope of the present invention, and is incorporated herein by reference.
With need data source server in prior art and meanwhile provide file to CDN server and the processing mode of user
Compare, in the present invention program, first network equipment can determine the finger corresponding to the specified scope of data of the file asked by user
Determine file block, and the current download state in subsequent operation according to the specified file piecemeal, will be from second network equipment
Part or all of data in the specified file piecemeal for the file for being obtained are supplied to user.Therefore, on the one hand, present invention side
Only need second network equipment that file is supplied to first network equipment in case, and the download of user is responded by first network equipment
Request, so as to the present invention program can save the bandwidth and flow of second network equipment (such as data source server).The opposing party
Face, first network equipment are corresponded to specified by user in can more rapidly, accurately providing a user with the file asked by which
The partial data of specified scope of data.Jing experimental datas prove that first network equipment provides a user with the part number asked by which
According to time delay can be received by user completely, improve the experience of user.
Preferably, the first interactive device 22 of first network equipment sends to file second to second network equipment and downloads
Request, with start download second network equipment respond the file returned by second download request.Correspondingly, the second network sets
Standby the second interactive device 31 receives the second download request to file that first network equipment is sent, and this document is returned
Give first network equipment.
Here, the identification information of the file asked comprising user in the second download request, such as file name, reference number of a document
Deng.Second interactive device 31 of second network equipment obtains this document by the identification information of inquiry this document, and should
File is supplied to first network equipment.
Here, the operation that starting performed by the first interactive device 22 downloads file can also be by the first interactive device 22
Comprising a specific device perform.Similarly, the auxiliary first network equipment performed by the second interactive device 31 starts to download
The operation of file can also be performed by the specific device included in the second interactive device 31.
Preferably, first interactive device 22 of first network equipment determines the specified file point specified corresponding to scope of data
The mode of block is including but not limited to following 2 kinds:
1) the first interactive device 22 of first network equipment please to the acquisition that second network equipment sends the size to file
Ask, correspondingly, second interactive device 31 of second network equipment receives the size to this document sent by first network equipment
Acquisition request.Subsequently, the size of this document is returned to first network equipment by the second interactive device 31 of second network equipment,
Correspondingly, first interactive device 22 of first network equipment obtains the size of this document that second network equipment is returned.Then,
First interactive device 22 of first network equipment carries out cutting to this document, to determine this document according to the size of this document
The corresponding relation of one or more scope of data and corresponding file block.Subsequently, the first interactive device of first network equipment
22 according to the specified scope of data of the asked this document of user included in the first download request, this document determined by inquiry
One or more scope of data and corresponding file block corresponding relation, to determine specifying corresponding to specified scope of data
File block.
For example, example C, the size to a file sent in the first interactive device 22 for receiving first network equipment
After obtaining request, second interactive device 31 of second network equipment determines that the size of this document is 10MB, and by this document
Size returns to first network equipment.Then, size of the first interactive device 22 of first network equipment according to this document
(10MB), by this document cutting be 5 scope of data, respectively [0MB, 2MB] is corresponding to the 1st file block, [2MB, 4MB]
Corresponding to the 2nd file block, [4MB, 6MB], corresponding to the 3rd file block, [6MB, 8MB] is corresponding to the 4th file point
Block, [8MB, 10MB] is corresponding to the 5th file block.Asked this document of user included in first download request specify
Scope of data is, for example, [5MB, 7MB], then the first interactive device 22 of first network equipment is according to the specified scope of data, inquiry
Determined by this document one or more scope of data and corresponding file block corresponding relation, to determine specified data model
Enclose corresponding to the 3rd and the 4th file block, that is, specified file piecemeal is the 3rd and the 4th file block.
2) the first interactive device 22 of first network equipment is by the user's requested document included in the first download request
Specified scope of data be supplied to second network equipment, with by the second interactive device 31 of second network equipment according to specified data
Scope, inquires about one or more scope of data of file and the corresponding relation of corresponding file block, it is determined that specifying scope of data
Corresponding specified file piecemeal.Correspondingly, second interactive device 31 of second network equipment receives the of first network equipment
The specified scope of data of the asked this document of user included in the first download request that one interactive device 22 is sent.Connect
, the second interactive device 31 of second network equipment inquires about one or more data models of this document according to specified scope of data
The corresponding relation with corresponding file block is enclosed, it is determined that specifying the specified file piecemeal corresponding to scope of data.Subsequently, the second net
Specified file piecemeal corresponding to the specified scope of data is returned to first network equipment by the second interactive device 31 of network equipment.
Correspondingly, specified scope of data institute that second network equipment of reception of the first interactive device 22 of first network equipment is returned is right
The specified file piecemeal answered.
For example, example D, the specified scope of data of the user's requested document included in the first download request for [4MB,
6MB], the specified scope of data is supplied to second network equipment by the first interactive device 22 of first network equipment.This document
One or more scope of data for example can be literary corresponding to the 1st for [0MB, 2MB] with the corresponding relation of corresponding file block
Part piecemeal, [2MB, 4MB], corresponding to the 2nd file block, [4MB, 6MB], corresponding to the 3rd file block, [6MB, 8MB] is right
4 file blocks of Ying Yu, [8MB, 10MB] is corresponding to the 5th file block.After the specified scope of data is received, second
Second interactive device 31 of the network equipment inquires about one or more scope of data of aforementioned this document according to the specified scope of data
With the corresponding relation of corresponding file block, it is determined that specify scope of data ([4MB, 6MB]) corresponding to the 3rd file block,
I.e., it is intended that file block is the 3rd file block.Subsequently, the second interactive device 31 of second network equipment is by the specified data
Scope returns to first network equipment corresponding to the information of the 3rd file block.Correspondingly, the first interaction of first network equipment
Information of the specified scope of data returned by second network equipment of reception of device 22 corresponding to the 3rd file block.
Here, the operation of the specified file piecemeal corresponding to scope of data is specified in the determination performed by the first interactive device 22
Can also be performed by the specific device included in the first interactive device 22.Similarly, performed by the second interactive device 31
Auxiliary first network equipment determines that the operation for specifying the specified file piecemeal corresponding to scope of data can also be filled by the second interaction
Put the specific device included in 31 to perform.
Subsequently, current download completeness of the state determination device 23 of first network equipment according to current download this document,
Determine the current download state of specified file piecemeal.
Here, as, in operation before, the first interactive device 22 of first network equipment has begun to download user
The file asked, therefore, this document is already at download state.The current download completeness of this document for example can for 0%,
1%th, 10%, 20% etc..Or, the current download completeness of this document can also be not complete, be partially completed, having completed.
The current download state of specified file piecemeal for example can be to have obtained, obtained, not yet obtain etc..
For example, both front example C, the first interactive device 22 of first network equipment have determined that this document includes 5 files point
Block, and the current download completeness of this document is 60%, it is intended that and file block is the 3rd and the 4th file block.Then first
The state determination device 23 of the network equipment can determine the current download state of the 3rd file block to have obtained, and the 4th literary
The current download completeness of part piecemeal is not yet to obtain.
And for example, both front example D, the first interactive device 22 of first network equipment have determined that this document includes 5 files point
Block, and the current download completeness of this document is 50%, it is intended that and file block is the 3rd file block.Then first network sets
Standby state determination device 23 can determine the current download state of the 3rd file block to obtain.
Subsequently, the data supplying device 24 of first network equipment will refer to according to the current download state of specified file piecemeal
The part or all of data determined in file block are supplied to user.
Here, the data supplying device 24 of first network equipment can be according to the different current download shape of specified file piecemeal
State (has been obtained, obtaining and has not yet been obtained), will formulate the part or all of number of file block kind in different ways
According to being supplied to user.
Preferably, the data supplying device 24 of first network equipment can specify data by corresponding in specified file piecemeal
The partial data of scope is supplied to user.
For example, the specified scope of data of user's requested document is [1MB, 2MB], and the number corresponding to specified file piecemeal
It is [0MB, 2MB] according to scope, then the data supplying device 24 of first network equipment will can be opened from 1MB in the specified file piecemeal
Begin to terminating this partial data to be supplied to user, and without the need for by user in the specified file piecemeal unsolicited [0MB, 1MB] this
Partial data is supplied to user.
Preferably, current download state of the data supplying device 24 of first network equipment according to specified file piecemeal, will
Part or all of data in specified file piecemeal are supplied to the including but not limited to following 3 kinds of situations of the mode of user:
1) when first network equipment has obtained specified file piecemeal, the data supplying device 24 of first network equipment can
So that the part or all of data in the specified file piecemeal are supplied to user.
Here, the total data of specified file piecemeal can be both provided to by the data supplying device 24 of first network equipment
User.Or, the partial data of specified file piecemeal for example can also be corresponded to by the data supplying device 24 of first network equipment
In the partial data for specifying scope of data, there is provided to user.
2) when first network equipment is obtaining the specified file piecemeal, the data supplying device of first network equipment
24 wait and the part or during total data in the specified file piecemeal has been obtained, by the part in the specified file piecemeal or
Total data is supplied to user.
For example, first network equipment is currently being obtained and is not fully obtaining specified file piecemeal, then first network
The data supplying device 24 of equipment can be waited and during total data in the specified file piecemeal is obtained completely, then will
Total data in the specified file piecemeal is supplied to user, or, the data supplying device 24 of first network equipment can also
Wait and during partial data in the specified file piecemeal has been obtained, then by the appropriate section number in the specified file piecemeal
According to user is supplied to, such as corresponding to the partial data for specifying scope of data.
And for example, first network equipment is currently being obtained and is not fully obtaining specified file piecemeal, then first network
The data supplying device 24 of equipment can be waited and during partial data in the specified file piecemeal is obtained completely, such as should
When in specified file piecemeal corresponding to the partial data of scope of data is specified, corresponding partial data is supplied to into user.
3) if first network equipment not yet obtains specified file piecemeal, the data supplying device 24 of first network equipment is then
The 3rd download request to specified file piecemeal is sent to second network equipment, when first network equipment is obtaining the second network
When equipment responds the specified file piecemeal returned by the 3rd download request, the data supplying device 24 of first network equipment is waited simultaneously
The part or during total data in specified file piecemeal has been obtained, the part or all of data in specified file piecemeal are provided
To user.
Here, the identification information of the identification information and specified file piecemeal of file in the 3rd download request, can be included,
Such as the 2nd file block, and/or the 3rd file block etc..After second network equipment receives the 3rd download request, can be with
According to the identification information of the identification information and specified file piecemeal of file, corresponding specified file piecemeal is obtained.Subsequently, the second net
The specified file piecemeal can be returned to first network equipment by network equipment.Correspondingly, first network equipment waits and ought be
Obtain in specified file piecemeal part or during total data, the data supplying device 24 of first network equipment is by specified file piecemeal
In part or all of data be supplied to user.Here, first network equipment is waited and ought have been obtained in specified file piecemeal
Partly or entirely during data, by the data supplying device 24 of first network equipment by the part or all of number in specified file piecemeal
According to being supplied to user and data supplying device 24 in aforementioned 2) kind mode by the part or all of data in specified file piecemeal
It is supplied to the mode of user identical or essentially identical, therefore repeats no more, and is incorporated herein by reference.
Here, the current download shape of multiple specified file piecemeals determined by the state determination device 23 of first network equipment
State can also be respectively different.For example, the asked specified scope of data for downloading file of user is 0-10MB, it is assumed that each text
The size of part piecemeal is 256KB (size of each file block can be dynamic adjustment), then user's request be the 0th extremely
The file block of the 39th.The data supplying device 24 of hypothesis first network equipment is sent to the maximum data of user every time
1MB (this can also be dynamic adjustment, i.e., at most send 4 file blocks to user every time), data supplying device 24 can be with
The file block that numbering is the 0th is subscribed to, then data supplying device 24 is judged from the 0th file block and the company for existing below
, there is the 0th file block and just send the 0th file block, there is the 0th and the 1st in continuous file block (inquiry local index)
Individual file block just sends the 0th and the 1st file block, at most sends the 0th, the 1st, the 2nd, the 3rd file block
To user.Assume the 0th, the 1st, the 3rd file block presence, and the 2nd file block is not present, then first network equipment
Data supplying device 24 send the 0th and the 1st file block, the user equipment of wait user is finished receiving.Work as user
User equipment finish receiving after, the data supplying device 24 of first network equipment subscribes to the 2nd file block that numbering is 2,
Then the 2nd file block and the contiguous file block for existing below are judged.Because the 2nd file block is not present, then the first net
The data supplying device 24 of network equipment needs second network equipment to download the 2nd file block, and (first network equipment can be by
2nd file block changes into form rang of scope of data from numbering 2:512KB-768KB, is sent to second network equipment).The
The data supplying device 24 of one network equipment is downloaded after completing the 2nd file block, the data supplying device of first network equipment
24 judge from the 2nd file block and the contiguous file block for existing below, continue process above, and circulation is subscribed to and sends file
Piecemeal.
This mode for providing a user with file block can further reduce back source bandwidth.That is, first network equipment
Whole file need not all be downloaded, it is only necessary to download corresponding file block.Meanwhile, first network equipment can be faster
Send the file to user, whenever from second network equipment download a part file block can just be sent to user.Such as
In above example, the file of user's request downloading data scope 0-10M, whenever first network equipment is under second network equipment
A file block (256KB dynamic as needed can be adjusted) is carried, first network equipment can just provide a user with this document point
The data (256KB) of block, complete just to provide a user with data without waiting 0-10M all to download.
With need data source server in prior art and meanwhile provide file to CDN server and the processing mode of user
Compare, in the present invention program, first network equipment can determine the finger corresponding to the specified scope of data of the file asked by user
Determine file block, and according to the current download state of the specified file piecemeal, by the file obtained from second network equipment
Part or all of data in the specified file piecemeal are supplied to user.Therefore, on the one hand, in the present invention program, only need the second net
File is supplied to first network equipment by network equipment, and the download request of user is responded by first network equipment, so as to this
Bright scheme can save second network equipment (the even higher level of node equipment of such as first network equipment, and for example data source server
Deng) bandwidth and flow.On the other hand, first network equipment can more rapidly, accurately provide a user with its text asked
The partial data of the specified scope of data specified by user is corresponded in part.Jing experimental datas prove, first network equipment to
Family provides the time delay of its partial data asked and can be received by user completely, improves the experience of user.
It should be noted that the present invention can be carried out in the assembly of software and/or software with hardware, for example, this
Each bright device can adopt special IC (ASIC) or any other similar hardware device to realize.In one embodiment
In, the software program of the present invention can pass through computing device to realize steps described above or function.Similarly, it is of the invention
Software program (including related data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory,
Magnetically or optically driver or floppy disc and similar devices.In addition, some steps or function of the present invention can employ hardware to realize, example
Such as, as coordinating so as to perform the circuit of each step or function with processor.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of spirit or essential attributes without departing substantially from the present invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power
Profit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Any reference in claim should not be considered as and limit involved claim.This
Outward, it is clear that " including ", a word was not excluded for other units or step, and odd number is not excluded for plural number.That what is stated in system claims is multiple
Unit or device can also be realized by software or hardware by a unit or device.The first, the second grade word is used for table
Show title, and be not offered as any specific order.
Although above specifically shown and describe exemplary embodiment, it will be understood to those of skill in the art that
It is, in the case of the spirit and scope without departing substantially from claims, can be varied from terms of its form and details.Here
Sought protection is illustrated in the dependent claims.Define in following numbering clause each embodiment these
In terms of other:
1. a kind of method that specified file piecemeal is provided the user in first network equipment, wherein, the method includes:
The first download request of-receive user to file, wherein, the asked institute of user is included in first download request
State the specified scope of data of file;
- when the partial data that the file or the file are not stored in first network equipment, by with the second network
The interaction of equipment, starts to download the file and determines the specified file piecemeal corresponding to the specified scope of data, wherein, institute
One or more scope of data for stating file correspond respectively to corresponding file block;
- according to the current download completeness for currently downloading the file, determine the current download of the specified file piecemeal
State;
- according to the current download state of the specified file piecemeal, will be part or all of in the specified file piecemeal
Data are supplied to the user.
2. the method according to clause 1, wherein, it is described by interacting with second network equipment, start to download described
The step of file, specifically includes:
- the second download request to the file is sent to second network equipment, set with starting download second network
It is standby to respond the file returned by second download request.
3. the method according to clause 1 or 2, wherein, it is described by interacting with second network equipment, determine institute
The step of stating the specified file piecemeal corresponding to specified scope of data specifically includes:
- the acquisition to second network equipment transmission to the size of the file is asked;
The size of the file returned by-acquisition second network equipment;
- according to the size of the file, cutting is carried out to the file, to determine one or more data of the file
The corresponding relation of scope and corresponding file block;
- according to the specified scope of data of the asked file of user included in first download request, inquiry
One or more scope of data of the file and the corresponding relation of corresponding file block, to determine the specified scope of data
Corresponding specified file piecemeal.
4. the method according to clause 1 or 2, wherein, it is described by interacting with second network equipment, determine institute
The step of stating the specified file piecemeal corresponding to specified scope of data specifically includes:
- the specified scope of data of the asked file of user included in first download request is supplied to into institute
State second network equipment, with, inquired about according to the specified scope of data by second network equipment one of the file or
Multiple scope of data and the corresponding relation of corresponding file block, determine the specified file point corresponding to the specified scope of data
Block;
The specified file piecemeal corresponding to described specified scope of data returned by-reception second network equipment.
5. the method according to any one of clause 1 to 4, wherein, it is described according to the current of the specified file piecemeal
Download state, specifically includes the step of the part or all of data in the specified file piecemeal are supplied to the user:
Part or all of data in the specified file piecemeal are carried by i when the specified file piecemeal has been obtained
Supply the user;
Ii waits and ought obtain part in the specified file piecemeal when the specified file piecemeal is obtained
Or during total data, the part or all of data in the specified file piecemeal are supplied to into the user;
If iii not yet obtains the specified file piecemeal, send to the specified text to second network equipment
3rd download request of part piecemeal, responds the institute returned by the 3rd download request when second network equipment is obtained
When stating specified file piecemeal, wait and the part or during total data in the specified file piecemeal has been obtained, by the finger
The part or all of data determined in file block are supplied to the user.
6. the method according to any one of clause 1 to 5, wherein, the part by the specified file piecemeal
Or total data is specifically included the step of being supplied to the user:
- partial data in the specified file piecemeal corresponding to the specified scope of data is supplied to into the user.
7. a kind of method that specified file piecemeal is provided the user in second network equipment, wherein, the method includes:
- by interacting with first network equipment, aid in the first network equipment to start to download the asked download of user
File and determine the specified file piecemeal corresponding to the specified scope of data, wherein, the file one or more number
Corresponding file block is corresponded respectively to according to scope.
8. the method according to clause 7, wherein, described by interacting with first network equipment, auxiliary described first
The network equipment starts the step of downloading the file of user's asked download and specifically includes:
- the second download request to file that first network equipment is sent is received, the file is returned to described
First network equipment.
9. the method according to clause 7 or 8, wherein, it is described by interacting with the first network equipment, aid in institute
State the step of first network equipment determines the specified file piecemeal corresponding to the specified scope of data and specifically include:
The acquisition request of the size to the file the sent by-reception first network equipment;
- size of the file is returned to into the first network equipment.
10. the method according to clause 7 or 8, wherein, it is described by interacting with the first network equipment, aid in
The step of first network equipment determines the specified file piecemeal corresponding to the specified scope of data is specifically included:
The user included in first download request sent by-reception first network equipment is asked described
The specified scope of data of file;
- according to the specified scope of data, inquire about one or more scope of data and corresponding file point of the file
The corresponding relation of block, determines the specified file piecemeal corresponding to the specified scope of data;
- the specified file piecemeal corresponding to the specified scope of data is returned to into the first network equipment.
A kind of 11. devices that specified file piecemeal is provided the user in first network equipment, wherein, the device includes:
- it is used for device of the receive user to the first download request of file, wherein, comprising use in first download request
The specified scope of data of the asked file in family;
- for when the partial data that the file or the file are not stored in first network equipment, by with second
The interaction of the network equipment, starts to download the file and determines the dress of specified file piecemeal corresponding to the specified scope of data
Put, wherein, one or more scope of data of the file correspond respectively to corresponding file block;
- be used to, according to the current download completeness for currently downloading the file, determine the current of the specified file piecemeal
The device of download state;
- for the current download state according to the specified file piecemeal, by the part in the specified file piecemeal or
Total data is supplied to the device of the user.
12. devices according to clause 11, wherein, it is described by interacting with second network equipment, start to download institute
The operation for stating file is specifically included:
- the second download request to the file is sent to second network equipment, set with starting download second network
It is standby to respond the file returned by second download request.
13. devices according to clause 11 or 12, wherein, it is described by interacting with second network equipment, really
The operation of the specified file piecemeal corresponding to the fixed specified scope of data is specifically included:
- the acquisition to second network equipment transmission to the size of the file is asked;
The size of the file returned by-acquisition second network equipment;
- according to the size of the file, cutting is carried out to the file, to determine one or more data of the file
The corresponding relation of scope and corresponding file block;
- according to the specified scope of data of the asked file of user included in first download request, inquiry
One or more scope of data of the file and the corresponding relation of corresponding file block, to determine the specified scope of data
Corresponding specified file piecemeal.
14. devices according to clause 11 or 12, wherein, it is described by interacting with second network equipment, really
The operation of the specified file piecemeal corresponding to the fixed specified scope of data is specifically included:
- the specified scope of data of the asked file of user included in first download request is supplied to into institute
State second network equipment, with, inquired about according to the specified scope of data by second network equipment one of the file or
Multiple scope of data and the corresponding relation of corresponding file block, determine the specified file point corresponding to the specified scope of data
Block;
The specified file piecemeal corresponding to described specified scope of data returned by-reception second network equipment.
15. devices according to any one of clause 11 to 14, wherein, the working as according to the specified file piecemeal
Front download state, by the part or all of data in the specified file piecemeal be supplied to the device of the user specifically for:
Part or all of data in the specified file piecemeal are carried by i when the specified file piecemeal has been obtained
Supply the user;
Ii waits and ought obtain part in the specified file piecemeal when the specified file piecemeal is obtained
Or during total data, the part or all of data in the specified file piecemeal are supplied to into the user;
If iii not yet obtains the specified file piecemeal, send to the specified text to second network equipment
3rd download request of part piecemeal, responds the institute returned by the 3rd download request when second network equipment is obtained
When stating specified file piecemeal, wait and the part or during total data in the specified file piecemeal has been obtained, by the finger
The part or all of data determined in file block are supplied to the user.
16. devices according to any one of clause 11 to 15, wherein, the portion by the specified file piecemeal
Divide or total data is supplied to the operation of the user to specifically include:
- partial data in the specified file piecemeal corresponding to the specified scope of data is supplied to into the user.
A kind of 17. devices that specified file piecemeal is provided the user in second network equipment, wherein, the device includes:
- for by interacting with first network equipment, aiding in the first network equipment to start downloading user being asked
The file of download simultaneously determines the device of specified file piecemeal corresponding to the specified scope of data, wherein, the one of the file
Individual or multiple scope of data correspond respectively to corresponding file block.
18. devices according to clause 17, wherein, it is described by interacting with first network equipment, aid in described the
One network equipment starts the operation of the file for downloading the asked download of user and specifically includes:
- the second download request to file that first network equipment is sent is received, the file is returned to described
First network equipment.
19. devices according to clause 17 or 18, wherein, it is described by interacting with the first network equipment, it is auxiliary
The first network equipment is helped to determine that the operation of the specified file piecemeal corresponding to the specified scope of data is specifically included:
The acquisition request of the size to the file the sent by-reception first network equipment;
- size of the file is returned to into the first network equipment.
20. devices according to clause 17 or 18, wherein, it is described by interacting with the first network equipment, it is auxiliary
The first network equipment is helped to determine that the operation of the specified file piecemeal corresponding to the specified scope of data is specifically included:
The user included in first download request sent by-reception first network equipment is asked described
The specified scope of data of file;
- according to the specified scope of data, inquire about one or more scope of data and corresponding file point of the file
The corresponding relation of block, determines the specified file piecemeal corresponding to the specified scope of data;
- the specified file piecemeal corresponding to the specified scope of data is returned to into the first network equipment.
Claims (20)
1. a kind of method that specified file piecemeal is provided the user in first network equipment, wherein, the method includes:
The first download request of-receive user to file, wherein, the asked text of user is included in first download request
The specified scope of data of part;
- when the partial data that the file or the file are not stored in first network equipment, by with second network equipment
Interaction, start to download the file and determine the specified file piecemeal corresponding to the specified scope of data, wherein, the text
One or more scope of data of part correspond respectively to corresponding file block;
- according to the current download completeness for currently downloading the file, determine the current download state of the specified file piecemeal;
- according to the current download state of the specified file piecemeal, by the part or all of data in the specified file piecemeal
It is supplied to the user.
2. method according to claim 1, wherein, it is described by interacting with second network equipment, start to download described
The step of file, specifically includes:
- the second download request to the file is sent to second network equipment, to start to download second network equipment sound
The file for answering second download request to be returned.
3. method according to claim 1 and 2, wherein, it is described by interacting with second network equipment, determine institute
The step of stating the specified file piecemeal corresponding to specified scope of data specifically includes:
- the acquisition to second network equipment transmission to the size of the file is asked;
The size of the file returned by-acquisition second network equipment;
- according to the size of the file, cutting is carried out to the file, to determine one or more scope of data of the file
With the corresponding relation of corresponding file block;
- according to the specified scope of data of the asked file of user included in first download request, inquiry is described
One or more scope of data of file and the corresponding relation of corresponding file block, it is right to determine the specified scope of data institute
The specified file piecemeal answered.
4. method according to claim 1 and 2, wherein, it is described by interacting with second network equipment, determine institute
The step of stating the specified file piecemeal corresponding to specified scope of data specifically includes:
- the specified scope of data of the asked file of user included in first download request is supplied to into described
Two network equipments, inquire about one or more of the file with by second network equipment according to the specified scope of data
Scope of data and the corresponding relation of corresponding file block, determine the specified file piecemeal corresponding to the specified scope of data;
The specified file piecemeal corresponding to described specified scope of data returned by-reception second network equipment.
5. method according to any one of claim 1 to 4, wherein, it is described according to the current of the specified file piecemeal
Download state, specifically includes the step of the part or all of data in the specified file piecemeal are supplied to the user:
Part or all of data in the specified file piecemeal are supplied to by i when the specified file piecemeal has been obtained
The user;
Ii waits and ought obtain part or complete in the specified file piecemeal when the specified file piecemeal is obtained
During portion's data, the part or all of data in the specified file piecemeal are supplied to into the user;
If iii not yet obtains the specified file piecemeal, send to the specified file point to second network equipment
3rd download request of block, responds the finger returned by the 3rd download request when second network equipment is obtained
When determining file block, wait and the part or during total data in the specified file piecemeal has been obtained, by the specified text
Part or all of data in part piecemeal are supplied to the user.
6. method according to any one of claim 1 to 5, wherein, the part by the specified file piecemeal
Or total data is specifically included the step of being supplied to the user:
- partial data in the specified file piecemeal corresponding to the specified scope of data is supplied to into the user.
7. a kind of method that specified file piecemeal is provided the user in second network equipment, wherein, the method includes:
- by interacting with first network equipment, aid in the first network equipment to start to download the text of the asked download of user
Part simultaneously determines the specified file piecemeal corresponding to the specified scope of data, wherein, one or more data models of the file
Enclose and correspond respectively to corresponding file block.
8. method according to claim 7, wherein, described by interacting with first network equipment, auxiliary described first
The network equipment starts the step of downloading the file of user's asked download and specifically includes:
- the second download request to file that first network equipment is sent is received, the file is returned to into described first
The network equipment.
9. the method according to claim 7 or 8, wherein, it is described by interacting with the first network equipment, aid in institute
State the step of first network equipment determines the specified file piecemeal corresponding to the specified scope of data and specifically include:
The acquisition request of the size to the file the sent by-reception first network equipment;
- size of the file is returned to into the first network equipment.
10. the method according to claim 7 or 8, wherein, it is described by interacting with the first network equipment, aid in
The step of first network equipment determines the specified file piecemeal corresponding to the specified scope of data is specifically included:
The asked file of user included in first download request sent by-reception first network equipment
Specified scope of data;
- according to the specified scope of data, inquire about one or more scope of data and corresponding file block of the file
Corresponding relation, determines the specified file piecemeal corresponding to the specified scope of data;
- the specified file piecemeal corresponding to the specified scope of data is returned to into the first network equipment.
A kind of 11. devices that specified file piecemeal is provided the user in first network equipment, wherein, the device includes:
- it is used for device of the receive user to the first download request of file, wherein, user institute is included in first download request
Ask the specified scope of data of the file;
- for when the partial data that the file or the file are not stored in first network equipment, by with the second network
The interaction of equipment, starts to download the file and determines the device of specified file piecemeal corresponding to the specified scope of data,
Wherein, one or more scope of data of the file correspond respectively to corresponding file block;
- be used to, according to the current download completeness for currently downloading the file, determine the current download of the specified file piecemeal
The device of state;
- for the current download state according to the specified file piecemeal, will be part or all of in the specified file piecemeal
Data are supplied to the device of the user.
12. devices according to claim 11, wherein, it is described by interacting with second network equipment, start to download institute
The operation for stating file is specifically included:
- the second download request to the file is sent to second network equipment, to start to download second network equipment sound
The file for answering second download request to be returned.
13. devices according to claim 11 or 12, wherein, it is described by interacting with second network equipment, really
The operation of the specified file piecemeal corresponding to the fixed specified scope of data is specifically included:
- the acquisition to second network equipment transmission to the size of the file is asked;
The size of the file returned by-acquisition second network equipment;
- according to the size of the file, cutting is carried out to the file, to determine one or more scope of data of the file
With the corresponding relation of corresponding file block;
- according to the specified scope of data of the asked file of user included in first download request, inquiry is described
One or more scope of data of file and the corresponding relation of corresponding file block, it is right to determine the specified scope of data institute
The specified file piecemeal answered.
14. devices according to claim 11 or 12, wherein, it is described by interacting with second network equipment, really
The operation of the specified file piecemeal corresponding to the fixed specified scope of data is specifically included:
- the specified scope of data of the asked file of user included in first download request is supplied to into described
Two network equipments, inquire about one or more of the file with by second network equipment according to the specified scope of data
Scope of data and the corresponding relation of corresponding file block, determine the specified file piecemeal corresponding to the specified scope of data;
The specified file piecemeal corresponding to described specified scope of data returned by-reception second network equipment.
15. devices according to any one of claim 11 to 14, wherein, the working as according to the specified file piecemeal
Front download state, by the part or all of data in the specified file piecemeal be supplied to the device of the user specifically for:
Part or all of data in the specified file piecemeal are supplied to by i when the specified file piecemeal has been obtained
The user;
Ii waits and ought obtain part or complete in the specified file piecemeal when the specified file piecemeal is obtained
During portion's data, the part or all of data in the specified file piecemeal are supplied to into the user;
If iii not yet obtains the specified file piecemeal, send to the specified file point to second network equipment
3rd download request of block, responds the finger returned by the 3rd download request when second network equipment is obtained
When determining file block, wait and the part or during total data in the specified file piecemeal has been obtained, by the specified text
Part or all of data in part piecemeal are supplied to the user.
16. devices according to any one of claim 11 to 15, wherein, the portion by the specified file piecemeal
Divide or total data is supplied to the operation of the user to specifically include:
- partial data in the specified file piecemeal corresponding to the specified scope of data is supplied to into the user.
A kind of 17. devices that specified file piecemeal is provided the user in second network equipment, wherein, the device includes:
- for by interacting with first network equipment, aiding in the first network equipment to start to download the asked download of user
File and determine the device of specified file piecemeal corresponding to the specified scope of data, wherein, one of the file or
Multiple scope of data correspond respectively to corresponding file block.
18. devices according to claim 17, wherein, it is described by interacting with first network equipment, aid in described the
One network equipment starts the operation of the file for downloading the asked download of user and specifically includes:
- the second download request to file that first network equipment is sent is received, the file is returned to into described first
The network equipment.
19. devices according to claim 17 or 18, wherein, it is described by interacting with the first network equipment, it is auxiliary
The first network equipment is helped to determine that the operation of the specified file piecemeal corresponding to the specified scope of data is specifically included:
The acquisition request of the size to the file the sent by-reception first network equipment;
- size of the file is returned to into the first network equipment.
20. devices according to claim 17 or 18, wherein, it is described by interacting with the first network equipment, it is auxiliary
The first network equipment is helped to determine that the operation of the specified file piecemeal corresponding to the specified scope of data is specifically included:
The asked file of user included in first download request sent by-reception first network equipment
Specified scope of data;
- according to the specified scope of data, inquire about one or more scope of data and corresponding file block of the file
Corresponding relation, determines the specified file piecemeal corresponding to the specified scope of data;
- the specified file piecemeal corresponding to the specified scope of data is returned to into the first network equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610930736.8A CN106550023A (en) | 2016-10-31 | 2016-10-31 | A kind of method and apparatus for providing the user specified file piecemeal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610930736.8A CN106550023A (en) | 2016-10-31 | 2016-10-31 | A kind of method and apparatus for providing the user specified file piecemeal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106550023A true CN106550023A (en) | 2017-03-29 |
Family
ID=58393459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610930736.8A Pending CN106550023A (en) | 2016-10-31 | 2016-10-31 | A kind of method and apparatus for providing the user specified file piecemeal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106550023A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108173953A (en) * | 2017-12-29 | 2018-06-15 | 北京奇虎科技有限公司 | A kind of document distribution method and device based on content distributing network CDN |
CN108346031A (en) * | 2018-01-18 | 2018-07-31 | 北京汽车研究总院有限公司 | A kind of data interactive method and system |
CN108566370A (en) * | 2018-02-11 | 2018-09-21 | 北京奇艺世纪科技有限公司 | A kind of method and device of data Hui Yuan |
CN112055044A (en) * | 2020-07-20 | 2020-12-08 | 云盾智慧安全科技有限公司 | Data request method, server and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102484652A (en) * | 2009-08-28 | 2012-05-30 | 苹果公司 | Chunked downloads over a content delivery network |
CN102547478A (en) * | 2012-02-20 | 2012-07-04 | 北京蓝汛通信技术有限责任公司 | Triggered slice on-demand system and method of streaming media based on CDN (Content Distribution Network) |
CN103747112A (en) * | 2013-12-24 | 2014-04-23 | 乐视网信息技术(北京)股份有限公司 | CDN back-to-source method, first server and system thereof |
WO2015096801A1 (en) * | 2013-12-26 | 2015-07-02 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for accelerating data transmission in a network communication system |
CN104935648A (en) * | 2015-06-03 | 2015-09-23 | 北京快网科技有限公司 | High-cost-performance CDN system, and file pre-push and fragment buffer memory methods |
-
2016
- 2016-10-31 CN CN201610930736.8A patent/CN106550023A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102484652A (en) * | 2009-08-28 | 2012-05-30 | 苹果公司 | Chunked downloads over a content delivery network |
CN102547478A (en) * | 2012-02-20 | 2012-07-04 | 北京蓝汛通信技术有限责任公司 | Triggered slice on-demand system and method of streaming media based on CDN (Content Distribution Network) |
CN103747112A (en) * | 2013-12-24 | 2014-04-23 | 乐视网信息技术(北京)股份有限公司 | CDN back-to-source method, first server and system thereof |
WO2015096801A1 (en) * | 2013-12-26 | 2015-07-02 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for accelerating data transmission in a network communication system |
CN104935648A (en) * | 2015-06-03 | 2015-09-23 | 北京快网科技有限公司 | High-cost-performance CDN system, and file pre-push and fragment buffer memory methods |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108173953A (en) * | 2017-12-29 | 2018-06-15 | 北京奇虎科技有限公司 | A kind of document distribution method and device based on content distributing network CDN |
CN108346031A (en) * | 2018-01-18 | 2018-07-31 | 北京汽车研究总院有限公司 | A kind of data interactive method and system |
CN108346031B (en) * | 2018-01-18 | 2021-03-09 | 北京汽车集团越野车有限公司 | Data interaction method and system |
CN108566370A (en) * | 2018-02-11 | 2018-09-21 | 北京奇艺世纪科技有限公司 | A kind of method and device of data Hui Yuan |
CN112055044A (en) * | 2020-07-20 | 2020-12-08 | 云盾智慧安全科技有限公司 | Data request method, server and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106550023A (en) | A kind of method and apparatus for providing the user specified file piecemeal | |
CN104731830A (en) | Recommendation method, recommendation device and server | |
CN107545058B (en) | A kind of page loading method, server and browser | |
CN102289473A (en) | Device and method for paging query of a plurality of servers | |
CN103995748A (en) | Intelligent terminal task processing method and system | |
CN109379299A (en) | A kind of method for limiting of data traffic, device and system | |
CN109361947A (en) | Internet resources batch loading method, smart television, storage medium and device | |
CN104281458A (en) | Application data processing method, device and system | |
CN102685209B (en) | A kind of method of assisting users equipment transmitting/receiving instance message, device and equipment | |
CN109495553A (en) | A kind of webpage display control method, system and Reverse Proxy | |
CN106815880A (en) | animation multiplexing method and system | |
CN106156132A (en) | Picture loading display method and device | |
CN104572981B (en) | A kind of Webpage method for caching and processing and mobile terminal device | |
CN108200127A (en) | Data transmission method for uplink, device, server, terminal and storage medium | |
CN106484417A (en) | A kind of the application list methods of exhibiting and device | |
CN106790445A (en) | Data transmission method, device and electronic equipment based on Samba agreements | |
CN104821939B (en) | It is a kind of to be used to implement computer and the method and apparatus of mobile equipment room asynchronous communication | |
CN116059631A (en) | Object rendering method, device, electronic equipment and computer readable storage medium | |
CN115203603A (en) | Table page rendering method and device, electronic device and storage medium | |
CN108170391A (en) | Page display method, device and electronic equipment | |
CN109451347A (en) | A kind of special effect making method, apparatus, terminal and computer readable storage medium | |
CN110297997B (en) | Page display method, device and equipment | |
CN110688103B (en) | Code writing method, device, electronic equipment and computer readable storage medium | |
CN106843952A (en) | Update the method and apparatus of functional module in application | |
CN112688980A (en) | Resource distribution method and device, and computer equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170329 |